@boxrouter/sdk 0.0.0-stage → 0.12.190

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +40 -0
  3. package/README.md +508 -2
  4. package/dist/addresses.d.ts +5 -0
  5. package/dist/addresses.js +10 -0
  6. package/dist/api-error.d.ts +62 -0
  7. package/dist/api-error.js +264 -0
  8. package/dist/boxrouter.d.ts +68 -0
  9. package/dist/boxrouter.js +291 -0
  10. package/dist/browser-session/index.d.ts +17 -0
  11. package/dist/browser-session/index.js +48 -0
  12. package/dist/browser-session/operations.gen.d.ts +272 -0
  13. package/dist/browser-session/operations.gen.js +58 -0
  14. package/dist/browser-session/responseContracts/api_keys.d.ts +2 -0
  15. package/dist/browser-session/responseContracts/api_keys.js +10 -0
  16. package/dist/browser-session/responseContracts/credits.d.ts +2 -0
  17. package/dist/browser-session/responseContracts/credits.js +8 -0
  18. package/dist/browser-session/responseContracts/github.d.ts +2 -0
  19. package/dist/browser-session/responseContracts/github.js +11 -0
  20. package/dist/browser-session/responseContracts/identity.d.ts +2 -0
  21. package/dist/browser-session/responseContracts/identity.js +30 -0
  22. package/dist/browser-session/responseContracts/organizations.d.ts +2 -0
  23. package/dist/browser-session/responseContracts/organizations.js +17 -0
  24. package/dist/browser-session/responseContracts/privacy.d.ts +2 -0
  25. package/dist/browser-session/responseContracts/privacy.js +7 -0
  26. package/dist/browser-session/responseContracts.gen.d.ts +3 -0
  27. package/dist/browser-session/responseContracts.gen.js +10 -0
  28. package/dist/browser-session/responseValidators/api_keys-diagnostics.cjs +1 -0
  29. package/dist/browser-session/responseValidators/api_keys-diagnostics.d.cts +4 -0
  30. package/dist/browser-session/responseValidators/api_keys.cjs +2 -0
  31. package/dist/browser-session/responseValidators/api_keys.d.cts +4 -0
  32. package/dist/browser-session/responseValidators/credits-diagnostics.cjs +1 -0
  33. package/dist/browser-session/responseValidators/credits-diagnostics.d.cts +3 -0
  34. package/dist/browser-session/responseValidators/credits.cjs +2 -0
  35. package/dist/browser-session/responseValidators/credits.d.cts +3 -0
  36. package/dist/browser-session/responseValidators/github-diagnostics.cjs +1 -0
  37. package/dist/browser-session/responseValidators/github-diagnostics.d.cts +3 -0
  38. package/dist/browser-session/responseValidators/github.cjs +2 -0
  39. package/dist/browser-session/responseValidators/github.d.cts +3 -0
  40. package/dist/browser-session/responseValidators/identity-diagnostics.cjs +1 -0
  41. package/dist/browser-session/responseValidators/identity-diagnostics.d.cts +23 -0
  42. package/dist/browser-session/responseValidators/identity.cjs +2 -0
  43. package/dist/browser-session/responseValidators/identity.d.cts +23 -0
  44. package/dist/browser-session/responseValidators/organizations-diagnostics.cjs +1 -0
  45. package/dist/browser-session/responseValidators/organizations-diagnostics.d.cts +15 -0
  46. package/dist/browser-session/responseValidators/organizations.cjs +2 -0
  47. package/dist/browser-session/responseValidators/organizations.d.cts +15 -0
  48. package/dist/browser-session/responseValidators/privacy-diagnostics.cjs +1 -0
  49. package/dist/browser-session/responseValidators/privacy-diagnostics.d.cts +2 -0
  50. package/dist/browser-session/responseValidators/privacy.cjs +2 -0
  51. package/dist/browser-session/responseValidators/privacy.d.cts +2 -0
  52. package/dist/client/client.gen.d.ts +2 -0
  53. package/dist/client/client.gen.js +168 -0
  54. package/dist/client/index.d.ts +10 -0
  55. package/dist/client/index.js +17 -0
  56. package/dist/client/types.gen.d.ts +120 -0
  57. package/dist/client/types.gen.js +3 -0
  58. package/dist/client/utils.gen.d.ts +37 -0
  59. package/dist/client/utils.gen.js +239 -0
  60. package/dist/client.gen.d.ts +12 -0
  61. package/dist/client.gen.js +6 -0
  62. package/dist/command-check.gen.d.ts +14 -0
  63. package/dist/command-check.gen.js +23 -0
  64. package/dist/command-input.gen.d.ts +6 -0
  65. package/dist/command-input.gen.js +45 -0
  66. package/dist/core/auth.gen.d.ts +25 -0
  67. package/dist/core/auth.gen.js +18 -0
  68. package/dist/core/binaryStream.d.ts +8 -0
  69. package/dist/core/binaryStream.js +76 -0
  70. package/dist/core/bodySerializer.gen.d.ts +25 -0
  71. package/dist/core/bodySerializer.gen.js +60 -0
  72. package/dist/core/commandValidators.cjs +1 -0
  73. package/dist/core/commandValidators.d.cts +14 -0
  74. package/dist/core/eventValidation.d.ts +17 -0
  75. package/dist/core/eventValidation.js +56 -0
  76. package/dist/core/eventValidators.cjs +1 -0
  77. package/dist/core/eventValidators.d.cts +2 -0
  78. package/dist/core/json.d.ts +3 -0
  79. package/dist/core/json.js +33 -0
  80. package/dist/core/params.gen.d.ts +43 -0
  81. package/dist/core/params.gen.js +112 -0
  82. package/dist/core/pathSerializer.gen.d.ts +33 -0
  83. package/dist/core/pathSerializer.gen.js +115 -0
  84. package/dist/core/queryKeySerializer.gen.d.ts +18 -0
  85. package/dist/core/queryKeySerializer.gen.js +98 -0
  86. package/dist/core/responseContracts/actions.d.ts +2 -0
  87. package/dist/core/responseContracts/actions.js +30 -0
  88. package/dist/core/responseContracts/agents.d.ts +2 -0
  89. package/dist/core/responseContracts/agents.js +7 -0
  90. package/dist/core/responseContracts/artifacts.d.ts +2 -0
  91. package/dist/core/responseContracts/artifacts.js +8 -0
  92. package/dist/core/responseContracts/commands.d.ts +2 -0
  93. package/dist/core/responseContracts/commands.js +6 -0
  94. package/dist/core/responseContracts/credits.d.ts +2 -0
  95. package/dist/core/responseContracts/credits.js +27 -0
  96. package/dist/core/responseContracts/files.d.ts +2 -0
  97. package/dist/core/responseContracts/files.js +15 -0
  98. package/dist/core/responseContracts/github.d.ts +2 -0
  99. package/dist/core/responseContracts/github.js +8 -0
  100. package/dist/core/responseContracts/images.d.ts +2 -0
  101. package/dist/core/responseContracts/images.js +8 -0
  102. package/dist/core/responseContracts/launchRuns.d.ts +2 -0
  103. package/dist/core/responseContracts/launchRuns.js +10 -0
  104. package/dist/core/responseContracts/launches.d.ts +2 -0
  105. package/dist/core/responseContracts/launches.js +10 -0
  106. package/dist/core/responseContracts/operations.d.ts +2 -0
  107. package/dist/core/responseContracts/operations.js +7 -0
  108. package/dist/core/responseContracts/previews.d.ts +2 -0
  109. package/dist/core/responseContracts/previews.js +8 -0
  110. package/dist/core/responseContracts/pricing.d.ts +2 -0
  111. package/dist/core/responseContracts/pricing.js +6 -0
  112. package/dist/core/responseContracts/processes.d.ts +2 -0
  113. package/dist/core/responseContracts/processes.js +11 -0
  114. package/dist/core/responseContracts/provider_accounts.d.ts +2 -0
  115. package/dist/core/responseContracts/provider_accounts.js +13 -0
  116. package/dist/core/responseContracts/providers.d.ts +2 -0
  117. package/dist/core/responseContracts/providers.js +6 -0
  118. package/dist/core/responseContracts/routing.d.ts +2 -0
  119. package/dist/core/responseContracts/routing.js +8 -0
  120. package/dist/core/responseContracts/sandboxes.d.ts +2 -0
  121. package/dist/core/responseContracts/sandboxes.js +15 -0
  122. package/dist/core/responseContracts/secrets.d.ts +2 -0
  123. package/dist/core/responseContracts/secrets.js +8 -0
  124. package/dist/core/responseContracts/spend_limits.d.ts +2 -0
  125. package/dist/core/responseContracts/spend_limits.js +8 -0
  126. package/dist/core/responseContracts/terminals.d.ts +2 -0
  127. package/dist/core/responseContracts/terminals.js +11 -0
  128. package/dist/core/responseContracts/usage.d.ts +2 -0
  129. package/dist/core/responseContracts/usage.js +7 -0
  130. package/dist/core/responseContracts/volumes.d.ts +2 -0
  131. package/dist/core/responseContracts/volumes.js +19 -0
  132. package/dist/core/responseContracts.gen.d.ts +3 -0
  133. package/dist/core/responseContracts.gen.js +27 -0
  134. package/dist/core/responseModes.d.ts +19 -0
  135. package/dist/core/responseModes.js +13 -0
  136. package/dist/core/responseValidation.d.ts +44 -0
  137. package/dist/core/responseValidation.js +174 -0
  138. package/dist/core/responseValidators/actions-diagnostics.cjs +4 -0
  139. package/dist/core/responseValidators/actions-diagnostics.d.cts +24 -0
  140. package/dist/core/responseValidators/actions.cjs +2 -0
  141. package/dist/core/responseValidators/actions.d.cts +24 -0
  142. package/dist/core/responseValidators/agents-diagnostics.cjs +1 -0
  143. package/dist/core/responseValidators/agents-diagnostics.d.cts +2 -0
  144. package/dist/core/responseValidators/agents.cjs +2 -0
  145. package/dist/core/responseValidators/agents.d.cts +2 -0
  146. package/dist/core/responseValidators/artifacts-diagnostics.cjs +1 -0
  147. package/dist/core/responseValidators/artifacts-diagnostics.d.cts +2 -0
  148. package/dist/core/responseValidators/artifacts.cjs +2 -0
  149. package/dist/core/responseValidators/artifacts.d.cts +2 -0
  150. package/dist/core/responseValidators/commands-diagnostics.cjs +1 -0
  151. package/dist/core/responseValidators/commands-diagnostics.d.cts +1 -0
  152. package/dist/core/responseValidators/commands.cjs +2 -0
  153. package/dist/core/responseValidators/commands.d.cts +1 -0
  154. package/dist/core/responseValidators/compact.cjs +122 -0
  155. package/dist/core/responseValidators/credits-diagnostics.cjs +1 -0
  156. package/dist/core/responseValidators/credits-diagnostics.d.cts +21 -0
  157. package/dist/core/responseValidators/credits.cjs +2 -0
  158. package/dist/core/responseValidators/credits.d.cts +21 -0
  159. package/dist/core/responseValidators/files-diagnostics.cjs +1 -0
  160. package/dist/core/responseValidators/files-diagnostics.d.cts +5 -0
  161. package/dist/core/responseValidators/files.cjs +2 -0
  162. package/dist/core/responseValidators/files.d.cts +5 -0
  163. package/dist/core/responseValidators/github-diagnostics.cjs +1 -0
  164. package/dist/core/responseValidators/github-diagnostics.d.cts +2 -0
  165. package/dist/core/responseValidators/github.cjs +2 -0
  166. package/dist/core/responseValidators/github.d.cts +2 -0
  167. package/dist/core/responseValidators/images-diagnostics.cjs +1 -0
  168. package/dist/core/responseValidators/images-diagnostics.d.cts +3 -0
  169. package/dist/core/responseValidators/images.cjs +2 -0
  170. package/dist/core/responseValidators/images.d.cts +3 -0
  171. package/dist/core/responseValidators/launchRuns-diagnostics.cjs +1 -0
  172. package/dist/core/responseValidators/launchRuns-diagnostics.d.cts +5 -0
  173. package/dist/core/responseValidators/launchRuns.cjs +2 -0
  174. package/dist/core/responseValidators/launchRuns.d.cts +5 -0
  175. package/dist/core/responseValidators/launches-diagnostics.cjs +10 -0
  176. package/dist/core/responseValidators/launches-diagnostics.d.cts +5 -0
  177. package/dist/core/responseValidators/launches.cjs +2 -0
  178. package/dist/core/responseValidators/launches.d.cts +5 -0
  179. package/dist/core/responseValidators/operations-diagnostics.cjs +1 -0
  180. package/dist/core/responseValidators/operations-diagnostics.d.cts +2 -0
  181. package/dist/core/responseValidators/operations.cjs +2 -0
  182. package/dist/core/responseValidators/operations.d.cts +2 -0
  183. package/dist/core/responseValidators/previews-diagnostics.cjs +1 -0
  184. package/dist/core/responseValidators/previews-diagnostics.d.cts +3 -0
  185. package/dist/core/responseValidators/previews.cjs +2 -0
  186. package/dist/core/responseValidators/previews.d.cts +3 -0
  187. package/dist/core/responseValidators/pricing-diagnostics.cjs +7 -0
  188. package/dist/core/responseValidators/pricing-diagnostics.d.cts +1 -0
  189. package/dist/core/responseValidators/pricing.cjs +2 -0
  190. package/dist/core/responseValidators/pricing.d.cts +1 -0
  191. package/dist/core/responseValidators/processes-diagnostics.cjs +1 -0
  192. package/dist/core/responseValidators/processes-diagnostics.d.cts +2 -0
  193. package/dist/core/responseValidators/processes.cjs +2 -0
  194. package/dist/core/responseValidators/processes.d.cts +2 -0
  195. package/dist/core/responseValidators/provider_accounts-diagnostics.cjs +1 -0
  196. package/dist/core/responseValidators/provider_accounts-diagnostics.d.cts +8 -0
  197. package/dist/core/responseValidators/provider_accounts.cjs +2 -0
  198. package/dist/core/responseValidators/provider_accounts.d.cts +8 -0
  199. package/dist/core/responseValidators/providers-diagnostics.cjs +1 -0
  200. package/dist/core/responseValidators/providers-diagnostics.d.cts +1 -0
  201. package/dist/core/responseValidators/providers.cjs +2 -0
  202. package/dist/core/responseValidators/providers.d.cts +1 -0
  203. package/dist/core/responseValidators/routing-diagnostics.cjs +1 -0
  204. package/dist/core/responseValidators/routing-diagnostics.d.cts +3 -0
  205. package/dist/core/responseValidators/routing.cjs +2 -0
  206. package/dist/core/responseValidators/routing.d.cts +3 -0
  207. package/dist/core/responseValidators/sandboxes-diagnostics.cjs +1 -0
  208. package/dist/core/responseValidators/sandboxes-diagnostics.d.cts +10 -0
  209. package/dist/core/responseValidators/sandboxes.cjs +2 -0
  210. package/dist/core/responseValidators/sandboxes.d.cts +10 -0
  211. package/dist/core/responseValidators/secrets-diagnostics.cjs +1 -0
  212. package/dist/core/responseValidators/secrets-diagnostics.d.cts +1 -0
  213. package/dist/core/responseValidators/secrets.cjs +2 -0
  214. package/dist/core/responseValidators/secrets.d.cts +1 -0
  215. package/dist/core/responseValidators/spend_limits-diagnostics.cjs +1 -0
  216. package/dist/core/responseValidators/spend_limits-diagnostics.d.cts +3 -0
  217. package/dist/core/responseValidators/spend_limits.cjs +2 -0
  218. package/dist/core/responseValidators/spend_limits.d.cts +3 -0
  219. package/dist/core/responseValidators/terminals-diagnostics.cjs +1 -0
  220. package/dist/core/responseValidators/terminals-diagnostics.d.cts +2 -0
  221. package/dist/core/responseValidators/terminals.cjs +2 -0
  222. package/dist/core/responseValidators/terminals.d.cts +2 -0
  223. package/dist/core/responseValidators/usage-diagnostics.cjs +1 -0
  224. package/dist/core/responseValidators/usage-diagnostics.d.cts +1 -0
  225. package/dist/core/responseValidators/usage.cjs +2 -0
  226. package/dist/core/responseValidators/usage.d.cts +1 -0
  227. package/dist/core/responseValidators/volumes-diagnostics.cjs +1 -0
  228. package/dist/core/responseValidators/volumes-diagnostics.d.cts +10 -0
  229. package/dist/core/responseValidators/volumes.cjs +2 -0
  230. package/dist/core/responseValidators/volumes.d.cts +10 -0
  231. package/dist/core/serverSentEvents.gen.d.ts +30 -0
  232. package/dist/core/serverSentEvents.gen.js +313 -0
  233. package/dist/core/streamErrors.d.ts +32 -0
  234. package/dist/core/streamErrors.js +51 -0
  235. package/dist/core/types.gen.d.ts +83 -0
  236. package/dist/core/types.gen.js +3 -0
  237. package/dist/core/utils.gen.d.ts +19 -0
  238. package/dist/core/utils.gen.js +93 -0
  239. package/dist/creation.gen.d.ts +21 -0
  240. package/dist/creation.gen.js +35 -0
  241. package/dist/data-origin.d.ts +25 -0
  242. package/dist/data-origin.js +57 -0
  243. package/dist/error-codes.gen.d.ts +2 -0
  244. package/dist/error-codes.gen.js +2 -0
  245. package/dist/idempotency.gen.d.ts +1 -0
  246. package/dist/idempotency.gen.js +60 -0
  247. package/dist/images.d.ts +74 -0
  248. package/dist/images.js +88 -0
  249. package/dist/index.d.ts +22 -0
  250. package/dist/index.js +80 -0
  251. package/dist/launch-input.gen.d.ts +9 -0
  252. package/dist/launch-input.gen.js +83 -0
  253. package/dist/launch.d.ts +28 -0
  254. package/dist/launch.js +222 -0
  255. package/dist/namespace-actions.d.mts +307 -0
  256. package/dist/namespace-actions.mjs +595 -0
  257. package/dist/namespace-agents.d.mts +33 -0
  258. package/dist/namespace-agents.mjs +40 -0
  259. package/dist/namespace-artifacts.d.mts +46 -0
  260. package/dist/namespace-artifacts.mjs +69 -0
  261. package/dist/namespace-base.d.mts +7 -0
  262. package/dist/namespace-base.mjs +7 -0
  263. package/dist/namespace-commands.d.mts +57 -0
  264. package/dist/namespace-commands.mjs +57 -0
  265. package/dist/namespace-credits.d.mts +213 -0
  266. package/dist/namespace-credits.mjs +476 -0
  267. package/dist/namespace-files.d.mts +203 -0
  268. package/dist/namespace-files.mjs +334 -0
  269. package/dist/namespace-github.d.mts +50 -0
  270. package/dist/namespace-github.mjs +68 -0
  271. package/dist/namespace-images.d.mts +52 -0
  272. package/dist/namespace-images.mjs +78 -0
  273. package/dist/namespace-launch_runs.d.mts +89 -0
  274. package/dist/namespace-launch_runs.mjs +133 -0
  275. package/dist/namespace-launches.d.mts +89 -0
  276. package/dist/namespace-launches.mjs +133 -0
  277. package/dist/namespace-operations.d.mts +45 -0
  278. package/dist/namespace-operations.mjs +52 -0
  279. package/dist/namespace-previews.d.mts +79 -0
  280. package/dist/namespace-previews.mjs +101 -0
  281. package/dist/namespace-pricing.d.mts +31 -0
  282. package/dist/namespace-pricing.mjs +22 -0
  283. package/dist/namespace-processes.d.mts +125 -0
  284. package/dist/namespace-processes.mjs +184 -0
  285. package/dist/namespace-provider_accounts.d.mts +156 -0
  286. package/dist/namespace-provider_accounts.mjs +241 -0
  287. package/dist/namespace-providers.d.mts +28 -0
  288. package/dist/namespace-providers.mjs +24 -0
  289. package/dist/namespace-routing.d.mts +64 -0
  290. package/dist/namespace-routing.mjs +86 -0
  291. package/dist/namespace-sandboxes.d.mts +287 -0
  292. package/dist/namespace-sandboxes.mjs +402 -0
  293. package/dist/namespace-secrets.d.mts +46 -0
  294. package/dist/namespace-secrets.mjs +68 -0
  295. package/dist/namespace-spend_limits.d.mts +48 -0
  296. package/dist/namespace-spend_limits.mjs +70 -0
  297. package/dist/namespace-terminals.d.mts +112 -0
  298. package/dist/namespace-terminals.mjs +177 -0
  299. package/dist/namespace-usage.d.mts +46 -0
  300. package/dist/namespace-usage.mjs +53 -0
  301. package/dist/namespace-volumes.d.mts +110 -0
  302. package/dist/namespace-volumes.mjs +269 -0
  303. package/dist/operations.d.ts +14 -0
  304. package/dist/operations.js +31 -0
  305. package/dist/retry.d.ts +8 -0
  306. package/dist/retry.js +63 -0
  307. package/dist/routing-choices.gen.d.ts +132 -0
  308. package/dist/routing-choices.gen.js +136 -0
  309. package/dist/routing.d.ts +23 -0
  310. package/dist/routing.js +38 -0
  311. package/dist/sandbox-handle.gen.d.ts +8 -0
  312. package/dist/sandbox-handle.gen.js +14 -0
  313. package/dist/sandboxes.d.ts +213 -0
  314. package/dist/sandboxes.js +507 -0
  315. package/dist/sdk.gen.d.ts +2029 -0
  316. package/dist/sdk.gen.js +3862 -0
  317. package/dist/server-timing.d.ts +19 -0
  318. package/dist/server-timing.gen.d.ts +265 -0
  319. package/dist/server-timing.gen.js +254 -0
  320. package/dist/server-timing.js +421 -0
  321. package/dist/spend-limits.d.ts +17 -0
  322. package/dist/spend-limits.js +26 -0
  323. package/dist/telemetry.d.ts +51 -0
  324. package/dist/telemetry.gen.d.ts +1 -0
  325. package/dist/telemetry.gen.js +5 -0
  326. package/dist/telemetry.js +438 -0
  327. package/dist/terminal.d.ts +61 -0
  328. package/dist/terminal.js +266 -0
  329. package/dist/transfer.d.ts +75 -0
  330. package/dist/transfer.js +389 -0
  331. package/dist/types.gen.d.ts +15016 -0
  332. package/dist/types.gen.js +3 -0
  333. package/dist/user-agent.d.ts +2 -0
  334. package/dist/user-agent.js +18 -0
  335. package/dist/version.gen.d.ts +1 -0
  336. package/dist/version.gen.js +5 -0
  337. package/dist/volumes.d.ts +33 -0
  338. package/dist/volumes.js +221 -0
  339. package/dist/waits.d.ts +31 -0
  340. package/dist/waits.js +42 -0
  341. package/dist/workflow-policy.gen.d.ts +41 -0
  342. package/dist/workflow-policy.gen.js +45 -0
  343. package/package.json +135 -4
