@peable.to/contracts 0.3.0 → 1.0.0

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 (316) hide show
  1. package/dist/cjs/common/address.js +81 -0
  2. package/dist/cjs/common/envelopes.js +101 -0
  3. package/dist/cjs/common/objects.js +85 -0
  4. package/dist/cjs/common/params.js +211 -0
  5. package/dist/cjs/common/primitives.js +39 -0
  6. package/dist/cjs/contributions.js +22 -0
  7. package/dist/cjs/index.js +40 -97
  8. package/dist/cjs/openapi/document.js +297 -0
  9. package/dist/cjs/openapi/index.js +7 -0
  10. package/dist/cjs/openapi/webhooks.js +17 -0
  11. package/dist/cjs/resources/billingEngine/billingPortal.js +237 -0
  12. package/dist/cjs/resources/billingEngine/creditNotes.js +189 -0
  13. package/dist/cjs/resources/billingEngine/customerBalanceTransactions.js +90 -0
  14. package/dist/cjs/resources/billingEngine/index.js +43 -0
  15. package/dist/cjs/resources/billingEngine/invoiceItems.js +155 -0
  16. package/dist/cjs/resources/billingEngine/invoices.js +509 -0
  17. package/dist/cjs/resources/billingEngine/params.js +43 -0
  18. package/dist/cjs/resources/billingEngine/public.js +326 -0
  19. package/dist/cjs/resources/billingEngine/subscriptions.js +476 -0
  20. package/dist/cjs/resources/catalog/billing.js +755 -0
  21. package/dist/cjs/resources/catalog/billingSettings.js +131 -0
  22. package/dist/cjs/resources/catalog/coupons.js +222 -0
  23. package/dist/cjs/resources/catalog/entitlements.js +257 -0
  24. package/dist/cjs/resources/catalog/index.js +58 -0
  25. package/dist/cjs/resources/catalog/meters.js +279 -0
  26. package/dist/cjs/resources/catalog/prices.js +423 -0
  27. package/dist/cjs/resources/catalog/products.js +228 -0
  28. package/dist/cjs/resources/catalog/promotionCodes.js +174 -0
  29. package/dist/cjs/resources/catalog/shared.js +75 -0
  30. package/dist/cjs/resources/catalog/testClocks.js +127 -0
  31. package/dist/cjs/resources/checkout/checkoutSessions.js +582 -0
  32. package/dist/cjs/resources/checkout/contributions.js +172 -0
  33. package/dist/cjs/resources/checkout/files.js +133 -0
  34. package/dist/cjs/resources/checkout/index.js +57 -0
  35. package/dist/cjs/resources/checkout/merchants.js +290 -0
  36. package/dist/cjs/resources/checkout/paymentLinks.js +330 -0
  37. package/dist/cjs/resources/checkout/paymentMethodConfigurations.js +262 -0
  38. package/dist/cjs/resources/checkout/shared.js +368 -0
  39. package/dist/cjs/resources/connect/account.js +332 -0
  40. package/dist/cjs/resources/connect/applicationFees.js +113 -0
  41. package/dist/cjs/resources/connect/balance.js +212 -0
  42. package/dist/cjs/resources/connect/connectedAccounts.js +260 -0
  43. package/dist/cjs/resources/connect/index.js +51 -0
  44. package/dist/cjs/resources/connect/onboarding.js +82 -0
  45. package/dist/cjs/resources/connect/payouts.js +196 -0
  46. package/dist/cjs/resources/connect/reporting.js +235 -0
  47. package/dist/cjs/resources/connect/requestLogs.js +110 -0
  48. package/dist/cjs/resources/connect/transfers.js +227 -0
  49. package/dist/cjs/resources/core/customers.js +194 -0
  50. package/dist/cjs/resources/core/index.js +23 -0
  51. package/dist/cjs/resources/core/paymentMethods.js +134 -0
  52. package/dist/cjs/resources/events/events.js +357 -0
  53. package/dist/cjs/resources/events/index.js +29 -0
  54. package/dist/cjs/resources/events/webhookDeliveries.js +93 -0
  55. package/dist/cjs/resources/events/webhookEndpoints.js +215 -0
  56. package/dist/cjs/resources/payments/charges.js +157 -0
  57. package/dist/cjs/resources/payments/disputes.js +204 -0
  58. package/dist/cjs/resources/payments/index.js +41 -0
  59. package/dist/cjs/resources/payments/paymentIntents.js +529 -0
  60. package/dist/cjs/resources/payments/refunds.js +245 -0
  61. package/dist/cjs/resources/payments/setupIntents.js +158 -0
  62. package/dist/cjs/resources/payments/social.js +182 -0
  63. package/dist/cjs/resources/payments/testHelpers.js +39 -0
  64. package/dist/cjs/resources/tax/assessments.js +217 -0
  65. package/dist/cjs/resources/tax/businessProfile.js +99 -0
  66. package/dist/cjs/resources/tax/calculations.js +176 -0
  67. package/dist/cjs/resources/tax/capabilities.js +42 -0
  68. package/dist/cjs/resources/tax/codes.js +37 -0
  69. package/dist/cjs/resources/tax/complianceActions.js +56 -0
  70. package/dist/cjs/resources/tax/deadlines.js +59 -0
  71. package/dist/cjs/resources/tax/documents.js +128 -0
  72. package/dist/cjs/resources/tax/index.js +80 -0
  73. package/dist/cjs/resources/tax/locationEvidence.js +131 -0
  74. package/dist/cjs/resources/tax/operatingLocations.js +98 -0
  75. package/dist/cjs/resources/tax/products.js +67 -0
  76. package/dist/cjs/resources/tax/registrationDeclarations.js +124 -0
  77. package/dist/cjs/resources/tax/registrations.js +82 -0
  78. package/dist/cjs/resources/tax/reports.js +92 -0
  79. package/dist/cjs/resources/tax/reviewItems.js +116 -0
  80. package/dist/cjs/resources/tax/ruleSet.js +68 -0
  81. package/dist/cjs/resources/tax/salesDestinations.js +94 -0
  82. package/dist/cjs/resources/tax/settings.js +104 -0
  83. package/dist/cjs/resources/tax/shared.js +62 -0
  84. package/dist/cjs/resources/tax/transactions.js +102 -0
  85. package/dist/cjs/route.js +22 -0
  86. package/dist/cjs/routes.js +31 -0
  87. package/dist/cjs/vocabulary/billingPortal.js +15 -0
  88. package/dist/cjs/vocabulary/catalog.js +110 -0
  89. package/dist/cjs/vocabulary/checkout.js +53 -0
  90. package/dist/cjs/vocabulary/connect.js +95 -0
  91. package/dist/cjs/vocabulary/errors.js +174 -0
  92. package/dist/cjs/vocabulary/events.js +176 -0
  93. package/dist/cjs/vocabulary/files.js +44 -0
  94. package/dist/cjs/vocabulary/index.js +37 -0
  95. package/dist/cjs/vocabulary/invoices.js +52 -0
  96. package/dist/cjs/vocabulary/lists.js +22 -0
  97. package/dist/cjs/vocabulary/merchants.js +23 -0
  98. package/dist/cjs/vocabulary/money.js +104 -0
  99. package/dist/cjs/vocabulary/paymentMethodConfigurations.js +36 -0
  100. package/dist/cjs/vocabulary/payments.js +195 -0
  101. package/dist/cjs/vocabulary/reporting.js +27 -0
  102. package/dist/cjs/vocabulary/subscriptions.js +60 -0
  103. package/dist/cjs/vocabulary/tax.js +237 -0
  104. package/dist/cjs/vocabulary/version.js +12 -0
  105. package/dist/esm/common/address.js +76 -0
  106. package/dist/esm/common/envelopes.js +95 -0
  107. package/dist/esm/common/objects.js +74 -0
  108. package/dist/esm/common/params.js +203 -0
  109. package/dist/esm/common/primitives.js +35 -0
  110. package/dist/esm/contributions.js +5 -0
  111. package/dist/esm/index.js +26 -94
  112. package/dist/esm/openapi/document.js +294 -0
  113. package/dist/esm/openapi/index.js +2 -0
  114. package/dist/esm/openapi/webhooks.js +14 -0
  115. package/dist/esm/resources/billingEngine/billingPortal.js +234 -0
  116. package/dist/esm/resources/billingEngine/creditNotes.js +186 -0
  117. package/dist/esm/resources/billingEngine/customerBalanceTransactions.js +87 -0
  118. package/dist/esm/resources/billingEngine/index.js +26 -0
  119. package/dist/esm/resources/billingEngine/invoiceItems.js +152 -0
  120. package/dist/esm/resources/billingEngine/invoices.js +506 -0
  121. package/dist/esm/resources/billingEngine/params.js +39 -0
  122. package/dist/esm/resources/billingEngine/public.js +323 -0
  123. package/dist/esm/resources/billingEngine/subscriptions.js +473 -0
  124. package/dist/esm/resources/catalog/billing.js +752 -0
  125. package/dist/esm/resources/catalog/billingSettings.js +128 -0
  126. package/dist/esm/resources/catalog/coupons.js +219 -0
  127. package/dist/esm/resources/catalog/entitlements.js +254 -0
  128. package/dist/esm/resources/catalog/index.js +38 -0
  129. package/dist/esm/resources/catalog/meters.js +276 -0
  130. package/dist/esm/resources/catalog/prices.js +419 -0
  131. package/dist/esm/resources/catalog/products.js +225 -0
  132. package/dist/esm/resources/catalog/promotionCodes.js +171 -0
  133. package/dist/esm/resources/catalog/shared.js +67 -0
  134. package/dist/esm/resources/catalog/testClocks.js +124 -0
  135. package/dist/esm/resources/checkout/checkoutSessions.js +579 -0
  136. package/dist/esm/resources/checkout/contributions.js +167 -0
  137. package/dist/esm/resources/checkout/files.js +130 -0
  138. package/dist/esm/resources/checkout/index.js +25 -0
  139. package/dist/esm/resources/checkout/merchants.js +287 -0
  140. package/dist/esm/resources/checkout/paymentLinks.js +327 -0
  141. package/dist/esm/resources/checkout/paymentMethodConfigurations.js +259 -0
  142. package/dist/esm/resources/checkout/shared.js +363 -0
  143. package/dist/esm/resources/connect/account.js +329 -0
  144. package/dist/esm/resources/connect/applicationFees.js +110 -0
  145. package/dist/esm/resources/connect/balance.js +209 -0
  146. package/dist/esm/resources/connect/connectedAccounts.js +257 -0
  147. package/dist/esm/resources/connect/index.js +34 -0
  148. package/dist/esm/resources/connect/onboarding.js +79 -0
  149. package/dist/esm/resources/connect/payouts.js +193 -0
  150. package/dist/esm/resources/connect/reporting.js +232 -0
  151. package/dist/esm/resources/connect/requestLogs.js +107 -0
  152. package/dist/esm/resources/connect/transfers.js +224 -0
  153. package/dist/esm/resources/core/customers.js +191 -0
  154. package/dist/esm/resources/core/index.js +6 -0
  155. package/dist/esm/resources/core/paymentMethods.js +131 -0
  156. package/dist/esm/resources/events/events.js +353 -0
  157. package/dist/esm/resources/events/index.js +12 -0
  158. package/dist/esm/resources/events/webhookDeliveries.js +90 -0
  159. package/dist/esm/resources/events/webhookEndpoints.js +212 -0
  160. package/dist/esm/resources/payments/charges.js +154 -0
  161. package/dist/esm/resources/payments/disputes.js +201 -0
  162. package/dist/esm/resources/payments/index.js +24 -0
  163. package/dist/esm/resources/payments/paymentIntents.js +526 -0
  164. package/dist/esm/resources/payments/refunds.js +242 -0
  165. package/dist/esm/resources/payments/setupIntents.js +155 -0
  166. package/dist/esm/resources/payments/social.js +179 -0
  167. package/dist/esm/resources/payments/testHelpers.js +36 -0
  168. package/dist/esm/resources/tax/assessments.js +214 -0
  169. package/dist/esm/resources/tax/businessProfile.js +96 -0
  170. package/dist/esm/resources/tax/calculations.js +173 -0
  171. package/dist/esm/resources/tax/capabilities.js +39 -0
  172. package/dist/esm/resources/tax/codes.js +34 -0
  173. package/dist/esm/resources/tax/complianceActions.js +53 -0
  174. package/dist/esm/resources/tax/deadlines.js +56 -0
  175. package/dist/esm/resources/tax/documents.js +125 -0
  176. package/dist/esm/resources/tax/index.js +63 -0
  177. package/dist/esm/resources/tax/locationEvidence.js +128 -0
  178. package/dist/esm/resources/tax/operatingLocations.js +95 -0
  179. package/dist/esm/resources/tax/products.js +64 -0
  180. package/dist/esm/resources/tax/registrationDeclarations.js +121 -0
  181. package/dist/esm/resources/tax/registrations.js +79 -0
  182. package/dist/esm/resources/tax/reports.js +89 -0
  183. package/dist/esm/resources/tax/reviewItems.js +113 -0
  184. package/dist/esm/resources/tax/ruleSet.js +65 -0
  185. package/dist/esm/resources/tax/salesDestinations.js +91 -0
  186. package/dist/esm/resources/tax/settings.js +101 -0
  187. package/dist/esm/resources/tax/shared.js +58 -0
  188. package/dist/esm/resources/tax/transactions.js +99 -0
  189. package/dist/esm/route.js +16 -0
  190. package/dist/esm/routes.js +27 -0
  191. package/dist/esm/vocabulary/billingPortal.js +12 -0
  192. package/dist/esm/vocabulary/catalog.js +106 -0
  193. package/dist/esm/vocabulary/checkout.js +50 -0
  194. package/dist/esm/vocabulary/connect.js +92 -0
  195. package/dist/esm/vocabulary/errors.js +169 -0
  196. package/dist/esm/vocabulary/events.js +173 -0
  197. package/dist/esm/vocabulary/files.js +41 -0
  198. package/dist/esm/vocabulary/index.js +21 -0
  199. package/dist/esm/vocabulary/invoices.js +49 -0
  200. package/dist/esm/vocabulary/lists.js +19 -0
  201. package/dist/esm/vocabulary/merchants.js +20 -0
  202. package/dist/esm/vocabulary/money.js +98 -0
  203. package/dist/esm/vocabulary/paymentMethodConfigurations.js +33 -0
  204. package/dist/esm/vocabulary/payments.js +192 -0
  205. package/dist/esm/vocabulary/reporting.js +24 -0
  206. package/dist/esm/vocabulary/subscriptions.js +57 -0
  207. package/dist/esm/vocabulary/tax.js +233 -0
  208. package/dist/esm/vocabulary/version.js +9 -0
  209. package/dist/types/common/address.d.ts +62 -0
  210. package/dist/types/common/envelopes.d.ts +88 -0
  211. package/dist/types/common/objects.d.ts +107 -0
  212. package/dist/types/common/params.d.ts +156 -0
  213. package/dist/types/common/primitives.d.ts +56 -0
  214. package/dist/types/contributions.d.ts +1 -0
  215. package/dist/types/index.d.ts +16 -134
  216. package/dist/types/openapi/document.d.ts +16 -0
  217. package/dist/types/openapi/index.d.ts +2 -0
  218. package/dist/types/openapi/webhooks.d.ts +15 -0
  219. package/dist/types/resources/billingEngine/billingPortal.d.ts +742 -0
  220. package/dist/types/resources/billingEngine/creditNotes.d.ts +655 -0
  221. package/dist/types/resources/billingEngine/customerBalanceTransactions.d.ts +282 -0
  222. package/dist/types/resources/billingEngine/index.d.ts +6071 -0
  223. package/dist/types/resources/billingEngine/invoiceItems.d.ts +502 -0
  224. package/dist/types/resources/billingEngine/invoices.d.ts +2547 -0
  225. package/dist/types/resources/billingEngine/params.d.ts +51 -0
  226. package/dist/types/resources/billingEngine/public.d.ts +1860 -0
  227. package/dist/types/resources/billingEngine/subscriptions.d.ts +1519 -0
  228. package/dist/types/resources/catalog/billing.d.ts +1723 -0
  229. package/dist/types/resources/catalog/billingSettings.d.ts +160 -0
  230. package/dist/types/resources/catalog/coupons.d.ts +403 -0
  231. package/dist/types/resources/catalog/entitlements.d.ts +422 -0
  232. package/dist/types/resources/catalog/index.d.ts +3155 -0
  233. package/dist/types/resources/catalog/meters.d.ts +474 -0
  234. package/dist/types/resources/catalog/prices.d.ts +1091 -0
  235. package/dist/types/resources/catalog/products.d.ts +430 -0
  236. package/dist/types/resources/catalog/promotionCodes.d.ts +369 -0
  237. package/dist/types/resources/catalog/shared.d.ts +34 -0
  238. package/dist/types/resources/catalog/testClocks.d.ts +220 -0
  239. package/dist/types/resources/checkout/checkoutSessions.d.ts +3207 -0
  240. package/dist/types/resources/checkout/contributions.d.ts +375 -0
  241. package/dist/types/resources/checkout/files.d.ts +280 -0
  242. package/dist/types/resources/checkout/index.d.ts +5678 -0
  243. package/dist/types/resources/checkout/merchants.d.ts +395 -0
  244. package/dist/types/resources/checkout/paymentLinks.d.ts +1728 -0
  245. package/dist/types/resources/checkout/paymentMethodConfigurations.d.ts +2104 -0
  246. package/dist/types/resources/checkout/shared.d.ts +419 -0
  247. package/dist/types/resources/connect/account.d.ts +483 -0
  248. package/dist/types/resources/connect/applicationFees.d.ts +198 -0
  249. package/dist/types/resources/connect/balance.d.ts +399 -0
  250. package/dist/types/resources/connect/connectedAccounts.d.ts +494 -0
  251. package/dist/types/resources/connect/index.d.ts +2094 -0
  252. package/dist/types/resources/connect/onboarding.d.ts +95 -0
  253. package/dist/types/resources/connect/payouts.d.ts +527 -0
  254. package/dist/types/resources/connect/reporting.d.ts +506 -0
  255. package/dist/types/resources/connect/requestLogs.d.ts +236 -0
  256. package/dist/types/resources/connect/transfers.d.ts +436 -0
  257. package/dist/types/resources/core/customers.d.ts +619 -0
  258. package/dist/types/resources/core/index.d.ts +679 -0
  259. package/dist/types/resources/core/paymentMethods.d.ts +336 -0
  260. package/dist/types/resources/events/events.d.ts +731 -0
  261. package/dist/types/resources/events/index.d.ts +1727 -0
  262. package/dist/types/resources/events/webhookDeliveries.d.ts +436 -0
  263. package/dist/types/resources/events/webhookEndpoints.d.ts +1502 -0
  264. package/dist/types/resources/payments/charges.d.ts +390 -0
  265. package/dist/types/resources/payments/disputes.d.ts +822 -0
  266. package/dist/types/resources/payments/index.d.ts +3517 -0
  267. package/dist/types/resources/payments/paymentIntents.d.ts +2080 -0
  268. package/dist/types/resources/payments/refunds.d.ts +684 -0
  269. package/dist/types/resources/payments/setupIntents.d.ts +391 -0
  270. package/dist/types/resources/payments/social.d.ts +266 -0
  271. package/dist/types/resources/payments/testHelpers.d.ts +178 -0
  272. package/dist/types/resources/tax/assessments.d.ts +787 -0
  273. package/dist/types/resources/tax/businessProfile.d.ts +134 -0
  274. package/dist/types/resources/tax/calculations.d.ts +261 -0
  275. package/dist/types/resources/tax/capabilities.d.ts +81 -0
  276. package/dist/types/resources/tax/codes.d.ts +29 -0
  277. package/dist/types/resources/tax/complianceActions.d.ts +97 -0
  278. package/dist/types/resources/tax/deadlines.d.ts +133 -0
  279. package/dist/types/resources/tax/documents.d.ts +257 -0
  280. package/dist/types/resources/tax/index.d.ts +1946 -0
  281. package/dist/types/resources/tax/locationEvidence.d.ts +246 -0
  282. package/dist/types/resources/tax/operatingLocations.d.ts +170 -0
  283. package/dist/types/resources/tax/products.d.ts +68 -0
  284. package/dist/types/resources/tax/registrationDeclarations.d.ts +270 -0
  285. package/dist/types/resources/tax/registrations.d.ts +103 -0
  286. package/dist/types/resources/tax/reports.d.ts +129 -0
  287. package/dist/types/resources/tax/reviewItems.d.ts +226 -0
  288. package/dist/types/resources/tax/ruleSet.d.ts +219 -0
  289. package/dist/types/resources/tax/salesDestinations.d.ts +158 -0
  290. package/dist/types/resources/tax/settings.d.ts +122 -0
  291. package/dist/types/resources/tax/shared.d.ts +43 -0
  292. package/dist/types/resources/tax/transactions.d.ts +404 -0
  293. package/dist/types/route.d.ts +86 -0
  294. package/dist/types/routes.d.ts +23 -0
  295. package/dist/types/vocabulary/billingPortal.d.ts +15 -0
  296. package/dist/types/vocabulary/catalog.d.ts +97 -0
  297. package/dist/types/vocabulary/checkout.d.ts +49 -0
  298. package/dist/types/vocabulary/connect.d.ts +62 -0
  299. package/dist/types/vocabulary/errors.d.ts +145 -0
  300. package/dist/types/vocabulary/events.d.ts +171 -0
  301. package/dist/types/vocabulary/files.d.ts +30 -0
  302. package/dist/types/vocabulary/index.d.ts +17 -0
  303. package/dist/types/vocabulary/invoices.d.ts +39 -0
  304. package/dist/types/vocabulary/lists.d.ts +9 -0
  305. package/dist/types/vocabulary/merchants.d.ts +9 -0
  306. package/dist/types/vocabulary/money.d.ts +59 -0
  307. package/dist/types/vocabulary/paymentMethodConfigurations.d.ts +22 -0
  308. package/dist/types/vocabulary/payments.d.ts +117 -0
  309. package/dist/types/vocabulary/reporting.d.ts +18 -0
  310. package/dist/types/vocabulary/subscriptions.d.ts +45 -0
  311. package/dist/types/vocabulary/tax.d.ts +163 -0
  312. package/dist/types/vocabulary/version.d.ts +10 -0
  313. package/package.json +51 -11
  314. package/dist/cjs/openapi.js +0 -138
  315. package/dist/esm/openapi.js +0 -134
  316. package/dist/types/openapi.d.ts +0 -145
