@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 = validate64;const schema99 = {"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}}}};const schema100 = {"type":"object","required":["id","name","created_at","revoked","permissions"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"revoked":{"type":"boolean"},"permissions":{"type":"array","items":{"type":"string","x-boxrouter-open-enum":true}},"owner_kind":{"type":["string","null"],"enum":["person","service",null]},"owner_user_id":{"type":["string","null"]},"created_by":{"type":["string","null"]}}};const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate65(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate65.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((data.id === undefined) && (missing0 = "id")) || ((data.name === undefined) && (missing0 = "name"))) || ((data.created_at === undefined) && (missing0 = "created_at"))) || ((data.revoked === undefined) && (missing0 = "revoked"))) || ((data.permissions === undefined) && (missing0 = "permissions"))){validate65.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"){validate65.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){const _errs3 = errors;if(typeof data.name !== "string"){validate65.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.created_at !== undefined){let data2 = data.created_at;const _errs5 = errors;if(errors === _errs5){if(errors === _errs5){if(typeof data2 === "string"){if(!(formats0.validate(data2))){validate65.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 {validate65.errors = [{instancePath:instancePath+"/created_at",schemaPath:"#/properties/created_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.revoked !== undefined){const _errs7 = errors;if(typeof data.revoked !== "boolean"){validate65.errors = [{instancePath:instancePath+"/revoked",schemaPath:"#/properties/revoked/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.permissions !== undefined){let data4 = data.permissions;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data4)){var valid1 = true;const len0 = data4.length;for(let i0=0; i0<len0; i0++){const _errs11 = errors;if(typeof data4[i0] !== "string"){validate65.errors = [{instancePath:instancePath+"/permissions/" + i0,schemaPath:"#/properties/permissions/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid1 = _errs11 === errors;if(!valid1){break;}}}else {validate65.errors = [{instancePath:instancePath+"/permissions",schemaPath:"#/properties/permissions/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.owner_kind !== undefined){let data6 = data.owner_kind;const _errs13 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate65.errors = [{instancePath:instancePath+"/owner_kind",schemaPath:"#/properties/owner_kind/type",keyword:"type",params:{type: schema100.properties.owner_kind.type},message:"must be string,null"}];return false;}if(!(((data6 === "person") || (data6 === "service")) || (data6 === null))){validate65.errors = [{instancePath:instancePath+"/owner_kind",schemaPath:"#/properties/owner_kind/enum",keyword:"enum",params:{allowedValues: schema100.properties.owner_kind.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.owner_user_id !== undefined){let data7 = data.owner_user_id;const _errs15 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate65.errors = [{instancePath:instancePath+"/owner_user_id",schemaPath:"#/properties/owner_user_id/type",keyword:"type",params:{type: schema100.properties.owner_user_id.type},message:"must be string,null"}];return false;}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.created_by !== undefined){let data8 = data.created_by;const _errs17 = errors;if((typeof data8 !== "string") && (data8 !== null)){validate65.errors = [{instancePath:instancePath+"/created_by",schemaPath:"#/properties/created_by/type",keyword:"type",params:{type: schema100.properties.created_by.type},message:"must be string,null"}];return false;}var valid0 = _errs17 === errors;}else {var valid0 = true;}}}}}}}}}}else {validate65.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate65.errors = vErrors;return errors === 0;}validate65.evaluated = {"props":{"id":true,"name":true,"created_at":true,"revoked":true,"permissions":true,"owner_kind":true,"owner_user_id":true,"created_by":true},"dynamicProps":false,"dynamicItems":false};function validate64(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate64.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")){validate64.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(!(validate65(data0[i0], {instancePath:instancePath+"/data/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);errors = vErrors.length;}var valid1 = _errs3 === errors;if(!valid1){break;}}}else {validate64.errors = [{instancePath:instancePath+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}}}}else {validate64.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate64.errors = vErrors;return errors === 0;}validate64.evaluated = {"props":{"data":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate67;const schema101 = {"type":"object","required":["key","secret"],"properties":{"key":{"$ref":"#/components/schemas/ApiKey"},"secret":{"type":["string","null"],"description":"Returned once on initial creation; null on idempotent replay. Revoke and replace a key whose secret was lost."}}};function validate67(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate67.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.key === undefined) && (missing0 = "key")) || ((data.secret === undefined) && (missing0 = "secret"))){validate67.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.key !== undefined){const _errs1 = errors;if(!(validate65(data.key, {instancePath:instancePath+"/key",parentData:data,parentDataProperty:"key",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);errors = vErrors.length;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.secret !== undefined){let data1 = data.secret;const _errs2 = errors;if((typeof data1 !== "string") && (data1 !== null)){validate67.errors = [{instancePath:instancePath+"/secret",schemaPath:"#/properties/secret/type",keyword:"type",params:{type: schema101.properties.secret.type},message:"must be string,null"}];return false;}var valid0 = _errs2 === errors;}else {var valid0 = true;}}}}else {validate67.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate67.errors = vErrors;return errors === 0;}validate67.evaluated = {"props":{"key":true,"secret":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate69;const schema102 = {"type":"object","required":["data_collection","zdr","revision","updated_at"],"description":"One independently stored workspace or customer-key floor, not a combined effective\npolicy. Effective composition uses deny if either floor denies data collection and\ntrue if either floor requires ZDR. New workspaces start at deny/false revision 1;\na legacy workspace remains allow/false revision 0 until written. An absent key\nsetting is neutral allow/false revision 0. `boxrouter_content_retention` is the\nresolved stored content floor when returned by a server that supports it. The\nfield is optional for older server compatibility, but is never null when present.\nHistorical settings without an independent choice retain legacy combined behavior:\nzdr false resolves ordinary and zdr true resolves transient. Explicit choices are\nindependent of provider ZDR. Changing a floor does not delete existing content or\nweaken an admitted operation's immutable origin floor.\n","properties":{"data_collection":{"type":"string","enum":["allow","deny"]},"zdr":{"type":"boolean"},"boxrouter_content_retention":{"type":"string","enum":["ordinary","transient"],"description":"Resolved BoxRouter content floor, independent of provider policy."},"revision":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"updated_at":{"type":["string","null"],"format":"date-time","description":"Null only for an explicit legacy or key-neutral revision 0 setting."}},"allOf":[{"if":{"properties":{"revision":{"const":0}},"required":["revision"]},"then":{"properties":{"data_collection":{"const":"allow"},"zdr":{"const":false},"updated_at":{"type":"null"}}},"else":{"properties":{"updated_at":{"type":"string","format":"date-time"}}}}]};function validate69(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate69.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.revision === undefined) && (missing0 = "revision")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.revision !== undefined){if(0 !== data.revision){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.data_collection !== undefined){const _errs6 = errors;if("allow" !== data.data_collection){validate69.errors = [{instancePath:instancePath+"/data_collection",schemaPath:"#/allOf/0/then/properties/data_collection/const",keyword:"const",params:{allowedValue: "allow"},message:"must be equal to constant"}];return false;}var valid3 = _errs6 === errors;}else {var valid3 = true;}if(valid3){if(data.zdr !== undefined){const _errs7 = errors;if(false !== data.zdr){validate69.errors = [{instancePath:instancePath+"/zdr",schemaPath:"#/allOf/0/then/properties/zdr/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"}];return false;}var valid3 = _errs7 === errors;}else {var valid3 = true;}if(valid3){if(data.updated_at !== undefined){const _errs8 = errors;if(data.updated_at !== null){validate69.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/allOf/0/then/properties/updated_at/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.data_collection = true;props0.zdr = true;props0.updated_at = true;props0.revision = true;}ifClause0 = "then";}else {const _errs10 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.updated_at !== undefined){let data4 = data.updated_at;const _errs11 = errors;if(errors === _errs11){if(errors === _errs11){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate69.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/allOf/0/else/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate69.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/allOf/0/else/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}}var _valid0 = _errs10 === errors;valid1 = _valid0;if(valid1){if(props0 !== true){props0 = props0 || {};props0.updated_at = true;}}ifClause0 = "else";}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate69.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.data_collection === undefined) && (missing1 = "data_collection")) || ((data.zdr === undefined) && (missing1 = "zdr"))) || ((data.revision === undefined) && (missing1 = "revision"))) || ((data.updated_at === undefined) && (missing1 = "updated_at"))){validate69.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.data_collection = true;props0.zdr = true;props0.boxrouter_content_retention = true;props0.revision = true;props0.updated_at = true;}if(data.data_collection !== undefined){let data5 = data.data_collection;const _errs13 = errors;if(typeof data5 !== "string"){validate69.errors = [{instancePath:instancePath+"/data_collection",schemaPath:"#/properties/data_collection/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data5 === "allow") || (data5 === "deny"))){validate69.errors = [{instancePath:instancePath+"/data_collection",schemaPath:"#/properties/data_collection/enum",keyword:"enum",params:{allowedValues: schema102.properties.data_collection.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs13 === errors;}else {var valid5 = true;}if(valid5){if(data.zdr !== undefined){const _errs15 = errors;if(typeof data.zdr !== "boolean"){validate69.errors = [{instancePath:instancePath+"/zdr",schemaPath:"#/properties/zdr/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs15 === errors;}else {var valid5 = true;}if(valid5){if(data.boxrouter_content_retention !== undefined){let data7 = data.boxrouter_content_retention;const _errs17 = errors;if(typeof data7 !== "string"){validate69.errors = [{instancePath:instancePath+"/boxrouter_content_retention",schemaPath:"#/properties/boxrouter_content_retention/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data7 === "ordinary") || (data7 === "transient"))){validate69.errors = [{instancePath:instancePath+"/boxrouter_content_retention",schemaPath:"#/properties/boxrouter_content_retention/enum",keyword:"enum",params:{allowedValues: schema102.properties.boxrouter_content_retention.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs17 === errors;}else {var valid5 = true;}if(valid5){if(data.revision !== undefined){let data8 = data.revision;const _errs19 = errors;const _errs20 = errors;const _errs21 = errors;let valid7 = false;const _errs22 = errors;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err3 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs22 === errors;valid7 = valid7 || _valid1;const _errs24 = errors;if(typeof data8 !== "bigint"){const err4 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs24 === errors;valid7 = valid7 || _valid1;if(!valid7){const err5 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate69.errors = vErrors;return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid6 = _errs20 === errors;if(valid6){if(typeof data8 === "bigint"){if(data8 < 0){validate69.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs19){if((typeof data8 == "number") && (isFinite(data8))){if(data8 < 0 || isNaN(data8)){validate69.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid5 = _errs19 === errors;}else {var valid5 = true;}if(valid5){if(data.updated_at !== undefined){let data9 = data.updated_at;const _errs25 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate69.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: schema102.properties.updated_at.type},message:"must be string,null"}];return false;}if(errors === _errs25){if(errors === _errs25){if(typeof data9 === "string"){if(!(formats0.validate(data9))){validate69.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid5 = _errs25 === errors;}else {var valid5 = true;}}}}}}}else {validate69.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate69.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate69.evaluated = {"dynamicProps":true,"dynamicItems":false};exports.validate3 = validate70;function validate70(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate70.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.revision === undefined) && (missing0 = "revision")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.revision !== undefined){if(0 !== data.revision){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.data_collection !== undefined){const _errs6 = errors;if("allow" !== data.data_collection){validate70.errors = [{instancePath:instancePath+"/data_collection",schemaPath:"#/allOf/0/then/properties/data_collection/const",keyword:"const",params:{allowedValue: "allow"},message:"must be equal to constant"}];return false;}var valid3 = _errs6 === errors;}else {var valid3 = true;}if(valid3){if(data.zdr !== undefined){const _errs7 = errors;if(false !== data.zdr){validate70.errors = [{instancePath:instancePath+"/zdr",schemaPath:"#/allOf/0/then/properties/zdr/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"}];return false;}var valid3 = _errs7 === errors;}else {var valid3 = true;}if(valid3){if(data.updated_at !== undefined){const _errs8 = errors;if(data.updated_at !== null){validate70.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/allOf/0/then/properties/updated_at/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.data_collection = true;props0.zdr = true;props0.updated_at = true;props0.revision = true;}ifClause0 = "then";}else {const _errs10 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.updated_at !== undefined){let data4 = data.updated_at;const _errs11 = errors;if(errors === _errs11){if(errors === _errs11){if(typeof data4 === "string"){if(!(formats0.validate(data4))){validate70.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/allOf/0/else/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate70.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/allOf/0/else/properties/updated_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}}var _valid0 = _errs10 === errors;valid1 = _valid0;if(valid1){if(props0 !== true){props0 = props0 || {};props0.updated_at = true;}}ifClause0 = "else";}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate70.errors = vErrors;return false;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((((data.data_collection === undefined) && (missing1 = "data_collection")) || ((data.zdr === undefined) && (missing1 = "zdr"))) || ((data.revision === undefined) && (missing1 = "revision"))) || ((data.updated_at === undefined) && (missing1 = "updated_at"))){validate70.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(props0 !== true){props0 = props0 || {};props0.data_collection = true;props0.zdr = true;props0.boxrouter_content_retention = true;props0.revision = true;props0.updated_at = true;}if(data.data_collection !== undefined){let data5 = data.data_collection;const _errs13 = errors;if(typeof data5 !== "string"){validate70.errors = [{instancePath:instancePath+"/data_collection",schemaPath:"#/properties/data_collection/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data5 === "allow") || (data5 === "deny"))){validate70.errors = [{instancePath:instancePath+"/data_collection",schemaPath:"#/properties/data_collection/enum",keyword:"enum",params:{allowedValues: schema102.properties.data_collection.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs13 === errors;}else {var valid5 = true;}if(valid5){if(data.zdr !== undefined){const _errs15 = errors;if(typeof data.zdr !== "boolean"){validate70.errors = [{instancePath:instancePath+"/zdr",schemaPath:"#/properties/zdr/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid5 = _errs15 === errors;}else {var valid5 = true;}if(valid5){if(data.boxrouter_content_retention !== undefined){let data7 = data.boxrouter_content_retention;const _errs17 = errors;if(typeof data7 !== "string"){validate70.errors = [{instancePath:instancePath+"/boxrouter_content_retention",schemaPath:"#/properties/boxrouter_content_retention/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data7 === "ordinary") || (data7 === "transient"))){validate70.errors = [{instancePath:instancePath+"/boxrouter_content_retention",schemaPath:"#/properties/boxrouter_content_retention/enum",keyword:"enum",params:{allowedValues: schema102.properties.boxrouter_content_retention.enum},message:"must be equal to one of the allowed values"}];return false;}var valid5 = _errs17 === errors;}else {var valid5 = true;}if(valid5){if(data.revision !== undefined){let data8 = data.revision;const _errs19 = errors;const _errs20 = errors;const _errs21 = errors;let valid7 = false;const _errs22 = errors;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err3 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs22 === errors;valid7 = valid7 || _valid1;const _errs24 = errors;if(typeof data8 !== "bigint"){const err4 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs24 === errors;valid7 = valid7 || _valid1;if(!valid7){const err5 = {instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate70.errors = vErrors;return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid6 = _errs20 === errors;if(valid6){if(typeof data8 === "bigint"){if(data8 < 0){validate70.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs19){if((typeof data8 == "number") && (isFinite(data8))){if(data8 < 0 || isNaN(data8)){validate70.errors = [{instancePath:instancePath+"/revision",schemaPath:"#/properties/revision/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid5 = _errs19 === errors;}else {var valid5 = true;}if(valid5){if(data.updated_at !== undefined){let data9 = data.updated_at;const _errs25 = errors;if((typeof data9 !== "string") && (data9 !== null)){validate70.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/type",keyword:"type",params:{type: schema102.properties.updated_at.type},message:"must be string,null"}];return false;}if(errors === _errs25){if(errors === _errs25){if(typeof data9 === "string"){if(!(formats0.validate(data9))){validate70.errors = [{instancePath:instancePath+"/updated_at",schemaPath:"#/properties/updated_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid5 = _errs25 === errors;}else {var valid5 = true;}}}}}}}else {validate70.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate70.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate70.evaluated = {"dynamicProps":true,"dynamicItems":false};
@@ -0,0 +1,4 @@
1
+ export declare const validate0: (value: unknown) => boolean;
2
+ export declare const validate1: (value: unknown) => boolean;
3
+ export declare const validate2: (value: unknown) => boolean;
4
+ export declare const validate3: (value: unknown) => boolean;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = require("../../core/responseValidators/compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":2},"validate2":{"$":3},"validate3":{"$":3}},"definitions":[{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$":1}}}},{"type":"object","required":["id","name","created_at","revoked","permissions"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"revoked":{"type":"boolean"},"permissions":{"type":"array","items":{"type":"string"}},"owner_kind":{"type":["string","null"],"enum":["person","service",null]},"owner_user_id":{"type":["string","null"]},"created_by":{"type":["string","null"]}}},{"type":"object","required":["key","secret"],"properties":{"key":{"$":1},"secret":{"type":["string","null"]}}},{"type":"object","required":["data_collection","zdr","revision","updated_at"],"properties":{"data_collection":{"type":"string","enum":["allow","deny"]},"zdr":{"type":"boolean"},"boxrouter_content_retention":{"type":"string","enum":["ordinary","transient"]},"revision":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"updated_at":{"type":["string","null"],"format":"date-time"}},"allOf":[{"if":{"properties":{"revision":{"const":0}},"required":["revision"]},"then":{"properties":{"data_collection":{"const":"allow"},"zdr":{"const":false},"updated_at":{"type":"null"}}},"else":{"properties":{"updated_at":{"type":"string","format":"date-time"}}}}]}]});
@@ -0,0 +1,4 @@
1
+ export declare const validate0: (value: unknown) => boolean;
2
+ export declare const validate1: (value: unknown) => boolean;
3
+ export declare const validate2: (value: unknown) => boolean;
4
+ export declare const validate3: (value: unknown) => boolean;
@@ -0,0 +1 @@
1
+ "use strict";exports.validate0 = validate73;const schema106 = {"type":"object","required":["unused","held_excluded","fee","principal","tax","total","card"],"properties":{"unused":{"minimum":0,"description":"Unused purchased credit in US cents, before held credit is excluded.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"held_excluded":{"minimum":0,"description":"Credit held for running sandboxes, in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"fee":{"minimum":0,"description":"Original Stripe processing fee retained, in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"principal":{"minimum":0,"description":"Tax-exclusive principal returned to the original card, in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"tax":{"minimum":0,"description":"Tax Stripe adds to the credit note, in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"total":{"minimum":0,"description":"Total Stripe will refund, in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"card":{"$ref":"#/components/schemas/MaskedCreditCard"}}};const schema107 = {"type":"object","properties":{"brand":{"type":["string","null"],"description":"Card brand; absent for Link methods."},"last4":{"type":["string","null"],"pattern":"^[0-9]{4}$","description":"Last four card digits; absent for Link methods."},"type":{"type":"string","x-boxrouter-open-enum":true},"email":{"type":"string","format":"email","description":"Link account email; present only when type is link."}},"allOf":[{"if":{"properties":{"type":{"const":"link"}},"required":["type"]},"then":{"required":["email"],"properties":{"brand":{"type":"null"},"last4":{"type":"null"}}}},{"if":{"properties":{"type":{"const":"card"}},"required":["type"]},"then":{"required":["brand","last4"],"properties":{"brand":{"type":"string"},"last4":{"type":"string","pattern":"^[0-9]{4}$"}}}}]};const pattern13 = new RegExp("^[0-9]{4}$", "u");function validate74(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate74.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){if("link" !== data.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.email === undefined) && (missing1 = "email")){validate74.errors = [{instancePath,schemaPath:"#/allOf/0/then/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data.brand !== undefined){const _errs6 = errors;if(data.brand !== null){validate74.errors = [{instancePath:instancePath+"/brand",schemaPath:"#/allOf/0/then/properties/brand/type",keyword:"type",params:{type: "null"},message:"must be null"}];return false;}var valid3 = _errs6 === errors;}else {var valid3 = true;}if(valid3){if(data.last4 !== undefined){const _errs8 = errors;if(data.last4 !== null){validate74.errors = [{instancePath:instancePath+"/last4",schemaPath:"#/allOf/0/then/properties/last4/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.brand = true;props0.last4 = true;props0.type = 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++;validate74.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs10 = errors;const _errs11 = errors;let valid4 = true;const _errs12 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.type === undefined) && (missing2 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data.type !== undefined){if("card" !== data.type){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var _valid1 = _errs12 === errors;errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}if(_valid1){const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((data.brand === undefined) && (missing3 = "brand")) || ((data.last4 === undefined) && (missing3 = "last4"))){validate74.errors = [{instancePath,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty: missing3},message:"must have required property '"+missing3+"'"}];return false;}else {if(data.brand !== undefined){const _errs15 = errors;if(typeof data.brand !== "string"){validate74.errors = [{instancePath:instancePath+"/brand",schemaPath:"#/allOf/1/then/properties/brand/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs15 === errors;}else {var valid6 = true;}if(valid6){if(data.last4 !== undefined){let data5 = data.last4;const _errs17 = errors;if(errors === _errs17){if(typeof data5 === "string"){if(!pattern13.test(data5)){validate74.errors = [{instancePath:instancePath+"/last4",schemaPath:"#/allOf/1/then/properties/last4/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}$"},message:"must match pattern \""+"^[0-9]{4}$"+"\""}];return false;}}else {validate74.errors = [{instancePath:instancePath+"/last4",schemaPath:"#/allOf/1/then/properties/last4/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs17 === errors;}else {var valid6 = true;}}}}var _valid1 = _errs14 === errors;valid4 = _valid1;if(valid4){var props1 = {};props1.brand = true;props1.last4 = true;props1.type = true;}}if(!valid4){const err5 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate74.errors = vErrors;return false;}var valid0 = _errs10 === errors;if(valid0){if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}}}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){if(props0 !== true){props0 = props0 || {};props0.brand = true;props0.last4 = true;props0.type = true;props0.email = true;}if(data.brand !== undefined){let data6 = data.brand;const _errs19 = errors;if((typeof data6 !== "string") && (data6 !== null)){validate74.errors = [{instancePath:instancePath+"/brand",schemaPath:"#/properties/brand/type",keyword:"type",params:{type: schema107.properties.brand.type},message:"must be string,null"}];return false;}var valid7 = _errs19 === errors;}else {var valid7 = true;}if(valid7){if(data.last4 !== undefined){let data7 = data.last4;const _errs21 = errors;if((typeof data7 !== "string") && (data7 !== null)){validate74.errors = [{instancePath:instancePath+"/last4",schemaPath:"#/properties/last4/type",keyword:"type",params:{type: schema107.properties.last4.type},message:"must be string,null"}];return false;}if(errors === _errs21){if(typeof data7 === "string"){if(!pattern13.test(data7)){validate74.errors = [{instancePath:instancePath+"/last4",schemaPath:"#/properties/last4/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}$"},message:"must match pattern \""+"^[0-9]{4}$"+"\""}];return false;}}}var valid7 = _errs21 === errors;}else {var valid7 = true;}if(valid7){if(data.type !== undefined){const _errs23 = errors;if(typeof data.type !== "string"){validate74.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid7 = _errs23 === errors;}else {var valid7 = true;}if(valid7){if(data.email !== undefined){const _errs25 = errors;if(errors === _errs25){if(errors === _errs25){if(!(typeof data.email === "string")){validate74.errors = [{instancePath:instancePath+"/email",schemaPath:"#/properties/email/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid7 = _errs25 === errors;}else {var valid7 = true;}}}}}else {validate74.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate74.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate74.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate73(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate73.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((data.unused === undefined) && (missing0 = "unused")) || ((data.held_excluded === undefined) && (missing0 = "held_excluded"))) || ((data.fee === undefined) && (missing0 = "fee"))) || ((data.principal === undefined) && (missing0 = "principal"))) || ((data.tax === undefined) && (missing0 = "tax"))) || ((data.total === undefined) && (missing0 = "total"))) || ((data.card === undefined) && (missing0 = "card"))){validate73.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.unused !== undefined){let data0 = data.unused;const _errs1 = errors;const _errs2 = errors;const _errs3 = errors;let valid2 = false;const _errs4 = errors;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err0 = {instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs4 === errors;valid2 = valid2 || _valid0;const _errs6 = errors;if(typeof data0 !== "bigint"){const err1 = {instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs6 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate73.errors = vErrors;return false;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}var valid1 = _errs2 === errors;if(valid1){if(typeof data0 === "bigint"){if(data0 < 0){validate73.errors = [{instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs1){if((typeof data0 == "number") && (isFinite(data0))){if(data0 < 0 || isNaN(data0)){validate73.errors = [{instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.held_excluded !== undefined){let data1 = data.held_excluded;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid4 = false;const _errs10 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err3 = {instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs10 === errors;valid4 = valid4 || _valid1;const _errs12 = errors;if(typeof data1 !== "bigint"){const err4 = {instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs12 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate73.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid3 = _errs8 === errors;if(valid3){if(typeof data1 === "bigint"){if(data1 < 0){validate73.errors = [{instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data1 == "number") && (isFinite(data1))){if(data1 < 0 || isNaN(data1)){validate73.errors = [{instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.fee !== undefined){let data2 = data.fee;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid6 = false;const _errs16 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err6 = {instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs16 === errors;valid6 = valid6 || _valid2;const _errs18 = errors;if(typeof data2 !== "bigint"){const err7 = {instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs18 === errors;valid6 = valid6 || _valid2;if(!valid6){const err8 = {instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate73.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid5 = _errs14 === errors;if(valid5){if(typeof data2 === "bigint"){if(data2 < 0){validate73.errors = [{instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data2 == "number") && (isFinite(data2))){if(data2 < 0 || isNaN(data2)){validate73.errors = [{instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.principal !== undefined){let data3 = data.principal;const _errs19 = errors;const _errs20 = errors;const _errs21 = errors;let valid8 = false;const _errs22 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err9 = {instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs22 === errors;valid8 = valid8 || _valid3;const _errs24 = errors;if(typeof data3 !== "bigint"){const err10 = {instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs24 === errors;valid8 = valid8 || _valid3;if(!valid8){const err11 = {instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate73.errors = vErrors;return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid7 = _errs20 === errors;if(valid7){if(typeof data3 === "bigint"){if(data3 < 0){validate73.errors = [{instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs19){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate73.errors = [{instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.tax !== undefined){let data4 = data.tax;const _errs25 = errors;const _errs26 = errors;const _errs27 = errors;let valid10 = false;const _errs28 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err12 = {instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid4 = _errs28 === errors;valid10 = valid10 || _valid4;const _errs30 = errors;if(typeof data4 !== "bigint"){const err13 = {instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs30 === errors;valid10 = valid10 || _valid4;if(!valid10){const err14 = {instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;validate73.errors = vErrors;return false;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid9 = _errs26 === errors;if(valid9){if(typeof data4 === "bigint"){if(data4 < 0){validate73.errors = [{instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs25){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){validate73.errors = [{instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.total !== undefined){let data5 = data.total;const _errs31 = errors;const _errs32 = errors;const _errs33 = errors;let valid12 = false;const _errs34 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err15 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid5 = _errs34 === errors;valid12 = valid12 || _valid5;const _errs36 = errors;if(typeof data5 !== "bigint"){const err16 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid5 = _errs36 === errors;valid12 = valid12 || _valid5;if(!valid12){const err17 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;validate73.errors = vErrors;return false;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}var valid11 = _errs32 === errors;if(valid11){if(typeof data5 === "bigint"){if(data5 < 0){validate73.errors = [{instancePath:instancePath+"/total",schemaPath:"#/properties/total/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs31){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 0 || isNaN(data5)){validate73.errors = [{instancePath:instancePath+"/total",schemaPath:"#/properties/total/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs31 === errors;}else {var valid0 = true;}if(valid0){if(data.card !== undefined){const _errs37 = errors;if(!(validate74(data.card, {instancePath:instancePath+"/card",parentData:data,parentDataProperty:"card",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);errors = vErrors.length;}var valid0 = _errs37 === errors;}else {var valid0 = true;}}}}}}}}}else {validate73.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate73.errors = vErrors;return errors === 0;}validate73.evaluated = {"props":{"unused":true,"held_excluded":true,"fee":true,"principal":true,"tax":true,"total":true,"card":true},"dynamicProps":false,"dynamicItems":false};exports.validate1 = validate76;const schema108 = {"type":"object","required":["id","purchase_id","status","unused","held_excluded","fee","principal","tax","total","card","requested_at"],"properties":{"id":{"type":"string"},"purchase_id":{"type":"string"},"status":{"type":"string","x-boxrouter-open-enum":true},"unused":{"minimum":0,"description":"Credit debited from the balance in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"held_excluded":{"minimum":0,"description":"Credit held for running sandboxes, in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"fee":{"minimum":0,"description":"Original Stripe processing fee retained, in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"principal":{"minimum":0,"description":"Tax-exclusive principal refunded, in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"tax":{"minimum":0,"description":"Tax included in the refund, in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"total":{"minimum":0,"description":"Total Stripe refund, in US cents.","allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"card":{"$ref":"#/components/schemas/RefundCard"},"requested_at":{"type":"string","format":"date-time"},"settled_at":{"type":["string","null"],"format":"date-time"},"failure_code":{"type":["string","null"],"description":"Stable safe failure category, when the refund failed."}}};const schema109 = {"type":"object","required":["type"],"properties":{"brand":{"type":"string"},"last4":{"type":"string","pattern":"^[0-9]{4}$","description":"Last four digits of the refunded card; absent for a Link refund, which has no card number."},"type":{"type":"string","x-boxrouter-open-enum":true}},"allOf":[{"if":{"properties":{"type":{"const":"card"}},"required":["type"]},"then":{"required":["brand","last4"]}},{"if":{"properties":{"type":{"const":"link"}},"required":["type"]},"then":{"not":{"required":["last4"],"properties":{"last4":true}}}}]};function validate77(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate77.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs1 = errors;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.type === undefined) && (missing0 = "type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.type !== undefined){if("card" !== data.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((data.brand === undefined) && (missing1 = "brand")) || ((data.last4 === undefined) && (missing1 = "last4"))){validate77.errors = [{instancePath,schemaPath:"#/allOf/0/then/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}}var _valid0 = _errs5 === errors;valid1 = _valid0;}if(!valid1){const err2 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate77.errors = vErrors;return false;}var valid0 = _errs1 === errors;if(valid0){const _errs6 = errors;const _errs7 = errors;let valid3 = true;const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if((data.type === undefined) && (missing2 = "type")){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {if(data.type !== undefined){if("link" !== data.type){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}}var _valid1 = _errs8 === errors;errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}if(_valid1){const _errs10 = errors;const _errs11 = errors;const _errs12 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if((data.last4 === undefined) && (missing3 = "last4")){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}var valid5 = _errs12 === errors;if(valid5){validate77.errors = [{instancePath,schemaPath:"#/allOf/1/then/not",keyword:"not",params:{},message:"must NOT be valid"}];return false;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}var _valid1 = _errs10 === errors;valid3 = _valid1;}if(!valid3){const err6 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;validate77.errors = vErrors;return false;}var valid0 = _errs6 === errors;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if((data.type === undefined) && (missing4 = "type")){validate77.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing4},message:"must have required property '"+missing4+"'"}];return false;}else {if(data.brand !== undefined){const _errs13 = errors;if(typeof data.brand !== "string"){validate77.errors = [{instancePath:instancePath+"/brand",schemaPath:"#/properties/brand/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs13 === errors;}else {var valid6 = true;}if(valid6){if(data.last4 !== undefined){let data3 = data.last4;const _errs15 = errors;if(errors === _errs15){if(typeof data3 === "string"){if(!pattern13.test(data3)){validate77.errors = [{instancePath:instancePath+"/last4",schemaPath:"#/properties/last4/pattern",keyword:"pattern",params:{pattern: "^[0-9]{4}$"},message:"must match pattern \""+"^[0-9]{4}$"+"\""}];return false;}}else {validate77.errors = [{instancePath:instancePath+"/last4",schemaPath:"#/properties/last4/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid6 = _errs15 === errors;}else {var valid6 = true;}if(valid6){if(data.type !== undefined){const _errs17 = errors;if(typeof data.type !== "string"){validate77.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid6 = _errs17 === errors;}else {var valid6 = true;}}}}}else {validate77.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate77.errors = vErrors;return errors === 0;}validate77.evaluated = {"props":{"brand":true,"last4":true,"type":true},"dynamicProps":false,"dynamicItems":false};const formats0 = require("ajv-formats/dist/formats").fullFormats["date-time"];function validate76(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate76.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((((((data.id === undefined) && (missing0 = "id")) || ((data.purchase_id === undefined) && (missing0 = "purchase_id"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.unused === undefined) && (missing0 = "unused"))) || ((data.held_excluded === undefined) && (missing0 = "held_excluded"))) || ((data.fee === undefined) && (missing0 = "fee"))) || ((data.principal === undefined) && (missing0 = "principal"))) || ((data.tax === undefined) && (missing0 = "tax"))) || ((data.total === undefined) && (missing0 = "total"))) || ((data.card === undefined) && (missing0 = "card"))) || ((data.requested_at === undefined) && (missing0 = "requested_at"))){validate76.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"){validate76.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.purchase_id !== undefined){const _errs3 = errors;if(typeof data.purchase_id !== "string"){validate76.errors = [{instancePath:instancePath+"/purchase_id",schemaPath:"#/properties/purchase_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){const _errs5 = errors;if(typeof data.status !== "string"){validate76.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.unused !== undefined){let data3 = data.unused;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid2 = false;const _errs10 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err0 = {instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;valid2 = valid2 || _valid0;const _errs12 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs12 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate76.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid1 = _errs8 === errors;if(valid1){if(typeof data3 === "bigint"){if(data3 < 0){validate76.errors = [{instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate76.errors = [{instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.held_excluded !== undefined){let data4 = data.held_excluded;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid4 = false;const _errs16 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err3 = {instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs16 === errors;valid4 = valid4 || _valid1;const _errs18 = errors;if(typeof data4 !== "bigint"){const err4 = {instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs18 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate76.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid3 = _errs14 === errors;if(valid3){if(typeof data4 === "bigint"){if(data4 < 0){validate76.errors = [{instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){validate76.errors = [{instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.fee !== undefined){let data5 = data.fee;const _errs19 = errors;const _errs20 = errors;const _errs21 = errors;let valid6 = false;const _errs22 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err6 = {instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs22 === errors;valid6 = valid6 || _valid2;const _errs24 = errors;if(typeof data5 !== "bigint"){const err7 = {instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs24 === errors;valid6 = valid6 || _valid2;if(!valid6){const err8 = {instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate76.errors = vErrors;return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid5 = _errs20 === errors;if(valid5){if(typeof data5 === "bigint"){if(data5 < 0){validate76.errors = [{instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs19){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 0 || isNaN(data5)){validate76.errors = [{instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.principal !== undefined){let data6 = data.principal;const _errs25 = errors;const _errs26 = errors;const _errs27 = errors;let valid8 = false;const _errs28 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err9 = {instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs28 === errors;valid8 = valid8 || _valid3;const _errs30 = errors;if(typeof data6 !== "bigint"){const err10 = {instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs30 === errors;valid8 = valid8 || _valid3;if(!valid8){const err11 = {instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate76.errors = vErrors;return false;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid7 = _errs26 === errors;if(valid7){if(typeof data6 === "bigint"){if(data6 < 0){validate76.errors = [{instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs25){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 0 || isNaN(data6)){validate76.errors = [{instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.tax !== undefined){let data7 = data.tax;const _errs31 = errors;const _errs32 = errors;const _errs33 = errors;let valid10 = false;const _errs34 = errors;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err12 = {instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid4 = _errs34 === errors;valid10 = valid10 || _valid4;const _errs36 = errors;if(typeof data7 !== "bigint"){const err13 = {instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs36 === errors;valid10 = valid10 || _valid4;if(!valid10){const err14 = {instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;validate76.errors = vErrors;return false;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}var valid9 = _errs32 === errors;if(valid9){if(typeof data7 === "bigint"){if(data7 < 0){validate76.errors = [{instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs31){if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 0 || isNaN(data7)){validate76.errors = [{instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs31 === errors;}else {var valid0 = true;}if(valid0){if(data.total !== undefined){let data8 = data.total;const _errs37 = errors;const _errs38 = errors;const _errs39 = errors;let valid12 = false;const _errs40 = errors;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err15 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid5 = _errs40 === errors;valid12 = valid12 || _valid5;const _errs42 = errors;if(typeof data8 !== "bigint"){const err16 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid5 = _errs42 === errors;valid12 = valid12 || _valid5;if(!valid12){const err17 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;validate76.errors = vErrors;return false;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}var valid11 = _errs38 === errors;if(valid11){if(typeof data8 === "bigint"){if(data8 < 0){validate76.errors = [{instancePath:instancePath+"/total",schemaPath:"#/properties/total/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs37){if((typeof data8 == "number") && (isFinite(data8))){if(data8 < 0 || isNaN(data8)){validate76.errors = [{instancePath:instancePath+"/total",schemaPath:"#/properties/total/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs37 === errors;}else {var valid0 = true;}if(valid0){if(data.card !== undefined){const _errs43 = errors;if(!(validate77(data.card, {instancePath:instancePath+"/card",parentData:data,parentDataProperty:"card",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);errors = vErrors.length;}var valid0 = _errs43 === errors;}else {var valid0 = true;}if(valid0){if(data.requested_at !== undefined){let data10 = data.requested_at;const _errs44 = errors;if(errors === _errs44){if(errors === _errs44){if(typeof data10 === "string"){if(!(formats0.validate(data10))){validate76.errors = [{instancePath:instancePath+"/requested_at",schemaPath:"#/properties/requested_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate76.errors = [{instancePath:instancePath+"/requested_at",schemaPath:"#/properties/requested_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs44 === errors;}else {var valid0 = true;}if(valid0){if(data.settled_at !== undefined){let data11 = data.settled_at;const _errs46 = errors;if((typeof data11 !== "string") && (data11 !== null)){validate76.errors = [{instancePath:instancePath+"/settled_at",schemaPath:"#/properties/settled_at/type",keyword:"type",params:{type: schema108.properties.settled_at.type},message:"must be string,null"}];return false;}if(errors === _errs46){if(errors === _errs46){if(typeof data11 === "string"){if(!(formats0.validate(data11))){validate76.errors = [{instancePath:instancePath+"/settled_at",schemaPath:"#/properties/settled_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs46 === errors;}else {var valid0 = true;}if(valid0){if(data.failure_code !== undefined){let data12 = data.failure_code;const _errs48 = errors;if((typeof data12 !== "string") && (data12 !== null)){validate76.errors = [{instancePath:instancePath+"/failure_code",schemaPath:"#/properties/failure_code/type",keyword:"type",params:{type: schema108.properties.failure_code.type},message:"must be string,null"}];return false;}var valid0 = _errs48 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}else {validate76.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate76.errors = vErrors;return errors === 0;}validate76.evaluated = {"props":{"id":true,"purchase_id":true,"status":true,"unused":true,"held_excluded":true,"fee":true,"principal":true,"tax":true,"total":true,"card":true,"requested_at":true,"settled_at":true,"failure_code":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate79;function validate79(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate79.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((((((data.id === undefined) && (missing0 = "id")) || ((data.purchase_id === undefined) && (missing0 = "purchase_id"))) || ((data.status === undefined) && (missing0 = "status"))) || ((data.unused === undefined) && (missing0 = "unused"))) || ((data.held_excluded === undefined) && (missing0 = "held_excluded"))) || ((data.fee === undefined) && (missing0 = "fee"))) || ((data.principal === undefined) && (missing0 = "principal"))) || ((data.tax === undefined) && (missing0 = "tax"))) || ((data.total === undefined) && (missing0 = "total"))) || ((data.card === undefined) && (missing0 = "card"))) || ((data.requested_at === undefined) && (missing0 = "requested_at"))){validate79.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"){validate79.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.purchase_id !== undefined){const _errs3 = errors;if(typeof data.purchase_id !== "string"){validate79.errors = [{instancePath:instancePath+"/purchase_id",schemaPath:"#/properties/purchase_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.status !== undefined){const _errs5 = errors;if(typeof data.status !== "string"){validate79.errors = [{instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.unused !== undefined){let data3 = data.unused;const _errs7 = errors;const _errs8 = errors;const _errs9 = errors;let valid2 = false;const _errs10 = errors;if(!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))){const err0 = {instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs10 === errors;valid2 = valid2 || _valid0;const _errs12 = errors;if(typeof data3 !== "bigint"){const err1 = {instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid0 = _errs12 === errors;valid2 = valid2 || _valid0;if(!valid2){const err2 = {instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;validate79.errors = vErrors;return false;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}var valid1 = _errs8 === errors;if(valid1){if(typeof data3 === "bigint"){if(data3 < 0){validate79.errors = [{instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs7){if((typeof data3 == "number") && (isFinite(data3))){if(data3 < 0 || isNaN(data3)){validate79.errors = [{instancePath:instancePath+"/unused",schemaPath:"#/properties/unused/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.held_excluded !== undefined){let data4 = data.held_excluded;const _errs13 = errors;const _errs14 = errors;const _errs15 = errors;let valid4 = false;const _errs16 = errors;if(!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))){const err3 = {instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs16 === errors;valid4 = valid4 || _valid1;const _errs18 = errors;if(typeof data4 !== "bigint"){const err4 = {instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs18 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;validate79.errors = vErrors;return false;}else {errors = _errs15;if(vErrors !== null){if(_errs15){vErrors.length = _errs15;}else {vErrors = null;}}}var valid3 = _errs14 === errors;if(valid3){if(typeof data4 === "bigint"){if(data4 < 0){validate79.errors = [{instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs13){if((typeof data4 == "number") && (isFinite(data4))){if(data4 < 0 || isNaN(data4)){validate79.errors = [{instancePath:instancePath+"/held_excluded",schemaPath:"#/properties/held_excluded/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.fee !== undefined){let data5 = data.fee;const _errs19 = errors;const _errs20 = errors;const _errs21 = errors;let valid6 = false;const _errs22 = errors;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err6 = {instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid2 = _errs22 === errors;valid6 = valid6 || _valid2;const _errs24 = errors;if(typeof data5 !== "bigint"){const err7 = {instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs24 === errors;valid6 = valid6 || _valid2;if(!valid6){const err8 = {instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;validate79.errors = vErrors;return false;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}var valid5 = _errs20 === errors;if(valid5){if(typeof data5 === "bigint"){if(data5 < 0){validate79.errors = [{instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs19){if((typeof data5 == "number") && (isFinite(data5))){if(data5 < 0 || isNaN(data5)){validate79.errors = [{instancePath:instancePath+"/fee",schemaPath:"#/properties/fee/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.principal !== undefined){let data6 = data.principal;const _errs25 = errors;const _errs26 = errors;const _errs27 = errors;let valid8 = false;const _errs28 = errors;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err9 = {instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}var _valid3 = _errs28 === errors;valid8 = valid8 || _valid3;const _errs30 = errors;if(typeof data6 !== "bigint"){const err10 = {instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid3 = _errs30 === errors;valid8 = valid8 || _valid3;if(!valid8){const err11 = {instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;validate79.errors = vErrors;return false;}else {errors = _errs27;if(vErrors !== null){if(_errs27){vErrors.length = _errs27;}else {vErrors = null;}}}var valid7 = _errs26 === errors;if(valid7){if(typeof data6 === "bigint"){if(data6 < 0){validate79.errors = [{instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs25){if((typeof data6 == "number") && (isFinite(data6))){if(data6 < 0 || isNaN(data6)){validate79.errors = [{instancePath:instancePath+"/principal",schemaPath:"#/properties/principal/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs25 === errors;}else {var valid0 = true;}if(valid0){if(data.tax !== undefined){let data7 = data.tax;const _errs31 = errors;const _errs32 = errors;const _errs33 = errors;let valid10 = false;const _errs34 = errors;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err12 = {instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid4 = _errs34 === errors;valid10 = valid10 || _valid4;const _errs36 = errors;if(typeof data7 !== "bigint"){const err13 = {instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid4 = _errs36 === errors;valid10 = valid10 || _valid4;if(!valid10){const err14 = {instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;validate79.errors = vErrors;return false;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}var valid9 = _errs32 === errors;if(valid9){if(typeof data7 === "bigint"){if(data7 < 0){validate79.errors = [{instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs31){if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 0 || isNaN(data7)){validate79.errors = [{instancePath:instancePath+"/tax",schemaPath:"#/properties/tax/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs31 === errors;}else {var valid0 = true;}if(valid0){if(data.total !== undefined){let data8 = data.total;const _errs37 = errors;const _errs38 = errors;const _errs39 = errors;let valid12 = false;const _errs40 = errors;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err15 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid5 = _errs40 === errors;valid12 = valid12 || _valid5;const _errs42 = errors;if(typeof data8 !== "bigint"){const err16 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid5 = _errs42 === errors;valid12 = valid12 || _valid5;if(!valid12){const err17 = {instancePath:instancePath+"/total",schemaPath:"#/properties/total/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;validate79.errors = vErrors;return false;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}var valid11 = _errs38 === errors;if(valid11){if(typeof data8 === "bigint"){if(data8 < 0){validate79.errors = [{instancePath:instancePath+"/total",schemaPath:"#/properties/total/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"}];return false;}}}if(errors === _errs37){if((typeof data8 == "number") && (isFinite(data8))){if(data8 < 0 || isNaN(data8)){validate79.errors = [{instancePath:instancePath+"/total",schemaPath:"#/properties/total/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];return false;}}}var valid0 = _errs37 === errors;}else {var valid0 = true;}if(valid0){if(data.card !== undefined){const _errs43 = errors;if(!(validate77(data.card, {instancePath:instancePath+"/card",parentData:data,parentDataProperty:"card",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);errors = vErrors.length;}var valid0 = _errs43 === errors;}else {var valid0 = true;}if(valid0){if(data.requested_at !== undefined){let data10 = data.requested_at;const _errs44 = errors;if(errors === _errs44){if(errors === _errs44){if(typeof data10 === "string"){if(!(formats0.validate(data10))){validate79.errors = [{instancePath:instancePath+"/requested_at",schemaPath:"#/properties/requested_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}else {validate79.errors = [{instancePath:instancePath+"/requested_at",schemaPath:"#/properties/requested_at/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}var valid0 = _errs44 === errors;}else {var valid0 = true;}if(valid0){if(data.settled_at !== undefined){let data11 = data.settled_at;const _errs46 = errors;if((typeof data11 !== "string") && (data11 !== null)){validate79.errors = [{instancePath:instancePath+"/settled_at",schemaPath:"#/properties/settled_at/type",keyword:"type",params:{type: schema108.properties.settled_at.type},message:"must be string,null"}];return false;}if(errors === _errs46){if(errors === _errs46){if(typeof data11 === "string"){if(!(formats0.validate(data11))){validate79.errors = [{instancePath:instancePath+"/settled_at",schemaPath:"#/properties/settled_at/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""}];return false;}}}}var valid0 = _errs46 === errors;}else {var valid0 = true;}if(valid0){if(data.failure_code !== undefined){let data12 = data.failure_code;const _errs48 = errors;if((typeof data12 !== "string") && (data12 !== null)){validate79.errors = [{instancePath:instancePath+"/failure_code",schemaPath:"#/properties/failure_code/type",keyword:"type",params:{type: schema108.properties.failure_code.type},message:"must be string,null"}];return false;}var valid0 = _errs48 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}else {validate79.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate79.errors = vErrors;return errors === 0;}validate79.evaluated = {"props":{"id":true,"purchase_id":true,"status":true,"unused":true,"held_excluded":true,"fee":true,"principal":true,"tax":true,"total":true,"card":true,"requested_at":true,"settled_at":true,"failure_code":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("../../core/responseValidators/compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":2},"validate2":{"$":2}},"definitions":[{"type":"object","required":["unused","held_excluded","fee","principal","tax","total","card"],"properties":{"unused":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"held_excluded":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"fee":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"principal":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"tax":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"total":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"card":{"$":1}}},{"type":"object","properties":{"brand":{"type":["string","null"]},"last4":{"type":["string","null"],"pattern":"^[0-9]{4}$"},"type":{"type":"string"},"email":{"type":"string","format":"email"}},"allOf":[{"if":{"properties":{"type":{"const":"link"}},"required":["type"]},"then":{"required":["email"],"properties":{"brand":{"type":"null"},"last4":{"type":"null"}}}},{"if":{"properties":{"type":{"const":"card"}},"required":["type"]},"then":{"required":["brand","last4"],"properties":{"brand":{"type":"string"},"last4":{"type":"string","pattern":"^[0-9]{4}$"}}}}]},{"type":"object","required":["id","purchase_id","status","unused","held_excluded","fee","principal","tax","total","card","requested_at"],"properties":{"id":{"type":"string"},"purchase_id":{"type":"string"},"status":{"type":"string"},"unused":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"held_excluded":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"fee":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"principal":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"tax":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"total":{"minimum":0,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0}},"card":{"$":3},"requested_at":{"type":"string","format":"date-time"},"settled_at":{"type":["string","null"],"format":"date-time"},"failure_code":{"type":["string","null"]}}},{"type":"object","required":["type"],"properties":{"brand":{"type":"string"},"last4":{"type":"string","pattern":"^[0-9]{4}$"},"type":{"type":"string"}},"allOf":[{"if":{"properties":{"type":{"const":"card"}},"required":["type"]},"then":{"required":["brand","last4"]}},{"if":{"properties":{"type":{"const":"link"}},"required":["type"]},"then":{"not":{"required":["last4"],"properties":{"last4":true}}}}]}]});
@@ -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 @@
1
+ "use strict";exports.validate0 = validate59;const schema92 = {"anyOf":[{"type":"object","required":["outcome"],"properties":{"outcome":{"type":"string","const":"connected"},"linked":{"minimum":0,"maximum":10000,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0,"maximum":10000}},"refused":{"minimum":0,"maximum":10000,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0,"maximum":10000}}}},{"type":"object","description":"The App installation was requested from the organization's owners; nothing is linked yet.","required":["outcome"],"properties":{"outcome":{"type":"string","const":"requested"}}},{"type":"object","required":["outcome","reason"],"properties":{"outcome":{"type":"string","const":"error"},"reason":{"type":"string","enum":["AuthenticationError","AuthorizationError","ConflictError","InvalidRequestError","NotFoundError","unavailable"]}}}]};function validate59(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate59.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;const _errs1 = errors;if(errors === _errs1){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((data.outcome === undefined) && (missing0 = "outcome")){const err0 = {instancePath,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data.outcome !== undefined){let data0 = data.outcome;const _errs3 = errors;if(typeof data0 !== "string"){const err1 = {instancePath:instancePath+"/outcome",schemaPath:"#/anyOf/0/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if("connected" !== data0){const err2 = {instancePath:instancePath+"/outcome",schemaPath:"#/anyOf/0/properties/outcome/const",keyword:"const",params:{allowedValue: "connected"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.linked !== undefined){let data1 = data.linked;const _errs5 = errors;const _errs6 = errors;const _errs7 = errors;let valid3 = false;const _errs8 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err3 = {instancePath:instancePath+"/linked",schemaPath:"#/anyOf/0/properties/linked/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs8 === errors;valid3 = valid3 || _valid1;const _errs10 = errors;if(typeof data1 !== "bigint"){const err4 = {instancePath:instancePath+"/linked",schemaPath:"#/anyOf/0/properties/linked/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 = _errs10 === errors;valid3 = valid3 || _valid1;if(!valid3){const err5 = {instancePath:instancePath+"/linked",schemaPath:"#/anyOf/0/properties/linked/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}var valid2 = _errs6 === errors;if(valid2){if(typeof data1 === "bigint"){if(data1 < 0){const err6 = {instancePath:instancePath+"/linked",schemaPath:"#/anyOf/0/properties/linked/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {if(data1 > 10000){const err7 = {instancePath:instancePath+"/linked",schemaPath:"#/anyOf/0/properties/linked/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}if(errors === _errs5){if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 10000 || isNaN(data1)){const err8 = {instancePath:instancePath+"/linked",schemaPath:"#/anyOf/0/properties/linked/maximum",keyword:"maximum",params:{comparison: "<=", limit: 10000},message:"must be <= 10000"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data1 < 0 || isNaN(data1)){const err9 = {instancePath:instancePath+"/linked",schemaPath:"#/anyOf/0/properties/linked/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.refused !== undefined){let data2 = data.refused;const _errs11 = errors;const _errs12 = errors;const _errs13 = errors;let valid5 = false;const _errs14 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err10 = {instancePath:instancePath+"/refused",schemaPath:"#/anyOf/0/properties/refused/allOf/0/anyOf/0/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid2 = _errs14 === errors;valid5 = valid5 || _valid2;const _errs16 = errors;if(typeof data2 !== "bigint"){const err11 = {instancePath:instancePath+"/refused",schemaPath:"#/anyOf/0/properties/refused/allOf/0/anyOf/1/x-boxrouter-bigint",keyword:"x-boxrouter-bigint",params:{},message:"must pass \"x-boxrouter-bigint\" keyword validation"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid2 = _errs16 === errors;valid5 = valid5 || _valid2;if(!valid5){const err12 = {instancePath:instancePath+"/refused",schemaPath:"#/anyOf/0/properties/refused/allOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}var valid4 = _errs12 === errors;if(valid4){if(typeof data2 === "bigint"){if(data2 < 0){const err13 = {instancePath:instancePath+"/refused",schemaPath:"#/anyOf/0/properties/refused/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {if(data2 > 10000){const err14 = {instancePath:instancePath+"/refused",schemaPath:"#/anyOf/0/properties/refused/x-boxrouter-bigint-range",keyword:"x-boxrouter-bigint-range",params:{},message:"must pass \"x-boxrouter-bigint-range\" keyword validation"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}}if(errors === _errs11){if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 10000 || isNaN(data2)){const err15 = {instancePath:instancePath+"/refused",schemaPath:"#/anyOf/0/properties/refused/maximum",keyword:"maximum",params:{comparison: "<=", limit: 10000},message:"must be <= 10000"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {if(data2 < 0 || isNaN(data2)){const err16 = {instancePath:instancePath+"/refused",schemaPath:"#/anyOf/0/properties/refused/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}}var valid1 = _errs11 === errors;}else {var valid1 = true;}}}}}else {const err17 = {instancePath,schemaPath:"#/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}var _valid0 = _errs1 === errors;valid0 = valid0 || _valid0;if(_valid0){var props0 = {};props0.outcome = true;props0.linked = true;props0.refused = true;}const _errs17 = errors;if(errors === _errs17){if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if((data.outcome === undefined) && (missing1 = "outcome")){const err18 = {instancePath,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {if(data.outcome !== undefined){let data3 = data.outcome;if(typeof data3 !== "string"){const err19 = {instancePath:instancePath+"/outcome",schemaPath:"#/anyOf/1/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("requested" !== data3){const err20 = {instancePath:instancePath+"/outcome",schemaPath:"#/anyOf/1/properties/outcome/const",keyword:"const",params:{allowedValue: "requested"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}}else {const err21 = {instancePath,schemaPath:"#/anyOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}var _valid0 = _errs17 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.outcome = true;}}const _errs21 = errors;if(errors === _errs21){if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((data.outcome === undefined) && (missing2 = "outcome")) || ((data.reason === undefined) && (missing2 = "reason"))){const err22 = {instancePath,schemaPath:"#/anyOf/2/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data.outcome !== undefined){let data4 = data.outcome;const _errs23 = errors;if(typeof data4 !== "string"){const err23 = {instancePath:instancePath+"/outcome",schemaPath:"#/anyOf/2/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("error" !== data4){const err24 = {instancePath:instancePath+"/outcome",schemaPath:"#/anyOf/2/properties/outcome/const",keyword:"const",params:{allowedValue: "error"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var valid7 = _errs23 === errors;}else {var valid7 = true;}if(valid7){if(data.reason !== undefined){let data5 = data.reason;const _errs25 = errors;if(typeof data5 !== "string"){const err25 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(!((((((data5 === "AuthenticationError") || (data5 === "AuthorizationError")) || (data5 === "ConflictError")) || (data5 === "InvalidRequestError")) || (data5 === "NotFoundError")) || (data5 === "unavailable"))){const err26 = {instancePath:instancePath+"/reason",schemaPath:"#/anyOf/2/properties/reason/enum",keyword:"enum",params:{allowedValues: schema92.anyOf[2].properties.reason.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var valid7 = _errs25 === errors;}else {var valid7 = true;}}}}else {const err27 = {instancePath,schemaPath:"#/anyOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var _valid0 = _errs21 === errors;valid0 = valid0 || _valid0;if(_valid0){if(props0 !== true){props0 = props0 || {};props0.outcome = true;props0.reason = true;}}if(!valid0){const err28 = {instancePath,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;validate59.errors = vErrors;return false;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate59.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate59.evaluated = {"dynamicProps":true,"dynamicItems":false};exports.validate1 = validate60;const schema93 = {"type":"object","required":["selection_id","installations"],"properties":{"selection_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"installations":{"type":"array","maxItems":2000,"items":{"$ref":"#/components/schemas/GitHubExistingInstallationChoice"}}}};const func1 = require("ajv/dist/runtime/ucs2length").default;const pattern8 = new RegExp("^[^\\u0000]*$", "u");const schema94 = {"type":"object","required":["installation_id","account_login","account_type","repositories"],"properties":{"installation_id":{"type":"string","minLength":1,"maxLength":18,"pattern":"^[1-9][0-9]{0,17}$"},"account_login":{"type":"string","minLength":1,"maxLength":100},"account_type":{"type":"string","enum":["User","Organization"]},"repositories":{"type":"array","maxItems":2000,"items":{"$ref":"#/components/schemas/GitHubExistingInstallationRepositoryChoice"}}}};const schema95 = {"type":"object","required":["repository_id","full_name"],"properties":{"repository_id":{"type":"string","minLength":1,"maxLength":18,"pattern":"^[1-9][0-9]{0,17}$"},"full_name":{"type":"string","minLength":3,"maxLength":200}}};const pattern9 = new RegExp("^[1-9][0-9]{0,17}$", "u");function validate61(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate61.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.installation_id === undefined) && (missing0 = "installation_id")) || ((data.account_login === undefined) && (missing0 = "account_login"))) || ((data.account_type === undefined) && (missing0 = "account_type"))) || ((data.repositories === undefined) && (missing0 = "repositories"))){validate61.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.installation_id !== undefined){let data0 = data.installation_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 18){validate61.errors = [{instancePath:instancePath+"/installation_id",schemaPath:"#/properties/installation_id/maxLength",keyword:"maxLength",params:{limit: 18},message:"must NOT have more than 18 characters"}];return false;}else {if(func1(data0) < 1){validate61.errors = [{instancePath:instancePath+"/installation_id",schemaPath:"#/properties/installation_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern9.test(data0)){validate61.errors = [{instancePath:instancePath+"/installation_id",schemaPath:"#/properties/installation_id/pattern",keyword:"pattern",params:{pattern: "^[1-9][0-9]{0,17}$"},message:"must match pattern \""+"^[1-9][0-9]{0,17}$"+"\""}];return false;}}}}else {validate61.errors = [{instancePath:instancePath+"/installation_id",schemaPath:"#/properties/installation_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.account_login !== undefined){let data1 = data.account_login;const _errs3 = errors;if(errors === _errs3){if(typeof data1 === "string"){if(func1(data1) > 100){validate61.errors = [{instancePath:instancePath+"/account_login",schemaPath:"#/properties/account_login/maxLength",keyword:"maxLength",params:{limit: 100},message:"must NOT have more than 100 characters"}];return false;}else {if(func1(data1) < 1){validate61.errors = [{instancePath:instancePath+"/account_login",schemaPath:"#/properties/account_login/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}}}else {validate61.errors = [{instancePath:instancePath+"/account_login",schemaPath:"#/properties/account_login/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.account_type !== undefined){let data2 = data.account_type;const _errs5 = errors;if(typeof data2 !== "string"){validate61.errors = [{instancePath:instancePath+"/account_type",schemaPath:"#/properties/account_type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!((data2 === "User") || (data2 === "Organization"))){validate61.errors = [{instancePath:instancePath+"/account_type",schemaPath:"#/properties/account_type/enum",keyword:"enum",params:{allowedValues: schema94.properties.account_type.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.repositories !== undefined){let data3 = data.repositories;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data3)){if(data3.length > 2000){validate61.errors = [{instancePath:instancePath+"/repositories",schemaPath:"#/properties/repositories/maxItems",keyword:"maxItems",params:{limit: 2000},message:"must NOT have more than 2000 items"}];return false;}else {var valid1 = true;const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];const _errs9 = errors;const _errs10 = errors;if(errors === _errs10){if(data4 && typeof data4 == "object" && !Array.isArray(data4)){let missing1;if(((data4.repository_id === undefined) && (missing1 = "repository_id")) || ((data4.full_name === undefined) && (missing1 = "full_name"))){validate61.errors = [{instancePath:instancePath+"/repositories/" + i0,schemaPath:"#/components/schemas/GitHubExistingInstallationRepositoryChoice/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data4.repository_id !== undefined){let data5 = data4.repository_id;const _errs12 = errors;if(errors === _errs12){if(typeof data5 === "string"){if(func1(data5) > 18){validate61.errors = [{instancePath:instancePath+"/repositories/" + i0+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationRepositoryChoice/properties/repository_id/maxLength",keyword:"maxLength",params:{limit: 18},message:"must NOT have more than 18 characters"}];return false;}else {if(func1(data5) < 1){validate61.errors = [{instancePath:instancePath+"/repositories/" + i0+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationRepositoryChoice/properties/repository_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern9.test(data5)){validate61.errors = [{instancePath:instancePath+"/repositories/" + i0+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationRepositoryChoice/properties/repository_id/pattern",keyword:"pattern",params:{pattern: "^[1-9][0-9]{0,17}$"},message:"must match pattern \""+"^[1-9][0-9]{0,17}$"+"\""}];return false;}}}}else {validate61.errors = [{instancePath:instancePath+"/repositories/" + i0+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationRepositoryChoice/properties/repository_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid3 = _errs12 === errors;}else {var valid3 = true;}if(valid3){if(data4.full_name !== undefined){let data6 = data4.full_name;const _errs14 = errors;if(errors === _errs14){if(typeof data6 === "string"){if(func1(data6) > 200){validate61.errors = [{instancePath:instancePath+"/repositories/" + i0+"/full_name",schemaPath:"#/components/schemas/GitHubExistingInstallationRepositoryChoice/properties/full_name/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func1(data6) < 3){validate61.errors = [{instancePath:instancePath+"/repositories/" + i0+"/full_name",schemaPath:"#/components/schemas/GitHubExistingInstallationRepositoryChoice/properties/full_name/minLength",keyword:"minLength",params:{limit: 3},message:"must NOT have fewer than 3 characters"}];return false;}}}else {validate61.errors = [{instancePath:instancePath+"/repositories/" + i0+"/full_name",schemaPath:"#/components/schemas/GitHubExistingInstallationRepositoryChoice/properties/full_name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid3 = _errs14 === errors;}else {var valid3 = true;}}}}else {validate61.errors = [{instancePath:instancePath+"/repositories/" + i0,schemaPath:"#/components/schemas/GitHubExistingInstallationRepositoryChoice/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs9 === errors;if(!valid1){break;}}}}else {validate61.errors = [{instancePath:instancePath+"/repositories",schemaPath:"#/properties/repositories/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs7 === errors;}else {var valid0 = true;}}}}}}else {validate61.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate61.errors = vErrors;return errors === 0;}validate61.evaluated = {"props":{"installation_id":true,"account_login":true,"account_type":true,"repositories":true},"dynamicProps":false,"dynamicItems":false};function validate60(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate60.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.selection_id === undefined) && (missing0 = "selection_id")) || ((data.installations === undefined) && (missing0 = "installations"))){validate60.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.selection_id !== undefined){let data0 = data.selection_id;const _errs1 = errors;if(errors === _errs1){if(typeof data0 === "string"){if(func1(data0) > 128){validate60.errors = [{instancePath:instancePath+"/selection_id",schemaPath:"#/properties/selection_id/maxLength",keyword:"maxLength",params:{limit: 128},message:"must NOT have more than 128 characters"}];return false;}else {if(func1(data0) < 1){validate60.errors = [{instancePath:instancePath+"/selection_id",schemaPath:"#/properties/selection_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern8.test(data0)){validate60.errors = [{instancePath:instancePath+"/selection_id",schemaPath:"#/properties/selection_id/pattern",keyword:"pattern",params:{pattern: "^[^\\u0000]*$"},message:"must match pattern \""+"^[^\\u0000]*$"+"\""}];return false;}}}}else {validate60.errors = [{instancePath:instancePath+"/selection_id",schemaPath:"#/properties/selection_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.installations !== undefined){let data1 = data.installations;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){if(data1.length > 2000){validate60.errors = [{instancePath:instancePath+"/installations",schemaPath:"#/properties/installations/maxItems",keyword:"maxItems",params:{limit: 2000},message:"must NOT have more than 2000 items"}];return false;}else {var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){const _errs5 = errors;if(!(validate61(data1[i0], {instancePath:instancePath+"/installations/" + i0,parentData:data1,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);errors = vErrors.length;}var valid1 = _errs5 === errors;if(!valid1){break;}}}}else {validate60.errors = [{instancePath:instancePath+"/installations",schemaPath:"#/properties/installations/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}}}}else {validate60.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate60.errors = vErrors;return errors === 0;}validate60.evaluated = {"props":{"selection_id":true,"installations":true},"dynamicProps":false,"dynamicItems":false};exports.validate2 = validate63;const schema96 = {"type":"object","required":["outcome","linked","refused"],"properties":{"outcome":{"type":"string","const":"connected"},"linked":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/GitHubExistingInstallationLinkResult"}},"refused":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/GitHubExistingInstallationRefusal"}}}};const schema97 = {"type":"object","required":["repository_id","full_name"],"properties":{"repository_id":{"type":"string","minLength":1,"maxLength":18,"pattern":"^[1-9][0-9]{0,17}$"},"full_name":{"type":"string","minLength":3,"maxLength":200}}};const schema98 = {"type":"object","required":["repository_id"],"properties":{"repository_id":{"type":"string","minLength":1,"maxLength":18,"pattern":"^[1-9][0-9]{0,17}$"}}};function validate63(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate63.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.outcome === undefined) && (missing0 = "outcome")) || ((data.linked === undefined) && (missing0 = "linked"))) || ((data.refused === undefined) && (missing0 = "refused"))){validate63.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.outcome !== undefined){let data0 = data.outcome;const _errs1 = errors;if(typeof data0 !== "string"){validate63.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if("connected" !== data0){validate63.errors = [{instancePath:instancePath+"/outcome",schemaPath:"#/properties/outcome/const",keyword:"const",params:{allowedValue: "connected"},message:"must be equal to constant"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.linked !== undefined){let data1 = data.linked;const _errs3 = errors;if(errors === _errs3){if(Array.isArray(data1)){if(data1.length > 100){validate63.errors = [{instancePath:instancePath+"/linked",schemaPath:"#/properties/linked/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {var valid1 = true;const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];const _errs5 = errors;const _errs6 = errors;if(errors === _errs6){if(data2 && typeof data2 == "object" && !Array.isArray(data2)){let missing1;if(((data2.repository_id === undefined) && (missing1 = "repository_id")) || ((data2.full_name === undefined) && (missing1 = "full_name"))){validate63.errors = [{instancePath:instancePath+"/linked/" + i0,schemaPath:"#/components/schemas/GitHubExistingInstallationLinkResult/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {if(data2.repository_id !== undefined){let data3 = data2.repository_id;const _errs8 = errors;if(errors === _errs8){if(typeof data3 === "string"){if(func1(data3) > 18){validate63.errors = [{instancePath:instancePath+"/linked/" + i0+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationLinkResult/properties/repository_id/maxLength",keyword:"maxLength",params:{limit: 18},message:"must NOT have more than 18 characters"}];return false;}else {if(func1(data3) < 1){validate63.errors = [{instancePath:instancePath+"/linked/" + i0+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationLinkResult/properties/repository_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern9.test(data3)){validate63.errors = [{instancePath:instancePath+"/linked/" + i0+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationLinkResult/properties/repository_id/pattern",keyword:"pattern",params:{pattern: "^[1-9][0-9]{0,17}$"},message:"must match pattern \""+"^[1-9][0-9]{0,17}$"+"\""}];return false;}}}}else {validate63.errors = [{instancePath:instancePath+"/linked/" + i0+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationLinkResult/properties/repository_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid3 = _errs8 === errors;}else {var valid3 = true;}if(valid3){if(data2.full_name !== undefined){let data4 = data2.full_name;const _errs10 = errors;if(errors === _errs10){if(typeof data4 === "string"){if(func1(data4) > 200){validate63.errors = [{instancePath:instancePath+"/linked/" + i0+"/full_name",schemaPath:"#/components/schemas/GitHubExistingInstallationLinkResult/properties/full_name/maxLength",keyword:"maxLength",params:{limit: 200},message:"must NOT have more than 200 characters"}];return false;}else {if(func1(data4) < 3){validate63.errors = [{instancePath:instancePath+"/linked/" + i0+"/full_name",schemaPath:"#/components/schemas/GitHubExistingInstallationLinkResult/properties/full_name/minLength",keyword:"minLength",params:{limit: 3},message:"must NOT have fewer than 3 characters"}];return false;}}}else {validate63.errors = [{instancePath:instancePath+"/linked/" + i0+"/full_name",schemaPath:"#/components/schemas/GitHubExistingInstallationLinkResult/properties/full_name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}var valid3 = _errs10 === errors;}else {var valid3 = true;}}}}else {validate63.errors = [{instancePath:instancePath+"/linked/" + i0,schemaPath:"#/components/schemas/GitHubExistingInstallationLinkResult/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs5 === errors;if(!valid1){break;}}}}else {validate63.errors = [{instancePath:instancePath+"/linked",schemaPath:"#/properties/linked/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.refused !== undefined){let data5 = data.refused;const _errs12 = errors;if(errors === _errs12){if(Array.isArray(data5)){if(data5.length > 100){validate63.errors = [{instancePath:instancePath+"/refused",schemaPath:"#/properties/refused/maxItems",keyword:"maxItems",params:{limit: 100},message:"must NOT have more than 100 items"}];return false;}else {var valid4 = true;const len1 = data5.length;for(let i1=0; i1<len1; i1++){let data6 = data5[i1];const _errs14 = errors;const _errs15 = errors;if(errors === _errs15){if(data6 && typeof data6 == "object" && !Array.isArray(data6)){let missing2;if((data6.repository_id === undefined) && (missing2 = "repository_id")){validate63.errors = [{instancePath:instancePath+"/refused/" + i1,schemaPath:"#/components/schemas/GitHubExistingInstallationRefusal/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data6.repository_id !== undefined){let data7 = data6.repository_id;const _errs17 = errors;if(errors === _errs17){if(typeof data7 === "string"){if(func1(data7) > 18){validate63.errors = [{instancePath:instancePath+"/refused/" + i1+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationRefusal/properties/repository_id/maxLength",keyword:"maxLength",params:{limit: 18},message:"must NOT have more than 18 characters"}];return false;}else {if(func1(data7) < 1){validate63.errors = [{instancePath:instancePath+"/refused/" + i1+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationRefusal/properties/repository_id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"}];return false;}else {if(!pattern9.test(data7)){validate63.errors = [{instancePath:instancePath+"/refused/" + i1+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationRefusal/properties/repository_id/pattern",keyword:"pattern",params:{pattern: "^[1-9][0-9]{0,17}$"},message:"must match pattern \""+"^[1-9][0-9]{0,17}$"+"\""}];return false;}}}}else {validate63.errors = [{instancePath:instancePath+"/refused/" + i1+"/repository_id",schemaPath:"#/components/schemas/GitHubExistingInstallationRefusal/properties/repository_id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}}}}}else {validate63.errors = [{instancePath:instancePath+"/refused/" + i1,schemaPath:"#/components/schemas/GitHubExistingInstallationRefusal/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid4 = _errs14 === errors;if(!valid4){break;}}}}else {validate63.errors = [{instancePath:instancePath+"/refused",schemaPath:"#/properties/refused/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs12 === errors;}else {var valid0 = true;}}}}}else {validate63.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate63.errors = vErrors;return errors === 0;}validate63.evaluated = {"props":{"outcome":true,"linked":true,"refused":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("../../core/responseValidators/compact.cjs")({"roots":{"validate0":{"$":0},"validate1":{"$":1},"validate2":{"$":4}},"definitions":[{"anyOf":[{"type":"object","required":["outcome"],"properties":{"outcome":{"type":"string","const":"connected"},"linked":{"minimum":0,"maximum":10000,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0,"maximum":10000}},"refused":{"minimum":0,"maximum":10000,"allOf":[{"anyOf":[{"type":"integer"},{"x-boxrouter-bigint":true}]}],"x-boxrouter-bigint-range":{"minimum":0,"maximum":10000}}}},{"type":"object","required":["outcome"],"properties":{"outcome":{"type":"string","const":"requested"}}},{"type":"object","required":["outcome","reason"],"properties":{"outcome":{"type":"string","const":"error"},"reason":{"type":"string","enum":["AuthenticationError","AuthorizationError","ConflictError","InvalidRequestError","NotFoundError","unavailable"]}}}]},{"type":"object","required":["selection_id","installations"],"properties":{"selection_id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\u0000]*$"},"installations":{"type":"array","maxItems":2000,"items":{"$":2}}}},{"type":"object","required":["installation_id","account_login","account_type","repositories"],"properties":{"installation_id":{"type":"string","minLength":1,"maxLength":18,"pattern":"^[1-9][0-9]{0,17}$"},"account_login":{"type":"string","minLength":1,"maxLength":100},"account_type":{"type":"string","enum":["User","Organization"]},"repositories":{"type":"array","maxItems":2000,"items":{"$":3}}}},{"type":"object","required":["repository_id","full_name"],"properties":{"repository_id":{"type":"string","minLength":1,"maxLength":18,"pattern":"^[1-9][0-9]{0,17}$"},"full_name":{"type":"string","minLength":3,"maxLength":200}}},{"type":"object","required":["outcome","linked","refused"],"properties":{"outcome":{"type":"string","const":"connected"},"linked":{"type":"array","maxItems":100,"items":{"$":5}},"refused":{"type":"array","maxItems":100,"items":{"$":6}}}},{"type":"object","required":["repository_id","full_name"],"properties":{"repository_id":{"type":"string","minLength":1,"maxLength":18,"pattern":"^[1-9][0-9]{0,17}$"},"full_name":{"type":"string","minLength":3,"maxLength":200}}},{"type":"object","required":["repository_id"],"properties":{"repository_id":{"type":"string","minLength":1,"maxLength":18,"pattern":"^[1-9][0-9]{0,17}$"}}}]});
@@ -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;