@moovio/sdk 0.22.11 → 0.22.13

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 (290) hide show
  1. package/README.md +91 -51
  2. package/bin/mcp-server.js +2557 -621
  3. package/bin/mcp-server.js.map +59 -16
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/invoicesCreateInvoicePayment.d.ts +19 -0
  6. package/funcs/invoicesCreateInvoicePayment.d.ts.map +1 -0
  7. package/funcs/invoicesCreateInvoicePayment.js +148 -0
  8. package/funcs/invoicesCreateInvoicePayment.js.map +1 -0
  9. package/funcs/invoicesListInvoicePayments.d.ts +17 -0
  10. package/funcs/invoicesListInvoicePayments.d.ts.map +1 -0
  11. package/funcs/invoicesListInvoicePayments.js +129 -0
  12. package/funcs/invoicesListInvoicePayments.js.map +1 -0
  13. package/funcs/webhooksCreate.d.ts +16 -0
  14. package/funcs/webhooksCreate.d.ts.map +1 -0
  15. package/funcs/webhooksCreate.js +133 -0
  16. package/funcs/webhooksCreate.js.map +1 -0
  17. package/funcs/webhooksDisable.d.ts +15 -0
  18. package/funcs/webhooksDisable.d.ts.map +1 -0
  19. package/funcs/webhooksDisable.js +133 -0
  20. package/funcs/webhooksDisable.js.map +1 -0
  21. package/funcs/webhooksGet.d.ts +14 -0
  22. package/funcs/webhooksGet.d.ts.map +1 -0
  23. package/funcs/webhooksGet.js +122 -0
  24. package/funcs/webhooksGet.js.map +1 -0
  25. package/funcs/webhooksGetSecret.d.ts +14 -0
  26. package/funcs/webhooksGetSecret.d.ts.map +1 -0
  27. package/funcs/webhooksGetSecret.js +122 -0
  28. package/funcs/webhooksGetSecret.js.map +1 -0
  29. package/funcs/webhooksList.d.ts +14 -0
  30. package/funcs/webhooksList.d.ts.map +1 -0
  31. package/funcs/webhooksList.js +108 -0
  32. package/funcs/webhooksList.js.map +1 -0
  33. package/funcs/webhooksListEventTypes.d.ts +14 -0
  34. package/funcs/webhooksListEventTypes.d.ts.map +1 -0
  35. package/funcs/webhooksListEventTypes.js +108 -0
  36. package/funcs/webhooksListEventTypes.js.map +1 -0
  37. package/funcs/webhooksPing.d.ts +14 -0
  38. package/funcs/webhooksPing.d.ts.map +1 -0
  39. package/funcs/webhooksPing.js +122 -0
  40. package/funcs/webhooksPing.js.map +1 -0
  41. package/funcs/webhooksUpdate.d.ts +15 -0
  42. package/funcs/webhooksUpdate.d.ts.map +1 -0
  43. package/funcs/webhooksUpdate.js +138 -0
  44. package/funcs/webhooksUpdate.js.map +1 -0
  45. package/jsr.json +1 -1
  46. package/lib/config.d.ts +3 -3
  47. package/lib/config.js +3 -3
  48. package/mcp-server/mcp-server.js +1 -1
  49. package/mcp-server/server.d.ts.map +1 -1
  50. package/mcp-server/server.js +21 -1
  51. package/mcp-server/server.js.map +1 -1
  52. package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts +8 -0
  53. package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts.map +1 -0
  54. package/mcp-server/tools/invoicesCreateInvoicePayment.js +66 -0
  55. package/mcp-server/tools/invoicesCreateInvoicePayment.js.map +1 -0
  56. package/mcp-server/tools/invoicesListInvoicePayments.d.ts +8 -0
  57. package/mcp-server/tools/invoicesListInvoicePayments.d.ts.map +1 -0
  58. package/mcp-server/tools/invoicesListInvoicePayments.js +65 -0
  59. package/mcp-server/tools/invoicesListInvoicePayments.js.map +1 -0
  60. package/mcp-server/tools/webhooksCreate.d.ts +8 -0
  61. package/mcp-server/tools/webhooksCreate.d.ts.map +1 -0
  62. package/mcp-server/tools/webhooksCreate.js +62 -0
  63. package/mcp-server/tools/webhooksCreate.js.map +1 -0
  64. package/mcp-server/tools/webhooksDisable.d.ts +8 -0
  65. package/mcp-server/tools/webhooksDisable.d.ts.map +1 -0
  66. package/mcp-server/tools/webhooksDisable.js +61 -0
  67. package/mcp-server/tools/webhooksDisable.js.map +1 -0
  68. package/mcp-server/tools/webhooksGet.d.ts +8 -0
  69. package/mcp-server/tools/webhooksGet.d.ts.map +1 -0
  70. package/mcp-server/tools/webhooksGet.js +62 -0
  71. package/mcp-server/tools/webhooksGet.js.map +1 -0
  72. package/mcp-server/tools/webhooksGetSecret.d.ts +8 -0
  73. package/mcp-server/tools/webhooksGetSecret.d.ts.map +1 -0
  74. package/mcp-server/tools/webhooksGetSecret.js +62 -0
  75. package/mcp-server/tools/webhooksGetSecret.js.map +1 -0
  76. package/mcp-server/tools/webhooksList.d.ts +8 -0
  77. package/mcp-server/tools/webhooksList.d.ts.map +1 -0
  78. package/mcp-server/tools/webhooksList.js +62 -0
  79. package/mcp-server/tools/webhooksList.js.map +1 -0
  80. package/mcp-server/tools/webhooksListEventTypes.d.ts +8 -0
  81. package/mcp-server/tools/webhooksListEventTypes.d.ts.map +1 -0
  82. package/mcp-server/tools/webhooksListEventTypes.js +62 -0
  83. package/mcp-server/tools/webhooksListEventTypes.js.map +1 -0
  84. package/mcp-server/tools/webhooksPing.d.ts +8 -0
  85. package/mcp-server/tools/webhooksPing.d.ts.map +1 -0
  86. package/mcp-server/tools/webhooksPing.js +62 -0
  87. package/mcp-server/tools/webhooksPing.js.map +1 -0
  88. package/mcp-server/tools/webhooksUpdate.d.ts +8 -0
  89. package/mcp-server/tools/webhooksUpdate.d.ts.map +1 -0
  90. package/mcp-server/tools/webhooksUpdate.js +62 -0
  91. package/mcp-server/tools/webhooksUpdate.js.map +1 -0
  92. package/models/components/achtransactiondetails.d.ts +3 -0
  93. package/models/components/achtransactiondetails.d.ts.map +1 -1
  94. package/models/components/achtransactiondetails.js +3 -0
  95. package/models/components/achtransactiondetails.js.map +1 -1
  96. package/models/components/createinvoicepayment.d.ts +21 -0
  97. package/models/components/createinvoicepayment.d.ts.map +1 -0
  98. package/models/components/createinvoicepayment.js +63 -0
  99. package/models/components/createinvoicepayment.js.map +1 -0
  100. package/models/components/createtransferachaddendarecord.d.ts +23 -0
  101. package/models/components/createtransferachaddendarecord.d.ts.map +1 -0
  102. package/models/components/createtransferachaddendarecord.js +58 -0
  103. package/models/components/createtransferachaddendarecord.js.map +1 -0
  104. package/models/components/createtransferdestinationach.d.ts +3 -0
  105. package/models/components/createtransferdestinationach.d.ts.map +1 -1
  106. package/models/components/createtransferdestinationach.js +3 -0
  107. package/models/components/createtransferdestinationach.js.map +1 -1
  108. package/models/components/createtransfersourceach.d.ts +3 -0
  109. package/models/components/createtransfersourceach.d.ts.map +1 -1
  110. package/models/components/createtransfersourceach.js +3 -0
  111. package/models/components/createtransfersourceach.js.map +1 -1
  112. package/models/components/createwebhook.d.ts +40 -0
  113. package/models/components/createwebhook.d.ts.map +1 -0
  114. package/models/components/createwebhook.js +66 -0
  115. package/models/components/createwebhook.js.map +1 -0
  116. package/models/components/eventtype.d.ts +33 -0
  117. package/models/components/eventtype.d.ts.map +1 -0
  118. package/models/components/eventtype.js +62 -0
  119. package/models/components/eventtype.js.map +1 -0
  120. package/models/components/index.d.ts +10 -0
  121. package/models/components/index.d.ts.map +1 -1
  122. package/models/components/index.js +10 -0
  123. package/models/components/index.js.map +1 -1
  124. package/models/components/invoiceexternalpayment.d.ts +0 -11
  125. package/models/components/invoiceexternalpayment.d.ts.map +1 -1
  126. package/models/components/invoiceexternalpayment.js +1 -10
  127. package/models/components/invoiceexternalpayment.js.map +1 -1
  128. package/models/components/invoicepayment.d.ts +4 -2
  129. package/models/components/invoicepayment.d.ts.map +1 -1
  130. package/models/components/invoicepayment.js +4 -2
  131. package/models/components/invoicepayment.js.map +1 -1
  132. package/models/components/invoicetransferpayment.d.ts +0 -11
  133. package/models/components/invoicetransferpayment.d.ts.map +1 -1
  134. package/models/components/invoicetransferpayment.js +1 -11
  135. package/models/components/invoicetransferpayment.js.map +1 -1
  136. package/models/components/pingresponse.d.ts +38 -0
  137. package/models/components/pingresponse.d.ts.map +1 -0
  138. package/models/components/pingresponse.js +63 -0
  139. package/models/components/pingresponse.js.map +1 -0
  140. package/models/components/transferachaddendarecord.d.ts +28 -0
  141. package/models/components/transferachaddendarecord.d.ts.map +1 -0
  142. package/models/components/transferachaddendarecord.js +60 -0
  143. package/models/components/transferachaddendarecord.js.map +1 -0
  144. package/models/components/updatewebhook.d.ts +40 -0
  145. package/models/components/updatewebhook.d.ts.map +1 -0
  146. package/models/components/updatewebhook.js +66 -0
  147. package/models/components/updatewebhook.js.map +1 -0
  148. package/models/components/webhook.d.ts +60 -0
  149. package/models/components/webhook.d.ts.map +1 -0
  150. package/models/components/webhook.js +74 -0
  151. package/models/components/webhook.js.map +1 -0
  152. package/models/components/webhooksecret.d.ts +23 -0
  153. package/models/components/webhooksecret.d.ts.map +1 -0
  154. package/models/components/webhooksecret.js +58 -0
  155. package/models/components/webhooksecret.js.map +1 -0
  156. package/models/components/webhookstatus.d.ts +18 -0
  157. package/models/components/webhookstatus.d.ts.map +1 -0
  158. package/models/components/webhookstatus.js +52 -0
  159. package/models/components/webhookstatus.js.map +1 -0
  160. package/models/errors/createinvoicepaymenterror.d.ts +30 -0
  161. package/models/errors/createinvoicepaymenterror.d.ts.map +1 -0
  162. package/models/errors/createinvoicepaymenterror.js +83 -0
  163. package/models/errors/createinvoicepaymenterror.js.map +1 -0
  164. package/models/errors/createwebhookvalidationerror.d.ts +57 -0
  165. package/models/errors/createwebhookvalidationerror.d.ts.map +1 -0
  166. package/models/errors/createwebhookvalidationerror.js +87 -0
  167. package/models/errors/createwebhookvalidationerror.js.map +1 -0
  168. package/models/errors/index.d.ts +3 -0
  169. package/models/errors/index.d.ts.map +1 -1
  170. package/models/errors/index.js +3 -0
  171. package/models/errors/index.js.map +1 -1
  172. package/models/errors/updatewebhookvalidationerror.d.ts +57 -0
  173. package/models/errors/updatewebhookvalidationerror.d.ts.map +1 -0
  174. package/models/errors/updatewebhookvalidationerror.js +87 -0
  175. package/models/errors/updatewebhookvalidationerror.js.map +1 -0
  176. package/models/operations/createinvoicepayment.d.ts +68 -0
  177. package/models/operations/createinvoicepayment.d.ts.map +1 -0
  178. package/models/operations/createinvoicepayment.js +124 -0
  179. package/models/operations/createinvoicepayment.js.map +1 -0
  180. package/models/operations/createwebhook.d.ts +51 -0
  181. package/models/operations/createwebhook.d.ts.map +1 -0
  182. package/models/operations/createwebhook.js +96 -0
  183. package/models/operations/createwebhook.js.map +1 -0
  184. package/models/operations/disablewebhook.d.ts +61 -0
  185. package/models/operations/disablewebhook.d.ts.map +1 -0
  186. package/models/operations/disablewebhook.js +107 -0
  187. package/models/operations/disablewebhook.js.map +1 -0
  188. package/models/operations/getwebhook.d.ts +64 -0
  189. package/models/operations/getwebhook.d.ts.map +1 -0
  190. package/models/operations/getwebhook.js +112 -0
  191. package/models/operations/getwebhook.js.map +1 -0
  192. package/models/operations/getwebhooksecret.d.ts +64 -0
  193. package/models/operations/getwebhooksecret.d.ts.map +1 -0
  194. package/models/operations/getwebhooksecret.js +112 -0
  195. package/models/operations/getwebhooksecret.js.map +1 -0
  196. package/models/operations/index.d.ts +10 -0
  197. package/models/operations/index.d.ts.map +1 -1
  198. package/models/operations/index.js +10 -0
  199. package/models/operations/index.js.map +1 -1
  200. package/models/operations/listeventtypes.d.ts +60 -0
  201. package/models/operations/listeventtypes.d.ts.map +1 -0
  202. package/models/operations/listeventtypes.js +108 -0
  203. package/models/operations/listeventtypes.js.map +1 -0
  204. package/models/operations/listinvoicepayments.d.ts +66 -0
  205. package/models/operations/listinvoicepayments.d.ts.map +1 -0
  206. package/models/operations/listinvoicepayments.js +114 -0
  207. package/models/operations/listinvoicepayments.js.map +1 -0
  208. package/models/operations/listwebhooks.d.ts +60 -0
  209. package/models/operations/listwebhooks.d.ts.map +1 -0
  210. package/models/operations/listwebhooks.js +108 -0
  211. package/models/operations/listwebhooks.js.map +1 -0
  212. package/models/operations/pingwebhook.d.ts +64 -0
  213. package/models/operations/pingwebhook.d.ts.map +1 -0
  214. package/models/operations/pingwebhook.js +112 -0
  215. package/models/operations/pingwebhook.js.map +1 -0
  216. package/models/operations/updatewebhook.d.ts +66 -0
  217. package/models/operations/updatewebhook.d.ts.map +1 -0
  218. package/models/operations/updatewebhook.js +122 -0
  219. package/models/operations/updatewebhook.js.map +1 -0
  220. package/package.json +1 -1
  221. package/sdk/invoices.d.ts +15 -0
  222. package/sdk/invoices.d.ts.map +1 -1
  223. package/sdk/invoices.js +21 -0
  224. package/sdk/invoices.js.map +1 -1
  225. package/sdk/sdk.d.ts +3 -0
  226. package/sdk/sdk.d.ts.map +1 -1
  227. package/sdk/sdk.js +4 -0
  228. package/sdk/sdk.js.map +1 -1
  229. package/sdk/webhooks.d.ts +38 -0
  230. package/sdk/webhooks.d.ts.map +1 -0
  231. package/sdk/webhooks.js +68 -0
  232. package/sdk/webhooks.js.map +1 -0
  233. package/src/funcs/invoicesCreateInvoicePayment.ts +213 -0
  234. package/src/funcs/invoicesListInvoicePayments.ts +186 -0
  235. package/src/funcs/webhooksCreate.ts +194 -0
  236. package/src/funcs/webhooksDisable.ts +191 -0
  237. package/src/funcs/webhooksGet.ts +176 -0
  238. package/src/funcs/webhooksGetSecret.ts +176 -0
  239. package/src/funcs/webhooksList.ts +156 -0
  240. package/src/funcs/webhooksListEventTypes.ts +156 -0
  241. package/src/funcs/webhooksPing.ts +176 -0
  242. package/src/funcs/webhooksUpdate.ts +200 -0
  243. package/src/lib/config.ts +3 -3
  244. package/src/mcp-server/mcp-server.ts +1 -1
  245. package/src/mcp-server/server.ts +21 -1
  246. package/src/mcp-server/tools/invoicesCreateInvoicePayment.ts +40 -0
  247. package/src/mcp-server/tools/invoicesListInvoicePayments.ts +38 -0
  248. package/src/mcp-server/tools/webhooksCreate.ts +35 -0
  249. package/src/mcp-server/tools/webhooksDisable.ts +34 -0
  250. package/src/mcp-server/tools/webhooksGet.ts +35 -0
  251. package/src/mcp-server/tools/webhooksGetSecret.ts +35 -0
  252. package/src/mcp-server/tools/webhooksList.ts +35 -0
  253. package/src/mcp-server/tools/webhooksListEventTypes.ts +35 -0
  254. package/src/mcp-server/tools/webhooksPing.ts +36 -0
  255. package/src/mcp-server/tools/webhooksUpdate.ts +35 -0
  256. package/src/models/components/achtransactiondetails.ts +10 -0
  257. package/src/models/components/createinvoicepayment.ts +60 -0
  258. package/src/models/components/createtransferachaddendarecord.ts +59 -0
  259. package/src/models/components/createtransferdestinationach.ts +10 -0
  260. package/src/models/components/createtransfersourceach.ts +10 -0
  261. package/src/models/components/createwebhook.ts +84 -0
  262. package/src/models/components/eventtype.ts +67 -0
  263. package/src/models/components/index.ts +10 -0
  264. package/src/models/components/invoiceexternalpayment.ts +0 -21
  265. package/src/models/components/invoicepayment.ts +8 -4
  266. package/src/models/components/invoicetransferpayment.ts +0 -17
  267. package/src/models/components/pingresponse.ts +73 -0
  268. package/src/models/components/transferachaddendarecord.ts +64 -0
  269. package/src/models/components/updatewebhook.ts +84 -0
  270. package/src/models/components/webhook.ts +115 -0
  271. package/src/models/components/webhooksecret.ts +53 -0
  272. package/src/models/components/webhookstatus.ts +27 -0
  273. package/src/models/errors/createinvoicepaymenterror.ts +78 -0
  274. package/src/models/errors/createwebhookvalidationerror.ts +108 -0
  275. package/src/models/errors/index.ts +3 -0
  276. package/src/models/errors/updatewebhookvalidationerror.ts +108 -0
  277. package/src/models/operations/createinvoicepayment.ts +197 -0
  278. package/src/models/operations/createwebhook.ts +132 -0
  279. package/src/models/operations/disablewebhook.ts +168 -0
  280. package/src/models/operations/getwebhook.ts +175 -0
  281. package/src/models/operations/getwebhooksecret.ts +175 -0
  282. package/src/models/operations/index.ts +10 -0
  283. package/src/models/operations/listeventtypes.ts +167 -0
  284. package/src/models/operations/listinvoicepayments.ts +181 -0
  285. package/src/models/operations/listwebhooks.ts +167 -0
  286. package/src/models/operations/pingwebhook.ts +175 -0
  287. package/src/models/operations/updatewebhook.ts +187 -0
  288. package/src/sdk/invoices.ts +37 -0
  289. package/src/sdk/sdk.ts +6 -0
  290. package/src/sdk/webhooks.ts +130 -0
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CreateInvoicePaymentResponse$outboundSchema = exports.CreateInvoicePaymentResponse$inboundSchema = exports.CreateInvoicePaymentRequest$outboundSchema = exports.CreateInvoicePaymentRequest$inboundSchema = exports.CreateInvoicePaymentGlobals$outboundSchema = exports.CreateInvoicePaymentGlobals$inboundSchema = void 0;
40
+ exports.createInvoicePaymentGlobalsToJSON = createInvoicePaymentGlobalsToJSON;
41
+ exports.createInvoicePaymentGlobalsFromJSON = createInvoicePaymentGlobalsFromJSON;
42
+ exports.createInvoicePaymentRequestToJSON = createInvoicePaymentRequestToJSON;
43
+ exports.createInvoicePaymentRequestFromJSON = createInvoicePaymentRequestFromJSON;
44
+ exports.createInvoicePaymentResponseToJSON = createInvoicePaymentResponseToJSON;
45
+ exports.createInvoicePaymentResponseFromJSON = createInvoicePaymentResponseFromJSON;
46
+ const z = __importStar(require("zod/v3"));
47
+ const primitives_js_1 = require("../../lib/primitives.js");
48
+ const schemas_js_1 = require("../../lib/schemas.js");
49
+ const components = __importStar(require("../components/index.js"));
50
+ /** @internal */
51
+ exports.CreateInvoicePaymentGlobals$inboundSchema = z.object({
52
+ "X-Moov-Version": z.string().optional(),
53
+ }).transform((v) => {
54
+ return (0, primitives_js_1.remap)(v, {
55
+ "X-Moov-Version": "xMoovVersion",
56
+ });
57
+ });
58
+ /** @internal */
59
+ exports.CreateInvoicePaymentGlobals$outboundSchema = z.object({
60
+ xMoovVersion: z.string().optional(),
61
+ }).transform((v) => {
62
+ return (0, primitives_js_1.remap)(v, {
63
+ xMoovVersion: "X-Moov-Version",
64
+ });
65
+ });
66
+ function createInvoicePaymentGlobalsToJSON(createInvoicePaymentGlobals) {
67
+ return JSON.stringify(exports.CreateInvoicePaymentGlobals$outboundSchema.parse(createInvoicePaymentGlobals));
68
+ }
69
+ function createInvoicePaymentGlobalsFromJSON(jsonString) {
70
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateInvoicePaymentGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateInvoicePaymentGlobals' from JSON`);
71
+ }
72
+ /** @internal */
73
+ exports.CreateInvoicePaymentRequest$inboundSchema = z.object({
74
+ accountID: z.string(),
75
+ invoiceID: z.string(),
76
+ CreateInvoicePayment: components.CreateInvoicePayment$inboundSchema,
77
+ }).transform((v) => {
78
+ return (0, primitives_js_1.remap)(v, {
79
+ "CreateInvoicePayment": "createInvoicePayment",
80
+ });
81
+ });
82
+ /** @internal */
83
+ exports.CreateInvoicePaymentRequest$outboundSchema = z.object({
84
+ accountID: z.string(),
85
+ invoiceID: z.string(),
86
+ createInvoicePayment: components.CreateInvoicePayment$outboundSchema,
87
+ }).transform((v) => {
88
+ return (0, primitives_js_1.remap)(v, {
89
+ createInvoicePayment: "CreateInvoicePayment",
90
+ });
91
+ });
92
+ function createInvoicePaymentRequestToJSON(createInvoicePaymentRequest) {
93
+ return JSON.stringify(exports.CreateInvoicePaymentRequest$outboundSchema.parse(createInvoicePaymentRequest));
94
+ }
95
+ function createInvoicePaymentRequestFromJSON(jsonString) {
96
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateInvoicePaymentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateInvoicePaymentRequest' from JSON`);
97
+ }
98
+ /** @internal */
99
+ exports.CreateInvoicePaymentResponse$inboundSchema = z.object({
100
+ Headers: z.record(z.array(z.string())).default({}),
101
+ Result: components.InvoicePayment$inboundSchema,
102
+ }).transform((v) => {
103
+ return (0, primitives_js_1.remap)(v, {
104
+ "Headers": "headers",
105
+ "Result": "result",
106
+ });
107
+ });
108
+ /** @internal */
109
+ exports.CreateInvoicePaymentResponse$outboundSchema = z.object({
110
+ headers: z.record(z.array(z.string())),
111
+ result: components.InvoicePayment$outboundSchema,
112
+ }).transform((v) => {
113
+ return (0, primitives_js_1.remap)(v, {
114
+ headers: "Headers",
115
+ result: "Result",
116
+ });
117
+ });
118
+ function createInvoicePaymentResponseToJSON(createInvoicePaymentResponse) {
119
+ return JSON.stringify(exports.CreateInvoicePaymentResponse$outboundSchema.parse(createInvoicePaymentResponse));
120
+ }
121
+ function createInvoicePaymentResponseFromJSON(jsonString) {
122
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateInvoicePaymentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateInvoicePaymentResponse' from JSON`);
123
+ }
124
+ //# sourceMappingURL=createinvoicepayment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createinvoicepayment.js","sourceRoot":"","sources":["../../src/models/operations/createinvoicepayment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,UAAU,CAAC,6BAA6B;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,51 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import * as components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type CreateWebhookGlobals = {
6
+ /**
7
+ * Specify an API version.
8
+ *
9
+ * @remarks
10
+ *
11
+ * API versioning follows the format `vYYYY.QQ.BB`, where
12
+ * - `YYYY` is the year
13
+ * - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
14
+ * - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
15
+ * - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
16
+ *
17
+ * The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
18
+ * When no version is specified, the API defaults to `v2024.01.00`.
19
+ */
20
+ xMoovVersion?: string | undefined;
21
+ };
22
+ export type CreateWebhookResponse = {
23
+ headers: {
24
+ [k: string]: Array<string>;
25
+ };
26
+ result: components.Webhook;
27
+ };
28
+ /** @internal */
29
+ export declare const CreateWebhookGlobals$inboundSchema: z.ZodType<CreateWebhookGlobals, z.ZodTypeDef, unknown>;
30
+ /** @internal */
31
+ export type CreateWebhookGlobals$Outbound = {
32
+ "X-Moov-Version"?: string | undefined;
33
+ };
34
+ /** @internal */
35
+ export declare const CreateWebhookGlobals$outboundSchema: z.ZodType<CreateWebhookGlobals$Outbound, z.ZodTypeDef, CreateWebhookGlobals>;
36
+ export declare function createWebhookGlobalsToJSON(createWebhookGlobals: CreateWebhookGlobals): string;
37
+ export declare function createWebhookGlobalsFromJSON(jsonString: string): SafeParseResult<CreateWebhookGlobals, SDKValidationError>;
38
+ /** @internal */
39
+ export declare const CreateWebhookResponse$inboundSchema: z.ZodType<CreateWebhookResponse, z.ZodTypeDef, unknown>;
40
+ /** @internal */
41
+ export type CreateWebhookResponse$Outbound = {
42
+ Headers: {
43
+ [k: string]: Array<string>;
44
+ };
45
+ Result: components.Webhook$Outbound;
46
+ };
47
+ /** @internal */
48
+ export declare const CreateWebhookResponse$outboundSchema: z.ZodType<CreateWebhookResponse$Outbound, z.ZodTypeDef, CreateWebhookResponse>;
49
+ export declare function createWebhookResponseToJSON(createWebhookResponse: CreateWebhookResponse): string;
50
+ export declare function createWebhookResponseFromJSON(jsonString: string): SafeParseResult<CreateWebhookResponse, SDKValidationError>;
51
+ //# sourceMappingURL=createwebhook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createwebhook.d.ts","sourceRoot":"","sources":["../../src/models/operations/createwebhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,C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AG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CASrB,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AACD,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CreateWebhookResponse$outboundSchema = exports.CreateWebhookResponse$inboundSchema = exports.CreateWebhookGlobals$outboundSchema = exports.CreateWebhookGlobals$inboundSchema = void 0;
40
+ exports.createWebhookGlobalsToJSON = createWebhookGlobalsToJSON;
41
+ exports.createWebhookGlobalsFromJSON = createWebhookGlobalsFromJSON;
42
+ exports.createWebhookResponseToJSON = createWebhookResponseToJSON;
43
+ exports.createWebhookResponseFromJSON = createWebhookResponseFromJSON;
44
+ const z = __importStar(require("zod/v3"));
45
+ const primitives_js_1 = require("../../lib/primitives.js");
46
+ const schemas_js_1 = require("../../lib/schemas.js");
47
+ const components = __importStar(require("../components/index.js"));
48
+ /** @internal */
49
+ exports.CreateWebhookGlobals$inboundSchema = z.object({
50
+ "X-Moov-Version": z.string().optional(),
51
+ }).transform((v) => {
52
+ return (0, primitives_js_1.remap)(v, {
53
+ "X-Moov-Version": "xMoovVersion",
54
+ });
55
+ });
56
+ /** @internal */
57
+ exports.CreateWebhookGlobals$outboundSchema = z.object({
58
+ xMoovVersion: z.string().optional(),
59
+ }).transform((v) => {
60
+ return (0, primitives_js_1.remap)(v, {
61
+ xMoovVersion: "X-Moov-Version",
62
+ });
63
+ });
64
+ function createWebhookGlobalsToJSON(createWebhookGlobals) {
65
+ return JSON.stringify(exports.CreateWebhookGlobals$outboundSchema.parse(createWebhookGlobals));
66
+ }
67
+ function createWebhookGlobalsFromJSON(jsonString) {
68
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateWebhookGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateWebhookGlobals' from JSON`);
69
+ }
70
+ /** @internal */
71
+ exports.CreateWebhookResponse$inboundSchema = z.object({
72
+ Headers: z.record(z.array(z.string())).default({}),
73
+ Result: components.Webhook$inboundSchema,
74
+ }).transform((v) => {
75
+ return (0, primitives_js_1.remap)(v, {
76
+ "Headers": "headers",
77
+ "Result": "result",
78
+ });
79
+ });
80
+ /** @internal */
81
+ exports.CreateWebhookResponse$outboundSchema = z.object({
82
+ headers: z.record(z.array(z.string())),
83
+ result: components.Webhook$outboundSchema,
84
+ }).transform((v) => {
85
+ return (0, primitives_js_1.remap)(v, {
86
+ headers: "Headers",
87
+ result: "Result",
88
+ });
89
+ });
90
+ function createWebhookResponseToJSON(createWebhookResponse) {
91
+ return JSON.stringify(exports.CreateWebhookResponse$outboundSchema.parse(createWebhookResponse));
92
+ }
93
+ function createWebhookResponseFromJSON(jsonString) {
94
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateWebhookResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateWebhookResponse' from JSON`);
95
+ }
96
+ //# sourceMappingURL=createwebhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createwebhook.js","sourceRoot":"","sources":["../../src/models/operations/createwebhook.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DH,gEAMC;AACD,oEAQC;AAqCD,kEAMC;AACD,sEAQC;AA/HD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA0BrD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,cAAc;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,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AA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AACD,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,61 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type DisableWebhookGlobals = {
5
+ /**
6
+ * Specify an API version.
7
+ *
8
+ * @remarks
9
+ *
10
+ * API versioning follows the format `vYYYY.QQ.BB`, where
11
+ * - `YYYY` is the year
12
+ * - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
13
+ * - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
14
+ * - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
15
+ *
16
+ * The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
17
+ * When no version is specified, the API defaults to `v2024.01.00`.
18
+ */
19
+ xMoovVersion?: string | undefined;
20
+ };
21
+ export type DisableWebhookRequest = {
22
+ webhookID: string;
23
+ };
24
+ export type DisableWebhookResponse = {
25
+ headers: {
26
+ [k: string]: Array<string>;
27
+ };
28
+ };
29
+ /** @internal */
30
+ export declare const DisableWebhookGlobals$inboundSchema: z.ZodType<DisableWebhookGlobals, z.ZodTypeDef, unknown>;
31
+ /** @internal */
32
+ export type DisableWebhookGlobals$Outbound = {
33
+ "X-Moov-Version"?: string | undefined;
34
+ };
35
+ /** @internal */
36
+ export declare const DisableWebhookGlobals$outboundSchema: z.ZodType<DisableWebhookGlobals$Outbound, z.ZodTypeDef, DisableWebhookGlobals>;
37
+ export declare function disableWebhookGlobalsToJSON(disableWebhookGlobals: DisableWebhookGlobals): string;
38
+ export declare function disableWebhookGlobalsFromJSON(jsonString: string): SafeParseResult<DisableWebhookGlobals, SDKValidationError>;
39
+ /** @internal */
40
+ export declare const DisableWebhookRequest$inboundSchema: z.ZodType<DisableWebhookRequest, z.ZodTypeDef, unknown>;
41
+ /** @internal */
42
+ export type DisableWebhookRequest$Outbound = {
43
+ webhookID: string;
44
+ };
45
+ /** @internal */
46
+ export declare const DisableWebhookRequest$outboundSchema: z.ZodType<DisableWebhookRequest$Outbound, z.ZodTypeDef, DisableWebhookRequest>;
47
+ export declare function disableWebhookRequestToJSON(disableWebhookRequest: DisableWebhookRequest): string;
48
+ export declare function disableWebhookRequestFromJSON(jsonString: string): SafeParseResult<DisableWebhookRequest, SDKValidationError>;
49
+ /** @internal */
50
+ export declare const DisableWebhookResponse$inboundSchema: z.ZodType<DisableWebhookResponse, z.ZodTypeDef, unknown>;
51
+ /** @internal */
52
+ export type DisableWebhookResponse$Outbound = {
53
+ Headers: {
54
+ [k: string]: Array<string>;
55
+ };
56
+ };
57
+ /** @internal */
58
+ export declare const DisableWebhookResponse$outboundSchema: z.ZodType<DisableWebhookResponse$Outbound, z.ZodTypeDef, DisableWebhookResponse>;
59
+ export declare function disableWebhookResponseToJSON(disableWebhookResponse: DisableWebhookResponse): string;
60
+ export declare function disableWebhookResponseFromJSON(jsonString: string): SafeParseResult<DisableWebhookResponse, SDKValidationError>;
61
+ //# sourceMappingURL=disablewebhook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disablewebhook.d.ts","sourceRoot":"","sources":["../../src/models/operations/disablewebhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CA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,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAGrB,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AACD,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D;AAED,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAOtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AACD,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DisableWebhookResponse$outboundSchema = exports.DisableWebhookResponse$inboundSchema = exports.DisableWebhookRequest$outboundSchema = exports.DisableWebhookRequest$inboundSchema = exports.DisableWebhookGlobals$outboundSchema = exports.DisableWebhookGlobals$inboundSchema = void 0;
40
+ exports.disableWebhookGlobalsToJSON = disableWebhookGlobalsToJSON;
41
+ exports.disableWebhookGlobalsFromJSON = disableWebhookGlobalsFromJSON;
42
+ exports.disableWebhookRequestToJSON = disableWebhookRequestToJSON;
43
+ exports.disableWebhookRequestFromJSON = disableWebhookRequestFromJSON;
44
+ exports.disableWebhookResponseToJSON = disableWebhookResponseToJSON;
45
+ exports.disableWebhookResponseFromJSON = disableWebhookResponseFromJSON;
46
+ const z = __importStar(require("zod/v3"));
47
+ const primitives_js_1 = require("../../lib/primitives.js");
48
+ const schemas_js_1 = require("../../lib/schemas.js");
49
+ /** @internal */
50
+ exports.DisableWebhookGlobals$inboundSchema = z.object({
51
+ "X-Moov-Version": z.string().optional(),
52
+ }).transform((v) => {
53
+ return (0, primitives_js_1.remap)(v, {
54
+ "X-Moov-Version": "xMoovVersion",
55
+ });
56
+ });
57
+ /** @internal */
58
+ exports.DisableWebhookGlobals$outboundSchema = z.object({
59
+ xMoovVersion: z.string().optional(),
60
+ }).transform((v) => {
61
+ return (0, primitives_js_1.remap)(v, {
62
+ xMoovVersion: "X-Moov-Version",
63
+ });
64
+ });
65
+ function disableWebhookGlobalsToJSON(disableWebhookGlobals) {
66
+ return JSON.stringify(exports.DisableWebhookGlobals$outboundSchema.parse(disableWebhookGlobals));
67
+ }
68
+ function disableWebhookGlobalsFromJSON(jsonString) {
69
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DisableWebhookGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DisableWebhookGlobals' from JSON`);
70
+ }
71
+ /** @internal */
72
+ exports.DisableWebhookRequest$inboundSchema = z.object({
73
+ webhookID: z.string(),
74
+ });
75
+ /** @internal */
76
+ exports.DisableWebhookRequest$outboundSchema = z.object({
77
+ webhookID: z.string(),
78
+ });
79
+ function disableWebhookRequestToJSON(disableWebhookRequest) {
80
+ return JSON.stringify(exports.DisableWebhookRequest$outboundSchema.parse(disableWebhookRequest));
81
+ }
82
+ function disableWebhookRequestFromJSON(jsonString) {
83
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DisableWebhookRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DisableWebhookRequest' from JSON`);
84
+ }
85
+ /** @internal */
86
+ exports.DisableWebhookResponse$inboundSchema = z.object({
87
+ Headers: z.record(z.array(z.string())).default({}),
88
+ }).transform((v) => {
89
+ return (0, primitives_js_1.remap)(v, {
90
+ "Headers": "headers",
91
+ });
92
+ });
93
+ /** @internal */
94
+ exports.DisableWebhookResponse$outboundSchema = z.object({
95
+ headers: z.record(z.array(z.string())),
96
+ }).transform((v) => {
97
+ return (0, primitives_js_1.remap)(v, {
98
+ headers: "Headers",
99
+ });
100
+ });
101
+ function disableWebhookResponseToJSON(disableWebhookResponse) {
102
+ return JSON.stringify(exports.DisableWebhookResponse$outboundSchema.parse(disableWebhookResponse));
103
+ }
104
+ function disableWebhookResponseFromJSON(jsonString) {
105
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DisableWebhookResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DisableWebhookResponse' from JSON`);
106
+ }
107
+ //# sourceMappingURL=disablewebhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disablewebhook.js","sourceRoot":"","sources":["../../src/models/operations/disablewebhook.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEH,kEAMC;AACD,sEAQC;AAwBD,kEAMC;AACD,sEAQC;AAgCD,oEAMC;AACD,wEAQC;AAnKD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AA8BjD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,cAAc;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,gBAAgB;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CA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AI9C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AACD,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,64 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import * as components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type GetWebhookGlobals = {
6
+ /**
7
+ * Specify an API version.
8
+ *
9
+ * @remarks
10
+ *
11
+ * API versioning follows the format `vYYYY.QQ.BB`, where
12
+ * - `YYYY` is the year
13
+ * - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
14
+ * - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
15
+ * - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
16
+ *
17
+ * The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
18
+ * When no version is specified, the API defaults to `v2024.01.00`.
19
+ */
20
+ xMoovVersion?: string | undefined;
21
+ };
22
+ export type GetWebhookRequest = {
23
+ webhookID: string;
24
+ };
25
+ export type GetWebhookResponse = {
26
+ headers: {
27
+ [k: string]: Array<string>;
28
+ };
29
+ result: components.Webhook;
30
+ };
31
+ /** @internal */
32
+ export declare const GetWebhookGlobals$inboundSchema: z.ZodType<GetWebhookGlobals, z.ZodTypeDef, unknown>;
33
+ /** @internal */
34
+ export type GetWebhookGlobals$Outbound = {
35
+ "X-Moov-Version"?: string | undefined;
36
+ };
37
+ /** @internal */
38
+ export declare const GetWebhookGlobals$outboundSchema: z.ZodType<GetWebhookGlobals$Outbound, z.ZodTypeDef, GetWebhookGlobals>;
39
+ export declare function getWebhookGlobalsToJSON(getWebhookGlobals: GetWebhookGlobals): string;
40
+ export declare function getWebhookGlobalsFromJSON(jsonString: string): SafeParseResult<GetWebhookGlobals, SDKValidationError>;
41
+ /** @internal */
42
+ export declare const GetWebhookRequest$inboundSchema: z.ZodType<GetWebhookRequest, z.ZodTypeDef, unknown>;
43
+ /** @internal */
44
+ export type GetWebhookRequest$Outbound = {
45
+ webhookID: string;
46
+ };
47
+ /** @internal */
48
+ export declare const GetWebhookRequest$outboundSchema: z.ZodType<GetWebhookRequest$Outbound, z.ZodTypeDef, GetWebhookRequest>;
49
+ export declare function getWebhookRequestToJSON(getWebhookRequest: GetWebhookRequest): string;
50
+ export declare function getWebhookRequestFromJSON(jsonString: string): SafeParseResult<GetWebhookRequest, SDKValidationError>;
51
+ /** @internal */
52
+ export declare const GetWebhookResponse$inboundSchema: z.ZodType<GetWebhookResponse, z.ZodTypeDef, unknown>;
53
+ /** @internal */
54
+ export type GetWebhookResponse$Outbound = {
55
+ Headers: {
56
+ [k: string]: Array<string>;
57
+ };
58
+ Result: components.Webhook$Outbound;
59
+ };
60
+ /** @internal */
61
+ export declare const GetWebhookResponse$outboundSchema: z.ZodType<GetWebhookResponse$Outbound, z.ZodTypeDef, GetWebhookResponse>;
62
+ export declare function getWebhookResponseToJSON(getWebhookResponse: GetWebhookResponse): string;
63
+ export declare function getWebhookResponseFromJSON(jsonString: string): SafeParseResult<GetWebhookResponse, SDKValidationError>;
64
+ //# sourceMappingURL=getwebhook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getwebhook.d.ts","sourceRoot":"","sources":["../../src/models/operations/getwebhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAOjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,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code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GetWebhookResponse$outboundSchema = exports.GetWebhookResponse$inboundSchema = exports.GetWebhookRequest$outboundSchema = exports.GetWebhookRequest$inboundSchema = exports.GetWebhookGlobals$outboundSchema = exports.GetWebhookGlobals$inboundSchema = void 0;
40
+ exports.getWebhookGlobalsToJSON = getWebhookGlobalsToJSON;
41
+ exports.getWebhookGlobalsFromJSON = getWebhookGlobalsFromJSON;
42
+ exports.getWebhookRequestToJSON = getWebhookRequestToJSON;
43
+ exports.getWebhookRequestFromJSON = getWebhookRequestFromJSON;
44
+ exports.getWebhookResponseToJSON = getWebhookResponseToJSON;
45
+ exports.getWebhookResponseFromJSON = getWebhookResponseFromJSON;
46
+ const z = __importStar(require("zod/v3"));
47
+ const primitives_js_1 = require("../../lib/primitives.js");
48
+ const schemas_js_1 = require("../../lib/schemas.js");
49
+ const components = __importStar(require("../components/index.js"));
50
+ /** @internal */
51
+ exports.GetWebhookGlobals$inboundSchema = z.object({
52
+ "X-Moov-Version": z.string().optional(),
53
+ }).transform((v) => {
54
+ return (0, primitives_js_1.remap)(v, {
55
+ "X-Moov-Version": "xMoovVersion",
56
+ });
57
+ });
58
+ /** @internal */
59
+ exports.GetWebhookGlobals$outboundSchema = z.object({
60
+ xMoovVersion: z.string().optional(),
61
+ }).transform((v) => {
62
+ return (0, primitives_js_1.remap)(v, {
63
+ xMoovVersion: "X-Moov-Version",
64
+ });
65
+ });
66
+ function getWebhookGlobalsToJSON(getWebhookGlobals) {
67
+ return JSON.stringify(exports.GetWebhookGlobals$outboundSchema.parse(getWebhookGlobals));
68
+ }
69
+ function getWebhookGlobalsFromJSON(jsonString) {
70
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetWebhookGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWebhookGlobals' from JSON`);
71
+ }
72
+ /** @internal */
73
+ exports.GetWebhookRequest$inboundSchema = z.object({
74
+ webhookID: z.string(),
75
+ });
76
+ /** @internal */
77
+ exports.GetWebhookRequest$outboundSchema = z.object({
78
+ webhookID: z.string(),
79
+ });
80
+ function getWebhookRequestToJSON(getWebhookRequest) {
81
+ return JSON.stringify(exports.GetWebhookRequest$outboundSchema.parse(getWebhookRequest));
82
+ }
83
+ function getWebhookRequestFromJSON(jsonString) {
84
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetWebhookRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWebhookRequest' from JSON`);
85
+ }
86
+ /** @internal */
87
+ exports.GetWebhookResponse$inboundSchema = z.object({
88
+ Headers: z.record(z.array(z.string())).default({}),
89
+ Result: components.Webhook$inboundSchema,
90
+ }).transform((v) => {
91
+ return (0, primitives_js_1.remap)(v, {
92
+ "Headers": "headers",
93
+ "Result": "result",
94
+ });
95
+ });
96
+ /** @internal */
97
+ exports.GetWebhookResponse$outboundSchema = z.object({
98
+ headers: z.record(z.array(z.string())),
99
+ result: components.Webhook$outboundSchema,
100
+ }).transform((v) => {
101
+ return (0, primitives_js_1.remap)(v, {
102
+ headers: "Headers",
103
+ result: "Result",
104
+ });
105
+ });
106
+ function getWebhookResponseToJSON(getWebhookResponse) {
107
+ return JSON.stringify(exports.GetWebhookResponse$outboundSchema.parse(getWebhookResponse));
108
+ }
109
+ function getWebhookResponseFromJSON(jsonString) {
110
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetWebhookResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWebhookResponse' from JSON`);
111
+ }
112
+ //# sourceMappingURL=getwebhook.js.map