@@ -0,0 +1,375 @@
1
+ import { z } from 'zod';
2
+ /** A FairCoin base-unit amount a contribution can carry: positive, within a JS-safe integer. */
3
+ export declare const contributionAmountSchema: z.ZodString;
4
+ export declare const contributionDetailsSchema: z.ZodObject<{
5
+ organization_id: z.ZodString;
6
+ purpose: z.ZodString;
7
+ amount_mode: z.ZodEnum<{
8
+ fixed: "fixed";
9
+ free: "free";
10
+ }>;
11
+ expires_at: z.ZodNullable<z.ZodNumber>;
12
+ }, z.core.$strict>;
13
+ export type ContributionDetails = z.infer<typeof contributionDetailsSchema>;
14
+ export declare const createContributionSchema: z.ZodObject<{
15
+ purpose: z.ZodString;
16
+ amount_mode: z.ZodEnum<{
17
+ fixed: "fixed";
18
+ free: "free";
19
+ }>;
20
+ amount: z.ZodOptional<z.ZodString>;
21
+ currency: z.ZodLiteral<"FAIR">;
22
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ }, z.core.$strict>;
24
+ export type CreateContribution = z.infer<typeof createContributionSchema>;
25
+ /** A contribution link, as its members manage it. */
26
+ export declare const contributionLinkSchema: z.ZodObject<{
27
+ id: z.ZodString;
28
+ object: z.ZodLiteral<"payment_link">;
29
+ amount: z.ZodString;
30
+ currency: z.ZodLiteral<"FAIR">;
31
+ network: z.ZodEnum<{
32
+ mainnet: "mainnet";
33
+ testnet: "testnet";
34
+ }>;
35
+ active: z.ZodBoolean;
36
+ url: z.ZodURL;
37
+ contribution: z.ZodObject<{
38
+ organization_id: z.ZodString;
39
+ purpose: z.ZodString;
40
+ amount_mode: z.ZodEnum<{
41
+ fixed: "fixed";
42
+ free: "free";
43
+ }>;
44
+ expires_at: z.ZodNullable<z.ZodNumber>;
45
+ }, z.core.$strict>;
46
+ created: z.ZodNumber;
47
+ }, z.core.$strict>;
48
+ export type ContributionLink = z.infer<typeof contributionLinkSchema>;
49
+ export declare const contributionListSchema: z.ZodObject<{
50
+ object: z.ZodLiteral<"list">;
51
+ data: z.ZodArray<z.ZodObject<{
52
+ id: z.ZodString;
53
+ object: z.ZodLiteral<"payment_link">;
54
+ amount: z.ZodString;
55
+ currency: z.ZodLiteral<"FAIR">;
56
+ network: z.ZodEnum<{
57
+ mainnet: "mainnet";
58
+ testnet: "testnet";
59
+ }>;
60
+ active: z.ZodBoolean;
61
+ url: z.ZodURL;
62
+ contribution: z.ZodObject<{
63
+ organization_id: z.ZodString;
64
+ purpose: z.ZodString;
65
+ amount_mode: z.ZodEnum<{
66
+ fixed: "fixed";
67
+ free: "free";
68
+ }>;
69
+ expires_at: z.ZodNullable<z.ZodNumber>;
70
+ }, z.core.$strict>;
71
+ created: z.ZodNumber;
72
+ }, z.core.$strict>>;
73
+ has_more: z.ZodBoolean;
74
+ url: z.ZodString;
75
+ }, z.core.$strict>;
76
+ export type ContributionList = z.infer<typeof contributionListSchema>;
77
+ /** A payment made through a contribution link. Non-custodial: Peable cannot refund it. */
78
+ export declare const contributionCollectionSchema: z.ZodObject<{
79
+ id: z.ZodString;
80
+ object: z.ZodLiteral<"payment_intent">;
81
+ amount: z.ZodString;
82
+ currency: z.ZodLiteral<"FAIR">;
83
+ status: z.ZodString;
84
+ created: z.ZodNumber;
85
+ refund_capability: z.ZodLiteral<"unsupported_non_custodial">;
86
+ refunds: z.ZodArray<z.ZodObject<{
87
+ id: z.ZodString;
88
+ object: z.ZodLiteral<"refund">;
89
+ amount: z.ZodString;
90
+ status: z.ZodString;
91
+ created: z.ZodNumber;
92
+ }, z.core.$strict>>;
93
+ }, z.core.$strict>;
94
+ export type ContributionCollection = z.infer<typeof contributionCollectionSchema>;
95
+ export declare const contributionCollectionListSchema: z.ZodObject<{
96
+ object: z.ZodLiteral<"list">;
97
+ data: z.ZodArray<z.ZodObject<{
98
+ id: z.ZodString;
99
+ object: z.ZodLiteral<"payment_intent">;
100
+ amount: z.ZodString;
101
+ currency: z.ZodLiteral<"FAIR">;
102
+ status: z.ZodString;
103
+ created: z.ZodNumber;
104
+ refund_capability: z.ZodLiteral<"unsupported_non_custodial">;
105
+ refunds: z.ZodArray<z.ZodObject<{
106
+ id: z.ZodString;
107
+ object: z.ZodLiteral<"refund">;
108
+ amount: z.ZodString;
109
+ status: z.ZodString;
110
+ created: z.ZodNumber;
111
+ }, z.core.$strict>>;
112
+ }, z.core.$strict>>;
113
+ has_more: z.ZodBoolean;
114
+ url: z.ZodString;
115
+ }, z.core.$strict>;
116
+ export type ContributionCollectionList = z.infer<typeof contributionCollectionListSchema>;
117
+ /** The query of every contribution write: the environment and nothing else. */
118
+ export declare const contributionScopeQuerySchema: z.ZodObject<{
119
+ environment: z.ZodEnum<{
120
+ development: "development";
121
+ staging: "staging";
122
+ production: "production";
123
+ }>;
124
+ }, z.core.$strict>;
125
+ /**
126
+ * Paging a contribution list: the list parameters every list accepts
127
+ * (`link_…` cursors for links, `pi_…` for collections) plus the environment.
128
+ */
129
+ export declare const contributionPageQuerySchema: z.ZodObject<{
130
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
131
+ starting_after: z.ZodOptional<z.ZodString>;
132
+ ending_before: z.ZodOptional<z.ZodString>;
133
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
134
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
135
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
136
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
137
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
138
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
139
+ gt?: number | undefined;
140
+ gte?: number | undefined;
141
+ lt?: number | undefined;
142
+ lte?: number | undefined;
143
+ }>>]>>;
144
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
145
+ environment: z.ZodEnum<{
146
+ development: "development";
147
+ staging: "staging";
148
+ production: "production";
149
+ }>;
150
+ }, z.core.$strict>;
151
+ /** What a payer may say when starting a free contribution's checkout. */
152
+ export declare const contributionMintSchema: z.ZodObject<{
153
+ amount: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strict>;
155
+ /** A contribution start's `Idempotency-Key`: a UUID the page writes before the request. */
156
+ export declare const contributionOperationKeySchema: z.ZodUUID;
157
+ export declare const contributionPatchSchema: z.ZodObject<{
158
+ active: z.ZodBoolean;
159
+ }, z.core.$strict>;
160
+ /** `"1.25"` FAIR → `"125000000"` base units, with exact integer arithmetic. */
161
+ export declare function decimalContributionAmount(value: string): string;
162
+ /** Base units → the shortest exact FAIR decimal. */
163
+ export declare function formatContributionAmount(value: string): string;
164
+ export declare const contributionRoutes: readonly [{
165
+ readonly operationId: "createContribution";
166
+ readonly method: "post";
167
+ readonly path: "/v1/organizations/{organizationId}/applications/{applicationId}/contributions";
168
+ readonly tag: "Contributions";
169
+ readonly summary: "Create a contribution link";
170
+ readonly description: "Requires a UUID `Idempotency-Key` header: the operation key, so a retry after a lost answer returns the same link.";
171
+ readonly auth: "user";
172
+ readonly params: {
173
+ readonly organizationId: "The Oxy organization.";
174
+ readonly applicationId: "The organization's Oxy application whose merchant collects.";
175
+ };
176
+ readonly query: z.ZodObject<{
177
+ environment: z.ZodEnum<{
178
+ development: "development";
179
+ staging: "staging";
180
+ production: "production";
181
+ }>;
182
+ }, z.core.$strict>;
183
+ readonly body: z.ZodObject<{
184
+ purpose: z.ZodString;
185
+ amount_mode: z.ZodEnum<{
186
+ fixed: "fixed";
187
+ free: "free";
188
+ }>;
189
+ amount: z.ZodOptional<z.ZodString>;
190
+ currency: z.ZodLiteral<"FAIR">;
191
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
192
+ }, z.core.$strict>;
193
+ readonly response: z.ZodObject<{
194
+ id: z.ZodString;
195
+ object: z.ZodLiteral<"payment_link">;
196
+ amount: z.ZodString;
197
+ currency: z.ZodLiteral<"FAIR">;
198
+ network: z.ZodEnum<{
199
+ mainnet: "mainnet";
200
+ testnet: "testnet";
201
+ }>;
202
+ active: z.ZodBoolean;
203
+ url: z.ZodURL;
204
+ contribution: z.ZodObject<{
205
+ organization_id: z.ZodString;
206
+ purpose: z.ZodString;
207
+ amount_mode: z.ZodEnum<{
208
+ fixed: "fixed";
209
+ free: "free";
210
+ }>;
211
+ expires_at: z.ZodNullable<z.ZodNumber>;
212
+ }, z.core.$strict>;
213
+ created: z.ZodNumber;
214
+ }, z.core.$strict>;
215
+ readonly status: 201;
216
+ }, {
217
+ readonly operationId: "listContributions";
218
+ readonly method: "get";
219
+ readonly path: "/v1/organizations/{organizationId}/applications/{applicationId}/contributions";
220
+ readonly tag: "Contributions";
221
+ readonly summary: "List an organization's contribution links";
222
+ readonly auth: "user";
223
+ readonly params: {
224
+ readonly organizationId: "The Oxy organization.";
225
+ readonly applicationId: "The organization's Oxy application whose merchant collects.";
226
+ };
227
+ readonly query: z.ZodObject<{
228
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
229
+ starting_after: z.ZodOptional<z.ZodString>;
230
+ ending_before: z.ZodOptional<z.ZodString>;
231
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
232
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
233
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
234
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
235
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
236
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
237
+ gt?: number | undefined;
238
+ gte?: number | undefined;
239
+ lt?: number | undefined;
240
+ lte?: number | undefined;
241
+ }>>]>>;
242
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
243
+ environment: z.ZodEnum<{
244
+ development: "development";
245
+ staging: "staging";
246
+ production: "production";
247
+ }>;
248
+ }, z.core.$strict>;
249
+ readonly response: z.ZodObject<{
250
+ object: z.ZodLiteral<"list">;
251
+ data: z.ZodArray<z.ZodObject<{
252
+ id: z.ZodString;
253
+ object: z.ZodLiteral<"payment_link">;
254
+ amount: z.ZodString;
255
+ currency: z.ZodLiteral<"FAIR">;
256
+ network: z.ZodEnum<{
257
+ mainnet: "mainnet";
258
+ testnet: "testnet";
259
+ }>;
260
+ active: z.ZodBoolean;
261
+ url: z.ZodURL;
262
+ contribution: z.ZodObject<{
263
+ organization_id: z.ZodString;
264
+ purpose: z.ZodString;
265
+ amount_mode: z.ZodEnum<{
266
+ fixed: "fixed";
267
+ free: "free";
268
+ }>;
269
+ expires_at: z.ZodNullable<z.ZodNumber>;
270
+ }, z.core.$strict>;
271
+ created: z.ZodNumber;
272
+ }, z.core.$strict>>;
273
+ has_more: z.ZodBoolean;
274
+ url: z.ZodString;
275
+ }, z.core.$strict>;
276
+ }, {
277
+ readonly operationId: "updateContribution";
278
+ readonly method: "post";
279
+ readonly path: "/v1/organizations/{organizationId}/applications/{applicationId}/contributions/{id}";
280
+ readonly tag: "Contributions";
281
+ readonly summary: "Enable or disable a contribution link";
282
+ readonly auth: "user";
283
+ readonly params: {
284
+ readonly id: "The contribution link (`link_…`).";
285
+ readonly organizationId: "The Oxy organization.";
286
+ readonly applicationId: "The organization's Oxy application whose merchant collects.";
287
+ };
288
+ readonly query: z.ZodObject<{
289
+ environment: z.ZodEnum<{
290
+ development: "development";
291
+ staging: "staging";
292
+ production: "production";
293
+ }>;
294
+ }, z.core.$strict>;
295
+ readonly body: z.ZodObject<{
296
+ active: z.ZodBoolean;
297
+ }, z.core.$strict>;
298
+ readonly response: z.ZodObject<{
299
+ id: z.ZodString;
300
+ object: z.ZodLiteral<"payment_link">;
301
+ amount: z.ZodString;
302
+ currency: z.ZodLiteral<"FAIR">;
303
+ network: z.ZodEnum<{
304
+ mainnet: "mainnet";
305
+ testnet: "testnet";
306
+ }>;
307
+ active: z.ZodBoolean;
308
+ url: z.ZodURL;
309
+ contribution: z.ZodObject<{
310
+ organization_id: z.ZodString;
311
+ purpose: z.ZodString;
312
+ amount_mode: z.ZodEnum<{
313
+ fixed: "fixed";
314
+ free: "free";
315
+ }>;
316
+ expires_at: z.ZodNullable<z.ZodNumber>;
317
+ }, z.core.$strict>;
318
+ created: z.ZodNumber;
319
+ }, z.core.$strict>;
320
+ }, {
321
+ readonly operationId: "listContributionCollections";
322
+ readonly method: "get";
323
+ readonly path: "/v1/organizations/{organizationId}/applications/{applicationId}/contributions/{id}/collections";
324
+ readonly tag: "Contributions";
325
+ readonly summary: "List the payments made through a contribution link";
326
+ readonly auth: "user";
327
+ readonly params: {
328
+ readonly id: "The contribution link (`link_…`).";
329
+ readonly organizationId: "The Oxy organization.";
330
+ readonly applicationId: "The organization's Oxy application whose merchant collects.";
331
+ };
332
+ readonly query: z.ZodObject<{
333
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
334
+ starting_after: z.ZodOptional<z.ZodString>;
335
+ ending_before: z.ZodOptional<z.ZodString>;
336
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
337
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
338
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
339
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
340
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
341
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
342
+ gt?: number | undefined;
343
+ gte?: number | undefined;
344
+ lt?: number | undefined;
345
+ lte?: number | undefined;
346
+ }>>]>>;
347
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
348
+ environment: z.ZodEnum<{
349
+ development: "development";
350
+ staging: "staging";
351
+ production: "production";
352
+ }>;
353
+ }, z.core.$strict>;
354
+ readonly response: z.ZodObject<{
355
+ object: z.ZodLiteral<"list">;
356
+ data: z.ZodArray<z.ZodObject<{
357
+ id: z.ZodString;
358
+ object: z.ZodLiteral<"payment_intent">;
359
+ amount: z.ZodString;
360
+ currency: z.ZodLiteral<"FAIR">;
361
+ status: z.ZodString;
362
+ created: z.ZodNumber;
363
+ refund_capability: z.ZodLiteral<"unsupported_non_custodial">;
364
+ refunds: z.ZodArray<z.ZodObject<{
365
+ id: z.ZodString;
366
+ object: z.ZodLiteral<"refund">;
367
+ amount: z.ZodString;
368
+ status: z.ZodString;
369
+ created: z.ZodNumber;
370
+ }, z.core.$strict>>;
371
+ }, z.core.$strict>>;
372
+ has_more: z.ZodBoolean;
373
+ url: z.ZodString;
374
+ }, z.core.$strict>;
375
+ }];
@@ -0,0 +1,280 @@
1
+ import { z } from 'zod';
2
+ import { type Expand } from '../../common/objects';
3
+ /**
4
+ * Files (`file_…`) — bytes a merchant gives Orbit for one stated purpose
5
+ * (ADR 0016: Orbit owns the object; the storage is Oxy Files, a binding that
6
+ * never reaches the wire). Stripe's Files API, with Oxy Files underneath.
7
+ */
8
+ export declare const fileSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ object: z.ZodLiteral<"file">;
11
+ livemode: z.ZodBoolean;
12
+ purpose: z.ZodEnum<{
13
+ dispute_evidence: "dispute_evidence";
14
+ business_logo: "business_logo";
15
+ identity_document: "identity_document";
16
+ additional_verification: "additional_verification";
17
+ finance_report_run: "finance_report_run";
18
+ tax_document: "tax_document";
19
+ }>;
20
+ filename: z.ZodNullable<z.ZodString>;
21
+ size: z.ZodNumber;
22
+ type: z.ZodEnum<{
23
+ pdf: "pdf";
24
+ png: "png";
25
+ jpg: "jpg";
26
+ csv: "csv";
27
+ }>;
28
+ status: z.ZodEnum<{
29
+ available: "available";
30
+ withheld: "withheld";
31
+ removed: "removed";
32
+ }>;
33
+ url: z.ZodNullable<z.ZodString>;
34
+ created: z.ZodNumber;
35
+ }, z.core.$strict>;
36
+ /** The API's `file` object; `FileObject` so it never shadows the DOM's `File`. */
37
+ export type FileObject = Expand<z.output<typeof fileSchema>>;
38
+ declare module '../../common/objects' {
39
+ interface ObjectMap {
40
+ file: FileObject;
41
+ }
42
+ }
43
+ /**
44
+ * `POST /v1/files` as `multipart/form-data`: a `purpose` field and a `file`
45
+ * part. The gateway reads the form itself, bounded by the largest purpose's
46
+ * ceiling, and checks each part with these schemas.
47
+ */
48
+ export declare const createFileUploadParams: z.ZodObject<{
49
+ purpose: z.ZodEnum<{
50
+ dispute_evidence: "dispute_evidence";
51
+ business_logo: "business_logo";
52
+ identity_document: "identity_document";
53
+ additional_verification: "additional_verification";
54
+ tax_document: "tax_document";
55
+ }>;
56
+ file: z.ZodFile;
57
+ }, z.core.$strict>;
58
+ /**
59
+ * `POST /v1/files` as JSON: an Oxy file the caller already owns (their
60
+ * application's, or an account they are or act for). Its ownership is checked
61
+ * once, here, and never again.
62
+ */
63
+ export declare const createFileFromOxyParams: z.ZodObject<{
64
+ purpose: z.ZodEnum<{
65
+ dispute_evidence: "dispute_evidence";
66
+ business_logo: "business_logo";
67
+ identity_document: "identity_document";
68
+ additional_verification: "additional_verification";
69
+ tax_document: "tax_document";
70
+ }>;
71
+ oxy_file: z.ZodString;
72
+ }, z.core.$strict>;
73
+ export type CreateFileFromOxyParams = z.input<typeof createFileFromOxyParams>;
74
+ export declare const listFilesQuery: z.ZodObject<{
75
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
76
+ starting_after: z.ZodOptional<z.ZodString>;
77
+ ending_before: z.ZodOptional<z.ZodString>;
78
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
79
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
80
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
81
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
82
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
83
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
84
+ gt?: number | undefined;
85
+ gte?: number | undefined;
86
+ lt?: number | undefined;
87
+ lte?: number | undefined;
88
+ }>>]>>;
89
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
90
+ purpose: z.ZodOptional<z.ZodEnum<{
91
+ dispute_evidence: "dispute_evidence";
92
+ business_logo: "business_logo";
93
+ identity_document: "identity_document";
94
+ additional_verification: "additional_verification";
95
+ finance_report_run: "finance_report_run";
96
+ tax_document: "tax_document";
97
+ }>>;
98
+ }, z.core.$strict>;
99
+ export type ListFilesParams = Pick<z.input<typeof listFilesQuery>, 'purpose'>;
100
+ export declare const fileRoutes: readonly [{
101
+ readonly operationId: "createFile";
102
+ readonly method: "post";
103
+ readonly path: "/v1/files";
104
+ readonly tag: "Files";
105
+ readonly summary: "Upload a file";
106
+ readonly description: "The bytes as `multipart/form-data` (`purpose`, `file`), or — as JSON — `{ purpose, oxy_file }` to import an Oxy file you own. The type is recognised from the bytes, never from a `Content-Type`; each purpose has its own formats and size ceiling.";
107
+ readonly auth: "service";
108
+ readonly scope: "payments:write";
109
+ readonly idempotent: true;
110
+ readonly body: z.ZodObject<{
111
+ purpose: z.ZodEnum<{
112
+ dispute_evidence: "dispute_evidence";
113
+ business_logo: "business_logo";
114
+ identity_document: "identity_document";
115
+ additional_verification: "additional_verification";
116
+ tax_document: "tax_document";
117
+ }>;
118
+ file: z.ZodFile;
119
+ }, z.core.$strict>;
120
+ readonly bodyEncoding: "multipart";
121
+ readonly response: z.ZodObject<{
122
+ id: z.ZodString;
123
+ object: z.ZodLiteral<"file">;
124
+ livemode: z.ZodBoolean;
125
+ purpose: z.ZodEnum<{
126
+ dispute_evidence: "dispute_evidence";
127
+ business_logo: "business_logo";
128
+ identity_document: "identity_document";
129
+ additional_verification: "additional_verification";
130
+ finance_report_run: "finance_report_run";
131
+ tax_document: "tax_document";
132
+ }>;
133
+ filename: z.ZodNullable<z.ZodString>;
134
+ size: z.ZodNumber;
135
+ type: z.ZodEnum<{
136
+ pdf: "pdf";
137
+ png: "png";
138
+ jpg: "jpg";
139
+ csv: "csv";
140
+ }>;
141
+ status: z.ZodEnum<{
142
+ available: "available";
143
+ withheld: "withheld";
144
+ removed: "removed";
145
+ }>;
146
+ url: z.ZodNullable<z.ZodString>;
147
+ created: z.ZodNumber;
148
+ }, z.core.$strict>;
149
+ readonly sdk: "files.create";
150
+ }, {
151
+ readonly operationId: "listFiles";
152
+ readonly method: "get";
153
+ readonly path: "/v1/files";
154
+ readonly tag: "Files";
155
+ readonly summary: "List files";
156
+ readonly auth: "service";
157
+ readonly scope: "payments:read";
158
+ readonly query: z.ZodObject<{
159
+ limit: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<number, number | undefined>>;
160
+ starting_after: z.ZodOptional<z.ZodString>;
161
+ ending_before: z.ZodOptional<z.ZodString>;
162
+ created: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>, z.ZodTransform<import("../..").RangeFilter, number>>, z.ZodPipe<z.ZodObject<{
163
+ gt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
164
+ gte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
165
+ lt: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
166
+ lte: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
167
+ }, z.core.$strict>, z.ZodTransform<import("../..").RangeFilter, {
168
+ gt?: number | undefined;
169
+ gte?: number | undefined;
170
+ lt?: number | undefined;
171
+ lte?: number | undefined;
172
+ }>>]>>;
173
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
174
+ purpose: z.ZodOptional<z.ZodEnum<{
175
+ dispute_evidence: "dispute_evidence";
176
+ business_logo: "business_logo";
177
+ identity_document: "identity_document";
178
+ additional_verification: "additional_verification";
179
+ finance_report_run: "finance_report_run";
180
+ tax_document: "tax_document";
181
+ }>>;
182
+ }, z.core.$strict>;
183
+ readonly response: z.ZodObject<{
184
+ object: z.ZodLiteral<"list">;
185
+ data: z.ZodArray<z.ZodObject<{
186
+ id: z.ZodString;
187
+ object: z.ZodLiteral<"file">;
188
+ livemode: z.ZodBoolean;
189
+ purpose: z.ZodEnum<{
190
+ dispute_evidence: "dispute_evidence";
191
+ business_logo: "business_logo";
192
+ identity_document: "identity_document";
193
+ additional_verification: "additional_verification";
194
+ finance_report_run: "finance_report_run";
195
+ tax_document: "tax_document";
196
+ }>;
197
+ filename: z.ZodNullable<z.ZodString>;
198
+ size: z.ZodNumber;
199
+ type: z.ZodEnum<{
200
+ pdf: "pdf";
201
+ png: "png";
202
+ jpg: "jpg";
203
+ csv: "csv";
204
+ }>;
205
+ status: z.ZodEnum<{
206
+ available: "available";
207
+ withheld: "withheld";
208
+ removed: "removed";
209
+ }>;
210
+ url: z.ZodNullable<z.ZodString>;
211
+ created: z.ZodNumber;
212
+ }, z.core.$strict>>;
213
+ has_more: z.ZodBoolean;
214
+ url: z.ZodString;
215
+ }, z.core.$strict>;
216
+ readonly sdk: "files.list";
217
+ readonly expandable: "file";
218
+ }, {
219
+ readonly operationId: "retrieveFile";
220
+ readonly method: "get";
221
+ readonly path: "/v1/files/{id}";
222
+ readonly tag: "Files";
223
+ readonly summary: "Retrieve a file";
224
+ readonly auth: "service";
225
+ readonly scope: "payments:read";
226
+ readonly params: {
227
+ readonly id: "The file (`file_…`).";
228
+ };
229
+ readonly query: z.ZodObject<{
230
+ expand: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
231
+ }, z.core.$strict>;
232
+ readonly response: z.ZodObject<{
233
+ id: z.ZodString;
234
+ object: z.ZodLiteral<"file">;
235
+ livemode: z.ZodBoolean;
236
+ purpose: z.ZodEnum<{
237
+ dispute_evidence: "dispute_evidence";
238
+ business_logo: "business_logo";
239
+ identity_document: "identity_document";
240
+ additional_verification: "additional_verification";
241
+ finance_report_run: "finance_report_run";
242
+ tax_document: "tax_document";
243
+ }>;
244
+ filename: z.ZodNullable<z.ZodString>;
245
+ size: z.ZodNumber;
246
+ type: z.ZodEnum<{
247
+ pdf: "pdf";
248
+ png: "png";
249
+ jpg: "jpg";
250
+ csv: "csv";
251
+ }>;
252
+ status: z.ZodEnum<{
253
+ available: "available";
254
+ withheld: "withheld";
255
+ removed: "removed";
256
+ }>;
257
+ url: z.ZodNullable<z.ZodString>;
258
+ created: z.ZodNumber;
259
+ }, z.core.$strict>;
260
+ readonly sdk: "files.retrieve";
261
+ readonly expandable: "file";
262
+ }, {
263
+ readonly operationId: "retrieveFileContents";
264
+ readonly method: "get";
265
+ readonly path: "/v1/files/{id}/contents";
266
+ readonly tag: "Files";
267
+ readonly summary: "Download a file's contents";
268
+ readonly description: "The bytes of a file you read back — a report run's CSV — as an attachment. Any other purpose answers 404: evidence and identity documents leave Peable only to their provider.";
269
+ readonly auth: "service";
270
+ readonly scope: "payments:read";
271
+ readonly params: {
272
+ readonly id: "The file (`file_…`).";
273
+ };
274
+ readonly query: z.ZodObject<{}, z.core.$strict>;
275
+ readonly response: {
276
+ readonly kind: "binary";
277
+ readonly contentType: "text/csv";
278
+ };
279
+ readonly sdk: "files.contents";
280
+ }];