@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,21 @@
|
|
|
1
|
+
export declare const validate0: (value: unknown) => boolean;
|
|
2
|
+
export declare const validate1: (value: unknown) => boolean;
|
|
3
|
+
export declare const validate2: (value: unknown) => boolean;
|
|
4
|
+
export declare const validate3: (value: unknown) => boolean;
|
|
5
|
+
export declare const validate4: (value: unknown) => boolean;
|
|
6
|
+
export declare const validate5: (value: unknown) => boolean;
|
|
7
|
+
export declare const validate6: (value: unknown) => boolean;
|
|
8
|
+
export declare const validate7: (value: unknown) => boolean;
|
|
9
|
+
export declare const validate8: (value: unknown) => boolean;
|
|
10
|
+
export declare const validate9: (value: unknown) => boolean;
|
|
11
|
+
export declare const validate10: (value: unknown) => boolean;
|
|
12
|
+
export declare const validate11: (value: unknown) => boolean;
|
|
13
|
+
export declare const validate12: (value: unknown) => boolean;
|
|
14
|
+
export declare const validate13: (value: unknown) => boolean;
|
|
15
|
+
export declare const validate14: (value: unknown) => boolean;
|
|
16
|
+
export declare const validate15: (value: unknown) => boolean;
|
|
17
|
+
export declare const validate16: (value: unknown) => boolean;
|
|
18
|
+
export declare const validate17: (value: unknown) => boolean;
|
|
19
|
+
export declare const validate18: (value: unknown) => boolean;
|
|
20
|
+
export declare const validate19: (value: unknown) => boolean;
|
|
21
|
+
export declare const validate20: (value: unknown) => boolean;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = require("./compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":1},"validate2":{"$":12},"validate3":{"$":13},"validate4":{"$":14},"validate5":{"$":3},"validate6":{"$":3},"validate7":{"$":16},"validate8":{"$":17},"validate9":{"$":18},"validate10":{"$":18},"validate11":{"$":21},"validate12":{"$":21},"validate13":{"$":22},"validate14":{"$":24},"validate15":{"$":25},"validate16":{"$":22},"validate17":{"$":26},"validate18":{"$":23},"validate19":{"$":27},"validate20":{"$":27}},"definitions":[{"type":"object","required":["mode","currency","settled_nanodollars","held_nanodollars","available_nanodollars","purchase_bounds_minor"],"properties":{"mode":{"type":"string","enum":["test","live"]},"currency":{"type":"string","const":"usd"},"settled_nanodollars":{"type":"string","maxLength":20,"pattern":"^(0|-?[1-9][0-9]{0,17}|-?[1-8][0-9]{18}|-?9[01][0-9]{17}|-?92[0-1][0-9]{16}|-?922[0-2][0-9]{15}|-?9223[0-2][0-9]{14}|-?92233[0-6][0-9]{13}|-?922337[0-1][0-9]{12}|-?92233720[0-2][0-9]{10}|-?922337203[0-5][0-9]{9}|-?9223372036[0-7][0-9]{8}|-?92233720368[0-4][0-9]{7}|-?922337203685[0-3][0-9]{6}|-?9223372036854[0-6][0-9]{5}|-?92233720368547[0-6][0-9]{4}|-?922337203685477[0-4][0-9]{3}|-?9223372036854775[0-7][0-9]{2}|922337203685477580[0-7]|-922337203685477580[0-8])$"},"held_nanodollars":{"type":"string","maxLength":19,"pattern":"^(0|[1-9][0-9]{0,17}|[1-8][0-9]{18}|9[01][0-9]{17}|92[0-1][0-9]{16}|922[0-2][0-9]{15}|9223[0-2][0-9]{14}|92233[0-6][0-9]{13}|922337[0-1][0-9]{12}|92233720[0-2][0-9]{10}|922337203[0-5][0-9]{9}|9223372036[0-7][0-9]{8}|92233720368[0-4][0-9]{7}|922337203685[0-3][0-9]{6}|9223372036854[0-6][0-9]{5}|92233720368547[0-6][0-9]{4}|922337203685477[0-4][0-9]{3}|9223372036854775[0-7][0-9]{2}|922337203685477580[0-7])$"},"available_nanodollars":{"type":"string","maxLength":20,"pattern":"^(0|-?[1-9][0-9]{0,17}|-?[1-8][0-9]{18}|-?9[01][0-9]{17}|-?92[0-1][0-9]{16}|-?922[0-2][0-9]{15}|-?9223[0-2][0-9]{14}|-?92233[0-6][0-9]{13}|-?922337[0-1][0-9]{12}|-?92233720[0-2][0-9]{10}|-?922337203[0-5][0-9]{9}|-?9223372036[0-7][0-9]{8}|-?92233720368[0-4][0-9]{7}|-?922337203685[0-3][0-9]{6}|-?9223372036854[0-6][0-9]{5}|-?92233720368547[0-6][0-9]{4}|-?922337203685477[0-4][0-9]{3}|-?9223372036854775[0-7][0-9]{2}|922337203685477580[0-7]|-922337203685477580[0-8])$"},"held_sandbox_count":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"purchase_bounds_minor":{"type":"object","required":["minimum","maximum"],"properties":{"minimum":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"maximum":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}}}},{"anyOf":[{"$":2},{"$":10},{"$":11}]},{"allOf":[{"$":3},{"type":"object","required":["checkout_url"],"properties":{"status":{"type":"string","const":"pending"},"method":{"type":"string","const":"checkout"},"checkout_url":{"type":"string","format":"uri"}},"not":{"required":["authentication_url"],"properties":{"authentication_url":true}}}]},{"type":"object","required":["id","status","amount_minor","currency","created_at","updated_at"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"amount_minor":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"fee_minor":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"total_minor":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"currency":{"type":"string","const":"usd"},"method":{"type":"string","enum":["checkout","saved_card","auto_top_up"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"failure_reason":{"type":"string","minLength":1,"maxLength":100},"adjustments":{"type":"array","items":{"$":4}},"invoice":{"$":5},"receipt_url":{"type":"string","format":"uri"},"refund":{"$":6}},"allOf":[{"if":{"properties":{"status":{"not":{"const":"confirmed"}}},"required":["status"]},"then":{"not":{"anyOf":[{"required":["invoice"],"properties":{"invoice":true}},{"required":["receipt_url"],"properties":{"receipt_url":true}}]}}},{"if":{"properties":{"status":{"const":"failed"}},"required":["status"]},"then":{"properties":{"failure_reason":{"$":9}},"required":["failure_reason"]}},{"if":{"properties":{"status":{"not":{"const":"failed"}}},"required":["status"]},"then":{"not":{"required":["failure_reason"],"properties":{"failure_reason":true}}}}]},{"type":"object","required":["kind","amount_minor","created_at"],"properties":{"kind":{"type":"string"},"amount_minor":{"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}]},"created_at":{"type":"string","format":"date-time"}},"allOf":[{"if":{"properties":{"kind":{"const":"dispute_reinstated"}},"required":["kind"]},"then":{"properties":{"amount_minor":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}}}},{"if":{"properties":{"kind":{"const":"dispute_lost"}},"required":["kind"]},"then":{"properties":{"amount_minor":{"const":0}}}}]},{"type":"object","required":["number","pdf_url","hosted_url"],"properties":{"number":{"type":"string","minLength":1},"pdf_url":{"type":"string","format":"uri"},"hosted_url":{"type":"string","format":"uri"}}},{"type":"object","required":["state"],"properties":{"state":{"type":"string"},"disabled_reason":{"type":"string"},"refundable_until":{"type":"string","format":"date-time"},"fee_minor":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"latest_refund":{"$":7}}},{"type":"object","required":["id","status","unused","total","fee","card","requested_at"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"unused":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"total":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"fee":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"card":{"$":8},"requested_at":{"type":"string","format":"date-time"}}},{"type":"object","required":["type"],"properties":{"brand":{"type":"string"},"last4":{"type":"string","pattern":"^[0-9]{4}$"},"type":{"type":"string"}},"allOf":[{"if":{"properties":{"type":{"const":"card"}},"required":["type"]},"then":{"required":["brand","last4"]}},{"if":{"properties":{"type":{"const":"link"}},"required":["type"]},"then":{"not":{"required":["last4"],"properties":{"last4":true}}}}]},{"type":"string","minLength":1,"maxLength":100},{"allOf":[{"$":3},{"type":"object","required":["authentication_url"],"properties":{"status":{"type":"string","const":"pending"},"method":{"type":"string","const":"saved_card"},"authentication_url":{"type":"string","format":"uri"},"payment_intent_client_secret":{"type":"string","minLength":1}},"not":{"required":["checkout_url"],"properties":{"checkout_url":true}}}]},{"allOf":[{"$":3},{"type":"object","properties":{"status":{"type":"string","const":"confirmed"},"method":{"type":"string","const":"saved_card"}},"not":{"anyOf":[{"required":["checkout_url"],"properties":{"checkout_url":true}},{"required":["authentication_url"],"properties":{"authentication_url":true}}]}}]},{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$":3}},"next_cursor":{"type":["string","null"]}}},{"type":"object","required":["amount","tax","total","address_required"],"properties":{"amount":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"fee_minor":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"tax":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"total":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"address_required":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string"}}}},{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$":15}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":512}}},{"type":"object","required":["id","amount_nanodollars","created_at"],"properties":{"id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"kind":{"type":"string"},"sandbox_id":{"type":["string","null"],"minLength":1,"maxLength":128},"sandbox_name":{"type":["string","null"]},"key_id":{"type":["string","null"]},"amount_nanodollars":{"type":"string","maxLength":20,"pattern":"^(-?[1-9][0-9]{0,18})$"},"created_at":{"type":"string","format":"date-time"}}},{"type":"object","required":["code","amount_nanodollars","description","redeemed_at"],"properties":{"code":{"type":"string"},"amount_nanodollars":{"type":"string","maxLength":19,"pattern":"^(?:[1-9][0-9]{0,17}|[1-8][0-9]{18}|9[0-1][0-9]{17}|92[0-1][0-9]{16}|922[0-2][0-9]{15}|9223[0-2][0-9]{14}|92233[0-6][0-9]{13}|922337[0-1][0-9]{12}|92233720[0-2][0-9]{10}|922337203[0-5][0-9]{9}|9223372036[0-7][0-9]{8}|92233720368[0-4][0-9]{7}|922337203685[0-3][0-9]{6}|9223372036854[0-6][0-9]{5}|92233720368547[0-6][0-9]{4}|922337203685477[0-4][0-9]{3}|9223372036854775[0-7][0-9]{2}|922337203685477580[0-7])$"},"description":{"type":"string"},"redeemed_at":{"type":"string","format":"date-time"}}},{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$":16}}}},{"type":"object","required":["name","email","address","tax_id"],"properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"]},"address":{"anyOf":[{"$":19},{"type":"null"}]},"tax_id":{"anyOf":[{"$":20},{"type":"null"}]}}},{"type":"object","required":["line1","line2","city","state","postal_code","country"],"properties":{"line1":{"type":["string","null"],"maxLength":200},"line2":{"type":["string","null"],"maxLength":200},"city":{"type":["string","null"],"maxLength":200},"state":{"type":["string","null"],"maxLength":200},"postal_code":{"type":["string","null"],"maxLength":50},"country":{"type":["string","null"],"pattern":"^[A-Z]{2}$"}}},{"type":"object","required":["type","value"],"properties":{"type":{"type":"string"},"value":{"type":"string"},"verification_status":{"type":"string"}}},{"type":"object","required":["low_balance_threshold_minor","email_delivery"],"properties":{"low_balance_threshold_minor":{"minimum":1,"maximum":9007199254740991,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":9007199254740991}},"email_delivery":{"type":"string","enum":["configured","log_only"]}}},{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$":23}}}},{"type":"object","required":["id"],"properties":{"id":{"type":"string","pattern":"^pm_[A-Za-z0-9_]+$"},"brand":{"type":["string","null"]},"last4":{"type":["string","null"],"pattern":"^[0-9]{4}$"},"exp_month":{"minimum":1,"maximum":12,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":12}},"exp_year":{"minimum":2000,"maximum":9999,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":2000,"maximum":9999}},"default":{"type":"boolean"},"priority":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"type":{"type":"string"},"email":{"type":"string","format":"email"}},"allOf":[{"if":{"properties":{"type":{"const":"link"}},"required":["type"]},"then":{"required":["email"],"properties":{"brand":{"type":"null"},"last4":{"type":"null"},"exp_month":{"type":"null"},"exp_year":{"type":"null"}}}},{"if":{"properties":{"type":{"const":"card"}},"required":["type"]},"then":{"required":["brand","last4","exp_month","exp_year"],"properties":{"brand":{"type":"string"},"last4":{"type":"string","pattern":"^[0-9]{4}$"},"exp_month":{"minimum":1,"maximum":12,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":12}},"exp_year":{"minimum":2000,"maximum":9999,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":2000,"maximum":9999}}}}}]},{"type":"object","required":["id","status","checkout_url"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending","confirmed","canceled"]},"checkout_url":{"type":"string","format":"uri"}}},{"type":"object","required":["client_secret","publishable_key"],"properties":{"client_secret":{"type":"string","minLength":1},"publishable_key":{"type":"string","minLength":1}}},{"type":"object","required":["id","status"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending","confirmed","canceled"]}}},{"type":"object","required":["enabled","threshold_minor","amount_minor","email_delivery"],"properties":{"enabled":{"type":"boolean"},"threshold_minor":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"amount_minor":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"last_attempt":{"type":"object","required":["purchase_id","status","at"],"properties":{"purchase_id":{"type":"string"},"status":{"type":"string","enum":["pending","confirmed","failed"]},"at":{"type":"string","format":"date-time"},"fallback_card":{"$":28}}},"disabled_reason":{"type":"string"},"email_delivery":{"type":"string","enum":["configured","log_only"]}},"allOf":[{"if":{"properties":{"enabled":{"const":true}},"required":["enabled"]},"then":{"properties":{"threshold_minor":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"amount_minor":{"minimum":1,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}}},"not":{"required":["disabled_reason"],"properties":{"disabled_reason":true}}}}]},{"type":"object","properties":{"brand":{"type":["string","null"]},"last4":{"type":["string","null"],"pattern":"^[0-9]{4}$"},"type":{"type":"string"},"email":{"type":"string","format":"email"}},"allOf":[{"if":{"properties":{"type":{"const":"link"}},"required":["type"]},"then":{"required":["email"],"properties":{"brand":{"type":"null"},"last4":{"type":"null"}}}},{"if":{"properties":{"type":{"const":"card"}},"required":["type"]},"then":{"required":["brand","last4"],"properties":{"brand":{"type":"string"},"last4":{"type":"string","pattern":"^[0-9]{4}$"}}}}]}]});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const validate0: (value: unknown) => boolean;
|
|
2
|
+
export declare const validate1: (value: unknown) => boolean;
|
|
3
|
+
export declare const validate2: (value: unknown) => boolean;
|
|
4
|
+
export declare const validate3: (value: unknown) => boolean;
|
|
5
|
+
export declare const validate4: (value: unknown) => boolean;
|
|
6
|
+
export declare const validate5: (value: unknown) => boolean;
|
|
7
|
+
export declare const validate6: (value: unknown) => boolean;
|
|
8
|
+
export declare const validate7: (value: unknown) => boolean;
|
|
9
|
+
export declare const validate8: (value: unknown) => boolean;
|
|
10
|
+
export declare const validate9: (value: unknown) => boolean;
|
|
11
|
+
export declare const validate10: (value: unknown) => boolean;
|
|
12
|
+
export declare const validate11: (value: unknown) => boolean;
|
|
13
|
+
export declare const validate12: (value: unknown) => boolean;
|
|
14
|
+
export declare const validate13: (value: unknown) => boolean;
|
|
15
|
+
export declare const validate14: (value: unknown) => boolean;
|
|
16
|
+
export declare const validate15: (value: unknown) => boolean;
|
|
17
|
+
export declare const validate16: (value: unknown) => boolean;
|
|
18
|
+
export declare const validate17: (value: unknown) => boolean;
|
|
19
|
+
export declare const validate18: (value: unknown) => boolean;
|
|
20
|
+
export declare const validate19: (value: unknown) => boolean;
|
|
21
|
+
export declare const validate20: (value: unknown) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.validate0 = validate542;const schema759 = {"type":"object","required":["id","sandbox_id","path","size","route","part_size","parts","expires_at"],"description":"Upload session. Send every part as its `TransferPart` describes, then complete with each\nresponse `ETag`, if any. Part URLs may embed secret signatures: never log them. The links\nand this session last up to six hours after creation and end at `expires_at`. At launch\nthere is exactly one part.\n","properties":{"id":{"$ref":"#/components/schemas/SandboxUploadId"},"sandbox_id":{"type":"string","minLength":1},"path":{"type":"string","minLength":1,"pattern":"^/[^\\u0000]*$"},"size":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"route":{"$ref":"#/components/schemas/SandboxTransferRoute"},"part_size":{"minimum":0,"description":"Bytes per part except the last. Equals `size` for a single part, or 0 for an empty file.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"parts":{"type":"array","minItems":1,"maxItems":10000,"items":{"$ref":"#/components/schemas/TransferPart"}},"expires_at":{"type":"string","format":"date-time","description":"When the part links and this session end; at most six hours after creation."}}};const schema760 = {"type":"string","pattern":"^sup_[0-9a-f]{32}$"};const schema761 = {"type":"string","x-boxrouter-open-enum":true,"description":"Informational. Which path the bytes take. Clients must not branch on it."};const pattern371 = new RegExp("^sup_[0-9a-f]{32}$", "u");const pattern24 = new RegExp("^/[^\\u0000]*$", "u");const func1 = require("ajv/dist/runtime/ucs2length").default;const schema762 = {"type":"object","required":["number","size","url"],"description":"One request a client makes to move part of a file. Volume upload parts are this shape with\nevery default, so one client serves both. The response `ETag` header, if any, is\npassed back on completion; an absent `ETag` is passed as no `etag`.\n","properties":{"number":{"minimum":1,"maximum":10000,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":10000}},"size":{"minimum":0,"description":"Exact byte count of this part.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"url":{"type":"string","format":"uri","description":"Where to send this part. The URL may embed a secret signature: clients must never log\nit, include it in error messages, or persist it. Treat it as opaque.\n"},"method":{"type":"string","enum":["PUT","POST"],"default":"PUT","description":"HTTP method to use."},"headers":{"type":"object","additionalProperties":{"type":"string"},"default":{},"description":"Headers the client must send with this request, exactly as given."},"form_field":{"type":"string","minLength":1,"description":"When present, send the bytes as `multipart/form-data` with a single file field of this\nname. When absent, send the raw bytes as the request body with `Content-Length` equal to\n`size`.\n"}}};function validate543(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate543.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.number === undefined) && (missing0 = "number")) || ((data.size === undefined) && (missing0 = "size"))) || ((data.url === undefined) && (missing0 = "url"))){validate543.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.number !== undefined){let data0 = data.number;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+"/number",schemaPath:"#/properties/number/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+"/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 = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/number",schemaPath:"#/properties/number/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate543.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){validate543.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;}else {if(data0 > 10000){validate543.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 === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 > 10000 || isNaN(data0)){validate543.errors = [{instancePath:instancePath+"/number",schemaPath:"#/properties/number/maximum",keyword:"maximum",params:{comparison: "<=", limit: 10000},message:"must be <= 10000"}];return false;}else {if(data0 < 1 || isNaN(data0)){validate543.errors = [{instancePath:instancePath+"/number",schemaPath:"#/properties/number/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.size !== undefined){let data1 = data.size;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+"/size",schemaPath:"#/properties/size/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+"/size",schemaPath:"#/properties/size/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+"/size",schemaPath:"#/properties/size/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate543.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){validate543.errors = [{instancePath:instancePath+"/size",schemaPath:"#/properties/size/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)){validate543.errors = [{instancePath:instancePath+"/size",schemaPath:"#/properties/size/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.url !== undefined){const _errs13 = errors;if(errors === _errs13){if(errors === _errs13){if(!(typeof data.url === "string")){validate543.errors = [{instancePath:instancePath+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.method !== undefined){let data3 = data.method;const _errs15 = errors;if(typeof data3 !== "string"){validate543.errors = [{instancePath:instancePath+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data3 === "PUT") || (data3 === "POST"))){validate543.errors = [{instancePath:instancePath+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues: schema762.properties.method.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.headers !== undefined){let data4 = data.headers;const _errs17 = errors;if(errors === _errs17){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){for(const key0 in data4){const _errs20 = errors;if(typeof data4[key0] !== "string"){validate543.errors = [{instancePath:instancePath+"/headers/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/headers/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs20 === errors;if(!valid5){break;}}}else {validate543.errors = [{instancePath:instancePath+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.form_field !== undefined){let data6 = data.form_field;const _errs22 = errors;if(errors === _errs22){if(typeof data6 === "string"){if(func1(data6) < 1){validate543.errors = [{instancePath:instancePath+"/form_field",schemaPath:"#/properties/form_field/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate543.errors = [{instancePath:instancePath+"/form_field",schemaPath:"#/properties/form_field/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs22 === errors;}else {var valid0 = true;}}}}}}}}else {validate543.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate543.errors = vErrors;return errors === 0;}validate543.evaluated = {"props":{"number":true,"size":true,"url":true,"method":true,"headers":true,"form_field":true},"dynamicProps":false,"dynamicItems":false};const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate542(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate542.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((((((((data.id === undefined) && (missing0 = "id")) || ((data.sandbox_id === undefined) && (missing0 = "sandbox_id"))) || ((data.path === undefined) && (missing0 = "path"))) || ((data.size === undefined) && (missing0 = "size"))) || ((data.route === undefined) && (missing0 = "route"))) || ((data.part_size === undefined) && (missing0 = "part_size"))) || ((data.parts === undefined) && (missing0 = "parts"))) || ((data.expires_at === undefined) && (missing0 = "expires_at"))){validate542.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;const _errs2 = errors;if(errors === _errs2){if(typeof data0 === "string"){if(!pattern371.test(data0)){validate542.errors = [{instancePath:instancePath+"/id",schemaPath:"#/components/schemas/SandboxUploadId/pattern",keyword:"pattern",params:{pattern: "^sup_[0-9a-f]{32}$"},message:"must match pattern \""+"^sup_[0-9a-f]{32}$"+"\""}];return false;}}else {validate542.errors = [{instancePath:instancePath+"/id",schemaPath:"#/components/schemas/SandboxUploadId/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.sandbox_id !== undefined){let data1 = data.sandbox_id;const _errs4 = errors;if(errors === _errs4){if(typeof data1 === "string"){if(func1(data1) < 1){validate542.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 {validate542.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs4 === errors;}else {var valid0 = true;}if(valid0){if(data.path !== undefined){let data2 = data.path;const _errs6 = errors;if(errors === _errs6){if(typeof data2 === "string"){if(func1(data2) < 1){validate542.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern24.test(data2)){validate542.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/pattern",keyword:"pattern",params:{pattern: "^/[^\\u0000]*$"},message:"must match pattern \""+"^/[^\\u0000]*$"+"\""}];return false;}}}else {validate542.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs6 === errors;}else {var valid0 = true;}if(valid0){if(data.size !== undefined){let data3 = data.size;const _errs8 = errors;const _errs9 = errors;const _errs10 = errors;let valid3 = false;const _errs11 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err0 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs11 === errors;valid3 = valid3 || _valid0;const _errs13 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs13 === errors;valid3 = valid3 || _valid0;if(!valid3){const err2 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate542.errors = vErrors;return false;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}var valid2 = _errs9 === errors;if(valid2){if(typeof data3 === "bigint"){if(data3 < 0){validate542.errors = [{instancePath:instancePath+"/size",schemaPath:"#/properties/size/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs8){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate542.errors = [{instancePath:instancePath+"/size",schemaPath:"#/properties/size/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs8 === errors;}else {var valid0 = true;}if(valid0){if(data.route !== undefined){const _errs14 = errors;if(typeof data.route !== "string"){validate542.errors = [{instancePath:instancePath+"/route",schemaPath:"#/components/schemas/SandboxTransferRoute/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.part_size !== undefined){let data5 = data.part_size;const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;let valid6 = false;const _errs20 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err3 = {instancePath:instancePath+"/part_size",schemaPath:"#/properties/part_size/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs20 === errors;valid6 = valid6 || _valid1;const _errs22 = errors;if(typeof data5 !== "bigint"){const err4 = {instancePath:instancePath+"/part_size",schemaPath:"#/properties/part_size/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;valid6 = valid6 || _valid1;if(!valid6){const err5 = {instancePath:instancePath+"/part_size",schemaPath:"#/properties/part_size/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate542.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 data5 === "bigint"){if(data5 < 0){validate542.errors = [{instancePath:instancePath+"/part_size",schemaPath:"#/properties/part_size/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 data5 == "number") && (isFinite(data5))){if(data5 < 0 || isNaN(data5)){validate542.errors = [{instancePath:instancePath+"/part_size",schemaPath:"#/properties/part_size/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.parts !== undefined){let data6 = data.parts;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data6)){if(data6.length > 10000){validate542.errors = [{instancePath:instancePath+"/parts",schemaPath:"#/properties/parts/maxItems",keyword:"maxItems",params:{limit: 10000},message:"must NOT have more than 10000 items"}];return false;}else {if(data6.length < 1){validate542.errors = [{instancePath:instancePath+"/parts",schemaPath:"#/properties/parts/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid7 = true;const len0 = data6.length;for(let i0=0; i0<len0; i0++){const _errs25 = errors;if(!(validate543(data6[i0], {instancePath:instancePath+"/parts/" + i0,parentData:data6,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate543.errors : vErrors.concat(validate543.errors);errors = vErrors.length;}var valid7 = _errs25 === errors;if(!valid7){break;}}}}}else {validate542.errors = [{instancePath:instancePath+"/parts",schemaPath:"#/properties/parts/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.expires_at !== undefined){let data8 = data.expires_at;const _errs26 = errors;if(errors === _errs26){if(errors === _errs26){if(typeof data8 === "string"){if(!(formats0.validate(data8))){validate542.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate542.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs26 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate542.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate542.errors = vErrors;return errors === 0;}validate542.evaluated = {"props":{"id":true,"sandbox_id":true,"path":true,"size":true,"route":true,"part_size":true,"parts":true,"expires_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate545;const schema763 = {"type":"object","required":["path","size"],"properties":{"path":{"type":"string","minLength":1,"pattern":"^/[^\\u0000]*$"},"size":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}};function validate545(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate545.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.path === undefined) && (missing0 = "path")) || ((data.size === undefined) && (missing0 = "size"))){validate545.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.path !== undefined){let data0 = data.path;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate545.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern24.test(data0)){validate545.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/pattern",keyword:"pattern",params:{pattern: "^/[^\\u0000]*$"},message:"must match pattern \""+"^/[^\\u0000]*$"+"\""}];return false;}}}else {validate545.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.size !== undefined){let data1 = data.size;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+"/size",schemaPath:"#/properties/size/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+"/size",schemaPath:"#/properties/size/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+"/size",schemaPath:"#/properties/size/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate545.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid1 = _errs4 === errors;if(valid1){if(typeof data1 === "bigint"){if(data1 < 0){validate545.errors = [{instancePath:instancePath+"/size",schemaPath:"#/properties/size/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs3){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){validate545.errors = [{instancePath:instancePath+"/size",schemaPath:"#/properties/size/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate545.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate545.errors = vErrors;return errors === 0;}validate545.evaluated = {"props":{"path":true,"size":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate546;const schema764 = {"type":"object","required":["path","size"],"description":"Download answer: when `content` is present it carries the file body inline (base64) and no link exists; otherwise `url` and `expires_at` give a temporary link that lasts up to one hour after creation. The URL may embed a secret signature, so never log it.","properties":{"path":{"type":"string","minLength":1,"pattern":"^/[^\\u0000]*$"},"size":{"minimum":0,"description":"File size in bytes when the provider reports it; null when it is not known until the download's response. A complete download ends exactly at its response's Content-Length.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"content":{"type":"string","description":"The file body, base64-encoded, when `inline_below` admitted it. Absent when a link was created instead."},"route":{"$ref":"#/components/schemas/SandboxTransferRoute"},"url":{"type":"string","format":"uri","description":"Temporary download link; absent when `content` carries the body."},"method":{"type":"string","enum":["GET"],"default":"GET"},"headers":{"type":"object","additionalProperties":{"type":"string"},"default":{}},"expires_at":{"type":"string","format":"date-time","description":"When the link ends; at most one hour after creation. Absent when `content` carries the body."}}};function validate546(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate546.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.path === undefined) && (missing0 = "path")) || ((data.size === undefined) && (missing0 = "size"))){validate546.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.path !== undefined){let data0 = data.path;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) < 1){validate546.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern24.test(data0)){validate546.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/pattern",keyword:"pattern",params:{pattern: "^/[^\\u0000]*$"},message:"must match pattern \""+"^/[^\\u0000]*$"+"\""}];return false;}}}else {validate546.errors = [{instancePath:instancePath+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.size !== undefined){let data1 = data.size;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+"/size",schemaPath:"#/properties/size/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema764.properties.size.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+"/size",schemaPath:"#/properties/size/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+"/size",schemaPath:"#/properties/size/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate546.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid1 = _errs4 === errors;if(valid1){if(typeof data1 === "bigint"){if(data1 < 0){validate546.errors = [{instancePath:instancePath+"/size",schemaPath:"#/properties/size/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs3){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){validate546.errors = [{instancePath:instancePath+"/size",schemaPath:"#/properties/size/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.content !== undefined){const _errs9 = errors;if(typeof data.content !== "string"){validate546.errors = [{instancePath:instancePath+"/content",schemaPath:"#/properties/content/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.route !== undefined){const _errs11 = errors;if(typeof data.route !== "string"){validate546.errors = [{instancePath:instancePath+"/route",schemaPath:"#/components/schemas/SandboxTransferRoute/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.url !== undefined){const _errs14 = errors;if(errors === _errs14){if(errors === _errs14){if(!(typeof data.url === "string")){validate546.errors = [{instancePath:instancePath+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs14 === errors;}else {var valid0 = true;}if(valid0){if(data.method !== undefined){let data5 = data.method;const _errs16 = errors;if(typeof data5 !== "string"){validate546.errors = [{instancePath:instancePath+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data5 === "GET")){validate546.errors = [{instancePath:instancePath+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues: schema764.properties.method.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs16 === errors;}else {var valid0 = true;}if(valid0){if(data.headers !== undefined){let data6 = data.headers;const _errs18 = errors;if(errors === _errs18){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){for(const key0 in data6){const _errs21 = errors;if(typeof data6[key0] !== "string"){validate546.errors = [{instancePath:instancePath+"/headers/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/headers/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs21 === errors;if(!valid4){break;}}}else {validate546.errors = [{instancePath:instancePath+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs18 === errors;}else {var valid0 = true;}if(valid0){if(data.expires_at !== undefined){let data8 = data.expires_at;const _errs23 = errors;if(errors === _errs23){if(errors === _errs23){if(typeof data8 === "string"){if(!(formats0.validate(data8))){validate546.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate546.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs23 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate546.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate546.errors = vErrors;return errors === 0;}validate546.evaluated = {"props":{"path":true,"size":true,"content":true,"route":true,"url":true,"method":true,"headers":true,"expires_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate3 = validate547;const schema766 = {"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}};const schema767 = {"type":"object","required":["name","type"],"properties":{"name":{"type":"string","minLength":1,"description":"The entry's name within the directory, without a path."},"type":{"type":"string","enum":["file","directory","symlink","other"],"description":"What the entry itself is. A symbolic link is symlink whether or not its target exists; it is never followed."}}};function validate547(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate547.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(Array.isArray(data)){var valid0 = true;const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs1 = errors;const _errs2 = errors;if(errors === _errs2){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){let missing0;if(((data0.name === undefined) && (missing0 = "name")) || ((data0.type === undefined) && (missing0 = "type"))){validate547.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/components/schemas/DirectoryEntry/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data0.name !== undefined){let data1 = data0.name;const _errs4 = errors;if(errors === _errs4){if(typeof data1 === "string"){if(func1(data1) < 1){validate547.errors = [{instancePath:instancePath+"/" + i0+"/name",schemaPath:"#/components/schemas/DirectoryEntry/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate547.errors = [{instancePath:instancePath+"/" + i0+"/name",schemaPath:"#/components/schemas/DirectoryEntry/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid2 = _errs4 === errors;}else {var valid2 = true;}if(valid2){if(data0.type !== undefined){let data2 = data0.type;const _errs6 = errors;if(typeof data2 !== "string"){validate547.errors = [{instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/components/schemas/DirectoryEntry/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data2 === "file") || (data2 === "directory")) || (data2 === "symlink")) || (data2 === "other"))){validate547.errors = [{instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/components/schemas/DirectoryEntry/properties/type/enum",keyword:"enum",params:{allowedValues: schema767.properties.type.enum},message:"must be equal to one of the allowed values"}];return false;}var valid2 = _errs6 === errors;}else {var valid2 = true;}}}}else {validate547.errors = [{instancePath:instancePath+"/" + i0,schemaPath:"#/components/schemas/DirectoryEntry/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs1 === errors;if(!valid0){break;}}}else {validate547.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}validate547.errors = vErrors;return errors === 0;}validate547.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};exports.validate4 = validate548;const schema768 = {"type":"boolean"};function validate548(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate548.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(typeof data !== "boolean"){validate548.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}validate548.errors = vErrors;return errors === 0;}validate548.evaluated = {"dynamicProps":false,"dynamicItems":false};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const validate0: (value: unknown) => boolean;
|
|
2
|
+
export declare const validate1: (value: unknown) => boolean;
|
|
3
|
+
export declare const validate2: (value: unknown) => boolean;
|
|
4
|
+
export declare const validate3: (value: unknown) => boolean;
|
|
5
|
+
export declare const validate4: (value: unknown) => boolean;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = require("./compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":4},"validate2":{"$":5},"validate3":{"type":"array","items":{"$":6}},"validate4":{"type":"boolean"}},"definitions":[{"type":"object","required":["id","sandbox_id","path","size","route","part_size","parts","expires_at"],"properties":{"id":{"$":1},"sandbox_id":{"type":"string","minLength":1},"path":{"type":"string","minLength":1,"pattern":"^/[^\\u0000]*$"},"size":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"route":{"$":2},"part_size":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"parts":{"type":"array","minItems":1,"maxItems":10000,"items":{"$":3}},"expires_at":{"type":"string","format":"date-time"}}},{"type":"string","pattern":"^sup_[0-9a-f]{32}$"},{"type":"string"},{"type":"object","required":["number","size","url"],"properties":{"number":{"minimum":1,"maximum":10000,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":10000}},"size":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"url":{"type":"string","format":"uri"},"method":{"type":"string","enum":["PUT","POST"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"form_field":{"type":"string","minLength":1}}},{"type":"object","required":["path","size"],"properties":{"path":{"type":"string","minLength":1,"pattern":"^/[^\\u0000]*$"},"size":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}}}},{"type":"object","required":["path","size"],"properties":{"path":{"type":"string","minLength":1,"pattern":"^/[^\\u0000]*$"},"size":{"minimum":0,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"content":{"type":"string"},"route":{"$":2},"url":{"type":"string","format":"uri"},"method":{"type":"string","enum":["GET"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expires_at":{"type":"string","format":"date-time"}}},{"type":"object","required":["name","type"],"properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["file","directory","symlink","other"]}}}]});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const validate0: (value: unknown) => boolean;
|
|
2
|
+
export declare const validate1: (value: unknown) => boolean;
|
|
3
|
+
export declare const validate2: (value: unknown) => boolean;
|
|
4
|
+
export declare const validate3: (value: unknown) => boolean;
|
|
5
|
+
export declare const validate4: (value: unknown) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.validate0 = validate72;const schema84 = {"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GitHubInstallation"}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}}};const schema85 = {"type":"object","required":["id","account_login","account_type","repository_selection","repository_count","linked_at","state"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"account_login":{"type":"string","minLength":1,"maxLength":255},"account_type":{"type":"string","enum":["user","organization"]},"repository_selection":{"type":"string","enum":["all","selected","unknown"]},"repository_count":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"linked_at":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["active","unavailable"]}}};const func1 = require("ajv/dist/runtime/ucs2length").default;const pattern10 = new RegExp("^[^\\u0000]*$", "u");const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate73(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate73.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.account_login === undefined) && (missing0 = "account_login"))) || ((data.account_type === undefined) && (missing0 = "account_type"))) || ((data.repository_selection === undefined) && (missing0 = "repository_selection"))) || ((data.repository_count === undefined) && (missing0 = "repository_count"))) || ((data.linked_at === undefined) && (missing0 = "linked_at"))) || ((data.state === undefined) && (missing0 = "state"))){validate73.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){validate73.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){validate73.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)){validate73.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate73.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.account_login !== undefined){let data1 = data.account_login;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 255){validate73.errors = [{instancePath:instancePath+"/account_login",schemaPath:"#/properties/account_login/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data1) < 1){validate73.errors = [{instancePath:instancePath+"/account_login",schemaPath:"#/properties/account_login/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate73.errors = [{instancePath:instancePath+"/account_login",schemaPath:"#/properties/account_login/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.account_type !== undefined){let data2 = data.account_type;const _errs5 = errors;if(typeof data2 !== "string"){validate73.errors = [{instancePath:instancePath+"/account_type",schemaPath:"#/properties/account_type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "user") || (data2 === "organization"))){validate73.errors = [{instancePath:instancePath+"/account_type",schemaPath:"#/properties/account_type/enum",keyword:"enum",params:{allowedValues: schema85.properties.account_type.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.repository_selection !== undefined){let data3 = data.repository_selection;const _errs7 = errors;if(typeof data3 !== "string"){validate73.errors = [{instancePath:instancePath+"/repository_selection",schemaPath:"#/properties/repository_selection/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data3 === "all") || (data3 === "selected")) || (data3 === "unknown"))){validate73.errors = [{instancePath:instancePath+"/repository_selection",schemaPath:"#/properties/repository_selection/enum",keyword:"enum",params:{allowedValues: schema85.properties.repository_selection.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.repository_count !== undefined){let data4 = data.repository_count;const _errs9 = errors;const _errs10 = errors;const _errs11 = errors;let valid2 = false;const _errs12 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err0 = {instancePath:instancePath+"/repository_count",schemaPath:"#/properties/repository_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 = _errs12 === errors;valid2 = valid2 || _valid0;const _errs14 = errors;if(typeof data4 !== "bigint"){const err1 = {instancePath:instancePath+"/repository_count",schemaPath:"#/properties/repository_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 = _errs14 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/repository_count",schemaPath:"#/properties/repository_count/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate73.errors = vErrors;return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var valid1 = _errs10 === errors;if(valid1){if(typeof data4 === "bigint"){if(data4 < 0){validate73.errors = [{instancePath:instancePath+"/repository_count",schemaPath:"#/properties/repository_count/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs9){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){validate73.errors = [{instancePath:instancePath+"/repository_count",schemaPath:"#/properties/repository_count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.linked_at !== undefined){let data5 = data.linked_at;const _errs15 = errors;if(errors === _errs15){if(errors === _errs15){if(typeof data5 === "string"){if(!(formats0.validate(data5))){validate73.errors = [{instancePath:instancePath+"/linked_at",schemaPath:"#/properties/linked_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate73.errors = [{instancePath:instancePath+"/linked_at",schemaPath:"#/properties/linked_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.state !== undefined){let data6 = data.state;const _errs17 = errors;if(typeof data6 !== "string"){validate73.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data6 === "active") || (data6 === "unavailable"))){validate73.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/enum",keyword:"enum",params:{allowedValues: schema85.properties.state.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs17 === errors;}else {var valid0 = true;}}}}}}}}}else {validate73.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate73.errors = vErrors;return errors === 0;}validate73.evaluated = {"props":{"id":true,"account_login":true,"account_type":true,"repository_selection":true,"repository_count":true,"linked_at":true,"state":true},"dynamicProps":false,"dynamicItems":false};function validate72(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate72.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"))){validate72.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(!(validate73(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate72.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)){validate72.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema84.properties.next_cursor.type},message:"must be string,null"}];return false;}if(errors === _errs4){if(typeof data2 === "string"){if(func1(data2) > 128){validate72.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){validate72.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)){validate72.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 {validate72.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate72.errors = vErrors;return errors === 0;}validate72.evaluated = {"props":{"data":true,"next_cursor":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate75;const schema86 = {"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GitHubRepository"}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}}};const schema87 = {"type":"object","required":["id","installation_id","full_name","default_branch","administrator","connection_state"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"installation_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"full_name":{"type":"string","minLength":1,"maxLength":512},"default_branch":{"type":["string","null"],"minLength":1,"maxLength":255},"administrator":{"type":"boolean","description":"Whether current GitHub permissions prove repository-administrator authority."},"private":{"type":"boolean","description":"Whether GitHub reports the repository as private."},"connection_state":{"type":"string","enum":["verified","permission_required","unavailable"]}}};function validate76(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate76.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.installation_id === undefined) && (missing0 = "installation_id"))) || ((data.full_name === undefined) && (missing0 = "full_name"))) || ((data.default_branch === undefined) && (missing0 = "default_branch"))) || ((data.administrator === undefined) && (missing0 = "administrator"))) || ((data.connection_state === undefined) && (missing0 = "connection_state"))){validate76.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){validate76.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){validate76.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)){validate76.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate76.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.installation_id !== undefined){let data1 = data.installation_id;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate76.errors = [{instancePath:instancePath+"/installation_id",schemaPath:"#/properties/installation_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data1) < 1){validate76.errors = [{instancePath:instancePath+"/installation_id",schemaPath:"#/properties/installation_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern10.test(data1)){validate76.errors = [{instancePath:instancePath+"/installation_id",schemaPath:"#/properties/installation_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate76.errors = [{instancePath:instancePath+"/installation_id",schemaPath:"#/properties/installation_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.full_name !== undefined){let data2 = data.full_name;const _errs5 = errors;if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 512){validate76.errors = [{instancePath:instancePath+"/full_name",schemaPath:"#/properties/full_name/maxLength",keyword:"maxLength",params:{limit: 512},message:"must NOT have more than 512 characters"}];return false;}else {if(func1(data2) < 1){validate76.errors = [{instancePath:instancePath+"/full_name",schemaPath:"#/properties/full_name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate76.errors = [{instancePath:instancePath+"/full_name",schemaPath:"#/properties/full_name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.default_branch !== undefined){let data3 = data.default_branch;const _errs7 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate76.errors = [{instancePath:instancePath+"/default_branch",schemaPath:"#/properties/default_branch/type",keyword:"type",params:{type: schema87.properties.default_branch.type},message:"must be string,null"}];return false;}if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) > 255){validate76.errors = [{instancePath:instancePath+"/default_branch",schemaPath:"#/properties/default_branch/maxLength",keyword:"maxLength",params:{limit: 255},message:"must NOT have more than 255 characters"}];return false;}else {if(func1(data3) < 1){validate76.errors = [{instancePath:instancePath+"/default_branch",schemaPath:"#/properties/default_branch/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.administrator !== undefined){const _errs9 = errors;if(typeof data.administrator !== "boolean"){validate76.errors = [{instancePath:instancePath+"/administrator",schemaPath:"#/properties/administrator/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.private !== undefined){const _errs11 = errors;if(typeof data.private !== "boolean"){validate76.errors = [{instancePath:instancePath+"/private",schemaPath:"#/properties/private/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.connection_state !== undefined){let data6 = data.connection_state;const _errs13 = errors;if(typeof data6 !== "string"){validate76.errors = [{instancePath:instancePath+"/connection_state",schemaPath:"#/properties/connection_state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(((data6 === "verified") || (data6 === "permission_required")) || (data6 === "unavailable"))){validate76.errors = [{instancePath:instancePath+"/connection_state",schemaPath:"#/properties/connection_state/enum",keyword:"enum",params:{allowedValues: schema87.properties.connection_state.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}}}}}}}}}else {validate76.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate76.errors = vErrors;return errors === 0;}validate76.evaluated = {"props":{"id":true,"installation_id":true,"full_name":true,"default_branch":true,"administrator":true,"private":true,"connection_state":true},"dynamicProps":false,"dynamicItems":false};function validate75(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate75.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"))){validate75.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(!(validate76(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate76.errors : vErrors.concat(validate76.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate75.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)){validate75.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema86.properties.next_cursor.type},message:"must be string,null"}];return false;}if(errors === _errs4){if(typeof data2 === "string"){if(func1(data2) > 128){validate75.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){validate75.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)){validate75.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 {validate75.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate75.errors = vErrors;return errors === 0;}validate75.evaluated = {"props":{"data":true,"next_cursor":true},"dynamicProps":false,"dynamicItems":false};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = require("./compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":2}},"definitions":[{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$":1}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}}},{"type":"object","required":["id","account_login","account_type","repository_selection","repository_count","linked_at","state"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"account_login":{"type":"string","minLength":1,"maxLength":255},"account_type":{"type":"string","enum":["user","organization"]},"repository_selection":{"type":"string","enum":["all","selected","unknown"]},"repository_count":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"linked_at":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["active","unavailable"]}}},{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$":3}},"next_cursor":{"type":["string","null"],"minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"}}},{"type":"object","required":["id","installation_id","full_name","default_branch","administrator","connection_state"],"properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"installation_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"full_name":{"type":"string","minLength":1,"maxLength":512},"default_branch":{"type":["string","null"],"minLength":1,"maxLength":255},"administrator":{"type":"boolean"},"private":{"type":"boolean"},"connection_state":{"type":"string","enum":["verified","permission_required","unavailable"]}}}]});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.validate0 = validate237;const schema244 = {"type":"object","required":["image","providers"],"properties":{"image":{"type":"string","description":"Resolved OCI reference or the canonical sha256 content selector of a Dockerfile source and context."},"providers":{"type":"array","items":{"$ref":"#/components/schemas/ImageProviderState"}}}};const schema245 = {"type":"object","required":["provider","size","state","reason"],"properties":{"provider":{"type":"string","minLength":1,"description":"Installed provider selected through this workspace's authorized offerings."},"state":{"type":"string","x-boxrouter-open-enum":true},"size":{"minimum":1,"description":"Requested memory size in GiB, or null when the copy is not size-specific.","allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"reason":{"type":["string","null"],"description":"Eligibility or preparation outcome for this provider."}}};const func1 = require("ajv/dist/runtime/ucs2length").default;function validate238(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate238.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.size === undefined) && (missing0 = "size"))) || ((data.state === undefined) && (missing0 = "state"))) || ((data.reason === undefined) && (missing0 = "reason"))){validate238.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) < 1){validate238.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate238.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.state !== undefined){const _errs3 = errors;if(typeof data.state !== "string"){validate238.errors = [{instancePath:instancePath+"/state",schemaPath:"#/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.size !== undefined){let data2 = data.size;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)))) && (data2 !== null)){const err0 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema245.properties.size.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;const _errs10 = errors;if(typeof data2 !== "bigint"){const err1 = {instancePath:instancePath+"/size",schemaPath:"#/properties/size/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+"/size",schemaPath:"#/properties/size/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate238.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){validate238.errors = [{instancePath:instancePath+"/size",schemaPath:"#/properties/size/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)){validate238.errors = [{instancePath:instancePath+"/size",schemaPath:"#/properties/size/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.reason !== undefined){let data3 = data.reason;const _errs11 = errors;if((typeof data3 !== "string") && (data3 !== null)){validate238.errors = [{instancePath:instancePath+"/reason",schemaPath:"#/properties/reason/type",keyword:"type",params:{type: schema245.properties.reason.type},message:"must be string,null"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}}}}}}else {validate238.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate238.errors = vErrors;return errors === 0;}validate238.evaluated = {"props":{"provider":true,"state":true,"size":true,"reason":true},"dynamicProps":false,"dynamicItems":false};function validate237(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate237.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.image === undefined) && (missing0 = "image")) || ((data.providers === undefined) && (missing0 = "providers"))){validate237.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.image !== undefined){const _errs1 = errors;if(typeof data.image !== "string"){validate237.errors = [{instancePath:instancePath+"/image",schemaPath:"#/properties/image/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.providers !== undefined){let data1 = data.providers;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){const _errs5 = errors;if(!(validate238(data1[i0], {instancePath:instancePath+"/providers/" + i0,parentData:data1,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate238.errors : vErrors.concat(validate238.errors);errors = vErrors.length;}var valid1 = _errs5 === errors;if(!valid1){break;}}}else {validate237.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate237.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate237.errors = vErrors;return errors === 0;}validate237.evaluated = {"props":{"image":true,"providers":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate240;function validate240(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate240.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.image === undefined) && (missing0 = "image")) || ((data.providers === undefined) && (missing0 = "providers"))){validate240.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.image !== undefined){const _errs1 = errors;if(typeof data.image !== "string"){validate240.errors = [{instancePath:instancePath+"/image",schemaPath:"#/properties/image/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.providers !== undefined){let data1 = data.providers;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){const _errs5 = errors;if(!(validate238(data1[i0], {instancePath:instancePath+"/providers/" + i0,parentData:data1,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate238.errors : vErrors.concat(validate238.errors);errors = vErrors.length;}var valid1 = _errs5 === errors;if(!valid1){break;}}}else {validate240.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate240.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate240.errors = vErrors;return errors === 0;}validate240.evaluated = {"props":{"image":true,"providers":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate242;function validate242(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate242.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.image === undefined) && (missing0 = "image")) || ((data.providers === undefined) && (missing0 = "providers"))){validate242.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.image !== undefined){const _errs1 = errors;if(typeof data.image !== "string"){validate242.errors = [{instancePath:instancePath+"/image",schemaPath:"#/properties/image/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.providers !== undefined){let data1 = data.providers;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){const _errs5 = errors;if(!(validate238(data1[i0], {instancePath:instancePath+"/providers/" + i0,parentData:data1,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate238.errors : vErrors.concat(validate238.errors);errors = vErrors.length;}var valid1 = _errs5 === errors;if(!valid1){break;}}}else {validate242.errors = [{instancePath:instancePath+"/providers",schemaPath:"#/properties/providers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate242.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate242.errors = vErrors;return errors === 0;}validate242.evaluated = {"props":{"image":true,"providers":true},"dynamicProps":false,"dynamicItems":false};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = require("./compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":0},"validate2":{"$":0}},"definitions":[{"type":"object","required":["image","providers"],"properties":{"image":{"type":"string"},"providers":{"type":"array","items":{"$":1}}}},{"type":"object","required":["provider","size","state","reason"],"properties":{"provider":{"type":"string","minLength":1},"state":{"type":"string"},"size":{"minimum":1,"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1}},"reason":{"type":["string","null"]}}}]});
|