@moovio/sdk 0.10.17 → 0.11.1

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 (197) hide show
  1. package/bin/mcp-server.js +868 -18
  2. package/bin/mcp-server.js.map +43 -9
  3. package/funcs/paymentLinksDisable.js +2 -2
  4. package/funcs/paymentLinksDisable.js.map +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/config.js.map +1 -1
  9. package/lib/sdks.d.ts +3 -1
  10. package/lib/sdks.d.ts.map +1 -1
  11. package/lib/sdks.js +6 -11
  12. package/lib/sdks.js.map +1 -1
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/mcp-server.js.map +1 -1
  15. package/mcp-server/server.js +1 -1
  16. package/mcp-server/server.js.map +1 -1
  17. package/models/components/index.d.ts +34 -0
  18. package/models/components/index.d.ts.map +1 -1
  19. package/models/components/index.js +34 -0
  20. package/models/components/index.js.map +1 -1
  21. package/models/components/webhookdata.d.ts +57 -0
  22. package/models/components/webhookdata.d.ts.map +1 -0
  23. package/models/components/webhookdata.js +154 -0
  24. package/models/components/webhookdata.js.map +1 -0
  25. package/models/components/webhookdataaccountcreated.d.ts +31 -0
  26. package/models/components/webhookdataaccountcreated.d.ts.map +1 -0
  27. package/models/components/webhookdataaccountcreated.js +71 -0
  28. package/models/components/webhookdataaccountcreated.js.map +1 -0
  29. package/models/components/webhookdataaccountdeleted.d.ts +31 -0
  30. package/models/components/webhookdataaccountdeleted.d.ts.map +1 -0
  31. package/models/components/webhookdataaccountdeleted.js +71 -0
  32. package/models/components/webhookdataaccountdeleted.js.map +1 -0
  33. package/models/components/webhookdataaccountupdated.d.ts +31 -0
  34. package/models/components/webhookdataaccountupdated.d.ts.map +1 -0
  35. package/models/components/webhookdataaccountupdated.js +71 -0
  36. package/models/components/webhookdataaccountupdated.js.map +1 -0
  37. package/models/components/webhookdatabalanceupdated.d.ts +31 -0
  38. package/models/components/webhookdatabalanceupdated.d.ts.map +1 -0
  39. package/models/components/webhookdatabalanceupdated.js +71 -0
  40. package/models/components/webhookdatabalanceupdated.js.map +1 -0
  41. package/models/components/webhookdatabankaccountcreated.d.ts +31 -0
  42. package/models/components/webhookdatabankaccountcreated.d.ts.map +1 -0
  43. package/models/components/webhookdatabankaccountcreated.js +71 -0
  44. package/models/components/webhookdatabankaccountcreated.js.map +1 -0
  45. package/models/components/webhookdatabankaccountdeleted.d.ts +31 -0
  46. package/models/components/webhookdatabankaccountdeleted.d.ts.map +1 -0
  47. package/models/components/webhookdatabankaccountdeleted.js +71 -0
  48. package/models/components/webhookdatabankaccountdeleted.js.map +1 -0
  49. package/models/components/webhookdatabankaccountupdated.d.ts +46 -0
  50. package/models/components/webhookdatabankaccountupdated.d.ts.map +1 -0
  51. package/models/components/webhookdatabankaccountupdated.js +80 -0
  52. package/models/components/webhookdatabankaccountupdated.js.map +1 -0
  53. package/models/components/webhookdatacancellationcreated.d.ts +34 -0
  54. package/models/components/webhookdatacancellationcreated.d.ts.map +1 -0
  55. package/models/components/webhookdatacancellationcreated.js +74 -0
  56. package/models/components/webhookdatacancellationcreated.js.map +1 -0
  57. package/models/components/webhookdatacancellationupdated.d.ts +34 -0
  58. package/models/components/webhookdatacancellationupdated.d.ts.map +1 -0
  59. package/models/components/webhookdatacancellationupdated.js +74 -0
  60. package/models/components/webhookdatacancellationupdated.js.map +1 -0
  61. package/models/components/webhookdatacapabilityrequested.d.ts +41 -0
  62. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -0
  63. package/models/components/webhookdatacapabilityrequested.js +74 -0
  64. package/models/components/webhookdatacapabilityrequested.js.map +1 -0
  65. package/models/components/webhookdatacapabilityupdated.d.ts +47 -0
  66. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -0
  67. package/models/components/webhookdatacapabilityupdated.js +77 -0
  68. package/models/components/webhookdatacapabilityupdated.js.map +1 -0
  69. package/models/components/webhookdatacardautoupdated.d.ts +37 -0
  70. package/models/components/webhookdatacardautoupdated.d.ts.map +1 -0
  71. package/models/components/webhookdatacardautoupdated.js +74 -0
  72. package/models/components/webhookdatacardautoupdated.js.map +1 -0
  73. package/models/components/webhookdatadisputecreated.d.ts +51 -0
  74. package/models/components/webhookdatadisputecreated.d.ts.map +1 -0
  75. package/models/components/webhookdatadisputecreated.js +81 -0
  76. package/models/components/webhookdatadisputecreated.js.map +1 -0
  77. package/models/components/webhookdatadisputeupdated.d.ts +51 -0
  78. package/models/components/webhookdatadisputeupdated.d.ts.map +1 -0
  79. package/models/components/webhookdatadisputeupdated.js +81 -0
  80. package/models/components/webhookdatadisputeupdated.js.map +1 -0
  81. package/models/components/webhookdatanetworkidupdated.d.ts +39 -0
  82. package/models/components/webhookdatanetworkidupdated.d.ts.map +1 -0
  83. package/models/components/webhookdatanetworkidupdated.js +80 -0
  84. package/models/components/webhookdatanetworkidupdated.js.map +1 -0
  85. package/models/components/webhookdatapaymentmethoddisabled.d.ts +33 -0
  86. package/models/components/webhookdatapaymentmethoddisabled.d.ts.map +1 -0
  87. package/models/components/webhookdatapaymentmethoddisabled.js +73 -0
  88. package/models/components/webhookdatapaymentmethoddisabled.js.map +1 -0
  89. package/models/components/webhookdatapaymentmethodenabled.d.ts +33 -0
  90. package/models/components/webhookdatapaymentmethodenabled.d.ts.map +1 -0
  91. package/models/components/webhookdatapaymentmethodenabled.js +73 -0
  92. package/models/components/webhookdatapaymentmethodenabled.js.map +1 -0
  93. package/models/components/webhookdatarefundcreated.d.ts +33 -0
  94. package/models/components/webhookdatarefundcreated.d.ts.map +1 -0
  95. package/models/components/webhookdatarefundcreated.js +73 -0
  96. package/models/components/webhookdatarefundcreated.js.map +1 -0
  97. package/models/components/webhookdatarefundupdated.d.ts +36 -0
  98. package/models/components/webhookdatarefundupdated.d.ts.map +1 -0
  99. package/models/components/webhookdatarefundupdated.js +76 -0
  100. package/models/components/webhookdatarefundupdated.js.map +1 -0
  101. package/models/components/webhookdatarepresentativecreated.d.ts +31 -0
  102. package/models/components/webhookdatarepresentativecreated.d.ts.map +1 -0
  103. package/models/components/webhookdatarepresentativecreated.js +71 -0
  104. package/models/components/webhookdatarepresentativecreated.js.map +1 -0
  105. package/models/components/webhookdatarepresentativedisabled.d.ts +31 -0
  106. package/models/components/webhookdatarepresentativedisabled.d.ts.map +1 -0
  107. package/models/components/webhookdatarepresentativedisabled.js +71 -0
  108. package/models/components/webhookdatarepresentativedisabled.js.map +1 -0
  109. package/models/components/webhookdatarepresentativeupdated.d.ts +31 -0
  110. package/models/components/webhookdatarepresentativeupdated.d.ts.map +1 -0
  111. package/models/components/webhookdatarepresentativeupdated.js +71 -0
  112. package/models/components/webhookdatarepresentativeupdated.js.map +1 -0
  113. package/models/components/webhookdatasweepcreated.d.ts +31 -0
  114. package/models/components/webhookdatasweepcreated.d.ts.map +1 -0
  115. package/models/components/webhookdatasweepcreated.js +71 -0
  116. package/models/components/webhookdatasweepcreated.js.map +1 -0
  117. package/models/components/webhookdatasweepupdated.d.ts +36 -0
  118. package/models/components/webhookdatasweepupdated.d.ts.map +1 -0
  119. package/models/components/webhookdatasweepupdated.js +76 -0
  120. package/models/components/webhookdatasweepupdated.js.map +1 -0
  121. package/models/components/webhookdataterminalapplicationcreated.d.ts +35 -0
  122. package/models/components/webhookdataterminalapplicationcreated.d.ts.map +1 -0
  123. package/models/components/webhookdataterminalapplicationcreated.js +72 -0
  124. package/models/components/webhookdataterminalapplicationcreated.js.map +1 -0
  125. package/models/components/webhookdataterminalapplicationupdated.d.ts +35 -0
  126. package/models/components/webhookdataterminalapplicationupdated.d.ts.map +1 -0
  127. package/models/components/webhookdataterminalapplicationupdated.js +72 -0
  128. package/models/components/webhookdataterminalapplicationupdated.js.map +1 -0
  129. package/models/components/webhookdatatransfercreated.d.ts +40 -0
  130. package/models/components/webhookdatatransfercreated.d.ts.map +1 -0
  131. package/models/components/webhookdatatransfercreated.js +74 -0
  132. package/models/components/webhookdatatransfercreated.js.map +1 -0
  133. package/models/components/webhookdatatransferupdated.d.ts +51 -0
  134. package/models/components/webhookdatatransferupdated.d.ts.map +1 -0
  135. package/models/components/webhookdatatransferupdated.js +79 -0
  136. package/models/components/webhookdatatransferupdated.js.map +1 -0
  137. package/models/components/webhookdatawallettransactionupdated.d.ts +42 -0
  138. package/models/components/webhookdatawallettransactionupdated.d.ts.map +1 -0
  139. package/models/components/webhookdatawallettransactionupdated.js +79 -0
  140. package/models/components/webhookdatawallettransactionupdated.js.map +1 -0
  141. package/models/components/webhookevent.d.ts +49 -0
  142. package/models/components/webhookevent.d.ts.map +1 -0
  143. package/models/components/webhookevent.js +77 -0
  144. package/models/components/webhookevent.js.map +1 -0
  145. package/models/components/webhookeventtype.d.ts +115 -0
  146. package/models/components/webhookeventtype.d.ts.map +1 -0
  147. package/models/components/webhookeventtype.js +90 -0
  148. package/models/components/webhookeventtype.js.map +1 -0
  149. package/models/components/webhooktransferpaymentmethoddetails.d.ts +34 -0
  150. package/models/components/webhooktransferpaymentmethoddetails.d.ts.map +1 -0
  151. package/models/components/webhooktransferpaymentmethoddetails.js +71 -0
  152. package/models/components/webhooktransferpaymentmethoddetails.js.map +1 -0
  153. package/models/components/webhookwalletavailablebalance.d.ts +36 -0
  154. package/models/components/webhookwalletavailablebalance.d.ts.map +1 -0
  155. package/models/components/webhookwalletavailablebalance.js +73 -0
  156. package/models/components/webhookwalletavailablebalance.js.map +1 -0
  157. package/package.json +1 -1
  158. package/src/funcs/paymentLinksDisable.ts +3 -1
  159. package/src/lib/config.ts +3 -3
  160. package/src/lib/sdks.ts +11 -11
  161. package/src/mcp-server/mcp-server.ts +1 -1
  162. package/src/mcp-server/server.ts +1 -1
  163. package/src/models/components/index.ts +34 -0
  164. package/src/models/components/webhookdata.ts +349 -0
  165. package/src/models/components/webhookdataaccountcreated.ts +70 -0
  166. package/src/models/components/webhookdataaccountdeleted.ts +70 -0
  167. package/src/models/components/webhookdataaccountupdated.ts +70 -0
  168. package/src/models/components/webhookdatabalanceupdated.ts +70 -0
  169. package/src/models/components/webhookdatabankaccountcreated.ts +72 -0
  170. package/src/models/components/webhookdatabankaccountdeleted.ts +72 -0
  171. package/src/models/components/webhookdatabankaccountupdated.ts +106 -0
  172. package/src/models/components/webhookdatacancellationcreated.ts +81 -0
  173. package/src/models/components/webhookdatacancellationupdated.ts +81 -0
  174. package/src/models/components/webhookdatacapabilityrequested.ts +88 -0
  175. package/src/models/components/webhookdatacapabilityupdated.ts +100 -0
  176. package/src/models/components/webhookdatacardautoupdated.ts +82 -0
  177. package/src/models/components/webhookdatadisputecreated.ts +106 -0
  178. package/src/models/components/webhookdatadisputeupdated.ts +106 -0
  179. package/src/models/components/webhookdatanetworkidupdated.ts +89 -0
  180. package/src/models/components/webhookdatapaymentmethoddisabled.ts +76 -0
  181. package/src/models/components/webhookdatapaymentmethodenabled.ts +76 -0
  182. package/src/models/components/webhookdatarefundcreated.ts +74 -0
  183. package/src/models/components/webhookdatarefundupdated.ts +83 -0
  184. package/src/models/components/webhookdatarepresentativecreated.ts +72 -0
  185. package/src/models/components/webhookdatarepresentativedisabled.ts +73 -0
  186. package/src/models/components/webhookdatarepresentativeupdated.ts +72 -0
  187. package/src/models/components/webhookdatasweepcreated.ts +70 -0
  188. package/src/models/components/webhookdatasweepupdated.ts +83 -0
  189. package/src/models/components/webhookdataterminalapplicationcreated.ts +83 -0
  190. package/src/models/components/webhookdataterminalapplicationupdated.ts +83 -0
  191. package/src/models/components/webhookdatatransfercreated.ts +85 -0
  192. package/src/models/components/webhookdatatransferupdated.ts +105 -0
  193. package/src/models/components/webhookdatawallettransactionupdated.ts +101 -0
  194. package/src/models/components/webhookevent.ts +97 -0
  195. package/src/models/components/webhookeventtype.ts +66 -0
  196. package/src/models/components/webhooktransferpaymentmethoddetails.ts +78 -0
  197. package/src/models/components/webhookwalletavailablebalance.ts +79 -0