@@ -0,0 +1 @@
1
+ "use strict";exports.validate0 = validate225;const schema233 = {"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Operation"}},"next_cursor":{"type":["string","null"]}}};const schema234 = {"type":"object","description":"Durable record of a mutation's outcome and identifiers. Error detail is returned with the original response and correlated by request_id; it is not stored in this record. Creation operations may include a sanitized route and selection summary. These fields are absent for non-create operations. Attempts may name the public route, account and supply they dispatched; payer and child identifiers, provider messages and credentials are never exposed.","required":["id","operation","outcome","observed_at","sandbox_id"],"properties":{"id":{"type":"string"},"operation":{"type":"string","description":"OpenAPI operation ID of the attempted mutation."},"outcome":{"type":"string","enum":["not_started","completed","partial","unknown"]},"observed_at":{"type":"string","format":"date-time"},"sandbox_id":{"type":["string","null"],"description":"Owned BoxRouter resource when established, including recovered creations."},"settled_by":{"type":"string","x-boxrouter-open-enum":true,"description":"Present when BoxRouter settled the operation itself rather than observing its end. `wait_timeout`: a command's wait ran out, so `outcome` is `completed` for BoxRouter's request but the command may still be running at the provider. `lifetime_elapsed`: a create whose result BoxRouter could never read, closed once the provider's maximum sandbox lifetime had passed; `outcome` stays `unknown` because BoxRouter cannot tell whether a sandbox was made, but any sandbox it made has ended, and its cost is unknown. Clients must tolerate values they do not know; absence means the outcome was observed."},"native_resource_id":{"type":"string","minLength":1,"description":"Recorded opaque handle for the operation's provider-specific resource, when known. Use it only with the original sandbox and the matching native operation family. This identifier does not grant access or prove completion. Credentials are never stored in this field; absence means no handle was recorded."},"route":{"type":"object","description":"Sanitized selected route for a create operation. Omitted for non-create operations. Contains no payer or child identifiers.","required":["provider","account_id","supply","selection"],"properties":{"provider":{"type":"string","minLength":1},"account_id":{"type":["string","null"]},"supply":{"type":"string","minLength":1},"selection":{"type":"object","required":["ranked_by","attempts","preparation_skips"],"properties":{"ranked_by":{"type":["string","null"]},"attempts":{"type":"array","description":"Provider dispatch attempts in order. Native refusal evidence is present only for a durable definite refusal; unknown outcomes never carry refusal evidence.","items":{"$ref":"#/components/schemas/CreationAttempt"}},"preparation_skips":{"type":"array","description":"Routes skipped locally before a provider dispatch.","items":{"$ref":"#/components/schemas/CreationPreparationSkip"}},"fallbacks_allowed":{"type":"boolean","description":"The effective allow_fallbacks after inheritance."},"stopped_reason":{"$ref":"#/components/schemas/CreationStoppedReason"}}}}}},"allOf":[{"if":{"properties":{"operation":{"not":{"const":"createSandbox"}}},"required":["operation"]},"then":{"not":{"required":["route"]}}}]};const schema171 = {"type":["string","null"],"x-boxrouter-open-enum":true,"description":"Why creation stopped dispatching further routes: `fallbacks_disabled` (allow_fallbacks was\nfalse and the one permitted dispatch was refused), `no_eligible_route` (every remaining\nroute was excluded), `uncertain_outcome` (a dispatch may have allocated; never retried, reconcile\nwith the operation), `authority_changed` (account, funding or privacy authority no longer\npermits the next route), `deadline_reached` and `cancelled`. Null when a route created the\nsandbox. Clients must tolerate values they do not know.\n"};const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];const func1 = require("ajv/dist/runtime/ucs2length").default;const schema235 = {"type":"object","required":["provider","outcome","native_code","native_status"],"description":"One provider dispatch made while creating, in dispatch order, including the one that\ncreated the sandbox. `outcome` is the operation vocabulary: completed, not_started\n(a definite refusal before any allocation), unknown and partial. Native refusal\nevidence is present only for a durable definite refusal. The route, account and supply\nname what was dispatched, not a confirmed binding, which is reported separately on the\nsandbox or placement. Payer, child and native payload identifiers are never returned.\n","properties":{"provider":{"type":"string","minLength":1},"outcome":{"type":"string","enum":["completed","not_started","unknown","partial"]},"native_code":{"type":["string","null"]},"native_status":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"route_id":{"type":["string","null"],"maxLength":128,"description":"The route this dispatch used."},"account_id":{"type":["string","null"],"maxLength":128,"description":"The connected account this dispatch used."},"supply":{"type":["string","null"],"maxLength":32,"description":"The funding authority of this dispatch: byok or managed."},"cause":{"$ref":"#/components/schemas/CreationRouteCause"}},"allOf":[{"if":{"properties":{"outcome":{"enum":["completed","unknown","partial"]}},"required":["outcome"]},"then":{"properties":{"native_code":{"type":"null"},"native_status":{"type":"null"}}}}]};const schema176 = {"type":"string","minLength":1,"maxLength":64,"x-boxrouter-open-enum":true,"description":"Why one route did not create the sandbox, in a bounded word: `key_rejected` (the provider\nrefused the saved key), `plan_unbuildable` (the route matched but its create could not be\nbuilt), `privacy_denied` (the workspace's privacy settings refused the route),\n`not_ready` (the route's provider session was not ready in time), `not_dispatched`\n(refused locally before any provider call) and `provider_create_failed` (the provider was\nasked and the create failed). Clients must tolerate values they do not know.\n"};function validate227(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate227.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.outcome === undefined) && (missing0 = "outcome")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.outcome !== undefined){let data0 = data.outcome;if(!(((data0 === "completed") || (data0 === "unknown")) || (data0 === "partial"))){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.native_code !== undefined){const _errs6 = errors;if(data.native_code !== null){validate227.errors = [{instancePath:instancePath+"/native_code",schemaPath:"#/allOf/0/then/properties/native_code/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid3 = _errs6 === errors;}else {var valid3 = true;}if(valid3){if(data.native_status !== undefined){const _errs8 = errors;if(data.native_status !== null){validate227.errors = [{instancePath:instancePath+"/native_status",schemaPath:"#/allOf/0/then/properties/native_status/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid3 = _errs8 === errors;}else {var valid3 = true;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.native_code = true;props0.native_status = true;props0.outcome = true;}}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate227.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.provider === undefined) && (missing1 = "provider")) || ((data.outcome === undefined) && (missing1 = "outcome"))) || ((data.native_code === undefined) && (missing1 = "native_code"))) || ((data.native_status === undefined) && (missing1 = "native_status"))){validate227.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.provider = true;props0.outcome = true;props0.native_code = true;props0.native_status = true;props0.route_id = true;props0.account_id = true;props0.supply = true;props0.cause = true;}if(data.provider !== undefined){let data3 = data.provider;const _errs10 = errors;if(errors === _errs10){if(typeof data3 === "string"){if(func1(data3) < 1){validate227.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate227.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs10 === errors;}else {var valid4 = true;}if(valid4){if(data.outcome !== undefined){let data4 = data.outcome;const _errs12 = errors;if(typeof data4 !== "string"){validate227.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data4 === "completed") || (data4 === "not_started")) || (data4 === "unknown")) || (data4 === "partial"))){validate227.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/enum",keyword:"enum",params:{allowedValues: schema235.properties.outcome.enum},message:"must be equal to one of the allowed values"}];return false;}var valid4 = _errs12 === errors;}else {var valid4 = true;}if(valid4){if(data.native_code !== undefined){let data5 = data.native_code;const _errs14 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate227.errors = [{instancePath:instancePath+"/native_code",schemaPath:"#/properties/native_code/type",keyword:"type",params:{type: schema235.properties.native_code.type},message:"must be string,null"}];return false;}var valid4 = _errs14 === errors;}else {var valid4 = true;}if(valid4){if(data.native_status !== undefined){let data6 = data.native_status;const _errs16 = errors;const _errs18 = errors;let valid6 = false;const _errs19 = errors;if((!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) && (data6 !== null)){const err3 = {instancePath:instancePath+"/native_status",schemaPath:"#/properties/native_status/allOf/0/anyOf/0/type",keyword:"type",params:{type: schema235.properties.native_status.allOf[0].anyOf[0].type},message:"must be integer,null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs19 === errors;valid6 = valid6 || _valid1;const _errs21 = errors;if(typeof data6 !== "bigint"){const err4 = {instancePath:instancePath+"/native_status",schemaPath:"#/properties/native_status/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs21 === errors;valid6 = valid6 || _valid1;if(!valid6){const err5 = {instancePath:instancePath+"/native_status",schemaPath:"#/properties/native_status/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate227.errors = vErrors;return false;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}var valid4 = _errs16 === errors;}else {var valid4 = true;}if(valid4){if(data.route_id !== undefined){let data7 = data.route_id;const _errs22 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate227.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/type",keyword:"type",params:{type: schema235.properties.route_id.type},message:"must be string,null"}];return false;}if(errors === _errs22){if(typeof data7 === "string"){if(func1(data7) > 128){validate227.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid4 = _errs22 === errors;}else {var valid4 = true;}if(valid4){if(data.account_id !== undefined){let data8 = data.account_id;const _errs24 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate227.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: schema235.properties.account_id.type},message:"must be string,null"}];return false;}if(errors === _errs24){if(typeof data8 === "string"){if(func1(data8) > 128){validate227.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid4 = _errs24 === errors;}else {var valid4 = true;}if(valid4){if(data.supply !== undefined){let data9 = data.supply;const _errs26 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate227.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/type",keyword:"type",params:{type: schema235.properties.supply.type},message:"must be string,null"}];return false;}if(errors === _errs26){if(typeof data9 === "string"){if(func1(data9) > 32){validate227.errors = [{instancePath:instancePath+"/supply",schemaPath:"#/properties/supply/maxLength",keyword:"maxLength",params:{limit: 32},message:"must NOT have more than 32 characters"}];return false;}}}var valid4 = _errs26 === errors;}else {var valid4 = true;}if(valid4){if(data.cause !== undefined){let data10 = data.cause;const _errs28 = errors;const _errs29 = errors;if(errors === _errs29){if(typeof data10 === "string"){if(func1(data10) > 64){validate227.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data10) < 1){validate227.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate227.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid4 = _errs28 === errors;}else {var valid4 = true;}}}}}}}}}}else {validate227.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate227.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate227.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema237 = {"type":"object","required":["provider","reason_code"],"description":"A route skipped locally before any provider dispatch. It is not an attempt.","properties":{"provider":{"type":"string","minLength":1},"route_id":{"type":["string","null"],"maxLength":128,"description":"The route that was skipped."},"account_id":{"type":["string","null"],"maxLength":128,"description":"The connected account of the skipped route."},"reason_code":{"type":"string","minLength":1},"cause":{"$ref":"#/components/schemas/CreationRouteCause"}}};function validate229(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate229.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.provider === undefined) && (missing0 = "provider")) || ((data.reason_code === undefined) && (missing0 = "reason_code"))){validate229.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){validate229.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate229.errors = [{instancePath:instancePath+"/provider",schemaPath:"#/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.route_id !== undefined){let data1 = data.route_id;const _errs3 = errors;if((typeof data1 !== "string") && (data1 !== null)){validate229.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/type",keyword:"type",params:{type: schema237.properties.route_id.type},message:"must be string,null"}];return false;}if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 128){validate229.errors = [{instancePath:instancePath+"/route_id",schemaPath:"#/properties/route_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.account_id !== undefined){let data2 = data.account_id;const _errs5 = errors;if((typeof data2 !== "string") && (data2 !== null)){validate229.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/type",keyword:"type",params:{type: schema237.properties.account_id.type},message:"must be string,null"}];return false;}if(errors === _errs5){if(typeof data2 === "string"){if(func1(data2) > 128){validate229.errors = [{instancePath:instancePath+"/account_id",schemaPath:"#/properties/account_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.reason_code !== undefined){let data3 = data.reason_code;const _errs7 = errors;if(errors === _errs7){if(typeof data3 === "string"){if(func1(data3) < 1){validate229.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate229.errors = [{instancePath:instancePath+"/reason_code",schemaPath:"#/properties/reason_code/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.cause !== undefined){let data4 = data.cause;const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(typeof data4 === "string"){if(func1(data4) > 64){validate229.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/maxLength",keyword:"maxLength",params:{limit: 64},message:"must NOT have more than 64 characters"}];return false;}else {if(func1(data4) < 1){validate229.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate229.errors = [{instancePath:instancePath+"/cause",schemaPath:"#/components/schemas/CreationRouteCause/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}}}}}}}else {validate229.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate229.errors = vErrors;return errors === 0;}validate229.evaluated = {"props":{"provider":true,"route_id":true,"account_id":true,"reason_code":true,"cause":true},"dynamicProps":false,"dynamicItems":false};function validate226(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate226.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.operation === undefined) && (missing0 = "operation")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.operation !== undefined){const _errs5 = errors;const _errs6 = errors;if("createSandbox" !== data.operation){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid3 = _errs6 === errors;if(valid3){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.route === undefined) && (missing1 = "route")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid4 = _errs9 === errors;if(valid4){validate226.errors = [{instancePath,schemaPath:"#/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var _valid0 = _errs7 === errors;valid1 = _valid0;}if(!valid1){const err4 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate226.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.id === undefined) && (missing2 = "id")) || ((data.operation === undefined) && (missing2 = "operation"))) || ((data.outcome === undefined) && (missing2 = "outcome"))) || ((data.observed_at === undefined) && (missing2 = "observed_at"))) || ((data.sandbox_id === undefined) && (missing2 = "sandbox_id"))){validate226.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data.id !== undefined){const _errs10 = errors;if(typeof data.id !== "string"){validate226.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs10 === errors;}else {var valid5 = true;}if(valid5){if(data.operation !== undefined){const _errs12 = errors;if(typeof data.operation !== "string"){validate226.errors = [{instancePath:instancePath+"/operation",schemaPath:"#/properties/operation/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs12 === errors;}else {var valid5 = true;}if(valid5){if(data.outcome !== undefined){let data3 = data.outcome;const _errs14 = errors;if(typeof data3 !== "string"){validate226.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data3 === "not_started") || (data3 === "completed")) || (data3 === "partial")) || (data3 === "unknown"))){validate226.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/enum",keyword:"enum",params:{allowedValues: schema234.properties.outcome.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs14 === errors;}else {var valid5 = true;}if(valid5){if(data.observed_at !== undefined){let data4 = data.observed_at;const _errs16 = errors;if(errors === _errs16){if(errors === _errs16){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate226.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate226.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid5 = _errs16 === errors;}else {var valid5 = true;}if(valid5){if(data.sandbox_id !== undefined){let data5 = data.sandbox_id;const _errs18 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate226.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: schema234.properties.sandbox_id.type},message:"must be string,null"}];return false;}var valid5 = _errs18 === errors;}else {var valid5 = true;}if(valid5){if(data.settled_by !== undefined){const _errs20 = errors;if(typeof data.settled_by !== "string"){validate226.errors = [{instancePath:instancePath+"/settled_by",schemaPath:"#/properties/settled_by/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs20 === errors;}else {var valid5 = true;}if(valid5){if(data.native_resource_id !== undefined){let data7 = data.native_resource_id;const _errs22 = errors;if(errors === _errs22){if(typeof data7 === "string"){if(func1(data7) < 1){validate226.errors = [{instancePath:instancePath+"/native_resource_id",schemaPath:"#/properties/native_resource_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate226.errors = [{instancePath:instancePath+"/native_resource_id",schemaPath:"#/properties/native_resource_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs22 === errors;}else {var valid5 = true;}if(valid5){if(data.route !== undefined){let data8 = data.route;const _errs24 = errors;if(errors === _errs24){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){let missing3;if(((((data8.provider === undefined) && (missing3 = "provider")) || ((data8.account_id === undefined) && (missing3 = "account_id"))) || ((data8.supply === undefined) && (missing3 = "supply"))) || ((data8.selection === undefined) && (missing3 = "selection"))){validate226.errors = [{instancePath:instancePath+"/route",schemaPath:"#/properties/route/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data8.provider !== undefined){let data9 = data8.provider;const _errs26 = errors;if(errors === _errs26){if(typeof data9 === "string"){if(func1(data9) < 1){validate226.errors = [{instancePath:instancePath+"/route/provider",schemaPath:"#/properties/route/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate226.errors = [{instancePath:instancePath+"/route/provider",schemaPath:"#/properties/route/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs26 === errors;}else {var valid6 = true;}if(valid6){if(data8.account_id !== undefined){let data10 = data8.account_id;const _errs28 = errors;if((typeof data10 !== "string") && (data10 !== null)){validate226.errors = [{instancePath:instancePath+"/route/account_id",schemaPath:"#/properties/route/properties/account_id/type",keyword:"type",params:{type: schema234.properties.route.properties.account_id.type},message:"must be string,null"}];return false;}var valid6 = _errs28 === errors;}else {var valid6 = true;}if(valid6){if(data8.supply !== undefined){let data11 = data8.supply;const _errs30 = errors;if(errors === _errs30){if(typeof data11 === "string"){if(func1(data11) < 1){validate226.errors = [{instancePath:instancePath+"/route/supply",schemaPath:"#/properties/route/properties/supply/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate226.errors = [{instancePath:instancePath+"/route/supply",schemaPath:"#/properties/route/properties/supply/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs30 === errors;}else {var valid6 = true;}if(valid6){if(data8.selection !== undefined){let data12 = data8.selection;const _errs32 = errors;if(errors === _errs32){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){let missing4;if((((data12.ranked_by === undefined) && (missing4 = "ranked_by")) || ((data12.attempts === undefined) && (missing4 = "attempts"))) || ((data12.preparation_skips === undefined) && (missing4 = "preparation_skips"))){validate226.errors = [{instancePath:instancePath+"/route/selection",schemaPath:"#/properties/route/properties/selection/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(data12.ranked_by !== undefined){let data13 = data12.ranked_by;const _errs34 = errors;if((typeof data13 !== "string") && (data13 !== null)){validate226.errors = [{instancePath:instancePath+"/route/selection/ranked_by",schemaPath:"#/properties/route/properties/selection/properties/ranked_by/type",keyword:"type",params:{type: schema234.properties.route.properties.selection.properties.ranked_by.type},message:"must be string,null"}];return false;}var valid7 = _errs34 === errors;}else {var valid7 = true;}if(valid7){if(data12.attempts !== undefined){let data14 = data12.attempts;const _errs36 = errors;if(errors === _errs36){if(Array.isArray(data14)){var valid8 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){const _errs38 = errors;if(!(validate227(data14[i0], {instancePath:instancePath+"/route/selection/attempts/" + i0,parentData:data14,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate227.errors : vErrors.concat(validate227.errors);errors = vErrors.length;}var valid8 = _errs38 === errors;if(!valid8){break;}}}else {validate226.errors = [{instancePath:instancePath+"/route/selection/attempts",schemaPath:"#/properties/route/properties/selection/properties/attempts/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid7 = _errs36 === errors;}else {var valid7 = true;}if(valid7){if(data12.preparation_skips !== undefined){let data16 = data12.preparation_skips;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data16)){var valid9 = true;const len1 = data16.length;for(let i1=0; i1<len1; i1++){const _errs41 = errors;if(!(validate229(data16[i1], {instancePath:instancePath+"/route/selection/preparation_skips/" + i1,parentData:data16,parentDataProperty:i1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate229.errors : vErrors.concat(validate229.errors);errors = vErrors.length;}var valid9 = _errs41 === errors;if(!valid9){break;}}}else {validate226.errors = [{instancePath:instancePath+"/route/selection/preparation_skips",schemaPath:"#/properties/route/properties/selection/properties/preparation_skips/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid7 = _errs39 === errors;}else {var valid7 = true;}if(valid7){if(data12.fallbacks_allowed !== undefined){const _errs42 = errors;if(typeof data12.fallbacks_allowed !== "boolean"){validate226.errors = [{instancePath:instancePath+"/route/selection/fallbacks_allowed",schemaPath:"#/properties/route/properties/selection/properties/fallbacks_allowed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid7 = _errs42 === errors;}else {var valid7 = true;}if(valid7){if(data12.stopped_reason !== undefined){let data19 = data12.stopped_reason;const _errs44 = errors;if((typeof data19 !== "string") && (data19 !== null)){validate226.errors = [{instancePath:instancePath+"/route/selection/stopped_reason",schemaPath:"#/components/schemas/CreationStoppedReason/type",keyword:"type",params:{type: schema171.type},message:"must be string,null"}];return false;}var valid7 = _errs44 === errors;}else {var valid7 = true;}}}}}}}else {validate226.errors = [{instancePath:instancePath+"/route/selection",schemaPath:"#/properties/route/properties/selection/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid6 = _errs32 === errors;}else {var valid6 = true;}}}}}}else {validate226.errors = [{instancePath:instancePath+"/route",schemaPath:"#/properties/route/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid5 = _errs24 === errors;}else {var valid5 = true;}}}}}}}}}}else {validate226.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate226.errors = vErrors;return errors === 0;}validate226.evaluated = {"props":{"id":true,"operation":true,"outcome":true,"observed_at":true,"sandbox_id":true,"settled_by":true,"native_resource_id":true,"route":true},"dynamicProps":false,"dynamicItems":false};function validate225(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate225.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"))){validate225.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(!(validate226(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate226.errors : vErrors.concat(validate226.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate225.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)){validate225.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema233.properties.next_cursor.type},message:"must be string,null"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}else {validate225.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate225.errors = vErrors;return errors === 0;}validate225.evaluated = {"props":{"data":true,"next_cursor":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate232;function validate232(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate232.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.operation === undefined) && (missing0 = "operation")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.operation !== undefined){const _errs5 = errors;const _errs6 = errors;if("createSandbox" !== data.operation){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var valid3 = _errs6 === errors;if(valid3){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.route === undefined) && (missing1 = "route")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}var valid4 = _errs9 === errors;if(valid4){validate232.errors = [{instancePath,schemaPath:"#/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}var _valid0 = _errs7 === errors;valid1 = _valid0;}if(!valid1){const err4 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;validate232.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((((((data.id === undefined) && (missing2 = "id")) || ((data.operation === undefined) && (missing2 = "operation"))) || ((data.outcome === undefined) && (missing2 = "outcome"))) || ((data.observed_at === undefined) && (missing2 = "observed_at"))) || ((data.sandbox_id === undefined) && (missing2 = "sandbox_id"))){validate232.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data.id !== undefined){const _errs10 = errors;if(typeof data.id !== "string"){validate232.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs10 === errors;}else {var valid5 = true;}if(valid5){if(data.operation !== undefined){const _errs12 = errors;if(typeof data.operation !== "string"){validate232.errors = [{instancePath:instancePath+"/operation",schemaPath:"#/properties/operation/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs12 === errors;}else {var valid5 = true;}if(valid5){if(data.outcome !== undefined){let data3 = data.outcome;const _errs14 = errors;if(typeof data3 !== "string"){validate232.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((((data3 === "not_started") || (data3 === "completed")) || (data3 === "partial")) || (data3 === "unknown"))){validate232.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/enum",keyword:"enum",params:{allowedValues: schema234.properties.outcome.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs14 === errors;}else {var valid5 = true;}if(valid5){if(data.observed_at !== undefined){let data4 = data.observed_at;const _errs16 = errors;if(errors === _errs16){if(errors === _errs16){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate232.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate232.errors = [{instancePath:instancePath+"/observed_at",schemaPath:"#/properties/observed_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid5 = _errs16 === errors;}else {var valid5 = true;}if(valid5){if(data.sandbox_id !== undefined){let data5 = data.sandbox_id;const _errs18 = errors;if((typeof data5 !== "string") && (data5 !== null)){validate232.errors = [{instancePath:instancePath+"/sandbox_id",schemaPath:"#/properties/sandbox_id/type",keyword:"type",params:{type: schema234.properties.sandbox_id.type},message:"must be string,null"}];return false;}var valid5 = _errs18 === errors;}else {var valid5 = true;}if(valid5){if(data.settled_by !== undefined){const _errs20 = errors;if(typeof data.settled_by !== "string"){validate232.errors = [{instancePath:instancePath+"/settled_by",schemaPath:"#/properties/settled_by/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs20 === errors;}else {var valid5 = true;}if(valid5){if(data.native_resource_id !== undefined){let data7 = data.native_resource_id;const _errs22 = errors;if(errors === _errs22){if(typeof data7 === "string"){if(func1(data7) < 1){validate232.errors = [{instancePath:instancePath+"/native_resource_id",schemaPath:"#/properties/native_resource_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate232.errors = [{instancePath:instancePath+"/native_resource_id",schemaPath:"#/properties/native_resource_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid5 = _errs22 === errors;}else {var valid5 = true;}if(valid5){if(data.route !== undefined){let data8 = data.route;const _errs24 = errors;if(errors === _errs24){if(data8 && typeof data8 == "object" && !Array.isArray(data8)){let missing3;if(((((data8.provider === undefined) && (missing3 = "provider")) || ((data8.account_id === undefined) && (missing3 = "account_id"))) || ((data8.supply === undefined) && (missing3 = "supply"))) || ((data8.selection === undefined) && (missing3 = "selection"))){validate232.errors = [{instancePath:instancePath+"/route",schemaPath:"#/properties/route/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data8.provider !== undefined){let data9 = data8.provider;const _errs26 = errors;if(errors === _errs26){if(typeof data9 === "string"){if(func1(data9) < 1){validate232.errors = [{instancePath:instancePath+"/route/provider",schemaPath:"#/properties/route/properties/provider/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate232.errors = [{instancePath:instancePath+"/route/provider",schemaPath:"#/properties/route/properties/provider/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs26 === errors;}else {var valid6 = true;}if(valid6){if(data8.account_id !== undefined){let data10 = data8.account_id;const _errs28 = errors;if((typeof data10 !== "string") && (data10 !== null)){validate232.errors = [{instancePath:instancePath+"/route/account_id",schemaPath:"#/properties/route/properties/account_id/type",keyword:"type",params:{type: schema234.properties.route.properties.account_id.type},message:"must be string,null"}];return false;}var valid6 = _errs28 === errors;}else {var valid6 = true;}if(valid6){if(data8.supply !== undefined){let data11 = data8.supply;const _errs30 = errors;if(errors === _errs30){if(typeof data11 === "string"){if(func1(data11) < 1){validate232.errors = [{instancePath:instancePath+"/route/supply",schemaPath:"#/properties/route/properties/supply/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}else {validate232.errors = [{instancePath:instancePath+"/route/supply",schemaPath:"#/properties/route/properties/supply/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs30 === errors;}else {var valid6 = true;}if(valid6){if(data8.selection !== undefined){let data12 = data8.selection;const _errs32 = errors;if(errors === _errs32){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){let missing4;if((((data12.ranked_by === undefined) && (missing4 = "ranked_by")) || ((data12.attempts === undefined) && (missing4 = "attempts"))) || ((data12.preparation_skips === undefined) && (missing4 = "preparation_skips"))){validate232.errors = [{instancePath:instancePath+"/route/selection",schemaPath:"#/properties/route/properties/selection/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(data12.ranked_by !== undefined){let data13 = data12.ranked_by;const _errs34 = errors;if((typeof data13 !== "string") && (data13 !== null)){validate232.errors = [{instancePath:instancePath+"/route/selection/ranked_by",schemaPath:"#/properties/route/properties/selection/properties/ranked_by/type",keyword:"type",params:{type: schema234.properties.route.properties.selection.properties.ranked_by.type},message:"must be string,null"}];return false;}var valid7 = _errs34 === errors;}else {var valid7 = true;}if(valid7){if(data12.attempts !== undefined){let data14 = data12.attempts;const _errs36 = errors;if(errors === _errs36){if(Array.isArray(data14)){var valid8 = true;const len0 = data14.length;for(let i0=0; i0<len0; i0++){const _errs38 = errors;if(!(validate227(data14[i0], {instancePath:instancePath+"/route/selection/attempts/" + i0,parentData:data14,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate227.errors : vErrors.concat(validate227.errors);errors = vErrors.length;}var valid8 = _errs38 === errors;if(!valid8){break;}}}else {validate232.errors = [{instancePath:instancePath+"/route/selection/attempts",schemaPath:"#/properties/route/properties/selection/properties/attempts/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid7 = _errs36 === errors;}else {var valid7 = true;}if(valid7){if(data12.preparation_skips !== undefined){let data16 = data12.preparation_skips;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data16)){var valid9 = true;const len1 = data16.length;for(let i1=0; i1<len1; i1++){const _errs41 = errors;if(!(validate229(data16[i1], {instancePath:instancePath+"/route/selection/preparation_skips/" + i1,parentData:data16,parentDataProperty:i1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate229.errors : vErrors.concat(validate229.errors);errors = vErrors.length;}var valid9 = _errs41 === errors;if(!valid9){break;}}}else {validate232.errors = [{instancePath:instancePath+"/route/selection/preparation_skips",schemaPath:"#/properties/route/properties/selection/properties/preparation_skips/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid7 = _errs39 === errors;}else {var valid7 = true;}if(valid7){if(data12.fallbacks_allowed !== undefined){const _errs42 = errors;if(typeof data12.fallbacks_allowed !== "boolean"){validate232.errors = [{instancePath:instancePath+"/route/selection/fallbacks_allowed",schemaPath:"#/properties/route/properties/selection/properties/fallbacks_allowed/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid7 = _errs42 === errors;}else {var valid7 = true;}if(valid7){if(data12.stopped_reason !== undefined){let data19 = data12.stopped_reason;const _errs44 = errors;if((typeof data19 !== "string") && (data19 !== null)){validate232.errors = [{instancePath:instancePath+"/route/selection/stopped_reason",schemaPath:"#/components/schemas/CreationStoppedReason/type",keyword:"type",params:{type: schema171.type},message:"must be string,null"}];return false;}var valid7 = _errs44 === errors;}else {var valid7 = true;}}}}}}}else {validate232.errors = [{instancePath:instancePath+"/route/selection",schemaPath:"#/properties/route/properties/selection/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid6 = _errs32 === errors;}else {var valid6 = true;}}}}}}else {validate232.errors = [{instancePath:instancePath+"/route",schemaPath:"#/properties/route/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid5 = _errs24 === errors;}else {var valid5 = true;}}}}}}}}}}else {validate232.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate232.errors = vErrors;return errors === 0;}validate232.evaluated = {"props":{"id":true,"operation":true,"outcome":true,"observed_at":true,"sandbox_id":true,"settled_by":true,"native_resource_id":true,"route":true},"dynamicProps":false,"dynamicItems":false};
@@ -0,0 +1,2 @@
1
+ export declare const validate0: (value: unknown) => boolean;
2
+ export declare const validate1: (value: unknown) => boolean;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = require("./compact.cjs")({"roots":{"validate0":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$":0}},"next_cursor":{"type":["string","null"]}}},"validate1":{"$":0}},"definitions":[{"type":"object","required":["id","operation","outcome","observed_at","sandbox_id"],"properties":{"id":{"type":"string"},"operation":{"type":"string"},"outcome":{"type":"string","enum":["not_started","completed","partial","unknown"]},"observed_at":{"type":"string","format":"date-time"},"sandbox_id":{"type":["string","null"]},"settled_by":{"type":"string"},"native_resource_id":{"type":"string","minLength":1},"route":{"type":"object","required":["provider","account_id","supply","selection"],"properties":{"provider":{"type":"string","minLength":1},"account_id":{"type":["string","null"]},"supply":{"type":"string","minLength":1},"selection":{"type":"object","required":["ranked_by","attempts","preparation_skips"],"properties":{"ranked_by":{"type":["string","null"]},"attempts":{"type":"array","items":{"$":1}},"preparation_skips":{"type":"array","items":{"$":3}},"fallbacks_allowed":{"type":"boolean"},"stopped_reason":{"$":4}}}}}},"allOf":[{"if":{"properties":{"operation":{"not":{"const":"createSandbox"}}},"required":["operation"]},"then":{"not":{"required":["route"]}}}]},{"type":"object","required":["provider","outcome","native_code","native_status"],"properties":{"provider":{"type":"string","minLength":1},"outcome":{"type":"string","enum":["completed","not_started","unknown","partial"]},"native_code":{"type":["string","null"]},"native_status":{"allOf":[{"anyOf":[{"type":["integer","null"]},{"x-boxrouter-bigint":true}]}]},"route_id":{"type":["string","null"],"maxLength":128},"account_id":{"type":["string","null"],"maxLength":128},"supply":{"type":["string","null"],"maxLength":32},"cause":{"$":2}},"allOf":[{"if":{"properties":{"outcome":{"enum":["completed","unknown","partial"]}},"required":["outcome"]},"then":{"properties":{"native_code":{"type":"null"},"native_status":{"type":"null"}}}}]},{"type":"string","minLength":1,"maxLength":64},{"type":"object","required":["provider","reason_code"],"properties":{"provider":{"type":"string","minLength":1},"route_id":{"type":["string","null"],"maxLength":128},"account_id":{"type":["string","null"],"maxLength":128},"reason_code":{"type":"string","minLength":1},"cause":{"$":2}}},{"type":["string","null"]}]});
@@ -0,0 +1,2 @@
1
+ export declare const validate0: (value: unknown) => boolean;
2
+ export declare const validate1: (value: unknown) => boolean;
@@ -0,0 +1 @@
1
+ "use strict";exports.validate0 = validate316;const schema310 = {"type":"object","required":["data","next_cursor"],"description":"The previews one sandbox has open, recorded by BoxRouter and read without observing any provider.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Preview"}},"next_cursor":{"type":["string","null"]}}};const schema311 = {"type":"object","required":["id","port","url","access","credential","headers","expires_at","created_at"],"description":"One open preview, as BoxRouter recorded it. A resume forgets a sandbox's previews,\nbecause no adapter can re-read one: open again rather than caching a URL.\n","properties":{"id":{"type":"string","description":"BoxRouter's own ID, prefixed pv_, which a revoke names."},"port":{"minimum":1,"maximum":65535,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":65535}},"url":{"type":"string","format":"uri"},"access":{"type":"string","enum":["public","private"]},"credential":{"type":["string","null"],"enum":["link","header",null],"description":"Where a private preview's credential is: link, in the url, which a person can\nclick; header, in headers, to send with every request. Null for a public one.\n"},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Credential headers to send with every request; empty unless credential is header."},"expires_at":{"type":["string","null"],"format":"date-time","description":"Set only where the provider enforces an expiry, and never sooner than a granted\nlink_lifetime_seconds after created_at. There is no way to shorten a link (D30).\n"},"created_at":{"type":"string","format":"date-time"}}};const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate317(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate317.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.port === undefined) && (missing0 = "port"))) || ((data.url === undefined) && (missing0 = "url"))) || ((data.access === undefined) && (missing0 = "access"))) || ((data.credential === undefined) && (missing0 = "credential"))) || ((data.headers === undefined) && (missing0 = "headers"))) || ((data.expires_at === undefined) && (missing0 = "expires_at"))) || ((data.created_at === undefined) && (missing0 = "created_at"))){validate317.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){const _errs1 = errors;if(typeof data.id !== "string"){validate317.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.port !== undefined){let data1 = data.port;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+"/port",schemaPath:"#/properties/port/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;const _errs8 = errors;if(typeof data1 !== "bigint"){const err1 = {instancePath:instancePath+"/port",schemaPath:"#/properties/port/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/port",schemaPath:"#/properties/port/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate317.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid1 = _errs4 === errors;if(valid1){if(typeof data1 === "bigint"){if(data1 < 1){validate317.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data1 > 65535){validate317.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs3){if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 65535 || isNaN(data1)){validate317.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data1 < 1 || isNaN(data1)){validate317.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.url !== undefined){const _errs9 = errors;if(errors === _errs9){if(errors === _errs9){if(!(typeof data.url === "string")){validate317.errors = [{instancePath:instancePath+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.access !== undefined){let data3 = data.access;const _errs11 = errors;if(typeof data3 !== "string"){validate317.errors = [{instancePath:instancePath+"/access",schemaPath:"#/properties/access/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data3 === "public") || (data3 === "private"))){validate317.errors = [{instancePath:instancePath+"/access",schemaPath:"#/properties/access/enum",keyword:"enum",params:{allowedValues: schema311.properties.access.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.credential !== undefined){let data4 = data.credential;const _errs13 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate317.errors = [{instancePath:instancePath+"/credential",schemaPath:"#/properties/credential/type",keyword:"type",params:{type: schema311.properties.credential.type},message:"must be string,null"}];return false;}if(!(((data4 === "link") || (data4 === "header")) || (data4 === null))){validate317.errors = [{instancePath:instancePath+"/credential",schemaPath:"#/properties/credential/enum",keyword:"enum",params:{allowedValues: schema311.properties.credential.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.headers !== undefined){let data5 = data.headers;const _errs15 = errors;if(errors === _errs15){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){for(const key0 in data5){const _errs18 = errors;if(typeof data5[key0] !== "string"){validate317.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 valid3 = _errs18 === errors;if(!valid3){break;}}}else {validate317.errors = [{instancePath:instancePath+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.expires_at !== undefined){let data7 = data.expires_at;const _errs20 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate317.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/type",keyword:"type",params:{type: schema311.properties.expires_at.type},message:"must be string,null"}];return false;}if(errors === _errs20){if(errors === _errs20){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate317.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data8 = data.created_at;const _errs22 = errors;if(errors === _errs22){if(errors === _errs22){if(typeof data8 === "string"){if(!(formats0.validate(data8))){validate317.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate317.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs22 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate317.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate317.errors = vErrors;return errors === 0;}validate317.evaluated = {"props":{"id":true,"port":true,"url":true,"access":true,"credential":true,"headers":true,"expires_at":true,"created_at":true},"dynamicProps":false,"dynamicItems":false};function validate316(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate316.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"))){validate316.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(!(validate317(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate317.errors : vErrors.concat(validate317.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate316.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)){validate316.errors = [{instancePath:instancePath+"/next_cursor",schemaPath:"#/properties/next_cursor/type",keyword:"type",params:{type: schema310.properties.next_cursor.type},message:"must be string,null"}];return false;}var valid0 = _errs4 === errors;}else {var valid0 = true;}}}}else {validate316.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate316.errors = vErrors;return errors === 0;}validate316.evaluated = {"props":{"data":true,"next_cursor":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate319;function validate319(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate319.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.port === undefined) && (missing0 = "port"))) || ((data.url === undefined) && (missing0 = "url"))) || ((data.access === undefined) && (missing0 = "access"))) || ((data.credential === undefined) && (missing0 = "credential"))) || ((data.headers === undefined) && (missing0 = "headers"))) || ((data.expires_at === undefined) && (missing0 = "expires_at"))) || ((data.created_at === undefined) && (missing0 = "created_at"))){validate319.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){const _errs1 = errors;if(typeof data.id !== "string"){validate319.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.port !== undefined){let data1 = data.port;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+"/port",schemaPath:"#/properties/port/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;const _errs8 = errors;if(typeof data1 !== "bigint"){const err1 = {instancePath:instancePath+"/port",schemaPath:"#/properties/port/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/port",schemaPath:"#/properties/port/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate319.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid1 = _errs4 === errors;if(valid1){if(typeof data1 === "bigint"){if(data1 < 1){validate319.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data1 > 65535){validate319.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs3){if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 65535 || isNaN(data1)){validate319.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data1 < 1 || isNaN(data1)){validate319.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.url !== undefined){const _errs9 = errors;if(errors === _errs9){if(errors === _errs9){if(!(typeof data.url === "string")){validate319.errors = [{instancePath:instancePath+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.access !== undefined){let data3 = data.access;const _errs11 = errors;if(typeof data3 !== "string"){validate319.errors = [{instancePath:instancePath+"/access",schemaPath:"#/properties/access/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data3 === "public") || (data3 === "private"))){validate319.errors = [{instancePath:instancePath+"/access",schemaPath:"#/properties/access/enum",keyword:"enum",params:{allowedValues: schema311.properties.access.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.credential !== undefined){let data4 = data.credential;const _errs13 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate319.errors = [{instancePath:instancePath+"/credential",schemaPath:"#/properties/credential/type",keyword:"type",params:{type: schema311.properties.credential.type},message:"must be string,null"}];return false;}if(!(((data4 === "link") || (data4 === "header")) || (data4 === null))){validate319.errors = [{instancePath:instancePath+"/credential",schemaPath:"#/properties/credential/enum",keyword:"enum",params:{allowedValues: schema311.properties.credential.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.headers !== undefined){let data5 = data.headers;const _errs15 = errors;if(errors === _errs15){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){for(const key0 in data5){const _errs18 = errors;if(typeof data5[key0] !== "string"){validate319.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 valid3 = _errs18 === errors;if(!valid3){break;}}}else {validate319.errors = [{instancePath:instancePath+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.expires_at !== undefined){let data7 = data.expires_at;const _errs20 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate319.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/type",keyword:"type",params:{type: schema311.properties.expires_at.type},message:"must be string,null"}];return false;}if(errors === _errs20){if(errors === _errs20){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate319.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data8 = data.created_at;const _errs22 = errors;if(errors === _errs22){if(errors === _errs22){if(typeof data8 === "string"){if(!(formats0.validate(data8))){validate319.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate319.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs22 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate319.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate319.errors = vErrors;return errors === 0;}validate319.evaluated = {"props":{"id":true,"port":true,"url":true,"access":true,"credential":true,"headers":true,"expires_at":true,"created_at":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate320;function validate320(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate320.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.port === undefined) && (missing0 = "port"))) || ((data.url === undefined) && (missing0 = "url"))) || ((data.access === undefined) && (missing0 = "access"))) || ((data.credential === undefined) && (missing0 = "credential"))) || ((data.headers === undefined) && (missing0 = "headers"))) || ((data.expires_at === undefined) && (missing0 = "expires_at"))) || ((data.created_at === undefined) && (missing0 = "created_at"))){validate320.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.id !== undefined){const _errs1 = errors;if(typeof data.id !== "string"){validate320.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.port !== undefined){let data1 = data.port;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+"/port",schemaPath:"#/properties/port/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;const _errs8 = errors;if(typeof data1 !== "bigint"){const err1 = {instancePath:instancePath+"/port",schemaPath:"#/properties/port/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs8 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/port",schemaPath:"#/properties/port/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate320.errors = vErrors;return false;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}var valid1 = _errs4 === errors;if(valid1){if(typeof data1 === "bigint"){if(data1 < 1){validate320.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}else {if(data1 > 65535){validate320.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}}if(errors === _errs3){if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 65535 || isNaN(data1)){validate320.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/maximum",keyword:"maximum",params:{comparison: "<=", limit: 65535},message:"must be <= 65535"}];return false;}else {if(data1 < 1 || isNaN(data1)){validate320.errors = [{instancePath:instancePath+"/port",schemaPath:"#/properties/port/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"}];return false;}}}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.url !== undefined){const _errs9 = errors;if(errors === _errs9){if(errors === _errs9){if(!(typeof data.url === "string")){validate320.errors = [{instancePath:instancePath+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.access !== undefined){let data3 = data.access;const _errs11 = errors;if(typeof data3 !== "string"){validate320.errors = [{instancePath:instancePath+"/access",schemaPath:"#/properties/access/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data3 === "public") || (data3 === "private"))){validate320.errors = [{instancePath:instancePath+"/access",schemaPath:"#/properties/access/enum",keyword:"enum",params:{allowedValues: schema311.properties.access.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.credential !== undefined){let data4 = data.credential;const _errs13 = errors;if((typeof data4 !== "string") && (data4 !== null)){validate320.errors = [{instancePath:instancePath+"/credential",schemaPath:"#/properties/credential/type",keyword:"type",params:{type: schema311.properties.credential.type},message:"must be string,null"}];return false;}if(!(((data4 === "link") || (data4 === "header")) || (data4 === null))){validate320.errors = [{instancePath:instancePath+"/credential",schemaPath:"#/properties/credential/enum",keyword:"enum",params:{allowedValues: schema311.properties.credential.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.headers !== undefined){let data5 = data.headers;const _errs15 = errors;if(errors === _errs15){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){for(const key0 in data5){const _errs18 = errors;if(typeof data5[key0] !== "string"){validate320.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 valid3 = _errs18 === errors;if(!valid3){break;}}}else {validate320.errors = [{instancePath:instancePath+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.expires_at !== undefined){let data7 = data.expires_at;const _errs20 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate320.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/type",keyword:"type",params:{type: schema311.properties.expires_at.type},message:"must be string,null"}];return false;}if(errors === _errs20){if(errors === _errs20){if(typeof data7 === "string"){if(!(formats0.validate(data7))){validate320.errors = [{instancePath:instancePath+"/expires_at",schemaPath:"#/properties/expires_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs20 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data8 = data.created_at;const _errs22 = errors;if(errors === _errs22){if(errors === _errs22){if(typeof data8 === "string"){if(!(formats0.validate(data8))){validate320.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate320.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs22 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate320.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate320.errors = vErrors;return errors === 0;}validate320.evaluated = {"props":{"id":true,"port":true,"url":true,"access":true,"credential":true,"headers":true,"expires_at":true,"created_at":true},"dynamicProps":false,"dynamicItems":false};
@@ -0,0 +1,3 @@
1
+ export declare const validate0: (value: unknown) => boolean;
2
+ export declare const validate1: (value: unknown) => boolean;
3
+ export declare const validate2: (value: unknown) => boolean;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = require("./compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":1},"validate2":{"$":1}},"definitions":[{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$":1}},"next_cursor":{"type":["string","null"]}}},{"type":"object","required":["id","port","url","access","credential","headers","expires_at","created_at"],"properties":{"id":{"type":"string"},"port":{"minimum":1,"maximum":65535,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":1,"maximum":65535}},"url":{"type":"string","format":"uri"},"access":{"type":"string","enum":["public","private"]},"credential":{"type":["string","null"],"enum":["link","header",null]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expires_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"}}}]});
@@ -0,0 +1,3 @@
1
+ export declare const validate0: (value: unknown) => boolean;
2
+ export declare const validate1: (value: unknown) => boolean;
3
+ export declare const validate2: (value: unknown) => boolean;