@boxrouter/sdk 0.0.1-alpha.0 → 0.12.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +29 -5
- package/README.md +497 -24
- package/dist/addresses.d.ts +5 -0
- package/dist/addresses.js +10 -0
- package/dist/api-error.d.ts +62 -0
- package/dist/api-error.js +264 -0
- package/dist/boxrouter.d.ts +68 -0
- package/dist/boxrouter.js +291 -0
- package/dist/browser-session/index.d.ts +17 -0
- package/dist/browser-session/index.js +48 -0
- package/dist/browser-session/operations.gen.d.ts +272 -0
- package/dist/browser-session/operations.gen.js +58 -0
- package/dist/browser-session/responseContracts/api_keys.d.ts +2 -0
- package/dist/browser-session/responseContracts/api_keys.js +10 -0
- package/dist/browser-session/responseContracts/credits.d.ts +2 -0
- package/dist/browser-session/responseContracts/credits.js +8 -0
- package/dist/browser-session/responseContracts/github.d.ts +2 -0
- package/dist/browser-session/responseContracts/github.js +11 -0
- package/dist/browser-session/responseContracts/identity.d.ts +2 -0
- package/dist/browser-session/responseContracts/identity.js +30 -0
- package/dist/browser-session/responseContracts/organizations.d.ts +2 -0
- package/dist/browser-session/responseContracts/organizations.js +17 -0
- package/dist/browser-session/responseContracts/privacy.d.ts +2 -0
- package/dist/browser-session/responseContracts/privacy.js +7 -0
- package/dist/browser-session/responseContracts.gen.d.ts +3 -0
- package/dist/browser-session/responseContracts.gen.js +10 -0
- package/dist/browser-session/responseValidators/api_keys-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/api_keys-diagnostics.d.cts +4 -0
- package/dist/browser-session/responseValidators/api_keys.cjs +2 -0
- package/dist/browser-session/responseValidators/api_keys.d.cts +4 -0
- package/dist/browser-session/responseValidators/credits-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/credits-diagnostics.d.cts +3 -0
- package/dist/browser-session/responseValidators/credits.cjs +2 -0
- package/dist/browser-session/responseValidators/credits.d.cts +3 -0
- package/dist/browser-session/responseValidators/github-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/github-diagnostics.d.cts +3 -0
- package/dist/browser-session/responseValidators/github.cjs +2 -0
- package/dist/browser-session/responseValidators/github.d.cts +3 -0
- package/dist/browser-session/responseValidators/identity-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/identity-diagnostics.d.cts +23 -0
- package/dist/browser-session/responseValidators/identity.cjs +2 -0
- package/dist/browser-session/responseValidators/identity.d.cts +23 -0
- package/dist/browser-session/responseValidators/organizations-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/organizations-diagnostics.d.cts +15 -0
- package/dist/browser-session/responseValidators/organizations.cjs +2 -0
- package/dist/browser-session/responseValidators/organizations.d.cts +15 -0
- package/dist/browser-session/responseValidators/privacy-diagnostics.cjs +1 -0
- package/dist/browser-session/responseValidators/privacy-diagnostics.d.cts +2 -0
- package/dist/browser-session/responseValidators/privacy.cjs +2 -0
- package/dist/browser-session/responseValidators/privacy.d.cts +2 -0
- package/dist/client/client.gen.d.ts +1 -1
- package/dist/client/client.gen.js +46 -94
- package/dist/client/index.d.ts +10 -10
- package/dist/client/index.js +16 -5
- package/dist/client/types.gen.d.ts +6 -6
- package/dist/client/types.gen.js +2 -1
- package/dist/client/utils.gen.d.ts +2 -2
- package/dist/client/utils.gen.js +31 -20
- package/dist/client.gen.d.ts +2 -2
- package/dist/client.gen.js +5 -2
- package/dist/command-check.gen.d.ts +14 -0
- package/dist/command-check.gen.js +23 -0
- package/dist/command-input.gen.d.ts +6 -0
- package/dist/command-input.gen.js +45 -0
- package/dist/core/auth.gen.js +5 -1
- package/dist/core/binaryStream.d.ts +8 -0
- package/dist/core/binaryStream.js +76 -0
- package/dist/core/bodySerializer.gen.d.ts +1 -1
- package/dist/core/bodySerializer.gen.js +8 -5
- package/dist/core/commandValidators.cjs +1 -0
- package/dist/core/commandValidators.d.cts +14 -0
- package/dist/core/eventValidation.d.ts +17 -0
- package/dist/core/eventValidation.js +56 -0
- package/dist/core/eventValidators.cjs +1 -0
- package/dist/core/eventValidators.d.cts +2 -0
- package/dist/core/json.d.ts +3 -0
- package/dist/core/json.js +33 -0
- package/dist/core/params.gen.js +4 -1
- package/dist/core/pathSerializer.gen.js +20 -11
- package/dist/core/queryKeySerializer.gen.js +12 -6
- package/dist/core/responseContracts/actions.d.ts +2 -0
- package/dist/core/responseContracts/actions.js +30 -0
- package/dist/core/responseContracts/agents.d.ts +2 -0
- package/dist/core/responseContracts/agents.js +7 -0
- package/dist/core/responseContracts/artifacts.d.ts +2 -0
- package/dist/core/responseContracts/artifacts.js +8 -0
- package/dist/core/responseContracts/commands.d.ts +2 -0
- package/dist/core/responseContracts/commands.js +6 -0
- package/dist/core/responseContracts/credits.d.ts +2 -0
- package/dist/core/responseContracts/credits.js +27 -0
- package/dist/core/responseContracts/files.d.ts +2 -0
- package/dist/core/responseContracts/files.js +15 -0
- package/dist/core/responseContracts/github.d.ts +2 -0
- package/dist/core/responseContracts/github.js +8 -0
- package/dist/core/responseContracts/images.d.ts +2 -0
- package/dist/core/responseContracts/images.js +8 -0
- package/dist/core/responseContracts/launchRuns.d.ts +2 -0
- package/dist/core/responseContracts/launchRuns.js +10 -0
- package/dist/core/responseContracts/launches.d.ts +2 -0
- package/dist/core/responseContracts/launches.js +10 -0
- package/dist/core/responseContracts/operations.d.ts +2 -0
- package/dist/core/responseContracts/operations.js +7 -0
- package/dist/core/responseContracts/previews.d.ts +2 -0
- package/dist/core/responseContracts/previews.js +8 -0
- package/dist/core/responseContracts/pricing.d.ts +2 -0
- package/dist/core/responseContracts/pricing.js +6 -0
- package/dist/core/responseContracts/processes.d.ts +2 -0
- package/dist/core/responseContracts/processes.js +11 -0
- package/dist/core/responseContracts/provider_accounts.d.ts +2 -0
- package/dist/core/responseContracts/provider_accounts.js +13 -0
- package/dist/core/responseContracts/providers.d.ts +2 -0
- package/dist/core/responseContracts/providers.js +6 -0
- package/dist/core/responseContracts/routing.d.ts +2 -0
- package/dist/core/responseContracts/routing.js +8 -0
- package/dist/core/responseContracts/sandboxes.d.ts +2 -0
- package/dist/core/responseContracts/sandboxes.js +15 -0
- package/dist/core/responseContracts/secrets.d.ts +2 -0
- package/dist/core/responseContracts/secrets.js +8 -0
- package/dist/core/responseContracts/spend_limits.d.ts +2 -0
- package/dist/core/responseContracts/spend_limits.js +8 -0
- package/dist/core/responseContracts/terminals.d.ts +2 -0
- package/dist/core/responseContracts/terminals.js +11 -0
- package/dist/core/responseContracts/usage.d.ts +2 -0
- package/dist/core/responseContracts/usage.js +7 -0
- package/dist/core/responseContracts/volumes.d.ts +2 -0
- package/dist/core/responseContracts/volumes.js +19 -0
- package/dist/core/responseContracts.gen.d.ts +3 -0
- package/dist/core/responseContracts.gen.js +27 -0
- package/dist/core/responseModes.d.ts +19 -0
- package/dist/core/responseModes.js +13 -0
- package/dist/core/responseValidation.d.ts +44 -0
- package/dist/core/responseValidation.js +174 -0
- package/dist/core/responseValidators/actions-diagnostics.cjs +4 -0
- package/dist/core/responseValidators/actions-diagnostics.d.cts +24 -0
- package/dist/core/responseValidators/actions.cjs +2 -0
- package/dist/core/responseValidators/actions.d.cts +24 -0
- package/dist/core/responseValidators/agents-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/agents-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/agents.cjs +2 -0
- package/dist/core/responseValidators/agents.d.cts +2 -0
- package/dist/core/responseValidators/artifacts-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/artifacts-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/artifacts.cjs +2 -0
- package/dist/core/responseValidators/artifacts.d.cts +2 -0
- package/dist/core/responseValidators/commands-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/commands-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/commands.cjs +2 -0
- package/dist/core/responseValidators/commands.d.cts +1 -0
- package/dist/core/responseValidators/compact.cjs +122 -0
- package/dist/core/responseValidators/credits-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/credits-diagnostics.d.cts +21 -0
- package/dist/core/responseValidators/credits.cjs +2 -0
- package/dist/core/responseValidators/credits.d.cts +21 -0
- package/dist/core/responseValidators/files-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/files-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/files.cjs +2 -0
- package/dist/core/responseValidators/files.d.cts +5 -0
- package/dist/core/responseValidators/github-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/github-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/github.cjs +2 -0
- package/dist/core/responseValidators/github.d.cts +2 -0
- package/dist/core/responseValidators/images-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/images-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/images.cjs +2 -0
- package/dist/core/responseValidators/images.d.cts +3 -0
- package/dist/core/responseValidators/launchRuns-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/launchRuns-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/launchRuns.cjs +2 -0
- package/dist/core/responseValidators/launchRuns.d.cts +5 -0
- package/dist/core/responseValidators/launches-diagnostics.cjs +10 -0
- package/dist/core/responseValidators/launches-diagnostics.d.cts +5 -0
- package/dist/core/responseValidators/launches.cjs +2 -0
- package/dist/core/responseValidators/launches.d.cts +5 -0
- package/dist/core/responseValidators/operations-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/operations-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/operations.cjs +2 -0
- package/dist/core/responseValidators/operations.d.cts +2 -0
- package/dist/core/responseValidators/previews-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/previews-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/previews.cjs +2 -0
- package/dist/core/responseValidators/previews.d.cts +3 -0
- package/dist/core/responseValidators/pricing-diagnostics.cjs +7 -0
- package/dist/core/responseValidators/pricing-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/pricing.cjs +2 -0
- package/dist/core/responseValidators/pricing.d.cts +1 -0
- package/dist/core/responseValidators/processes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/processes-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/processes.cjs +2 -0
- package/dist/core/responseValidators/processes.d.cts +2 -0
- package/dist/core/responseValidators/provider_accounts-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/provider_accounts-diagnostics.d.cts +8 -0
- package/dist/core/responseValidators/provider_accounts.cjs +2 -0
- package/dist/core/responseValidators/provider_accounts.d.cts +8 -0
- package/dist/core/responseValidators/providers-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/providers-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/providers.cjs +2 -0
- package/dist/core/responseValidators/providers.d.cts +1 -0
- package/dist/core/responseValidators/routing-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/routing-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/routing.cjs +2 -0
- package/dist/core/responseValidators/routing.d.cts +3 -0
- package/dist/core/responseValidators/sandboxes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/sandboxes-diagnostics.d.cts +10 -0
- package/dist/core/responseValidators/sandboxes.cjs +2 -0
- package/dist/core/responseValidators/sandboxes.d.cts +10 -0
- package/dist/core/responseValidators/secrets-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/secrets-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/secrets.cjs +2 -0
- package/dist/core/responseValidators/secrets.d.cts +1 -0
- package/dist/core/responseValidators/spend_limits-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/spend_limits-diagnostics.d.cts +3 -0
- package/dist/core/responseValidators/spend_limits.cjs +2 -0
- package/dist/core/responseValidators/spend_limits.d.cts +3 -0
- package/dist/core/responseValidators/terminals-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/terminals-diagnostics.d.cts +2 -0
- package/dist/core/responseValidators/terminals.cjs +2 -0
- package/dist/core/responseValidators/terminals.d.cts +2 -0
- package/dist/core/responseValidators/usage-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/usage-diagnostics.d.cts +1 -0
- package/dist/core/responseValidators/usage.cjs +2 -0
- package/dist/core/responseValidators/usage.d.cts +1 -0
- package/dist/core/responseValidators/volumes-diagnostics.cjs +1 -0
- package/dist/core/responseValidators/volumes-diagnostics.d.cts +10 -0
- package/dist/core/responseValidators/volumes.cjs +2 -0
- package/dist/core/responseValidators/volumes.d.cts +10 -0
- package/dist/core/serverSentEvents.gen.d.ts +21 -62
- package/dist/core/serverSentEvents.gen.js +297 -116
- package/dist/core/streamErrors.d.ts +32 -0
- package/dist/core/streamErrors.js +51 -0
- package/dist/core/types.gen.d.ts +2 -2
- package/dist/core/types.gen.js +2 -1
- package/dist/core/utils.gen.d.ts +1 -1
- package/dist/core/utils.gen.js +16 -10
- package/dist/creation.gen.d.ts +21 -0
- package/dist/creation.gen.js +35 -0
- package/dist/data-origin.d.ts +25 -0
- package/dist/data-origin.js +57 -0
- package/dist/error-codes.gen.d.ts +2 -0
- package/dist/error-codes.gen.js +2 -0
- package/dist/idempotency.gen.d.ts +1 -0
- package/dist/idempotency.gen.js +60 -0
- package/dist/images.d.ts +74 -0
- package/dist/images.js +88 -0
- package/dist/index.d.ts +22 -2
- package/dist/index.js +79 -1
- package/dist/launch-input.gen.d.ts +9 -0
- package/dist/launch-input.gen.js +83 -0
- package/dist/launch.d.ts +28 -0
- package/dist/launch.js +222 -0
- package/dist/namespace-actions.d.mts +307 -0
- package/dist/namespace-actions.mjs +595 -0
- package/dist/namespace-agents.d.mts +33 -0
- package/dist/namespace-agents.mjs +40 -0
- package/dist/namespace-artifacts.d.mts +46 -0
- package/dist/namespace-artifacts.mjs +69 -0
- package/dist/namespace-base.d.mts +7 -0
- package/dist/namespace-base.mjs +7 -0
- package/dist/namespace-commands.d.mts +57 -0
- package/dist/namespace-commands.mjs +57 -0
- package/dist/namespace-credits.d.mts +213 -0
- package/dist/namespace-credits.mjs +476 -0
- package/dist/namespace-files.d.mts +203 -0
- package/dist/namespace-files.mjs +334 -0
- package/dist/namespace-github.d.mts +50 -0
- package/dist/namespace-github.mjs +68 -0
- package/dist/namespace-images.d.mts +52 -0
- package/dist/namespace-images.mjs +78 -0
- package/dist/namespace-launch_runs.d.mts +89 -0
- package/dist/namespace-launch_runs.mjs +133 -0
- package/dist/namespace-launches.d.mts +89 -0
- package/dist/namespace-launches.mjs +133 -0
- package/dist/namespace-operations.d.mts +45 -0
- package/dist/namespace-operations.mjs +52 -0
- package/dist/namespace-previews.d.mts +79 -0
- package/dist/namespace-previews.mjs +101 -0
- package/dist/namespace-pricing.d.mts +31 -0
- package/dist/namespace-pricing.mjs +22 -0
- package/dist/namespace-processes.d.mts +125 -0
- package/dist/namespace-processes.mjs +184 -0
- package/dist/namespace-provider_accounts.d.mts +156 -0
- package/dist/namespace-provider_accounts.mjs +241 -0
- package/dist/namespace-providers.d.mts +28 -0
- package/dist/namespace-providers.mjs +24 -0
- package/dist/namespace-routing.d.mts +64 -0
- package/dist/namespace-routing.mjs +86 -0
- package/dist/namespace-sandboxes.d.mts +287 -0
- package/dist/namespace-sandboxes.mjs +402 -0
- package/dist/namespace-secrets.d.mts +46 -0
- package/dist/namespace-secrets.mjs +68 -0
- package/dist/namespace-spend_limits.d.mts +48 -0
- package/dist/namespace-spend_limits.mjs +70 -0
- package/dist/namespace-terminals.d.mts +112 -0
- package/dist/namespace-terminals.mjs +177 -0
- package/dist/namespace-usage.d.mts +46 -0
- package/dist/namespace-usage.mjs +53 -0
- package/dist/namespace-volumes.d.mts +110 -0
- package/dist/namespace-volumes.mjs +269 -0
- package/dist/operations.d.ts +14 -0
- package/dist/operations.js +31 -0
- package/dist/retry.d.ts +8 -0
- package/dist/retry.js +63 -0
- package/dist/routing-choices.gen.d.ts +132 -0
- package/dist/routing-choices.gen.js +136 -0
- package/dist/routing.d.ts +23 -0
- package/dist/routing.js +38 -0
- package/dist/sandbox-handle.gen.d.ts +8 -0
- package/dist/sandbox-handle.gen.js +14 -0
- package/dist/sandboxes.d.ts +213 -0
- package/dist/sandboxes.js +507 -0
- package/dist/sdk.gen.d.ts +2016 -12
- package/dist/sdk.gen.js +3862 -16
- package/dist/server-timing.d.ts +19 -0
- package/dist/server-timing.gen.d.ts +265 -0
- package/dist/server-timing.gen.js +254 -0
- package/dist/server-timing.js +421 -0
- package/dist/spend-limits.d.ts +17 -0
- package/dist/spend-limits.js +26 -0
- package/dist/telemetry.d.ts +51 -0
- package/dist/telemetry.gen.d.ts +1 -0
- package/dist/telemetry.gen.js +5 -0
- package/dist/telemetry.js +438 -0
- package/dist/terminal.d.ts +61 -0
- package/dist/terminal.js +266 -0
- package/dist/transfer.d.ts +75 -0
- package/dist/transfer.js +389 -0
- package/dist/types.gen.d.ts +14936 -110
- package/dist/types.gen.js +2 -1
- package/dist/user-agent.d.ts +2 -0
- package/dist/user-agent.js +18 -0
- package/dist/version.gen.d.ts +1 -0
- package/dist/version.gen.js +5 -0
- package/dist/volumes.d.ts +33 -0
- package/dist/volumes.js +221 -0
- package/dist/waits.d.ts +31 -0
- package/dist/waits.js +42 -0
- package/dist/workflow-policy.gen.d.ts +41 -0
- package/dist/workflow-policy.gen.js +45 -0
- package/package.json +124 -14
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";exports.validate0 = validate78;const schema88 = {"type":"object","required":["repository_id","exists","enabled","policy_id","state","default_label","revision","updated_at"],"properties":{"resolved_profile":{"type":"string","x-boxrouter-open-enum":true,"readOnly":true,"description":"Effective software profile resolved by GET from the saved repository policy, or linux-basic when no policy is selected. With exists=false this is the default, not a saved configuration. This does not claim image or route readiness. May be absent on older servers and write or idempotent replay responses; GET is authoritative. It does not change the settings CAS token."},"repository_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"exists":{"type":"boolean","description":"False only when no settings record exists; omit If-Match for its first write. True means If-Match is required."},"enabled":{"type":"boolean"},"policy_id":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"state":{"type":"string","enum":["disabled","preparing","ready","attention_required"]},"reason_code":{"type":["string","null"],"maxLength":128,"pattern":"^[a-z][a-z0-9_.-]{0,127}$","description":"Optional machine-readable reason for a non-ready repository state."},"message":{"type":["string","null"],"minLength":1,"maxLength":512,"description":"Optional plain-language explanation of the current repository state."},"link_target":{"type":["string","null"],"enum":["byok","credits",null],"description":"Optional destination when the repository state can be fixed in another page."},"default_label":{"type":"string","minLength":1,"maxLength":128,"description":"The repository's selected BoxRouter runner label."},"revision":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"updated_at":{"type":"string","format":"date-time"}}};const func1 = require("ajv/dist/runtime/ucs2length").default;const pattern10 = new RegExp("^[^\\u0000]*$", "u");const pattern38 = new RegExp("^[a-z][a-z0-9_.-]{0,127}$", "u");const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate78(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate78.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.repository_id === undefined) && (missing0 = "repository_id")) || ((data.exists === undefined) && (missing0 = "exists"))) || ((data.enabled === undefined) && (missing0 = "enabled"))) || ((data.policy_id === undefined) && (missing0 = "policy_id"))) || ((data.state === undefined) && (missing0 = "state"))) || ((data.default_label === undefined) && (missing0 = "default_label"))) || ((data.revision === undefined) && (missing0 = "revision"))) || ((data.updated_at === undefined) && (missing0 = "updated_at"))){validate78.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.resolved_profile !== undefined){const _errs1 = errors;if(typeof data.resolved_profile !== "string"){validate78.errors = [{instancePath:instancePath+"/resolved_profile",schemaPath:"#/properties/resolved_profile/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.repository_id !== undefined){let data1 = data.repository_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate78.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate78.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate78.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate78.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.exists !== undefined){const _errs5 = errors;if(typeof data.exists !== "boolean"){validate78.errors = [{instancePath:instancePath+"/exists",schemaPath:"#/properties/exists/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.enabled !== undefined){const _errs7 = errors;if(typeof data.enabled !== "boolean"){validate78.errors = [{instancePath:instancePath+"/enabled",schemaPath:"#/properties/enabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.policy_id !== undefined){let data4 = data.policy_id;const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate78.errors = [{instancePath:instancePath+"/policy_id",schemaPath:"#/properties/policy_id/type",keyword:"type",params:{type: schema88.properties.policy_id.type},message:"must be string,null"}];return false;}if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) > 128){validate78.errors = [{instancePath:instancePath+"/policy_id",schemaPath:"#/properties/policy_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data4) < 1){validate78.errors = [{instancePath:instancePath+"/policy_id",schemaPath:"#/properties/policy_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data4)){validate78.errors = [{instancePath:instancePath+"/policy_id",schemaPath:"#/properties/policy_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){let data5 = data.state;const _errs11 = errors;if(typeof data5 !== "string"){validate78.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data5 === "disabled") || (data5 === "preparing")) || (data5 === "ready")) || (data5 === "attention_required"))){validate78.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/enum",keyword:"enum",params:{allowedValues: schema88.properties.state.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.reason_code !== undefined){let data6 = data.reason_code;const _errs13 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate78.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: schema88.properties.reason_code.type},message:"must be string,null"}];return false;}if(errors === _errs13){if(typeof data6 === "string"){if(func1(data6) > 128){validate78.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(!pattern38.test(data6)){validate78.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_.-]{0,127}$"},message:"must match pattern \""+"^[a-z][a-z0-9_.-]{0,127}$"+"\""}];return false;}}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.message !== undefined){let data7 = data.message;const _errs15 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate78.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type: schema88.properties.message.type},message:"must be string,null"}];return false;}if(errors === _errs15){if(typeof data7 === "string"){if(func1(data7) > 512){validate78.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}else {if(func1(data7) < 1){validate78.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.link_target !== undefined){let data8 = data.link_target;const _errs17 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate78.errors = [{instancePath:instancePath+"/link_target",schemaPath:"#/properties/link_target/type",keyword:"type",params:{type: schema88.properties.link_target.type},message:"must be string,null"}];return false;}if(!(((data8 === "byok") || (data8 === "credits")) || (data8 === null))){validate78.errors = [{instancePath:instancePath+"/link_target",schemaPath:"#/properties/link_target/enum",keyword:"enum",params:{allowedValues: schema88.properties.link_target.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.default_label !== undefined){let data9 = data.default_label;const _errs19 = errors;if(errors === _errs19){if(typeof data9 === "string"){if(func1(data9) > 128){validate78.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data9) < 1){validate78.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate78.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.revision !== undefined){let data10 = data.revision;const _errs21 = errors;const _errs22 = errors;const _errs23 = errors;let valid2 = false;const _errs24 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err0 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs24 === errors;valid2 = valid2 || _valid0;const _errs26 = errors;if(typeof data10 !== "bigint"){const err1 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs26 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate78.errors = vErrors;return false;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}var valid1 = _errs22 === errors;if(valid1){if(typeof data10 === "bigint"){if(data10 < 1){validate78.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs21){if((typeof data10 == "number") && (isFinite(data10))){if(data10 < 1 || isNaN(data10)){validate78.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.updated_at !== undefined){let data11 = data.updated_at;const _errs27 = errors;if(errors === _errs27){if(errors === _errs27){if(typeof data11 === "string"){if(!(formats0.validate(data11))){validate78.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate78.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs27 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}else {validate78.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate78.errors = vErrors;return errors === 0;}validate78.evaluated = {"props":{"resolved_profile":true,"repository_id":true,"exists":true,"enabled":true,"policy_id":true,"state":true,"reason_code":true,"message":true,"link_target":true,"default_label":true,"revision":true,"updated_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate79;function validate79(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate79.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.repository_id === undefined) && (missing0 = "repository_id")) || ((data.exists === undefined) && (missing0 = "exists"))) || ((data.enabled === undefined) && (missing0 = "enabled"))) || ((data.policy_id === undefined) && (missing0 = "policy_id"))) || ((data.state === undefined) && (missing0 = "state"))) || ((data.default_label === undefined) && (missing0 = "default_label"))) || ((data.revision === undefined) && (missing0 = "revision"))) || ((data.updated_at === undefined) && (missing0 = "updated_at"))){validate79.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.resolved_profile !== undefined){const _errs1 = errors;if(typeof data.resolved_profile !== "string"){validate79.errors = [{instancePath:instancePath+"/resolved_profile",schemaPath:"#/properties/resolved_profile/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.repository_id !== undefined){let data1 = data.repository_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate79.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate79.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate79.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate79.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.exists !== undefined){const _errs5 = errors;if(typeof data.exists !== "boolean"){validate79.errors = [{instancePath:instancePath+"/exists",schemaPath:"#/properties/exists/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.enabled !== undefined){const _errs7 = errors;if(typeof data.enabled !== "boolean"){validate79.errors = [{instancePath:instancePath+"/enabled",schemaPath:"#/properties/enabled/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.policy_id !== undefined){let data4 = data.policy_id;const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate79.errors = [{instancePath:instancePath+"/policy_id",schemaPath:"#/properties/policy_id/type",keyword:"type",params:{type: schema88.properties.policy_id.type},message:"must be string,null"}];return false;}if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) > 128){validate79.errors = [{instancePath:instancePath+"/policy_id",schemaPath:"#/properties/policy_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data4) < 1){validate79.errors = [{instancePath:instancePath+"/policy_id",schemaPath:"#/properties/policy_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data4)){validate79.errors = [{instancePath:instancePath+"/policy_id",schemaPath:"#/properties/policy_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){let data5 = data.state;const _errs11 = errors;if(typeof data5 !== "string"){validate79.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data5 === "disabled") || (data5 === "preparing")) || (data5 === "ready")) || (data5 === "attention_required"))){validate79.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/enum",keyword:"enum",params:{allowedValues: schema88.properties.state.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.reason_code !== undefined){let data6 = data.reason_code;const _errs13 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate79.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: schema88.properties.reason_code.type},message:"must be string,null"}];return false;}if(errors === _errs13){if(typeof data6 === "string"){if(func1(data6) > 128){validate79.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(!pattern38.test(data6)){validate79.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_.-]{0,127}$"},message:"must match pattern \""+"^[a-z][a-z0-9_.-]{0,127}$"+"\""}];return false;}}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.message !== undefined){let data7 = data.message;const _errs15 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate79.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type: schema88.properties.message.type},message:"must be string,null"}];return false;}if(errors === _errs15){if(typeof data7 === "string"){if(func1(data7) > 512){validate79.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}else {if(func1(data7) < 1){validate79.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.link_target !== undefined){let data8 = data.link_target;const _errs17 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate79.errors = [{instancePath:instancePath+"/link_target",schemaPath:"#/properties/link_target/type",keyword:"type",params:{type: schema88.properties.link_target.type},message:"must be string,null"}];return false;}if(!(((data8 === "byok") || (data8 === "credits")) || (data8 === null))){validate79.errors = [{instancePath:instancePath+"/link_target",schemaPath:"#/properties/link_target/enum",keyword:"enum",params:{allowedValues: schema88.properties.link_target.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.default_label !== undefined){let data9 = data.default_label;const _errs19 = errors;if(errors === _errs19){if(typeof data9 === "string"){if(func1(data9) > 128){validate79.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data9) < 1){validate79.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate79.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.revision !== undefined){let data10 = data.revision;const _errs21 = errors;const _errs22 = errors;const _errs23 = errors;let valid2 = false;const _errs24 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err0 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs24 === errors;valid2 = valid2 || _valid0;const _errs26 = errors;if(typeof data10 !== "bigint"){const err1 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs26 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate79.errors = vErrors;return false;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}var valid1 = _errs22 === errors;if(valid1){if(typeof data10 === "bigint"){if(data10 < 1){validate79.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs21){if((typeof data10 == "number") && (isFinite(data10))){if(data10 < 1 || isNaN(data10)){validate79.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.updated_at !== undefined){let data11 = data.updated_at;const _errs27 = errors;if(errors === _errs27){if(errors === _errs27){if(typeof data11 === "string"){if(!(formats0.validate(data11))){validate79.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate79.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs27 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}else {validate79.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate79.errors = vErrors;return errors === 0;}validate79.evaluated = {"props":{"resolved_profile":true,"repository_id":true,"exists":true,"enabled":true,"policy_id":true,"state":true,"reason_code":true,"message":true,"link_target":true,"default_label":true,"revision":true,"updated_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate80;const schema90 = {"type":"object","required":["readiness"],"properties":{"readiness":{"$ref":"#/components/schemas/ActionsReadiness"},"runner_catalog":{"$ref":"#/components/schemas/ActionsRunnerCatalog","description":"Optional for compatibility with older servers; consumers must not invent recommended labels when absent. Prefer the `getActionsRunnerCatalog` operation, which serves the same document cacheably; this copy is retained only for older clients."}}};const schema91 = {"type":"object","required":["runners_ready"],"properties":{"profile":{"type":"string","x-boxrouter-open-enum":true,"description":"Software profile covered by this readiness evidence. When repository-scoped, this is the saved profile for that repository; otherwise it is the workspace's basic readiness view."},"runners_ready":{"type":"boolean"},"providers":{"type":"array","items":{"$ref":"#/components/schemas/ActionsReadinessProvider"}},"runner_labels":{"type":"array","items":{"$ref":"#/components/schemas/ActionsRunnerLabel"}},"reason_code":{"type":["string","null"],"x-boxrouter-open-enum":true},"disk_min_mib":{"minimum":1,"description":"Configured minimum disk floor for the selected profile in MiB. This is not provider allocation or observed free disk.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"message":{"type":["string","null"],"minLength":1,"maxLength":512},"link_target":{"type":["string","null"],"enum":["byok","credits",null]}}};const schema92 = {"type":"object","required":["provider","provider_label","account_id","account_label","supply","ready","region","size","reason_code","message","link_target"],"properties":{"profile":{"type":"string","x-boxrouter-open-enum":true,"description":"Software profile covered by this readiness evidence. When repository-scoped, this is the saved profile for that repository; otherwise it is the workspace's basic readiness view."},"provider":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"provider_label":{"type":"string","minLength":1,"maxLength":128},"account_id":{"type":["string","null"],"minLength":1,"maxLength":128},"account_label":{"type":["string","null"],"minLength":1,"maxLength":128},"supply":{"type":["string","null"],"enum":["byok","managed",null]},"ready":{"type":"boolean"},"region":{"type":["string","null"],"minLength":1,"maxLength":128},"size":{"anyOf":[{"$ref":"#/components/schemas/ActionsMachineSize"},{"type":"null"}]},"cpu_options":{"type":"array","uniqueItems":true,"items":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}},"vcpu_options":{"deprecated":true,"description":"Temporary compatibility field. Use cpu_options.","type":"array","uniqueItems":true,"items":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}},"unavailable_shapes":{"type":"array","description":"Runner sizes this route cannot serve, each with its own cause, so a size missing from cpu_options explains itself. A size is listed when the provider's declaration refuses it, when its image failed terminally, or when its image check is still pending. Omitted by older servers; empty when every size is available.","maxItems":16,"items":{"$ref":"#/components/schemas/ActionsUnavailableShape"}},"max_job_minutes":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"reason_code":{"type":["string","null"],"description":"repository_policy means no route on this provider matches the repository policy; needs_image_verification means image verification is pending; local_preview_unverified means this local preview cannot verify images.","x-boxrouter-open-enum":true},"message":{"type":["string","null"],"minLength":1,"maxLength":512},"link_target":{"type":["string","null"],"enum":["byok","credits",null]}}};const func0 = require("ajv/dist/runtime/equal").default;const pattern42 = new RegExp("^[a-z][a-z0-9-]*$", "u");const schema93 = {"type":"object","required":["cpu","memory_mib"],"properties":{"cpu":{"exclusiveMinimum":0,"description":"Normalized virtual CPU count.","allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"memory_mib":{"minimum":1,"description":"Normalized memory in MiB.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}};function validate83(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate83.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.cpu === undefined) && (missing0 = "cpu")) || ((data.memory_mib === undefined) && (missing0 = "memory_mib"))){validate83.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.cpu !== undefined){let data0 = data.cpu;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!((typeof data0 == "number") && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate83.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){validate83.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/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)){validate83.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.memory_mib !== undefined){let data1 = data.memory_mib;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+"/memory_mib",schemaPath:"#/properties/memory_mib/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+"/memory_mib",schemaPath:"#/properties/memory_mib/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+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate83.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 < 1){validate83.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/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 < 1 || isNaN(data1)){validate83.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}else {validate83.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate83.errors = vErrors;return errors === 0;}validate83.evaluated = {"props":{"cpu":true,"memory_mib":true},"dynamicProps":false,"dynamicItems":false};const schema94 = {"type":"object","required":["cpu","memory_mib","reason_code","message"],"properties":{"cpu":{"minimum":1,"description":"Requested vCPU floor; null for the memory-selected size.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"memory_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"reason_code":{"type":"string","minLength":1,"maxLength":64,"description":"resource_mismatch means the provider declares smaller sandboxes; needs_image_verification means the size is still being checked; any other stable code (resource_limit, image_copy_failed, image_preparation_failed, probe_failed) is the latest terminal image failure."},"message":{"type":"string","minLength":1,"maxLength":512}}};function validate85(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate85.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.cpu === undefined) && (missing0 = "cpu")) || ((data.memory_mib === undefined) && (missing0 = "memory_mib"))) || ((data.reason_code === undefined) && (missing0 = "reason_code"))) || ((data.message === undefined) && (missing0 = "message"))){validate85.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.cpu !== undefined){let data0 = data.cpu;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)))) && (data0 !== null)){const err0 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema94.properties.cpu.allOf[0].anyOf[0].type},message:"must be integer,null"};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+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate85.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){validate85.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/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)){validate85.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/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.memory_mib !== undefined){let data1 = data.memory_mib;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+"/memory_mib",schemaPath:"#/properties/memory_mib/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+"/memory_mib",schemaPath:"#/properties/memory_mib/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+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate85.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 < 1){validate85.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/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 < 1 || isNaN(data1)){validate85.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.reason_code !== undefined){let data2 = data.reason_code;const _errs13 = errors;if(errors === _errs13){if(typeof data2 === "string"){if(func1(data2) > 64){validate85.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data2) < 1){validate85.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate85.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.message !== undefined){let data3 = data.message;const _errs15 = errors;if(errors === _errs15){if(typeof data3 === "string"){if(func1(data3) > 512){validate85.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}else {if(func1(data3) < 1){validate85.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate85.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}}}}}}else {validate85.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate85.errors = vErrors;return errors === 0;}validate85.evaluated = {"props":{"cpu":true,"memory_mib":true,"reason_code":true,"message":true},"dynamicProps":false,"dynamicItems":false};function validate82(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate82.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.provider_label === undefined) && (missing0 = "provider_label"))) || ((data.account_id === undefined) && (missing0 = "account_id"))) || ((data.account_label === undefined) && (missing0 = "account_label"))) || ((data.supply === undefined) && (missing0 = "supply"))) || ((data.ready === undefined) && (missing0 = "ready"))) || ((data.region === undefined) && (missing0 = "region"))) || ((data.size === undefined) && (missing0 = "size"))) || ((data.reason_code === undefined) && (missing0 = "reason_code"))) || ((data.message === undefined) && (missing0 = "message"))) || ((data.link_target === undefined) && (missing0 = "link_target"))){validate82.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.profile !== undefined){const _errs1 = errors;if(typeof data.profile !== "string"){validate82.errors = [{instancePath:instancePath+"/profile",schemaPath:"#/properties/profile/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.provider !== undefined){let data1 = data.provider;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 64){validate82.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data1) < 1){validate82.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data1)){validate82.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate82.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/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_label !== undefined){let data2 = data.provider_label;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate82.errors = [{instancePath:instancePath+"/provider_label",schemaPath:"#/properties/provider_label/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate82.errors = [{instancePath:instancePath+"/provider_label",schemaPath:"#/properties/provider_label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate82.errors = [{instancePath:instancePath+"/provider_label",schemaPath:"#/properties/provider_label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.account_id !== undefined){let data3 = data.account_id;const _errs7 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate82.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: schema92.properties.account_id.type},message:"must be string,null"}];return false;}if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 128){validate82.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate82.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.account_label !== undefined){let data4 = data.account_label;const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate82.errors = [{instancePath:instancePath+"/account_label",schemaPath:"#/properties/account_label/type",keyword:"type",params:{type: schema92.properties.account_label.type},message:"must be string,null"}];return false;}if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) > 128){validate82.errors = [{instancePath:instancePath+"/account_label",schemaPath:"#/properties/account_label/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data4) < 1){validate82.errors = [{instancePath:instancePath+"/account_label",schemaPath:"#/properties/account_label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.supply !== undefined){let data5 = data.supply;const _errs11 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate82.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/type",keyword:"type",params:{type: schema92.properties.supply.type},message:"must be string,null"}];return false;}if(!(((data5 === "byok") || (data5 === "managed")) || (data5 === null))){validate82.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/enum",keyword:"enum",params:{allowedValues: schema92.properties.supply.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.ready !== undefined){const _errs13 = errors;if(typeof data.ready !== "boolean"){validate82.errors = [{instancePath:instancePath+"/ready",schemaPath:"#/properties/ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.region !== undefined){let data7 = data.region;const _errs15 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate82.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/type",keyword:"type",params:{type: schema92.properties.region.type},message:"must be string,null"}];return false;}if(errors === _errs15){if(typeof data7 === "string"){if(func1(data7) > 128){validate82.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data7) < 1){validate82.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.size !== undefined){let data8 = data.size;const _errs17 = errors;const _errs18 = errors;let valid1 = false;const _errs19 = errors;if(!(validate83(data8, {instancePath:instancePath+"/size",parentData:data,parentDataProperty:"size",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);errors = vErrors.length;}var _valid0 = _errs19 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.cpu = true;props0.memory_mib = true;}const _errs20 = errors;if(data8 !== null){const err0 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs20 === errors;valid1 = valid1 || _valid0;if(!valid1){const err1 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate82.errors = vErrors;return false;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.cpu_options !== undefined){let data9 = data.cpu_options;const _errs22 = errors;if(errors === _errs22){if(Array.isArray(data9)){var valid2 = true;const len0 = data9.length;for(let i0=0; i0<len0; i0++){let data10 = data9[i0];const _errs24 = errors;const _errs25 = errors;const _errs26 = errors;let valid4 = false;const _errs27 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err2 = {instancePath:instancePath+"/cpu_options/" + i0,schemaPath:"#/properties/cpu_options/items/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid1 = _errs27 === errors;valid4 = valid4 || _valid1;const _errs29 = errors;if(typeof data10 !== "bigint"){const err3 = {instancePath:instancePath+"/cpu_options/" + i0,schemaPath:"#/properties/cpu_options/items/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs29 === errors;valid4 = valid4 || _valid1;if(!valid4){const err4 = {instancePath:instancePath+"/cpu_options/" + i0,schemaPath:"#/properties/cpu_options/items/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate82.errors = vErrors;return false;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}var valid3 = _errs25 === errors;if(valid3){if(typeof data10 === "bigint"){if(data10 < 1){validate82.errors = [{instancePath:instancePath+"/cpu_options/" + i0,schemaPath:"#/properties/cpu_options/items/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs24){if((typeof data10 == "number") && (isFinite(data10))){if(data10 < 1 || isNaN(data10)){validate82.errors = [{instancePath:instancePath+"/cpu_options/" + i0,schemaPath:"#/properties/cpu_options/items/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid2 = _errs24 === errors;if(!valid2){break;}}if(valid2){let i1 = data9.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data9[i1], data9[j0])){validate82.errors = [{instancePath:instancePath+"/cpu_options",schemaPath:"#/properties/cpu_options/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break outer0;}}}}}}else {validate82.errors = [{instancePath:instancePath+"/cpu_options",schemaPath:"#/properties/cpu_options/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs22 === errors;}else {var valid0 = true;}if(valid0){if(data.vcpu_options !== undefined){let data11 = data.vcpu_options;const _errs30 = errors;if(errors === _errs30){if(Array.isArray(data11)){var valid6 = true;const len1 = data11.length;for(let i2=0; i2<len1; i2++){let data12 = data11[i2];const _errs32 = errors;const _errs33 = errors;const _errs34 = errors;let valid8 = false;const _errs35 = errors;if(!(((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12))) && (isFinite(data12)))){const err5 = {instancePath:instancePath+"/vcpu_options/" + i2,schemaPath:"#/properties/vcpu_options/items/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs35 === errors;valid8 = valid8 || _valid2;const _errs37 = errors;if(typeof data12 !== "bigint"){const err6 = {instancePath:instancePath+"/vcpu_options/" + i2,schemaPath:"#/properties/vcpu_options/items/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs37 === errors;valid8 = valid8 || _valid2;if(!valid8){const err7 = {instancePath:instancePath+"/vcpu_options/" + i2,schemaPath:"#/properties/vcpu_options/items/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;validate82.errors = vErrors;return false;}else {errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}}var valid7 = _errs33 === errors;if(valid7){if(typeof data12 === "bigint"){if(data12 < 1){validate82.errors = [{instancePath:instancePath+"/vcpu_options/" + i2,schemaPath:"#/properties/vcpu_options/items/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs32){if((typeof data12 == "number") && (isFinite(data12))){if(data12 < 1 || isNaN(data12)){validate82.errors = [{instancePath:instancePath+"/vcpu_options/" + i2,schemaPath:"#/properties/vcpu_options/items/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid6 = _errs32 === errors;if(!valid6){break;}}if(valid6){let i3 = data11.length;let j1;if(i3 > 1){outer1:for(;i3--;){for(j1 = i3; j1--;){if(func0(data11[i3], data11[j1])){validate82.errors = [{instancePath:instancePath+"/vcpu_options",schemaPath:"#/properties/vcpu_options/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"}];return false;break outer1;}}}}}}else {validate82.errors = [{instancePath:instancePath+"/vcpu_options",schemaPath:"#/properties/vcpu_options/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs30 === errors;}else {var valid0 = true;}if(valid0){if(data.unavailable_shapes !== undefined){let data13 = data.unavailable_shapes;const _errs38 = errors;if(errors === _errs38){if(Array.isArray(data13)){if(data13.length > 16){validate82.errors = [{instancePath:instancePath+"/unavailable_shapes",schemaPath:"#/properties/unavailable_shapes/maxItems",keyword:"maxItems",params:{limit: 16},message:"must NOT have more than 16 items"}];return false;}else {var valid10 = true;const len2 = data13.length;for(let i4=0; i4<len2; i4++){const _errs40 = errors;if(!(validate85(data13[i4], {instancePath:instancePath+"/unavailable_shapes/" + i4,parentData:data13,parentDataProperty:i4,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate85.errors : vErrors.concat(validate85.errors);errors = vErrors.length;}var valid10 = _errs40 === errors;if(!valid10){break;}}}}else {validate82.errors = [{instancePath:instancePath+"/unavailable_shapes",schemaPath:"#/properties/unavailable_shapes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs38 === errors;}else {var valid0 = true;}if(valid0){if(data.max_job_minutes !== undefined){let data15 = data.max_job_minutes;const _errs41 = errors;const _errs42 = errors;const _errs43 = errors;let valid12 = false;const _errs44 = errors;if((!(((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15))) && (isFinite(data15)))) && (data15 !== null)){const err8 = {instancePath:instancePath+"/max_job_minutes",schemaPath:"#/properties/max_job_minutes/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema92.properties.max_job_minutes.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid3 = _errs44 === errors;valid12 = valid12 || _valid3;const _errs46 = errors;if(typeof data15 !== "bigint"){const err9 = {instancePath:instancePath+"/max_job_minutes",schemaPath:"#/properties/max_job_minutes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs46 === errors;valid12 = valid12 || _valid3;if(!valid12){const err10 = {instancePath:instancePath+"/max_job_minutes",schemaPath:"#/properties/max_job_minutes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;validate82.errors = vErrors;return false;}else {errors = _errs43;if(vErrors !== null){if(_errs43){vErrors.length = _errs43;}else {vErrors = null;}}}var valid11 = _errs42 === errors;if(valid11){if(typeof data15 === "bigint"){if(data15 < 1){validate82.errors = [{instancePath:instancePath+"/max_job_minutes",schemaPath:"#/properties/max_job_minutes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs41){if((typeof data15 == "number") && (isFinite(data15))){if(data15 < 1 || isNaN(data15)){validate82.errors = [{instancePath:instancePath+"/max_job_minutes",schemaPath:"#/properties/max_job_minutes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs41 === errors;}else {var valid0 = true;}if(valid0){if(data.reason_code !== undefined){let data16 = data.reason_code;const _errs47 = errors;if((typeof data16 !== "string") && (data16 !== null)){validate82.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: schema92.properties.reason_code.type},message:"must be string,null"}];return false;}var valid0 = _errs47 === errors;}else {var valid0 = true;}if(valid0){if(data.message !== undefined){let data17 = data.message;const _errs49 = errors;if((typeof data17 !== "string") && (data17 !== null)){validate82.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type: schema92.properties.message.type},message:"must be string,null"}];return false;}if(errors === _errs49){if(typeof data17 === "string"){if(func1(data17) > 512){validate82.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}else {if(func1(data17) < 1){validate82.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs49 === errors;}else {var valid0 = true;}if(valid0){if(data.link_target !== undefined){let data18 = data.link_target;const _errs51 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate82.errors = [{instancePath:instancePath+"/link_target",schemaPath:"#/properties/link_target/type",keyword:"type",params:{type: schema92.properties.link_target.type},message:"must be string,null"}];return false;}if(!(((data18 === "byok") || (data18 === "credits")) || (data18 === null))){validate82.errors = [{instancePath:instancePath+"/link_target",schemaPath:"#/properties/link_target/enum",keyword:"enum",params:{allowedValues: schema92.properties.link_target.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs51 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}else {validate82.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate82.errors = vErrors;return errors === 0;}validate82.evaluated = {"props":{"profile":true,"provider":true,"provider_label":true,"account_id":true,"account_label":true,"supply":true,"ready":true,"region":true,"size":true,"cpu_options":true,"vcpu_options":true,"unavailable_shapes":true,"max_job_minutes":true,"reason_code":true,"message":true,"link_target":true},"dynamicProps":false,"dynamicItems":false};const schema95 = {"type":"object","required":["label","providers"],"properties":{"profile":{"type":"string","x-boxrouter-open-enum":true,"description":"Software profile covered by this runner label's readiness evidence."},"label":{"type":"string","minLength":1,"maxLength":128},"objective":{"type":["string","null"],"enum":["any",null],"x-boxrouter-choices":{"any":{"label":"Any Fit","line":"on any available provider with this size."}},"description":"Always `any`; runner labels no longer select an ordering objective. Routing preference comes from the workspace Routing setting."},"size":{"$ref":"#/components/schemas/ActionsRunnerLabelSize"},"providers":{"type":"array","uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"}},"objective_ranked":{"type":"boolean"},"vcpu":{"deprecated":true,"description":"Temporary compatibility field. Use size.cpu.","exclusiveMinimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"memory_gb":{"deprecated":true,"description":"Temporary compatibility field. Use size.memory_mib.","exclusiveMinimum":0,"allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"os_label":{"deprecated":true,"description":"Temporary compatibility field. Derive this from the runner label.","type":["string","null"],"minLength":1,"maxLength":128}},"anyOf":[{"required":["size"]},{"required":["vcpu","memory_gb"]}]};const schema96 = {"type":"object","required":["memory_mib"],"properties":{"cpu":{"exclusiveMinimum":0,"description":"Normalized virtual CPU count when the provider declares it. Omitted for memory-selected labels without a CPU floor.","allOf":[{"anyOf":[{"type":"number"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"memory_mib":{"minimum":1,"description":"Normalized memory in MiB.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}};function validate89(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate89.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.memory_mib === undefined) && (missing0 = "memory_mib")){validate89.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.cpu !== undefined){let data0 = data.cpu;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!((typeof data0 == "number") && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate89.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){validate89.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/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)){validate89.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.memory_mib !== undefined){let data1 = data.memory_mib;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+"/memory_mib",schemaPath:"#/properties/memory_mib/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+"/memory_mib",schemaPath:"#/properties/memory_mib/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+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate89.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 < 1){validate89.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/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 < 1 || isNaN(data1)){validate89.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}else {validate89.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate89.errors = vErrors;return errors === 0;}validate89.evaluated = {"props":{"cpu":true,"memory_mib":true},"dynamicProps":false,"dynamicItems":false};function validate88(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate88.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.size === undefined) && (missing0 = "size")){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((data.vcpu === undefined) && (missing1 = "vcpu")) || ((data.memory_gb === undefined) && (missing1 = "memory_gb"))){const err1 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}var _valid0 = _errs3 === errors;valid0 = valid0 || _valid0;if(!valid0){const err2 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate88.errors = vErrors;return false;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((data.label === undefined) && (missing2 = "label")) || ((data.providers === undefined) && (missing2 = "providers"))){validate88.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data.profile !== undefined){const _errs4 = errors;if(typeof data.profile !== "string"){validate88.errors = [{instancePath:instancePath+"/profile",schemaPath:"#/properties/profile/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs4 === errors;}else {var valid1 = true;}if(valid1){if(data.label !== undefined){let data1 = data.label;const _errs6 = errors;if(errors === _errs6){if(typeof data1 === "string"){if(func1(data1) > 128){validate88.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate88.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate88.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs6 === errors;}else {var valid1 = true;}if(valid1){if(data.objective !== undefined){let data2 = data.objective;const _errs8 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate88.errors = [{instancePath:instancePath+"/objective",schemaPath:"#/properties/objective/type",keyword:"type",params:{type: schema95.properties.objective.type},message:"must be string,null"}];return false;}if(!((data2 === "any") || (data2 === null))){validate88.errors = [{instancePath:instancePath+"/objective",schemaPath:"#/properties/objective/enum",keyword:"enum",params:{allowedValues: schema95.properties.objective.enum},message:"must be equal to one of the allowed values"}];return false;}var valid1 = _errs8 === errors;}else {var valid1 = true;}if(valid1){if(data.size !== undefined){const _errs10 = errors;if(!(validate89(data.size, {instancePath:instancePath+"/size",parentData:data,parentDataProperty:"size",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate89.errors : vErrors.concat(validate89.errors);errors = vErrors.length;}var valid1 = _errs10 === errors;}else {var valid1 = true;}if(valid1){if(data.providers !== undefined){let data4 = data.providers;const _errs11 = errors;if(errors === _errs11){if(Array.isArray(data4)){var valid2 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs13 = errors;if(errors === _errs13){if(typeof data5 === "string"){if(func1(data5) > 64){validate88.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data5) < 1){validate88.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data5)){validate88.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate88.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs13 === errors;if(!valid2){break;}}if(valid2){let i1 = data4.length;let j0;if(i1 > 1){const indices0 = {};for(;i1--;){let item0 = data4[i1];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate88.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break;}indices0[item0] = i1;}}}}else {validate88.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data.objective_ranked !== undefined){const _errs15 = errors;if(typeof data.objective_ranked !== "boolean"){validate88.errors = [{instancePath:instancePath+"/objective_ranked",schemaPath:"#/properties/objective_ranked/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data.vcpu !== undefined){let data7 = data.vcpu;const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;let valid5 = false;const _errs20 = errors;if(!((typeof data7 == "number") && (isFinite(data7)))){const err3 = {instancePath:instancePath+"/vcpu",schemaPath:"#/properties/vcpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs20 === errors;valid5 = valid5 || _valid1;const _errs22 = errors;if(typeof data7 !== "bigint"){const err4 = {instancePath:instancePath+"/vcpu",schemaPath:"#/properties/vcpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs22 === errors;valid5 = valid5 || _valid1;if(!valid5){const err5 = {instancePath:instancePath+"/vcpu",schemaPath:"#/properties/vcpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate88.errors = vErrors;return false;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}var valid4 = _errs18 === errors;if(valid4){if(typeof data7 === "bigint"){if(data7 <= 0){validate88.errors = [{instancePath:instancePath+"/vcpu",schemaPath:"#/properties/vcpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs17){if((typeof data7 == "number") && (isFinite(data7))){if(data7 <= 0 || isNaN(data7)){validate88.errors = [{instancePath:instancePath+"/vcpu",schemaPath:"#/properties/vcpu/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data.memory_gb !== undefined){let data8 = data.memory_gb;const _errs23 = errors;const _errs24 = errors;const _errs25 = errors;let valid7 = false;const _errs26 = errors;if(!((typeof data8 == "number") && (isFinite(data8)))){const err6 = {instancePath:instancePath+"/memory_gb",schemaPath:"#/properties/memory_gb/allOf/0/anyOf/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs26 === errors;valid7 = valid7 || _valid2;const _errs28 = errors;if(typeof data8 !== "bigint"){const err7 = {instancePath:instancePath+"/memory_gb",schemaPath:"#/properties/memory_gb/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 _valid2 = _errs28 === errors;valid7 = valid7 || _valid2;if(!valid7){const err8 = {instancePath:instancePath+"/memory_gb",schemaPath:"#/properties/memory_gb/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate88.errors = vErrors;return false;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}var valid6 = _errs24 === errors;if(valid6){if(typeof data8 === "bigint"){if(data8 <= 0){validate88.errors = [{instancePath:instancePath+"/memory_gb",schemaPath:"#/properties/memory_gb/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs23){if((typeof data8 == "number") && (isFinite(data8))){if(data8 <= 0 || isNaN(data8)){validate88.errors = [{instancePath:instancePath+"/memory_gb",schemaPath:"#/properties/memory_gb/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data.os_label !== undefined){let data9 = data.os_label;const _errs29 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate88.errors = [{instancePath:instancePath+"/os_label",schemaPath:"#/properties/os_label/type",keyword:"type",params:{type: schema95.properties.os_label.type},message:"must be string,null"}];return false;}if(errors === _errs29){if(typeof data9 === "string"){if(func1(data9) > 128){validate88.errors = [{instancePath:instancePath+"/os_label",schemaPath:"#/properties/os_label/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data9) < 1){validate88.errors = [{instancePath:instancePath+"/os_label",schemaPath:"#/properties/os_label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid1 = _errs29 === errors;}else {var valid1 = true;}}}}}}}}}}}else {validate88.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate88.errors = vErrors;return errors === 0;}validate88.evaluated = {"props":{"profile":true,"label":true,"objective":true,"size":true,"providers":true,"objective_ranked":true,"vcpu":true,"memory_gb":true,"os_label":true},"dynamicProps":false,"dynamicItems":false};function validate81(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate81.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.runners_ready === undefined) && (missing0 = "runners_ready")){validate81.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.profile !== undefined){const _errs1 = errors;if(typeof data.profile !== "string"){validate81.errors = [{instancePath:instancePath+"/profile",schemaPath:"#/properties/profile/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.runners_ready !== undefined){const _errs3 = errors;if(typeof data.runners_ready !== "boolean"){validate81.errors = [{instancePath:instancePath+"/runners_ready",schemaPath:"#/properties/runners_ready/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.providers !== undefined){let data2 = data.providers;const _errs5 = errors;if(errors === _errs5){if(Array.isArray(data2)){var valid1 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){const _errs7 = errors;if(!(validate82(data2[i0], {instancePath:instancePath+"/providers/" + i0,parentData:data2,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate82.errors : vErrors.concat(validate82.errors);errors = vErrors.length;}var valid1 = _errs7 === errors;if(!valid1){break;}}}else {validate81.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.runner_labels !== undefined){let data4 = data.runner_labels;const _errs8 = errors;if(errors === _errs8){if(Array.isArray(data4)){var valid2 = true;const len1 = data4.length;for(let i1=0; i1<len1; i1++){const _errs10 = errors;if(!(validate88(data4[i1], {instancePath:instancePath+"/runner_labels/" + i1,parentData:data4,parentDataProperty:i1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate88.errors : vErrors.concat(validate88.errors);errors = vErrors.length;}var valid2 = _errs10 === errors;if(!valid2){break;}}}else {validate81.errors = [{instancePath:instancePath+"/runner_labels",schemaPath:"#/properties/runner_labels/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.reason_code !== undefined){let data6 = data.reason_code;const _errs11 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate81.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: schema91.properties.reason_code.type},message:"must be string,null"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.disk_min_mib !== undefined){let data7 = data.disk_min_mib;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid4 = false;const _errs16 = errors;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err0 = {instancePath:instancePath+"/disk_min_mib",schemaPath:"#/properties/disk_min_mib/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 = _errs16 === errors;valid4 = valid4 || _valid0;const _errs18 = errors;if(typeof data7 !== "bigint"){const err1 = {instancePath:instancePath+"/disk_min_mib",schemaPath:"#/properties/disk_min_mib/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 = _errs18 === errors;valid4 = valid4 || _valid0;if(!valid4){const err2 = {instancePath:instancePath+"/disk_min_mib",schemaPath:"#/properties/disk_min_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate81.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid3 = _errs14 === errors;if(valid3){if(typeof data7 === "bigint"){if(data7 < 1){validate81.errors = [{instancePath:instancePath+"/disk_min_mib",schemaPath:"#/properties/disk_min_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 1 || isNaN(data7)){validate81.errors = [{instancePath:instancePath+"/disk_min_mib",schemaPath:"#/properties/disk_min_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.message !== undefined){let data8 = data.message;const _errs19 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate81.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type: schema91.properties.message.type},message:"must be string,null"}];return false;}if(errors === _errs19){if(typeof data8 === "string"){if(func1(data8) > 512){validate81.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}else {if(func1(data8) < 1){validate81.errors = [{instancePath:instancePath+"/message",schemaPath:"#/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.link_target !== undefined){let data9 = data.link_target;const _errs21 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate81.errors = [{instancePath:instancePath+"/link_target",schemaPath:"#/properties/link_target/type",keyword:"type",params:{type: schema91.properties.link_target.type},message:"must be string,null"}];return false;}if(!(((data9 === "byok") || (data9 === "credits")) || (data9 === null))){validate81.errors = [{instancePath:instancePath+"/link_target",schemaPath:"#/properties/link_target/enum",keyword:"enum",params:{allowedValues: schema91.properties.link_target.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs21 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate81.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate81.errors = vErrors;return errors === 0;}validate81.evaluated = {"props":{"profile":true,"runners_ready":true,"providers":true,"runner_labels":true,"reason_code":true,"disk_min_mib":true,"message":true,"link_target":true},"dynamicProps":false,"dynamicItems":false};const schema97 = {"description":"Domain-owned recommended labels and requested resource floors. This catalog does not assert live route availability or verified software. A label selects the machine size and image tier only; routing preference comes from the workspace Routing setting. Removed label spellings are not accepted.","type":"object","required":["version","runners","profiles","profile_source","standard_labels","default_label"],"properties":{"version":{"const":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]},"runners":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/ActionsRunnerCatalogEntry"}},"profiles":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","minLength":1}},"profile_source":{"type":"string","const":"runner_label"},"standard_labels":{"type":"array","uniqueItems":true,"items":{"type":"string","minLength":1}},"default_label":{"type":"string","minLength":1,"maxLength":200}}};const schema98 = {"type":"object","required":["label","shape","profile"],"properties":{"label":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"},"shape":{"$ref":"#/components/schemas/ActionsRunnerCatalogShape"},"profile":{"type":"string","x-boxrouter-open-enum":true,"description":"Image tier this label selects; `full` is admitted only where the workspace's allowed_profiles covers it."}}};const pattern44 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]*$", "u");const schema99 = {"type":"object","required":["name","cpu","memory_mib","architecture","operating_system"],"properties":{"name":{"type":"string","minLength":1},"cpu":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"memory_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"architecture":{"type":"string","minLength":1},"operating_system":{"type":"string","minLength":1}}};function validate95(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate95.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.name === undefined) && (missing0 = "name")) || ((data.cpu === undefined) && (missing0 = "cpu"))) || ((data.memory_mib === undefined) && (missing0 = "memory_mib"))) || ((data.architecture === undefined) && (missing0 = "architecture"))) || ((data.operating_system === undefined) && (missing0 = "operating_system"))){validate95.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.name !== undefined){let data0 = data.name;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate95.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate95.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.cpu !== undefined){let data1 = data.cpu;const _errs3 = errors;const _errs4 = errors;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err0 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/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+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate95.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid1 = _errs4 === errors;if(valid1){if(typeof data1 === "bigint"){if(data1 < 1){validate95.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs3){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 1 || isNaN(data1)){validate95.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.memory_mib !== undefined){let data2 = data.memory_mib;const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;let valid4 = false;const _errs12 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err3 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs12 === errors;valid4 = valid4 || _valid1;const _errs14 = errors;if(typeof data2 !== "bigint"){const err4 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs14 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate95.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var valid3 = _errs10 === errors;if(valid3){if(typeof data2 === "bigint"){if(data2 < 1){validate95.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs9){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate95.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.architecture !== undefined){let data3 = data.architecture;const _errs15 = errors;if(errors === _errs15){if(typeof data3 === "string"){if(func1(data3) < 1){validate95.errors = [{instancePath:instancePath+"/architecture",schemaPath:"#/properties/architecture/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate95.errors = [{instancePath:instancePath+"/architecture",schemaPath:"#/properties/architecture/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.operating_system !== undefined){let data4 = data.operating_system;const _errs17 = errors;if(errors === _errs17){if(typeof data4 === "string"){if(func1(data4) < 1){validate95.errors = [{instancePath:instancePath+"/operating_system",schemaPath:"#/properties/operating_system/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate95.errors = [{instancePath:instancePath+"/operating_system",schemaPath:"#/properties/operating_system/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs17 === errors;}else {var valid0 = true;}}}}}}}else {validate95.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate95.errors = vErrors;return errors === 0;}validate95.evaluated = {"props":{"name":true,"cpu":true,"memory_mib":true,"architecture":true,"operating_system":true},"dynamicProps":false,"dynamicItems":false};function validate94(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate94.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.label === undefined) && (missing0 = "label")) || ((data.shape === undefined) && (missing0 = "shape"))) || ((data.profile === undefined) && (missing0 = "profile"))){validate94.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.label !== undefined){let data0 = data.label;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 200){validate94.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func1(data0) < 1){validate94.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern44.test(data0)){validate94.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/pattern",keyword:"pattern",params:{pattern: "^[A-Za-z0-9][A-Za-z0-9._-]*$"},message:"must match pattern \""+"^[A-Za-z0-9][A-Za-z0-9._-]*$"+"\""}];return false;}}}}else {validate94.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.shape !== undefined){const _errs3 = errors;if(!(validate95(data.shape, {instancePath:instancePath+"/shape",parentData:data,parentDataProperty:"shape",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);errors = vErrors.length;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.profile !== undefined){const _errs4 = errors;if(typeof data.profile !== "string"){validate94.errors = [{instancePath:instancePath+"/profile",schemaPath:"#/properties/profile/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}}else {validate94.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate94.errors = vErrors;return errors === 0;}validate94.evaluated = {"props":{"label":true,"shape":true,"profile":true},"dynamicProps":false,"dynamicItems":false};function validate93(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate93.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.version === undefined) && (missing0 = "version")) || ((data.runners === undefined) && (missing0 = "runners"))) || ((data.profiles === undefined) && (missing0 = "profiles"))) || ((data.profile_source === undefined) && (missing0 = "profile_source"))) || ((data.standard_labels === undefined) && (missing0 = "standard_labels"))) || ((data.default_label === undefined) && (missing0 = "default_label"))){validate93.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.version !== undefined){let data0 = data.version;const _errs1 = errors;if(1 !== data0){validate93.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"}];return false;}else {const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/version",schemaPath:"#/properties/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 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/version",schemaPath:"#/properties/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 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/version",schemaPath:"#/properties/version/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate93.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.runners !== undefined){let data1 = data.runners;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data1)){if(data1.length < 1){validate93.errors = [{instancePath:instancePath+"/runners",schemaPath:"#/properties/runners/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid3 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(!(validate94(data1[i0], {instancePath:instancePath+"/runners/" + i0,parentData:data1,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors);errors = vErrors.length;}var valid3 = _errs9 === errors;if(!valid3){break;}}}}else {validate93.errors = [{instancePath:instancePath+"/runners",schemaPath:"#/properties/runners/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.profiles !== undefined){let data3 = data.profiles;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data3)){if(data3.length < 1){validate93.errors = [{instancePath:instancePath+"/profiles",schemaPath:"#/properties/profiles/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid4 = true;const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];const _errs12 = errors;if(errors === _errs12){if(typeof data4 === "string"){if(func1(data4) < 1){validate93.errors = [{instancePath:instancePath+"/profiles/" + i1,schemaPath:"#/properties/profiles/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate93.errors = [{instancePath:instancePath+"/profiles/" + i1,schemaPath:"#/properties/profiles/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs12 === errors;if(!valid4){break;}}if(valid4){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];validate93.errors = [{instancePath:instancePath+"/profiles",schemaPath:"#/properties/profiles/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 {validate93.errors = [{instancePath:instancePath+"/profiles",schemaPath:"#/properties/profiles/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}if(valid0){if(data.profile_source !== undefined){let data5 = data.profile_source;const _errs14 = errors;if(typeof data5 !== "string"){validate93.errors = [{instancePath:instancePath+"/profile_source",schemaPath:"#/properties/profile_source/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("runner_label" !== data5){validate93.errors = [{instancePath:instancePath+"/profile_source",schemaPath:"#/properties/profile_source/const",keyword:"const",params:{allowedValue: "runner_label"},message:"must be equal to constant"}];return false;}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.standard_labels !== undefined){let data6 = data.standard_labels;const _errs16 = errors;if(errors === _errs16){if(Array.isArray(data6)){var valid6 = true;const len2 = data6.length;for(let i3=0; i3<len2; i3++){let data7 = data6[i3];const _errs18 = errors;if(errors === _errs18){if(typeof data7 === "string"){if(func1(data7) < 1){validate93.errors = [{instancePath:instancePath+"/standard_labels/" + i3,schemaPath:"#/properties/standard_labels/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate93.errors = [{instancePath:instancePath+"/standard_labels/" + i3,schemaPath:"#/properties/standard_labels/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs18 === errors;if(!valid6){break;}}if(valid6){let i4 = data6.length;let j1;if(i4 > 1){const indices1 = {};for(;i4--;){let item1 = data6[i4];if(typeof item1 !== "string"){continue;}if(typeof indices1[item1] == "number"){j1 = indices1[item1];validate93.errors = [{instancePath:instancePath+"/standard_labels",schemaPath:"#/properties/standard_labels/uniqueItems",keyword:"uniqueItems",params:{i: i4, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i4+" are identical)"}];return false;break;}indices1[item1] = i4;}}}}else {validate93.errors = [{instancePath:instancePath+"/standard_labels",schemaPath:"#/properties/standard_labels/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.default_label !== undefined){let data8 = data.default_label;const _errs20 = errors;if(errors === _errs20){if(typeof data8 === "string"){if(func1(data8) > 200){validate93.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func1(data8) < 1){validate93.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate93.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs20 === errors;}else {var valid0 = true;}}}}}}}}else {validate93.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate93.errors = vErrors;return errors === 0;}validate93.evaluated = {"props":{"version":true,"runners":true,"profiles":true,"profile_source":true,"standard_labels":true,"default_label":true},"dynamicProps":false,"dynamicItems":false};function validate80(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate80.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.readiness === undefined) && (missing0 = "readiness")){validate80.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.readiness !== undefined){const _errs1 = errors;if(!(validate81(data.readiness, {instancePath:instancePath+"/readiness",parentData:data,parentDataProperty:"readiness",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate81.errors : vErrors.concat(validate81.errors);errors = vErrors.length;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.runner_catalog !== undefined){const _errs2 = errors;if(!(validate93(data.runner_catalog, {instancePath:instancePath+"/runner_catalog",parentData:data,parentDataProperty:"runner_catalog",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);errors = vErrors.length;}var valid0 = _errs2 === errors;}else {var valid0 = true;}}}}else {validate80.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate80.errors = vErrors;return errors === 0;}validate80.evaluated = {"props":{"readiness":true,"runner_catalog":true},"dynamicProps":false,"dynamicItems":false};exports.validate3 = validate99;function validate99(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate99.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.version === undefined) && (missing0 = "version")) || ((data.runners === undefined) && (missing0 = "runners"))) || ((data.profiles === undefined) && (missing0 = "profiles"))) || ((data.profile_source === undefined) && (missing0 = "profile_source"))) || ((data.standard_labels === undefined) && (missing0 = "standard_labels"))) || ((data.default_label === undefined) && (missing0 = "default_label"))){validate99.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.version !== undefined){let data0 = data.version;const _errs1 = errors;if(1 !== data0){validate99.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"}];return false;}else {const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/version",schemaPath:"#/properties/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 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/version",schemaPath:"#/properties/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 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/version",schemaPath:"#/properties/version/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate99.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.runners !== undefined){let data1 = data.runners;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data1)){if(data1.length < 1){validate99.errors = [{instancePath:instancePath+"/runners",schemaPath:"#/properties/runners/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid3 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){const _errs9 = errors;if(!(validate94(data1[i0], {instancePath:instancePath+"/runners/" + i0,parentData:data1,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors);errors = vErrors.length;}var valid3 = _errs9 === errors;if(!valid3){break;}}}}else {validate99.errors = [{instancePath:instancePath+"/runners",schemaPath:"#/properties/runners/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.profiles !== undefined){let data3 = data.profiles;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data3)){if(data3.length < 1){validate99.errors = [{instancePath:instancePath+"/profiles",schemaPath:"#/properties/profiles/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid4 = true;const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];const _errs12 = errors;if(errors === _errs12){if(typeof data4 === "string"){if(func1(data4) < 1){validate99.errors = [{instancePath:instancePath+"/profiles/" + i1,schemaPath:"#/properties/profiles/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate99.errors = [{instancePath:instancePath+"/profiles/" + i1,schemaPath:"#/properties/profiles/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs12 === errors;if(!valid4){break;}}if(valid4){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];validate99.errors = [{instancePath:instancePath+"/profiles",schemaPath:"#/properties/profiles/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 {validate99.errors = [{instancePath:instancePath+"/profiles",schemaPath:"#/properties/profiles/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}if(valid0){if(data.profile_source !== undefined){let data5 = data.profile_source;const _errs14 = errors;if(typeof data5 !== "string"){validate99.errors = [{instancePath:instancePath+"/profile_source",schemaPath:"#/properties/profile_source/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("runner_label" !== data5){validate99.errors = [{instancePath:instancePath+"/profile_source",schemaPath:"#/properties/profile_source/const",keyword:"const",params:{allowedValue: "runner_label"},message:"must be equal to constant"}];return false;}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.standard_labels !== undefined){let data6 = data.standard_labels;const _errs16 = errors;if(errors === _errs16){if(Array.isArray(data6)){var valid6 = true;const len2 = data6.length;for(let i3=0; i3<len2; i3++){let data7 = data6[i3];const _errs18 = errors;if(errors === _errs18){if(typeof data7 === "string"){if(func1(data7) < 1){validate99.errors = [{instancePath:instancePath+"/standard_labels/" + i3,schemaPath:"#/properties/standard_labels/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate99.errors = [{instancePath:instancePath+"/standard_labels/" + i3,schemaPath:"#/properties/standard_labels/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs18 === errors;if(!valid6){break;}}if(valid6){let i4 = data6.length;let j1;if(i4 > 1){const indices1 = {};for(;i4--;){let item1 = data6[i4];if(typeof item1 !== "string"){continue;}if(typeof indices1[item1] == "number"){j1 = indices1[item1];validate99.errors = [{instancePath:instancePath+"/standard_labels",schemaPath:"#/properties/standard_labels/uniqueItems",keyword:"uniqueItems",params:{i: i4, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i4+" are identical)"}];return false;break;}indices1[item1] = i4;}}}}else {validate99.errors = [{instancePath:instancePath+"/standard_labels",schemaPath:"#/properties/standard_labels/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.default_label !== undefined){let data8 = data.default_label;const _errs20 = errors;if(errors === _errs20){if(typeof data8 === "string"){if(func1(data8) > 200){validate99.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func1(data8) < 1){validate99.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate99.errors = [{instancePath:instancePath+"/default_label",schemaPath:"#/properties/default_label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs20 === errors;}else {var valid0 = true;}}}}}}}}else {validate99.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate99.errors = vErrors;return errors === 0;}validate99.evaluated = {"props":{"version":true,"runners":true,"profiles":true,"profile_source":true,"standard_labels":true,"default_label":true},"dynamicProps":false,"dynamicItems":false};exports.validate4 = validate101;const schema101 = {"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ActionsPolicy"}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}}};const schema102 = {"type":"object","required":["id","name","settings","revision","updated_at"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"settings":{"$ref":"#/components/schemas/ActionsPolicySettings"},"revision":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"updated_at":{"type":"string","format":"date-time"}}};const pattern46 = new RegExp("^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$", "u");const schema103 = {"type":"object","properties":{"profile":{"type":"string","enum":["linux-basic","full"],"default":"linux-basic","description":"Stored preference only; the runner label selects the image tier at admission. `full` is admitted only where its image and route are verified and the workspace's allowed_profiles covers it."},"preferences":{"$ref":"#/components/schemas/ProviderPreferences","description":"Soft provider order, exclusions, sort and fallback permission, shared with sandbox creation. They narrow and never add supply, accounts or authority."},"allowed_providers":{"type":"array","uniqueItems":true,"minItems":1,"items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"description":"Optional allowlist that can only narrow workspace-approved routes."},"allowed_regions":{"type":"array","uniqueItems":true,"minItems":1,"items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"description":"Reserved until Actions can verify each placement region. New non-null values are refused; a previously saved region restriction keeps admission closed rather than selecting an unverified region."},"allowed_route_ids":{"type":"array","uniqueItems":true,"minItems":1,"items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"description":"Optional list of exact route IDs owned by this workspace. It can only narrow workspace-approved routes; the IDs are validated against current workspace routes at admission."},"max_runtime_seconds":{"minimum":1,"maximum":1800,"description":"Maximum runtime after GitHub actually assigns a job; pickup allowance is separate.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":1800}},"max_customer_charge_usd":{"type":["string","null"],"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Optional exact US-dollar cap; null removes this policy's cap but does not widen workspace guardrails."}}};const schema54 = {"type":"object","description":"The one provider-preference contract shared by sandbox creation, launch placement and\nActions policy settings. Every property is optional; omitted properties inherit.\nPrecedence, narrowest last: workspace restrictions are the ceiling, then a repository\ndefault or named Actions policy, then a workflow, then request controls. Hard\nrestrictions (provider allowlists, route, account, supply, region, privacy, origin and\nspend) intersect and can only narrow; request ignore unions with workspace exclusions.\nA request true never lifts a workspace allow_fallbacks false. When workspace\nprevent_overrides is on, containing order, sort or allow_fallbacks is refused with\nrouting_overrides_forbidden even if the value matches the workspace; `only` still\nnarrows as a set and cannot reorder workspace ranking. Otherwise soft preference values\nreplace inherited values without widening authority. `order: []` and `ignore: []` are valid empty soft\narrays that name no preference and no exclusion; inherited hard authority is unchanged.\nEach list must hold distinct values; null is never valid for any property.\n`order` prioritizes named providers in listed order; eligible providers omitted from\nit remain candidates afterward, ranked by the existing router order. When `only`\nis supplied, it remains the hard ordered allowlist and caps eligible providers; `order`\nmay rearrange its members, while omitted members retain `only` order. `ignore`\nexcludes providers even when named by `only` or `order`. `sort` ranks routes\nwithin a provider. `allow_fallbacks` defaults to true and controls whether\ncreation may dispatch a later eligible route after a provider definitively refuses before\ncreating a sandbox. This includes another account for the same provider. False stops after\nthe first route dispatch. Eligibility and preparation may skip a route before dispatch.\nProvider, account, supply, payer and requirements constraints remain binding.\n","properties":{"order":{"type":"array","uniqueItems":true,"description":"Softly prioritize these providers in the listed order. Eligible providers omitted\nfrom this list remain candidates afterward using the existing router order. When\n`only` is supplied, it remains the ordered hard allowlist and caps eligibility;\nthis order rearranges its members and omitted members retain their `only` order.\n","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}},"only":{"$ref":"#/components/schemas/ProviderAllowlist"},"ignore":{"type":"array","uniqueItems":true,"description":"Providers to exclude from routing, even if also named in `only` or `order`.","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}},"sort":{"type":"string","enum":["price","time"],"x-boxrouter-choices":{"price":{"label":"Price","line":"Lowest hourly price first.","measure":"price","better":"lower"},"time":{"label":"Time","line":"Shortest run time measured on reference workloads first.","measure":"time","better":"lower"}},"description":"How eligible routes are ranked. `price` picks the lowest hourly price. `time` picks the shortest run time, measured on reference workloads.\n"},"allow_fallbacks":{"type":"boolean","default":true,"description":"Whether Cloud may dispatch a later eligible route after a provider definitively\nrefuses before creating a sandbox; defaults to true and continues until a route\ncreates the sandbox or no eligible route remains. If `only` is supplied, it\nlimits eligible providers; `preferences.order` takes precedence for their order, with\n`preferences.sort` ranking routes within each provider.\nFalse stops after the first route dispatch, including when a later route uses another\naccount for the same provider. Local eligibility or preparation failures may skip a\nroute before dispatch. This does not expand the provider allowlist or relax route,\naccount, supply, payer or requirements restrictions.\n"}}};const schema55 = {"type":"array","minItems":1,"uniqueItems":true,"description":"Used as `preferences.only`, this is the hard allowlist of eligible providers. `preferences.order`\ntakes precedence for their order; otherwise this list's order applies. `preferences.sort`\nranks eligible routes within each provider. Route, account, supply,\npayer and requirements restrictions still constrain every route, and unlisted providers\nare never considered. A one-provider list prevents cross-provider fallback while allowing\nlater eligible routes for that provider when `preferences.allow_fallbacks` is true.\nSetting it to false stops after the first route dispatch, including a later account for\nthe same provider.\n","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate30.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.order !== undefined){let data0 = data.order;const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){let data1 = data0[i0];const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate30.errors = [{instancePath:instancePath+"/order/" + i0,schemaPath:"#/properties/order/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate30.errors = [{instancePath:instancePath+"/order/" + i0,schemaPath:"#/properties/order/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate30.errors = [{instancePath:instancePath+"/order/" + i0,schemaPath:"#/properties/order/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate30.errors = [{instancePath:instancePath+"/order/" + i0,schemaPath:"#/properties/order/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs3 === errors;if(!valid1){break;}}if(valid1){let i1 = data0.length;let j0;if(i1 > 1){const indices0 = {};for(;i1--;){let item0 = data0[i1];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate30.errors = [{instancePath:instancePath+"/order",schemaPath:"#/properties/order/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break;}indices0[item0] = i1;}}}}else {validate30.errors = [{instancePath:instancePath+"/order",schemaPath:"#/properties/order/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.only !== undefined){let data2 = data.only;const _errs5 = errors;const _errs6 = errors;if(errors === _errs6){if(Array.isArray(data2)){if(data2.length < 1){validate30.errors = [{instancePath:instancePath+"/only",schemaPath:"#/components/schemas/ProviderAllowlist/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid4 = true;const len1 = data2.length;for(let i2=0; i2<len1; i2++){let data3 = data2[i2];const _errs8 = errors;if(errors === _errs8){if(typeof data3 === "string"){if(func1(data3) > 128){validate30.errors = [{instancePath:instancePath+"/only/" + i2,schemaPath:"#/components/schemas/ProviderAllowlist/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate30.errors = [{instancePath:instancePath+"/only/" + i2,schemaPath:"#/components/schemas/ProviderAllowlist/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data3)){validate30.errors = [{instancePath:instancePath+"/only/" + i2,schemaPath:"#/components/schemas/ProviderAllowlist/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate30.errors = [{instancePath:instancePath+"/only/" + i2,schemaPath:"#/components/schemas/ProviderAllowlist/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs8 === errors;if(!valid4){break;}}if(valid4){let i3 = data2.length;let j1;if(i3 > 1){const indices1 = {};for(;i3--;){let item1 = data2[i3];if(typeof item1 !== "string"){continue;}if(typeof indices1[item1] == "number"){j1 = indices1[item1];validate30.errors = [{instancePath:instancePath+"/only",schemaPath:"#/components/schemas/ProviderAllowlist/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"}];return false;break;}indices1[item1] = i3;}}}}}else {validate30.errors = [{instancePath:instancePath+"/only",schemaPath:"#/components/schemas/ProviderAllowlist/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.ignore !== undefined){let data4 = data.ignore;const _errs10 = errors;if(errors === _errs10){if(Array.isArray(data4)){var valid6 = true;const len2 = data4.length;for(let i4=0; i4<len2; i4++){let data5 = data4[i4];const _errs12 = errors;if(errors === _errs12){if(typeof data5 === "string"){if(func1(data5) > 128){validate30.errors = [{instancePath:instancePath+"/ignore/" + i4,schemaPath:"#/properties/ignore/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data5) < 1){validate30.errors = [{instancePath:instancePath+"/ignore/" + i4,schemaPath:"#/properties/ignore/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data5)){validate30.errors = [{instancePath:instancePath+"/ignore/" + i4,schemaPath:"#/properties/ignore/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate30.errors = [{instancePath:instancePath+"/ignore/" + i4,schemaPath:"#/properties/ignore/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs12 === errors;if(!valid6){break;}}if(valid6){let i5 = data4.length;let j2;if(i5 > 1){const indices2 = {};for(;i5--;){let item2 = data4[i5];if(typeof item2 !== "string"){continue;}if(typeof indices2[item2] == "number"){j2 = indices2[item2];validate30.errors = [{instancePath:instancePath+"/ignore",schemaPath:"#/properties/ignore/uniqueItems",keyword:"uniqueItems",params:{i: i5, j: j2},message:"must NOT have duplicate items (items ## "+j2+" and "+i5+" are identical)"}];return false;break;}indices2[item2] = i5;}}}}else {validate30.errors = [{instancePath:instancePath+"/ignore",schemaPath:"#/properties/ignore/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs10 === errors;}else {var valid0 = true;}if(valid0){if(data.sort !== undefined){let data6 = data.sort;const _errs14 = errors;if(typeof data6 !== "string"){validate30.errors = [{instancePath:instancePath+"/sort",schemaPath:"#/properties/sort/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data6 === "price") || (data6 === "time"))){validate30.errors = [{instancePath:instancePath+"/sort",schemaPath:"#/properties/sort/enum",keyword:"enum",params:{allowedValues: schema54.properties.sort.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.allow_fallbacks !== undefined){const _errs16 = errors;if(typeof data.allow_fallbacks !== "boolean"){validate30.errors = [{instancePath:instancePath+"/allow_fallbacks",schemaPath:"#/properties/allow_fallbacks/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs16 === errors;}else {var valid0 = true;}}}}}}else {validate30.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":{"order":true,"only":true,"ignore":true,"sort":true,"allow_fallbacks":true},"dynamicProps":false,"dynamicItems":false};const pattern50 = new RegExp("^(0|[1-9][0-9]*)(\\.[0-9]+)?$", "u");function validate103(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate103.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.profile !== undefined){let data0 = data.profile;const _errs1 = errors;if(typeof data0 !== "string"){validate103.errors = [{instancePath:instancePath+"/profile",schemaPath:"#/properties/profile/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data0 === "linux-basic") || (data0 === "full"))){validate103.errors = [{instancePath:instancePath+"/profile",schemaPath:"#/properties/profile/enum",keyword:"enum",params:{allowedValues: schema103.properties.profile.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.preferences !== undefined){const _errs3 = errors;if(!(validate30(data.preferences, {instancePath:instancePath+"/preferences",parentData:data,parentDataProperty:"preferences",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.allowed_providers !== undefined){let data2 = data.allowed_providers;const _errs4 = errors;if(errors === _errs4){if(Array.isArray(data2)){if(data2.length < 1){validate103.errors = [{instancePath:instancePath+"/allowed_providers",schemaPath:"#/properties/allowed_providers/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs6 = errors;if(errors === _errs6){if(typeof data3 === "string"){if(func1(data3) > 64){validate103.errors = [{instancePath:instancePath+"/allowed_providers/" + i0,schemaPath:"#/properties/allowed_providers/items/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data3) < 1){validate103.errors = [{instancePath:instancePath+"/allowed_providers/" + i0,schemaPath:"#/properties/allowed_providers/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data3)){validate103.errors = [{instancePath:instancePath+"/allowed_providers/" + i0,schemaPath:"#/properties/allowed_providers/items/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate103.errors = [{instancePath:instancePath+"/allowed_providers/" + i0,schemaPath:"#/properties/allowed_providers/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs6 === errors;if(!valid1){break;}}if(valid1){let i1 = data2.length;let j0;if(i1 > 1){const indices0 = {};for(;i1--;){let item0 = data2[i1];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate103.errors = [{instancePath:instancePath+"/allowed_providers",schemaPath:"#/properties/allowed_providers/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break;}indices0[item0] = i1;}}}}}else {validate103.errors = [{instancePath:instancePath+"/allowed_providers",schemaPath:"#/properties/allowed_providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.allowed_regions !== undefined){let data4 = data.allowed_regions;const _errs8 = errors;if(errors === _errs8){if(Array.isArray(data4)){if(data4.length < 1){validate103.errors = [{instancePath:instancePath+"/allowed_regions",schemaPath:"#/properties/allowed_regions/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid3 = true;const len1 = data4.length;for(let i2=0; i2<len1; i2++){let data5 = data4[i2];const _errs10 = errors;if(errors === _errs10){if(typeof data5 === "string"){if(func1(data5) > 128){validate103.errors = [{instancePath:instancePath+"/allowed_regions/" + i2,schemaPath:"#/properties/allowed_regions/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data5) < 1){validate103.errors = [{instancePath:instancePath+"/allowed_regions/" + i2,schemaPath:"#/properties/allowed_regions/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data5)){validate103.errors = [{instancePath:instancePath+"/allowed_regions/" + i2,schemaPath:"#/properties/allowed_regions/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate103.errors = [{instancePath:instancePath+"/allowed_regions/" + i2,schemaPath:"#/properties/allowed_regions/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid3 = _errs10 === errors;if(!valid3){break;}}if(valid3){let i3 = data4.length;let j1;if(i3 > 1){const indices1 = {};for(;i3--;){let item1 = data4[i3];if(typeof item1 !== "string"){continue;}if(typeof indices1[item1] == "number"){j1 = indices1[item1];validate103.errors = [{instancePath:instancePath+"/allowed_regions",schemaPath:"#/properties/allowed_regions/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"}];return false;break;}indices1[item1] = i3;}}}}}else {validate103.errors = [{instancePath:instancePath+"/allowed_regions",schemaPath:"#/properties/allowed_regions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.allowed_route_ids !== undefined){let data6 = data.allowed_route_ids;const _errs12 = errors;if(errors === _errs12){if(Array.isArray(data6)){if(data6.length < 1){validate103.errors = [{instancePath:instancePath+"/allowed_route_ids",schemaPath:"#/properties/allowed_route_ids/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid5 = true;const len2 = data6.length;for(let i4=0; i4<len2; i4++){let data7 = data6[i4];const _errs14 = errors;if(errors === _errs14){if(typeof data7 === "string"){if(func1(data7) > 128){validate103.errors = [{instancePath:instancePath+"/allowed_route_ids/" + i4,schemaPath:"#/properties/allowed_route_ids/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data7) < 1){validate103.errors = [{instancePath:instancePath+"/allowed_route_ids/" + i4,schemaPath:"#/properties/allowed_route_ids/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data7)){validate103.errors = [{instancePath:instancePath+"/allowed_route_ids/" + i4,schemaPath:"#/properties/allowed_route_ids/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate103.errors = [{instancePath:instancePath+"/allowed_route_ids/" + i4,schemaPath:"#/properties/allowed_route_ids/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs14 === errors;if(!valid5){break;}}if(valid5){let i5 = data6.length;let j2;if(i5 > 1){const indices2 = {};for(;i5--;){let item2 = data6[i5];if(typeof item2 !== "string"){continue;}if(typeof indices2[item2] == "number"){j2 = indices2[item2];validate103.errors = [{instancePath:instancePath+"/allowed_route_ids",schemaPath:"#/properties/allowed_route_ids/uniqueItems",keyword:"uniqueItems",params:{i: i5, j: j2},message:"must NOT have duplicate items (items ## "+j2+" and "+i5+" are identical)"}];return false;break;}indices2[item2] = i5;}}}}}else {validate103.errors = [{instancePath:instancePath+"/allowed_route_ids",schemaPath:"#/properties/allowed_route_ids/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}if(valid0){if(data.max_runtime_seconds !== undefined){let data8 = data.max_runtime_seconds;const _errs16 = errors;const _errs17 = errors;const _errs18 = errors;let valid8 = false;const _errs19 = errors;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err0 = {instancePath:instancePath+"/max_runtime_seconds",schemaPath:"#/properties/max_runtime_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 = _errs19 === errors;valid8 = valid8 || _valid0;const _errs21 = errors;if(typeof data8 !== "bigint"){const err1 = {instancePath:instancePath+"/max_runtime_seconds",schemaPath:"#/properties/max_runtime_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 = _errs21 === errors;valid8 = valid8 || _valid0;if(!valid8){const err2 = {instancePath:instancePath+"/max_runtime_seconds",schemaPath:"#/properties/max_runtime_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate103.errors = vErrors;return false;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}var valid7 = _errs17 === errors;if(valid7){if(typeof data8 === "bigint"){if(data8 < 1){validate103.errors = [{instancePath:instancePath+"/max_runtime_seconds",schemaPath:"#/properties/max_runtime_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data8 > 1800){validate103.errors = [{instancePath:instancePath+"/max_runtime_seconds",schemaPath:"#/properties/max_runtime_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs16){if((typeof data8 == "number") && (isFinite(data8))){if(data8 > 1800 || isNaN(data8)){validate103.errors = [{instancePath:instancePath+"/max_runtime_seconds",schemaPath:"#/properties/max_runtime_seconds/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1800},message:"must be <= 1800"}];return false;}else {if(data8 < 1 || isNaN(data8)){validate103.errors = [{instancePath:instancePath+"/max_runtime_seconds",schemaPath:"#/properties/max_runtime_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.max_customer_charge_usd !== undefined){let data9 = data.max_customer_charge_usd;const _errs22 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate103.errors = [{instancePath:instancePath+"/max_customer_charge_usd",schemaPath:"#/properties/max_customer_charge_usd/type",keyword:"type",params:{type: schema103.properties.max_customer_charge_usd.type},message:"must be string,null"}];return false;}if(errors === _errs22){if(typeof data9 === "string"){if(!pattern50.test(data9)){validate103.errors = [{instancePath:instancePath+"/max_customer_charge_usd",schemaPath:"#/properties/max_customer_charge_usd/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}}var valid0 = _errs22 === errors;}else {var valid0 = true;}}}}}}}}else {validate103.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate103.errors = vErrors;return errors === 0;}validate103.evaluated = {"props":{"profile":true,"preferences":true,"allowed_providers":true,"allowed_regions":true,"allowed_route_ids":true,"max_runtime_seconds":true,"max_customer_charge_usd":true},"dynamicProps":false,"dynamicItems":false};function validate102(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate102.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.settings === undefined) && (missing0 = "settings"))) || ((data.revision === undefined) && (missing0 = "revision"))) || ((data.updated_at === undefined) && (missing0 = "updated_at"))){validate102.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate102.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate102.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate102.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate102.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){let data1 = data.name;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 64){validate102.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data1) < 1){validate102.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern46.test(data1)){validate102.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},message:"must match pattern \""+"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"+"\""}];return false;}}}}else {validate102.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.settings !== undefined){const _errs5 = errors;if(!(validate103(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate103.errors : vErrors.concat(validate103.errors);errors = vErrors.length;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.revision !== undefined){let data3 = data.revision;const _errs6 = errors;const _errs7 = errors;const _errs8 = errors;let valid2 = false;const _errs9 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err0 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs9 === errors;valid2 = valid2 || _valid0;const _errs11 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs11 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate102.errors = vErrors;return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var valid1 = _errs7 === errors;if(valid1){if(typeof data3 === "bigint"){if(data3 < 1){validate102.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs6){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate102.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.updated_at !== undefined){let data4 = data.updated_at;const _errs12 = errors;if(errors === _errs12){if(errors === _errs12){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate102.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate102.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs12 === errors;}else {var valid0 = true;}}}}}}}else {validate102.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate102.errors = vErrors;return errors === 0;}validate102.evaluated = {"props":{"id":true,"name":true,"settings":true,"revision":true,"updated_at":true},"dynamicProps":false,"dynamicItems":false};function validate101(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate101.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"))){validate101.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(!(validate102(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate102.errors : vErrors.concat(validate102.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate101.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)){validate101.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema101.properties.next_cursor.type},message:"must be string,null"}];return false;}if(errors === _errs4){if(typeof data2 === "string"){if(func1(data2) > 128){validate101.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate101.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate101.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}else {validate101.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate101.errors = vErrors;return errors === 0;}validate101.evaluated = {"props":{"data":true,"next_cursor":true},"dynamicProps":false,"dynamicItems":false};exports.validate5 = validate107;function validate107(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate107.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.settings === undefined) && (missing0 = "settings"))) || ((data.revision === undefined) && (missing0 = "revision"))) || ((data.updated_at === undefined) && (missing0 = "updated_at"))){validate107.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate107.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate107.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate107.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate107.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){let data1 = data.name;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 64){validate107.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data1) < 1){validate107.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern46.test(data1)){validate107.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},message:"must match pattern \""+"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"+"\""}];return false;}}}}else {validate107.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.settings !== undefined){const _errs5 = errors;if(!(validate103(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate103.errors : vErrors.concat(validate103.errors);errors = vErrors.length;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.revision !== undefined){let data3 = data.revision;const _errs6 = errors;const _errs7 = errors;const _errs8 = errors;let valid2 = false;const _errs9 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err0 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs9 === errors;valid2 = valid2 || _valid0;const _errs11 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs11 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate107.errors = vErrors;return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var valid1 = _errs7 === errors;if(valid1){if(typeof data3 === "bigint"){if(data3 < 1){validate107.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs6){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate107.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.updated_at !== undefined){let data4 = data.updated_at;const _errs12 = errors;if(errors === _errs12){if(errors === _errs12){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate107.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate107.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs12 === errors;}else {var valid0 = true;}}}}}}}else {validate107.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate107.errors = vErrors;return errors === 0;}validate107.evaluated = {"props":{"id":true,"name":true,"settings":true,"revision":true,"updated_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate6 = validate109;function validate109(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate109.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.settings === undefined) && (missing0 = "settings"))) || ((data.revision === undefined) && (missing0 = "revision"))) || ((data.updated_at === undefined) && (missing0 = "updated_at"))){validate109.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate109.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate109.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate109.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate109.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){let data1 = data.name;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 64){validate109.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data1) < 1){validate109.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern46.test(data1)){validate109.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},message:"must match pattern \""+"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"+"\""}];return false;}}}}else {validate109.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.settings !== undefined){const _errs5 = errors;if(!(validate103(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate103.errors : vErrors.concat(validate103.errors);errors = vErrors.length;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.revision !== undefined){let data3 = data.revision;const _errs6 = errors;const _errs7 = errors;const _errs8 = errors;let valid2 = false;const _errs9 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err0 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs9 === errors;valid2 = valid2 || _valid0;const _errs11 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs11 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate109.errors = vErrors;return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var valid1 = _errs7 === errors;if(valid1){if(typeof data3 === "bigint"){if(data3 < 1){validate109.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs6){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate109.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.updated_at !== undefined){let data4 = data.updated_at;const _errs12 = errors;if(errors === _errs12){if(errors === _errs12){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate109.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate109.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs12 === errors;}else {var valid0 = true;}}}}}}}else {validate109.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate109.errors = vErrors;return errors === 0;}validate109.evaluated = {"props":{"id":true,"name":true,"settings":true,"revision":true,"updated_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate7 = validate111;function validate111(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate111.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.settings === undefined) && (missing0 = "settings"))) || ((data.revision === undefined) && (missing0 = "revision"))) || ((data.updated_at === undefined) && (missing0 = "updated_at"))){validate111.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate111.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate111.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate111.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate111.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){let data1 = data.name;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 64){validate111.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data1) < 1){validate111.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern46.test(data1)){validate111.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern: "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},message:"must match pattern \""+"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"+"\""}];return false;}}}}else {validate111.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.settings !== undefined){const _errs5 = errors;if(!(validate103(data.settings, {instancePath:instancePath+"/settings",parentData:data,parentDataProperty:"settings",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate103.errors : vErrors.concat(validate103.errors);errors = vErrors.length;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.revision !== undefined){let data3 = data.revision;const _errs6 = errors;const _errs7 = errors;const _errs8 = errors;let valid2 = false;const _errs9 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err0 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs9 === errors;valid2 = valid2 || _valid0;const _errs11 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/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 = _errs11 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate111.errors = vErrors;return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var valid1 = _errs7 === errors;if(valid1){if(typeof data3 === "bigint"){if(data3 < 1){validate111.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs6){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate111.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.updated_at !== undefined){let data4 = data.updated_at;const _errs12 = errors;if(errors === _errs12){if(errors === _errs12){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate111.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate111.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs12 === errors;}else {var valid0 = true;}}}}}}}else {validate111.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate111.errors = vErrors;return errors === 0;}validate111.evaluated = {"props":{"id":true,"name":true,"settings":true,"revision":true,"updated_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate8 = validate113;const schema107 = {"type":"object","required":["repository_id","label","status","eligible_routes","exclusions","reason"],"properties":{"repository_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"label":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string","enum":["eligible","refused","unknown"]},"eligible_routes":{"type":"array","items":{"$ref":"#/components/schemas/ActionsPreviewRoute"}},"exclusions":{"type":"array","items":{"$ref":"#/components/schemas/ActionsPreviewExclusion"}},"reason":{"type":["string","null"],"minLength":1,"maxLength":1024}}};const schema108 = {"type":"object","required":["provider","region"],"properties":{"provider":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"region":{"type":["string","null"],"minLength":1,"maxLength":128}}};const schema109 = {"type":"object","required":["provider","code","reason"],"properties":{"provider":{"type":["string","null"],"minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"code":{"type":"string","minLength":1,"maxLength":128,"description":"Stable refusal category; clients must preserve future values."},"reason":{"type":"string","minLength":1,"maxLength":1024}}};function validate113(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate113.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.repository_id === undefined) && (missing0 = "repository_id")) || ((data.label === undefined) && (missing0 = "label"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.eligible_routes === undefined) && (missing0 = "eligible_routes"))) || ((data.exclusions === undefined) && (missing0 = "exclusions"))) || ((data.reason === undefined) && (missing0 = "reason"))){validate113.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.repository_id !== undefined){let data0 = data.repository_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate113.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate113.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate113.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate113.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_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.label !== undefined){let data1 = data.label;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate113.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate113.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate113.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){let data2 = data.status;const _errs5 = errors;if(typeof data2 !== "string"){validate113.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data2 === "eligible") || (data2 === "refused")) || (data2 === "unknown"))){validate113.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema107.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.eligible_routes !== undefined){let data3 = data.eligible_routes;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data3)){var valid1 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if(((data4.provider === undefined) && (missing1 = "provider")) || ((data4.region === undefined) && (missing1 = "region"))){validate113.errors = [{instancePath:instancePath+"/eligible_routes/" + i0,schemaPath:"#/components/schemas/ActionsPreviewRoute/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data4.provider !== undefined){let data5 = data4.provider;const _errs12 = errors;if(errors === _errs12){if(typeof data5 === "string"){if(func1(data5) > 64){validate113.errors = [{instancePath:instancePath+"/eligible_routes/" + i0+"/provider",schemaPath:"#/components/schemas/ActionsPreviewRoute/properties/provider/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data5) < 1){validate113.errors = [{instancePath:instancePath+"/eligible_routes/" + i0+"/provider",schemaPath:"#/components/schemas/ActionsPreviewRoute/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data5)){validate113.errors = [{instancePath:instancePath+"/eligible_routes/" + i0+"/provider",schemaPath:"#/components/schemas/ActionsPreviewRoute/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate113.errors = [{instancePath:instancePath+"/eligible_routes/" + i0+"/provider",schemaPath:"#/components/schemas/ActionsPreviewRoute/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid3 = _errs12 === errors;}else {var valid3 = true;}if(valid3){if(data4.region !== undefined){let data6 = data4.region;const _errs14 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate113.errors = [{instancePath:instancePath+"/eligible_routes/" + i0+"/region",schemaPath:"#/components/schemas/ActionsPreviewRoute/properties/region/type",keyword:"type",params:{type: schema108.properties.region.type},message:"must be string,null"}];return false;}if(errors === _errs14){if(typeof data6 === "string"){if(func1(data6) > 128){validate113.errors = [{instancePath:instancePath+"/eligible_routes/" + i0+"/region",schemaPath:"#/components/schemas/ActionsPreviewRoute/properties/region/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data6) < 1){validate113.errors = [{instancePath:instancePath+"/eligible_routes/" + i0+"/region",schemaPath:"#/components/schemas/ActionsPreviewRoute/properties/region/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid3 = _errs14 === errors;}else {var valid3 = true;}}}}else {validate113.errors = [{instancePath:instancePath+"/eligible_routes/" + i0,schemaPath:"#/components/schemas/ActionsPreviewRoute/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs9 === errors;if(!valid1){break;}}}else {validate113.errors = [{instancePath:instancePath+"/eligible_routes",schemaPath:"#/properties/eligible_routes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.exclusions !== undefined){let data7 = data.exclusions;const _errs16 = errors;if(errors === _errs16){if(Array.isArray(data7)){var valid4 = true;const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];const _errs18 = errors;const _errs19 = errors;if(errors === _errs19){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){let missing2;if((((data8.provider === undefined) && (missing2 = "provider")) || ((data8.code === undefined) && (missing2 = "code"))) || ((data8.reason === undefined) && (missing2 = "reason"))){validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1,schemaPath:"#/components/schemas/ActionsPreviewExclusion/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data8.provider !== undefined){let data9 = data8.provider;const _errs21 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1+"/provider",schemaPath:"#/components/schemas/ActionsPreviewExclusion/properties/provider/type",keyword:"type",params:{type: schema109.properties.provider.type},message:"must be string,null"}];return false;}if(errors === _errs21){if(typeof data9 === "string"){if(func1(data9) > 64){validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1+"/provider",schemaPath:"#/components/schemas/ActionsPreviewExclusion/properties/provider/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data9) < 1){validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1+"/provider",schemaPath:"#/components/schemas/ActionsPreviewExclusion/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data9)){validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1+"/provider",schemaPath:"#/components/schemas/ActionsPreviewExclusion/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}}var valid6 = _errs21 === errors;}else {var valid6 = true;}if(valid6){if(data8.code !== undefined){let data10 = data8.code;const _errs23 = errors;if(errors === _errs23){if(typeof data10 === "string"){if(func1(data10) > 128){validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1+"/code",schemaPath:"#/components/schemas/ActionsPreviewExclusion/properties/code/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data10) < 1){validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1+"/code",schemaPath:"#/components/schemas/ActionsPreviewExclusion/properties/code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1+"/code",schemaPath:"#/components/schemas/ActionsPreviewExclusion/properties/code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs23 === errors;}else {var valid6 = true;}if(valid6){if(data8.reason !== undefined){let data11 = data8.reason;const _errs25 = errors;if(errors === _errs25){if(typeof data11 === "string"){if(func1(data11) > 1024){validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1+"/reason",schemaPath:"#/components/schemas/ActionsPreviewExclusion/properties/reason/maxLength",keyword:"maxLength",params:{limit: 1024},message:"must NOT have more than 1024 characters"}];return false;}else {if(func1(data11) < 1){validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1+"/reason",schemaPath:"#/components/schemas/ActionsPreviewExclusion/properties/reason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1+"/reason",schemaPath:"#/components/schemas/ActionsPreviewExclusion/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs25 === errors;}else {var valid6 = true;}}}}}else {validate113.errors = [{instancePath:instancePath+"/exclusions/" + i1,schemaPath:"#/components/schemas/ActionsPreviewExclusion/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs18 === errors;if(!valid4){break;}}}else {validate113.errors = [{instancePath:instancePath+"/exclusions",schemaPath:"#/properties/exclusions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.reason !== undefined){let data12 = data.reason;const _errs27 = errors;if((typeof data12 !== "string") && (data12 !== null)){validate113.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/type",keyword:"type",params:{type: schema107.properties.reason.type},message:"must be string,null"}];return false;}if(errors === _errs27){if(typeof data12 === "string"){if(func1(data12) > 1024){validate113.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/maxLength",keyword:"maxLength",params:{limit: 1024},message:"must NOT have more than 1024 characters"}];return false;}else {if(func1(data12) < 1){validate113.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs27 === errors;}else {var valid0 = true;}}}}}}}}else {validate113.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate113.errors = vErrors;return errors === 0;}validate113.evaluated = {"props":{"repository_id":true,"label":true,"status":true,"eligible_routes":true,"exclusions":true,"reason":true},"dynamicProps":false,"dynamicItems":false};exports.validate9 = validate114;const schema110 = {"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ActionsRun"}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"counts":{"$ref":"#/components/schemas/ActionsRunCounts","description":"Workspace-wide tab counts, independent of the query's filters."},"total":{"minimum":0,"description":"Number of runs matching this query's filters, across all pages.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}};const schema111 = {"type":"object","required":["id","github_run_id","run_attempt","repository_id","workflow_name","state","result","created_at","updated_at","billing"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"github_run_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"run_attempt":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"repository_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"repository":{"type":"string","minLength":1,"maxLength":255,"description":"Durable GitHub repository full name when known."},"workflow_name":{"type":["string","null"],"minLength":1,"maxLength":255},"workflow":{"type":"string","minLength":1,"maxLength":255,"description":"GitHub workflow name when known."},"branch":{"type":"string","minLength":1,"maxLength":255,"description":"Head branch when known."},"run_url":{"type":"string","format":"uri","maxLength":2048,"description":"GitHub workflow run URL when known."},"head_branch":{"type":["string","null"],"minLength":1,"maxLength":255},"head_sha":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"run_number":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"display_title":{"type":"string","minLength":1},"actor":{"$ref":"#/components/schemas/ActionsGitHubActor","description":"Original actor GitHub recorded for the workflow run. Absent when unknown."},"triggering_actor":{"$ref":"#/components/schemas/ActionsGitHubActor","description":"Actor who triggered the current run attempt","separately recorded by GitHub. Absent when unknown.":null},"state":{"$ref":"#/components/schemas/ActionsRunState"},"result":{"$ref":"#/components/schemas/ActionsWorkResult"},"failure":{"$ref":"#/components/schemas/ActionsFailure"},"waiting":{"$ref":"#/components/schemas/ActionsRunWaiting"},"sources":{"type":"object","additionalProperties":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"providers":{"type":"array","uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"description":"Provider IDs that ran this run's jobs, distinct, in job order. Absent when no job has been placed."},"started_at":{"type":"string","format":"date-time","description":"When the first job of this run started. Absent until one has."},"completed_at":{"type":["string","null"],"format":"date-time","description":"When the last job of this run ended. Null while the run is active; absent when the run ended and no end time was confirmed."},"billing":{"$ref":"#/components/schemas/ActionsBilling"},"controls":{"$ref":"#/components/schemas/ActionsRunControls","description":"Optional caller-specific workflow controls for this exact attempt. Mutation routes recheck authorization and the live GitHub attempt."},"cost":{"anyOf":[{"$ref":"#/components/schemas/ActionsCost"},{"type":"null"}],"description":"Sum of job costs. Null when one or more job costs are unknown; pending with a null amount when at least one job has no amount yet. Never presents a partial sum as the run total."}}};const schema112 = {"type":"object","required":["login","profile_url"],"properties":{"login":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[^\\u0000]*$"},"profile_url":{"type":["string","null"],"format":"uri","maxLength":2048,"pattern":"^https://github\\.com/(apps/)?[^/?#]+$","description":"The actor's GitHub profile, or https://github.com/apps/<slug> for a GitHub App bot."}}};const schema114 = {"type":"string","enum":["queued","preparing","starting","running","stopping","ended","attention_required"]};const schema115 = {"type":["string","null"],"enum":["success","workload_failure","cancelled","timed_out","infrastructure_failure","skipped","neutral","unknown",null]};const schema116 = {"type":"object","required":["kind","reason_code","message","link_target"],"properties":{"kind":{"type":"string","enum":["workflow","boxrouter"]},"reason_code":{"type":["string","null"],"maxLength":128,"pattern":"^[a-z][a-z0-9_.-]{0,127}$"},"message":{"type":["string","null"],"minLength":1,"maxLength":1024},"link_target":{"type":["string","null"],"enum":["byok","credits","github",null]}}};const schema117 = {"type":"object","description":"The longest-waiting job of a run that has jobs waiting. Absent when none waits and from servers that predate it.","required":["job_count","reason_code","since"],"properties":{"job_count":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"reason_code":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9_]{0,63}$"},"since":{"type":"string","format":"date-time"}}};const pattern66 = new RegExp("^https://github\\.com/(apps/)?[^/?#]+$", "u");const pattern70 = new RegExp("^[a-z][a-z0-9_]{0,63}$", "u");const schema118 = {"type":"object","required":["provider_cost","customer_charge"],"properties":{"provider_cost":{"description":"Existing sandbox provider-cost projection; null means no cost evidence is available.","anyOf":[{"type":"object","required":["label","total"],"description":"The label and total of a sandbox's cost, as list rows carry them. Both are the full cost's:\nsee the `cost` schema for what they mean. Actions billing adds the cost's `summary`, the one\nsentence that says what the total is or why there is none; list rows do not carry it.\n","properties":{"label":{"$ref":"#/components/schemas/CostLabel"},"total":{"$ref":"#/components/schemas/CostTotal"},"summary":{"$ref":"#/components/schemas/summary"}},"if":{"properties":{"label":{"const":"unknown"}},"required":["label"]},"then":{"properties":{"total":{"type":"null"}}},"else":{"properties":{"total":{"type":"object"}}},"additionalProperties":false},{"title":"Cost","description":"A provider-sourced sandbox cost. Unknown has a null total; known totals are exact decimal strings. Hourly rate-card quotes may be ranges.","type":"object","required":["label","total","lines","held_back_by","exclusions","price_version","as_of"],"properties":{"label":{"description":"reported: a provider amount verified at list price; calculated: provider usage priced at stored list rates; unknown: required provider evidence or a rate is missing.","enum":["reported","calculated","unknown"]},"total":{"description":"An exact USD amount, low equal to high, or null for unknown.","anyOf":[{"$ref":"#/components/schemas/CostTotalRange"},{"type":"null"}]},"lines":{"description":"The working: one line per charged resource. Empty when the provider's own figure is all we have, or when nothing could be worked out.","type":"array","items":{"type":"object","required":["what","quantity","unit","rate","amount","quantity_source"],"properties":{"what":{"enum":["cpu","memory","disk","gpu","machine","creation","egress","snapshot_storage"]},"quantity":{"$ref":"#/components/schemas/PricingDecimal"},"unit":{"description":"The price version's unit for this rate, for example vcpu-second.","type":"string","minLength":1},"rate":{"description":"US dollars per unit, as the price version states it.","$ref":"#/components/schemas/PricingDecimal"},"amount":{"$ref":"#/components/schemas/PricingDecimal"},"quantity_source":{"description":"The source of the usage facts the quantity came from; the least certain one when it came from several.","$ref":"#/components/schemas/CostSource"},"text":{"description":"The line as a sentence a person reads, with its numbers: the quantity, the rate and the amount.","type":"string","minLength":1},"sources":{"description":"Where each number of the line came from, as words: the quantity, the rate and the amount.","type":"object","required":["amount"],"properties":{"quantity":{"type":"string","minLength":1},"rate":{"type":"string","minLength":1},"amount":{"type":"string","minLength":1}}}}}},"held_back_by":{"description":"Reasons in plain words. Shared pricing findings are projected to their text for the HTTP response.","type":"array","items":{"type":"string","minLength":1}},"exclusions":{"description":"What the figure leaves out, such as plan fees, credits and discounts.","type":"array","items":{"type":"string","minLength":1}},"price_version":{"description":"The id of the price version used, which carries the quotes. Null when none was in effect.","type":["string","null"],"pattern":"^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"},"as_of":{"description":"When Cloud calculated or recorded the cost. A sandbox that has not ended has no cost yet.","$ref":"#/components/schemas/PricingTimestamp"},"per_hour":{"description":"US dollars per hour for an ended sandbox; no hourly cost is returned while it is running.","$ref":"#/components/schemas/CostMoneyRange"},"reported_figure":{"description":"Where a `reported` total came from. Present exactly when the label is `reported`.","type":"object","required":["source","observed_at","how"],"properties":{"source":{"$ref":"#/components/schemas/CostSource","const":"provider"},"observed_at":{"$ref":"#/components/schemas/PricingTimestamp"},"how":{"description":"The API call that returned the figure.","type":"string","minLength":1}}},"summary":{"description":"The total as one sentence, or why there is none. The sentences of `lines[].text` add up to it.","type":"string","minLength":1}},"allOf":[{"if":{"properties":{"label":{"const":"unknown"}},"required":["label"]},"then":{"properties":{"total":{"type":"null"}}},"else":{"properties":{"total":{"type":"object"}}}},{"if":{"properties":{"label":{"const":"reported"}},"required":["label"]},"then":{"required":["reported_figure"]},"else":{"not":{"required":["reported_figure"]}}}],"additionalProperties":false},{"type":"null"}]},"customer_charge":{"$ref":"#/components/schemas/ActionsCharge"}}};const schema119 = {"description":"reported: a provider amount verified at list price; calculated: provider usage priced at stored list rates; unknown: required provider evidence or a rate is missing.","enum":["reported","calculated","unknown"]};const schema124 = {"description":"The total as one sentence, or why there is none. The sentences of `lines[].text` add up to it.","type":"string","minLength":1};const schema122 = {"description":"A non-negative decimal number as a string, in plain notation without an exponent.","type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"};const schema128 = {"description":"Where a fact came from. The same six values as the usage record's source; a test keeps the two lists equal.","type":"string","enum":["provider","published","measured","recorded","calculated","unknown"]};const schema129 = {"description":"A UTC time, ending in Z.","type":"string","format":"date-time","pattern":"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"};const schema120 = {"description":"An exact USD amount, low equal to high, or null for unknown.","anyOf":[{"$ref":"#/components/schemas/CostTotalRange"},{"type":"null"}]};const schema121 = {"description":"Exact USD total: low equals high.","type":"object","required":["low","high"],"properties":{"low":{"$ref":"#/components/schemas/PricingDecimal"},"high":{"$ref":"#/components/schemas/PricingDecimal"}}};function validate118(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate118.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.low === undefined) && (missing0 = "low")) || ((data.high === undefined) && (missing0 = "high"))){validate118.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.low !== undefined){let data0 = data.low;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(typeof data0 === "string"){if(!pattern50.test(data0)){validate118.errors = [{instancePath:instancePath+"/low",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}else {validate118.errors = [{instancePath:instancePath+"/low",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.high !== undefined){let data1 = data.high;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(!pattern50.test(data1)){validate118.errors = [{instancePath:instancePath+"/high",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}else {validate118.errors = [{instancePath:instancePath+"/high",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}else {validate118.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate118.errors = vErrors;return errors === 0;}validate118.evaluated = {"props":{"low":true,"high":true},"dynamicProps":false,"dynamicItems":false};function validate117(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate117.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(!(validate118(data, {instancePath,parentData,parentDataProperty,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate118.errors : vErrors.concat(validate118.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.low = true;props0.high = true;}const _errs2 = errors;if(data !== null){const err0 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;valid0 = valid0 || _valid0;if(!valid0){const err1 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate117.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate117.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate117.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema130 = {"type":"object","required":["low","high"],"properties":{"low":{"$ref":"#/components/schemas/PricingDecimal"},"high":{"$ref":"#/components/schemas/PricingDecimal"}}};function validate122(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate122.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.low === undefined) && (missing0 = "low")) || ((data.high === undefined) && (missing0 = "high"))){validate122.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.low !== undefined){let data0 = data.low;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(typeof data0 === "string"){if(!pattern50.test(data0)){validate122.errors = [{instancePath:instancePath+"/low",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}else {validate122.errors = [{instancePath:instancePath+"/low",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.high !== undefined){let data1 = data.high;const _errs4 = errors;const _errs5 = errors;if(errors === _errs5){if(typeof data1 === "string"){if(!pattern50.test(data1)){validate122.errors = [{instancePath:instancePath+"/high",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}else {validate122.errors = [{instancePath:instancePath+"/high",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}else {validate122.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate122.errors = vErrors;return errors === 0;}validate122.evaluated = {"props":{"low":true,"high":true},"dynamicProps":false,"dynamicItems":false};const schema135 = {"type":"object","required":["state","held","final"],"properties":{"state":{"type":"string","enum":["pending","final","unknown"]},"held":{"description":"Credits held for this charge from the funding quote, if any; a hold, not an incurred provider cost or a final charge.","anyOf":[{"$ref":"#/components/schemas/ActionsMoney"},{"type":"null"}]},"final":{"description":"Final BoxRouter customer charge. Managed charges require settlement in the existing ledger; BYOK compute has an explicit zero charge because the connected provider bills the customer directly. Null while pending or unknown.","anyOf":[{"$ref":"#/components/schemas/ActionsMoney"},{"type":"null"}]},"reason":{"type":["string","null"],"x-boxrouter-open-enum":true,"description":"Optional bounded explanation from the charge evidence already available to this read. It does not report settlement processing, retry or delay state."}},"allOf":[{"if":{"properties":{"state":{"const":"final"}},"required":["state"]},"then":{"properties":{"final":{"$ref":"#/components/schemas/ActionsMoney"}}},"else":{"properties":{"final":{"type":"null"}}}},{"if":{"properties":{"state":{"const":"unknown"}},"required":["state"]},"then":{"properties":{"held":{"type":"null"},"final":{"type":"null"}}}}]};const schema136 = {"type":"object","required":["currency","amount"],"properties":{"currency":{"type":"string","const":"usd"},"amount":{"type":"string","minLength":1,"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Exact non-negative US-dollar amount in plain decimal notation."}}};function validate124(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate124.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.state === undefined) && (missing0 = "state")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.state !== undefined){if("final" !== data.state){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.final !== undefined){let data1 = data.final;const _errs7 = errors;if(errors === _errs7){if(data1 && typeof data1 == "object" && !Array.isArray(data1)){let missing1;if(((data1.currency === undefined) && (missing1 = "currency")) || ((data1.amount === undefined) && (missing1 = "amount"))){validate124.errors = [{instancePath:instancePath+"/final",schemaPath:"#/components/schemas/ActionsMoney/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data1.currency !== undefined){let data2 = data1.currency;const _errs9 = errors;if(typeof data2 !== "string"){validate124.errors = [{instancePath:instancePath+"/final/currency",schemaPath:"#/components/schemas/ActionsMoney/properties/currency/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("usd" !== data2){validate124.errors = [{instancePath:instancePath+"/final/currency",schemaPath:"#/components/schemas/ActionsMoney/properties/currency/const",keyword:"const",params:{allowedValue: "usd"},message:"must be equal to constant"}];return false;}var valid5 = _errs9 === errors;}else {var valid5 = true;}if(valid5){if(data1.amount !== undefined){let data3 = data1.amount;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func1(data3) < 1){validate124.errors = [{instancePath:instancePath+"/final/amount",schemaPath:"#/components/schemas/ActionsMoney/properties/amount/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern50.test(data3)){validate124.errors = [{instancePath:instancePath+"/final/amount",schemaPath:"#/components/schemas/ActionsMoney/properties/amount/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}}else {validate124.errors = [{instancePath:instancePath+"/final/amount",schemaPath:"#/components/schemas/ActionsMoney/properties/amount/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs11 === errors;}else {var valid5 = true;}}}}else {validate124.errors = [{instancePath:instancePath+"/final",schemaPath:"#/components/schemas/ActionsMoney/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.final = true;props0.state = true;}ifClause0 = "then";}else {const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.final !== undefined){if(data.final !== null){validate124.errors = [{instancePath:instancePath+"/final",schemaPath:"#/allOf/0/else/properties/final/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}}}var _valid0 = _errs13 === errors;valid1 = _valid0;if(valid1){if(props0 !== true){props0 = props0 || {};props0.final = true;}}ifClause0 = "else";}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate124.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs16 = errors;const _errs17 = errors;let valid7 = true;const _errs18 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.state === undefined) && (missing2 = "state")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data.state !== undefined){if("unknown" !== data.state){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var _valid1 = _errs18 === errors;errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}if(_valid1){const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.held !== undefined){const _errs21 = errors;if(data.held !== null){validate124.errors = [{instancePath:instancePath+"/held",schemaPath:"#/allOf/1/then/properties/held/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid9 = _errs21 === errors;}else {var valid9 = true;}if(valid9){if(data.final !== undefined){const _errs23 = errors;if(data.final !== null){validate124.errors = [{instancePath:instancePath+"/final",schemaPath:"#/allOf/1/then/properties/final/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid9 = _errs23 === errors;}else {var valid9 = true;}}}var _valid1 = _errs20 === errors;valid7 = _valid1;if(valid7){var props1 = {};props1.held = true;props1.final = true;props1.state = true;}}if(!valid7){const err5 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate124.errors = vErrors;return false;}var valid0 = _errs16 === errors;if(valid0){if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((data.state === undefined) && (missing3 = "state")) || ((data.held === undefined) && (missing3 = "held"))) || ((data.final === undefined) && (missing3 = "final"))){validate124.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.state = true;props0.held = true;props0.final = true;props0.reason = true;}if(data.state !== undefined){let data8 = data.state;const _errs25 = errors;if(typeof data8 !== "string"){validate124.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data8 === "pending") || (data8 === "final")) || (data8 === "unknown"))){validate124.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/enum",keyword:"enum",params:{allowedValues: schema135.properties.state.enum},message:"must be equal to one of the allowed values"}];return false;}var valid10 = _errs25 === errors;}else {var valid10 = true;}if(valid10){if(data.held !== undefined){let data9 = data.held;const _errs27 = errors;const _errs28 = errors;let valid11 = false;const _errs29 = errors;const _errs30 = errors;if(errors === _errs30){if(data9 && typeof data9 == "object" && !Array.isArray(data9)){let missing4;if(((data9.currency === undefined) && (missing4 = "currency")) || ((data9.amount === undefined) && (missing4 = "amount"))){const err6 = {instancePath:instancePath+"/held",schemaPath:"#/components/schemas/ActionsMoney/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data9.currency !== undefined){let data10 = data9.currency;const _errs32 = errors;if(typeof data10 !== "string"){const err7 = {instancePath:instancePath+"/held/currency",schemaPath:"#/components/schemas/ActionsMoney/properties/currency/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if("usd" !== data10){const err8 = {instancePath:instancePath+"/held/currency",schemaPath:"#/components/schemas/ActionsMoney/properties/currency/const",keyword:"const",params:{allowedValue: "usd"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid13 = _errs32 === errors;}else {var valid13 = true;}if(valid13){if(data9.amount !== undefined){let data11 = data9.amount;const _errs34 = errors;if(errors === _errs34){if(typeof data11 === "string"){if(func1(data11) < 1){const err9 = {instancePath:instancePath+"/held/amount",schemaPath:"#/components/schemas/ActionsMoney/properties/amount/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 {if(!pattern50.test(data11)){const err10 = {instancePath:instancePath+"/held/amount",schemaPath:"#/components/schemas/ActionsMoney/properties/amount/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath:instancePath+"/held/amount",schemaPath:"#/components/schemas/ActionsMoney/properties/amount/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var valid13 = _errs34 === errors;}else {var valid13 = true;}}}}else {const err12 = {instancePath:instancePath+"/held",schemaPath:"#/components/schemas/ActionsMoney/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}var _valid2 = _errs29 === errors;valid11 = valid11 || _valid2;if(_valid2){var props2 = {};props2.currency = true;props2.amount = true;}const _errs36 = errors;if(data9 !== null){const err13 = {instancePath:instancePath+"/held",schemaPath:"#/properties/held/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid2 = _errs36 === errors;valid11 = valid11 || _valid2;if(!valid11){const err14 = {instancePath:instancePath+"/held",schemaPath:"#/properties/held/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;validate124.errors = vErrors;return false;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}var valid10 = _errs27 === errors;}else {var valid10 = true;}if(valid10){if(data.final !== undefined){let data12 = data.final;const _errs38 = errors;const _errs39 = errors;let valid14 = false;const _errs40 = errors;const _errs41 = errors;if(errors === _errs41){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){let missing5;if(((data12.currency === undefined) && (missing5 = "currency")) || ((data12.amount === undefined) && (missing5 = "amount"))){const err15 = {instancePath:instancePath+"/final",schemaPath:"#/components/schemas/ActionsMoney/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {if(data12.currency !== undefined){let data13 = data12.currency;const _errs43 = errors;if(typeof data13 !== "string"){const err16 = {instancePath:instancePath+"/final/currency",schemaPath:"#/components/schemas/ActionsMoney/properties/currency/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("usd" !== data13){const err17 = {instancePath:instancePath+"/final/currency",schemaPath:"#/components/schemas/ActionsMoney/properties/currency/const",keyword:"const",params:{allowedValue: "usd"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid16 = _errs43 === errors;}else {var valid16 = true;}if(valid16){if(data12.amount !== undefined){let data14 = data12.amount;const _errs45 = errors;if(errors === _errs45){if(typeof data14 === "string"){if(func1(data14) < 1){const err18 = {instancePath:instancePath+"/final/amount",schemaPath:"#/components/schemas/ActionsMoney/properties/amount/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {if(!pattern50.test(data14)){const err19 = {instancePath:instancePath+"/final/amount",schemaPath:"#/components/schemas/ActionsMoney/properties/amount/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}else {const err20 = {instancePath:instancePath+"/final/amount",schemaPath:"#/components/schemas/ActionsMoney/properties/amount/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}var valid16 = _errs45 === errors;}else {var valid16 = true;}}}}else {const err21 = {instancePath:instancePath+"/final",schemaPath:"#/components/schemas/ActionsMoney/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}var _valid3 = _errs40 === errors;valid14 = valid14 || _valid3;if(_valid3){var props3 = {};props3.currency = true;props3.amount = true;}const _errs47 = errors;if(data12 !== null){const err22 = {instancePath:instancePath+"/final",schemaPath:"#/properties/final/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var _valid3 = _errs47 === errors;valid14 = valid14 || _valid3;if(!valid14){const err23 = {instancePath:instancePath+"/final",schemaPath:"#/properties/final/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;validate124.errors = vErrors;return false;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}var valid10 = _errs38 === errors;}else {var valid10 = true;}if(valid10){if(data.reason !== undefined){let data15 = data.reason;const _errs49 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate124.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/type",keyword:"type",params:{type: schema135.properties.reason.type},message:"must be string,null"}];return false;}var valid10 = _errs49 === errors;}else {var valid10 = true;}}}}}}else {validate124.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate124.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate124.evaluated = {"dynamicProps":true,"dynamicItems":false};const func237 = Object.prototype.hasOwnProperty;const pattern77 = new RegExp("^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$", "u");const pattern78 = new RegExp("^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$", "u");function validate116(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate116.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_cost === undefined) && (missing0 = "provider_cost")) || ((data.customer_charge === undefined) && (missing0 = "customer_charge"))){validate116.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.provider_cost !== undefined){let data0 = data.provider_cost;const _errs1 = errors;const _errs2 = errors;let valid1 = false;const _errs3 = errors;const _errs5 = errors;let valid2 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.label === undefined) && (missing1 = "label")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.label !== undefined){if("unknown" !== data0.label){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid1 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}let ifClause0;if(_valid1){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.total !== undefined){if(data0.total !== null){const err2 = {instancePath:instancePath+"/provider_cost/total",schemaPath:"#/properties/provider_cost/anyOf/0/then/properties/total/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs8 === errors;valid2 = _valid1;if(valid2){var props0 = {};props0.total = true;props0.label = true;}ifClause0 = "then";}else {const _errs11 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.total !== undefined){let data3 = data0.total;if(!(data3 && typeof data3 == "object" && !Array.isArray(data3))){const err3 = {instancePath:instancePath+"/provider_cost/total",schemaPath:"#/properties/provider_cost/anyOf/0/else/properties/total/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}}var _valid1 = _errs11 === errors;valid2 = _valid1;if(valid2){if(props0 !== true){props0 = props0 || {};props0.total = true;}}ifClause0 = "else";}if(!valid2){const err4 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(errors === _errs3){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing2;if(((data0.label === undefined) && (missing2 = "label")) || ((data0.total === undefined) && (missing2 = "total"))){const err5 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/0/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {const _errs14 = errors;for(const key0 in data0){if(!(((key0 === "label") || (key0 === "total")) || (key0 === "summary"))){const err6 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;break;}}if(_errs14 === errors){if(data0.label !== undefined){let data4 = data0.label;const _errs15 = errors;if(!(((data4 === "reported") || (data4 === "calculated")) || (data4 === "unknown"))){const err7 = {instancePath:instancePath+"/provider_cost/label",schemaPath:"#/components/schemas/CostLabel/enum",keyword:"enum",params:{allowedValues: schema119.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid6 = _errs15 === errors;}else {var valid6 = true;}if(valid6){if(data0.total !== undefined){const _errs17 = errors;if(!(validate117(data0.total, {instancePath:instancePath+"/provider_cost/total",parentData:data0,parentDataProperty:"total",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate117.errors : vErrors.concat(validate117.errors);errors = vErrors.length;}var valid6 = _errs17 === errors;}else {var valid6 = true;}if(valid6){if(data0.summary !== undefined){let data6 = data0.summary;const _errs18 = errors;const _errs19 = errors;if(errors === _errs19){if(typeof data6 === "string"){if(func1(data6) < 1){const err8 = {instancePath:instancePath+"/provider_cost/summary",schemaPath:"#/components/schemas/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/provider_cost/summary",schemaPath:"#/components/schemas/summary/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var valid6 = _errs18 === errors;}else {var valid6 = true;}}}}}}else {const err10 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var _valid0 = _errs3 === errors;valid1 = valid1 || _valid0;if(_valid0){var props2 = true;}const _errs21 = errors;const _errs23 = errors;const _errs24 = errors;let valid10 = true;const _errs25 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing3;if((data0.label === undefined) && (missing3 = "label")){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {if(data0.label !== undefined){if("unknown" !== data0.label){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}var _valid2 = _errs25 === errors;errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}let ifClause1;if(_valid2){const _errs27 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.total !== undefined){if(data0.total !== null){const err13 = {instancePath:instancePath+"/provider_cost/total",schemaPath:"#/properties/provider_cost/anyOf/1/allOf/0/then/properties/total/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}var _valid2 = _errs27 === errors;valid10 = _valid2;if(valid10){var props3 = {};props3.total = true;props3.label = true;}ifClause1 = "then";}else {const _errs30 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.total !== undefined){let data9 = data0.total;if(!(data9 && typeof data9 == "object" && !Array.isArray(data9))){const err14 = {instancePath:instancePath+"/provider_cost/total",schemaPath:"#/properties/provider_cost/anyOf/1/allOf/0/else/properties/total/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}var _valid2 = _errs30 === errors;valid10 = _valid2;if(valid10){if(props3 !== true){props3 = props3 || {};props3.total = true;}}ifClause1 = "else";}if(!valid10){const err15 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid9 = _errs23 === errors;if(valid9){const _errs33 = errors;const _errs34 = errors;let valid14 = true;const _errs35 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing4;if((data0.label === undefined) && (missing4 = "label")){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {if(data0.label !== undefined){if("reported" !== data0.label){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}}var _valid3 = _errs35 === errors;errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}let ifClause2;if(_valid3){const _errs37 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing5;if((data0.reported_figure === undefined) && (missing5 = "reported_figure")){const err18 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/1/allOf/1/then/required",keyword:"required",params:{missingProperty: missing5},message:"must have required property '"+missing5+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid3 = _errs37 === errors;valid14 = _valid3;ifClause2 = "then";}else {const _errs38 = errors;const _errs39 = errors;const _errs40 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing6;if((data0.reported_figure === undefined) && (missing6 = "reported_figure")){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}var valid16 = _errs40 === errors;if(valid16){const err20 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/1/allOf/1/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}var _valid3 = _errs38 === errors;valid14 = _valid3;ifClause2 = "else";}if(!valid14){const err21 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/1/allOf/1/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var valid9 = _errs33 === errors;if(valid9){if(props3 !== true){props3 = props3 || {};props3.label = true;}}}if(errors === _errs21){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing7;if((((((((data0.label === undefined) && (missing7 = "label")) || ((data0.total === undefined) && (missing7 = "total"))) || ((data0.lines === undefined) && (missing7 = "lines"))) || ((data0.held_back_by === undefined) && (missing7 = "held_back_by"))) || ((data0.exclusions === undefined) && (missing7 = "exclusions"))) || ((data0.price_version === undefined) && (missing7 = "price_version"))) || ((data0.as_of === undefined) && (missing7 = "as_of"))){const err22 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/1/required",keyword:"required",params:{missingProperty: missing7},message:"must have required property '"+missing7+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {const _errs41 = errors;for(const key1 in data0){if(!(func237.call(schema118.properties.provider_cost.anyOf[1].properties, key1))){const err23 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;break;}}if(_errs41 === errors){if(data0.label !== undefined){let data11 = data0.label;const _errs42 = errors;if(!(((data11 === "reported") || (data11 === "calculated")) || (data11 === "unknown"))){const err24 = {instancePath:instancePath+"/provider_cost/label",schemaPath:"#/properties/provider_cost/anyOf/1/properties/label/enum",keyword:"enum",params:{allowedValues: schema118.properties.provider_cost.anyOf[1].properties.label.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid17 = _errs42 === errors;}else {var valid17 = true;}if(valid17){if(data0.total !== undefined){let data12 = data0.total;const _errs43 = errors;const _errs44 = errors;let valid18 = false;const _errs45 = errors;if(!(validate118(data12, {instancePath:instancePath+"/provider_cost/total",parentData:data0,parentDataProperty:"total",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate118.errors : vErrors.concat(validate118.errors);errors = vErrors.length;}var _valid4 = _errs45 === errors;valid18 = valid18 || _valid4;if(_valid4){var props4 = {};props4.low = true;props4.high = true;}const _errs46 = errors;if(data12 !== null){const err25 = {instancePath:instancePath+"/provider_cost/total",schemaPath:"#/properties/provider_cost/anyOf/1/properties/total/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid4 = _errs46 === errors;valid18 = valid18 || _valid4;if(!valid18){const err26 = {instancePath:instancePath+"/provider_cost/total",schemaPath:"#/properties/provider_cost/anyOf/1/properties/total/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}var valid17 = _errs43 === errors;}else {var valid17 = true;}if(valid17){if(data0.lines !== undefined){let data13 = data0.lines;const _errs48 = errors;if(errors === _errs48){if(Array.isArray(data13)){var valid19 = true;const len0 = data13.length;for(let i0=0; i0<len0; i0++){let data14 = data13[i0];const _errs50 = errors;if(errors === _errs50){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing8;if(((((((data14.what === undefined) && (missing8 = "what")) || ((data14.quantity === undefined) && (missing8 = "quantity"))) || ((data14.unit === undefined) && (missing8 = "unit"))) || ((data14.rate === undefined) && (missing8 = "rate"))) || ((data14.amount === undefined) && (missing8 = "amount"))) || ((data14.quantity_source === undefined) && (missing8 = "quantity_source"))){const err27 = {instancePath:instancePath+"/provider_cost/lines/" + i0,schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/required",keyword:"required",params:{missingProperty: missing8},message:"must have required property '"+missing8+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {if(data14.what !== undefined){let data15 = data14.what;const _errs52 = errors;if(!((((((((data15 === "cpu") || (data15 === "memory")) || (data15 === "disk")) || (data15 === "gpu")) || (data15 === "machine")) || (data15 === "creation")) || (data15 === "egress")) || (data15 === "snapshot_storage"))){const err28 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/what",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/what/enum",keyword:"enum",params:{allowedValues: schema118.properties.provider_cost.anyOf[1].properties.lines.items.properties.what.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var valid20 = _errs52 === errors;}else {var valid20 = true;}if(valid20){if(data14.quantity !== undefined){let data16 = data14.quantity;const _errs53 = errors;const _errs54 = errors;if(errors === _errs54){if(typeof data16 === "string"){if(!pattern50.test(data16)){const err29 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/quantity",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}else {const err30 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/quantity",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var valid20 = _errs53 === errors;}else {var valid20 = true;}if(valid20){if(data14.unit !== undefined){let data17 = data14.unit;const _errs56 = errors;if(errors === _errs56){if(typeof data17 === "string"){if(func1(data17) < 1){const err31 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/unit",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/unit/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}else {const err32 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/unit",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/unit/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var valid20 = _errs56 === errors;}else {var valid20 = true;}if(valid20){if(data14.rate !== undefined){let data18 = data14.rate;const _errs58 = errors;const _errs59 = errors;if(errors === _errs59){if(typeof data18 === "string"){if(!pattern50.test(data18)){const err33 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/rate",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}else {const err34 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/rate",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid20 = _errs58 === errors;}else {var valid20 = true;}if(valid20){if(data14.amount !== undefined){let data19 = data14.amount;const _errs61 = errors;const _errs62 = errors;if(errors === _errs62){if(typeof data19 === "string"){if(!pattern50.test(data19)){const err35 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/amount",schemaPath:"#/components/schemas/PricingDecimal/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}else {const err36 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/amount",schemaPath:"#/components/schemas/PricingDecimal/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid20 = _errs61 === errors;}else {var valid20 = true;}if(valid20){if(data14.quantity_source !== undefined){let data20 = data14.quantity_source;const _errs64 = errors;if(typeof data20 !== "string"){const err37 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/quantity_source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(!((((((data20 === "provider") || (data20 === "published")) || (data20 === "measured")) || (data20 === "recorded")) || (data20 === "calculated")) || (data20 === "unknown"))){const err38 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/quantity_source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid20 = _errs64 === errors;}else {var valid20 = true;}if(valid20){if(data14.text !== undefined){let data21 = data14.text;const _errs67 = errors;if(errors === _errs67){if(typeof data21 === "string"){if(func1(data21) < 1){const err39 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/text",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/text/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/text",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var valid20 = _errs67 === errors;}else {var valid20 = true;}if(valid20){if(data14.sources !== undefined){let data22 = data14.sources;const _errs69 = errors;if(errors === _errs69){if(data22 && typeof data22 == "object" && !Array.isArray(data22)){let missing9;if((data22.amount === undefined) && (missing9 = "amount")){const err41 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/sources",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/sources/required",keyword:"required",params:{missingProperty: missing9},message:"must have required property '"+missing9+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}else {if(data22.quantity !== undefined){let data23 = data22.quantity;const _errs71 = errors;if(errors === _errs71){if(typeof data23 === "string"){if(func1(data23) < 1){const err42 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/sources/quantity",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/sources/properties/quantity/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/sources/quantity",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/sources/properties/quantity/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}var valid25 = _errs71 === errors;}else {var valid25 = true;}if(valid25){if(data22.rate !== undefined){let data24 = data22.rate;const _errs73 = errors;if(errors === _errs73){if(typeof data24 === "string"){if(func1(data24) < 1){const err44 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/sources/rate",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/sources/properties/rate/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}else {const err45 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/sources/rate",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/sources/properties/rate/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}var valid25 = _errs73 === errors;}else {var valid25 = true;}if(valid25){if(data22.amount !== undefined){let data25 = data22.amount;const _errs75 = errors;if(errors === _errs75){if(typeof data25 === "string"){if(func1(data25) < 1){const err46 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/sources/amount",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/sources/properties/amount/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}else {const err47 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/sources/amount",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/sources/properties/amount/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}var valid25 = _errs75 === errors;}else {var valid25 = true;}}}}}else {const err48 = {instancePath:instancePath+"/provider_cost/lines/" + i0+"/sources",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}var valid20 = _errs69 === errors;}else {var valid20 = true;}}}}}}}}}}else {const err49 = {instancePath:instancePath+"/provider_cost/lines/" + i0,schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}var valid19 = _errs50 === errors;if(!valid19){break;}}}else {const err50 = {instancePath:instancePath+"/provider_cost/lines",schemaPath:"#/properties/provider_cost/anyOf/1/properties/lines/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}var valid17 = _errs48 === errors;}else {var valid17 = true;}if(valid17){if(data0.held_back_by !== undefined){let data26 = data0.held_back_by;const _errs77 = errors;if(errors === _errs77){if(Array.isArray(data26)){var valid26 = true;const len1 = data26.length;for(let i1=0; i1<len1; i1++){let data27 = data26[i1];const _errs79 = errors;if(errors === _errs79){if(typeof data27 === "string"){if(func1(data27) < 1){const err51 = {instancePath:instancePath+"/provider_cost/held_back_by/" + i1,schemaPath:"#/properties/provider_cost/anyOf/1/properties/held_back_by/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}else {const err52 = {instancePath:instancePath+"/provider_cost/held_back_by/" + i1,schemaPath:"#/properties/provider_cost/anyOf/1/properties/held_back_by/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}var valid26 = _errs79 === errors;if(!valid26){break;}}}else {const err53 = {instancePath:instancePath+"/provider_cost/held_back_by",schemaPath:"#/properties/provider_cost/anyOf/1/properties/held_back_by/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}var valid17 = _errs77 === errors;}else {var valid17 = true;}if(valid17){if(data0.exclusions !== undefined){let data28 = data0.exclusions;const _errs81 = errors;if(errors === _errs81){if(Array.isArray(data28)){var valid27 = true;const len2 = data28.length;for(let i2=0; i2<len2; i2++){let data29 = data28[i2];const _errs83 = errors;if(errors === _errs83){if(typeof data29 === "string"){if(func1(data29) < 1){const err54 = {instancePath:instancePath+"/provider_cost/exclusions/" + i2,schemaPath:"#/properties/provider_cost/anyOf/1/properties/exclusions/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}else {const err55 = {instancePath:instancePath+"/provider_cost/exclusions/" + i2,schemaPath:"#/properties/provider_cost/anyOf/1/properties/exclusions/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}var valid27 = _errs83 === errors;if(!valid27){break;}}}else {const err56 = {instancePath:instancePath+"/provider_cost/exclusions",schemaPath:"#/properties/provider_cost/anyOf/1/properties/exclusions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}var valid17 = _errs81 === errors;}else {var valid17 = true;}if(valid17){if(data0.price_version !== undefined){let data30 = data0.price_version;const _errs85 = errors;if((typeof data30 !== "string") && (data30 !== null)){const err57 = {instancePath:instancePath+"/provider_cost/price_version",schemaPath:"#/properties/provider_cost/anyOf/1/properties/price_version/type",keyword:"type",params:{type: schema118.properties.provider_cost.anyOf[1].properties.price_version.type},message:"must be string,null"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(errors === _errs85){if(typeof data30 === "string"){if(!pattern77.test(data30)){const err58 = {instancePath:instancePath+"/provider_cost/price_version",schemaPath:"#/properties/provider_cost/anyOf/1/properties/price_version/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*@[0-9]{4}-[0-9]{2}-[0-9]{2}(?:-([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]Z)?$"+"\""};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}var valid17 = _errs85 === errors;}else {var valid17 = true;}if(valid17){if(data0.as_of !== undefined){let data31 = data0.as_of;const _errs87 = errors;const _errs88 = errors;if(errors === _errs88){if(errors === _errs88){if(typeof data31 === "string"){if(!pattern78.test(data31)){const err59 = {instancePath:instancePath+"/provider_cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}else {if(!(formats0.validate(data31))){const err60 = {instancePath:instancePath+"/provider_cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}else {const err61 = {instancePath:instancePath+"/provider_cost/as_of",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}var valid17 = _errs87 === errors;}else {var valid17 = true;}if(valid17){if(data0.per_hour !== undefined){const _errs90 = errors;if(!(validate122(data0.per_hour, {instancePath:instancePath+"/provider_cost/per_hour",parentData:data0,parentDataProperty:"per_hour",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate122.errors : vErrors.concat(validate122.errors);errors = vErrors.length;}var valid17 = _errs90 === errors;}else {var valid17 = true;}if(valid17){if(data0.reported_figure !== undefined){let data33 = data0.reported_figure;const _errs91 = errors;if(errors === _errs91){if(data33 && typeof data33 == "object" && !Array.isArray(data33)){let missing10;if((((data33.source === undefined) && (missing10 = "source")) || ((data33.observed_at === undefined) && (missing10 = "observed_at"))) || ((data33.how === undefined) && (missing10 = "how"))){const err62 = {instancePath:instancePath+"/provider_cost/reported_figure",schemaPath:"#/properties/provider_cost/anyOf/1/properties/reported_figure/required",keyword:"required",params:{missingProperty: missing10},message:"must have required property '"+missing10+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data33.source !== undefined){let data34 = data33.source;const _errs93 = errors;const _errs94 = errors;if(typeof data34 !== "string"){const err63 = {instancePath:instancePath+"/provider_cost/reported_figure/source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(!((((((data34 === "provider") || (data34 === "published")) || (data34 === "measured")) || (data34 === "recorded")) || (data34 === "calculated")) || (data34 === "unknown"))){const err64 = {instancePath:instancePath+"/provider_cost/reported_figure/source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}var valid30 = _errs94 === errors;if(valid30){if("provider" !== data34){const err65 = {instancePath:instancePath+"/provider_cost/reported_figure/source",schemaPath:"#/properties/provider_cost/anyOf/1/properties/reported_figure/properties/source/const",keyword:"const",params:{allowedValue: "provider"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}var valid29 = _errs93 === errors;}else {var valid29 = true;}if(valid29){if(data33.observed_at !== undefined){let data35 = data33.observed_at;const _errs96 = errors;const _errs97 = errors;if(errors === _errs97){if(errors === _errs97){if(typeof data35 === "string"){if(!pattern78.test(data35)){const err66 = {instancePath:instancePath+"/provider_cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"},message:"must match pattern \""+"^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$"+"\""};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {if(!(formats0.validate(data35))){const err67 = {instancePath:instancePath+"/provider_cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}else {const err68 = {instancePath:instancePath+"/provider_cost/reported_figure/observed_at",schemaPath:"#/components/schemas/PricingTimestamp/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var valid29 = _errs96 === errors;}else {var valid29 = true;}if(valid29){if(data33.how !== undefined){let data36 = data33.how;const _errs99 = errors;if(errors === _errs99){if(typeof data36 === "string"){if(func1(data36) < 1){const err69 = {instancePath:instancePath+"/provider_cost/reported_figure/how",schemaPath:"#/properties/provider_cost/anyOf/1/properties/reported_figure/properties/how/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/provider_cost/reported_figure/how",schemaPath:"#/properties/provider_cost/anyOf/1/properties/reported_figure/properties/how/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}var valid29 = _errs99 === errors;}else {var valid29 = true;}}}}}else {const err71 = {instancePath:instancePath+"/provider_cost/reported_figure",schemaPath:"#/properties/provider_cost/anyOf/1/properties/reported_figure/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}var valid17 = _errs91 === errors;}else {var valid17 = true;}if(valid17){if(data0.summary !== undefined){let data37 = data0.summary;const _errs101 = errors;if(errors === _errs101){if(typeof data37 === "string"){if(func1(data37) < 1){const err72 = {instancePath:instancePath+"/provider_cost/summary",schemaPath:"#/properties/provider_cost/anyOf/1/properties/summary/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}else {const err73 = {instancePath:instancePath+"/provider_cost/summary",schemaPath:"#/properties/provider_cost/anyOf/1/properties/summary/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}var valid17 = _errs101 === errors;}else {var valid17 = true;}}}}}}}}}}}}}else {const err74 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}var _valid0 = _errs21 === errors;valid1 = valid1 || _valid0;if(_valid0){if(props2 !== true){props2 = true;}}const _errs103 = errors;if(data0 !== null){const err75 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf/2/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var _valid0 = _errs103 === errors;valid1 = valid1 || _valid0;if(!valid1){const err76 = {instancePath:instancePath+"/provider_cost",schemaPath:"#/properties/provider_cost/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;validate116.errors = vErrors;return false;}else {errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.customer_charge !== undefined){const _errs105 = errors;if(!(validate124(data.customer_charge, {instancePath:instancePath+"/customer_charge",parentData:data,parentDataProperty:"customer_charge",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate124.errors : vErrors.concat(validate124.errors);errors = vErrors.length;}var valid0 = _errs105 === errors;}else {var valid0 = true;}}}}else {validate116.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate116.errors = vErrors;return errors === 0;}validate116.evaluated = {"props":{"provider_cost":true,"customer_charge":true},"dynamicProps":false,"dynamicItems":false};const schema139 = {"type":"object","required":["cancel","rerun"],"properties":{"cancel":{"$ref":"#/components/schemas/ActionsRunControl"},"rerun":{"$ref":"#/components/schemas/ActionsRunControl"},"rerun_failed_jobs":{"$ref":"#/components/schemas/ActionsRunControl","description":"Whether the failed jobs of this attempt and jobs that depend on them may be rerun. Passed jobs may rerun when they depend on a failed job. Absent from servers that predate the control."}}};const schema140 = {"type":"object","required":["allowed"],"properties":{"allowed":{"type":"boolean","description":"Whether this caller may perform this control on the current run attempt."},"reason_code":{"type":"string","enum":["not_authorized","already_finished","not_current_attempt","not_finished","github_unavailable","no_failed_jobs"],"description":"Optional reason when allowed is false; omitted when the reason is not known."}}};function validate127(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate127.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.cancel === undefined) && (missing0 = "cancel")) || ((data.rerun === undefined) && (missing0 = "rerun"))){validate127.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.cancel !== undefined){let data0 = data.cancel;const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing1;if((data0.allowed === undefined) && (missing1 = "allowed")){validate127.errors = [{instancePath:instancePath+"/cancel",schemaPath:"#/components/schemas/ActionsRunControl/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data0.allowed !== undefined){const _errs4 = errors;if(typeof data0.allowed !== "boolean"){validate127.errors = [{instancePath:instancePath+"/cancel/allowed",schemaPath:"#/components/schemas/ActionsRunControl/properties/allowed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid2 = _errs4 === errors;}else {var valid2 = true;}if(valid2){if(data0.reason_code !== undefined){let data2 = data0.reason_code;const _errs6 = errors;if(typeof data2 !== "string"){validate127.errors = [{instancePath:instancePath+"/cancel/reason_code",schemaPath:"#/components/schemas/ActionsRunControl/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data2 === "not_authorized") || (data2 === "already_finished")) || (data2 === "not_current_attempt")) || (data2 === "not_finished")) || (data2 === "github_unavailable")) || (data2 === "no_failed_jobs"))){validate127.errors = [{instancePath:instancePath+"/cancel/reason_code",schemaPath:"#/components/schemas/ActionsRunControl/properties/reason_code/enum",keyword:"enum",params:{allowedValues: schema140.properties.reason_code.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs6 === errors;}else {var valid2 = true;}}}}else {validate127.errors = [{instancePath:instancePath+"/cancel",schemaPath:"#/components/schemas/ActionsRunControl/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.rerun !== undefined){let data3 = data.rerun;const _errs8 = errors;const _errs9 = errors;if(errors === _errs9){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){let missing2;if((data3.allowed === undefined) && (missing2 = "allowed")){validate127.errors = [{instancePath:instancePath+"/rerun",schemaPath:"#/components/schemas/ActionsRunControl/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data3.allowed !== undefined){const _errs11 = errors;if(typeof data3.allowed !== "boolean"){validate127.errors = [{instancePath:instancePath+"/rerun/allowed",schemaPath:"#/components/schemas/ActionsRunControl/properties/allowed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid4 = _errs11 === errors;}else {var valid4 = true;}if(valid4){if(data3.reason_code !== undefined){let data5 = data3.reason_code;const _errs13 = errors;if(typeof data5 !== "string"){validate127.errors = [{instancePath:instancePath+"/rerun/reason_code",schemaPath:"#/components/schemas/ActionsRunControl/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data5 === "not_authorized") || (data5 === "already_finished")) || (data5 === "not_current_attempt")) || (data5 === "not_finished")) || (data5 === "github_unavailable")) || (data5 === "no_failed_jobs"))){validate127.errors = [{instancePath:instancePath+"/rerun/reason_code",schemaPath:"#/components/schemas/ActionsRunControl/properties/reason_code/enum",keyword:"enum",params:{allowedValues: schema140.properties.reason_code.enum},message:"must be equal to one of the allowed values"}];return false;}var valid4 = _errs13 === errors;}else {var valid4 = true;}}}}else {validate127.errors = [{instancePath:instancePath+"/rerun",schemaPath:"#/components/schemas/ActionsRunControl/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.rerun_failed_jobs !== undefined){let data6 = data.rerun_failed_jobs;const _errs15 = errors;const _errs16 = errors;if(errors === _errs16){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing3;if((data6.allowed === undefined) && (missing3 = "allowed")){validate127.errors = [{instancePath:instancePath+"/rerun_failed_jobs",schemaPath:"#/components/schemas/ActionsRunControl/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data6.allowed !== undefined){const _errs18 = errors;if(typeof data6.allowed !== "boolean"){validate127.errors = [{instancePath:instancePath+"/rerun_failed_jobs/allowed",schemaPath:"#/components/schemas/ActionsRunControl/properties/allowed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid6 = _errs18 === errors;}else {var valid6 = true;}if(valid6){if(data6.reason_code !== undefined){let data8 = data6.reason_code;const _errs20 = errors;if(typeof data8 !== "string"){validate127.errors = [{instancePath:instancePath+"/rerun_failed_jobs/reason_code",schemaPath:"#/components/schemas/ActionsRunControl/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data8 === "not_authorized") || (data8 === "already_finished")) || (data8 === "not_current_attempt")) || (data8 === "not_finished")) || (data8 === "github_unavailable")) || (data8 === "no_failed_jobs"))){validate127.errors = [{instancePath:instancePath+"/rerun_failed_jobs/reason_code",schemaPath:"#/components/schemas/ActionsRunControl/properties/reason_code/enum",keyword:"enum",params:{allowedValues: schema140.properties.reason_code.enum},message:"must be equal to one of the allowed values"}];return false;}var valid6 = _errs20 === errors;}else {var valid6 = true;}}}}else {validate127.errors = [{instancePath:instancePath+"/rerun_failed_jobs",schemaPath:"#/components/schemas/ActionsRunControl/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}}}}}else {validate127.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate127.errors = vErrors;return errors === 0;}validate127.evaluated = {"props":{"cancel":true,"rerun":true,"rerun_failed_jobs":true},"dynamicProps":false,"dynamicItems":false};const schema143 = {"type":"object","required":["amount","currency","status","basis","evidence"],"properties":{"amount":{"description":"Exact amount in currency, as a plain decimal string. Null while a cost is pending; unknown cost is represented by a null cost object, never by zero.","anyOf":[{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},{"type":"null"}]},"currency":{"type":"string","const":"USD"},"status":{"type":"string","enum":["final","pending"],"description":"Legacy provider cost. final requires the provider's own cost or usage records; pending has no amount. Estimated costs are unavailable and represented by a null cost object. Prefer billing.provider_cost."},"basis":{"type":"string","enum":["provider_reported","calculated"],"description":"Whether the amount came from provider-reported cost or from usage multiplied by a pinned price version."},"per_hour":{"type":["string","null"],"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Optional current USD-per-hour rate when all contributing sandboxes share one known rate; null when unavailable or mixed."},"evidence":{"type":"array","minItems":1,"description":"One source entry per distinct Actions sandbox included in the job or run total. Run evidence is the deduplicated union of its jobs' evidence.","items":{"$ref":"#/components/schemas/ActionsCostEvidence"}}},"allOf":[{"if":{"properties":{"status":{"const":"pending"}},"required":["status"]},"then":{"properties":{"amount":{"type":"null"}}},"else":{"properties":{"amount":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"}}}},{"if":{"properties":{"status":{"const":"final"}},"required":["status"]},"then":{"properties":{"evidence":{"items":{"properties":{"ended_at":{"type":"string","format":"date-time"},"usage_source":{"const":"provider"}}}}}}},{"if":{"properties":{"basis":{"const":"calculated"},"amount":{"type":"string"}},"required":["basis","amount"]},"then":{"properties":{"evidence":{"items":{"properties":{"price_version":{"type":"string"}}}}}}}]};const schema144 = {"type":"object","required":["sandbox_id","usage_source","price_version","started_at","ended_at"],"properties":{"sandbox_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"usage_source":{"$ref":"#/components/schemas/CostSource"},"price_version":{"type":["string","null"],"minLength":1,"maxLength":128,"description":"Price version used for calculated cost, null when this evidence has no applicable price version."},"started_at":{"type":"string","format":"date-time","description":"Start of this Actions sandbox's billable lifetime, from its durable lifetime record."},"ended_at":{"type":["string","null"],"format":"date-time","description":"Time destroy was confirmed; null while the Actions sandbox lifetime is still open or cleanup is unconfirmed."}}};function validate130(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate130.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.sandbox_id === undefined) && (missing0 = "sandbox_id")) || ((data.usage_source === undefined) && (missing0 = "usage_source"))) || ((data.price_version === undefined) && (missing0 = "price_version"))) || ((data.started_at === undefined) && (missing0 = "started_at"))) || ((data.ended_at === undefined) && (missing0 = "ended_at"))){validate130.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.sandbox_id !== undefined){let data0 = data.sandbox_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate130.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate130.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate130.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate130.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_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.usage_source !== undefined){let data1 = data.usage_source;const _errs3 = errors;if(typeof data1 !== "string"){validate130.errors = [{instancePath:instancePath+"/usage_source",schemaPath:"#/components/schemas/CostSource/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data1 === "provider") || (data1 === "published")) || (data1 === "measured")) || (data1 === "recorded")) || (data1 === "calculated")) || (data1 === "unknown"))){validate130.errors = [{instancePath:instancePath+"/usage_source",schemaPath:"#/components/schemas/CostSource/enum",keyword:"enum",params:{allowedValues: schema128.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.price_version !== undefined){let data2 = data.price_version;const _errs6 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate130.errors = [{instancePath:instancePath+"/price_version",schemaPath:"#/properties/price_version/type",keyword:"type",params:{type: schema144.properties.price_version.type},message:"must be string,null"}];return false;}if(errors === _errs6){if(typeof data2 === "string"){if(func1(data2) > 128){validate130.errors = [{instancePath:instancePath+"/price_version",schemaPath:"#/properties/price_version/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate130.errors = [{instancePath:instancePath+"/price_version",schemaPath:"#/properties/price_version/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.started_at !== undefined){let data3 = data.started_at;const _errs8 = errors;if(errors === _errs8){if(errors === _errs8){if(typeof data3 === "string"){if(!(formats0.validate(data3))){validate130.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 {validate130.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at !== undefined){let data4 = data.ended_at;const _errs10 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate130.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/type",keyword:"type",params:{type: schema144.properties.ended_at.type},message:"must be string,null"}];return false;}if(errors === _errs10){if(errors === _errs10){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate130.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs10 === errors;}else {var valid0 = true;}}}}}}}else {validate130.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate130.errors = vErrors;return errors === 0;}validate130.evaluated = {"props":{"sandbox_id":true,"usage_source":true,"price_version":true,"started_at":true,"ended_at":true},"dynamicProps":false,"dynamicItems":false};function validate129(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate129.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.status === undefined) && (missing0 = "status")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.status !== undefined){if("pending" !== data.status){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.amount !== undefined){if(data.amount !== null){validate129.errors = [{instancePath:instancePath+"/amount",schemaPath:"#/allOf/0/then/properties/amount/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.amount = true;props0.status = true;}ifClause0 = "then";}else {const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.amount !== undefined){let data2 = data.amount;const _errs9 = errors;if(errors === _errs9){if(typeof data2 === "string"){if(!pattern50.test(data2)){validate129.errors = [{instancePath:instancePath+"/amount",schemaPath:"#/allOf/0/else/properties/amount/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""}];return false;}}else {validate129.errors = [{instancePath:instancePath+"/amount",schemaPath:"#/allOf/0/else/properties/amount/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}var _valid0 = _errs8 === errors;valid1 = _valid0;if(valid1){if(props0 !== true){props0 = props0 || {};props0.amount = true;}}ifClause0 = "else";}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate129.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs11 = errors;const _errs12 = errors;let valid5 = true;const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.status === undefined) && (missing1 = "status")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data.status !== undefined){if("final" !== data.status){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs15 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.evidence !== undefined){let data4 = data.evidence;if(Array.isArray(data4)){var valid8 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];const _errs17 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.ended_at !== undefined){let data6 = data5.ended_at;const _errs18 = errors;if(errors === _errs18){if(errors === _errs18){if(typeof data6 === "string"){if(!(formats0.validate(data6))){validate129.errors = [{instancePath:instancePath+"/evidence/" + i0+"/ended_at",schemaPath:"#/allOf/1/then/properties/evidence/items/properties/ended_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate129.errors = [{instancePath:instancePath+"/evidence/" + i0+"/ended_at",schemaPath:"#/allOf/1/then/properties/evidence/items/properties/ended_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid9 = _errs18 === errors;}else {var valid9 = true;}if(valid9){if(data5.usage_source !== undefined){const _errs20 = errors;if("provider" !== data5.usage_source){validate129.errors = [{instancePath:instancePath+"/evidence/" + i0+"/usage_source",schemaPath:"#/allOf/1/then/properties/evidence/items/properties/usage_source/const",keyword:"const",params:{allowedValue: "provider"},message:"must be equal to constant"}];return false;}var valid9 = _errs20 === errors;}else {var valid9 = true;}}}var valid8 = _errs17 === errors;if(!valid8){break;}}}}}var _valid1 = _errs15 === errors;valid5 = _valid1;if(valid5){var props1 = {};props1.evidence = true;props1.status = true;}}if(!valid5){const err5 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate129.errors = vErrors;return false;}var valid0 = _errs11 === errors;if(valid0){if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}const _errs21 = errors;const _errs22 = errors;let valid10 = true;const _errs23 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((data.basis === undefined) && (missing2 = "basis")) || ((data.amount === undefined) && (missing2 = "amount"))){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data.basis !== undefined){const _errs24 = errors;if("calculated" !== data.basis){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var valid11 = _errs24 === errors;}else {var valid11 = true;}if(valid11){if(data.amount !== undefined){const _errs25 = errors;if(typeof data.amount !== "string"){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var valid11 = _errs25 === errors;}else {var valid11 = true;}}}}var _valid2 = _errs23 === errors;errors = _errs22;if(vErrors !== null){if(_errs22){vErrors.length = _errs22;}else {vErrors = null;}}if(_valid2){const _errs27 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.evidence !== undefined){let data10 = data.evidence;if(Array.isArray(data10)){var valid13 = true;const len1 = data10.length;for(let i1=0; i1<len1; i1++){let data11 = data10[i1];const _errs29 = errors;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.price_version !== undefined){if(typeof data11.price_version !== "string"){validate129.errors = [{instancePath:instancePath+"/evidence/" + i1+"/price_version",schemaPath:"#/allOf/2/then/properties/evidence/items/properties/price_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid13 = _errs29 === errors;if(!valid13){break;}}}}}var _valid2 = _errs27 === errors;valid10 = _valid2;if(valid10){var props2 = {};props2.evidence = true;props2.basis = true;props2.amount = true;}}if(!valid10){const err9 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate129.errors = vErrors;return false;}var valid0 = _errs21 === errors;if(valid0){if(props0 !== true && props2 !== undefined){if(props2 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props2);}}}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((((((data.amount === undefined) && (missing3 = "amount")) || ((data.currency === undefined) && (missing3 = "currency"))) || ((data.status === undefined) && (missing3 = "status"))) || ((data.basis === undefined) && (missing3 = "basis"))) || ((data.evidence === undefined) && (missing3 = "evidence"))){validate129.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.amount = true;props0.currency = true;props0.status = true;props0.basis = true;props0.per_hour = true;props0.evidence = true;}if(data.amount !== undefined){let data13 = data.amount;const _errs32 = errors;const _errs33 = errors;let valid16 = false;const _errs34 = errors;if(errors === _errs34){if(typeof data13 === "string"){if(!pattern50.test(data13)){const err10 = {instancePath:instancePath+"/amount",schemaPath:"#/properties/amount/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},message:"must match pattern \""+"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/amount",schemaPath:"#/properties/amount/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var _valid3 = _errs34 === errors;valid16 = valid16 || _valid3;const _errs36 = errors;if(data13 !== null){const err12 = {instancePath:instancePath+"/amount",schemaPath:"#/properties/amount/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid3 = _errs36 === errors;valid16 = valid16 || _valid3;if(!valid16){const err13 = {instancePath:instancePath+"/amount",schemaPath:"#/properties/amount/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;validate129.errors = vErrors;return false;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}var valid15 = _errs32 === errors;}else {var valid15 = true;}if(valid15){if(data.currency !== undefined){let data14 = data.currency;const _errs38 = errors;if(typeof data14 !== "string"){validate129.errors = [{instancePath:instancePath+"/currency",schemaPath:"#/properties/currency/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("USD" !== data14){validate129.errors = [{instancePath:instancePath+"/currency",schemaPath:"#/properties/currency/const",keyword:"const",params:{allowedValue: "USD"},message:"must be equal to constant"}];return false;}var valid15 = _errs38 === errors;}else {var valid15 = true;}if(valid15){if(data.status !== undefined){let data15 = data.status;const _errs40 = errors;if(typeof data15 !== "string"){validate129.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data15 === "final") || (data15 === "pending"))){validate129.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema143.properties.status.enum},message:"must be equal to one of the allowed values"}];return false;}var valid15 = _errs40 === errors;}else {var valid15 = true;}if(valid15){if(data.basis !== undefined){let data16 = data.basis;const _errs42 = errors;if(typeof data16 !== "string"){validate129.errors = [{instancePath:instancePath+"/basis",schemaPath:"#/properties/basis/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data16 === "provider_reported") || (data16 === "calculated"))){validate129.errors = [{instancePath:instancePath+"/basis",schemaPath:"#/properties/basis/enum",keyword:"enum",params:{allowedValues: schema143.properties.basis.enum},message:"must be equal to one of the allowed values"}];return false;}var valid15 = _errs42 === errors;}else {var valid15 = true;}if(valid15){if(data.per_hour !== undefined){let data17 = data.per_hour;const _errs44 = errors;if((typeof data17 !== "string") && (data17 !== null)){validate129.errors = [{instancePath:instancePath+"/per_hour",schemaPath:"#/properties/per_hour/type",keyword:"type",params:{type: schema143.properties.per_hour.type},message:"must be string,null"}];return false;}if(errors === _errs44){if(typeof data17 === "string"){if(!pattern50.test(data17)){validate129.errors = [{instancePath:instancePath+"/per_hour",schemaPath:"#/properties/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 valid15 = _errs44 === errors;}else {var valid15 = true;}if(valid15){if(data.evidence !== undefined){let data18 = data.evidence;const _errs46 = errors;if(errors === _errs46){if(Array.isArray(data18)){if(data18.length < 1){validate129.errors = [{instancePath:instancePath+"/evidence",schemaPath:"#/properties/evidence/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid17 = true;const len2 = data18.length;for(let i2=0; i2<len2; i2++){const _errs48 = errors;if(!(validate130(data18[i2], {instancePath:instancePath+"/evidence/" + i2,parentData:data18,parentDataProperty:i2,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate130.errors : vErrors.concat(validate130.errors);errors = vErrors.length;}var valid17 = _errs48 === errors;if(!valid17){break;}}}}else {validate129.errors = [{instancePath:instancePath+"/evidence",schemaPath:"#/properties/evidence/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid15 = _errs46 === errors;}else {var valid15 = true;}}}}}}}}else {validate129.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate129.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate129.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate115(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate115.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.github_run_id === undefined) && (missing0 = "github_run_id"))) || ((data.run_attempt === undefined) && (missing0 = "run_attempt"))) || ((data.repository_id === undefined) && (missing0 = "repository_id"))) || ((data.workflow_name === undefined) && (missing0 = "workflow_name"))) || ((data.state === undefined) && (missing0 = "state"))) || ((data.result === undefined) && (missing0 = "result"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.updated_at === undefined) && (missing0 = "updated_at"))) || ((data.billing === undefined) && (missing0 = "billing"))){validate115.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate115.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate115.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate115.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate115.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.github_run_id !== undefined){let data1 = data.github_run_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate115.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate115.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate115.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate115.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.run_attempt !== undefined){let data2 = data.run_attempt;const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;let valid2 = false;const _errs8 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err0 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;const _errs10 = errors;if(typeof data2 !== "bigint"){const err1 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs10 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate115.errors = vErrors;return false;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}var valid1 = _errs6 === errors;if(valid1){if(typeof data2 === "bigint"){if(data2 < 1){validate115.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs5){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate115.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.repository_id !== undefined){let data3 = data.repository_id;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func1(data3) > 128){validate115.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate115.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data3)){validate115.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate115.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.repository !== undefined){let data4 = data.repository;const _errs13 = errors;if(errors === _errs13){if(typeof data4 === "string"){if(func1(data4) > 255){validate115.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data4) < 1){validate115.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate115.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.workflow_name !== undefined){let data5 = data.workflow_name;const _errs15 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate115.errors = [{instancePath:instancePath+"/workflow_name",schemaPath:"#/properties/workflow_name/type",keyword:"type",params:{type: schema111.properties.workflow_name.type},message:"must be string,null"}];return false;}if(errors === _errs15){if(typeof data5 === "string"){if(func1(data5) > 255){validate115.errors = [{instancePath:instancePath+"/workflow_name",schemaPath:"#/properties/workflow_name/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data5) < 1){validate115.errors = [{instancePath:instancePath+"/workflow_name",schemaPath:"#/properties/workflow_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.workflow !== undefined){let data6 = data.workflow;const _errs17 = errors;if(errors === _errs17){if(typeof data6 === "string"){if(func1(data6) > 255){validate115.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data6) < 1){validate115.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate115.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.branch !== undefined){let data7 = data.branch;const _errs19 = errors;if(errors === _errs19){if(typeof data7 === "string"){if(func1(data7) > 255){validate115.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data7) < 1){validate115.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate115.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.run_url !== undefined){let data8 = data.run_url;const _errs21 = errors;if(errors === _errs21){if(errors === _errs21){if(typeof data8 === "string"){if(func1(data8) > 2048){validate115.errors = [{instancePath:instancePath+"/run_url",schemaPath:"#/properties/run_url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate115.errors = [{instancePath:instancePath+"/run_url",schemaPath:"#/properties/run_url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.head_branch !== undefined){let data9 = data.head_branch;const _errs23 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate115.errors = [{instancePath:instancePath+"/head_branch",schemaPath:"#/properties/head_branch/type",keyword:"type",params:{type: schema111.properties.head_branch.type},message:"must be string,null"}];return false;}if(errors === _errs23){if(typeof data9 === "string"){if(func1(data9) > 255){validate115.errors = [{instancePath:instancePath+"/head_branch",schemaPath:"#/properties/head_branch/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data9) < 1){validate115.errors = [{instancePath:instancePath+"/head_branch",schemaPath:"#/properties/head_branch/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.head_sha !== undefined){let data10 = data.head_sha;const _errs25 = errors;if(errors === _errs25){if(typeof data10 === "string"){if(func1(data10) > 128){validate115.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data10) < 1){validate115.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data10)){validate115.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate115.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.run_number !== undefined){let data11 = data.run_number;const _errs27 = errors;const _errs28 = errors;const _errs29 = errors;let valid4 = false;const _errs30 = errors;if(!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))){const err3 = {instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs30 === errors;valid4 = valid4 || _valid1;const _errs32 = errors;if(typeof data11 !== "bigint"){const err4 = {instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs32 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate115.errors = vErrors;return false;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}var valid3 = _errs28 === errors;if(valid3){if(typeof data11 === "bigint"){if(data11 < 1){validate115.errors = [{instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs27){if((typeof data11 == "number") && (isFinite(data11))){if(data11 < 1 || isNaN(data11)){validate115.errors = [{instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs27 === errors;}else {var valid0 = true;}if(valid0){if(data.display_title !== undefined){let data12 = data.display_title;const _errs33 = errors;if(errors === _errs33){if(typeof data12 === "string"){if(func1(data12) < 1){validate115.errors = [{instancePath:instancePath+"/display_title",schemaPath:"#/properties/display_title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate115.errors = [{instancePath:instancePath+"/display_title",schemaPath:"#/properties/display_title/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs33 === errors;}else {var valid0 = true;}if(valid0){if(data.actor !== undefined){let data13 = data.actor;const _errs35 = errors;const _errs36 = errors;if(errors === _errs36){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing1;if(((data13.login === undefined) && (missing1 = "login")) || ((data13.profile_url === undefined) && (missing1 = "profile_url"))){validate115.errors = [{instancePath:instancePath+"/actor",schemaPath:"#/components/schemas/ActionsGitHubActor/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data13.login !== undefined){let data14 = data13.login;const _errs38 = errors;if(errors === _errs38){if(typeof data14 === "string"){if(func1(data14) > 255){validate115.errors = [{instancePath:instancePath+"/actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data14) < 1){validate115.errors = [{instancePath:instancePath+"/actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data14)){validate115.errors = [{instancePath:instancePath+"/actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate115.errors = [{instancePath:instancePath+"/actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs38 === errors;}else {var valid6 = true;}if(valid6){if(data13.profile_url !== undefined){let data15 = data13.profile_url;const _errs40 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate115.errors = [{instancePath:instancePath+"/actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/type",keyword:"type",params:{type: schema112.properties.profile_url.type},message:"must be string,null"}];return false;}if(errors === _errs40){if(errors === _errs40){if(typeof data15 === "string"){if(func1(data15) > 2048){validate115.errors = [{instancePath:instancePath+"/actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}else {if(!pattern66.test(data15)){validate115.errors = [{instancePath:instancePath+"/actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/pattern",keyword:"pattern",params:{pattern: "^https://github\\.com/(apps/)?[^/?#]+$"},message:"must match pattern \""+"^https://github\\.com/(apps/)?[^/?#]+$"+"\""}];return false;}}}}}var valid6 = _errs40 === errors;}else {var valid6 = true;}}}}else {validate115.errors = [{instancePath:instancePath+"/actor",schemaPath:"#/components/schemas/ActionsGitHubActor/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.triggering_actor !== undefined){let data16 = data.triggering_actor;const _errs42 = errors;const _errs43 = errors;if(errors === _errs43){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing2;if(((data16.login === undefined) && (missing2 = "login")) || ((data16.profile_url === undefined) && (missing2 = "profile_url"))){validate115.errors = [{instancePath:instancePath+"/triggering_actor",schemaPath:"#/components/schemas/ActionsGitHubActor/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data16.login !== undefined){let data17 = data16.login;const _errs45 = errors;if(errors === _errs45){if(typeof data17 === "string"){if(func1(data17) > 255){validate115.errors = [{instancePath:instancePath+"/triggering_actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data17) < 1){validate115.errors = [{instancePath:instancePath+"/triggering_actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data17)){validate115.errors = [{instancePath:instancePath+"/triggering_actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate115.errors = [{instancePath:instancePath+"/triggering_actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs45 === errors;}else {var valid8 = true;}if(valid8){if(data16.profile_url !== undefined){let data18 = data16.profile_url;const _errs47 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate115.errors = [{instancePath:instancePath+"/triggering_actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/type",keyword:"type",params:{type: schema112.properties.profile_url.type},message:"must be string,null"}];return false;}if(errors === _errs47){if(errors === _errs47){if(typeof data18 === "string"){if(func1(data18) > 2048){validate115.errors = [{instancePath:instancePath+"/triggering_actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}else {if(!pattern66.test(data18)){validate115.errors = [{instancePath:instancePath+"/triggering_actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/pattern",keyword:"pattern",params:{pattern: "^https://github\\.com/(apps/)?[^/?#]+$"},message:"must match pattern \""+"^https://github\\.com/(apps/)?[^/?#]+$"+"\""}];return false;}}}}}var valid8 = _errs47 === errors;}else {var valid8 = true;}}}}else {validate115.errors = [{instancePath:instancePath+"/triggering_actor",schemaPath:"#/components/schemas/ActionsGitHubActor/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs42 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){let data19 = data.state;const _errs49 = errors;if(typeof data19 !== "string"){validate115.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data19 === "queued") || (data19 === "preparing")) || (data19 === "starting")) || (data19 === "running")) || (data19 === "stopping")) || (data19 === "ended")) || (data19 === "attention_required"))){validate115.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/enum",keyword:"enum",params:{allowedValues: schema114.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs49 === errors;}else {var valid0 = true;}if(valid0){if(data.result !== undefined){let data20 = data.result;const _errs52 = errors;if((typeof data20 !== "string") && (data20 !== null)){validate115.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/type",keyword:"type",params:{type: schema115.type},message:"must be string,null"}];return false;}if(!(((((((((data20 === "success") || (data20 === "workload_failure")) || (data20 === "cancelled")) || (data20 === "timed_out")) || (data20 === "infrastructure_failure")) || (data20 === "skipped")) || (data20 === "neutral")) || (data20 === "unknown")) || (data20 === null))){validate115.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/enum",keyword:"enum",params:{allowedValues: schema115.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs52 === errors;}else {var valid0 = true;}if(valid0){if(data.failure !== undefined){let data21 = data.failure;const _errs55 = errors;const _errs56 = errors;if(errors === _errs56){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){let missing3;if(((((data21.kind === undefined) && (missing3 = "kind")) || ((data21.reason_code === undefined) && (missing3 = "reason_code"))) || ((data21.message === undefined) && (missing3 = "message"))) || ((data21.link_target === undefined) && (missing3 = "link_target"))){validate115.errors = [{instancePath:instancePath+"/failure",schemaPath:"#/components/schemas/ActionsFailure/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data21.kind !== undefined){let data22 = data21.kind;const _errs58 = errors;if(typeof data22 !== "string"){validate115.errors = [{instancePath:instancePath+"/failure/kind",schemaPath:"#/components/schemas/ActionsFailure/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data22 === "workflow") || (data22 === "boxrouter"))){validate115.errors = [{instancePath:instancePath+"/failure/kind",schemaPath:"#/components/schemas/ActionsFailure/properties/kind/enum",keyword:"enum",params:{allowedValues: schema116.properties.kind.enum},message:"must be equal to one of the allowed values"}];return false;}var valid12 = _errs58 === errors;}else {var valid12 = true;}if(valid12){if(data21.reason_code !== undefined){let data23 = data21.reason_code;const _errs60 = errors;if((typeof data23 !== "string") && (data23 !== null)){validate115.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/type",keyword:"type",params:{type: schema116.properties.reason_code.type},message:"must be string,null"}];return false;}if(errors === _errs60){if(typeof data23 === "string"){if(func1(data23) > 128){validate115.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(!pattern38.test(data23)){validate115.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_.-]{0,127}$"},message:"must match pattern \""+"^[a-z][a-z0-9_.-]{0,127}$"+"\""}];return false;}}}}var valid12 = _errs60 === errors;}else {var valid12 = true;}if(valid12){if(data21.message !== undefined){let data24 = data21.message;const _errs62 = errors;if((typeof data24 !== "string") && (data24 !== null)){validate115.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/type",keyword:"type",params:{type: schema116.properties.message.type},message:"must be string,null"}];return false;}if(errors === _errs62){if(typeof data24 === "string"){if(func1(data24) > 1024){validate115.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/maxLength",keyword:"maxLength",params:{limit: 1024},message:"must NOT have more than 1024 characters"}];return false;}else {if(func1(data24) < 1){validate115.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid12 = _errs62 === errors;}else {var valid12 = true;}if(valid12){if(data21.link_target !== undefined){let data25 = data21.link_target;const _errs64 = errors;if((typeof data25 !== "string") && (data25 !== null)){validate115.errors = [{instancePath:instancePath+"/failure/link_target",schemaPath:"#/components/schemas/ActionsFailure/properties/link_target/type",keyword:"type",params:{type: schema116.properties.link_target.type},message:"must be string,null"}];return false;}if(!((((data25 === "byok") || (data25 === "credits")) || (data25 === "github")) || (data25 === null))){validate115.errors = [{instancePath:instancePath+"/failure/link_target",schemaPath:"#/components/schemas/ActionsFailure/properties/link_target/enum",keyword:"enum",params:{allowedValues: schema116.properties.link_target.enum},message:"must be equal to one of the allowed values"}];return false;}var valid12 = _errs64 === errors;}else {var valid12 = true;}}}}}}else {validate115.errors = [{instancePath:instancePath+"/failure",schemaPath:"#/components/schemas/ActionsFailure/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs55 === errors;}else {var valid0 = true;}if(valid0){if(data.waiting !== undefined){let data26 = data.waiting;const _errs66 = errors;const _errs67 = errors;if(errors === _errs67){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){let missing4;if((((data26.job_count === undefined) && (missing4 = "job_count")) || ((data26.reason_code === undefined) && (missing4 = "reason_code"))) || ((data26.since === undefined) && (missing4 = "since"))){validate115.errors = [{instancePath:instancePath+"/waiting",schemaPath:"#/components/schemas/ActionsRunWaiting/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(data26.job_count !== undefined){let data27 = data26.job_count;const _errs69 = errors;const _errs70 = errors;const _errs71 = errors;let valid16 = false;const _errs72 = errors;if(!(((typeof data27 == "number") && (!(data27 % 1) && !isNaN(data27))) && (isFinite(data27)))){const err6 = {instancePath:instancePath+"/waiting/job_count",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/job_count/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 _valid2 = _errs72 === errors;valid16 = valid16 || _valid2;const _errs74 = errors;if(typeof data27 !== "bigint"){const err7 = {instancePath:instancePath+"/waiting/job_count",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/job_count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs74 === errors;valid16 = valid16 || _valid2;if(!valid16){const err8 = {instancePath:instancePath+"/waiting/job_count",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/job_count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate115.errors = vErrors;return false;}else {errors = _errs71;if(vErrors !== null){if(_errs71){vErrors.length = _errs71;}else {vErrors = null;}}}var valid15 = _errs70 === errors;if(valid15){if(typeof data27 === "bigint"){if(data27 < 1){validate115.errors = [{instancePath:instancePath+"/waiting/job_count",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/job_count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs69){if((typeof data27 == "number") && (isFinite(data27))){if(data27 < 1 || isNaN(data27)){validate115.errors = [{instancePath:instancePath+"/waiting/job_count",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/job_count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid14 = _errs69 === errors;}else {var valid14 = true;}if(valid14){if(data26.reason_code !== undefined){let data28 = data26.reason_code;const _errs75 = errors;if(errors === _errs75){if(typeof data28 === "string"){if(func1(data28) > 64){validate115.errors = [{instancePath:instancePath+"/waiting/reason_code",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data28) < 1){validate115.errors = [{instancePath:instancePath+"/waiting/reason_code",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/reason_code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern70.test(data28)){validate115.errors = [{instancePath:instancePath+"/waiting/reason_code",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/reason_code/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 {validate115.errors = [{instancePath:instancePath+"/waiting/reason_code",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid14 = _errs75 === errors;}else {var valid14 = true;}if(valid14){if(data26.since !== undefined){let data29 = data26.since;const _errs77 = errors;if(errors === _errs77){if(errors === _errs77){if(typeof data29 === "string"){if(!(formats0.validate(data29))){validate115.errors = [{instancePath:instancePath+"/waiting/since",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/since/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate115.errors = [{instancePath:instancePath+"/waiting/since",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/since/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid14 = _errs77 === errors;}else {var valid14 = true;}}}}}else {validate115.errors = [{instancePath:instancePath+"/waiting",schemaPath:"#/components/schemas/ActionsRunWaiting/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs66 === errors;}else {var valid0 = true;}if(valid0){if(data.sources !== undefined){let data30 = data.sources;const _errs79 = errors;if(errors === _errs79){if(data30 && typeof data30 == "object" && !Array.isArray(data30)){}else {validate115.errors = [{instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs79 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data31 = data.created_at;const _errs82 = errors;if(errors === _errs82){if(errors === _errs82){if(typeof data31 === "string"){if(!(formats0.validate(data31))){validate115.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate115.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs82 === errors;}else {var valid0 = true;}if(valid0){if(data.updated_at !== undefined){let data32 = data.updated_at;const _errs84 = errors;if(errors === _errs84){if(errors === _errs84){if(typeof data32 === "string"){if(!(formats0.validate(data32))){validate115.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate115.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs84 === errors;}else {var valid0 = true;}if(valid0){if(data.providers !== undefined){let data33 = data.providers;const _errs86 = errors;if(errors === _errs86){if(Array.isArray(data33)){var valid17 = true;const len0 = data33.length;for(let i0=0; i0<len0; i0++){let data34 = data33[i0];const _errs88 = errors;if(errors === _errs88){if(typeof data34 === "string"){if(func1(data34) > 64){validate115.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data34) < 1){validate115.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data34)){validate115.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate115.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid17 = _errs88 === errors;if(!valid17){break;}}if(valid17){let i1 = data33.length;let j0;if(i1 > 1){const indices0 = {};for(;i1--;){let item0 = data33[i1];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate115.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break;}indices0[item0] = i1;}}}}else {validate115.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs86 === errors;}else {var valid0 = true;}if(valid0){if(data.started_at !== undefined){let data35 = data.started_at;const _errs90 = errors;if(errors === _errs90){if(errors === _errs90){if(typeof data35 === "string"){if(!(formats0.validate(data35))){validate115.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 {validate115.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs90 === errors;}else {var valid0 = true;}if(valid0){if(data.completed_at !== undefined){let data36 = data.completed_at;const _errs92 = errors;if((typeof data36 !== "string") && (data36 !== null)){validate115.errors = [{instancePath:instancePath+"/completed_at",schemaPath:"#/properties/completed_at/type",keyword:"type",params:{type: schema111.properties.completed_at.type},message:"must be string,null"}];return false;}if(errors === _errs92){if(errors === _errs92){if(typeof data36 === "string"){if(!(formats0.validate(data36))){validate115.errors = [{instancePath:instancePath+"/completed_at",schemaPath:"#/properties/completed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs92 === errors;}else {var valid0 = true;}if(valid0){if(data.billing !== undefined){const _errs94 = errors;if(!(validate116(data.billing, {instancePath:instancePath+"/billing",parentData:data,parentDataProperty:"billing",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate116.errors : vErrors.concat(validate116.errors);errors = vErrors.length;}var valid0 = _errs94 === errors;}else {var valid0 = true;}if(valid0){if(data.controls !== undefined){const _errs95 = errors;if(!(validate127(data.controls, {instancePath:instancePath+"/controls",parentData:data,parentDataProperty:"controls",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate127.errors : vErrors.concat(validate127.errors);errors = vErrors.length;}var valid0 = _errs95 === errors;}else {var valid0 = true;}if(valid0){if(data.cost !== undefined){let data39 = data.cost;const _errs96 = errors;const _errs97 = errors;let valid19 = false;const _errs98 = errors;if(!(validate129(data39, {instancePath:instancePath+"/cost",parentData:data,parentDataProperty:"cost",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate129.errors : vErrors.concat(validate129.errors);errors = vErrors.length;}var _valid3 = _errs98 === errors;valid19 = valid19 || _valid3;const _errs99 = errors;if(data39 !== null){const err9 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs99 === errors;valid19 = valid19 || _valid3;if(!valid19){const err10 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;validate115.errors = vErrors;return false;}else {errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}}var valid0 = _errs96 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate115.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate115.errors = vErrors;return errors === 0;}validate115.evaluated = {"props":{"id":true,"github_run_id":true,"run_attempt":true,"repository_id":true,"repository":true,"workflow_name":true,"workflow":true,"branch":true,"run_url":true,"head_branch":true,"head_sha":true,"run_number":true,"display_title":true,"actor":true,"triggering_actor":true,"state":true,"result":true,"failure":true,"waiting":true,"sources":true,"created_at":true,"updated_at":true,"providers":true,"started_at":true,"completed_at":true,"billing":true,"controls":true,"cost":true},"dynamicProps":false,"dynamicItems":false};const schema146 = {"type":"object","required":["live","all"],"properties":{"live":{"minimum":0,"description":"Runs in progress: their state is queued, preparing, starting or running.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"all":{"minimum":0,"description":"All runs in the workspace.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}};function validate134(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate134.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.live === undefined) && (missing0 = "live")) || ((data.all === undefined) && (missing0 = "all"))){validate134.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.live !== undefined){let data0 = data.live;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+"/live",schemaPath:"#/properties/live/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+"/live",schemaPath:"#/properties/live/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+"/live",schemaPath:"#/properties/live/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate134.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){validate134.errors = [{instancePath:instancePath+"/live",schemaPath:"#/properties/live/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)){validate134.errors = [{instancePath:instancePath+"/live",schemaPath:"#/properties/live/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.all !== undefined){let data1 = data.all;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+"/all",schemaPath:"#/properties/all/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+"/all",schemaPath:"#/properties/all/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+"/all",schemaPath:"#/properties/all/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate134.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){validate134.errors = [{instancePath:instancePath+"/all",schemaPath:"#/properties/all/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)){validate134.errors = [{instancePath:instancePath+"/all",schemaPath:"#/properties/all/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}else {validate134.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate134.errors = vErrors;return errors === 0;}validate134.evaluated = {"props":{"live":true,"all":true},"dynamicProps":false,"dynamicItems":false};function validate114(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate114.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"))){validate114.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(!(validate115(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate115.errors : vErrors.concat(validate115.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate114.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)){validate114.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema110.properties.next_cursor.type},message:"must be string,null"}];return false;}if(errors === _errs4){if(typeof data2 === "string"){if(func1(data2) > 128){validate114.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate114.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate114.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.counts !== undefined){const _errs6 = errors;if(!(validate134(data.counts, {instancePath:instancePath+"/counts",parentData:data,parentDataProperty:"counts",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate134.errors : vErrors.concat(validate134.errors);errors = vErrors.length;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.total !== undefined){let data4 = data.total;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid3 = false;const _errs10 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err0 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;valid3 = valid3 || _valid0;const _errs12 = errors;if(typeof data4 !== "bigint"){const err1 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs12 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate114.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid2 = _errs8 === errors;if(valid2){if(typeof data4 === "bigint"){if(data4 < 0){validate114.errors = [{instancePath:instancePath+"/total",schemaPath:"#/properties/total/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 data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){validate114.errors = [{instancePath:instancePath+"/total",schemaPath:"#/properties/total/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate114.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate114.errors = vErrors;return errors === 0;}validate114.evaluated = {"props":{"data":true,"next_cursor":true,"counts":true,"total":true},"dynamicProps":false,"dynamicItems":false};exports.validate10 = validate136;const schema147 = {"type":"object","required":["state","repository","workflow","triggered_by","branch","job","runner_label"],"properties":{"state":{"$ref":"#/components/schemas/ActionsRunFacetList"},"repository":{"$ref":"#/components/schemas/ActionsRunFacetList","description":"Values are repository IDs, for `repository_id`."},"workflow":{"$ref":"#/components/schemas/ActionsRunFacetList"},"triggered_by":{"$ref":"#/components/schemas/ActionsRunFacetList"},"branch":{"$ref":"#/components/schemas/ActionsRunFacetList"},"job":{"$ref":"#/components/schemas/ActionsRunFacetList","description":"Values are unpadded base64url-encoded UTF-8 JSON `[workflow, job]`; labels are `Workflow › job`."},"runner_label":{"$ref":"#/components/schemas/ActionsRunFacetList"}}};const schema148 = {"type":"array","items":{"$ref":"#/components/schemas/ActionsRunFacetValue"}};const schema149 = {"type":"object","required":["value","label","count"],"properties":{"value":{"type":"string","minLength":1,"maxLength":513,"description":"What to send as the filter's parameter."},"label":{"type":"string","minLength":1,"maxLength":256},"count":{"minimum":0,"description":"Runs in the workspace that have this value.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}};function validate138(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate138.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.value === undefined) && (missing0 = "value")) || ((data.label === undefined) && (missing0 = "label"))) || ((data.count === undefined) && (missing0 = "count"))){validate138.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.value !== undefined){let data0 = data.value;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 513){validate138.errors = [{instancePath:instancePath+"/value",schemaPath:"#/properties/value/maxLength",keyword:"maxLength",params:{limit: 513},message:"must NOT have more than 513 characters"}];return false;}else {if(func1(data0) < 1){validate138.errors = [{instancePath:instancePath+"/value",schemaPath:"#/properties/value/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate138.errors = [{instancePath:instancePath+"/value",schemaPath:"#/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.label !== undefined){let data1 = data.label;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 256){validate138.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}else {if(func1(data1) < 1){validate138.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate138.errors = [{instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.count !== undefined){let data2 = data.count;const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;let valid2 = false;const _errs8 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err0 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;const _errs10 = errors;if(typeof data2 !== "bigint"){const err1 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs10 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/count",schemaPath:"#/properties/count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate138.errors = vErrors;return false;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}var valid1 = _errs6 === errors;if(valid1){if(typeof data2 === "bigint"){if(data2 < 0){validate138.errors = [{instancePath:instancePath+"/count",schemaPath:"#/properties/count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs5){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){validate138.errors = [{instancePath:instancePath+"/count",schemaPath:"#/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}}}}}else {validate138.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate138.errors = vErrors;return errors === 0;}validate138.evaluated = {"props":{"value":true,"label":true,"count":true},"dynamicProps":false,"dynamicItems":false};function validate137(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate137.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){const _errs1 = errors;if(!(validate138(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate138.errors : vErrors.concat(validate138.errors);errors = vErrors.length;}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate137.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate137.errors = vErrors;return errors === 0;}validate137.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate136(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate136.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.repository === undefined) && (missing0 = "repository"))) || ((data.workflow === undefined) && (missing0 = "workflow"))) || ((data.triggered_by === undefined) && (missing0 = "triggered_by"))) || ((data.branch === undefined) && (missing0 = "branch"))) || ((data.job === undefined) && (missing0 = "job"))) || ((data.runner_label === undefined) && (missing0 = "runner_label"))){validate136.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(!(validate137(data.state, {instancePath:instancePath+"/state",parentData:data,parentDataProperty:"state",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate137.errors : vErrors.concat(validate137.errors);errors = vErrors.length;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.repository !== undefined){const _errs2 = errors;if(!(validate137(data.repository, {instancePath:instancePath+"/repository",parentData:data,parentDataProperty:"repository",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate137.errors : vErrors.concat(validate137.errors);errors = vErrors.length;}var valid0 = _errs2 === errors;}else {var valid0 = true;}if(valid0){if(data.workflow !== undefined){const _errs3 = errors;if(!(validate137(data.workflow, {instancePath:instancePath+"/workflow",parentData:data,parentDataProperty:"workflow",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate137.errors : vErrors.concat(validate137.errors);errors = vErrors.length;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.triggered_by !== undefined){const _errs4 = errors;if(!(validate137(data.triggered_by, {instancePath:instancePath+"/triggered_by",parentData:data,parentDataProperty:"triggered_by",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate137.errors : vErrors.concat(validate137.errors);errors = vErrors.length;}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.branch !== undefined){const _errs5 = errors;if(!(validate137(data.branch, {instancePath:instancePath+"/branch",parentData:data,parentDataProperty:"branch",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate137.errors : vErrors.concat(validate137.errors);errors = vErrors.length;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.job !== undefined){const _errs6 = errors;if(!(validate137(data.job, {instancePath:instancePath+"/job",parentData:data,parentDataProperty:"job",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate137.errors : vErrors.concat(validate137.errors);errors = vErrors.length;}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.runner_label !== undefined){const _errs7 = errors;if(!(validate137(data.runner_label, {instancePath:instancePath+"/runner_label",parentData:data,parentDataProperty:"runner_label",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate137.errors : vErrors.concat(validate137.errors);errors = vErrors.length;}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}}}}else {validate136.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate136.errors = vErrors;return errors === 0;}validate136.evaluated = {"props":{"state":true,"repository":true,"workflow":true,"triggered_by":true,"branch":true,"job":true,"runner_label":true},"dynamicProps":false,"dynamicItems":false};exports.validate11 = validate147;const schema150 = {"type":"object","required":["since","until","runner_count","idle_seconds","billing","pools"],"properties":{"since":{"type":"string","format":"date-time","description":"The start of the range read, inclusive."},"until":{"type":"string","format":"date-time","description":"The end of the range read, exclusive."},"runner_count":{"minimum":0,"description":"Runners that started in the range and served no job.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"idle_seconds":{"minimum":0,"description":"Total lifetime of those runners.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"billing":{"description":"Provider cost and customer charge of all those runners together; the charge is final only when every runner's charge is.","$ref":"#/components/schemas/ActionsBilling"},"pools":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/ActionsPoolIdleTimePool"}}}};const schema151 = {"type":"object","required":["pool_id","labels","runner_count","idle_seconds","billing"],"properties":{"pool_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$","description":"Opaque ID of the runner pool; it is the same for every runner with the same repository and labels."},"labels":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"description":"The runner labels that define the pool."},"runner_count":{"minimum":0,"description":"Runners of this pool that started in the range and served no job.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"idle_seconds":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"billing":{"$ref":"#/components/schemas/ActionsBilling"}}};function validate149(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate149.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.pool_id === undefined) && (missing0 = "pool_id")) || ((data.labels === undefined) && (missing0 = "labels"))) || ((data.runner_count === undefined) && (missing0 = "runner_count"))) || ((data.idle_seconds === undefined) && (missing0 = "idle_seconds"))) || ((data.billing === undefined) && (missing0 = "billing"))){validate149.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.pool_id !== undefined){let data0 = data.pool_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate149.errors = [{instancePath:instancePath+"/pool_id",schemaPath:"#/properties/pool_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate149.errors = [{instancePath:instancePath+"/pool_id",schemaPath:"#/properties/pool_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate149.errors = [{instancePath:instancePath+"/pool_id",schemaPath:"#/properties/pool_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate149.errors = [{instancePath:instancePath+"/pool_id",schemaPath:"#/properties/pool_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.labels !== undefined){let data1 = data.labels;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){if(data1.length > 64){validate149.errors = [{instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/maxItems",keyword:"maxItems",params:{limit: 64},message:"must NOT have more than 64 items"}];return false;}else {var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate149.errors = [{instancePath:instancePath+"/labels/" + i0,schemaPath:"#/properties/labels/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate149.errors = [{instancePath:instancePath+"/labels/" + i0,schemaPath:"#/properties/labels/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate149.errors = [{instancePath:instancePath+"/labels/" + i0,schemaPath:"#/properties/labels/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate149.errors = [{instancePath:instancePath+"/labels/" + i0,schemaPath:"#/properties/labels/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs5 === errors;if(!valid1){break;}}}}else {validate149.errors = [{instancePath:instancePath+"/labels",schemaPath:"#/properties/labels/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.runner_count !== undefined){let data3 = data.runner_count;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid3 = false;const _errs10 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err0 = {instancePath:instancePath+"/runner_count",schemaPath:"#/properties/runner_count/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;valid3 = valid3 || _valid0;const _errs12 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/runner_count",schemaPath:"#/properties/runner_count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs12 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/runner_count",schemaPath:"#/properties/runner_count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate149.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid2 = _errs8 === errors;if(valid2){if(typeof data3 === "bigint"){if(data3 < 0){validate149.errors = [{instancePath:instancePath+"/runner_count",schemaPath:"#/properties/runner_count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate149.errors = [{instancePath:instancePath+"/runner_count",schemaPath:"#/properties/runner_count/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.idle_seconds !== undefined){let data4 = data.idle_seconds;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid5 = false;const _errs16 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err3 = {instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_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 = _errs16 === errors;valid5 = valid5 || _valid1;const _errs18 = errors;if(typeof data4 !== "bigint"){const err4 = {instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_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 = _errs18 === errors;valid5 = valid5 || _valid1;if(!valid5){const err5 = {instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate149.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid4 = _errs14 === errors;if(valid4){if(typeof data4 === "bigint"){if(data4 < 0){validate149.errors = [{instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){validate149.errors = [{instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.billing !== undefined){const _errs19 = errors;if(!(validate116(data.billing, {instancePath:instancePath+"/billing",parentData:data,parentDataProperty:"billing",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate116.errors : vErrors.concat(validate116.errors);errors = vErrors.length;}var valid0 = _errs19 === errors;}else {var valid0 = true;}}}}}}}else {validate149.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate149.errors = vErrors;return errors === 0;}validate149.evaluated = {"props":{"pool_id":true,"labels":true,"runner_count":true,"idle_seconds":true,"billing":true},"dynamicProps":false,"dynamicItems":false};function validate147(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate147.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.since === undefined) && (missing0 = "since")) || ((data.until === undefined) && (missing0 = "until"))) || ((data.runner_count === undefined) && (missing0 = "runner_count"))) || ((data.idle_seconds === undefined) && (missing0 = "idle_seconds"))) || ((data.billing === undefined) && (missing0 = "billing"))) || ((data.pools === undefined) && (missing0 = "pools"))){validate147.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.since !== undefined){let data0 = data.since;const _errs1 = errors;if(errors === _errs1){if(errors === _errs1){if(typeof data0 === "string"){if(!(formats0.validate(data0))){validate147.errors = [{instancePath:instancePath+"/since",schemaPath:"#/properties/since/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate147.errors = [{instancePath:instancePath+"/since",schemaPath:"#/properties/since/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.until !== undefined){let data1 = data.until;const _errs3 = errors;if(errors === _errs3){if(errors === _errs3){if(typeof data1 === "string"){if(!(formats0.validate(data1))){validate147.errors = [{instancePath:instancePath+"/until",schemaPath:"#/properties/until/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate147.errors = [{instancePath:instancePath+"/until",schemaPath:"#/properties/until/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.runner_count !== undefined){let data2 = data.runner_count;const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;let valid2 = false;const _errs8 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err0 = {instancePath:instancePath+"/runner_count",schemaPath:"#/properties/runner_count/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;const _errs10 = errors;if(typeof data2 !== "bigint"){const err1 = {instancePath:instancePath+"/runner_count",schemaPath:"#/properties/runner_count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs10 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/runner_count",schemaPath:"#/properties/runner_count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate147.errors = vErrors;return false;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}var valid1 = _errs6 === errors;if(valid1){if(typeof data2 === "bigint"){if(data2 < 0){validate147.errors = [{instancePath:instancePath+"/runner_count",schemaPath:"#/properties/runner_count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs5){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){validate147.errors = [{instancePath:instancePath+"/runner_count",schemaPath:"#/properties/runner_count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.idle_seconds !== undefined){let data3 = data.idle_seconds;const _errs11 = errors;const _errs12 = errors;const _errs13 = errors;let valid4 = false;const _errs14 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err3 = {instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_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 = _errs14 === errors;valid4 = valid4 || _valid1;const _errs16 = errors;if(typeof data3 !== "bigint"){const err4 = {instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_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 = _errs16 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate147.errors = vErrors;return false;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}var valid3 = _errs12 === errors;if(valid3){if(typeof data3 === "bigint"){if(data3 < 0){validate147.errors = [{instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs11){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate147.errors = [{instancePath:instancePath+"/idle_seconds",schemaPath:"#/properties/idle_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.billing !== undefined){const _errs17 = errors;if(!(validate116(data.billing, {instancePath:instancePath+"/billing",parentData:data,parentDataProperty:"billing",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate116.errors : vErrors.concat(validate116.errors);errors = vErrors.length;}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.pools !== undefined){let data5 = data.pools;const _errs18 = errors;if(errors === _errs18){if(Array.isArray(data5)){if(data5.length > 1000){validate147.errors = [{instancePath:instancePath+"/pools",schemaPath:"#/properties/pools/maxItems",keyword:"maxItems",params:{limit: 1000},message:"must NOT have more than 1000 items"}];return false;}else {var valid5 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){const _errs20 = errors;if(!(validate149(data5[i0], {instancePath:instancePath+"/pools/" + i0,parentData:data5,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate149.errors : vErrors.concat(validate149.errors);errors = vErrors.length;}var valid5 = _errs20 === errors;if(!valid5){break;}}}}else {validate147.errors = [{instancePath:instancePath+"/pools",schemaPath:"#/properties/pools/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs18 === errors;}else {var valid0 = true;}}}}}}}}else {validate147.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate147.errors = vErrors;return errors === 0;}validate147.evaluated = {"props":{"since":true,"until":true,"runner_count":true,"idle_seconds":true,"billing":true,"pools":true},"dynamicProps":false,"dynamicItems":false};exports.validate12 = validate152;function validate152(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate152.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.github_run_id === undefined) && (missing0 = "github_run_id"))) || ((data.run_attempt === undefined) && (missing0 = "run_attempt"))) || ((data.repository_id === undefined) && (missing0 = "repository_id"))) || ((data.workflow_name === undefined) && (missing0 = "workflow_name"))) || ((data.state === undefined) && (missing0 = "state"))) || ((data.result === undefined) && (missing0 = "result"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.updated_at === undefined) && (missing0 = "updated_at"))) || ((data.billing === undefined) && (missing0 = "billing"))){validate152.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate152.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate152.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate152.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate152.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.github_run_id !== undefined){let data1 = data.github_run_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate152.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate152.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate152.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate152.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.run_attempt !== undefined){let data2 = data.run_attempt;const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;let valid2 = false;const _errs8 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err0 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;const _errs10 = errors;if(typeof data2 !== "bigint"){const err1 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs10 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate152.errors = vErrors;return false;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}var valid1 = _errs6 === errors;if(valid1){if(typeof data2 === "bigint"){if(data2 < 1){validate152.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs5){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate152.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.repository_id !== undefined){let data3 = data.repository_id;const _errs11 = errors;if(errors === _errs11){if(typeof data3 === "string"){if(func1(data3) > 128){validate152.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate152.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data3)){validate152.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate152.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.repository !== undefined){let data4 = data.repository;const _errs13 = errors;if(errors === _errs13){if(typeof data4 === "string"){if(func1(data4) > 255){validate152.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data4) < 1){validate152.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate152.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.workflow_name !== undefined){let data5 = data.workflow_name;const _errs15 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate152.errors = [{instancePath:instancePath+"/workflow_name",schemaPath:"#/properties/workflow_name/type",keyword:"type",params:{type: schema111.properties.workflow_name.type},message:"must be string,null"}];return false;}if(errors === _errs15){if(typeof data5 === "string"){if(func1(data5) > 255){validate152.errors = [{instancePath:instancePath+"/workflow_name",schemaPath:"#/properties/workflow_name/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data5) < 1){validate152.errors = [{instancePath:instancePath+"/workflow_name",schemaPath:"#/properties/workflow_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.workflow !== undefined){let data6 = data.workflow;const _errs17 = errors;if(errors === _errs17){if(typeof data6 === "string"){if(func1(data6) > 255){validate152.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data6) < 1){validate152.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate152.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.branch !== undefined){let data7 = data.branch;const _errs19 = errors;if(errors === _errs19){if(typeof data7 === "string"){if(func1(data7) > 255){validate152.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data7) < 1){validate152.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate152.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.run_url !== undefined){let data8 = data.run_url;const _errs21 = errors;if(errors === _errs21){if(errors === _errs21){if(typeof data8 === "string"){if(func1(data8) > 2048){validate152.errors = [{instancePath:instancePath+"/run_url",schemaPath:"#/properties/run_url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate152.errors = [{instancePath:instancePath+"/run_url",schemaPath:"#/properties/run_url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.head_branch !== undefined){let data9 = data.head_branch;const _errs23 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate152.errors = [{instancePath:instancePath+"/head_branch",schemaPath:"#/properties/head_branch/type",keyword:"type",params:{type: schema111.properties.head_branch.type},message:"must be string,null"}];return false;}if(errors === _errs23){if(typeof data9 === "string"){if(func1(data9) > 255){validate152.errors = [{instancePath:instancePath+"/head_branch",schemaPath:"#/properties/head_branch/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data9) < 1){validate152.errors = [{instancePath:instancePath+"/head_branch",schemaPath:"#/properties/head_branch/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.head_sha !== undefined){let data10 = data.head_sha;const _errs25 = errors;if(errors === _errs25){if(typeof data10 === "string"){if(func1(data10) > 128){validate152.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data10) < 1){validate152.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data10)){validate152.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate152.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.run_number !== undefined){let data11 = data.run_number;const _errs27 = errors;const _errs28 = errors;const _errs29 = errors;let valid4 = false;const _errs30 = errors;if(!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))){const err3 = {instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs30 === errors;valid4 = valid4 || _valid1;const _errs32 = errors;if(typeof data11 !== "bigint"){const err4 = {instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs32 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate152.errors = vErrors;return false;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}var valid3 = _errs28 === errors;if(valid3){if(typeof data11 === "bigint"){if(data11 < 1){validate152.errors = [{instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs27){if((typeof data11 == "number") && (isFinite(data11))){if(data11 < 1 || isNaN(data11)){validate152.errors = [{instancePath:instancePath+"/run_number",schemaPath:"#/properties/run_number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs27 === errors;}else {var valid0 = true;}if(valid0){if(data.display_title !== undefined){let data12 = data.display_title;const _errs33 = errors;if(errors === _errs33){if(typeof data12 === "string"){if(func1(data12) < 1){validate152.errors = [{instancePath:instancePath+"/display_title",schemaPath:"#/properties/display_title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate152.errors = [{instancePath:instancePath+"/display_title",schemaPath:"#/properties/display_title/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs33 === errors;}else {var valid0 = true;}if(valid0){if(data.actor !== undefined){let data13 = data.actor;const _errs35 = errors;const _errs36 = errors;if(errors === _errs36){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){let missing1;if(((data13.login === undefined) && (missing1 = "login")) || ((data13.profile_url === undefined) && (missing1 = "profile_url"))){validate152.errors = [{instancePath:instancePath+"/actor",schemaPath:"#/components/schemas/ActionsGitHubActor/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data13.login !== undefined){let data14 = data13.login;const _errs38 = errors;if(errors === _errs38){if(typeof data14 === "string"){if(func1(data14) > 255){validate152.errors = [{instancePath:instancePath+"/actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data14) < 1){validate152.errors = [{instancePath:instancePath+"/actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data14)){validate152.errors = [{instancePath:instancePath+"/actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate152.errors = [{instancePath:instancePath+"/actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs38 === errors;}else {var valid6 = true;}if(valid6){if(data13.profile_url !== undefined){let data15 = data13.profile_url;const _errs40 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate152.errors = [{instancePath:instancePath+"/actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/type",keyword:"type",params:{type: schema112.properties.profile_url.type},message:"must be string,null"}];return false;}if(errors === _errs40){if(errors === _errs40){if(typeof data15 === "string"){if(func1(data15) > 2048){validate152.errors = [{instancePath:instancePath+"/actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}else {if(!pattern66.test(data15)){validate152.errors = [{instancePath:instancePath+"/actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/pattern",keyword:"pattern",params:{pattern: "^https://github\\.com/(apps/)?[^/?#]+$"},message:"must match pattern \""+"^https://github\\.com/(apps/)?[^/?#]+$"+"\""}];return false;}}}}}var valid6 = _errs40 === errors;}else {var valid6 = true;}}}}else {validate152.errors = [{instancePath:instancePath+"/actor",schemaPath:"#/components/schemas/ActionsGitHubActor/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.triggering_actor !== undefined){let data16 = data.triggering_actor;const _errs42 = errors;const _errs43 = errors;if(errors === _errs43){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing2;if(((data16.login === undefined) && (missing2 = "login")) || ((data16.profile_url === undefined) && (missing2 = "profile_url"))){validate152.errors = [{instancePath:instancePath+"/triggering_actor",schemaPath:"#/components/schemas/ActionsGitHubActor/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data16.login !== undefined){let data17 = data16.login;const _errs45 = errors;if(errors === _errs45){if(typeof data17 === "string"){if(func1(data17) > 255){validate152.errors = [{instancePath:instancePath+"/triggering_actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data17) < 1){validate152.errors = [{instancePath:instancePath+"/triggering_actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data17)){validate152.errors = [{instancePath:instancePath+"/triggering_actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate152.errors = [{instancePath:instancePath+"/triggering_actor/login",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/login/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid8 = _errs45 === errors;}else {var valid8 = true;}if(valid8){if(data16.profile_url !== undefined){let data18 = data16.profile_url;const _errs47 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate152.errors = [{instancePath:instancePath+"/triggering_actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/type",keyword:"type",params:{type: schema112.properties.profile_url.type},message:"must be string,null"}];return false;}if(errors === _errs47){if(errors === _errs47){if(typeof data18 === "string"){if(func1(data18) > 2048){validate152.errors = [{instancePath:instancePath+"/triggering_actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}else {if(!pattern66.test(data18)){validate152.errors = [{instancePath:instancePath+"/triggering_actor/profile_url",schemaPath:"#/components/schemas/ActionsGitHubActor/properties/profile_url/pattern",keyword:"pattern",params:{pattern: "^https://github\\.com/(apps/)?[^/?#]+$"},message:"must match pattern \""+"^https://github\\.com/(apps/)?[^/?#]+$"+"\""}];return false;}}}}}var valid8 = _errs47 === errors;}else {var valid8 = true;}}}}else {validate152.errors = [{instancePath:instancePath+"/triggering_actor",schemaPath:"#/components/schemas/ActionsGitHubActor/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs42 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){let data19 = data.state;const _errs49 = errors;if(typeof data19 !== "string"){validate152.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data19 === "queued") || (data19 === "preparing")) || (data19 === "starting")) || (data19 === "running")) || (data19 === "stopping")) || (data19 === "ended")) || (data19 === "attention_required"))){validate152.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/enum",keyword:"enum",params:{allowedValues: schema114.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs49 === errors;}else {var valid0 = true;}if(valid0){if(data.result !== undefined){let data20 = data.result;const _errs52 = errors;if((typeof data20 !== "string") && (data20 !== null)){validate152.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/type",keyword:"type",params:{type: schema115.type},message:"must be string,null"}];return false;}if(!(((((((((data20 === "success") || (data20 === "workload_failure")) || (data20 === "cancelled")) || (data20 === "timed_out")) || (data20 === "infrastructure_failure")) || (data20 === "skipped")) || (data20 === "neutral")) || (data20 === "unknown")) || (data20 === null))){validate152.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/enum",keyword:"enum",params:{allowedValues: schema115.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs52 === errors;}else {var valid0 = true;}if(valid0){if(data.failure !== undefined){let data21 = data.failure;const _errs55 = errors;const _errs56 = errors;if(errors === _errs56){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){let missing3;if(((((data21.kind === undefined) && (missing3 = "kind")) || ((data21.reason_code === undefined) && (missing3 = "reason_code"))) || ((data21.message === undefined) && (missing3 = "message"))) || ((data21.link_target === undefined) && (missing3 = "link_target"))){validate152.errors = [{instancePath:instancePath+"/failure",schemaPath:"#/components/schemas/ActionsFailure/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data21.kind !== undefined){let data22 = data21.kind;const _errs58 = errors;if(typeof data22 !== "string"){validate152.errors = [{instancePath:instancePath+"/failure/kind",schemaPath:"#/components/schemas/ActionsFailure/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data22 === "workflow") || (data22 === "boxrouter"))){validate152.errors = [{instancePath:instancePath+"/failure/kind",schemaPath:"#/components/schemas/ActionsFailure/properties/kind/enum",keyword:"enum",params:{allowedValues: schema116.properties.kind.enum},message:"must be equal to one of the allowed values"}];return false;}var valid12 = _errs58 === errors;}else {var valid12 = true;}if(valid12){if(data21.reason_code !== undefined){let data23 = data21.reason_code;const _errs60 = errors;if((typeof data23 !== "string") && (data23 !== null)){validate152.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/type",keyword:"type",params:{type: schema116.properties.reason_code.type},message:"must be string,null"}];return false;}if(errors === _errs60){if(typeof data23 === "string"){if(func1(data23) > 128){validate152.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(!pattern38.test(data23)){validate152.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_.-]{0,127}$"},message:"must match pattern \""+"^[a-z][a-z0-9_.-]{0,127}$"+"\""}];return false;}}}}var valid12 = _errs60 === errors;}else {var valid12 = true;}if(valid12){if(data21.message !== undefined){let data24 = data21.message;const _errs62 = errors;if((typeof data24 !== "string") && (data24 !== null)){validate152.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/type",keyword:"type",params:{type: schema116.properties.message.type},message:"must be string,null"}];return false;}if(errors === _errs62){if(typeof data24 === "string"){if(func1(data24) > 1024){validate152.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/maxLength",keyword:"maxLength",params:{limit: 1024},message:"must NOT have more than 1024 characters"}];return false;}else {if(func1(data24) < 1){validate152.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid12 = _errs62 === errors;}else {var valid12 = true;}if(valid12){if(data21.link_target !== undefined){let data25 = data21.link_target;const _errs64 = errors;if((typeof data25 !== "string") && (data25 !== null)){validate152.errors = [{instancePath:instancePath+"/failure/link_target",schemaPath:"#/components/schemas/ActionsFailure/properties/link_target/type",keyword:"type",params:{type: schema116.properties.link_target.type},message:"must be string,null"}];return false;}if(!((((data25 === "byok") || (data25 === "credits")) || (data25 === "github")) || (data25 === null))){validate152.errors = [{instancePath:instancePath+"/failure/link_target",schemaPath:"#/components/schemas/ActionsFailure/properties/link_target/enum",keyword:"enum",params:{allowedValues: schema116.properties.link_target.enum},message:"must be equal to one of the allowed values"}];return false;}var valid12 = _errs64 === errors;}else {var valid12 = true;}}}}}}else {validate152.errors = [{instancePath:instancePath+"/failure",schemaPath:"#/components/schemas/ActionsFailure/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs55 === errors;}else {var valid0 = true;}if(valid0){if(data.waiting !== undefined){let data26 = data.waiting;const _errs66 = errors;const _errs67 = errors;if(errors === _errs67){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){let missing4;if((((data26.job_count === undefined) && (missing4 = "job_count")) || ((data26.reason_code === undefined) && (missing4 = "reason_code"))) || ((data26.since === undefined) && (missing4 = "since"))){validate152.errors = [{instancePath:instancePath+"/waiting",schemaPath:"#/components/schemas/ActionsRunWaiting/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(data26.job_count !== undefined){let data27 = data26.job_count;const _errs69 = errors;const _errs70 = errors;const _errs71 = errors;let valid16 = false;const _errs72 = errors;if(!(((typeof data27 == "number") && (!(data27 % 1) && !isNaN(data27))) && (isFinite(data27)))){const err6 = {instancePath:instancePath+"/waiting/job_count",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/job_count/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 _valid2 = _errs72 === errors;valid16 = valid16 || _valid2;const _errs74 = errors;if(typeof data27 !== "bigint"){const err7 = {instancePath:instancePath+"/waiting/job_count",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/job_count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs74 === errors;valid16 = valid16 || _valid2;if(!valid16){const err8 = {instancePath:instancePath+"/waiting/job_count",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/job_count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate152.errors = vErrors;return false;}else {errors = _errs71;if(vErrors !== null){if(_errs71){vErrors.length = _errs71;}else {vErrors = null;}}}var valid15 = _errs70 === errors;if(valid15){if(typeof data27 === "bigint"){if(data27 < 1){validate152.errors = [{instancePath:instancePath+"/waiting/job_count",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/job_count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs69){if((typeof data27 == "number") && (isFinite(data27))){if(data27 < 1 || isNaN(data27)){validate152.errors = [{instancePath:instancePath+"/waiting/job_count",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/job_count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid14 = _errs69 === errors;}else {var valid14 = true;}if(valid14){if(data26.reason_code !== undefined){let data28 = data26.reason_code;const _errs75 = errors;if(errors === _errs75){if(typeof data28 === "string"){if(func1(data28) > 64){validate152.errors = [{instancePath:instancePath+"/waiting/reason_code",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data28) < 1){validate152.errors = [{instancePath:instancePath+"/waiting/reason_code",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/reason_code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern70.test(data28)){validate152.errors = [{instancePath:instancePath+"/waiting/reason_code",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/reason_code/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 {validate152.errors = [{instancePath:instancePath+"/waiting/reason_code",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid14 = _errs75 === errors;}else {var valid14 = true;}if(valid14){if(data26.since !== undefined){let data29 = data26.since;const _errs77 = errors;if(errors === _errs77){if(errors === _errs77){if(typeof data29 === "string"){if(!(formats0.validate(data29))){validate152.errors = [{instancePath:instancePath+"/waiting/since",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/since/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate152.errors = [{instancePath:instancePath+"/waiting/since",schemaPath:"#/components/schemas/ActionsRunWaiting/properties/since/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid14 = _errs77 === errors;}else {var valid14 = true;}}}}}else {validate152.errors = [{instancePath:instancePath+"/waiting",schemaPath:"#/components/schemas/ActionsRunWaiting/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs66 === errors;}else {var valid0 = true;}if(valid0){if(data.sources !== undefined){let data30 = data.sources;const _errs79 = errors;if(errors === _errs79){if(data30 && typeof data30 == "object" && !Array.isArray(data30)){}else {validate152.errors = [{instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs79 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data31 = data.created_at;const _errs82 = errors;if(errors === _errs82){if(errors === _errs82){if(typeof data31 === "string"){if(!(formats0.validate(data31))){validate152.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate152.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs82 === errors;}else {var valid0 = true;}if(valid0){if(data.updated_at !== undefined){let data32 = data.updated_at;const _errs84 = errors;if(errors === _errs84){if(errors === _errs84){if(typeof data32 === "string"){if(!(formats0.validate(data32))){validate152.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate152.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs84 === errors;}else {var valid0 = true;}if(valid0){if(data.providers !== undefined){let data33 = data.providers;const _errs86 = errors;if(errors === _errs86){if(Array.isArray(data33)){var valid17 = true;const len0 = data33.length;for(let i0=0; i0<len0; i0++){let data34 = data33[i0];const _errs88 = errors;if(errors === _errs88){if(typeof data34 === "string"){if(func1(data34) > 64){validate152.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data34) < 1){validate152.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data34)){validate152.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate152.errors = [{instancePath:instancePath+"/providers/" + i0,schemaPath:"#/properties/providers/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid17 = _errs88 === errors;if(!valid17){break;}}if(valid17){let i1 = data33.length;let j0;if(i1 > 1){const indices0 = {};for(;i1--;){let item0 = data33[i1];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate152.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break;}indices0[item0] = i1;}}}}else {validate152.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs86 === errors;}else {var valid0 = true;}if(valid0){if(data.started_at !== undefined){let data35 = data.started_at;const _errs90 = errors;if(errors === _errs90){if(errors === _errs90){if(typeof data35 === "string"){if(!(formats0.validate(data35))){validate152.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 {validate152.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs90 === errors;}else {var valid0 = true;}if(valid0){if(data.completed_at !== undefined){let data36 = data.completed_at;const _errs92 = errors;if((typeof data36 !== "string") && (data36 !== null)){validate152.errors = [{instancePath:instancePath+"/completed_at",schemaPath:"#/properties/completed_at/type",keyword:"type",params:{type: schema111.properties.completed_at.type},message:"must be string,null"}];return false;}if(errors === _errs92){if(errors === _errs92){if(typeof data36 === "string"){if(!(formats0.validate(data36))){validate152.errors = [{instancePath:instancePath+"/completed_at",schemaPath:"#/properties/completed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs92 === errors;}else {var valid0 = true;}if(valid0){if(data.billing !== undefined){const _errs94 = errors;if(!(validate116(data.billing, {instancePath:instancePath+"/billing",parentData:data,parentDataProperty:"billing",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate116.errors : vErrors.concat(validate116.errors);errors = vErrors.length;}var valid0 = _errs94 === errors;}else {var valid0 = true;}if(valid0){if(data.controls !== undefined){const _errs95 = errors;if(!(validate127(data.controls, {instancePath:instancePath+"/controls",parentData:data,parentDataProperty:"controls",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate127.errors : vErrors.concat(validate127.errors);errors = vErrors.length;}var valid0 = _errs95 === errors;}else {var valid0 = true;}if(valid0){if(data.cost !== undefined){let data39 = data.cost;const _errs96 = errors;const _errs97 = errors;let valid19 = false;const _errs98 = errors;if(!(validate129(data39, {instancePath:instancePath+"/cost",parentData:data,parentDataProperty:"cost",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate129.errors : vErrors.concat(validate129.errors);errors = vErrors.length;}var _valid3 = _errs98 === errors;valid19 = valid19 || _valid3;const _errs99 = errors;if(data39 !== null){const err9 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs99 === errors;valid19 = valid19 || _valid3;if(!valid19){const err10 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;validate152.errors = vErrors;return false;}else {errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}}var valid0 = _errs96 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate152.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate152.errors = vErrors;return errors === 0;}validate152.evaluated = {"props":{"id":true,"github_run_id":true,"run_attempt":true,"repository_id":true,"repository":true,"workflow_name":true,"workflow":true,"branch":true,"run_url":true,"head_branch":true,"head_sha":true,"run_number":true,"display_title":true,"actor":true,"triggering_actor":true,"state":true,"result":true,"failure":true,"waiting":true,"sources":true,"created_at":true,"updated_at":true,"providers":true,"started_at":true,"completed_at":true,"billing":true,"controls":true,"cost":true},"dynamicProps":false,"dynamicItems":false};exports.validate13 = validate156;const schema159 = {"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ActionsJob"}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}}};const schema160 = {"type":"object","required":["id","run_id","github_job_id","name","state","result","placement_ids"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"run_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"github_job_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"name":{"type":"string","minLength":1,"maxLength":255},"repository":{"type":"string","minLength":1,"maxLength":255,"description":"Durable GitHub repository full name when known."},"workflow":{"type":"string","minLength":1,"maxLength":255,"description":"GitHub workflow name when known."},"job_name":{"type":"string","minLength":1,"maxLength":255,"description":"GitHub job name when known."},"job_url":{"type":"string","format":"uri","maxLength":2048,"description":"GitHub workflow job URL when known."},"run_url":{"type":"string","format":"uri","maxLength":2048,"description":"GitHub workflow run URL when known."},"branch":{"type":"string","minLength":1,"maxLength":255,"description":"Head branch when known."},"head_sha":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"requested_environment":{"$ref":"#/components/schemas/ActionsRequestedEnvironment"},"requested_labels":{"type":["array","null"],"description":"GitHub runner labels frozen from the verified workflow job request at admission; absent or null when historical evidence is unavailable.","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}},"state":{"$ref":"#/components/schemas/ActionsRunState"},"result":{"$ref":"#/components/schemas/ActionsWorkResult"},"failure":{"$ref":"#/components/schemas/ActionsFailure"},"waiting":{"$ref":"#/components/schemas/ActionsWaiting"},"machine":{"$ref":"#/components/schemas/ActionsMachine"},"billing":{"$ref":"#/components/schemas/ActionsBilling"},"cost":{"anyOf":[{"$ref":"#/components/schemas/ActionsCost"},{"type":"null"}],"description":"Cost for this job, summed across its distinct Actions sandboxes. Null when no trustworthy cost evidence is available."},"lifetime_seconds":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"sources":{"type":"object","additionalProperties":true,"properties":{"region":{"$ref":"#/components/schemas/ActionsRegionSource"}}},"sandbox":{"anyOf":[{"$ref":"#/components/schemas/ActionsJobSandbox"},{"type":"null"}],"description":"The most recent durable placement sandbox for this job, including after cleanup."},"placement_ids":{"type":"array","uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}},"route_selection":{"$ref":"#/components/schemas/ActionsRouteSelection"},"creation":{"$ref":"#/components/schemas/CreationDiagnostics","description":"Diagnostics of the latest placement's creation; each placement carries its own."},"ordered_routes":{"type":"array","description":"Frozen route facts in the same order as route_selection.ordered_route_ids.","items":{"$ref":"#/components/schemas/ActionsOrderedRoute"}}}};const schema168 = {"type":"object","additionalProperties":true,"description":"Where the region value came from. Other keys name the record read; they stay open.","properties":{"kind":{"type":"string","x-boxrouter-open-enum":true,"description":"provider_reported: the provider API reported it for this sandbox. account_setting: set on the provider account. route_setting: set on the route. provider_docs: the provider documents it as the default."},"url":{"type":"string","format":"uri","maxLength":2048,"description":"The documentation page, for provider_docs."},"read_at":{"type":"string","format":"date","description":"Day the page was read, for provider_docs."}}};const schema169 = {"type":"object","required":["id","state","removed_at"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"state":{"type":"string","x-boxrouter-open-enum":true},"removed_at":{"type":["string","null"],"format":"date-time","description":"Time cleanup was confirmed; null until the sandbox's removal is confirmed."}}};const schema161 = {"type":"object","description":"Frozen admitted job request values only, from jobs.request_json metadata.actions.policy.profile and requirements. These are requested values, not configured or observed allocation. Null means the value was not recorded or is invalid; no defaults or current policy are inferred.","required":["profile","cpu","memory_mib","disk_mib"],"properties":{"profile":{"type":["string","null"],"x-boxrouter-open-enum":true,"description":"Frozen at request time; jobs written before the label simplification may still read linux-docker."},"cpu":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"memory_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"disk_mib":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}};function validate158(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate158.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.profile === undefined) && (missing0 = "profile")) || ((data.cpu === undefined) && (missing0 = "cpu"))) || ((data.memory_mib === undefined) && (missing0 = "memory_mib"))) || ((data.disk_mib === undefined) && (missing0 = "disk_mib"))){validate158.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.profile !== undefined){let data0 = data.profile;const _errs1 = errors;if((typeof data0 !== "string") && (data0 !== null)){validate158.errors = [{instancePath:instancePath+"/profile",schemaPath:"#/properties/profile/type",keyword:"type",params:{type: schema161.properties.profile.type},message:"must be string,null"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.cpu !== undefined){let data1 = data.cpu;const _errs3 = errors;const _errs4 = errors;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if((!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) && (data1 !== null)){const err0 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema161.properties.cpu.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+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate158.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid1 = _errs4 === errors;if(valid1){if(typeof data1 === "bigint"){if(data1 < 1){validate158.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs3){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 1 || isNaN(data1)){validate158.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.memory_mib !== undefined){let data2 = data.memory_mib;const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;let valid4 = false;const _errs12 = errors;if((!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) && (data2 !== null)){const err3 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema161.properties.memory_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs12 === errors;valid4 = valid4 || _valid1;const _errs14 = errors;if(typeof data2 !== "bigint"){const err4 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs14 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate158.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var valid3 = _errs10 === errors;if(valid3){if(typeof data2 === "bigint"){if(data2 < 1){validate158.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs9){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate158.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.disk_mib !== undefined){let data3 = data.disk_mib;const _errs15 = errors;const _errs16 = errors;const _errs17 = errors;let valid6 = false;const _errs18 = errors;if((!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) && (data3 !== null)){const err6 = {instancePath:instancePath+"/disk_mib",schemaPath:"#/properties/disk_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema161.properties.disk_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs18 === errors;valid6 = valid6 || _valid2;const _errs20 = errors;if(typeof data3 !== "bigint"){const err7 = {instancePath:instancePath+"/disk_mib",schemaPath:"#/properties/disk_mib/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 _valid2 = _errs20 === errors;valid6 = valid6 || _valid2;if(!valid6){const err8 = {instancePath:instancePath+"/disk_mib",schemaPath:"#/properties/disk_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate158.errors = vErrors;return false;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}var valid5 = _errs16 === errors;if(valid5){if(typeof data3 === "bigint"){if(data3 < 1){validate158.errors = [{instancePath:instancePath+"/disk_mib",schemaPath:"#/properties/disk_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs15){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate158.errors = [{instancePath:instancePath+"/disk_mib",schemaPath:"#/properties/disk_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}}}}}}else {validate158.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate158.errors = vErrors;return errors === 0;}validate158.evaluated = {"props":{"profile":true,"cpu":true,"memory_mib":true,"disk_mib":true},"dynamicProps":false,"dynamicItems":false};const schema165 = {"type":"object","description":"Why a job that has not started is still waiting. A `running` job can also wait, while its registered runner waits for GitHub to hand it the job (reason_code `registered`); its run reads `starting` unless another of its jobs is further along. Present only while it waits; absent otherwise and from servers that predate it. `sources.waiting` names the record it came from.","required":["reason_code","since"],"properties":{"reason_code":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9_]{0,63}$","description":"Bounded wait code, for example no_eligible_routes, insufficient_credit, compatible_slot_occupied, provider_capacity or admitted. Unknown codes are possible; clients show a generic waiting sentence."},"since":{"type":"string","format":"date-time","description":"When the job began waiting for this reason."},"action":{"type":["string","null"],"x-boxrouter-open-enum":true,"description":"Where the customer can resolve the wait, when they can."},"required_nanodollars":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,18})$","description":"What the job needs from the workspace's available credit, in billionths of a US dollar, the same figure the create refusal `insufficient_credit` reports. Present only for the reason_code `insufficient_credit`, and absent when Cloud did not record it."},"available_nanodollars":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,18})$","description":"What the workspace had available when the job was refused, never below zero. Present only with `required_nanodollars`."}},"dependentRequired":{"available_nanodollars":["required_nanodollars"]}};const pattern110 = new RegExp("^(0|[1-9][0-9]{0,18})$", "u");function validate160(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate160.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.reason_code === undefined) && (missing0 = "reason_code")) || ((data.since === undefined) && (missing0 = "since"))){validate160.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.reason_code !== undefined){let data0 = data.reason_code;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 64){validate160.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data0) < 1){validate160.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern70.test(data0)){validate160.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/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 {validate160.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.since !== undefined){let data1 = data.since;const _errs3 = errors;if(errors === _errs3){if(errors === _errs3){if(typeof data1 === "string"){if(!(formats0.validate(data1))){validate160.errors = [{instancePath:instancePath+"/since",schemaPath:"#/properties/since/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate160.errors = [{instancePath:instancePath+"/since",schemaPath:"#/properties/since/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.action !== undefined){let data2 = data.action;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate160.errors = [{instancePath:instancePath+"/action",schemaPath:"#/properties/action/type",keyword:"type",params:{type: schema165.properties.action.type},message:"must be string,null"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.required_nanodollars !== undefined){let data3 = data.required_nanodollars;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 19){validate160.errors = [{instancePath:instancePath+"/required_nanodollars",schemaPath:"#/properties/required_nanodollars/maxLength",keyword:"maxLength",params:{limit: 19},message:"must NOT have more than 19 characters"}];return false;}else {if(!pattern110.test(data3)){validate160.errors = [{instancePath:instancePath+"/required_nanodollars",schemaPath:"#/properties/required_nanodollars/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,18})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,18})$"+"\""}];return false;}}}else {validate160.errors = [{instancePath:instancePath+"/required_nanodollars",schemaPath:"#/properties/required_nanodollars/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.available_nanodollars !== undefined){let data4 = data.available_nanodollars;const _errs9 = errors;if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) > 19){validate160.errors = [{instancePath:instancePath+"/available_nanodollars",schemaPath:"#/properties/available_nanodollars/maxLength",keyword:"maxLength",params:{limit: 19},message:"must NOT have more than 19 characters"}];return false;}else {if(!pattern110.test(data4)){validate160.errors = [{instancePath:instancePath+"/available_nanodollars",schemaPath:"#/properties/available_nanodollars/pattern",keyword:"pattern",params:{pattern: "^(0|[1-9][0-9]{0,18})$"},message:"must match pattern \""+"^(0|[1-9][0-9]{0,18})$"+"\""}];return false;}}}else {validate160.errors = [{instancePath:instancePath+"/available_nanodollars",schemaPath:"#/properties/available_nanodollars/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){let missing1;if(data.available_nanodollars !== undefined && ((data.required_nanodollars === undefined) && (missing1 = "required_nanodollars"))){validate160.errors = [{instancePath,schemaPath:"#/dependentRequired",keyword:"dependentRequired",params:{property: "available_nanodollars",
|
|
2
|
+
missingProperty: missing1,
|
|
3
|
+
depsCount: 1,
|
|
4
|
+
deps: "required_nanodollars"},message:"must have property required_nanodollars when property available_nanodollars is present"}];return false;}}}}}}}}else {validate160.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate160.errors = vErrors;return errors === 0;}validate160.evaluated = {"props":{"reason_code":true,"since":true,"action":true,"required_nanodollars":true,"available_nanodollars":true},"dynamicProps":false,"dynamicItems":false};const schema166 = {"type":"object","description":"What machine the job ran on and how fast it was against what is usual. Absent while the job has no recorded machine facts and from servers that predate it. `typical_score` and `speed_ratio` are null unless enough signed samples from enough workspaces stand behind the typical score.","required":["integrity"],"properties":{"cpu_model":{"type":["string","null"],"maxLength":96,"description":"The CPU model the guest reported, as the provider shows it."},"effective_cpus":{"minimum":1,"description":"CPUs the job could use.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"score":{"minimum":1,"description":"CPU score of this machine, per CPU.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"integrity":{"type":"string","x-boxrouter-open-enum":true,"description":"signed when the guest proved the record with the job capability; only signed records are compared."},"steal_ratio":{"minimum":0,"maximum":1,"description":"Share of CPU time the provider host took away during the job, when the guest can tell.","allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0,"maximum":1}},"typical_score":{"minimum":1,"description":"Typical 7-day score per CPU for this provider, size and label.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"speed_ratio":{"exclusiveMinimum":0,"description":"typical_score divided by score; above 1 means this machine was slower than usual.","allOf":[{"anyOf":[{"type":["number","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"exclusiveMinimum":0}},"memory_mib":{"minimum":1,"description":"Memory the machine reported: the cgroup limit when present, else the virtual machine total. Omitted when the provider does not report a trustworthy value. `facts.memory.basis` names which.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"disk_write_mbps":{"minimum":0,"description":"Disk write speed in MB/s, measured by BoxRouter. `facts.disk` says whether it was measured on this job or on another machine of the same route.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"disk_read_mbps":{"minimum":0,"description":"Disk read speed in MB/s, measured by BoxRouter. `facts.disk` says whether it was measured on this job or on another machine of the same route.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"facts":{"$ref":"#/components/schemas/ActionsMachineFacts","description":"Where each shown machine value came from, one entry per value present. Omitted from servers that predate it."}}};const schema167 = {"type":"object","description":"One source per shown machine value. A key is omitted when its value is.","properties":{"cpu":{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","x-boxrouter-open-enum":true,"description":"job_start: read before the job steps ran. job_after_steps: an unsigned record read after the steps could run."}}},"memory":{"type":"object","required":["kind","basis"],"properties":{"kind":{"type":"string","x-boxrouter-open-enum":true},"basis":{"type":"string","x-boxrouter-open-enum":true,"description":"cgroup_limit: the memory limit the machine reported. vm_total: the total memory the machine reported."}}},"disk":{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","x-boxrouter-open-enum":true,"description":"image_check: measured on another machine of the same route when BoxRouter last checked the runner image; this job's machine was not measured."},"observed_at":{"type":"string","format":"date-time","description":"When an image_check was measured. Present only for image_check."}}}}};function validate163(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate163.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.cpu !== undefined){let data0 = data.cpu;const _errs1 = errors;if(errors === _errs1){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing0;if((data0.kind === undefined) && (missing0 = "kind")){validate163.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data0.kind !== undefined){if(typeof data0.kind !== "string"){validate163.errors = [{instancePath:instancePath+"/cpu/kind",schemaPath:"#/properties/cpu/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}else {validate163.errors = [{instancePath:instancePath+"/cpu",schemaPath:"#/properties/cpu/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.memory !== undefined){let data2 = data.memory;const _errs5 = errors;if(errors === _errs5){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if(((data2.kind === undefined) && (missing1 = "kind")) || ((data2.basis === undefined) && (missing1 = "basis"))){validate163.errors = [{instancePath:instancePath+"/memory",schemaPath:"#/properties/memory/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.kind !== undefined){const _errs7 = errors;if(typeof data2.kind !== "string"){validate163.errors = [{instancePath:instancePath+"/memory/kind",schemaPath:"#/properties/memory/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs7 === errors;}else {var valid2 = true;}if(valid2){if(data2.basis !== undefined){const _errs9 = errors;if(typeof data2.basis !== "string"){validate163.errors = [{instancePath:instancePath+"/memory/basis",schemaPath:"#/properties/memory/properties/basis/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs9 === errors;}else {var valid2 = true;}}}}else {validate163.errors = [{instancePath:instancePath+"/memory",schemaPath:"#/properties/memory/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.disk !== undefined){let data5 = data.disk;const _errs11 = errors;if(errors === _errs11){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){let missing2;if((data5.kind === undefined) && (missing2 = "kind")){validate163.errors = [{instancePath:instancePath+"/disk",schemaPath:"#/properties/disk/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data5.kind !== undefined){const _errs13 = errors;if(typeof data5.kind !== "string"){validate163.errors = [{instancePath:instancePath+"/disk/kind",schemaPath:"#/properties/disk/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid3 = _errs13 === errors;}else {var valid3 = true;}if(valid3){if(data5.observed_at !== undefined){let data7 = data5.observed_at;const _errs15 = errors;if(errors === _errs15){if(errors === _errs15){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate163.errors = [{instancePath:instancePath+"/disk/observed_at",schemaPath:"#/properties/disk/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate163.errors = [{instancePath:instancePath+"/disk/observed_at",schemaPath:"#/properties/disk/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid3 = _errs15 === errors;}else {var valid3 = true;}}}}else {validate163.errors = [{instancePath:instancePath+"/disk",schemaPath:"#/properties/disk/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}}}}else {validate163.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate163.errors = vErrors;return errors === 0;}validate163.evaluated = {"props":{"cpu":true,"memory":true,"disk":true},"dynamicProps":false,"dynamicItems":false};function validate162(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate162.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.integrity === undefined) && (missing0 = "integrity")){validate162.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.cpu_model !== undefined){let data0 = data.cpu_model;const _errs1 = errors;if((typeof data0 !== "string") && (data0 !== null)){validate162.errors = [{instancePath:instancePath+"/cpu_model",schemaPath:"#/properties/cpu_model/type",keyword:"type",params:{type: schema166.properties.cpu_model.type},message:"must be string,null"}];return false;}if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 96){validate162.errors = [{instancePath:instancePath+"/cpu_model",schemaPath:"#/properties/cpu_model/maxLength",keyword:"maxLength",params:{limit: 96},message:"must NOT have more than 96 characters"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.effective_cpus !== undefined){let data1 = data.effective_cpus;const _errs3 = errors;const _errs4 = errors;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if((!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) && (data1 !== null)){const err0 = {instancePath:instancePath+"/effective_cpus",schemaPath:"#/properties/effective_cpus/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema166.properties.effective_cpus.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+"/effective_cpus",schemaPath:"#/properties/effective_cpus/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+"/effective_cpus",schemaPath:"#/properties/effective_cpus/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate162.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid1 = _errs4 === errors;if(valid1){if(typeof data1 === "bigint"){if(data1 < 1){validate162.errors = [{instancePath:instancePath+"/effective_cpus",schemaPath:"#/properties/effective_cpus/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs3){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 1 || isNaN(data1)){validate162.errors = [{instancePath:instancePath+"/effective_cpus",schemaPath:"#/properties/effective_cpus/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.score !== undefined){let data2 = data.score;const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;let valid4 = false;const _errs12 = errors;if((!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) && (data2 !== null)){const err3 = {instancePath:instancePath+"/score",schemaPath:"#/properties/score/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema166.properties.score.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs12 === errors;valid4 = valid4 || _valid1;const _errs14 = errors;if(typeof data2 !== "bigint"){const err4 = {instancePath:instancePath+"/score",schemaPath:"#/properties/score/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs14 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/score",schemaPath:"#/properties/score/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate162.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var valid3 = _errs10 === errors;if(valid3){if(typeof data2 === "bigint"){if(data2 < 1){validate162.errors = [{instancePath:instancePath+"/score",schemaPath:"#/properties/score/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs9){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 1 || isNaN(data2)){validate162.errors = [{instancePath:instancePath+"/score",schemaPath:"#/properties/score/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.integrity !== undefined){const _errs15 = errors;if(typeof data.integrity !== "string"){validate162.errors = [{instancePath:instancePath+"/integrity",schemaPath:"#/properties/integrity/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.steal_ratio !== undefined){let data4 = data.steal_ratio;const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;let valid6 = false;const _errs20 = errors;if((!((typeof data4 == "number") && (isFinite(data4)))) && (data4 !== null)){const err6 = {instancePath:instancePath+"/steal_ratio",schemaPath:"#/properties/steal_ratio/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema166.properties.steal_ratio.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs20 === errors;valid6 = valid6 || _valid2;const _errs22 = errors;if(typeof data4 !== "bigint"){const err7 = {instancePath:instancePath+"/steal_ratio",schemaPath:"#/properties/steal_ratio/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 _valid2 = _errs22 === errors;valid6 = valid6 || _valid2;if(!valid6){const err8 = {instancePath:instancePath+"/steal_ratio",schemaPath:"#/properties/steal_ratio/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate162.errors = vErrors;return false;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}var valid5 = _errs18 === errors;if(valid5){if(typeof data4 === "bigint"){if(data4 < 0){validate162.errors = [{instancePath:instancePath+"/steal_ratio",schemaPath:"#/properties/steal_ratio/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data4 > 1){validate162.errors = [{instancePath:instancePath+"/steal_ratio",schemaPath:"#/properties/steal_ratio/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs17){if((typeof data4 == "number") && (isFinite(data4))){if(data4 > 1 || isNaN(data4)){validate162.errors = [{instancePath:instancePath+"/steal_ratio",schemaPath:"#/properties/steal_ratio/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"}];return false;}else {if(data4 < 0 || isNaN(data4)){validate162.errors = [{instancePath:instancePath+"/steal_ratio",schemaPath:"#/properties/steal_ratio/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.typical_score !== undefined){let data5 = data.typical_score;const _errs23 = errors;const _errs24 = errors;const _errs25 = errors;let valid8 = false;const _errs26 = errors;if((!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) && (data5 !== null)){const err9 = {instancePath:instancePath+"/typical_score",schemaPath:"#/properties/typical_score/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema166.properties.typical_score.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs26 === errors;valid8 = valid8 || _valid3;const _errs28 = errors;if(typeof data5 !== "bigint"){const err10 = {instancePath:instancePath+"/typical_score",schemaPath:"#/properties/typical_score/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs28 === errors;valid8 = valid8 || _valid3;if(!valid8){const err11 = {instancePath:instancePath+"/typical_score",schemaPath:"#/properties/typical_score/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate162.errors = vErrors;return false;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}var valid7 = _errs24 === errors;if(valid7){if(typeof data5 === "bigint"){if(data5 < 1){validate162.errors = [{instancePath:instancePath+"/typical_score",schemaPath:"#/properties/typical_score/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs23){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 1 || isNaN(data5)){validate162.errors = [{instancePath:instancePath+"/typical_score",schemaPath:"#/properties/typical_score/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.speed_ratio !== undefined){let data6 = data.speed_ratio;const _errs29 = errors;const _errs30 = errors;const _errs31 = errors;let valid10 = false;const _errs32 = errors;if((!((typeof data6 == "number") && (isFinite(data6)))) && (data6 !== null)){const err12 = {instancePath:instancePath+"/speed_ratio",schemaPath:"#/properties/speed_ratio/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema166.properties.speed_ratio.allOf[0].anyOf[0].type},message:"must be number,null"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid4 = _errs32 === errors;valid10 = valid10 || _valid4;const _errs34 = errors;if(typeof data6 !== "bigint"){const err13 = {instancePath:instancePath+"/speed_ratio",schemaPath:"#/properties/speed_ratio/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs34 === errors;valid10 = valid10 || _valid4;if(!valid10){const err14 = {instancePath:instancePath+"/speed_ratio",schemaPath:"#/properties/speed_ratio/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;validate162.errors = vErrors;return false;}else {errors = _errs31;if(vErrors !== null){if(_errs31){vErrors.length = _errs31;}else {vErrors = null;}}}var valid9 = _errs30 === errors;if(valid9){if(typeof data6 === "bigint"){if(data6 <= 0){validate162.errors = [{instancePath:instancePath+"/speed_ratio",schemaPath:"#/properties/speed_ratio/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs29){if((typeof data6 == "number") && (isFinite(data6))){if(data6 <= 0 || isNaN(data6)){validate162.errors = [{instancePath:instancePath+"/speed_ratio",schemaPath:"#/properties/speed_ratio/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];return false;}}}var valid0 = _errs29 === errors;}else {var valid0 = true;}if(valid0){if(data.memory_mib !== undefined){let data7 = data.memory_mib;const _errs35 = errors;const _errs36 = errors;const _errs37 = errors;let valid12 = false;const _errs38 = errors;if((!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))) && (data7 !== null)){const err15 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema166.properties.memory_mib.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid5 = _errs38 === errors;valid12 = valid12 || _valid5;const _errs40 = errors;if(typeof data7 !== "bigint"){const err16 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid5 = _errs40 === errors;valid12 = valid12 || _valid5;if(!valid12){const err17 = {instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;validate162.errors = vErrors;return false;}else {errors = _errs37;if(vErrors !== null){if(_errs37){vErrors.length = _errs37;}else {vErrors = null;}}}var valid11 = _errs36 === errors;if(valid11){if(typeof data7 === "bigint"){if(data7 < 1){validate162.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs35){if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 1 || isNaN(data7)){validate162.errors = [{instancePath:instancePath+"/memory_mib",schemaPath:"#/properties/memory_mib/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs35 === errors;}else {var valid0 = true;}if(valid0){if(data.disk_write_mbps !== undefined){let data8 = data.disk_write_mbps;const _errs41 = errors;const _errs42 = errors;const _errs43 = errors;let valid14 = false;const _errs44 = errors;if((!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))) && (data8 !== null)){const err18 = {instancePath:instancePath+"/disk_write_mbps",schemaPath:"#/properties/disk_write_mbps/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema166.properties.disk_write_mbps.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid6 = _errs44 === errors;valid14 = valid14 || _valid6;const _errs46 = errors;if(typeof data8 !== "bigint"){const err19 = {instancePath:instancePath+"/disk_write_mbps",schemaPath:"#/properties/disk_write_mbps/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid6 = _errs46 === errors;valid14 = valid14 || _valid6;if(!valid14){const err20 = {instancePath:instancePath+"/disk_write_mbps",schemaPath:"#/properties/disk_write_mbps/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;validate162.errors = vErrors;return false;}else {errors = _errs43;if(vErrors !== null){if(_errs43){vErrors.length = _errs43;}else {vErrors = null;}}}var valid13 = _errs42 === errors;if(valid13){if(typeof data8 === "bigint"){if(data8 < 0){validate162.errors = [{instancePath:instancePath+"/disk_write_mbps",schemaPath:"#/properties/disk_write_mbps/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs41){if((typeof data8 == "number") && (isFinite(data8))){if(data8 < 0 || isNaN(data8)){validate162.errors = [{instancePath:instancePath+"/disk_write_mbps",schemaPath:"#/properties/disk_write_mbps/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs41 === errors;}else {var valid0 = true;}if(valid0){if(data.disk_read_mbps !== undefined){let data9 = data.disk_read_mbps;const _errs47 = errors;const _errs48 = errors;const _errs49 = errors;let valid16 = false;const _errs50 = errors;if((!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))) && (data9 !== null)){const err21 = {instancePath:instancePath+"/disk_read_mbps",schemaPath:"#/properties/disk_read_mbps/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema166.properties.disk_read_mbps.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid7 = _errs50 === errors;valid16 = valid16 || _valid7;const _errs52 = errors;if(typeof data9 !== "bigint"){const err22 = {instancePath:instancePath+"/disk_read_mbps",schemaPath:"#/properties/disk_read_mbps/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var _valid7 = _errs52 === errors;valid16 = valid16 || _valid7;if(!valid16){const err23 = {instancePath:instancePath+"/disk_read_mbps",schemaPath:"#/properties/disk_read_mbps/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;validate162.errors = vErrors;return false;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}var valid15 = _errs48 === errors;if(valid15){if(typeof data9 === "bigint"){if(data9 < 0){validate162.errors = [{instancePath:instancePath+"/disk_read_mbps",schemaPath:"#/properties/disk_read_mbps/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs47){if((typeof data9 == "number") && (isFinite(data9))){if(data9 < 0 || isNaN(data9)){validate162.errors = [{instancePath:instancePath+"/disk_read_mbps",schemaPath:"#/properties/disk_read_mbps/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs47 === errors;}else {var valid0 = true;}if(valid0){if(data.facts !== undefined){const _errs53 = errors;if(!(validate163(data.facts, {instancePath:instancePath+"/facts",parentData:data,parentDataProperty:"facts",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate163.errors : vErrors.concat(validate163.errors);errors = vErrors.length;}var valid0 = _errs53 === errors;}else {var valid0 = true;}}}}}}}}}}}}}else {validate162.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate162.errors = vErrors;return errors === 0;}validate162.evaluated = {"props":{"cpu_model":true,"effective_cpus":true,"score":true,"integrity":true,"steal_ratio":true,"typical_score":true,"speed_ratio":true,"memory_mib":true,"disk_write_mbps":true,"disk_read_mbps":true,"facts":true},"dynamicProps":false,"dynamicItems":false};const schema170 = {"type":"object","required":["objective","ordered_route_ids","selected_route_id","reason","basis","considered","list_price_usd_per_hour","ready_ms_p50","readiness_scope","fallback"],"properties":{"objective":{"type":"string","enum":["default","fastest","cheapest"],"x-boxrouter-choices":{"default":{"label":"Workspace setting","line":"Uses the workspace routing setting."},"fastest":{"label":"Fastest","line":"Shortest run time measured on reference workloads first.","measure":"time","better":"lower"},"cheapest":{"label":"Cheapest","line":"Lowest hourly price first.","measure":"price","better":"lower"}}},"ordered_route_ids":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}},"selected_route_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"reason":{"type":"string","minLength":1,"maxLength":256},"basis":{"type":"string","enum":["observed","static"]},"considered":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"list_price_usd_per_hour":{"type":["string","null"],"minLength":1,"pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"ready_ms_p50":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"readiness_scope":{"type":["string","null"],"enum":["route","provider_region","provider","none",null]},"fallback":{"type":"boolean","description":"Ranking marker with its released meaning unchanged. It does not name provider attempts or fallback permission; see `fallbacks_allowed` and `stopped_reason`."},"routed_away":{"type":"object","required":["provider","size_cpu","signal","window_minutes"],"description":"Present only when health demotion changes the selected route in Automatic or Fastest workspace mode for a Run with the applicable non-price `default` or `fastest` objective. Absent for legacy runs, when routing is off or shadow-only, and for Cheapest or Custom objectives.","properties":{"provider":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$","description":"Public provider id of the route that would have ranked first without the health signal. Uses the same vocabulary and bound as ActionsOrderedRoute.provider."},"size_cpu":{"minimum":1,"description":"CPU count of the job shape that was routed away; shapes without a CPU count do not produce this object.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"signal":{"type":"string","x-boxrouter-open-enum":true,"description":"slow_machines maps to a 60-minute window; slow_starts maps to a 15-minute window."},"window_minutes":{"minimum":1,"description":"60 for slow_machines or 15 for slow_starts.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}},"allOf":[{"if":{"properties":{"signal":{"const":"slow_machines"}}},"then":{"properties":{"window_minutes":{"const":60}}}},{"if":{"properties":{"signal":{"const":"slow_starts"}}},"then":{"properties":{"window_minutes":{"const":15}}}}]},"fallbacks_allowed":{"type":"boolean","description":"The effective allow_fallbacks for creating this placement; absent before this field existed."},"stopped_reason":{"$ref":"#/components/schemas/CreationStoppedReason"},"funding_group":{"$ref":"#/components/schemas/FundingGroup","description":"Frozen payer group; absent on older responses. Definite pre-create refusal retries only later frozen candidates in this same group."},"workspace_mode":{"type":"string","x-boxrouter-open-enum":true,"x-boxrouter-choices":{"automatic":{"label":"Auto","line":"A random draw weighted toward lower hourly price."},"cheapest":{"label":"Cheapest","line":"Lowest hourly price first.","measure":"price","better":"lower"},"fastest":{"label":"Fastest","line":"Shortest run time measured on reference workloads first.","measure":"time","better":"lower"},"custom":{"label":"Custom","line":"Your exact provider order, top to bottom."}},"description":"Effective workspace mode at admission; absent on older responses."}}};const schema171 = {"type":["string","null"],"x-boxrouter-open-enum":true,"description":"Why creation stopped dispatching further routes: `fallbacks_disabled` (allow_fallbacks was\nfalse and the one permitted dispatch was refused), `no_eligible_route` (every remaining\nroute was excluded), `uncertain_outcome` (a dispatch may have allocated; never retried, reconcile\nwith the operation), `authority_changed` (account, funding or privacy authority no longer\npermits the next route), `deadline_reached` and `cancelled`. Null when a route created the\nsandbox. Clients must tolerate values they do not know.\n"};const schema172 = {"type":"string","x-boxrouter-open-enum":true,"description":"The frozen payer group; no cross-group retry after a dispatch refusal at launch."};function validate168(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate168.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.objective === undefined) && (missing0 = "objective")) || ((data.ordered_route_ids === undefined) && (missing0 = "ordered_route_ids"))) || ((data.selected_route_id === undefined) && (missing0 = "selected_route_id"))) || ((data.reason === undefined) && (missing0 = "reason"))) || ((data.basis === undefined) && (missing0 = "basis"))) || ((data.considered === undefined) && (missing0 = "considered"))) || ((data.list_price_usd_per_hour === undefined) && (missing0 = "list_price_usd_per_hour"))) || ((data.ready_ms_p50 === undefined) && (missing0 = "ready_ms_p50"))) || ((data.readiness_scope === undefined) && (missing0 = "readiness_scope"))) || ((data.fallback === undefined) && (missing0 = "fallback"))){validate168.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.objective !== undefined){let data0 = data.objective;const _errs1 = errors;if(typeof data0 !== "string"){validate168.errors = [{instancePath:instancePath+"/objective",schemaPath:"#/properties/objective/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data0 === "default") || (data0 === "fastest")) || (data0 === "cheapest"))){validate168.errors = [{instancePath:instancePath+"/objective",schemaPath:"#/properties/objective/enum",keyword:"enum",params:{allowedValues: schema170.properties.objective.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.ordered_route_ids !== undefined){let data1 = data.ordered_route_ids;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){if(data1.length < 1){validate168.errors = [{instancePath:instancePath+"/ordered_route_ids",schemaPath:"#/properties/ordered_route_ids/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate168.errors = [{instancePath:instancePath+"/ordered_route_ids/" + i0,schemaPath:"#/properties/ordered_route_ids/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate168.errors = [{instancePath:instancePath+"/ordered_route_ids/" + i0,schemaPath:"#/properties/ordered_route_ids/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate168.errors = [{instancePath:instancePath+"/ordered_route_ids/" + i0,schemaPath:"#/properties/ordered_route_ids/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate168.errors = [{instancePath:instancePath+"/ordered_route_ids/" + i0,schemaPath:"#/properties/ordered_route_ids/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs5 === errors;if(!valid1){break;}}if(valid1){let i1 = data1.length;let j0;if(i1 > 1){const indices0 = {};for(;i1--;){let item0 = data1[i1];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate168.errors = [{instancePath:instancePath+"/ordered_route_ids",schemaPath:"#/properties/ordered_route_ids/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break;}indices0[item0] = i1;}}}}}else {validate168.errors = [{instancePath:instancePath+"/ordered_route_ids",schemaPath:"#/properties/ordered_route_ids/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.selected_route_id !== undefined){let data3 = data.selected_route_id;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 128){validate168.errors = [{instancePath:instancePath+"/selected_route_id",schemaPath:"#/properties/selected_route_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate168.errors = [{instancePath:instancePath+"/selected_route_id",schemaPath:"#/properties/selected_route_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data3)){validate168.errors = [{instancePath:instancePath+"/selected_route_id",schemaPath:"#/properties/selected_route_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate168.errors = [{instancePath:instancePath+"/selected_route_id",schemaPath:"#/properties/selected_route_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.reason !== undefined){let data4 = data.reason;const _errs9 = errors;if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) > 256){validate168.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/maxLength",keyword:"maxLength",params:{limit: 256},message:"must NOT have more than 256 characters"}];return false;}else {if(func1(data4) < 1){validate168.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate168.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.basis !== undefined){let data5 = data.basis;const _errs11 = errors;if(typeof data5 !== "string"){validate168.errors = [{instancePath:instancePath+"/basis",schemaPath:"#/properties/basis/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data5 === "observed") || (data5 === "static"))){validate168.errors = [{instancePath:instancePath+"/basis",schemaPath:"#/properties/basis/enum",keyword:"enum",params:{allowedValues: schema170.properties.basis.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.considered !== undefined){let data6 = data.considered;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid4 = false;const _errs16 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err0 = {instancePath:instancePath+"/considered",schemaPath:"#/properties/considered/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 = _errs16 === errors;valid4 = valid4 || _valid0;const _errs18 = errors;if(typeof data6 !== "bigint"){const err1 = {instancePath:instancePath+"/considered",schemaPath:"#/properties/considered/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 = _errs18 === errors;valid4 = valid4 || _valid0;if(!valid4){const err2 = {instancePath:instancePath+"/considered",schemaPath:"#/properties/considered/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate168.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid3 = _errs14 === errors;if(valid3){if(typeof data6 === "bigint"){if(data6 < 1){validate168.errors = [{instancePath:instancePath+"/considered",schemaPath:"#/properties/considered/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){validate168.errors = [{instancePath:instancePath+"/considered",schemaPath:"#/properties/considered/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.list_price_usd_per_hour !== undefined){let data7 = data.list_price_usd_per_hour;const _errs19 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate168.errors = [{instancePath:instancePath+"/list_price_usd_per_hour",schemaPath:"#/properties/list_price_usd_per_hour/type",keyword:"type",params:{type: schema170.properties.list_price_usd_per_hour.type},message:"must be string,null"}];return false;}if(errors === _errs19){if(typeof data7 === "string"){if(func1(data7) < 1){validate168.errors = [{instancePath:instancePath+"/list_price_usd_per_hour",schemaPath:"#/properties/list_price_usd_per_hour/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern50.test(data7)){validate168.errors = [{instancePath:instancePath+"/list_price_usd_per_hour",schemaPath:"#/properties/list_price_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 valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.ready_ms_p50 !== undefined){let data8 = data.ready_ms_p50;const _errs21 = errors;const _errs22 = errors;const _errs23 = errors;let valid6 = false;const _errs24 = errors;if((!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))) && (data8 !== null)){const err3 = {instancePath:instancePath+"/ready_ms_p50",schemaPath:"#/properties/ready_ms_p50/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema170.properties.ready_ms_p50.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs24 === errors;valid6 = valid6 || _valid1;const _errs26 = errors;if(typeof data8 !== "bigint"){const err4 = {instancePath:instancePath+"/ready_ms_p50",schemaPath:"#/properties/ready_ms_p50/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 = _errs26 === errors;valid6 = valid6 || _valid1;if(!valid6){const err5 = {instancePath:instancePath+"/ready_ms_p50",schemaPath:"#/properties/ready_ms_p50/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate168.errors = vErrors;return false;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}var valid5 = _errs22 === errors;if(valid5){if(typeof data8 === "bigint"){if(data8 < 0){validate168.errors = [{instancePath:instancePath+"/ready_ms_p50",schemaPath:"#/properties/ready_ms_p50/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs21){if((typeof data8 == "number") && (isFinite(data8))){if(data8 < 0 || isNaN(data8)){validate168.errors = [{instancePath:instancePath+"/ready_ms_p50",schemaPath:"#/properties/ready_ms_p50/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.readiness_scope !== undefined){let data9 = data.readiness_scope;const _errs27 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate168.errors = [{instancePath:instancePath+"/readiness_scope",schemaPath:"#/properties/readiness_scope/type",keyword:"type",params:{type: schema170.properties.readiness_scope.type},message:"must be string,null"}];return false;}if(!(((((data9 === "route") || (data9 === "provider_region")) || (data9 === "provider")) || (data9 === "none")) || (data9 === null))){validate168.errors = [{instancePath:instancePath+"/readiness_scope",schemaPath:"#/properties/readiness_scope/enum",keyword:"enum",params:{allowedValues: schema170.properties.readiness_scope.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs27 === errors;}else {var valid0 = true;}if(valid0){if(data.fallback !== undefined){const _errs29 = errors;if(typeof data.fallback !== "boolean"){validate168.errors = [{instancePath:instancePath+"/fallback",schemaPath:"#/properties/fallback/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs29 === errors;}else {var valid0 = true;}if(valid0){if(data.routed_away !== undefined){let data11 = data.routed_away;const _errs31 = errors;const _errs33 = errors;const _errs34 = errors;let valid8 = true;const _errs35 = errors;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.signal !== undefined){if("slow_machines" !== data11.signal){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}var _valid2 = _errs35 === errors;errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}if(_valid2){const _errs37 = errors;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.window_minutes !== undefined){if(60 !== data11.window_minutes){validate168.errors = [{instancePath:instancePath+"/routed_away/window_minutes",schemaPath:"#/properties/routed_away/allOf/0/then/properties/window_minutes/const",keyword:"const",params:{allowedValue: 60},message:"must be equal to constant"}];return false;}}}var _valid2 = _errs37 === errors;valid8 = _valid2;if(valid8){var props0 = {};props0.window_minutes = true;props0.signal = true;}}if(!valid8){const err7 = {instancePath:instancePath+"/routed_away",schemaPath:"#/properties/routed_away/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;validate168.errors = vErrors;return false;}var valid7 = _errs33 === errors;if(valid7){const _errs39 = errors;const _errs40 = errors;let valid11 = true;const _errs41 = errors;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.signal !== undefined){if("slow_starts" !== data11.signal){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}var _valid3 = _errs41 === errors;errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}if(_valid3){const _errs43 = errors;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.window_minutes !== undefined){if(15 !== data11.window_minutes){validate168.errors = [{instancePath:instancePath+"/routed_away/window_minutes",schemaPath:"#/properties/routed_away/allOf/1/then/properties/window_minutes/const",keyword:"const",params:{allowedValue: 15},message:"must be equal to constant"}];return false;}}}var _valid3 = _errs43 === errors;valid11 = _valid3;if(valid11){var props1 = {};props1.window_minutes = true;props1.signal = true;}}if(!valid11){const err9 = {instancePath:instancePath+"/routed_away",schemaPath:"#/properties/routed_away/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;validate168.errors = vErrors;return false;}var valid7 = _errs39 === errors;if(valid7){if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}}}if(errors === _errs31){if(data11 && typeof data11 == "object" && !Array.isArray(data11)){let missing1;if(((((data11.provider === undefined) && (missing1 = "provider")) || ((data11.size_cpu === undefined) && (missing1 = "size_cpu"))) || ((data11.signal === undefined) && (missing1 = "signal"))) || ((data11.window_minutes === undefined) && (missing1 = "window_minutes"))){validate168.errors = [{instancePath:instancePath+"/routed_away",schemaPath:"#/properties/routed_away/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.provider = true;props0.size_cpu = true;props0.signal = true;props0.window_minutes = true;}if(data11.provider !== undefined){let data16 = data11.provider;const _errs45 = errors;if(errors === _errs45){if(typeof data16 === "string"){if(func1(data16) > 64){validate168.errors = [{instancePath:instancePath+"/routed_away/provider",schemaPath:"#/properties/routed_away/properties/provider/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data16) < 1){validate168.errors = [{instancePath:instancePath+"/routed_away/provider",schemaPath:"#/properties/routed_away/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data16)){validate168.errors = [{instancePath:instancePath+"/routed_away/provider",schemaPath:"#/properties/routed_away/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate168.errors = [{instancePath:instancePath+"/routed_away/provider",schemaPath:"#/properties/routed_away/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid14 = _errs45 === errors;}else {var valid14 = true;}if(valid14){if(data11.size_cpu !== undefined){let data17 = data11.size_cpu;const _errs47 = errors;const _errs48 = errors;const _errs49 = errors;let valid16 = false;const _errs50 = errors;if(!(((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17))) && (isFinite(data17)))){const err10 = {instancePath:instancePath+"/routed_away/size_cpu",schemaPath:"#/properties/routed_away/properties/size_cpu/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid4 = _errs50 === errors;valid16 = valid16 || _valid4;const _errs52 = errors;if(typeof data17 !== "bigint"){const err11 = {instancePath:instancePath+"/routed_away/size_cpu",schemaPath:"#/properties/routed_away/properties/size_cpu/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid4 = _errs52 === errors;valid16 = valid16 || _valid4;if(!valid16){const err12 = {instancePath:instancePath+"/routed_away/size_cpu",schemaPath:"#/properties/routed_away/properties/size_cpu/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;validate168.errors = vErrors;return false;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}var valid15 = _errs48 === errors;if(valid15){if(typeof data17 === "bigint"){if(data17 < 1){validate168.errors = [{instancePath:instancePath+"/routed_away/size_cpu",schemaPath:"#/properties/routed_away/properties/size_cpu/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs47){if((typeof data17 == "number") && (isFinite(data17))){if(data17 < 1 || isNaN(data17)){validate168.errors = [{instancePath:instancePath+"/routed_away/size_cpu",schemaPath:"#/properties/routed_away/properties/size_cpu/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid14 = _errs47 === errors;}else {var valid14 = true;}if(valid14){if(data11.signal !== undefined){const _errs53 = errors;if(typeof data11.signal !== "string"){validate168.errors = [{instancePath:instancePath+"/routed_away/signal",schemaPath:"#/properties/routed_away/properties/signal/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid14 = _errs53 === errors;}else {var valid14 = true;}if(valid14){if(data11.window_minutes !== undefined){let data19 = data11.window_minutes;const _errs55 = errors;const _errs56 = errors;const _errs57 = errors;let valid18 = false;const _errs58 = errors;if(!(((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19))) && (isFinite(data19)))){const err13 = {instancePath:instancePath+"/routed_away/window_minutes",schemaPath:"#/properties/routed_away/properties/window_minutes/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid5 = _errs58 === errors;valid18 = valid18 || _valid5;const _errs60 = errors;if(typeof data19 !== "bigint"){const err14 = {instancePath:instancePath+"/routed_away/window_minutes",schemaPath:"#/properties/routed_away/properties/window_minutes/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid5 = _errs60 === errors;valid18 = valid18 || _valid5;if(!valid18){const err15 = {instancePath:instancePath+"/routed_away/window_minutes",schemaPath:"#/properties/routed_away/properties/window_minutes/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate168.errors = vErrors;return false;}else {errors = _errs57;if(vErrors !== null){if(_errs57){vErrors.length = _errs57;}else {vErrors = null;}}}var valid17 = _errs56 === errors;if(valid17){if(typeof data19 === "bigint"){if(data19 < 1){validate168.errors = [{instancePath:instancePath+"/routed_away/window_minutes",schemaPath:"#/properties/routed_away/properties/window_minutes/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs55){if((typeof data19 == "number") && (isFinite(data19))){if(data19 < 1 || isNaN(data19)){validate168.errors = [{instancePath:instancePath+"/routed_away/window_minutes",schemaPath:"#/properties/routed_away/properties/window_minutes/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid14 = _errs55 === errors;}else {var valid14 = true;}}}}}}else {validate168.errors = [{instancePath:instancePath+"/routed_away",schemaPath:"#/properties/routed_away/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs31 === errors;}else {var valid0 = true;}if(valid0){if(data.fallbacks_allowed !== undefined){const _errs61 = errors;if(typeof data.fallbacks_allowed !== "boolean"){validate168.errors = [{instancePath:instancePath+"/fallbacks_allowed",schemaPath:"#/properties/fallbacks_allowed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs61 === errors;}else {var valid0 = true;}if(valid0){if(data.stopped_reason !== undefined){let data21 = data.stopped_reason;const _errs63 = errors;if((typeof data21 !== "string") && (data21 !== null)){validate168.errors = [{instancePath:instancePath+"/stopped_reason",schemaPath:"#/components/schemas/CreationStoppedReason/type",keyword:"type",params:{type: schema171.type},message:"must be string,null"}];return false;}var valid0 = _errs63 === errors;}else {var valid0 = true;}if(valid0){if(data.funding_group !== undefined){const _errs66 = errors;if(typeof data.funding_group !== "string"){validate168.errors = [{instancePath:instancePath+"/funding_group",schemaPath:"#/components/schemas/FundingGroup/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs66 === errors;}else {var valid0 = true;}if(valid0){if(data.workspace_mode !== undefined){const _errs69 = errors;if(typeof data.workspace_mode !== "string"){validate168.errors = [{instancePath:instancePath+"/workspace_mode",schemaPath:"#/properties/workspace_mode/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs69 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}else {validate168.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate168.errors = vErrors;return errors === 0;}validate168.evaluated = {"props":{"objective":true,"ordered_route_ids":true,"selected_route_id":true,"reason":true,"basis":true,"considered":true,"list_price_usd_per_hour":true,"ready_ms_p50":true,"readiness_scope":true,"fallback":true,"routed_away":true,"fallbacks_allowed":true,"stopped_reason":true,"funding_group":true,"workspace_mode":true},"dynamicProps":false,"dynamicItems":false};const schema173 = {"type":"object","description":"Bounded public diagnostics of one creation: the effective fallback permission, why\ndispatching stopped, the ordered dispatched attempts (the successful one included) and,\nseparately, the routes skipped before dispatch. All fields are optional and absent when\nunknown. Each list holds at most 64 entries and is always an ordered prefix of the full\nlist. When entries were omitted, the matching `*_truncated` flag is true and the `*_total`\ncount gives the full length, so omitted candidates are never read as not dispatched.\nThe confirmed binding is reported separately on the sandbox or placement. Prior-refusal\nlists elsewhere keep their meaning.\n","properties":{"fallbacks_allowed":{"type":"boolean","description":"The effective allow_fallbacks after inheritance."},"stopped_reason":{"$ref":"#/components/schemas/CreationStoppedReason"},"attempts":{"type":"array","maxItems":64,"items":{"$ref":"#/components/schemas/CreationDiagnosticAttempt"}},"attempts_truncated":{"type":"boolean","description":"True when attempts holds only a prefix of the dispatched attempts."},"attempts_total":{"minimum":0,"description":"Full number of dispatched attempts; required when attempts_truncated is true.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"preparation_skips":{"type":"array","maxItems":64,"items":{"$ref":"#/components/schemas/CreationDiagnosticSkip"}},"preparation_skips_truncated":{"type":"boolean","description":"True when preparation_skips holds only a prefix."},"preparation_skips_total":{"minimum":0,"description":"Full number of skipped routes; required when preparation_skips_truncated is true.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}},"allOf":[{"if":{"properties":{"attempts_truncated":{"const":true}},"required":["attempts_truncated"]},"then":{"required":["attempts_total"]}},{"if":{"properties":{"preparation_skips_truncated":{"const":true}},"required":["preparation_skips_truncated"]},"then":{"required":["preparation_skips_total"]}}]};const schema175 = {"type":"object","required":["provider","outcome","native_code","native_status"],"description":"A dispatched attempt in CreationDiagnostics, with the same meaning as CreationAttempt and\nbounded scalars. The operation readback keeps its unbounded legacy items.\n","properties":{"provider":{"type":"string","minLength":1,"maxLength":64},"outcome":{"type":"string","x-boxrouter-open-enum":true,"description":"Clients must tolerate values they do not know."},"native_code":{"type":["string","null"],"maxLength":128},"native_status":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"route_id":{"type":["string","null"],"maxLength":128},"account_id":{"type":["string","null"],"maxLength":128},"supply":{"type":["string","null"],"maxLength":32},"cause":{"$ref":"#/components/schemas/CreationRouteCause"}},"allOf":[{"if":{"properties":{"outcome":{"not":{"const":"not_started"}}},"required":["outcome"]},"then":{"properties":{"native_code":{"type":"null"},"native_status":{"type":"null"}}}}]};const schema176 = {"type":"string","minLength":1,"maxLength":64,"x-boxrouter-open-enum":true,"description":"Why one route did not create the sandbox, in a bounded word: `key_rejected` (the provider\nrefused the saved key), `plan_unbuildable` (the route matched but its create could not be\nbuilt), `privacy_denied` (the workspace's privacy settings refused the route),\n`not_ready` (the route's provider session was not ready in time), `not_dispatched`\n(refused locally before any provider call) and `provider_create_failed` (the provider was\nasked and the create failed). Clients must tolerate values they do not know.\n"};function validate171(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate171.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.outcome === undefined) && (missing0 = "outcome")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.outcome !== undefined){const _errs5 = errors;const _errs6 = errors;if("not_started" !== data.outcome){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid3 = _errs6 === errors;if(valid3){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.native_code !== undefined){const _errs8 = errors;if(data.native_code !== null){validate171.errors = [{instancePath:instancePath+"/native_code",schemaPath:"#/allOf/0/then/properties/native_code/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid4 = _errs8 === errors;}else {var valid4 = true;}if(valid4){if(data.native_status !== undefined){const _errs10 = errors;if(data.native_status !== null){validate171.errors = [{instancePath:instancePath+"/native_status",schemaPath:"#/allOf/0/then/properties/native_status/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid4 = _errs10 === errors;}else {var valid4 = true;}}}var _valid0 = _errs7 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.native_code = true;props0.native_status = true;props0.outcome = true;}}if(!valid1){const err3 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;validate171.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.provider === undefined) && (missing1 = "provider")) || ((data.outcome === undefined) && (missing1 = "outcome"))) || ((data.native_code === undefined) && (missing1 = "native_code"))) || ((data.native_status === undefined) && (missing1 = "native_status"))){validate171.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.provider = true;props0.outcome = true;props0.native_code = true;props0.native_status = true;props0.route_id = true;props0.account_id = true;props0.supply = true;props0.cause = true;}if(data.provider !== undefined){let data3 = data.provider;const _errs12 = errors;if(errors === _errs12){if(typeof data3 === "string"){if(func1(data3) > 64){validate171.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data3) < 1){validate171.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate171.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs12 === errors;}else {var valid5 = true;}if(valid5){if(data.outcome !== undefined){const _errs14 = errors;if(typeof data.outcome !== "string"){validate171.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs14 === errors;}else {var valid5 = true;}if(valid5){if(data.native_code !== undefined){let data5 = data.native_code;const _errs16 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate171.errors = [{instancePath:instancePath+"/native_code",schemaPath:"#/properties/native_code/type",keyword:"type",params:{type: schema175.properties.native_code.type},message:"must be string,null"}];return false;}if(errors === _errs16){if(typeof data5 === "string"){if(func1(data5) > 128){validate171.errors = [{instancePath:instancePath+"/native_code",schemaPath:"#/properties/native_code/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid5 = _errs16 === errors;}else {var valid5 = true;}if(valid5){if(data.native_status !== undefined){let data6 = data.native_status;const _errs18 = errors;const _errs20 = errors;let valid7 = false;const _errs21 = errors;if((!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) && (data6 !== null)){const err4 = {instancePath:instancePath+"/native_status",schemaPath:"#/properties/native_status/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema175.properties.native_status.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs21 === errors;valid7 = valid7 || _valid1;const _errs23 = errors;if(typeof data6 !== "bigint"){const err5 = {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 = [err5];}else {vErrors.push(err5);}errors++;}var _valid1 = _errs23 === errors;valid7 = valid7 || _valid1;if(!valid7){const err6 = {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 = [err6];}else {vErrors.push(err6);}errors++;validate171.errors = vErrors;return false;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var valid5 = _errs18 === errors;}else {var valid5 = true;}if(valid5){if(data.route_id !== undefined){let data7 = data.route_id;const _errs24 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate171.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/type",keyword:"type",params:{type: schema175.properties.route_id.type},message:"must be string,null"}];return false;}if(errors === _errs24){if(typeof data7 === "string"){if(func1(data7) > 128){validate171.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid5 = _errs24 === errors;}else {var valid5 = true;}if(valid5){if(data.account_id !== undefined){let data8 = data.account_id;const _errs26 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate171.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: schema175.properties.account_id.type},message:"must be string,null"}];return false;}if(errors === _errs26){if(typeof data8 === "string"){if(func1(data8) > 128){validate171.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid5 = _errs26 === errors;}else {var valid5 = true;}if(valid5){if(data.supply !== undefined){let data9 = data.supply;const _errs28 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate171.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/type",keyword:"type",params:{type: schema175.properties.supply.type},message:"must be string,null"}];return false;}if(errors === _errs28){if(typeof data9 === "string"){if(func1(data9) > 32){validate171.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"}];return false;}}}var valid5 = _errs28 === errors;}else {var valid5 = true;}if(valid5){if(data.cause !== undefined){let data10 = data.cause;const _errs30 = errors;const _errs31 = errors;if(errors === _errs31){if(typeof data10 === "string"){if(func1(data10) > 64){validate171.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data10) < 1){validate171.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate171.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs30 === errors;}else {var valid5 = true;}}}}}}}}}}else {validate171.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate171.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate171.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema177 = {"type":"object","required":["provider","reason_code"],"description":"A route skipped locally before any provider dispatch, with bounded scalars. It is not an attempt.","properties":{"provider":{"type":"string","minLength":1,"maxLength":64},"route_id":{"type":["string","null"],"maxLength":128},"account_id":{"type":["string","null"],"maxLength":128},"reason_code":{"type":"string","minLength":1,"maxLength":128},"cause":{"$ref":"#/components/schemas/CreationRouteCause"}}};function validate173(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate173.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.reason_code === undefined) && (missing0 = "reason_code"))){validate173.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.provider !== undefined){let data0 = data.provider;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 64){validate173.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data0) < 1){validate173.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate173.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.route_id !== undefined){let data1 = data.route_id;const _errs3 = errors;if((typeof data1 !== "string") && (data1 !== null)){validate173.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/type",keyword:"type",params:{type: schema177.properties.route_id.type},message:"must be string,null"}];return false;}if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate173.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];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)){validate173.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: schema177.properties.account_id.type},message:"must be string,null"}];return false;}if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate173.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.reason_code !== undefined){let data3 = data.reason_code;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 128){validate173.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate173.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate173.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.cause !== undefined){let data4 = data.cause;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data4 === "string"){if(func1(data4) > 64){validate173.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data4) < 1){validate173.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate173.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}}}}}}}else {validate173.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate173.errors = vErrors;return errors === 0;}validate173.evaluated = {"props":{"provider":true,"route_id":true,"account_id":true,"reason_code":true,"cause":true},"dynamicProps":false,"dynamicItems":false};function validate170(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate170.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.attempts_truncated === undefined) && (missing0 = "attempts_truncated")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.attempts_truncated !== undefined){if(true !== data.attempts_truncated){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.attempts_total === undefined) && (missing1 = "attempts_total")){validate170.errors = [{instancePath,schemaPath:"#/allOf/0/then/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}}var _valid0 = _errs5 === errors;valid1 = _valid0;}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate170.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs6 = errors;const _errs7 = errors;let valid3 = true;const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.preparation_skips_truncated === undefined) && (missing2 = "preparation_skips_truncated")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data.preparation_skips_truncated !== undefined){if(true !== data.preparation_skips_truncated){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var _valid1 = _errs8 === errors;errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}if(_valid1){const _errs10 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.preparation_skips_total === undefined) && (missing3 = "preparation_skips_total")){validate170.errors = [{instancePath,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}}var _valid1 = _errs10 === errors;valid3 = _valid1;}if(!valid3){const err5 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate170.errors = vErrors;return false;}var valid0 = _errs6 === errors;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(data.fallbacks_allowed !== undefined){const _errs11 = errors;if(typeof data.fallbacks_allowed !== "boolean"){validate170.errors = [{instancePath:instancePath+"/fallbacks_allowed",schemaPath:"#/properties/fallbacks_allowed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs11 === errors;}else {var valid5 = true;}if(valid5){if(data.stopped_reason !== undefined){let data3 = data.stopped_reason;const _errs13 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate170.errors = [{instancePath:instancePath+"/stopped_reason",schemaPath:"#/components/schemas/CreationStoppedReason/type",keyword:"type",params:{type: schema171.type},message:"must be string,null"}];return false;}var valid5 = _errs13 === errors;}else {var valid5 = true;}if(valid5){if(data.attempts !== undefined){let data4 = data.attempts;const _errs16 = errors;if(errors === _errs16){if(Array.isArray(data4)){if(data4.length > 64){validate170.errors = [{instancePath:instancePath+"/attempts",schemaPath:"#/properties/attempts/maxItems",keyword:"maxItems",params:{limit: 64},message:"must NOT have more than 64 items"}];return false;}else {var valid7 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs18 = errors;if(!(validate171(data4[i0], {instancePath:instancePath+"/attempts/" + i0,parentData:data4,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate171.errors : vErrors.concat(validate171.errors);errors = vErrors.length;}var valid7 = _errs18 === errors;if(!valid7){break;}}}}else {validate170.errors = [{instancePath:instancePath+"/attempts",schemaPath:"#/properties/attempts/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid5 = _errs16 === errors;}else {var valid5 = true;}if(valid5){if(data.attempts_truncated !== undefined){const _errs19 = errors;if(typeof data.attempts_truncated !== "boolean"){validate170.errors = [{instancePath:instancePath+"/attempts_truncated",schemaPath:"#/properties/attempts_truncated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs19 === errors;}else {var valid5 = true;}if(valid5){if(data.attempts_total !== undefined){let data7 = data.attempts_total;const _errs21 = errors;const _errs22 = errors;const _errs23 = errors;let valid9 = false;const _errs24 = errors;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err6 = {instancePath:instancePath+"/attempts_total",schemaPath:"#/properties/attempts_total/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 _valid2 = _errs24 === errors;valid9 = valid9 || _valid2;const _errs26 = errors;if(typeof data7 !== "bigint"){const err7 = {instancePath:instancePath+"/attempts_total",schemaPath:"#/properties/attempts_total/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 _valid2 = _errs26 === errors;valid9 = valid9 || _valid2;if(!valid9){const err8 = {instancePath:instancePath+"/attempts_total",schemaPath:"#/properties/attempts_total/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate170.errors = vErrors;return false;}else {errors = _errs23;if(vErrors !== null){if(_errs23){vErrors.length = _errs23;}else {vErrors = null;}}}var valid8 = _errs22 === errors;if(valid8){if(typeof data7 === "bigint"){if(data7 < 0){validate170.errors = [{instancePath:instancePath+"/attempts_total",schemaPath:"#/properties/attempts_total/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs21){if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 0 || isNaN(data7)){validate170.errors = [{instancePath:instancePath+"/attempts_total",schemaPath:"#/properties/attempts_total/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid5 = _errs21 === errors;}else {var valid5 = true;}if(valid5){if(data.preparation_skips !== undefined){let data8 = data.preparation_skips;const _errs27 = errors;if(errors === _errs27){if(Array.isArray(data8)){if(data8.length > 64){validate170.errors = [{instancePath:instancePath+"/preparation_skips",schemaPath:"#/properties/preparation_skips/maxItems",keyword:"maxItems",params:{limit: 64},message:"must NOT have more than 64 items"}];return false;}else {var valid10 = true;const len1 = data8.length;for(let i1=0; i1<len1; i1++){const _errs29 = errors;if(!(validate173(data8[i1], {instancePath:instancePath+"/preparation_skips/" + i1,parentData:data8,parentDataProperty:i1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate173.errors : vErrors.concat(validate173.errors);errors = vErrors.length;}var valid10 = _errs29 === errors;if(!valid10){break;}}}}else {validate170.errors = [{instancePath:instancePath+"/preparation_skips",schemaPath:"#/properties/preparation_skips/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid5 = _errs27 === errors;}else {var valid5 = true;}if(valid5){if(data.preparation_skips_truncated !== undefined){const _errs30 = errors;if(typeof data.preparation_skips_truncated !== "boolean"){validate170.errors = [{instancePath:instancePath+"/preparation_skips_truncated",schemaPath:"#/properties/preparation_skips_truncated/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs30 === errors;}else {var valid5 = true;}if(valid5){if(data.preparation_skips_total !== undefined){let data11 = data.preparation_skips_total;const _errs32 = errors;const _errs33 = errors;const _errs34 = errors;let valid12 = false;const _errs35 = errors;if(!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))){const err9 = {instancePath:instancePath+"/preparation_skips_total",schemaPath:"#/properties/preparation_skips_total/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs35 === errors;valid12 = valid12 || _valid3;const _errs37 = errors;if(typeof data11 !== "bigint"){const err10 = {instancePath:instancePath+"/preparation_skips_total",schemaPath:"#/properties/preparation_skips_total/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs37 === errors;valid12 = valid12 || _valid3;if(!valid12){const err11 = {instancePath:instancePath+"/preparation_skips_total",schemaPath:"#/properties/preparation_skips_total/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate170.errors = vErrors;return false;}else {errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}}var valid11 = _errs33 === errors;if(valid11){if(typeof data11 === "bigint"){if(data11 < 0){validate170.errors = [{instancePath:instancePath+"/preparation_skips_total",schemaPath:"#/properties/preparation_skips_total/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs32){if((typeof data11 == "number") && (isFinite(data11))){if(data11 < 0 || isNaN(data11)){validate170.errors = [{instancePath:instancePath+"/preparation_skips_total",schemaPath:"#/properties/preparation_skips_total/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid5 = _errs32 === errors;}else {var valid5 = true;}}}}}}}}}else {validate170.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate170.errors = vErrors;return errors === 0;}validate170.evaluated = {"props":{"fallbacks_allowed":true,"stopped_reason":true,"attempts":true,"attempts_truncated":true,"attempts_total":true,"preparation_skips":true,"preparation_skips_truncated":true,"preparation_skips_total":true},"dynamicProps":false,"dynamicItems":false};const schema179 = {"type":"object","required":["route_id","provider","provider_label","region"],"properties":{"route_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"provider":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"provider_label":{"type":"string","minLength":1,"maxLength":128},"region":{"type":["string","null"],"minLength":1,"maxLength":128}}};function validate176(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate176.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.route_id === undefined) && (missing0 = "route_id")) || ((data.provider === undefined) && (missing0 = "provider"))) || ((data.provider_label === undefined) && (missing0 = "provider_label"))) || ((data.region === undefined) && (missing0 = "region"))){validate176.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.route_id !== undefined){let data0 = data.route_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate176.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate176.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate176.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate176.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_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.provider !== undefined){let data1 = data.provider;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 64){validate176.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data1) < 1){validate176.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data1)){validate176.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}else {validate176.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/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_label !== undefined){let data2 = data.provider_label;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate176.errors = [{instancePath:instancePath+"/provider_label",schemaPath:"#/properties/provider_label/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate176.errors = [{instancePath:instancePath+"/provider_label",schemaPath:"#/properties/provider_label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate176.errors = [{instancePath:instancePath+"/provider_label",schemaPath:"#/properties/provider_label/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.region !== undefined){let data3 = data.region;const _errs7 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate176.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/type",keyword:"type",params:{type: schema179.properties.region.type},message:"must be string,null"}];return false;}if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 128){validate176.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate176.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate176.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate176.errors = vErrors;return errors === 0;}validate176.evaluated = {"props":{"route_id":true,"provider":true,"provider_label":true,"region":true},"dynamicProps":false,"dynamicItems":false};function validate157(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate157.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.run_id === undefined) && (missing0 = "run_id"))) || ((data.github_job_id === undefined) && (missing0 = "github_job_id"))) || ((data.name === undefined) && (missing0 = "name"))) || ((data.state === undefined) && (missing0 = "state"))) || ((data.result === undefined) && (missing0 = "result"))) || ((data.placement_ids === undefined) && (missing0 = "placement_ids"))){validate157.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate157.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate157.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate157.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate157.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.run_id !== undefined){let data1 = data.run_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate157.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate157.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate157.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate157.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.github_job_id !== undefined){let data2 = data.github_job_id;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate157.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate157.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate157.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate157.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){let data3 = data.name;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 255){validate157.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data3) < 1){validate157.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate157.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.repository !== undefined){let data4 = data.repository;const _errs9 = errors;if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) > 255){validate157.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data4) < 1){validate157.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate157.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.workflow !== undefined){let data5 = data.workflow;const _errs11 = errors;if(errors === _errs11){if(typeof data5 === "string"){if(func1(data5) > 255){validate157.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data5) < 1){validate157.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate157.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.job_name !== undefined){let data6 = data.job_name;const _errs13 = errors;if(errors === _errs13){if(typeof data6 === "string"){if(func1(data6) > 255){validate157.errors = [{instancePath:instancePath+"/job_name",schemaPath:"#/properties/job_name/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data6) < 1){validate157.errors = [{instancePath:instancePath+"/job_name",schemaPath:"#/properties/job_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate157.errors = [{instancePath:instancePath+"/job_name",schemaPath:"#/properties/job_name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.job_url !== undefined){let data7 = data.job_url;const _errs15 = errors;if(errors === _errs15){if(errors === _errs15){if(typeof data7 === "string"){if(func1(data7) > 2048){validate157.errors = [{instancePath:instancePath+"/job_url",schemaPath:"#/properties/job_url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate157.errors = [{instancePath:instancePath+"/job_url",schemaPath:"#/properties/job_url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.run_url !== undefined){let data8 = data.run_url;const _errs17 = errors;if(errors === _errs17){if(errors === _errs17){if(typeof data8 === "string"){if(func1(data8) > 2048){validate157.errors = [{instancePath:instancePath+"/run_url",schemaPath:"#/properties/run_url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate157.errors = [{instancePath:instancePath+"/run_url",schemaPath:"#/properties/run_url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.branch !== undefined){let data9 = data.branch;const _errs19 = errors;if(errors === _errs19){if(typeof data9 === "string"){if(func1(data9) > 255){validate157.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data9) < 1){validate157.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate157.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.head_sha !== undefined){let data10 = data.head_sha;const _errs21 = errors;if(errors === _errs21){if(typeof data10 === "string"){if(func1(data10) > 128){validate157.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data10) < 1){validate157.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data10)){validate157.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate157.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.requested_environment !== undefined){const _errs23 = errors;if(!(validate158(data.requested_environment, {instancePath:instancePath+"/requested_environment",parentData:data,parentDataProperty:"requested_environment",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate158.errors : vErrors.concat(validate158.errors);errors = vErrors.length;}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.requested_labels !== undefined){let data12 = data.requested_labels;const _errs24 = errors;if((!(Array.isArray(data12))) && (data12 !== null)){validate157.errors = [{instancePath:instancePath+"/requested_labels",schemaPath:"#/properties/requested_labels/type",keyword:"type",params:{type: schema160.properties.requested_labels.type},message:"must be array,null"}];return false;}if(errors === _errs24){if(Array.isArray(data12)){var valid1 = true;const len0 = data12.length;for(let i0=0; i0<len0; i0++){let data13 = data12[i0];const _errs26 = errors;if(errors === _errs26){if(typeof data13 === "string"){if(func1(data13) > 128){validate157.errors = [{instancePath:instancePath+"/requested_labels/" + i0,schemaPath:"#/properties/requested_labels/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data13) < 1){validate157.errors = [{instancePath:instancePath+"/requested_labels/" + i0,schemaPath:"#/properties/requested_labels/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data13)){validate157.errors = [{instancePath:instancePath+"/requested_labels/" + i0,schemaPath:"#/properties/requested_labels/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate157.errors = [{instancePath:instancePath+"/requested_labels/" + i0,schemaPath:"#/properties/requested_labels/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs26 === errors;if(!valid1){break;}}}}var valid0 = _errs24 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){let data14 = data.state;const _errs28 = errors;if(typeof data14 !== "string"){validate157.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data14 === "queued") || (data14 === "preparing")) || (data14 === "starting")) || (data14 === "running")) || (data14 === "stopping")) || (data14 === "ended")) || (data14 === "attention_required"))){validate157.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/enum",keyword:"enum",params:{allowedValues: schema114.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs28 === errors;}else {var valid0 = true;}if(valid0){if(data.result !== undefined){let data15 = data.result;const _errs31 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate157.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/type",keyword:"type",params:{type: schema115.type},message:"must be string,null"}];return false;}if(!(((((((((data15 === "success") || (data15 === "workload_failure")) || (data15 === "cancelled")) || (data15 === "timed_out")) || (data15 === "infrastructure_failure")) || (data15 === "skipped")) || (data15 === "neutral")) || (data15 === "unknown")) || (data15 === null))){validate157.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/enum",keyword:"enum",params:{allowedValues: schema115.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs31 === errors;}else {var valid0 = true;}if(valid0){if(data.failure !== undefined){let data16 = data.failure;const _errs34 = errors;const _errs35 = errors;if(errors === _errs35){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing1;if(((((data16.kind === undefined) && (missing1 = "kind")) || ((data16.reason_code === undefined) && (missing1 = "reason_code"))) || ((data16.message === undefined) && (missing1 = "message"))) || ((data16.link_target === undefined) && (missing1 = "link_target"))){validate157.errors = [{instancePath:instancePath+"/failure",schemaPath:"#/components/schemas/ActionsFailure/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data16.kind !== undefined){let data17 = data16.kind;const _errs37 = errors;if(typeof data17 !== "string"){validate157.errors = [{instancePath:instancePath+"/failure/kind",schemaPath:"#/components/schemas/ActionsFailure/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data17 === "workflow") || (data17 === "boxrouter"))){validate157.errors = [{instancePath:instancePath+"/failure/kind",schemaPath:"#/components/schemas/ActionsFailure/properties/kind/enum",keyword:"enum",params:{allowedValues: schema116.properties.kind.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs37 === errors;}else {var valid5 = true;}if(valid5){if(data16.reason_code !== undefined){let data18 = data16.reason_code;const _errs39 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate157.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/type",keyword:"type",params:{type: schema116.properties.reason_code.type},message:"must be string,null"}];return false;}if(errors === _errs39){if(typeof data18 === "string"){if(func1(data18) > 128){validate157.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(!pattern38.test(data18)){validate157.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_.-]{0,127}$"},message:"must match pattern \""+"^[a-z][a-z0-9_.-]{0,127}$"+"\""}];return false;}}}}var valid5 = _errs39 === errors;}else {var valid5 = true;}if(valid5){if(data16.message !== undefined){let data19 = data16.message;const _errs41 = errors;if((typeof data19 !== "string") && (data19 !== null)){validate157.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/type",keyword:"type",params:{type: schema116.properties.message.type},message:"must be string,null"}];return false;}if(errors === _errs41){if(typeof data19 === "string"){if(func1(data19) > 1024){validate157.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/maxLength",keyword:"maxLength",params:{limit: 1024},message:"must NOT have more than 1024 characters"}];return false;}else {if(func1(data19) < 1){validate157.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data16.link_target !== undefined){let data20 = data16.link_target;const _errs43 = errors;if((typeof data20 !== "string") && (data20 !== null)){validate157.errors = [{instancePath:instancePath+"/failure/link_target",schemaPath:"#/components/schemas/ActionsFailure/properties/link_target/type",keyword:"type",params:{type: schema116.properties.link_target.type},message:"must be string,null"}];return false;}if(!((((data20 === "byok") || (data20 === "credits")) || (data20 === "github")) || (data20 === null))){validate157.errors = [{instancePath:instancePath+"/failure/link_target",schemaPath:"#/components/schemas/ActionsFailure/properties/link_target/enum",keyword:"enum",params:{allowedValues: schema116.properties.link_target.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs43 === errors;}else {var valid5 = true;}}}}}}else {validate157.errors = [{instancePath:instancePath+"/failure",schemaPath:"#/components/schemas/ActionsFailure/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs34 === errors;}else {var valid0 = true;}if(valid0){if(data.waiting !== undefined){const _errs45 = errors;if(!(validate160(data.waiting, {instancePath:instancePath+"/waiting",parentData:data,parentDataProperty:"waiting",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate160.errors : vErrors.concat(validate160.errors);errors = vErrors.length;}var valid0 = _errs45 === errors;}else {var valid0 = true;}if(valid0){if(data.machine !== undefined){const _errs46 = errors;if(!(validate162(data.machine, {instancePath:instancePath+"/machine",parentData:data,parentDataProperty:"machine",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate162.errors : vErrors.concat(validate162.errors);errors = vErrors.length;}var valid0 = _errs46 === errors;}else {var valid0 = true;}if(valid0){if(data.billing !== undefined){const _errs47 = errors;if(!(validate116(data.billing, {instancePath:instancePath+"/billing",parentData:data,parentDataProperty:"billing",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate116.errors : vErrors.concat(validate116.errors);errors = vErrors.length;}var valid0 = _errs47 === errors;}else {var valid0 = true;}if(valid0){if(data.cost !== undefined){let data24 = data.cost;const _errs48 = errors;const _errs49 = errors;let valid6 = false;const _errs50 = errors;if(!(validate129(data24, {instancePath:instancePath+"/cost",parentData:data,parentDataProperty:"cost",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate129.errors : vErrors.concat(validate129.errors);errors = vErrors.length;}var _valid0 = _errs50 === errors;valid6 = valid6 || _valid0;const _errs51 = errors;if(data24 !== null){const err0 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs51 === errors;valid6 = valid6 || _valid0;if(!valid6){const err1 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate157.errors = vErrors;return false;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}var valid0 = _errs48 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime_seconds !== undefined){let data25 = data.lifetime_seconds;const _errs53 = errors;const _errs54 = errors;const _errs55 = errors;let valid8 = false;const _errs56 = errors;if((!(((typeof data25 == "number") && (!(data25 % 1) && !isNaN(data25))) && (isFinite(data25)))) && (data25 !== null)){const err2 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema160.properties.lifetime_seconds.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid1 = _errs56 === errors;valid8 = valid8 || _valid1;const _errs58 = errors;if(typeof data25 !== "bigint"){const err3 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs58 === errors;valid8 = valid8 || _valid1;if(!valid8){const err4 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate157.errors = vErrors;return false;}else {errors = _errs55;if(vErrors !== null){if(_errs55){vErrors.length = _errs55;}else {vErrors = null;}}}var valid7 = _errs54 === errors;if(valid7){if(typeof data25 === "bigint"){if(data25 < 1){validate157.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs53){if((typeof data25 == "number") && (isFinite(data25))){if(data25 < 1 || isNaN(data25)){validate157.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs53 === errors;}else {var valid0 = true;}if(valid0){if(data.sources !== undefined){let data26 = data.sources;const _errs59 = errors;if(errors === _errs59){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.region !== undefined){let data27 = data26.region;const _errs63 = errors;if(errors === _errs63){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.kind !== undefined){const _errs66 = errors;if(typeof data27.kind !== "string"){validate157.errors = [{instancePath:instancePath+"/sources/region/kind",schemaPath:"#/components/schemas/ActionsRegionSource/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid11 = _errs66 === errors;}else {var valid11 = true;}if(valid11){if(data27.url !== undefined){let data29 = data27.url;const _errs68 = errors;if(errors === _errs68){if(errors === _errs68){if(typeof data29 === "string"){if(func1(data29) > 2048){validate157.errors = [{instancePath:instancePath+"/sources/region/url",schemaPath:"#/components/schemas/ActionsRegionSource/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate157.errors = [{instancePath:instancePath+"/sources/region/url",schemaPath:"#/components/schemas/ActionsRegionSource/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid11 = _errs68 === errors;}else {var valid11 = true;}if(valid11){if(data27.read_at !== undefined){const _errs70 = errors;if(errors === _errs70){if(errors === _errs70){if(!(typeof data27.read_at === "string")){validate157.errors = [{instancePath:instancePath+"/sources/region/read_at",schemaPath:"#/components/schemas/ActionsRegionSource/properties/read_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid11 = _errs70 === errors;}else {var valid11 = true;}}}}else {validate157.errors = [{instancePath:instancePath+"/sources/region",schemaPath:"#/components/schemas/ActionsRegionSource/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}else {validate157.errors = [{instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs59 === errors;}else {var valid0 = true;}if(valid0){if(data.sandbox !== undefined){let data31 = data.sandbox;const _errs72 = errors;const _errs73 = errors;let valid12 = false;const _errs74 = errors;const _errs75 = errors;if(errors === _errs75){if(data31 && typeof data31 == "object" && !Array.isArray(data31)){let missing2;if((((data31.id === undefined) && (missing2 = "id")) || ((data31.state === undefined) && (missing2 = "state"))) || ((data31.removed_at === undefined) && (missing2 = "removed_at"))){const err5 = {instancePath:instancePath+"/sandbox",schemaPath:"#/components/schemas/ActionsJobSandbox/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {if(data31.id !== undefined){let data32 = data31.id;const _errs77 = errors;if(errors === _errs77){if(typeof data32 === "string"){if(func1(data32) > 128){const err6 = {instancePath:instancePath+"/sandbox/id",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(func1(data32) < 1){const err7 = {instancePath:instancePath+"/sandbox/id",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/id/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 {if(!pattern10.test(data32)){const err8 = {instancePath:instancePath+"/sandbox/id",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}}else {const err9 = {instancePath:instancePath+"/sandbox/id",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var valid14 = _errs77 === errors;}else {var valid14 = true;}if(valid14){if(data31.state !== undefined){const _errs79 = errors;if(typeof data31.state !== "string"){const err10 = {instancePath:instancePath+"/sandbox/state",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid14 = _errs79 === errors;}else {var valid14 = true;}if(valid14){if(data31.removed_at !== undefined){let data34 = data31.removed_at;const _errs81 = errors;if((typeof data34 !== "string") && (data34 !== null)){const err11 = {instancePath:instancePath+"/sandbox/removed_at",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/removed_at/type",keyword:"type",params:{type: schema169.properties.removed_at.type},message:"must be string,null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(errors === _errs81){if(errors === _errs81){if(typeof data34 === "string"){if(!(formats0.validate(data34))){const err12 = {instancePath:instancePath+"/sandbox/removed_at",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/removed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}var valid14 = _errs81 === errors;}else {var valid14 = true;}}}}}else {const err13 = {instancePath:instancePath+"/sandbox",schemaPath:"#/components/schemas/ActionsJobSandbox/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}var _valid2 = _errs74 === errors;valid12 = valid12 || _valid2;if(_valid2){var props1 = {};props1.id = true;props1.state = true;props1.removed_at = true;}const _errs83 = errors;if(data31 !== null){const err14 = {instancePath:instancePath+"/sandbox",schemaPath:"#/properties/sandbox/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid2 = _errs83 === errors;valid12 = valid12 || _valid2;if(!valid12){const err15 = {instancePath:instancePath+"/sandbox",schemaPath:"#/properties/sandbox/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate157.errors = vErrors;return false;}else {errors = _errs73;if(vErrors !== null){if(_errs73){vErrors.length = _errs73;}else {vErrors = null;}}}var valid0 = _errs72 === errors;}else {var valid0 = true;}if(valid0){if(data.placement_ids !== undefined){let data35 = data.placement_ids;const _errs85 = errors;if(errors === _errs85){if(Array.isArray(data35)){var valid15 = true;const len1 = data35.length;for(let i1=0; i1<len1; i1++){let data36 = data35[i1];const _errs87 = errors;if(errors === _errs87){if(typeof data36 === "string"){if(func1(data36) > 128){validate157.errors = [{instancePath:instancePath+"/placement_ids/" + i1,schemaPath:"#/properties/placement_ids/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data36) < 1){validate157.errors = [{instancePath:instancePath+"/placement_ids/" + i1,schemaPath:"#/properties/placement_ids/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data36)){validate157.errors = [{instancePath:instancePath+"/placement_ids/" + i1,schemaPath:"#/properties/placement_ids/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate157.errors = [{instancePath:instancePath+"/placement_ids/" + i1,schemaPath:"#/properties/placement_ids/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid15 = _errs87 === errors;if(!valid15){break;}}if(valid15){let i2 = data35.length;let j0;if(i2 > 1){const indices0 = {};for(;i2--;){let item0 = data35[i2];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate157.errors = [{instancePath:instancePath+"/placement_ids",schemaPath:"#/properties/placement_ids/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 {validate157.errors = [{instancePath:instancePath+"/placement_ids",schemaPath:"#/properties/placement_ids/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs85 === errors;}else {var valid0 = true;}if(valid0){if(data.route_selection !== undefined){const _errs89 = errors;if(!(validate168(data.route_selection, {instancePath:instancePath+"/route_selection",parentData:data,parentDataProperty:"route_selection",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate168.errors : vErrors.concat(validate168.errors);errors = vErrors.length;}var valid0 = _errs89 === errors;}else {var valid0 = true;}if(valid0){if(data.creation !== undefined){const _errs90 = errors;if(!(validate170(data.creation, {instancePath:instancePath+"/creation",parentData:data,parentDataProperty:"creation",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate170.errors : vErrors.concat(validate170.errors);errors = vErrors.length;}var valid0 = _errs90 === errors;}else {var valid0 = true;}if(valid0){if(data.ordered_routes !== undefined){let data39 = data.ordered_routes;const _errs91 = errors;if(errors === _errs91){if(Array.isArray(data39)){var valid17 = true;const len2 = data39.length;for(let i3=0; i3<len2; i3++){const _errs93 = errors;if(!(validate176(data39[i3], {instancePath:instancePath+"/ordered_routes/" + i3,parentData:data39,parentDataProperty:i3,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate176.errors : vErrors.concat(validate176.errors);errors = vErrors.length;}var valid17 = _errs93 === errors;if(!valid17){break;}}}else {validate157.errors = [{instancePath:instancePath+"/ordered_routes",schemaPath:"#/properties/ordered_routes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs91 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate157.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate157.errors = vErrors;return errors === 0;}validate157.evaluated = {"props":{"id":true,"run_id":true,"github_job_id":true,"name":true,"repository":true,"workflow":true,"job_name":true,"job_url":true,"run_url":true,"branch":true,"head_sha":true,"requested_environment":true,"requested_labels":true,"state":true,"result":true,"failure":true,"waiting":true,"machine":true,"billing":true,"cost":true,"lifetime_seconds":true,"sources":true,"sandbox":true,"placement_ids":true,"route_selection":true,"creation":true,"ordered_routes":true},"dynamicProps":false,"dynamicItems":false};function validate156(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate156.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"))){validate156.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(!(validate157(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate157.errors : vErrors.concat(validate157.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate156.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)){validate156.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema159.properties.next_cursor.type},message:"must be string,null"}];return false;}if(errors === _errs4){if(typeof data2 === "string"){if(func1(data2) > 128){validate156.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate156.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate156.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}else {validate156.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate156.errors = vErrors;return errors === 0;}validate156.evaluated = {"props":{"data":true,"next_cursor":true},"dynamicProps":false,"dynamicItems":false};exports.validate14 = validate179;const schema180 = {"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ActionsPlacement"}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}}};const schema181 = {"type":"object","required":["id","run_id","job_id","requested_job_id","assigned_job_id","provider","sandbox_id","state","result","cleanup_state","started_at","ended_at","billing","created_at","updated_at"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"run_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"job_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"requested_job_id":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"assigned_job_id":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"route_id":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$","description":"The route whose provider actually created this placement's sandbox. Explicit null means no actual allocation is bound yet (creation is unconfirmed); it is never an admission-selected placeholder. Bound placements carry the nonempty route ID unchanged."},"provider":{"type":["string","null"],"minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9-]*$"},"sandbox_id":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"sandbox_link":{"type":["string","null"],"minLength":1,"maxLength":2048,"pattern":"^/(?!/)[^\\u0000]*$","description":"Optional same-origin Sandboxes page path."},"region":{"type":["string","null"],"minLength":1,"maxLength":128},"size":{"anyOf":[{"$ref":"#/components/schemas/ActionsMachineSize"},{"type":"null"}]},"supply":{"type":["string","null"],"enum":["byok","managed",null]},"sources":{"type":"object","additionalProperties":true,"properties":{"region":{"$ref":"#/components/schemas/ActionsRegionSource"}}},"state":{"$ref":"#/components/schemas/ActionsRunState"},"result":{"$ref":"#/components/schemas/ActionsWorkResult"},"cleanup_state":{"$ref":"#/components/schemas/ActionsCleanupState"},"started_at":{"type":["string","null"],"format":"date-time"},"ended_at":{"type":["string","null"],"format":"date-time"},"billing":{"$ref":"#/components/schemas/ActionsBilling"},"creation":{"$ref":"#/components/schemas/CreationDiagnostics"},"lifetime_seconds":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}};const schema185 = {"type":"string","enum":["pending","confirmed","unknown"]};const pattern129 = new RegExp("^/(?!/)[^\\u0000]*$", "u");function validate180(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate180.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.run_id === undefined) && (missing0 = "run_id"))) || ((data.job_id === undefined) && (missing0 = "job_id"))) || ((data.requested_job_id === undefined) && (missing0 = "requested_job_id"))) || ((data.assigned_job_id === undefined) && (missing0 = "assigned_job_id"))) || ((data.provider === undefined) && (missing0 = "provider"))) || ((data.sandbox_id === undefined) && (missing0 = "sandbox_id"))) || ((data.state === undefined) && (missing0 = "state"))) || ((data.result === undefined) && (missing0 = "result"))) || ((data.cleanup_state === undefined) && (missing0 = "cleanup_state"))) || ((data.started_at === undefined) && (missing0 = "started_at"))) || ((data.ended_at === undefined) && (missing0 = "ended_at"))) || ((data.billing === undefined) && (missing0 = "billing"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.updated_at === undefined) && (missing0 = "updated_at"))){validate180.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate180.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate180.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate180.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate180.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.run_id !== undefined){let data1 = data.run_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate180.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate180.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate180.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate180.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.job_id !== undefined){let data2 = data.job_id;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate180.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate180.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate180.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate180.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.requested_job_id !== undefined){let data3 = data.requested_job_id;const _errs7 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate180.errors = [{instancePath:instancePath+"/requested_job_id",schemaPath:"#/properties/requested_job_id/type",keyword:"type",params:{type: schema181.properties.requested_job_id.type},message:"must be string,null"}];return false;}if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 128){validate180.errors = [{instancePath:instancePath+"/requested_job_id",schemaPath:"#/properties/requested_job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate180.errors = [{instancePath:instancePath+"/requested_job_id",schemaPath:"#/properties/requested_job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data3)){validate180.errors = [{instancePath:instancePath+"/requested_job_id",schemaPath:"#/properties/requested_job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.assigned_job_id !== undefined){let data4 = data.assigned_job_id;const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate180.errors = [{instancePath:instancePath+"/assigned_job_id",schemaPath:"#/properties/assigned_job_id/type",keyword:"type",params:{type: schema181.properties.assigned_job_id.type},message:"must be string,null"}];return false;}if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) > 128){validate180.errors = [{instancePath:instancePath+"/assigned_job_id",schemaPath:"#/properties/assigned_job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data4) < 1){validate180.errors = [{instancePath:instancePath+"/assigned_job_id",schemaPath:"#/properties/assigned_job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data4)){validate180.errors = [{instancePath:instancePath+"/assigned_job_id",schemaPath:"#/properties/assigned_job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.route_id !== undefined){let data5 = data.route_id;const _errs11 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate180.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/type",keyword:"type",params:{type: schema181.properties.route_id.type},message:"must be string,null"}];return false;}if(errors === _errs11){if(typeof data5 === "string"){if(func1(data5) > 128){validate180.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data5) < 1){validate180.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data5)){validate180.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.provider !== undefined){let data6 = data.provider;const _errs13 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate180.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: schema181.properties.provider.type},message:"must be string,null"}];return false;}if(errors === _errs13){if(typeof data6 === "string"){if(func1(data6) > 64){validate180.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data6) < 1){validate180.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data6)){validate180.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.sandbox_id !== undefined){let data7 = data.sandbox_id;const _errs15 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate180.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: schema181.properties.sandbox_id.type},message:"must be string,null"}];return false;}if(errors === _errs15){if(typeof data7 === "string"){if(func1(data7) > 128){validate180.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data7) < 1){validate180.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data7)){validate180.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.sandbox_link !== undefined){let data8 = data.sandbox_link;const _errs17 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate180.errors = [{instancePath:instancePath+"/sandbox_link",schemaPath:"#/properties/sandbox_link/type",keyword:"type",params:{type: schema181.properties.sandbox_link.type},message:"must be string,null"}];return false;}if(errors === _errs17){if(typeof data8 === "string"){if(func1(data8) > 2048){validate180.errors = [{instancePath:instancePath+"/sandbox_link",schemaPath:"#/properties/sandbox_link/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}else {if(func1(data8) < 1){validate180.errors = [{instancePath:instancePath+"/sandbox_link",schemaPath:"#/properties/sandbox_link/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern129.test(data8)){validate180.errors = [{instancePath:instancePath+"/sandbox_link",schemaPath:"#/properties/sandbox_link/pattern",keyword:"pattern",params:{pattern: "^/(?!/)[^\\u0000]*$"},message:"must match pattern \""+"^/(?!/)[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.region !== undefined){let data9 = data.region;const _errs19 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate180.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/type",keyword:"type",params:{type: schema181.properties.region.type},message:"must be string,null"}];return false;}if(errors === _errs19){if(typeof data9 === "string"){if(func1(data9) > 128){validate180.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data9) < 1){validate180.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.size !== undefined){let data10 = data.size;const _errs21 = errors;const _errs22 = errors;let valid1 = false;const _errs23 = errors;if(!(validate83(data10, {instancePath:instancePath+"/size",parentData:data,parentDataProperty:"size",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);errors = vErrors.length;}var _valid0 = _errs23 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.cpu = true;props0.memory_mib = true;}const _errs24 = errors;if(data10 !== null){const err0 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs24 === errors;valid1 = valid1 || _valid0;if(!valid1){const err1 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate180.errors = vErrors;return false;}else {errors = _errs22;if(vErrors !== null){if(_errs22){vErrors.length = _errs22;}else {vErrors = null;}}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.supply !== undefined){let data11 = data.supply;const _errs26 = errors;if((typeof data11 !== "string") && (data11 !== null)){validate180.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/type",keyword:"type",params:{type: schema181.properties.supply.type},message:"must be string,null"}];return false;}if(!(((data11 === "byok") || (data11 === "managed")) || (data11 === null))){validate180.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/enum",keyword:"enum",params:{allowedValues: schema181.properties.supply.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs26 === errors;}else {var valid0 = true;}if(valid0){if(data.sources !== undefined){let data12 = data.sources;const _errs28 = errors;if(errors === _errs28){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.region !== undefined){let data13 = data12.region;const _errs32 = errors;if(errors === _errs32){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.kind !== undefined){const _errs35 = errors;if(typeof data13.kind !== "string"){validate180.errors = [{instancePath:instancePath+"/sources/region/kind",schemaPath:"#/components/schemas/ActionsRegionSource/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data13.url !== undefined){let data15 = data13.url;const _errs37 = errors;if(errors === _errs37){if(errors === _errs37){if(typeof data15 === "string"){if(func1(data15) > 2048){validate180.errors = [{instancePath:instancePath+"/sources/region/url",schemaPath:"#/components/schemas/ActionsRegionSource/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate180.errors = [{instancePath:instancePath+"/sources/region/url",schemaPath:"#/components/schemas/ActionsRegionSource/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data13.read_at !== undefined){const _errs39 = errors;if(errors === _errs39){if(errors === _errs39){if(!(typeof data13.read_at === "string")){validate180.errors = [{instancePath:instancePath+"/sources/region/read_at",schemaPath:"#/components/schemas/ActionsRegionSource/properties/read_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid4 = _errs39 === errors;}else {var valid4 = true;}}}}else {validate180.errors = [{instancePath:instancePath+"/sources/region",schemaPath:"#/components/schemas/ActionsRegionSource/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}else {validate180.errors = [{instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs28 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){let data17 = data.state;const _errs41 = errors;if(typeof data17 !== "string"){validate180.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data17 === "queued") || (data17 === "preparing")) || (data17 === "starting")) || (data17 === "running")) || (data17 === "stopping")) || (data17 === "ended")) || (data17 === "attention_required"))){validate180.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/enum",keyword:"enum",params:{allowedValues: schema114.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs41 === errors;}else {var valid0 = true;}if(valid0){if(data.result !== undefined){let data18 = data.result;const _errs44 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate180.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/type",keyword:"type",params:{type: schema115.type},message:"must be string,null"}];return false;}if(!(((((((((data18 === "success") || (data18 === "workload_failure")) || (data18 === "cancelled")) || (data18 === "timed_out")) || (data18 === "infrastructure_failure")) || (data18 === "skipped")) || (data18 === "neutral")) || (data18 === "unknown")) || (data18 === null))){validate180.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/enum",keyword:"enum",params:{allowedValues: schema115.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs44 === errors;}else {var valid0 = true;}if(valid0){if(data.cleanup_state !== undefined){let data19 = data.cleanup_state;const _errs47 = errors;if(typeof data19 !== "string"){validate180.errors = [{instancePath:instancePath+"/cleanup_state",schemaPath:"#/components/schemas/ActionsCleanupState/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data19 === "pending") || (data19 === "confirmed")) || (data19 === "unknown"))){validate180.errors = [{instancePath:instancePath+"/cleanup_state",schemaPath:"#/components/schemas/ActionsCleanupState/enum",keyword:"enum",params:{allowedValues: schema185.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs47 === errors;}else {var valid0 = true;}if(valid0){if(data.started_at !== undefined){let data20 = data.started_at;const _errs50 = errors;if((typeof data20 !== "string") && (data20 !== null)){validate180.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/type",keyword:"type",params:{type: schema181.properties.started_at.type},message:"must be string,null"}];return false;}if(errors === _errs50){if(errors === _errs50){if(typeof data20 === "string"){if(!(formats0.validate(data20))){validate180.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs50 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at !== undefined){let data21 = data.ended_at;const _errs52 = errors;if((typeof data21 !== "string") && (data21 !== null)){validate180.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/type",keyword:"type",params:{type: schema181.properties.ended_at.type},message:"must be string,null"}];return false;}if(errors === _errs52){if(errors === _errs52){if(typeof data21 === "string"){if(!(formats0.validate(data21))){validate180.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs52 === errors;}else {var valid0 = true;}if(valid0){if(data.billing !== undefined){const _errs54 = errors;if(!(validate116(data.billing, {instancePath:instancePath+"/billing",parentData:data,parentDataProperty:"billing",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate116.errors : vErrors.concat(validate116.errors);errors = vErrors.length;}var valid0 = _errs54 === errors;}else {var valid0 = true;}if(valid0){if(data.creation !== undefined){const _errs55 = errors;if(!(validate170(data.creation, {instancePath:instancePath+"/creation",parentData:data,parentDataProperty:"creation",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate170.errors : vErrors.concat(validate170.errors);errors = vErrors.length;}var valid0 = _errs55 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime_seconds !== undefined){let data24 = data.lifetime_seconds;const _errs56 = errors;const _errs57 = errors;const _errs58 = errors;let valid9 = false;const _errs59 = errors;if((!(((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24))) && (isFinite(data24)))) && (data24 !== null)){const err2 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema181.properties.lifetime_seconds.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid1 = _errs59 === errors;valid9 = valid9 || _valid1;const _errs61 = errors;if(typeof data24 !== "bigint"){const err3 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs61 === errors;valid9 = valid9 || _valid1;if(!valid9){const err4 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate180.errors = vErrors;return false;}else {errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}}var valid8 = _errs57 === errors;if(valid8){if(typeof data24 === "bigint"){if(data24 < 1){validate180.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs56){if((typeof data24 == "number") && (isFinite(data24))){if(data24 < 1 || isNaN(data24)){validate180.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs56 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data25 = data.created_at;const _errs62 = errors;if(errors === _errs62){if(errors === _errs62){if(typeof data25 === "string"){if(!(formats0.validate(data25))){validate180.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate180.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs62 === errors;}else {var valid0 = true;}if(valid0){if(data.updated_at !== undefined){let data26 = data.updated_at;const _errs64 = errors;if(errors === _errs64){if(errors === _errs64){if(typeof data26 === "string"){if(!(formats0.validate(data26))){validate180.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate180.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs64 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}}}}}else {validate180.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate180.errors = vErrors;return errors === 0;}validate180.evaluated = {"props":{"id":true,"run_id":true,"job_id":true,"requested_job_id":true,"assigned_job_id":true,"route_id":true,"provider":true,"sandbox_id":true,"sandbox_link":true,"region":true,"size":true,"supply":true,"sources":true,"state":true,"result":true,"cleanup_state":true,"started_at":true,"ended_at":true,"billing":true,"creation":true,"lifetime_seconds":true,"created_at":true,"updated_at":true},"dynamicProps":false,"dynamicItems":false};function validate179(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate179.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"))){validate179.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(!(validate180(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate180.errors : vErrors.concat(validate180.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate179.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)){validate179.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema180.properties.next_cursor.type},message:"must be string,null"}];return false;}if(errors === _errs4){if(typeof data2 === "string"){if(func1(data2) > 128){validate179.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate179.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate179.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}else {validate179.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate179.errors = vErrors;return errors === 0;}validate179.evaluated = {"props":{"data":true,"next_cursor":true},"dynamicProps":false,"dynamicItems":false};exports.validate15 = validate185;function validate185(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate185.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.run_id === undefined) && (missing0 = "run_id"))) || ((data.github_job_id === undefined) && (missing0 = "github_job_id"))) || ((data.name === undefined) && (missing0 = "name"))) || ((data.state === undefined) && (missing0 = "state"))) || ((data.result === undefined) && (missing0 = "result"))) || ((data.placement_ids === undefined) && (missing0 = "placement_ids"))){validate185.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate185.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate185.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate185.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate185.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.run_id !== undefined){let data1 = data.run_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate185.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate185.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate185.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate185.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.github_job_id !== undefined){let data2 = data.github_job_id;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate185.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate185.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate185.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate185.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){let data3 = data.name;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 255){validate185.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data3) < 1){validate185.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate185.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.repository !== undefined){let data4 = data.repository;const _errs9 = errors;if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) > 255){validate185.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data4) < 1){validate185.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate185.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.workflow !== undefined){let data5 = data.workflow;const _errs11 = errors;if(errors === _errs11){if(typeof data5 === "string"){if(func1(data5) > 255){validate185.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data5) < 1){validate185.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate185.errors = [{instancePath:instancePath+"/workflow",schemaPath:"#/properties/workflow/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.job_name !== undefined){let data6 = data.job_name;const _errs13 = errors;if(errors === _errs13){if(typeof data6 === "string"){if(func1(data6) > 255){validate185.errors = [{instancePath:instancePath+"/job_name",schemaPath:"#/properties/job_name/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data6) < 1){validate185.errors = [{instancePath:instancePath+"/job_name",schemaPath:"#/properties/job_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate185.errors = [{instancePath:instancePath+"/job_name",schemaPath:"#/properties/job_name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.job_url !== undefined){let data7 = data.job_url;const _errs15 = errors;if(errors === _errs15){if(errors === _errs15){if(typeof data7 === "string"){if(func1(data7) > 2048){validate185.errors = [{instancePath:instancePath+"/job_url",schemaPath:"#/properties/job_url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate185.errors = [{instancePath:instancePath+"/job_url",schemaPath:"#/properties/job_url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.run_url !== undefined){let data8 = data.run_url;const _errs17 = errors;if(errors === _errs17){if(errors === _errs17){if(typeof data8 === "string"){if(func1(data8) > 2048){validate185.errors = [{instancePath:instancePath+"/run_url",schemaPath:"#/properties/run_url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate185.errors = [{instancePath:instancePath+"/run_url",schemaPath:"#/properties/run_url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.branch !== undefined){let data9 = data.branch;const _errs19 = errors;if(errors === _errs19){if(typeof data9 === "string"){if(func1(data9) > 255){validate185.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data9) < 1){validate185.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate185.errors = [{instancePath:instancePath+"/branch",schemaPath:"#/properties/branch/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.head_sha !== undefined){let data10 = data.head_sha;const _errs21 = errors;if(errors === _errs21){if(typeof data10 === "string"){if(func1(data10) > 128){validate185.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data10) < 1){validate185.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data10)){validate185.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate185.errors = [{instancePath:instancePath+"/head_sha",schemaPath:"#/properties/head_sha/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.requested_environment !== undefined){const _errs23 = errors;if(!(validate158(data.requested_environment, {instancePath:instancePath+"/requested_environment",parentData:data,parentDataProperty:"requested_environment",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate158.errors : vErrors.concat(validate158.errors);errors = vErrors.length;}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.requested_labels !== undefined){let data12 = data.requested_labels;const _errs24 = errors;if((!(Array.isArray(data12))) && (data12 !== null)){validate185.errors = [{instancePath:instancePath+"/requested_labels",schemaPath:"#/properties/requested_labels/type",keyword:"type",params:{type: schema160.properties.requested_labels.type},message:"must be array,null"}];return false;}if(errors === _errs24){if(Array.isArray(data12)){var valid1 = true;const len0 = data12.length;for(let i0=0; i0<len0; i0++){let data13 = data12[i0];const _errs26 = errors;if(errors === _errs26){if(typeof data13 === "string"){if(func1(data13) > 128){validate185.errors = [{instancePath:instancePath+"/requested_labels/" + i0,schemaPath:"#/properties/requested_labels/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data13) < 1){validate185.errors = [{instancePath:instancePath+"/requested_labels/" + i0,schemaPath:"#/properties/requested_labels/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data13)){validate185.errors = [{instancePath:instancePath+"/requested_labels/" + i0,schemaPath:"#/properties/requested_labels/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate185.errors = [{instancePath:instancePath+"/requested_labels/" + i0,schemaPath:"#/properties/requested_labels/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid1 = _errs26 === errors;if(!valid1){break;}}}}var valid0 = _errs24 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){let data14 = data.state;const _errs28 = errors;if(typeof data14 !== "string"){validate185.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data14 === "queued") || (data14 === "preparing")) || (data14 === "starting")) || (data14 === "running")) || (data14 === "stopping")) || (data14 === "ended")) || (data14 === "attention_required"))){validate185.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/enum",keyword:"enum",params:{allowedValues: schema114.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs28 === errors;}else {var valid0 = true;}if(valid0){if(data.result !== undefined){let data15 = data.result;const _errs31 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate185.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/type",keyword:"type",params:{type: schema115.type},message:"must be string,null"}];return false;}if(!(((((((((data15 === "success") || (data15 === "workload_failure")) || (data15 === "cancelled")) || (data15 === "timed_out")) || (data15 === "infrastructure_failure")) || (data15 === "skipped")) || (data15 === "neutral")) || (data15 === "unknown")) || (data15 === null))){validate185.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/enum",keyword:"enum",params:{allowedValues: schema115.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs31 === errors;}else {var valid0 = true;}if(valid0){if(data.failure !== undefined){let data16 = data.failure;const _errs34 = errors;const _errs35 = errors;if(errors === _errs35){if(data16 && typeof data16 == "object" && !Array.isArray(data16)){let missing1;if(((((data16.kind === undefined) && (missing1 = "kind")) || ((data16.reason_code === undefined) && (missing1 = "reason_code"))) || ((data16.message === undefined) && (missing1 = "message"))) || ((data16.link_target === undefined) && (missing1 = "link_target"))){validate185.errors = [{instancePath:instancePath+"/failure",schemaPath:"#/components/schemas/ActionsFailure/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data16.kind !== undefined){let data17 = data16.kind;const _errs37 = errors;if(typeof data17 !== "string"){validate185.errors = [{instancePath:instancePath+"/failure/kind",schemaPath:"#/components/schemas/ActionsFailure/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data17 === "workflow") || (data17 === "boxrouter"))){validate185.errors = [{instancePath:instancePath+"/failure/kind",schemaPath:"#/components/schemas/ActionsFailure/properties/kind/enum",keyword:"enum",params:{allowedValues: schema116.properties.kind.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs37 === errors;}else {var valid5 = true;}if(valid5){if(data16.reason_code !== undefined){let data18 = data16.reason_code;const _errs39 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate185.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/type",keyword:"type",params:{type: schema116.properties.reason_code.type},message:"must be string,null"}];return false;}if(errors === _errs39){if(typeof data18 === "string"){if(func1(data18) > 128){validate185.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(!pattern38.test(data18)){validate185.errors = [{instancePath:instancePath+"/failure/reason_code",schemaPath:"#/components/schemas/ActionsFailure/properties/reason_code/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9_.-]{0,127}$"},message:"must match pattern \""+"^[a-z][a-z0-9_.-]{0,127}$"+"\""}];return false;}}}}var valid5 = _errs39 === errors;}else {var valid5 = true;}if(valid5){if(data16.message !== undefined){let data19 = data16.message;const _errs41 = errors;if((typeof data19 !== "string") && (data19 !== null)){validate185.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/type",keyword:"type",params:{type: schema116.properties.message.type},message:"must be string,null"}];return false;}if(errors === _errs41){if(typeof data19 === "string"){if(func1(data19) > 1024){validate185.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/maxLength",keyword:"maxLength",params:{limit: 1024},message:"must NOT have more than 1024 characters"}];return false;}else {if(func1(data19) < 1){validate185.errors = [{instancePath:instancePath+"/failure/message",schemaPath:"#/components/schemas/ActionsFailure/properties/message/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid5 = _errs41 === errors;}else {var valid5 = true;}if(valid5){if(data16.link_target !== undefined){let data20 = data16.link_target;const _errs43 = errors;if((typeof data20 !== "string") && (data20 !== null)){validate185.errors = [{instancePath:instancePath+"/failure/link_target",schemaPath:"#/components/schemas/ActionsFailure/properties/link_target/type",keyword:"type",params:{type: schema116.properties.link_target.type},message:"must be string,null"}];return false;}if(!((((data20 === "byok") || (data20 === "credits")) || (data20 === "github")) || (data20 === null))){validate185.errors = [{instancePath:instancePath+"/failure/link_target",schemaPath:"#/components/schemas/ActionsFailure/properties/link_target/enum",keyword:"enum",params:{allowedValues: schema116.properties.link_target.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs43 === errors;}else {var valid5 = true;}}}}}}else {validate185.errors = [{instancePath:instancePath+"/failure",schemaPath:"#/components/schemas/ActionsFailure/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs34 === errors;}else {var valid0 = true;}if(valid0){if(data.waiting !== undefined){const _errs45 = errors;if(!(validate160(data.waiting, {instancePath:instancePath+"/waiting",parentData:data,parentDataProperty:"waiting",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate160.errors : vErrors.concat(validate160.errors);errors = vErrors.length;}var valid0 = _errs45 === errors;}else {var valid0 = true;}if(valid0){if(data.machine !== undefined){const _errs46 = errors;if(!(validate162(data.machine, {instancePath:instancePath+"/machine",parentData:data,parentDataProperty:"machine",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate162.errors : vErrors.concat(validate162.errors);errors = vErrors.length;}var valid0 = _errs46 === errors;}else {var valid0 = true;}if(valid0){if(data.billing !== undefined){const _errs47 = errors;if(!(validate116(data.billing, {instancePath:instancePath+"/billing",parentData:data,parentDataProperty:"billing",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate116.errors : vErrors.concat(validate116.errors);errors = vErrors.length;}var valid0 = _errs47 === errors;}else {var valid0 = true;}if(valid0){if(data.cost !== undefined){let data24 = data.cost;const _errs48 = errors;const _errs49 = errors;let valid6 = false;const _errs50 = errors;if(!(validate129(data24, {instancePath:instancePath+"/cost",parentData:data,parentDataProperty:"cost",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate129.errors : vErrors.concat(validate129.errors);errors = vErrors.length;}var _valid0 = _errs50 === errors;valid6 = valid6 || _valid0;const _errs51 = errors;if(data24 !== null){const err0 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs51 === errors;valid6 = valid6 || _valid0;if(!valid6){const err1 = {instancePath:instancePath+"/cost",schemaPath:"#/properties/cost/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate185.errors = vErrors;return false;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}var valid0 = _errs48 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime_seconds !== undefined){let data25 = data.lifetime_seconds;const _errs53 = errors;const _errs54 = errors;const _errs55 = errors;let valid8 = false;const _errs56 = errors;if((!(((typeof data25 == "number") && (!(data25 % 1) && !isNaN(data25))) && (isFinite(data25)))) && (data25 !== null)){const err2 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema160.properties.lifetime_seconds.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid1 = _errs56 === errors;valid8 = valid8 || _valid1;const _errs58 = errors;if(typeof data25 !== "bigint"){const err3 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs58 === errors;valid8 = valid8 || _valid1;if(!valid8){const err4 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate185.errors = vErrors;return false;}else {errors = _errs55;if(vErrors !== null){if(_errs55){vErrors.length = _errs55;}else {vErrors = null;}}}var valid7 = _errs54 === errors;if(valid7){if(typeof data25 === "bigint"){if(data25 < 1){validate185.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs53){if((typeof data25 == "number") && (isFinite(data25))){if(data25 < 1 || isNaN(data25)){validate185.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs53 === errors;}else {var valid0 = true;}if(valid0){if(data.sources !== undefined){let data26 = data.sources;const _errs59 = errors;if(errors === _errs59){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.region !== undefined){let data27 = data26.region;const _errs63 = errors;if(errors === _errs63){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.kind !== undefined){const _errs66 = errors;if(typeof data27.kind !== "string"){validate185.errors = [{instancePath:instancePath+"/sources/region/kind",schemaPath:"#/components/schemas/ActionsRegionSource/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid11 = _errs66 === errors;}else {var valid11 = true;}if(valid11){if(data27.url !== undefined){let data29 = data27.url;const _errs68 = errors;if(errors === _errs68){if(errors === _errs68){if(typeof data29 === "string"){if(func1(data29) > 2048){validate185.errors = [{instancePath:instancePath+"/sources/region/url",schemaPath:"#/components/schemas/ActionsRegionSource/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate185.errors = [{instancePath:instancePath+"/sources/region/url",schemaPath:"#/components/schemas/ActionsRegionSource/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid11 = _errs68 === errors;}else {var valid11 = true;}if(valid11){if(data27.read_at !== undefined){const _errs70 = errors;if(errors === _errs70){if(errors === _errs70){if(!(typeof data27.read_at === "string")){validate185.errors = [{instancePath:instancePath+"/sources/region/read_at",schemaPath:"#/components/schemas/ActionsRegionSource/properties/read_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid11 = _errs70 === errors;}else {var valid11 = true;}}}}else {validate185.errors = [{instancePath:instancePath+"/sources/region",schemaPath:"#/components/schemas/ActionsRegionSource/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}else {validate185.errors = [{instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs59 === errors;}else {var valid0 = true;}if(valid0){if(data.sandbox !== undefined){let data31 = data.sandbox;const _errs72 = errors;const _errs73 = errors;let valid12 = false;const _errs74 = errors;const _errs75 = errors;if(errors === _errs75){if(data31 && typeof data31 == "object" && !Array.isArray(data31)){let missing2;if((((data31.id === undefined) && (missing2 = "id")) || ((data31.state === undefined) && (missing2 = "state"))) || ((data31.removed_at === undefined) && (missing2 = "removed_at"))){const err5 = {instancePath:instancePath+"/sandbox",schemaPath:"#/components/schemas/ActionsJobSandbox/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {if(data31.id !== undefined){let data32 = data31.id;const _errs77 = errors;if(errors === _errs77){if(typeof data32 === "string"){if(func1(data32) > 128){const err6 = {instancePath:instancePath+"/sandbox/id",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(func1(data32) < 1){const err7 = {instancePath:instancePath+"/sandbox/id",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/id/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 {if(!pattern10.test(data32)){const err8 = {instancePath:instancePath+"/sandbox/id",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}}else {const err9 = {instancePath:instancePath+"/sandbox/id",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var valid14 = _errs77 === errors;}else {var valid14 = true;}if(valid14){if(data31.state !== undefined){const _errs79 = errors;if(typeof data31.state !== "string"){const err10 = {instancePath:instancePath+"/sandbox/state",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var valid14 = _errs79 === errors;}else {var valid14 = true;}if(valid14){if(data31.removed_at !== undefined){let data34 = data31.removed_at;const _errs81 = errors;if((typeof data34 !== "string") && (data34 !== null)){const err11 = {instancePath:instancePath+"/sandbox/removed_at",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/removed_at/type",keyword:"type",params:{type: schema169.properties.removed_at.type},message:"must be string,null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(errors === _errs81){if(errors === _errs81){if(typeof data34 === "string"){if(!(formats0.validate(data34))){const err12 = {instancePath:instancePath+"/sandbox/removed_at",schemaPath:"#/components/schemas/ActionsJobSandbox/properties/removed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}}var valid14 = _errs81 === errors;}else {var valid14 = true;}}}}}else {const err13 = {instancePath:instancePath+"/sandbox",schemaPath:"#/components/schemas/ActionsJobSandbox/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}var _valid2 = _errs74 === errors;valid12 = valid12 || _valid2;if(_valid2){var props1 = {};props1.id = true;props1.state = true;props1.removed_at = true;}const _errs83 = errors;if(data31 !== null){const err14 = {instancePath:instancePath+"/sandbox",schemaPath:"#/properties/sandbox/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid2 = _errs83 === errors;valid12 = valid12 || _valid2;if(!valid12){const err15 = {instancePath:instancePath+"/sandbox",schemaPath:"#/properties/sandbox/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;validate185.errors = vErrors;return false;}else {errors = _errs73;if(vErrors !== null){if(_errs73){vErrors.length = _errs73;}else {vErrors = null;}}}var valid0 = _errs72 === errors;}else {var valid0 = true;}if(valid0){if(data.placement_ids !== undefined){let data35 = data.placement_ids;const _errs85 = errors;if(errors === _errs85){if(Array.isArray(data35)){var valid15 = true;const len1 = data35.length;for(let i1=0; i1<len1; i1++){let data36 = data35[i1];const _errs87 = errors;if(errors === _errs87){if(typeof data36 === "string"){if(func1(data36) > 128){validate185.errors = [{instancePath:instancePath+"/placement_ids/" + i1,schemaPath:"#/properties/placement_ids/items/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data36) < 1){validate185.errors = [{instancePath:instancePath+"/placement_ids/" + i1,schemaPath:"#/properties/placement_ids/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data36)){validate185.errors = [{instancePath:instancePath+"/placement_ids/" + i1,schemaPath:"#/properties/placement_ids/items/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate185.errors = [{instancePath:instancePath+"/placement_ids/" + i1,schemaPath:"#/properties/placement_ids/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid15 = _errs87 === errors;if(!valid15){break;}}if(valid15){let i2 = data35.length;let j0;if(i2 > 1){const indices0 = {};for(;i2--;){let item0 = data35[i2];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];validate185.errors = [{instancePath:instancePath+"/placement_ids",schemaPath:"#/properties/placement_ids/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 {validate185.errors = [{instancePath:instancePath+"/placement_ids",schemaPath:"#/properties/placement_ids/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs85 === errors;}else {var valid0 = true;}if(valid0){if(data.route_selection !== undefined){const _errs89 = errors;if(!(validate168(data.route_selection, {instancePath:instancePath+"/route_selection",parentData:data,parentDataProperty:"route_selection",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate168.errors : vErrors.concat(validate168.errors);errors = vErrors.length;}var valid0 = _errs89 === errors;}else {var valid0 = true;}if(valid0){if(data.creation !== undefined){const _errs90 = errors;if(!(validate170(data.creation, {instancePath:instancePath+"/creation",parentData:data,parentDataProperty:"creation",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate170.errors : vErrors.concat(validate170.errors);errors = vErrors.length;}var valid0 = _errs90 === errors;}else {var valid0 = true;}if(valid0){if(data.ordered_routes !== undefined){let data39 = data.ordered_routes;const _errs91 = errors;if(errors === _errs91){if(Array.isArray(data39)){var valid17 = true;const len2 = data39.length;for(let i3=0; i3<len2; i3++){const _errs93 = errors;if(!(validate176(data39[i3], {instancePath:instancePath+"/ordered_routes/" + i3,parentData:data39,parentDataProperty:i3,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate176.errors : vErrors.concat(validate176.errors);errors = vErrors.length;}var valid17 = _errs93 === errors;if(!valid17){break;}}}else {validate185.errors = [{instancePath:instancePath+"/ordered_routes",schemaPath:"#/properties/ordered_routes/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs91 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate185.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate185.errors = vErrors;return errors === 0;}validate185.evaluated = {"props":{"id":true,"run_id":true,"github_job_id":true,"name":true,"repository":true,"workflow":true,"job_name":true,"job_url":true,"run_url":true,"branch":true,"head_sha":true,"requested_environment":true,"requested_labels":true,"state":true,"result":true,"failure":true,"waiting":true,"machine":true,"billing":true,"cost":true,"lifetime_seconds":true,"sources":true,"sandbox":true,"placement_ids":true,"route_selection":true,"creation":true,"ordered_routes":true},"dynamicProps":false,"dynamicItems":false};exports.validate16 = validate194;const schema192 = {"type":"object","required":["job_id","run_id","github_job_id","run_attempt","availability","steps","observed_at","source"],"properties":{"job_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"run_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"github_job_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"run_attempt":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"availability":{"type":"string","enum":["available","pending","unavailable","forbidden","removed"]},"steps":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/ActionsWorkflowStep"}},"observed_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["github_workflow_job"]},"reason_code":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9_]{0,63}$"}}};const schema193 = {"type":"object","required":["position","number","name","status","conclusion","started_at","completed_at"],"properties":{"position":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"number":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"name":{"type":"string","minLength":1,"maxLength":255},"status":{"type":"string","minLength":1,"maxLength":64},"conclusion":{"type":["string","null"],"maxLength":64},"started_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"}}};function validate195(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate195.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.number === undefined) && (missing0 = "number"))) || ((data.name === undefined) && (missing0 = "name"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.conclusion === undefined) && (missing0 = "conclusion"))) || ((data.started_at === undefined) && (missing0 = "started_at"))) || ((data.completed_at === undefined) && (missing0 = "completed_at"))){validate195.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++;validate195.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){validate195.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 < 0 || isNaN(data0)){validate195.errors = [{instancePath:instancePath+"/position",schemaPath:"#/properties/position/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.number !== undefined){let data1 = data.number;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+"/number",schemaPath:"#/properties/number/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+"/number",schemaPath:"#/properties/number/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+"/number",schemaPath:"#/properties/number/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate195.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 < 1){validate195.errors = [{instancePath:instancePath+"/number",schemaPath:"#/properties/number/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 < 1 || isNaN(data1)){validate195.errors = [{instancePath:instancePath+"/number",schemaPath:"#/properties/number/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){let data2 = data.name;const _errs13 = errors;if(errors === _errs13){if(typeof data2 === "string"){if(func1(data2) > 255){validate195.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data2) < 1){validate195.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate195.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){let data3 = data.status;const _errs15 = errors;if(errors === _errs15){if(typeof data3 === "string"){if(func1(data3) > 64){validate195.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data3) < 1){validate195.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate195.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.conclusion !== undefined){let data4 = data.conclusion;const _errs17 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate195.errors = [{instancePath:instancePath+"/conclusion",schemaPath:"#/properties/conclusion/type",keyword:"type",params:{type: schema193.properties.conclusion.type},message:"must be string,null"}];return false;}if(errors === _errs17){if(typeof data4 === "string"){if(func1(data4) > 64){validate195.errors = [{instancePath:instancePath+"/conclusion",schemaPath:"#/properties/conclusion/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.started_at !== undefined){let data5 = data.started_at;const _errs19 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate195.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/type",keyword:"type",params:{type: schema193.properties.started_at.type},message:"must be string,null"}];return false;}if(errors === _errs19){if(errors === _errs19){if(typeof data5 === "string"){if(!(formats0.validate(data5))){validate195.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.completed_at !== undefined){let data6 = data.completed_at;const _errs21 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate195.errors = [{instancePath:instancePath+"/completed_at",schemaPath:"#/properties/completed_at/type",keyword:"type",params:{type: schema193.properties.completed_at.type},message:"must be string,null"}];return false;}if(errors === _errs21){if(errors === _errs21){if(typeof data6 === "string"){if(!(formats0.validate(data6))){validate195.errors = [{instancePath:instancePath+"/completed_at",schemaPath:"#/properties/completed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs21 === errors;}else {var valid0 = true;}}}}}}}}}else {validate195.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate195.errors = vErrors;return errors === 0;}validate195.evaluated = {"props":{"position":true,"number":true,"name":true,"status":true,"conclusion":true,"started_at":true,"completed_at":true},"dynamicProps":false,"dynamicItems":false};function validate194(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate194.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.job_id === undefined) && (missing0 = "job_id")) || ((data.run_id === undefined) && (missing0 = "run_id"))) || ((data.github_job_id === undefined) && (missing0 = "github_job_id"))) || ((data.run_attempt === undefined) && (missing0 = "run_attempt"))) || ((data.availability === undefined) && (missing0 = "availability"))) || ((data.steps === undefined) && (missing0 = "steps"))) || ((data.observed_at === undefined) && (missing0 = "observed_at"))) || ((data.source === undefined) && (missing0 = "source"))){validate194.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.job_id !== undefined){let data0 = data.job_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate194.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate194.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate194.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate194.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_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.run_id !== undefined){let data1 = data.run_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate194.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate194.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate194.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate194.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.github_job_id !== undefined){let data2 = data.github_job_id;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate194.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate194.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate194.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate194.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.run_attempt !== undefined){let data3 = data.run_attempt;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid2 = false;const _errs10 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err0 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;valid2 = valid2 || _valid0;const _errs12 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs12 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate194.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid1 = _errs8 === errors;if(valid1){if(typeof data3 === "bigint"){if(data3 < 1){validate194.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 1 || isNaN(data3)){validate194.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.availability !== undefined){let data4 = data.availability;const _errs13 = errors;if(typeof data4 !== "string"){validate194.errors = [{instancePath:instancePath+"/availability",schemaPath:"#/properties/availability/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data4 === "available") || (data4 === "pending")) || (data4 === "unavailable")) || (data4 === "forbidden")) || (data4 === "removed"))){validate194.errors = [{instancePath:instancePath+"/availability",schemaPath:"#/properties/availability/enum",keyword:"enum",params:{allowedValues: schema192.properties.availability.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.steps !== undefined){let data5 = data.steps;const _errs15 = errors;if(errors === _errs15){if(Array.isArray(data5)){if(data5.length > 1000){validate194.errors = [{instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/maxItems",keyword:"maxItems",params:{limit: 1000},message:"must NOT have more than 1000 items"}];return false;}else {var valid3 = true;const len0 = data5.length;for(let i0=0; i0<len0; i0++){const _errs17 = errors;if(!(validate195(data5[i0], {instancePath:instancePath+"/steps/" + i0,parentData:data5,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate195.errors : vErrors.concat(validate195.errors);errors = vErrors.length;}var valid3 = _errs17 === errors;if(!valid3){break;}}}}else {validate194.errors = [{instancePath:instancePath+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.observed_at !== undefined){let data7 = data.observed_at;const _errs18 = errors;if(errors === _errs18){if(errors === _errs18){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate194.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate194.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.source !== undefined){let data8 = data.source;const _errs20 = errors;if(typeof data8 !== "string"){validate194.errors = [{instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data8 === "github_workflow_job")){validate194.errors = [{instancePath:instancePath+"/source",schemaPath:"#/properties/source/enum",keyword:"enum",params:{allowedValues: schema192.properties.source.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.reason_code !== undefined){let data9 = data.reason_code;const _errs22 = errors;if(errors === _errs22){if(typeof data9 === "string"){if(func1(data9) > 64){validate194.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data9) < 1){validate194.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern70.test(data9)){validate194.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/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 {validate194.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs22 === errors;}else {var valid0 = true;}}}}}}}}}}}else {validate194.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate194.errors = vErrors;return errors === 0;}validate194.evaluated = {"props":{"job_id":true,"run_id":true,"github_job_id":true,"run_attempt":true,"availability":true,"steps":true,"observed_at":true,"source":true,"reason_code":true},"dynamicProps":false,"dynamicItems":false};exports.validate17 = validate197;const schema194 = {"type":"object","required":["job_id","run_id","github_job_id","run_attempt","observed_at","source","availability","text","byte_count","partial"],"properties":{"job_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"run_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"github_job_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"run_attempt":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"observed_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["github_job_log","github_step_log"]},"availability":{"type":"string","enum":["available","pending","unavailable","forbidden","removed"]},"text":{"type":["string","null"],"maxLength":1048576},"byte_count":{"minimum":0,"maximum":1048576,"description":"Number of source log bytes fetched, before UTF-8 decoding. An incomplete trailing UTF-8 sequence is omitted from text; byte_count still includes those fetched bytes.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0,"maximum":1048576}},"partial":{"type":"boolean"},"step_position":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"reason_code":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9_]{0,63}$"}},"allOf":[{"if":{"properties":{"availability":{"const":"available"}},"required":["availability"]},"then":{"properties":{"text":{"type":"string"}}}}]};function validate197(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate197.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.availability === undefined) && (missing0 = "availability")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.availability !== undefined){if("available" !== data.availability){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.text !== undefined){if(typeof data.text !== "string"){validate197.errors = [{instancePath:instancePath+"/text",schemaPath:"#/allOf/0/then/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.text = true;props0.availability = true;}}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate197.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((((((((data.job_id === undefined) && (missing1 = "job_id")) || ((data.run_id === undefined) && (missing1 = "run_id"))) || ((data.github_job_id === undefined) && (missing1 = "github_job_id"))) || ((data.run_attempt === undefined) && (missing1 = "run_attempt"))) || ((data.observed_at === undefined) && (missing1 = "observed_at"))) || ((data.source === undefined) && (missing1 = "source"))) || ((data.availability === undefined) && (missing1 = "availability"))) || ((data.text === undefined) && (missing1 = "text"))) || ((data.byte_count === undefined) && (missing1 = "byte_count"))) || ((data.partial === undefined) && (missing1 = "partial"))){validate197.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.job_id = true;props0.run_id = true;props0.github_job_id = true;props0.run_attempt = true;props0.observed_at = true;props0.source = true;props0.availability = true;props0.text = true;props0.byte_count = true;props0.partial = true;props0.step_position = true;props0.reason_code = true;}if(data.job_id !== undefined){let data2 = data.job_id;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func1(data2) > 128){validate197.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate197.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate197.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate197.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs8 === errors;}else {var valid4 = true;}if(valid4){if(data.run_id !== undefined){let data3 = data.run_id;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func1(data3) > 128){validate197.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate197.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data3)){validate197.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate197.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs10 === errors;}else {var valid4 = true;}if(valid4){if(data.github_job_id !== undefined){let data4 = data.github_job_id;const _errs12 = errors;if(errors === _errs12){if(typeof data4 === "string"){if(func1(data4) > 128){validate197.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data4) < 1){validate197.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data4)){validate197.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate197.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs12 === errors;}else {var valid4 = true;}if(valid4){if(data.run_attempt !== undefined){let data5 = data.run_attempt;const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;let valid6 = false;const _errs17 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err3 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs17 === errors;valid6 = valid6 || _valid1;const _errs19 = errors;if(typeof data5 !== "bigint"){const err4 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs19 === errors;valid6 = valid6 || _valid1;if(!valid6){const err5 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate197.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid5 = _errs15 === errors;if(valid5){if(typeof data5 === "bigint"){if(data5 < 1){validate197.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs14){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 1 || isNaN(data5)){validate197.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid4 = _errs14 === errors;}else {var valid4 = true;}if(valid4){if(data.observed_at !== undefined){let data6 = data.observed_at;const _errs20 = errors;if(errors === _errs20){if(errors === _errs20){if(typeof data6 === "string"){if(!(formats0.validate(data6))){validate197.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate197.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid4 = _errs20 === errors;}else {var valid4 = true;}if(valid4){if(data.source !== undefined){let data7 = data.source;const _errs22 = errors;if(typeof data7 !== "string"){validate197.errors = [{instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data7 === "github_job_log") || (data7 === "github_step_log"))){validate197.errors = [{instancePath:instancePath+"/source",schemaPath:"#/properties/source/enum",keyword:"enum",params:{allowedValues: schema194.properties.source.enum},message:"must be equal to one of the allowed values"}];return false;}var valid4 = _errs22 === errors;}else {var valid4 = true;}if(valid4){if(data.availability !== undefined){let data8 = data.availability;const _errs24 = errors;if(typeof data8 !== "string"){validate197.errors = [{instancePath:instancePath+"/availability",schemaPath:"#/properties/availability/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data8 === "available") || (data8 === "pending")) || (data8 === "unavailable")) || (data8 === "forbidden")) || (data8 === "removed"))){validate197.errors = [{instancePath:instancePath+"/availability",schemaPath:"#/properties/availability/enum",keyword:"enum",params:{allowedValues: schema194.properties.availability.enum},message:"must be equal to one of the allowed values"}];return false;}var valid4 = _errs24 === errors;}else {var valid4 = true;}if(valid4){if(data.text !== undefined){let data9 = data.text;const _errs26 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate197.errors = [{instancePath:instancePath+"/text",schemaPath:"#/properties/text/type",keyword:"type",params:{type: schema194.properties.text.type},message:"must be string,null"}];return false;}if(errors === _errs26){if(typeof data9 === "string"){if(func1(data9) > 1048576){validate197.errors = [{instancePath:instancePath+"/text",schemaPath:"#/properties/text/maxLength",keyword:"maxLength",params:{limit: 1048576},message:"must NOT have more than 1048576 characters"}];return false;}}}var valid4 = _errs26 === errors;}else {var valid4 = true;}if(valid4){if(data.byte_count !== undefined){let data10 = data.byte_count;const _errs28 = errors;const _errs29 = errors;const _errs30 = errors;let valid8 = false;const _errs31 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err6 = {instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/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 _valid2 = _errs31 === errors;valid8 = valid8 || _valid2;const _errs33 = errors;if(typeof data10 !== "bigint"){const err7 = {instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs33 === errors;valid8 = valid8 || _valid2;if(!valid8){const err8 = {instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate197.errors = vErrors;return false;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var valid7 = _errs29 === errors;if(valid7){if(typeof data10 === "bigint"){if(data10 < 0){validate197.errors = [{instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data10 > 1048576){validate197.errors = [{instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs28){if((typeof data10 == "number") && (isFinite(data10))){if(data10 > 1048576 || isNaN(data10)){validate197.errors = [{instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1048576},message:"must be <= 1048576"}];return false;}else {if(data10 < 0 || isNaN(data10)){validate197.errors = [{instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid4 = _errs28 === errors;}else {var valid4 = true;}if(valid4){if(data.partial !== undefined){const _errs34 = errors;if(typeof data.partial !== "boolean"){validate197.errors = [{instancePath:instancePath+"/partial",schemaPath:"#/properties/partial/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid4 = _errs34 === errors;}else {var valid4 = true;}if(valid4){if(data.step_position !== undefined){let data12 = data.step_position;const _errs36 = errors;const _errs37 = errors;const _errs38 = errors;let valid10 = false;const _errs39 = errors;if(!(((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12))) && (isFinite(data12)))){const err9 = {instancePath:instancePath+"/step_position",schemaPath:"#/properties/step_position/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs39 === errors;valid10 = valid10 || _valid3;const _errs41 = errors;if(typeof data12 !== "bigint"){const err10 = {instancePath:instancePath+"/step_position",schemaPath:"#/properties/step_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 = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs41 === errors;valid10 = valid10 || _valid3;if(!valid10){const err11 = {instancePath:instancePath+"/step_position",schemaPath:"#/properties/step_position/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate197.errors = vErrors;return false;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}var valid9 = _errs37 === errors;if(valid9){if(typeof data12 === "bigint"){if(data12 < 0){validate197.errors = [{instancePath:instancePath+"/step_position",schemaPath:"#/properties/step_position/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs36){if((typeof data12 == "number") && (isFinite(data12))){if(data12 < 0 || isNaN(data12)){validate197.errors = [{instancePath:instancePath+"/step_position",schemaPath:"#/properties/step_position/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid4 = _errs36 === errors;}else {var valid4 = true;}if(valid4){if(data.reason_code !== undefined){let data13 = data.reason_code;const _errs42 = errors;if(errors === _errs42){if(typeof data13 === "string"){if(func1(data13) > 64){validate197.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data13) < 1){validate197.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern70.test(data13)){validate197.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/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 {validate197.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs42 === errors;}else {var valid4 = true;}}}}}}}}}}}}}}else {validate197.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate197.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate197.evaluated = {"dynamicProps":true,"dynamicItems":false};exports.validate18 = validate198;function validate198(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate198.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.availability === undefined) && (missing0 = "availability")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.availability !== undefined){if("available" !== data.availability){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.text !== undefined){if(typeof data.text !== "string"){validate198.errors = [{instancePath:instancePath+"/text",schemaPath:"#/allOf/0/then/properties/text/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.text = true;props0.availability = true;}}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate198.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((((((((data.job_id === undefined) && (missing1 = "job_id")) || ((data.run_id === undefined) && (missing1 = "run_id"))) || ((data.github_job_id === undefined) && (missing1 = "github_job_id"))) || ((data.run_attempt === undefined) && (missing1 = "run_attempt"))) || ((data.observed_at === undefined) && (missing1 = "observed_at"))) || ((data.source === undefined) && (missing1 = "source"))) || ((data.availability === undefined) && (missing1 = "availability"))) || ((data.text === undefined) && (missing1 = "text"))) || ((data.byte_count === undefined) && (missing1 = "byte_count"))) || ((data.partial === undefined) && (missing1 = "partial"))){validate198.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.job_id = true;props0.run_id = true;props0.github_job_id = true;props0.run_attempt = true;props0.observed_at = true;props0.source = true;props0.availability = true;props0.text = true;props0.byte_count = true;props0.partial = true;props0.step_position = true;props0.reason_code = true;}if(data.job_id !== undefined){let data2 = data.job_id;const _errs8 = errors;if(errors === _errs8){if(typeof data2 === "string"){if(func1(data2) > 128){validate198.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate198.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate198.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate198.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs8 === errors;}else {var valid4 = true;}if(valid4){if(data.run_id !== undefined){let data3 = data.run_id;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func1(data3) > 128){validate198.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate198.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data3)){validate198.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate198.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs10 === errors;}else {var valid4 = true;}if(valid4){if(data.github_job_id !== undefined){let data4 = data.github_job_id;const _errs12 = errors;if(errors === _errs12){if(typeof data4 === "string"){if(func1(data4) > 128){validate198.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data4) < 1){validate198.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data4)){validate198.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate198.errors = [{instancePath:instancePath+"/github_job_id",schemaPath:"#/properties/github_job_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs12 === errors;}else {var valid4 = true;}if(valid4){if(data.run_attempt !== undefined){let data5 = data.run_attempt;const _errs14 = errors;const _errs15 = errors;const _errs16 = errors;let valid6 = false;const _errs17 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err3 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs17 === errors;valid6 = valid6 || _valid1;const _errs19 = errors;if(typeof data5 !== "bigint"){const err4 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs19 === errors;valid6 = valid6 || _valid1;if(!valid6){const err5 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate198.errors = vErrors;return false;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}var valid5 = _errs15 === errors;if(valid5){if(typeof data5 === "bigint"){if(data5 < 1){validate198.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs14){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 1 || isNaN(data5)){validate198.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid4 = _errs14 === errors;}else {var valid4 = true;}if(valid4){if(data.observed_at !== undefined){let data6 = data.observed_at;const _errs20 = errors;if(errors === _errs20){if(errors === _errs20){if(typeof data6 === "string"){if(!(formats0.validate(data6))){validate198.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate198.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid4 = _errs20 === errors;}else {var valid4 = true;}if(valid4){if(data.source !== undefined){let data7 = data.source;const _errs22 = errors;if(typeof data7 !== "string"){validate198.errors = [{instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data7 === "github_job_log") || (data7 === "github_step_log"))){validate198.errors = [{instancePath:instancePath+"/source",schemaPath:"#/properties/source/enum",keyword:"enum",params:{allowedValues: schema194.properties.source.enum},message:"must be equal to one of the allowed values"}];return false;}var valid4 = _errs22 === errors;}else {var valid4 = true;}if(valid4){if(data.availability !== undefined){let data8 = data.availability;const _errs24 = errors;if(typeof data8 !== "string"){validate198.errors = [{instancePath:instancePath+"/availability",schemaPath:"#/properties/availability/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((data8 === "available") || (data8 === "pending")) || (data8 === "unavailable")) || (data8 === "forbidden")) || (data8 === "removed"))){validate198.errors = [{instancePath:instancePath+"/availability",schemaPath:"#/properties/availability/enum",keyword:"enum",params:{allowedValues: schema194.properties.availability.enum},message:"must be equal to one of the allowed values"}];return false;}var valid4 = _errs24 === errors;}else {var valid4 = true;}if(valid4){if(data.text !== undefined){let data9 = data.text;const _errs26 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate198.errors = [{instancePath:instancePath+"/text",schemaPath:"#/properties/text/type",keyword:"type",params:{type: schema194.properties.text.type},message:"must be string,null"}];return false;}if(errors === _errs26){if(typeof data9 === "string"){if(func1(data9) > 1048576){validate198.errors = [{instancePath:instancePath+"/text",schemaPath:"#/properties/text/maxLength",keyword:"maxLength",params:{limit: 1048576},message:"must NOT have more than 1048576 characters"}];return false;}}}var valid4 = _errs26 === errors;}else {var valid4 = true;}if(valid4){if(data.byte_count !== undefined){let data10 = data.byte_count;const _errs28 = errors;const _errs29 = errors;const _errs30 = errors;let valid8 = false;const _errs31 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err6 = {instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/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 _valid2 = _errs31 === errors;valid8 = valid8 || _valid2;const _errs33 = errors;if(typeof data10 !== "bigint"){const err7 = {instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs33 === errors;valid8 = valid8 || _valid2;if(!valid8){const err8 = {instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate198.errors = vErrors;return false;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var valid7 = _errs29 === errors;if(valid7){if(typeof data10 === "bigint"){if(data10 < 0){validate198.errors = [{instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data10 > 1048576){validate198.errors = [{instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs28){if((typeof data10 == "number") && (isFinite(data10))){if(data10 > 1048576 || isNaN(data10)){validate198.errors = [{instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1048576},message:"must be <= 1048576"}];return false;}else {if(data10 < 0 || isNaN(data10)){validate198.errors = [{instancePath:instancePath+"/byte_count",schemaPath:"#/properties/byte_count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}}var valid4 = _errs28 === errors;}else {var valid4 = true;}if(valid4){if(data.partial !== undefined){const _errs34 = errors;if(typeof data.partial !== "boolean"){validate198.errors = [{instancePath:instancePath+"/partial",schemaPath:"#/properties/partial/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid4 = _errs34 === errors;}else {var valid4 = true;}if(valid4){if(data.step_position !== undefined){let data12 = data.step_position;const _errs36 = errors;const _errs37 = errors;const _errs38 = errors;let valid10 = false;const _errs39 = errors;if(!(((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12))) && (isFinite(data12)))){const err9 = {instancePath:instancePath+"/step_position",schemaPath:"#/properties/step_position/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs39 === errors;valid10 = valid10 || _valid3;const _errs41 = errors;if(typeof data12 !== "bigint"){const err10 = {instancePath:instancePath+"/step_position",schemaPath:"#/properties/step_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 = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs41 === errors;valid10 = valid10 || _valid3;if(!valid10){const err11 = {instancePath:instancePath+"/step_position",schemaPath:"#/properties/step_position/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate198.errors = vErrors;return false;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}var valid9 = _errs37 === errors;if(valid9){if(typeof data12 === "bigint"){if(data12 < 0){validate198.errors = [{instancePath:instancePath+"/step_position",schemaPath:"#/properties/step_position/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs36){if((typeof data12 == "number") && (isFinite(data12))){if(data12 < 0 || isNaN(data12)){validate198.errors = [{instancePath:instancePath+"/step_position",schemaPath:"#/properties/step_position/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid4 = _errs36 === errors;}else {var valid4 = true;}if(valid4){if(data.reason_code !== undefined){let data13 = data.reason_code;const _errs42 = errors;if(errors === _errs42){if(typeof data13 === "string"){if(func1(data13) > 64){validate198.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data13) < 1){validate198.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern70.test(data13)){validate198.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/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 {validate198.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs42 === errors;}else {var valid4 = true;}}}}}}}}}}}}}}else {validate198.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate198.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate198.evaluated = {"dynamicProps":true,"dynamicItems":false};exports.validate19 = validate199;const schema196 = {"type":"object","required":["events","next_cursor"],"properties":{"events":{"type":"array","maxItems":1000,"items":{"$ref":"#/components/schemas/ActionsJobStepEvent"}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}}};const schema197 = {"type":"object","required":["event_id","ts","step","outcome","reason_code","duration_ms","delivery_id","workspace_id","installation_id","repository_id","run_id","run_attempt","job_id","demand_id","route_id","sandbox_id","mutation_id","request_id","trace_id"],"properties":{"event_id":{"type":"string","format":"uuid"},"ts":{"type":"string","format":"date-time"},"step":{"type":"string","enum":["webhook_received","admission","registration","image_verification","controller_pass","sandbox_create","launch","assignment","result","cleanup"]},"outcome":{"type":"string","enum":["ok","refused","ignored","deferred","unknown","error"]},"reason_code":{"type":["string","null"],"maxLength":64,"pattern":"^[a-z][a-z0-9_]{0,63}$"},"duration_ms":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"delivery_id":{"type":["string","null"]},"request_id":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"trace_id":{"type":["string","null"],"minLength":32,"maxLength":32,"pattern":"^[0-9a-f]{32}$"},"workspace_id":{"type":"string","minLength":1},"installation_id":{"type":["string","null"]},"repository_id":{"type":["string","null"]},"run_id":{"type":["string","null"]},"run_attempt":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"job_id":{"type":["string","null"]},"demand_id":{"type":["string","null"]},"route_id":{"type":["string","null"]},"sandbox_id":{"type":["string","null"]},"mutation_id":{"type":["string","null"]}}};const pattern153 = new RegExp("^[0-9a-f]{32}$", "u");function validate200(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate200.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.event_id === undefined) && (missing0 = "event_id")) || ((data.ts === undefined) && (missing0 = "ts"))) || ((data.step === undefined) && (missing0 = "step"))) || ((data.outcome === undefined) && (missing0 = "outcome"))) || ((data.reason_code === undefined) && (missing0 = "reason_code"))) || ((data.duration_ms === undefined) && (missing0 = "duration_ms"))) || ((data.delivery_id === undefined) && (missing0 = "delivery_id"))) || ((data.workspace_id === undefined) && (missing0 = "workspace_id"))) || ((data.installation_id === undefined) && (missing0 = "installation_id"))) || ((data.repository_id === undefined) && (missing0 = "repository_id"))) || ((data.run_id === undefined) && (missing0 = "run_id"))) || ((data.run_attempt === undefined) && (missing0 = "run_attempt"))) || ((data.job_id === undefined) && (missing0 = "job_id"))) || ((data.demand_id === undefined) && (missing0 = "demand_id"))) || ((data.route_id === undefined) && (missing0 = "route_id"))) || ((data.sandbox_id === undefined) && (missing0 = "sandbox_id"))) || ((data.mutation_id === undefined) && (missing0 = "mutation_id"))) || ((data.request_id === undefined) && (missing0 = "request_id"))) || ((data.trace_id === undefined) && (missing0 = "trace_id"))){validate200.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.event_id !== undefined){const _errs1 = errors;if(errors === _errs1){if(errors === _errs1){if(!(typeof data.event_id === "string")){validate200.errors = [{instancePath:instancePath+"/event_id",schemaPath:"#/properties/event_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.ts !== undefined){let data1 = data.ts;const _errs3 = errors;if(errors === _errs3){if(errors === _errs3){if(typeof data1 === "string"){if(!(formats0.validate(data1))){validate200.errors = [{instancePath:instancePath+"/ts",schemaPath:"#/properties/ts/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate200.errors = [{instancePath:instancePath+"/ts",schemaPath:"#/properties/ts/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.step !== undefined){let data2 = data.step;const _errs5 = errors;if(typeof data2 !== "string"){validate200.errors = [{instancePath:instancePath+"/step",schemaPath:"#/properties/step/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((((((data2 === "webhook_received") || (data2 === "admission")) || (data2 === "registration")) || (data2 === "image_verification")) || (data2 === "controller_pass")) || (data2 === "sandbox_create")) || (data2 === "launch")) || (data2 === "assignment")) || (data2 === "result")) || (data2 === "cleanup"))){validate200.errors = [{instancePath:instancePath+"/step",schemaPath:"#/properties/step/enum",keyword:"enum",params:{allowedValues: schema197.properties.step.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.outcome !== undefined){let data3 = data.outcome;const _errs7 = errors;if(typeof data3 !== "string"){validate200.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((((data3 === "ok") || (data3 === "refused")) || (data3 === "ignored")) || (data3 === "deferred")) || (data3 === "unknown")) || (data3 === "error"))){validate200.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/enum",keyword:"enum",params:{allowedValues: schema197.properties.outcome.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.reason_code !== undefined){let data4 = data.reason_code;const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate200.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: schema197.properties.reason_code.type},message:"must be string,null"}];return false;}if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) > 64){validate200.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(!pattern70.test(data4)){validate200.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/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;}}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.duration_ms !== undefined){let data5 = data.duration_ms;const _errs11 = errors;const _errs12 = errors;const _errs13 = errors;let valid2 = false;const _errs14 = errors;if((!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) && (data5 !== null)){const err0 = {instancePath:instancePath+"/duration_ms",schemaPath:"#/properties/duration_ms/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema197.properties.duration_ms.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs14 === errors;valid2 = valid2 || _valid0;const _errs16 = errors;if(typeof data5 !== "bigint"){const err1 = {instancePath:instancePath+"/duration_ms",schemaPath:"#/properties/duration_ms/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 = _errs16 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/duration_ms",schemaPath:"#/properties/duration_ms/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate200.errors = vErrors;return false;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}var valid1 = _errs12 === errors;if(valid1){if(typeof data5 === "bigint"){if(data5 < 0){validate200.errors = [{instancePath:instancePath+"/duration_ms",schemaPath:"#/properties/duration_ms/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs11){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 0 || isNaN(data5)){validate200.errors = [{instancePath:instancePath+"/duration_ms",schemaPath:"#/properties/duration_ms/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.delivery_id !== undefined){let data6 = data.delivery_id;const _errs17 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate200.errors = [{instancePath:instancePath+"/delivery_id",schemaPath:"#/properties/delivery_id/type",keyword:"type",params:{type: schema197.properties.delivery_id.type},message:"must be string,null"}];return false;}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.request_id !== undefined){let data7 = data.request_id;const _errs19 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate200.errors = [{instancePath:instancePath+"/request_id",schemaPath:"#/properties/request_id/type",keyword:"type",params:{type: schema197.properties.request_id.type},message:"must be string,null"}];return false;}if(errors === _errs19){if(typeof data7 === "string"){if(func1(data7) > 128){validate200.errors = [{instancePath:instancePath+"/request_id",schemaPath:"#/properties/request_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data7) < 1){validate200.errors = [{instancePath:instancePath+"/request_id",schemaPath:"#/properties/request_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data7)){validate200.errors = [{instancePath:instancePath+"/request_id",schemaPath:"#/properties/request_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.trace_id !== undefined){let data8 = data.trace_id;const _errs21 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate200.errors = [{instancePath:instancePath+"/trace_id",schemaPath:"#/properties/trace_id/type",keyword:"type",params:{type: schema197.properties.trace_id.type},message:"must be string,null"}];return false;}if(errors === _errs21){if(typeof data8 === "string"){if(func1(data8) > 32){validate200.errors = [{instancePath:instancePath+"/trace_id",schemaPath:"#/properties/trace_id/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"}];return false;}else {if(func1(data8) < 32){validate200.errors = [{instancePath:instancePath+"/trace_id",schemaPath:"#/properties/trace_id/minLength",keyword:"minLength",params:{limit: 32},message:"must NOT have fewer than 32 characters"}];return false;}else {if(!pattern153.test(data8)){validate200.errors = [{instancePath:instancePath+"/trace_id",schemaPath:"#/properties/trace_id/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{32}$"},message:"must match pattern \""+"^[0-9a-f]{32}$"+"\""}];return false;}}}}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.workspace_id !== undefined){let data9 = data.workspace_id;const _errs23 = errors;if(errors === _errs23){if(typeof data9 === "string"){if(func1(data9) < 1){validate200.errors = [{instancePath:instancePath+"/workspace_id",schemaPath:"#/properties/workspace_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate200.errors = [{instancePath:instancePath+"/workspace_id",schemaPath:"#/properties/workspace_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.installation_id !== undefined){let data10 = data.installation_id;const _errs25 = errors;if((typeof data10 !== "string") && (data10 !== null)){validate200.errors = [{instancePath:instancePath+"/installation_id",schemaPath:"#/properties/installation_id/type",keyword:"type",params:{type: schema197.properties.installation_id.type},message:"must be string,null"}];return false;}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.repository_id !== undefined){let data11 = data.repository_id;const _errs27 = errors;if((typeof data11 !== "string") && (data11 !== null)){validate200.errors = [{instancePath:instancePath+"/repository_id",schemaPath:"#/properties/repository_id/type",keyword:"type",params:{type: schema197.properties.repository_id.type},message:"must be string,null"}];return false;}var valid0 = _errs27 === errors;}else {var valid0 = true;}if(valid0){if(data.run_id !== undefined){let data12 = data.run_id;const _errs29 = errors;if((typeof data12 !== "string") && (data12 !== null)){validate200.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: schema197.properties.run_id.type},message:"must be string,null"}];return false;}var valid0 = _errs29 === errors;}else {var valid0 = true;}if(valid0){if(data.run_attempt !== undefined){let data13 = data.run_attempt;const _errs31 = errors;const _errs32 = errors;const _errs33 = errors;let valid4 = false;const _errs34 = errors;if((!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))) && (data13 !== null)){const err3 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema197.properties.run_attempt.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs34 === errors;valid4 = valid4 || _valid1;const _errs36 = errors;if(typeof data13 !== "bigint"){const err4 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/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 = _errs36 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate200.errors = vErrors;return false;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}var valid3 = _errs32 === errors;if(valid3){if(typeof data13 === "bigint"){if(data13 < 0){validate200.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs31){if((typeof data13 == "number") && (isFinite(data13))){if(data13 < 0 || isNaN(data13)){validate200.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs31 === errors;}else {var valid0 = true;}if(valid0){if(data.job_id !== undefined){let data14 = data.job_id;const _errs37 = errors;if((typeof data14 !== "string") && (data14 !== null)){validate200.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/type",keyword:"type",params:{type: schema197.properties.job_id.type},message:"must be string,null"}];return false;}var valid0 = _errs37 === errors;}else {var valid0 = true;}if(valid0){if(data.demand_id !== undefined){let data15 = data.demand_id;const _errs39 = errors;if((typeof data15 !== "string") && (data15 !== null)){validate200.errors = [{instancePath:instancePath+"/demand_id",schemaPath:"#/properties/demand_id/type",keyword:"type",params:{type: schema197.properties.demand_id.type},message:"must be string,null"}];return false;}var valid0 = _errs39 === errors;}else {var valid0 = true;}if(valid0){if(data.route_id !== undefined){let data16 = data.route_id;const _errs41 = errors;if((typeof data16 !== "string") && (data16 !== null)){validate200.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/type",keyword:"type",params:{type: schema197.properties.route_id.type},message:"must be string,null"}];return false;}var valid0 = _errs41 === errors;}else {var valid0 = true;}if(valid0){if(data.sandbox_id !== undefined){let data17 = data.sandbox_id;const _errs43 = errors;if((typeof data17 !== "string") && (data17 !== null)){validate200.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: schema197.properties.sandbox_id.type},message:"must be string,null"}];return false;}var valid0 = _errs43 === errors;}else {var valid0 = true;}if(valid0){if(data.mutation_id !== undefined){let data18 = data.mutation_id;const _errs45 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate200.errors = [{instancePath:instancePath+"/mutation_id",schemaPath:"#/properties/mutation_id/type",keyword:"type",params:{type: schema197.properties.mutation_id.type},message:"must be string,null"}];return false;}var valid0 = _errs45 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}else {validate200.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate200.errors = vErrors;return errors === 0;}validate200.evaluated = {"props":{"event_id":true,"ts":true,"step":true,"outcome":true,"reason_code":true,"duration_ms":true,"delivery_id":true,"request_id":true,"trace_id":true,"workspace_id":true,"installation_id":true,"repository_id":true,"run_id":true,"run_attempt":true,"job_id":true,"demand_id":true,"route_id":true,"sandbox_id":true,"mutation_id":true},"dynamicProps":false,"dynamicItems":false};function validate199(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate199.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.events === undefined) && (missing0 = "events")) || ((data.next_cursor === undefined) && (missing0 = "next_cursor"))){validate199.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.events !== undefined){let data0 = data.events;const _errs1 = errors;if(errors === _errs1){if(Array.isArray(data0)){if(data0.length > 1000){validate199.errors = [{instancePath:instancePath+"/events",schemaPath:"#/properties/events/maxItems",keyword:"maxItems",params:{limit: 1000},message:"must NOT have more than 1000 items"}];return false;}else {var valid1 = true;const len0 = data0.length;for(let i0=0; i0<len0; i0++){const _errs3 = errors;if(!(validate200(data0[i0], {instancePath:instancePath+"/events/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate200.errors : vErrors.concat(validate200.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}}else {validate199.errors = [{instancePath:instancePath+"/events",schemaPath:"#/properties/events/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)){validate199.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema196.properties.next_cursor.type},message:"must be string,null"}];return false;}if(errors === _errs4){if(typeof data2 === "string"){if(func1(data2) > 128){validate199.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate199.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate199.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}else {validate199.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate199.errors = vErrors;return errors === 0;}validate199.evaluated = {"props":{"events":true,"next_cursor":true},"dynamicProps":false,"dynamicItems":false};exports.validate20 = validate202;function validate202(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate202.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.run_id === undefined) && (missing0 = "run_id"))) || ((data.job_id === undefined) && (missing0 = "job_id"))) || ((data.requested_job_id === undefined) && (missing0 = "requested_job_id"))) || ((data.assigned_job_id === undefined) && (missing0 = "assigned_job_id"))) || ((data.provider === undefined) && (missing0 = "provider"))) || ((data.sandbox_id === undefined) && (missing0 = "sandbox_id"))) || ((data.state === undefined) && (missing0 = "state"))) || ((data.result === undefined) && (missing0 = "result"))) || ((data.cleanup_state === undefined) && (missing0 = "cleanup_state"))) || ((data.started_at === undefined) && (missing0 = "started_at"))) || ((data.ended_at === undefined) && (missing0 = "ended_at"))) || ((data.billing === undefined) && (missing0 = "billing"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.updated_at === undefined) && (missing0 = "updated_at"))){validate202.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){let data0 = data.id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate202.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate202.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate202.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate202.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.run_id !== undefined){let data1 = data.run_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate202.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate202.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate202.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate202.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.job_id !== undefined){let data2 = data.job_id;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate202.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data2) < 1){validate202.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data2)){validate202.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate202.errors = [{instancePath:instancePath+"/job_id",schemaPath:"#/properties/job_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.requested_job_id !== undefined){let data3 = data.requested_job_id;const _errs7 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate202.errors = [{instancePath:instancePath+"/requested_job_id",schemaPath:"#/properties/requested_job_id/type",keyword:"type",params:{type: schema181.properties.requested_job_id.type},message:"must be string,null"}];return false;}if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 128){validate202.errors = [{instancePath:instancePath+"/requested_job_id",schemaPath:"#/properties/requested_job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data3) < 1){validate202.errors = [{instancePath:instancePath+"/requested_job_id",schemaPath:"#/properties/requested_job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data3)){validate202.errors = [{instancePath:instancePath+"/requested_job_id",schemaPath:"#/properties/requested_job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.assigned_job_id !== undefined){let data4 = data.assigned_job_id;const _errs9 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate202.errors = [{instancePath:instancePath+"/assigned_job_id",schemaPath:"#/properties/assigned_job_id/type",keyword:"type",params:{type: schema181.properties.assigned_job_id.type},message:"must be string,null"}];return false;}if(errors === _errs9){if(typeof data4 === "string"){if(func1(data4) > 128){validate202.errors = [{instancePath:instancePath+"/assigned_job_id",schemaPath:"#/properties/assigned_job_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data4) < 1){validate202.errors = [{instancePath:instancePath+"/assigned_job_id",schemaPath:"#/properties/assigned_job_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data4)){validate202.errors = [{instancePath:instancePath+"/assigned_job_id",schemaPath:"#/properties/assigned_job_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.route_id !== undefined){let data5 = data.route_id;const _errs11 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate202.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/type",keyword:"type",params:{type: schema181.properties.route_id.type},message:"must be string,null"}];return false;}if(errors === _errs11){if(typeof data5 === "string"){if(func1(data5) > 128){validate202.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data5) < 1){validate202.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data5)){validate202.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.provider !== undefined){let data6 = data.provider;const _errs13 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate202.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: schema181.properties.provider.type},message:"must be string,null"}];return false;}if(errors === _errs13){if(typeof data6 === "string"){if(func1(data6) > 64){validate202.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data6) < 1){validate202.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern42.test(data6)){validate202.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-z0-9-]*$"},message:"must match pattern \""+"^[a-z][a-z0-9-]*$"+"\""}];return false;}}}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.sandbox_id !== undefined){let data7 = data.sandbox_id;const _errs15 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate202.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: schema181.properties.sandbox_id.type},message:"must be string,null"}];return false;}if(errors === _errs15){if(typeof data7 === "string"){if(func1(data7) > 128){validate202.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data7) < 1){validate202.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data7)){validate202.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.sandbox_link !== undefined){let data8 = data.sandbox_link;const _errs17 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate202.errors = [{instancePath:instancePath+"/sandbox_link",schemaPath:"#/properties/sandbox_link/type",keyword:"type",params:{type: schema181.properties.sandbox_link.type},message:"must be string,null"}];return false;}if(errors === _errs17){if(typeof data8 === "string"){if(func1(data8) > 2048){validate202.errors = [{instancePath:instancePath+"/sandbox_link",schemaPath:"#/properties/sandbox_link/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}else {if(func1(data8) < 1){validate202.errors = [{instancePath:instancePath+"/sandbox_link",schemaPath:"#/properties/sandbox_link/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern129.test(data8)){validate202.errors = [{instancePath:instancePath+"/sandbox_link",schemaPath:"#/properties/sandbox_link/pattern",keyword:"pattern",params:{pattern: "^/(?!/)[^\\u0000]*$"},message:"must match pattern \""+"^/(?!/)[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.region !== undefined){let data9 = data.region;const _errs19 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate202.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/type",keyword:"type",params:{type: schema181.properties.region.type},message:"must be string,null"}];return false;}if(errors === _errs19){if(typeof data9 === "string"){if(func1(data9) > 128){validate202.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data9) < 1){validate202.errors = [{instancePath:instancePath+"/region",schemaPath:"#/properties/region/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.size !== undefined){let data10 = data.size;const _errs21 = errors;const _errs22 = errors;let valid1 = false;const _errs23 = errors;if(!(validate83(data10, {instancePath:instancePath+"/size",parentData:data,parentDataProperty:"size",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);errors = vErrors.length;}var _valid0 = _errs23 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.cpu = true;props0.memory_mib = true;}const _errs24 = errors;if(data10 !== null){const err0 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs24 === errors;valid1 = valid1 || _valid0;if(!valid1){const err1 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;validate202.errors = vErrors;return false;}else {errors = _errs22;if(vErrors !== null){if(_errs22){vErrors.length = _errs22;}else {vErrors = null;}}}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.supply !== undefined){let data11 = data.supply;const _errs26 = errors;if((typeof data11 !== "string") && (data11 !== null)){validate202.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/type",keyword:"type",params:{type: schema181.properties.supply.type},message:"must be string,null"}];return false;}if(!(((data11 === "byok") || (data11 === "managed")) || (data11 === null))){validate202.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/enum",keyword:"enum",params:{allowedValues: schema181.properties.supply.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs26 === errors;}else {var valid0 = true;}if(valid0){if(data.sources !== undefined){let data12 = data.sources;const _errs28 = errors;if(errors === _errs28){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.region !== undefined){let data13 = data12.region;const _errs32 = errors;if(errors === _errs32){if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.kind !== undefined){const _errs35 = errors;if(typeof data13.kind !== "string"){validate202.errors = [{instancePath:instancePath+"/sources/region/kind",schemaPath:"#/components/schemas/ActionsRegionSource/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs35 === errors;}else {var valid4 = true;}if(valid4){if(data13.url !== undefined){let data15 = data13.url;const _errs37 = errors;if(errors === _errs37){if(errors === _errs37){if(typeof data15 === "string"){if(func1(data15) > 2048){validate202.errors = [{instancePath:instancePath+"/sources/region/url",schemaPath:"#/components/schemas/ActionsRegionSource/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"}];return false;}}else {validate202.errors = [{instancePath:instancePath+"/sources/region/url",schemaPath:"#/components/schemas/ActionsRegionSource/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid4 = _errs37 === errors;}else {var valid4 = true;}if(valid4){if(data13.read_at !== undefined){const _errs39 = errors;if(errors === _errs39){if(errors === _errs39){if(!(typeof data13.read_at === "string")){validate202.errors = [{instancePath:instancePath+"/sources/region/read_at",schemaPath:"#/components/schemas/ActionsRegionSource/properties/read_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid4 = _errs39 === errors;}else {var valid4 = true;}}}}else {validate202.errors = [{instancePath:instancePath+"/sources/region",schemaPath:"#/components/schemas/ActionsRegionSource/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}}}else {validate202.errors = [{instancePath:instancePath+"/sources",schemaPath:"#/properties/sources/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs28 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){let data17 = data.state;const _errs41 = errors;if(typeof data17 !== "string"){validate202.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((((((data17 === "queued") || (data17 === "preparing")) || (data17 === "starting")) || (data17 === "running")) || (data17 === "stopping")) || (data17 === "ended")) || (data17 === "attention_required"))){validate202.errors = [{instancePath:instancePath+"/state",schemaPath:"#/components/schemas/ActionsRunState/enum",keyword:"enum",params:{allowedValues: schema114.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs41 === errors;}else {var valid0 = true;}if(valid0){if(data.result !== undefined){let data18 = data.result;const _errs44 = errors;if((typeof data18 !== "string") && (data18 !== null)){validate202.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/type",keyword:"type",params:{type: schema115.type},message:"must be string,null"}];return false;}if(!(((((((((data18 === "success") || (data18 === "workload_failure")) || (data18 === "cancelled")) || (data18 === "timed_out")) || (data18 === "infrastructure_failure")) || (data18 === "skipped")) || (data18 === "neutral")) || (data18 === "unknown")) || (data18 === null))){validate202.errors = [{instancePath:instancePath+"/result",schemaPath:"#/components/schemas/ActionsWorkResult/enum",keyword:"enum",params:{allowedValues: schema115.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs44 === errors;}else {var valid0 = true;}if(valid0){if(data.cleanup_state !== undefined){let data19 = data.cleanup_state;const _errs47 = errors;if(typeof data19 !== "string"){validate202.errors = [{instancePath:instancePath+"/cleanup_state",schemaPath:"#/components/schemas/ActionsCleanupState/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data19 === "pending") || (data19 === "confirmed")) || (data19 === "unknown"))){validate202.errors = [{instancePath:instancePath+"/cleanup_state",schemaPath:"#/components/schemas/ActionsCleanupState/enum",keyword:"enum",params:{allowedValues: schema185.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs47 === errors;}else {var valid0 = true;}if(valid0){if(data.started_at !== undefined){let data20 = data.started_at;const _errs50 = errors;if((typeof data20 !== "string") && (data20 !== null)){validate202.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/type",keyword:"type",params:{type: schema181.properties.started_at.type},message:"must be string,null"}];return false;}if(errors === _errs50){if(errors === _errs50){if(typeof data20 === "string"){if(!(formats0.validate(data20))){validate202.errors = [{instancePath:instancePath+"/started_at",schemaPath:"#/properties/started_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs50 === errors;}else {var valid0 = true;}if(valid0){if(data.ended_at !== undefined){let data21 = data.ended_at;const _errs52 = errors;if((typeof data21 !== "string") && (data21 !== null)){validate202.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/type",keyword:"type",params:{type: schema181.properties.ended_at.type},message:"must be string,null"}];return false;}if(errors === _errs52){if(errors === _errs52){if(typeof data21 === "string"){if(!(formats0.validate(data21))){validate202.errors = [{instancePath:instancePath+"/ended_at",schemaPath:"#/properties/ended_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs52 === errors;}else {var valid0 = true;}if(valid0){if(data.billing !== undefined){const _errs54 = errors;if(!(validate116(data.billing, {instancePath:instancePath+"/billing",parentData:data,parentDataProperty:"billing",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate116.errors : vErrors.concat(validate116.errors);errors = vErrors.length;}var valid0 = _errs54 === errors;}else {var valid0 = true;}if(valid0){if(data.creation !== undefined){const _errs55 = errors;if(!(validate170(data.creation, {instancePath:instancePath+"/creation",parentData:data,parentDataProperty:"creation",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate170.errors : vErrors.concat(validate170.errors);errors = vErrors.length;}var valid0 = _errs55 === errors;}else {var valid0 = true;}if(valid0){if(data.lifetime_seconds !== undefined){let data24 = data.lifetime_seconds;const _errs56 = errors;const _errs57 = errors;const _errs58 = errors;let valid9 = false;const _errs59 = errors;if((!(((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24))) && (isFinite(data24)))) && (data24 !== null)){const err2 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema181.properties.lifetime_seconds.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var _valid1 = _errs59 === errors;valid9 = valid9 || _valid1;const _errs61 = errors;if(typeof data24 !== "bigint"){const err3 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs61 === errors;valid9 = valid9 || _valid1;if(!valid9){const err4 = {instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate202.errors = vErrors;return false;}else {errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}}var valid8 = _errs57 === errors;if(valid8){if(typeof data24 === "bigint"){if(data24 < 1){validate202.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs56){if((typeof data24 == "number") && (isFinite(data24))){if(data24 < 1 || isNaN(data24)){validate202.errors = [{instancePath:instancePath+"/lifetime_seconds",schemaPath:"#/properties/lifetime_seconds/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs56 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data25 = data.created_at;const _errs62 = errors;if(errors === _errs62){if(errors === _errs62){if(typeof data25 === "string"){if(!(formats0.validate(data25))){validate202.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate202.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs62 === errors;}else {var valid0 = true;}if(valid0){if(data.updated_at !== undefined){let data26 = data.updated_at;const _errs64 = errors;if(errors === _errs64){if(errors === _errs64){if(typeof data26 === "string"){if(!(formats0.validate(data26))){validate202.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate202.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs64 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}}}}}}}}}else {validate202.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate202.errors = vErrors;return errors === 0;}validate202.evaluated = {"props":{"id":true,"run_id":true,"job_id":true,"requested_job_id":true,"assigned_job_id":true,"route_id":true,"provider":true,"sandbox_id":true,"sandbox_link":true,"region":true,"size":true,"supply":true,"sources":true,"state":true,"result":true,"cleanup_state":true,"started_at":true,"ended_at":true,"billing":true,"creation":true,"lifetime_seconds":true,"created_at":true,"updated_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate21 = validate206;const schema203 = {"type":"object","required":["operation_id","run_id","action","scope","outcome","github_run_id","run_attempt"],"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"run_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"action":{"type":"string","enum":["cancel","rerun","rerun_failed_jobs"]},"scope":{"type":"string","const":"entire_workflow"},"outcome":{"type":"string","enum":["accepted","unknown"]},"github_run_id":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"run_attempt":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}};function validate206(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate206.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.operation_id === undefined) && (missing0 = "operation_id")) || ((data.run_id === undefined) && (missing0 = "run_id"))) || ((data.action === undefined) && (missing0 = "action"))) || ((data.scope === undefined) && (missing0 = "scope"))) || ((data.outcome === undefined) && (missing0 = "outcome"))) || ((data.github_run_id === undefined) && (missing0 = "github_run_id"))) || ((data.run_attempt === undefined) && (missing0 = "run_attempt"))){validate206.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.operation_id !== undefined){let data0 = data.operation_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate206.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate206.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate206.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate206.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_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.run_id !== undefined){let data1 = data.run_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate206.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate206.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate206.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate206.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.action !== undefined){let data2 = data.action;const _errs5 = errors;if(typeof data2 !== "string"){validate206.errors = [{instancePath:instancePath+"/action",schemaPath:"#/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data2 === "cancel") || (data2 === "rerun")) || (data2 === "rerun_failed_jobs"))){validate206.errors = [{instancePath:instancePath+"/action",schemaPath:"#/properties/action/enum",keyword:"enum",params:{allowedValues: schema203.properties.action.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.scope !== undefined){let data3 = data.scope;const _errs7 = errors;if(typeof data3 !== "string"){validate206.errors = [{instancePath:instancePath+"/scope",schemaPath:"#/properties/scope/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("entire_workflow" !== data3){validate206.errors = [{instancePath:instancePath+"/scope",schemaPath:"#/properties/scope/const",keyword:"const",params:{allowedValue: "entire_workflow"},message:"must be equal to constant"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.outcome !== undefined){let data4 = data.outcome;const _errs9 = errors;if(typeof data4 !== "string"){validate206.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "accepted") || (data4 === "unknown"))){validate206.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/enum",keyword:"enum",params:{allowedValues: schema203.properties.outcome.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.github_run_id !== undefined){let data5 = data.github_run_id;const _errs11 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate206.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/type",keyword:"type",params:{type: schema203.properties.github_run_id.type},message:"must be string,null"}];return false;}if(errors === _errs11){if(typeof data5 === "string"){if(func1(data5) > 128){validate206.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data5) < 1){validate206.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data5)){validate206.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.run_attempt !== undefined){let data6 = data.run_attempt;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid2 = false;const _errs16 = errors;if((!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) && (data6 !== null)){const err0 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema203.properties.run_attempt.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs16 === errors;valid2 = valid2 || _valid0;const _errs18 = errors;if(typeof data6 !== "bigint"){const err1 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/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 = _errs18 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate206.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid1 = _errs14 === errors;if(valid1){if(typeof data6 === "bigint"){if(data6 < 1){validate206.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){validate206.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}}}}}}}}}else {validate206.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate206.errors = vErrors;return errors === 0;}validate206.evaluated = {"props":{"operation_id":true,"run_id":true,"action":true,"scope":true,"outcome":true,"github_run_id":true,"run_attempt":true},"dynamicProps":false,"dynamicItems":false};exports.validate22 = validate207;function validate207(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate207.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.operation_id === undefined) && (missing0 = "operation_id")) || ((data.run_id === undefined) && (missing0 = "run_id"))) || ((data.action === undefined) && (missing0 = "action"))) || ((data.scope === undefined) && (missing0 = "scope"))) || ((data.outcome === undefined) && (missing0 = "outcome"))) || ((data.github_run_id === undefined) && (missing0 = "github_run_id"))) || ((data.run_attempt === undefined) && (missing0 = "run_attempt"))){validate207.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.operation_id !== undefined){let data0 = data.operation_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate207.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate207.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate207.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate207.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_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.run_id !== undefined){let data1 = data.run_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate207.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate207.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate207.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate207.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.action !== undefined){let data2 = data.action;const _errs5 = errors;if(typeof data2 !== "string"){validate207.errors = [{instancePath:instancePath+"/action",schemaPath:"#/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data2 === "cancel") || (data2 === "rerun")) || (data2 === "rerun_failed_jobs"))){validate207.errors = [{instancePath:instancePath+"/action",schemaPath:"#/properties/action/enum",keyword:"enum",params:{allowedValues: schema203.properties.action.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.scope !== undefined){let data3 = data.scope;const _errs7 = errors;if(typeof data3 !== "string"){validate207.errors = [{instancePath:instancePath+"/scope",schemaPath:"#/properties/scope/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("entire_workflow" !== data3){validate207.errors = [{instancePath:instancePath+"/scope",schemaPath:"#/properties/scope/const",keyword:"const",params:{allowedValue: "entire_workflow"},message:"must be equal to constant"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.outcome !== undefined){let data4 = data.outcome;const _errs9 = errors;if(typeof data4 !== "string"){validate207.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "accepted") || (data4 === "unknown"))){validate207.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/enum",keyword:"enum",params:{allowedValues: schema203.properties.outcome.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.github_run_id !== undefined){let data5 = data.github_run_id;const _errs11 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate207.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/type",keyword:"type",params:{type: schema203.properties.github_run_id.type},message:"must be string,null"}];return false;}if(errors === _errs11){if(typeof data5 === "string"){if(func1(data5) > 128){validate207.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data5) < 1){validate207.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data5)){validate207.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.run_attempt !== undefined){let data6 = data.run_attempt;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid2 = false;const _errs16 = errors;if((!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) && (data6 !== null)){const err0 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema203.properties.run_attempt.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs16 === errors;valid2 = valid2 || _valid0;const _errs18 = errors;if(typeof data6 !== "bigint"){const err1 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/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 = _errs18 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate207.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid1 = _errs14 === errors;if(valid1){if(typeof data6 === "bigint"){if(data6 < 1){validate207.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){validate207.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}}}}}}}}}else {validate207.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate207.errors = vErrors;return errors === 0;}validate207.evaluated = {"props":{"operation_id":true,"run_id":true,"action":true,"scope":true,"outcome":true,"github_run_id":true,"run_attempt":true},"dynamicProps":false,"dynamicItems":false};exports.validate23 = validate208;function validate208(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate208.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.operation_id === undefined) && (missing0 = "operation_id")) || ((data.run_id === undefined) && (missing0 = "run_id"))) || ((data.action === undefined) && (missing0 = "action"))) || ((data.scope === undefined) && (missing0 = "scope"))) || ((data.outcome === undefined) && (missing0 = "outcome"))) || ((data.github_run_id === undefined) && (missing0 = "github_run_id"))) || ((data.run_attempt === undefined) && (missing0 = "run_attempt"))){validate208.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.operation_id !== undefined){let data0 = data.operation_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate208.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate208.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data0)){validate208.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate208.errors = [{instancePath:instancePath+"/operation_id",schemaPath:"#/properties/operation_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.run_id !== undefined){let data1 = data.run_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate208.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate208.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate208.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate208.errors = [{instancePath:instancePath+"/run_id",schemaPath:"#/properties/run_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.action !== undefined){let data2 = data.action;const _errs5 = errors;if(typeof data2 !== "string"){validate208.errors = [{instancePath:instancePath+"/action",schemaPath:"#/properties/action/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data2 === "cancel") || (data2 === "rerun")) || (data2 === "rerun_failed_jobs"))){validate208.errors = [{instancePath:instancePath+"/action",schemaPath:"#/properties/action/enum",keyword:"enum",params:{allowedValues: schema203.properties.action.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.scope !== undefined){let data3 = data.scope;const _errs7 = errors;if(typeof data3 !== "string"){validate208.errors = [{instancePath:instancePath+"/scope",schemaPath:"#/properties/scope/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("entire_workflow" !== data3){validate208.errors = [{instancePath:instancePath+"/scope",schemaPath:"#/properties/scope/const",keyword:"const",params:{allowedValue: "entire_workflow"},message:"must be equal to constant"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.outcome !== undefined){let data4 = data.outcome;const _errs9 = errors;if(typeof data4 !== "string"){validate208.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data4 === "accepted") || (data4 === "unknown"))){validate208.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/enum",keyword:"enum",params:{allowedValues: schema203.properties.outcome.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.github_run_id !== undefined){let data5 = data.github_run_id;const _errs11 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate208.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/type",keyword:"type",params:{type: schema203.properties.github_run_id.type},message:"must be string,null"}];return false;}if(errors === _errs11){if(typeof data5 === "string"){if(func1(data5) > 128){validate208.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data5) < 1){validate208.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data5)){validate208.errors = [{instancePath:instancePath+"/github_run_id",schemaPath:"#/properties/github_run_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.run_attempt !== undefined){let data6 = data.run_attempt;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid2 = false;const _errs16 = errors;if((!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) && (data6 !== null)){const err0 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema203.properties.run_attempt.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs16 === errors;valid2 = valid2 || _valid0;const _errs18 = errors;if(typeof data6 !== "bigint"){const err1 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/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 = _errs18 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate208.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid1 = _errs14 === errors;if(valid1){if(typeof data6 === "bigint"){if(data6 < 1){validate208.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 1 || isNaN(data6)){validate208.errors = [{instancePath:instancePath+"/run_attempt",schemaPath:"#/properties/run_attempt/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}}}}}}}}}else {validate208.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate208.errors = vErrors;return errors === 0;}validate208.evaluated = {"props":{"operation_id":true,"run_id":true,"action":true,"scope":true,"outcome":true,"github_run_id":true,"run_attempt":true},"dynamicProps":false,"dynamicItems":false};
|