@@ -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
+ }
@@ -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 WebhookDataBankAccountDeleted = {
11
+ bankAccountID: string;
12
+ accountID: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const WebhookDataBankAccountDeleted$inboundSchema: z.ZodType<
17
+ WebhookDataBankAccountDeleted,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ bankAccountID: z.string(),
22
+ accountID: z.string(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type WebhookDataBankAccountDeleted$Outbound = {
27
+ bankAccountID: string;
28
+ accountID: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const WebhookDataBankAccountDeleted$outboundSchema: z.ZodType<
33
+ WebhookDataBankAccountDeleted$Outbound,
34
+ z.ZodTypeDef,
35
+ WebhookDataBankAccountDeleted
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 WebhookDataBankAccountDeleted$ {
46
+ /** @deprecated use `WebhookDataBankAccountDeleted$inboundSchema` instead. */
47
+ export const inboundSchema = WebhookDataBankAccountDeleted$inboundSchema;
48
+ /** @deprecated use `WebhookDataBankAccountDeleted$outboundSchema` instead. */
49
+ export const outboundSchema = WebhookDataBankAccountDeleted$outboundSchema;
50
+ /** @deprecated use `WebhookDataBankAccountDeleted$Outbound` instead. */
51
+ export type Outbound = WebhookDataBankAccountDeleted$Outbound;
52
+ }
53
+
54
+ export function webhookDataBankAccountDeletedToJSON(
55
+ webhookDataBankAccountDeleted: WebhookDataBankAccountDeleted,
56
+ ): string {
57
+ return JSON.stringify(
58
+ WebhookDataBankAccountDeleted$outboundSchema.parse(
59
+ webhookDataBankAccountDeleted,
60
+ ),
61
+ );
62
+ }
63
+
64
+ export function webhookDataBankAccountDeletedFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<WebhookDataBankAccountDeleted, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => WebhookDataBankAccountDeleted$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'WebhookDataBankAccountDeleted' from JSON`,
71
+ );
72
+ }
@@ -0,0 +1,106 @@
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
+ BankAccountException,
11
+ BankAccountException$inboundSchema,
12
+ BankAccountException$Outbound,
13
+ BankAccountException$outboundSchema,
14
+ } from "./bankaccountexception.js";
15
+ import {
16
+ BankAccountStatus,
17
+ BankAccountStatus$inboundSchema,
18
+ BankAccountStatus$outboundSchema,
19
+ } from "./bankaccountstatus.js";
20
+ import {
21
+ BankAccountStatusReason,
22
+ BankAccountStatusReason$inboundSchema,
23
+ BankAccountStatusReason$outboundSchema,
24
+ } from "./bankaccountstatusreason.js";
25
+
26
+ export type WebhookDataBankAccountUpdated = {
27
+ bankAccountID: string;
28
+ accountID: string;
29
+ status: BankAccountStatus;
30
+ /**
31
+ * The reason the bank account status changed to the current value.
32
+ */
33
+ statusReason: BankAccountStatusReason;
34
+ /**
35
+ * Reason for, and details related to, an `errored` or `verificationFailed` bank account status.
36
+ */
37
+ exceptionDetails?: BankAccountException | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export const WebhookDataBankAccountUpdated$inboundSchema: z.ZodType<
42
+ WebhookDataBankAccountUpdated,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({
46
+ bankAccountID: z.string(),
47
+ accountID: z.string(),
48
+ status: BankAccountStatus$inboundSchema,
49
+ statusReason: BankAccountStatusReason$inboundSchema,
50
+ exceptionDetails: BankAccountException$inboundSchema.optional(),
51
+ });
52
+
53
+ /** @internal */
54
+ export type WebhookDataBankAccountUpdated$Outbound = {
55
+ bankAccountID: string;
56
+ accountID: string;
57
+ status: string;
58
+ statusReason: string;
59
+ exceptionDetails?: BankAccountException$Outbound | undefined;
60
+ };
61
+
62
+ /** @internal */
63
+ export const WebhookDataBankAccountUpdated$outboundSchema: z.ZodType<
64
+ WebhookDataBankAccountUpdated$Outbound,
65
+ z.ZodTypeDef,
66
+ WebhookDataBankAccountUpdated
67
+ > = z.object({
68
+ bankAccountID: z.string(),
69
+ accountID: z.string(),
70
+ status: BankAccountStatus$outboundSchema,
71
+ statusReason: BankAccountStatusReason$outboundSchema,
72
+ exceptionDetails: BankAccountException$outboundSchema.optional(),
73
+ });
74
+
75
+ /**
76
+ * @internal
77
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
78
+ */
79
+ export namespace WebhookDataBankAccountUpdated$ {
80
+ /** @deprecated use `WebhookDataBankAccountUpdated$inboundSchema` instead. */
81
+ export const inboundSchema = WebhookDataBankAccountUpdated$inboundSchema;
82
+ /** @deprecated use `WebhookDataBankAccountUpdated$outboundSchema` instead. */
83
+ export const outboundSchema = WebhookDataBankAccountUpdated$outboundSchema;
84
+ /** @deprecated use `WebhookDataBankAccountUpdated$Outbound` instead. */
85
+ export type Outbound = WebhookDataBankAccountUpdated$Outbound;
86
+ }
87
+
88
+ export function webhookDataBankAccountUpdatedToJSON(
89
+ webhookDataBankAccountUpdated: WebhookDataBankAccountUpdated,
90
+ ): string {
91
+ return JSON.stringify(
92
+ WebhookDataBankAccountUpdated$outboundSchema.parse(
93
+ webhookDataBankAccountUpdated,
94
+ ),
95
+ );
96
+ }
97
+
98
+ export function webhookDataBankAccountUpdatedFromJSON(
99
+ jsonString: string,
100
+ ): SafeParseResult<WebhookDataBankAccountUpdated, SDKValidationError> {
101
+ return safeParse(
102
+ jsonString,
103
+ (x) => WebhookDataBankAccountUpdated$inboundSchema.parse(JSON.parse(x)),
104
+ `Failed to parse 'WebhookDataBankAccountUpdated' from JSON`,
105
+ );
106
+ }
@@ -0,0 +1,81 @@
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
+ CancellationStatus,
11
+ CancellationStatus$inboundSchema,
12
+ CancellationStatus$outboundSchema,
13
+ } from "./cancellationstatus.js";
14
+
15
+ export type WebhookDataCancellationCreated = {
16
+ cancellationID: string;
17
+ transferID: string;
18
+ status: CancellationStatus;
19
+ };
20
+
21
+ /** @internal */
22
+ export const WebhookDataCancellationCreated$inboundSchema: z.ZodType<
23
+ WebhookDataCancellationCreated,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ cancellationID: z.string(),
28
+ transferID: z.string(),
29
+ status: CancellationStatus$inboundSchema,
30
+ });
31
+
32
+ /** @internal */
33
+ export type WebhookDataCancellationCreated$Outbound = {
34
+ cancellationID: string;
35
+ transferID: string;
36
+ status: string;
37
+ };
38
+
39
+ /** @internal */
40
+ export const WebhookDataCancellationCreated$outboundSchema: z.ZodType<
41
+ WebhookDataCancellationCreated$Outbound,
42
+ z.ZodTypeDef,
43
+ WebhookDataCancellationCreated
44
+ > = z.object({
45
+ cancellationID: z.string(),
46
+ transferID: z.string(),
47
+ status: CancellationStatus$outboundSchema,
48
+ });
49
+
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export namespace WebhookDataCancellationCreated$ {
55
+ /** @deprecated use `WebhookDataCancellationCreated$inboundSchema` instead. */
56
+ export const inboundSchema = WebhookDataCancellationCreated$inboundSchema;
57
+ /** @deprecated use `WebhookDataCancellationCreated$outboundSchema` instead. */
58
+ export const outboundSchema = WebhookDataCancellationCreated$outboundSchema;
59
+ /** @deprecated use `WebhookDataCancellationCreated$Outbound` instead. */
60
+ export type Outbound = WebhookDataCancellationCreated$Outbound;
61
+ }
62
+
63
+ export function webhookDataCancellationCreatedToJSON(
64
+ webhookDataCancellationCreated: WebhookDataCancellationCreated,
65
+ ): string {
66
+ return JSON.stringify(
67
+ WebhookDataCancellationCreated$outboundSchema.parse(
68
+ webhookDataCancellationCreated,
69
+ ),
70
+ );
71
+ }
72
+
73
+ export function webhookDataCancellationCreatedFromJSON(
74
+ jsonString: string,
75
+ ): SafeParseResult<WebhookDataCancellationCreated, SDKValidationError> {
76
+ return safeParse(
77
+ jsonString,
78
+ (x) => WebhookDataCancellationCreated$inboundSchema.parse(JSON.parse(x)),
79
+ `Failed to parse 'WebhookDataCancellationCreated' from JSON`,
80
+ );
81
+ }
@@ -0,0 +1,81 @@
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
+ CancellationStatus,
11
+ CancellationStatus$inboundSchema,
12
+ CancellationStatus$outboundSchema,
13
+ } from "./cancellationstatus.js";
14
+
15
+ export type WebhookDataCancellationUpdated = {
16
+ cancellationID: string;
17
+ transferID: string;
18
+ status: CancellationStatus;
19
+ };
20
+
21
+ /** @internal */
22
+ export const WebhookDataCancellationUpdated$inboundSchema: z.ZodType<
23
+ WebhookDataCancellationUpdated,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ cancellationID: z.string(),
28
+ transferID: z.string(),
29
+ status: CancellationStatus$inboundSchema,
30
+ });
31
+
32
+ /** @internal */
33
+ export type WebhookDataCancellationUpdated$Outbound = {
34
+ cancellationID: string;
35
+ transferID: string;
36
+ status: string;
37
+ };
38
+
39
+ /** @internal */
40
+ export const WebhookDataCancellationUpdated$outboundSchema: z.ZodType<
41
+ WebhookDataCancellationUpdated$Outbound,
42
+ z.ZodTypeDef,
43
+ WebhookDataCancellationUpdated
44
+ > = z.object({
45
+ cancellationID: z.string(),
46
+ transferID: z.string(),
47
+ status: CancellationStatus$outboundSchema,
48
+ });
49
+
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export namespace WebhookDataCancellationUpdated$ {
55
+ /** @deprecated use `WebhookDataCancellationUpdated$inboundSchema` instead. */
56
+ export const inboundSchema = WebhookDataCancellationUpdated$inboundSchema;
57
+ /** @deprecated use `WebhookDataCancellationUpdated$outboundSchema` instead. */
58
+ export const outboundSchema = WebhookDataCancellationUpdated$outboundSchema;
59
+ /** @deprecated use `WebhookDataCancellationUpdated$Outbound` instead. */
60
+ export type Outbound = WebhookDataCancellationUpdated$Outbound;
61
+ }
62
+
63
+ export function webhookDataCancellationUpdatedToJSON(
64
+ webhookDataCancellationUpdated: WebhookDataCancellationUpdated,
65
+ ): string {
66
+ return JSON.stringify(
67
+ WebhookDataCancellationUpdated$outboundSchema.parse(
68
+ webhookDataCancellationUpdated,
69
+ ),
70
+ );
71
+ }
72
+
73
+ export function webhookDataCancellationUpdatedFromJSON(
74
+ jsonString: string,
75
+ ): SafeParseResult<WebhookDataCancellationUpdated, SDKValidationError> {
76
+ return safeParse(
77
+ jsonString,
78
+ (x) => WebhookDataCancellationUpdated$inboundSchema.parse(JSON.parse(x)),
79
+ `Failed to parse 'WebhookDataCancellationUpdated' from JSON`,
80
+ );
81
+ }