@moovio/sdk 0.10.17 → 0.11.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 (189) hide show
  1. package/bin/mcp-server.js +860 -6
  2. package/bin/mcp-server.js.map +41 -7
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/config.js.map +1 -1
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/mcp-server.js.map +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/mcp-server/server.js.map +1 -1
  11. package/models/components/index.d.ts +34 -0
  12. package/models/components/index.d.ts.map +1 -1
  13. package/models/components/index.js +34 -0
  14. package/models/components/index.js.map +1 -1
  15. package/models/components/webhookdata.d.ts +57 -0
  16. package/models/components/webhookdata.d.ts.map +1 -0
  17. package/models/components/webhookdata.js +154 -0
  18. package/models/components/webhookdata.js.map +1 -0
  19. package/models/components/webhookdataaccountcreated.d.ts +31 -0
  20. package/models/components/webhookdataaccountcreated.d.ts.map +1 -0
  21. package/models/components/webhookdataaccountcreated.js +71 -0
  22. package/models/components/webhookdataaccountcreated.js.map +1 -0
  23. package/models/components/webhookdataaccountdeleted.d.ts +31 -0
  24. package/models/components/webhookdataaccountdeleted.d.ts.map +1 -0
  25. package/models/components/webhookdataaccountdeleted.js +71 -0
  26. package/models/components/webhookdataaccountdeleted.js.map +1 -0
  27. package/models/components/webhookdataaccountupdated.d.ts +31 -0
  28. package/models/components/webhookdataaccountupdated.d.ts.map +1 -0
  29. package/models/components/webhookdataaccountupdated.js +71 -0
  30. package/models/components/webhookdataaccountupdated.js.map +1 -0
  31. package/models/components/webhookdatabalanceupdated.d.ts +31 -0
  32. package/models/components/webhookdatabalanceupdated.d.ts.map +1 -0
  33. package/models/components/webhookdatabalanceupdated.js +71 -0
  34. package/models/components/webhookdatabalanceupdated.js.map +1 -0
  35. package/models/components/webhookdatabankaccountcreated.d.ts +31 -0
  36. package/models/components/webhookdatabankaccountcreated.d.ts.map +1 -0
  37. package/models/components/webhookdatabankaccountcreated.js +71 -0
  38. package/models/components/webhookdatabankaccountcreated.js.map +1 -0
  39. package/models/components/webhookdatabankaccountdeleted.d.ts +31 -0
  40. package/models/components/webhookdatabankaccountdeleted.d.ts.map +1 -0
  41. package/models/components/webhookdatabankaccountdeleted.js +71 -0
  42. package/models/components/webhookdatabankaccountdeleted.js.map +1 -0
  43. package/models/components/webhookdatabankaccountupdated.d.ts +46 -0
  44. package/models/components/webhookdatabankaccountupdated.d.ts.map +1 -0
  45. package/models/components/webhookdatabankaccountupdated.js +80 -0
  46. package/models/components/webhookdatabankaccountupdated.js.map +1 -0
  47. package/models/components/webhookdatacancellationcreated.d.ts +34 -0
  48. package/models/components/webhookdatacancellationcreated.d.ts.map +1 -0
  49. package/models/components/webhookdatacancellationcreated.js +74 -0
  50. package/models/components/webhookdatacancellationcreated.js.map +1 -0
  51. package/models/components/webhookdatacancellationupdated.d.ts +34 -0
  52. package/models/components/webhookdatacancellationupdated.d.ts.map +1 -0
  53. package/models/components/webhookdatacancellationupdated.js +74 -0
  54. package/models/components/webhookdatacancellationupdated.js.map +1 -0
  55. package/models/components/webhookdatacapabilityrequested.d.ts +41 -0
  56. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -0
  57. package/models/components/webhookdatacapabilityrequested.js +74 -0
  58. package/models/components/webhookdatacapabilityrequested.js.map +1 -0
  59. package/models/components/webhookdatacapabilityupdated.d.ts +47 -0
  60. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -0
  61. package/models/components/webhookdatacapabilityupdated.js +77 -0
  62. package/models/components/webhookdatacapabilityupdated.js.map +1 -0
  63. package/models/components/webhookdatacardautoupdated.d.ts +37 -0
  64. package/models/components/webhookdatacardautoupdated.d.ts.map +1 -0
  65. package/models/components/webhookdatacardautoupdated.js +74 -0
  66. package/models/components/webhookdatacardautoupdated.js.map +1 -0
  67. package/models/components/webhookdatadisputecreated.d.ts +51 -0
  68. package/models/components/webhookdatadisputecreated.d.ts.map +1 -0
  69. package/models/components/webhookdatadisputecreated.js +81 -0
  70. package/models/components/webhookdatadisputecreated.js.map +1 -0
  71. package/models/components/webhookdatadisputeupdated.d.ts +51 -0
  72. package/models/components/webhookdatadisputeupdated.d.ts.map +1 -0
  73. package/models/components/webhookdatadisputeupdated.js +81 -0
  74. package/models/components/webhookdatadisputeupdated.js.map +1 -0
  75. package/models/components/webhookdatanetworkidupdated.d.ts +39 -0
  76. package/models/components/webhookdatanetworkidupdated.d.ts.map +1 -0
  77. package/models/components/webhookdatanetworkidupdated.js +80 -0
  78. package/models/components/webhookdatanetworkidupdated.js.map +1 -0
  79. package/models/components/webhookdatapaymentmethoddisabled.d.ts +33 -0
  80. package/models/components/webhookdatapaymentmethoddisabled.d.ts.map +1 -0
  81. package/models/components/webhookdatapaymentmethoddisabled.js +73 -0
  82. package/models/components/webhookdatapaymentmethoddisabled.js.map +1 -0
  83. package/models/components/webhookdatapaymentmethodenabled.d.ts +33 -0
  84. package/models/components/webhookdatapaymentmethodenabled.d.ts.map +1 -0
  85. package/models/components/webhookdatapaymentmethodenabled.js +73 -0
  86. package/models/components/webhookdatapaymentmethodenabled.js.map +1 -0
  87. package/models/components/webhookdatarefundcreated.d.ts +33 -0
  88. package/models/components/webhookdatarefundcreated.d.ts.map +1 -0
  89. package/models/components/webhookdatarefundcreated.js +73 -0
  90. package/models/components/webhookdatarefundcreated.js.map +1 -0
  91. package/models/components/webhookdatarefundupdated.d.ts +36 -0
  92. package/models/components/webhookdatarefundupdated.d.ts.map +1 -0
  93. package/models/components/webhookdatarefundupdated.js +76 -0
  94. package/models/components/webhookdatarefundupdated.js.map +1 -0
  95. package/models/components/webhookdatarepresentativecreated.d.ts +31 -0
  96. package/models/components/webhookdatarepresentativecreated.d.ts.map +1 -0
  97. package/models/components/webhookdatarepresentativecreated.js +71 -0
  98. package/models/components/webhookdatarepresentativecreated.js.map +1 -0
  99. package/models/components/webhookdatarepresentativedisabled.d.ts +31 -0
  100. package/models/components/webhookdatarepresentativedisabled.d.ts.map +1 -0
  101. package/models/components/webhookdatarepresentativedisabled.js +71 -0
  102. package/models/components/webhookdatarepresentativedisabled.js.map +1 -0
  103. package/models/components/webhookdatarepresentativeupdated.d.ts +31 -0
  104. package/models/components/webhookdatarepresentativeupdated.d.ts.map +1 -0
  105. package/models/components/webhookdatarepresentativeupdated.js +71 -0
  106. package/models/components/webhookdatarepresentativeupdated.js.map +1 -0
  107. package/models/components/webhookdatasweepcreated.d.ts +31 -0
  108. package/models/components/webhookdatasweepcreated.d.ts.map +1 -0
  109. package/models/components/webhookdatasweepcreated.js +71 -0
  110. package/models/components/webhookdatasweepcreated.js.map +1 -0
  111. package/models/components/webhookdatasweepupdated.d.ts +36 -0
  112. package/models/components/webhookdatasweepupdated.d.ts.map +1 -0
  113. package/models/components/webhookdatasweepupdated.js +76 -0
  114. package/models/components/webhookdatasweepupdated.js.map +1 -0
  115. package/models/components/webhookdataterminalapplicationcreated.d.ts +35 -0
  116. package/models/components/webhookdataterminalapplicationcreated.d.ts.map +1 -0
  117. package/models/components/webhookdataterminalapplicationcreated.js +72 -0
  118. package/models/components/webhookdataterminalapplicationcreated.js.map +1 -0
  119. package/models/components/webhookdataterminalapplicationupdated.d.ts +35 -0
  120. package/models/components/webhookdataterminalapplicationupdated.d.ts.map +1 -0
  121. package/models/components/webhookdataterminalapplicationupdated.js +72 -0
  122. package/models/components/webhookdataterminalapplicationupdated.js.map +1 -0
  123. package/models/components/webhookdatatransfercreated.d.ts +40 -0
  124. package/models/components/webhookdatatransfercreated.d.ts.map +1 -0
  125. package/models/components/webhookdatatransfercreated.js +74 -0
  126. package/models/components/webhookdatatransfercreated.js.map +1 -0
  127. package/models/components/webhookdatatransferupdated.d.ts +51 -0
  128. package/models/components/webhookdatatransferupdated.d.ts.map +1 -0
  129. package/models/components/webhookdatatransferupdated.js +79 -0
  130. package/models/components/webhookdatatransferupdated.js.map +1 -0
  131. package/models/components/webhookdatawallettransactionupdated.d.ts +42 -0
  132. package/models/components/webhookdatawallettransactionupdated.d.ts.map +1 -0
  133. package/models/components/webhookdatawallettransactionupdated.js +79 -0
  134. package/models/components/webhookdatawallettransactionupdated.js.map +1 -0
  135. package/models/components/webhookevent.d.ts +49 -0
  136. package/models/components/webhookevent.d.ts.map +1 -0
  137. package/models/components/webhookevent.js +77 -0
  138. package/models/components/webhookevent.js.map +1 -0
  139. package/models/components/webhookeventtype.d.ts +115 -0
  140. package/models/components/webhookeventtype.d.ts.map +1 -0
  141. package/models/components/webhookeventtype.js +90 -0
  142. package/models/components/webhookeventtype.js.map +1 -0
  143. package/models/components/webhooktransferpaymentmethoddetails.d.ts +34 -0
  144. package/models/components/webhooktransferpaymentmethoddetails.d.ts.map +1 -0
  145. package/models/components/webhooktransferpaymentmethoddetails.js +71 -0
  146. package/models/components/webhooktransferpaymentmethoddetails.js.map +1 -0
  147. package/models/components/webhookwalletavailablebalance.d.ts +36 -0
  148. package/models/components/webhookwalletavailablebalance.d.ts.map +1 -0
  149. package/models/components/webhookwalletavailablebalance.js +73 -0
  150. package/models/components/webhookwalletavailablebalance.js.map +1 -0
  151. package/package.json +1 -1
  152. package/src/lib/config.ts +3 -3
  153. package/src/mcp-server/mcp-server.ts +1 -1
  154. package/src/mcp-server/server.ts +1 -1
  155. package/src/models/components/index.ts +34 -0
  156. package/src/models/components/webhookdata.ts +349 -0
  157. package/src/models/components/webhookdataaccountcreated.ts +70 -0
  158. package/src/models/components/webhookdataaccountdeleted.ts +70 -0
  159. package/src/models/components/webhookdataaccountupdated.ts +70 -0
  160. package/src/models/components/webhookdatabalanceupdated.ts +70 -0
  161. package/src/models/components/webhookdatabankaccountcreated.ts +72 -0
  162. package/src/models/components/webhookdatabankaccountdeleted.ts +72 -0
  163. package/src/models/components/webhookdatabankaccountupdated.ts +106 -0
  164. package/src/models/components/webhookdatacancellationcreated.ts +81 -0
  165. package/src/models/components/webhookdatacancellationupdated.ts +81 -0
  166. package/src/models/components/webhookdatacapabilityrequested.ts +88 -0
  167. package/src/models/components/webhookdatacapabilityupdated.ts +100 -0
  168. package/src/models/components/webhookdatacardautoupdated.ts +82 -0
  169. package/src/models/components/webhookdatadisputecreated.ts +106 -0
  170. package/src/models/components/webhookdatadisputeupdated.ts +106 -0
  171. package/src/models/components/webhookdatanetworkidupdated.ts +89 -0
  172. package/src/models/components/webhookdatapaymentmethoddisabled.ts +76 -0
  173. package/src/models/components/webhookdatapaymentmethodenabled.ts +76 -0
  174. package/src/models/components/webhookdatarefundcreated.ts +74 -0
  175. package/src/models/components/webhookdatarefundupdated.ts +83 -0
  176. package/src/models/components/webhookdatarepresentativecreated.ts +72 -0
  177. package/src/models/components/webhookdatarepresentativedisabled.ts +73 -0
  178. package/src/models/components/webhookdatarepresentativeupdated.ts +72 -0
  179. package/src/models/components/webhookdatasweepcreated.ts +70 -0
  180. package/src/models/components/webhookdatasweepupdated.ts +83 -0
  181. package/src/models/components/webhookdataterminalapplicationcreated.ts +83 -0
  182. package/src/models/components/webhookdataterminalapplicationupdated.ts +83 -0
  183. package/src/models/components/webhookdatatransfercreated.ts +85 -0
  184. package/src/models/components/webhookdatatransferupdated.ts +105 -0
  185. package/src/models/components/webhookdatawallettransactionupdated.ts +101 -0
  186. package/src/models/components/webhookevent.ts +97 -0
  187. package/src/models/components/webhookeventtype.ts +66 -0
  188. package/src/models/components/webhooktransferpaymentmethoddetails.ts +78 -0
  189. package/src/models/components/webhookwalletavailablebalance.ts +79 -0
@@ -0,0 +1,349 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ WebhookDataAccountCreated,
11
+ WebhookDataAccountCreated$inboundSchema,
12
+ WebhookDataAccountCreated$Outbound,
13
+ WebhookDataAccountCreated$outboundSchema,
14
+ } from "./webhookdataaccountcreated.js";
15
+ import {
16
+ WebhookDataAccountDeleted,
17
+ WebhookDataAccountDeleted$inboundSchema,
18
+ WebhookDataAccountDeleted$Outbound,
19
+ WebhookDataAccountDeleted$outboundSchema,
20
+ } from "./webhookdataaccountdeleted.js";
21
+ import {
22
+ WebhookDataAccountUpdated,
23
+ WebhookDataAccountUpdated$inboundSchema,
24
+ WebhookDataAccountUpdated$Outbound,
25
+ WebhookDataAccountUpdated$outboundSchema,
26
+ } from "./webhookdataaccountupdated.js";
27
+ import {
28
+ WebhookDataBalanceUpdated,
29
+ WebhookDataBalanceUpdated$inboundSchema,
30
+ WebhookDataBalanceUpdated$Outbound,
31
+ WebhookDataBalanceUpdated$outboundSchema,
32
+ } from "./webhookdatabalanceupdated.js";
33
+ import {
34
+ WebhookDataBankAccountCreated,
35
+ WebhookDataBankAccountCreated$inboundSchema,
36
+ WebhookDataBankAccountCreated$Outbound,
37
+ WebhookDataBankAccountCreated$outboundSchema,
38
+ } from "./webhookdatabankaccountcreated.js";
39
+ import {
40
+ WebhookDataBankAccountDeleted,
41
+ WebhookDataBankAccountDeleted$inboundSchema,
42
+ WebhookDataBankAccountDeleted$Outbound,
43
+ WebhookDataBankAccountDeleted$outboundSchema,
44
+ } from "./webhookdatabankaccountdeleted.js";
45
+ import {
46
+ WebhookDataBankAccountUpdated,
47
+ WebhookDataBankAccountUpdated$inboundSchema,
48
+ WebhookDataBankAccountUpdated$Outbound,
49
+ WebhookDataBankAccountUpdated$outboundSchema,
50
+ } from "./webhookdatabankaccountupdated.js";
51
+ import {
52
+ WebhookDataCancellationCreated,
53
+ WebhookDataCancellationCreated$inboundSchema,
54
+ WebhookDataCancellationCreated$Outbound,
55
+ WebhookDataCancellationCreated$outboundSchema,
56
+ } from "./webhookdatacancellationcreated.js";
57
+ import {
58
+ WebhookDataCancellationUpdated,
59
+ WebhookDataCancellationUpdated$inboundSchema,
60
+ WebhookDataCancellationUpdated$Outbound,
61
+ WebhookDataCancellationUpdated$outboundSchema,
62
+ } from "./webhookdatacancellationupdated.js";
63
+ import {
64
+ WebhookDataCapabilityRequested,
65
+ WebhookDataCapabilityRequested$inboundSchema,
66
+ WebhookDataCapabilityRequested$Outbound,
67
+ WebhookDataCapabilityRequested$outboundSchema,
68
+ } from "./webhookdatacapabilityrequested.js";
69
+ import {
70
+ WebhookDataCapabilityUpdated,
71
+ WebhookDataCapabilityUpdated$inboundSchema,
72
+ WebhookDataCapabilityUpdated$Outbound,
73
+ WebhookDataCapabilityUpdated$outboundSchema,
74
+ } from "./webhookdatacapabilityupdated.js";
75
+ import {
76
+ WebhookDataCardAutoUpdated,
77
+ WebhookDataCardAutoUpdated$inboundSchema,
78
+ WebhookDataCardAutoUpdated$Outbound,
79
+ WebhookDataCardAutoUpdated$outboundSchema,
80
+ } from "./webhookdatacardautoupdated.js";
81
+ import {
82
+ WebhookDataDisputeCreated,
83
+ WebhookDataDisputeCreated$inboundSchema,
84
+ WebhookDataDisputeCreated$Outbound,
85
+ WebhookDataDisputeCreated$outboundSchema,
86
+ } from "./webhookdatadisputecreated.js";
87
+ import {
88
+ WebhookDataDisputeUpdated,
89
+ WebhookDataDisputeUpdated$inboundSchema,
90
+ WebhookDataDisputeUpdated$Outbound,
91
+ WebhookDataDisputeUpdated$outboundSchema,
92
+ } from "./webhookdatadisputeupdated.js";
93
+ import {
94
+ WebhookDataNetworkIDUpdated,
95
+ WebhookDataNetworkIDUpdated$inboundSchema,
96
+ WebhookDataNetworkIDUpdated$Outbound,
97
+ WebhookDataNetworkIDUpdated$outboundSchema,
98
+ } from "./webhookdatanetworkidupdated.js";
99
+ import {
100
+ WebhookDataPaymentMethodDisabled,
101
+ WebhookDataPaymentMethodDisabled$inboundSchema,
102
+ WebhookDataPaymentMethodDisabled$Outbound,
103
+ WebhookDataPaymentMethodDisabled$outboundSchema,
104
+ } from "./webhookdatapaymentmethoddisabled.js";
105
+ import {
106
+ WebhookDataPaymentMethodEnabled,
107
+ WebhookDataPaymentMethodEnabled$inboundSchema,
108
+ WebhookDataPaymentMethodEnabled$Outbound,
109
+ WebhookDataPaymentMethodEnabled$outboundSchema,
110
+ } from "./webhookdatapaymentmethodenabled.js";
111
+ import {
112
+ WebhookDataRefundCreated,
113
+ WebhookDataRefundCreated$inboundSchema,
114
+ WebhookDataRefundCreated$Outbound,
115
+ WebhookDataRefundCreated$outboundSchema,
116
+ } from "./webhookdatarefundcreated.js";
117
+ import {
118
+ WebhookDataRefundUpdated,
119
+ WebhookDataRefundUpdated$inboundSchema,
120
+ WebhookDataRefundUpdated$Outbound,
121
+ WebhookDataRefundUpdated$outboundSchema,
122
+ } from "./webhookdatarefundupdated.js";
123
+ import {
124
+ WebhookDataRepresentativeCreated,
125
+ WebhookDataRepresentativeCreated$inboundSchema,
126
+ WebhookDataRepresentativeCreated$Outbound,
127
+ WebhookDataRepresentativeCreated$outboundSchema,
128
+ } from "./webhookdatarepresentativecreated.js";
129
+ import {
130
+ WebhookDataRepresentativeDisabled,
131
+ WebhookDataRepresentativeDisabled$inboundSchema,
132
+ WebhookDataRepresentativeDisabled$Outbound,
133
+ WebhookDataRepresentativeDisabled$outboundSchema,
134
+ } from "./webhookdatarepresentativedisabled.js";
135
+ import {
136
+ WebhookDataRepresentativeUpdated,
137
+ WebhookDataRepresentativeUpdated$inboundSchema,
138
+ WebhookDataRepresentativeUpdated$Outbound,
139
+ WebhookDataRepresentativeUpdated$outboundSchema,
140
+ } from "./webhookdatarepresentativeupdated.js";
141
+ import {
142
+ WebhookDataSweepCreated,
143
+ WebhookDataSweepCreated$inboundSchema,
144
+ WebhookDataSweepCreated$Outbound,
145
+ WebhookDataSweepCreated$outboundSchema,
146
+ } from "./webhookdatasweepcreated.js";
147
+ import {
148
+ WebhookDataSweepUpdated,
149
+ WebhookDataSweepUpdated$inboundSchema,
150
+ WebhookDataSweepUpdated$Outbound,
151
+ WebhookDataSweepUpdated$outboundSchema,
152
+ } from "./webhookdatasweepupdated.js";
153
+ import {
154
+ WebhookDataTerminalApplicationCreated,
155
+ WebhookDataTerminalApplicationCreated$inboundSchema,
156
+ WebhookDataTerminalApplicationCreated$Outbound,
157
+ WebhookDataTerminalApplicationCreated$outboundSchema,
158
+ } from "./webhookdataterminalapplicationcreated.js";
159
+ import {
160
+ WebhookDataTerminalApplicationUpdated,
161
+ WebhookDataTerminalApplicationUpdated$inboundSchema,
162
+ WebhookDataTerminalApplicationUpdated$Outbound,
163
+ WebhookDataTerminalApplicationUpdated$outboundSchema,
164
+ } from "./webhookdataterminalapplicationupdated.js";
165
+ import {
166
+ WebhookDataTransferCreated,
167
+ WebhookDataTransferCreated$inboundSchema,
168
+ WebhookDataTransferCreated$Outbound,
169
+ WebhookDataTransferCreated$outboundSchema,
170
+ } from "./webhookdatatransfercreated.js";
171
+ import {
172
+ WebhookDataTransferUpdated,
173
+ WebhookDataTransferUpdated$inboundSchema,
174
+ WebhookDataTransferUpdated$Outbound,
175
+ WebhookDataTransferUpdated$outboundSchema,
176
+ } from "./webhookdatatransferupdated.js";
177
+ import {
178
+ WebhookDataWalletTransactionUpdated,
179
+ WebhookDataWalletTransactionUpdated$inboundSchema,
180
+ WebhookDataWalletTransactionUpdated$Outbound,
181
+ WebhookDataWalletTransactionUpdated$outboundSchema,
182
+ } from "./webhookdatawallettransactionupdated.js";
183
+
184
+ /**
185
+ * The data for the webhook event. The contents are based on the event type.
186
+ */
187
+ export type WebhookData =
188
+ | WebhookDataAccountCreated
189
+ | WebhookDataAccountUpdated
190
+ | WebhookDataAccountDeleted
191
+ | WebhookDataBalanceUpdated
192
+ | WebhookDataBankAccountCreated
193
+ | WebhookDataBankAccountDeleted
194
+ | WebhookDataRepresentativeCreated
195
+ | WebhookDataRepresentativeUpdated
196
+ | WebhookDataRepresentativeDisabled
197
+ | WebhookDataSweepCreated
198
+ | WebhookDataTerminalApplicationCreated
199
+ | WebhookDataTerminalApplicationUpdated
200
+ | WebhookDataCancellationCreated
201
+ | WebhookDataCancellationUpdated
202
+ | WebhookDataCardAutoUpdated
203
+ | WebhookDataCapabilityRequested
204
+ | WebhookDataPaymentMethodEnabled
205
+ | WebhookDataPaymentMethodDisabled
206
+ | WebhookDataRefundCreated
207
+ | WebhookDataTransferCreated
208
+ | WebhookDataCapabilityUpdated
209
+ | WebhookDataRefundUpdated
210
+ | WebhookDataSweepUpdated
211
+ | WebhookDataBankAccountUpdated
212
+ | WebhookDataTransferUpdated
213
+ | WebhookDataWalletTransactionUpdated
214
+ | WebhookDataDisputeCreated
215
+ | WebhookDataDisputeUpdated
216
+ | WebhookDataNetworkIDUpdated;
217
+
218
+ /** @internal */
219
+ export const WebhookData$inboundSchema: z.ZodType<
220
+ WebhookData,
221
+ z.ZodTypeDef,
222
+ unknown
223
+ > = z.union([
224
+ WebhookDataAccountCreated$inboundSchema,
225
+ WebhookDataAccountUpdated$inboundSchema,
226
+ WebhookDataAccountDeleted$inboundSchema,
227
+ WebhookDataBalanceUpdated$inboundSchema,
228
+ WebhookDataBankAccountCreated$inboundSchema,
229
+ WebhookDataBankAccountDeleted$inboundSchema,
230
+ WebhookDataRepresentativeCreated$inboundSchema,
231
+ WebhookDataRepresentativeUpdated$inboundSchema,
232
+ WebhookDataRepresentativeDisabled$inboundSchema,
233
+ WebhookDataSweepCreated$inboundSchema,
234
+ WebhookDataTerminalApplicationCreated$inboundSchema,
235
+ WebhookDataTerminalApplicationUpdated$inboundSchema,
236
+ WebhookDataCancellationCreated$inboundSchema,
237
+ WebhookDataCancellationUpdated$inboundSchema,
238
+ WebhookDataCardAutoUpdated$inboundSchema,
239
+ WebhookDataCapabilityRequested$inboundSchema,
240
+ WebhookDataPaymentMethodEnabled$inboundSchema,
241
+ WebhookDataPaymentMethodDisabled$inboundSchema,
242
+ WebhookDataRefundCreated$inboundSchema,
243
+ WebhookDataTransferCreated$inboundSchema,
244
+ WebhookDataCapabilityUpdated$inboundSchema,
245
+ WebhookDataRefundUpdated$inboundSchema,
246
+ WebhookDataSweepUpdated$inboundSchema,
247
+ WebhookDataBankAccountUpdated$inboundSchema,
248
+ WebhookDataTransferUpdated$inboundSchema,
249
+ WebhookDataWalletTransactionUpdated$inboundSchema,
250
+ WebhookDataDisputeCreated$inboundSchema,
251
+ WebhookDataDisputeUpdated$inboundSchema,
252
+ WebhookDataNetworkIDUpdated$inboundSchema,
253
+ ]);
254
+
255
+ /** @internal */
256
+ export type WebhookData$Outbound =
257
+ | WebhookDataAccountCreated$Outbound
258
+ | WebhookDataAccountUpdated$Outbound
259
+ | WebhookDataAccountDeleted$Outbound
260
+ | WebhookDataBalanceUpdated$Outbound
261
+ | WebhookDataBankAccountCreated$Outbound
262
+ | WebhookDataBankAccountDeleted$Outbound
263
+ | WebhookDataRepresentativeCreated$Outbound
264
+ | WebhookDataRepresentativeUpdated$Outbound
265
+ | WebhookDataRepresentativeDisabled$Outbound
266
+ | WebhookDataSweepCreated$Outbound
267
+ | WebhookDataTerminalApplicationCreated$Outbound
268
+ | WebhookDataTerminalApplicationUpdated$Outbound
269
+ | WebhookDataCancellationCreated$Outbound
270
+ | WebhookDataCancellationUpdated$Outbound
271
+ | WebhookDataCardAutoUpdated$Outbound
272
+ | WebhookDataCapabilityRequested$Outbound
273
+ | WebhookDataPaymentMethodEnabled$Outbound
274
+ | WebhookDataPaymentMethodDisabled$Outbound
275
+ | WebhookDataRefundCreated$Outbound
276
+ | WebhookDataTransferCreated$Outbound
277
+ | WebhookDataCapabilityUpdated$Outbound
278
+ | WebhookDataRefundUpdated$Outbound
279
+ | WebhookDataSweepUpdated$Outbound
280
+ | WebhookDataBankAccountUpdated$Outbound
281
+ | WebhookDataTransferUpdated$Outbound
282
+ | WebhookDataWalletTransactionUpdated$Outbound
283
+ | WebhookDataDisputeCreated$Outbound
284
+ | WebhookDataDisputeUpdated$Outbound
285
+ | WebhookDataNetworkIDUpdated$Outbound;
286
+
287
+ /** @internal */
288
+ export const WebhookData$outboundSchema: z.ZodType<
289
+ WebhookData$Outbound,
290
+ z.ZodTypeDef,
291
+ WebhookData
292
+ > = z.union([
293
+ WebhookDataAccountCreated$outboundSchema,
294
+ WebhookDataAccountUpdated$outboundSchema,
295
+ WebhookDataAccountDeleted$outboundSchema,
296
+ WebhookDataBalanceUpdated$outboundSchema,
297
+ WebhookDataBankAccountCreated$outboundSchema,
298
+ WebhookDataBankAccountDeleted$outboundSchema,
299
+ WebhookDataRepresentativeCreated$outboundSchema,
300
+ WebhookDataRepresentativeUpdated$outboundSchema,
301
+ WebhookDataRepresentativeDisabled$outboundSchema,
302
+ WebhookDataSweepCreated$outboundSchema,
303
+ WebhookDataTerminalApplicationCreated$outboundSchema,
304
+ WebhookDataTerminalApplicationUpdated$outboundSchema,
305
+ WebhookDataCancellationCreated$outboundSchema,
306
+ WebhookDataCancellationUpdated$outboundSchema,
307
+ WebhookDataCardAutoUpdated$outboundSchema,
308
+ WebhookDataCapabilityRequested$outboundSchema,
309
+ WebhookDataPaymentMethodEnabled$outboundSchema,
310
+ WebhookDataPaymentMethodDisabled$outboundSchema,
311
+ WebhookDataRefundCreated$outboundSchema,
312
+ WebhookDataTransferCreated$outboundSchema,
313
+ WebhookDataCapabilityUpdated$outboundSchema,
314
+ WebhookDataRefundUpdated$outboundSchema,
315
+ WebhookDataSweepUpdated$outboundSchema,
316
+ WebhookDataBankAccountUpdated$outboundSchema,
317
+ WebhookDataTransferUpdated$outboundSchema,
318
+ WebhookDataWalletTransactionUpdated$outboundSchema,
319
+ WebhookDataDisputeCreated$outboundSchema,
320
+ WebhookDataDisputeUpdated$outboundSchema,
321
+ WebhookDataNetworkIDUpdated$outboundSchema,
322
+ ]);
323
+
324
+ /**
325
+ * @internal
326
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
327
+ */
328
+ export namespace WebhookData$ {
329
+ /** @deprecated use `WebhookData$inboundSchema` instead. */
330
+ export const inboundSchema = WebhookData$inboundSchema;
331
+ /** @deprecated use `WebhookData$outboundSchema` instead. */
332
+ export const outboundSchema = WebhookData$outboundSchema;
333
+ /** @deprecated use `WebhookData$Outbound` instead. */
334
+ export type Outbound = WebhookData$Outbound;
335
+ }
336
+
337
+ export function webhookDataToJSON(webhookData: WebhookData): string {
338
+ return JSON.stringify(WebhookData$outboundSchema.parse(webhookData));
339
+ }
340
+
341
+ export function webhookDataFromJSON(
342
+ jsonString: string,
343
+ ): SafeParseResult<WebhookData, SDKValidationError> {
344
+ return safeParse(
345
+ jsonString,
346
+ (x) => WebhookData$inboundSchema.parse(JSON.parse(x)),
347
+ `Failed to parse 'WebhookData' from JSON`,
348
+ );
349
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type WebhookDataAccountCreated = {
11
+ accountID: string;
12
+ foreignID?: string | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const WebhookDataAccountCreated$inboundSchema: z.ZodType<
17
+ WebhookDataAccountCreated,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ accountID: z.string(),
22
+ foreignID: z.string().optional(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type WebhookDataAccountCreated$Outbound = {
27
+ accountID: string;
28
+ foreignID?: string | undefined;
29
+ };
30
+
31
+ /** @internal */
32
+ export const WebhookDataAccountCreated$outboundSchema: z.ZodType<
33
+ WebhookDataAccountCreated$Outbound,
34
+ z.ZodTypeDef,
35
+ WebhookDataAccountCreated
36
+ > = z.object({
37
+ accountID: z.string(),
38
+ foreignID: z.string().optional(),
39
+ });
40
+
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export namespace WebhookDataAccountCreated$ {
46
+ /** @deprecated use `WebhookDataAccountCreated$inboundSchema` instead. */
47
+ export const inboundSchema = WebhookDataAccountCreated$inboundSchema;
48
+ /** @deprecated use `WebhookDataAccountCreated$outboundSchema` instead. */
49
+ export const outboundSchema = WebhookDataAccountCreated$outboundSchema;
50
+ /** @deprecated use `WebhookDataAccountCreated$Outbound` instead. */
51
+ export type Outbound = WebhookDataAccountCreated$Outbound;
52
+ }
53
+
54
+ export function webhookDataAccountCreatedToJSON(
55
+ webhookDataAccountCreated: WebhookDataAccountCreated,
56
+ ): string {
57
+ return JSON.stringify(
58
+ WebhookDataAccountCreated$outboundSchema.parse(webhookDataAccountCreated),
59
+ );
60
+ }
61
+
62
+ export function webhookDataAccountCreatedFromJSON(
63
+ jsonString: string,
64
+ ): SafeParseResult<WebhookDataAccountCreated, SDKValidationError> {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) => WebhookDataAccountCreated$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'WebhookDataAccountCreated' from JSON`,
69
+ );
70
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type WebhookDataAccountDeleted = {
11
+ accountID: string;
12
+ foreignID?: string | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const WebhookDataAccountDeleted$inboundSchema: z.ZodType<
17
+ WebhookDataAccountDeleted,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ accountID: z.string(),
22
+ foreignID: z.string().optional(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type WebhookDataAccountDeleted$Outbound = {
27
+ accountID: string;
28
+ foreignID?: string | undefined;
29
+ };
30
+
31
+ /** @internal */
32
+ export const WebhookDataAccountDeleted$outboundSchema: z.ZodType<
33
+ WebhookDataAccountDeleted$Outbound,
34
+ z.ZodTypeDef,
35
+ WebhookDataAccountDeleted
36
+ > = z.object({
37
+ accountID: z.string(),
38
+ foreignID: z.string().optional(),
39
+ });
40
+
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export namespace WebhookDataAccountDeleted$ {
46
+ /** @deprecated use `WebhookDataAccountDeleted$inboundSchema` instead. */
47
+ export const inboundSchema = WebhookDataAccountDeleted$inboundSchema;
48
+ /** @deprecated use `WebhookDataAccountDeleted$outboundSchema` instead. */
49
+ export const outboundSchema = WebhookDataAccountDeleted$outboundSchema;
50
+ /** @deprecated use `WebhookDataAccountDeleted$Outbound` instead. */
51
+ export type Outbound = WebhookDataAccountDeleted$Outbound;
52
+ }
53
+
54
+ export function webhookDataAccountDeletedToJSON(
55
+ webhookDataAccountDeleted: WebhookDataAccountDeleted,
56
+ ): string {
57
+ return JSON.stringify(
58
+ WebhookDataAccountDeleted$outboundSchema.parse(webhookDataAccountDeleted),
59
+ );
60
+ }
61
+
62
+ export function webhookDataAccountDeletedFromJSON(
63
+ jsonString: string,
64
+ ): SafeParseResult<WebhookDataAccountDeleted, SDKValidationError> {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) => WebhookDataAccountDeleted$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'WebhookDataAccountDeleted' from JSON`,
69
+ );
70
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type WebhookDataAccountUpdated = {
11
+ accountID: string;
12
+ foreignID?: string | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const WebhookDataAccountUpdated$inboundSchema: z.ZodType<
17
+ WebhookDataAccountUpdated,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ accountID: z.string(),
22
+ foreignID: z.string().optional(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type WebhookDataAccountUpdated$Outbound = {
27
+ accountID: string;
28
+ foreignID?: string | undefined;
29
+ };
30
+
31
+ /** @internal */
32
+ export const WebhookDataAccountUpdated$outboundSchema: z.ZodType<
33
+ WebhookDataAccountUpdated$Outbound,
34
+ z.ZodTypeDef,
35
+ WebhookDataAccountUpdated
36
+ > = z.object({
37
+ accountID: z.string(),
38
+ foreignID: z.string().optional(),
39
+ });
40
+
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export namespace WebhookDataAccountUpdated$ {
46
+ /** @deprecated use `WebhookDataAccountUpdated$inboundSchema` instead. */
47
+ export const inboundSchema = WebhookDataAccountUpdated$inboundSchema;
48
+ /** @deprecated use `WebhookDataAccountUpdated$outboundSchema` instead. */
49
+ export const outboundSchema = WebhookDataAccountUpdated$outboundSchema;
50
+ /** @deprecated use `WebhookDataAccountUpdated$Outbound` instead. */
51
+ export type Outbound = WebhookDataAccountUpdated$Outbound;
52
+ }
53
+
54
+ export function webhookDataAccountUpdatedToJSON(
55
+ webhookDataAccountUpdated: WebhookDataAccountUpdated,
56
+ ): string {
57
+ return JSON.stringify(
58
+ WebhookDataAccountUpdated$outboundSchema.parse(webhookDataAccountUpdated),
59
+ );
60
+ }
61
+
62
+ export function webhookDataAccountUpdatedFromJSON(
63
+ jsonString: string,
64
+ ): SafeParseResult<WebhookDataAccountUpdated, SDKValidationError> {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) => WebhookDataAccountUpdated$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'WebhookDataAccountUpdated' from JSON`,
69
+ );
70
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type WebhookDataBalanceUpdated = {
11
+ accountID: string;
12
+ walletID: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const WebhookDataBalanceUpdated$inboundSchema: z.ZodType<
17
+ WebhookDataBalanceUpdated,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ accountID: z.string(),
22
+ walletID: z.string(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type WebhookDataBalanceUpdated$Outbound = {
27
+ accountID: string;
28
+ walletID: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const WebhookDataBalanceUpdated$outboundSchema: z.ZodType<
33
+ WebhookDataBalanceUpdated$Outbound,
34
+ z.ZodTypeDef,
35
+ WebhookDataBalanceUpdated
36
+ > = z.object({
37
+ accountID: z.string(),
38
+ walletID: z.string(),
39
+ });
40
+
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export namespace WebhookDataBalanceUpdated$ {
46
+ /** @deprecated use `WebhookDataBalanceUpdated$inboundSchema` instead. */
47
+ export const inboundSchema = WebhookDataBalanceUpdated$inboundSchema;
48
+ /** @deprecated use `WebhookDataBalanceUpdated$outboundSchema` instead. */
49
+ export const outboundSchema = WebhookDataBalanceUpdated$outboundSchema;
50
+ /** @deprecated use `WebhookDataBalanceUpdated$Outbound` instead. */
51
+ export type Outbound = WebhookDataBalanceUpdated$Outbound;
52
+ }
53
+
54
+ export function webhookDataBalanceUpdatedToJSON(
55
+ webhookDataBalanceUpdated: WebhookDataBalanceUpdated,
56
+ ): string {
57
+ return JSON.stringify(
58
+ WebhookDataBalanceUpdated$outboundSchema.parse(webhookDataBalanceUpdated),
59
+ );
60
+ }
61
+
62
+ export function webhookDataBalanceUpdatedFromJSON(
63
+ jsonString: string,
64
+ ): SafeParseResult<WebhookDataBalanceUpdated, SDKValidationError> {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) => WebhookDataBalanceUpdated$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'WebhookDataBalanceUpdated' from JSON`,
69
+ );
70
+ }
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type WebhookDataBankAccountCreated = {
11
+ bankAccountID: string;
12
+ accountID: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const WebhookDataBankAccountCreated$inboundSchema: z.ZodType<
17
+ WebhookDataBankAccountCreated,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ bankAccountID: z.string(),
22
+ accountID: z.string(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type WebhookDataBankAccountCreated$Outbound = {
27
+ bankAccountID: string;
28
+ accountID: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const WebhookDataBankAccountCreated$outboundSchema: z.ZodType<
33
+ WebhookDataBankAccountCreated$Outbound,
34
+ z.ZodTypeDef,
35
+ WebhookDataBankAccountCreated
36
+ > = z.object({
37
+ bankAccountID: z.string(),
38
+ accountID: z.string(),
39
+ });
40
+
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export namespace WebhookDataBankAccountCreated$ {
46
+ /** @deprecated use `WebhookDataBankAccountCreated$inboundSchema` instead. */
47
+ export const inboundSchema = WebhookDataBankAccountCreated$inboundSchema;
48
+ /** @deprecated use `WebhookDataBankAccountCreated$outboundSchema` instead. */
49
+ export const outboundSchema = WebhookDataBankAccountCreated$outboundSchema;
50
+ /** @deprecated use `WebhookDataBankAccountCreated$Outbound` instead. */
51
+ export type Outbound = WebhookDataBankAccountCreated$Outbound;
52
+ }
53
+
54
+ export function webhookDataBankAccountCreatedToJSON(
55
+ webhookDataBankAccountCreated: WebhookDataBankAccountCreated,
56
+ ): string {
57
+ return JSON.stringify(
58
+ WebhookDataBankAccountCreated$outboundSchema.parse(
59
+ webhookDataBankAccountCreated,
60
+ ),
61
+ );
62
+ }
63
+
64
+ export function webhookDataBankAccountCreatedFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<WebhookDataBankAccountCreated, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => WebhookDataBankAccountCreated$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'WebhookDataBankAccountCreated' from JSON`,
71
+ );
72
+ }