@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,76 @@
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 WebhookDataPaymentMethodEnabled = {
11
+ accountID: string;
12
+ paymentMethodID: string;
13
+ sourceID: string;
14
+ };
15
+
16
+ /** @internal */
17
+ export const WebhookDataPaymentMethodEnabled$inboundSchema: z.ZodType<
18
+ WebhookDataPaymentMethodEnabled,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ accountID: z.string(),
23
+ paymentMethodID: z.string(),
24
+ sourceID: z.string(),
25
+ });
26
+
27
+ /** @internal */
28
+ export type WebhookDataPaymentMethodEnabled$Outbound = {
29
+ accountID: string;
30
+ paymentMethodID: string;
31
+ sourceID: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const WebhookDataPaymentMethodEnabled$outboundSchema: z.ZodType<
36
+ WebhookDataPaymentMethodEnabled$Outbound,
37
+ z.ZodTypeDef,
38
+ WebhookDataPaymentMethodEnabled
39
+ > = z.object({
40
+ accountID: z.string(),
41
+ paymentMethodID: z.string(),
42
+ sourceID: z.string(),
43
+ });
44
+
45
+ /**
46
+ * @internal
47
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
+ */
49
+ export namespace WebhookDataPaymentMethodEnabled$ {
50
+ /** @deprecated use `WebhookDataPaymentMethodEnabled$inboundSchema` instead. */
51
+ export const inboundSchema = WebhookDataPaymentMethodEnabled$inboundSchema;
52
+ /** @deprecated use `WebhookDataPaymentMethodEnabled$outboundSchema` instead. */
53
+ export const outboundSchema = WebhookDataPaymentMethodEnabled$outboundSchema;
54
+ /** @deprecated use `WebhookDataPaymentMethodEnabled$Outbound` instead. */
55
+ export type Outbound = WebhookDataPaymentMethodEnabled$Outbound;
56
+ }
57
+
58
+ export function webhookDataPaymentMethodEnabledToJSON(
59
+ webhookDataPaymentMethodEnabled: WebhookDataPaymentMethodEnabled,
60
+ ): string {
61
+ return JSON.stringify(
62
+ WebhookDataPaymentMethodEnabled$outboundSchema.parse(
63
+ webhookDataPaymentMethodEnabled,
64
+ ),
65
+ );
66
+ }
67
+
68
+ export function webhookDataPaymentMethodEnabledFromJSON(
69
+ jsonString: string,
70
+ ): SafeParseResult<WebhookDataPaymentMethodEnabled, SDKValidationError> {
71
+ return safeParse(
72
+ jsonString,
73
+ (x) => WebhookDataPaymentMethodEnabled$inboundSchema.parse(JSON.parse(x)),
74
+ `Failed to parse 'WebhookDataPaymentMethodEnabled' from JSON`,
75
+ );
76
+ }
@@ -0,0 +1,74 @@
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 WebhookDataRefundCreated = {
11
+ accountID: string;
12
+ transferID: string;
13
+ refundID: string;
14
+ };
15
+
16
+ /** @internal */
17
+ export const WebhookDataRefundCreated$inboundSchema: z.ZodType<
18
+ WebhookDataRefundCreated,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ accountID: z.string(),
23
+ transferID: z.string(),
24
+ refundID: z.string(),
25
+ });
26
+
27
+ /** @internal */
28
+ export type WebhookDataRefundCreated$Outbound = {
29
+ accountID: string;
30
+ transferID: string;
31
+ refundID: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const WebhookDataRefundCreated$outboundSchema: z.ZodType<
36
+ WebhookDataRefundCreated$Outbound,
37
+ z.ZodTypeDef,
38
+ WebhookDataRefundCreated
39
+ > = z.object({
40
+ accountID: z.string(),
41
+ transferID: z.string(),
42
+ refundID: z.string(),
43
+ });
44
+
45
+ /**
46
+ * @internal
47
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
+ */
49
+ export namespace WebhookDataRefundCreated$ {
50
+ /** @deprecated use `WebhookDataRefundCreated$inboundSchema` instead. */
51
+ export const inboundSchema = WebhookDataRefundCreated$inboundSchema;
52
+ /** @deprecated use `WebhookDataRefundCreated$outboundSchema` instead. */
53
+ export const outboundSchema = WebhookDataRefundCreated$outboundSchema;
54
+ /** @deprecated use `WebhookDataRefundCreated$Outbound` instead. */
55
+ export type Outbound = WebhookDataRefundCreated$Outbound;
56
+ }
57
+
58
+ export function webhookDataRefundCreatedToJSON(
59
+ webhookDataRefundCreated: WebhookDataRefundCreated,
60
+ ): string {
61
+ return JSON.stringify(
62
+ WebhookDataRefundCreated$outboundSchema.parse(webhookDataRefundCreated),
63
+ );
64
+ }
65
+
66
+ export function webhookDataRefundCreatedFromJSON(
67
+ jsonString: string,
68
+ ): SafeParseResult<WebhookDataRefundCreated, SDKValidationError> {
69
+ return safeParse(
70
+ jsonString,
71
+ (x) => WebhookDataRefundCreated$inboundSchema.parse(JSON.parse(x)),
72
+ `Failed to parse 'WebhookDataRefundCreated' from JSON`,
73
+ );
74
+ }
@@ -0,0 +1,83 @@
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
+ RefundStatus,
11
+ RefundStatus$inboundSchema,
12
+ RefundStatus$outboundSchema,
13
+ } from "./refundstatus.js";
14
+
15
+ export type WebhookDataRefundUpdated = {
16
+ accountID: string;
17
+ transferID: string;
18
+ refundID: string;
19
+ status: RefundStatus;
20
+ };
21
+
22
+ /** @internal */
23
+ export const WebhookDataRefundUpdated$inboundSchema: z.ZodType<
24
+ WebhookDataRefundUpdated,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ accountID: z.string(),
29
+ transferID: z.string(),
30
+ refundID: z.string(),
31
+ status: RefundStatus$inboundSchema,
32
+ });
33
+
34
+ /** @internal */
35
+ export type WebhookDataRefundUpdated$Outbound = {
36
+ accountID: string;
37
+ transferID: string;
38
+ refundID: string;
39
+ status: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export const WebhookDataRefundUpdated$outboundSchema: z.ZodType<
44
+ WebhookDataRefundUpdated$Outbound,
45
+ z.ZodTypeDef,
46
+ WebhookDataRefundUpdated
47
+ > = z.object({
48
+ accountID: z.string(),
49
+ transferID: z.string(),
50
+ refundID: z.string(),
51
+ status: RefundStatus$outboundSchema,
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace WebhookDataRefundUpdated$ {
59
+ /** @deprecated use `WebhookDataRefundUpdated$inboundSchema` instead. */
60
+ export const inboundSchema = WebhookDataRefundUpdated$inboundSchema;
61
+ /** @deprecated use `WebhookDataRefundUpdated$outboundSchema` instead. */
62
+ export const outboundSchema = WebhookDataRefundUpdated$outboundSchema;
63
+ /** @deprecated use `WebhookDataRefundUpdated$Outbound` instead. */
64
+ export type Outbound = WebhookDataRefundUpdated$Outbound;
65
+ }
66
+
67
+ export function webhookDataRefundUpdatedToJSON(
68
+ webhookDataRefundUpdated: WebhookDataRefundUpdated,
69
+ ): string {
70
+ return JSON.stringify(
71
+ WebhookDataRefundUpdated$outboundSchema.parse(webhookDataRefundUpdated),
72
+ );
73
+ }
74
+
75
+ export function webhookDataRefundUpdatedFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<WebhookDataRefundUpdated, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => WebhookDataRefundUpdated$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'WebhookDataRefundUpdated' from JSON`,
82
+ );
83
+ }
@@ -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 WebhookDataRepresentativeCreated = {
11
+ accountID: string;
12
+ representativeID: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const WebhookDataRepresentativeCreated$inboundSchema: z.ZodType<
17
+ WebhookDataRepresentativeCreated,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ accountID: z.string(),
22
+ representativeID: z.string(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type WebhookDataRepresentativeCreated$Outbound = {
27
+ accountID: string;
28
+ representativeID: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const WebhookDataRepresentativeCreated$outboundSchema: z.ZodType<
33
+ WebhookDataRepresentativeCreated$Outbound,
34
+ z.ZodTypeDef,
35
+ WebhookDataRepresentativeCreated
36
+ > = z.object({
37
+ accountID: z.string(),
38
+ representativeID: 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 WebhookDataRepresentativeCreated$ {
46
+ /** @deprecated use `WebhookDataRepresentativeCreated$inboundSchema` instead. */
47
+ export const inboundSchema = WebhookDataRepresentativeCreated$inboundSchema;
48
+ /** @deprecated use `WebhookDataRepresentativeCreated$outboundSchema` instead. */
49
+ export const outboundSchema = WebhookDataRepresentativeCreated$outboundSchema;
50
+ /** @deprecated use `WebhookDataRepresentativeCreated$Outbound` instead. */
51
+ export type Outbound = WebhookDataRepresentativeCreated$Outbound;
52
+ }
53
+
54
+ export function webhookDataRepresentativeCreatedToJSON(
55
+ webhookDataRepresentativeCreated: WebhookDataRepresentativeCreated,
56
+ ): string {
57
+ return JSON.stringify(
58
+ WebhookDataRepresentativeCreated$outboundSchema.parse(
59
+ webhookDataRepresentativeCreated,
60
+ ),
61
+ );
62
+ }
63
+
64
+ export function webhookDataRepresentativeCreatedFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<WebhookDataRepresentativeCreated, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => WebhookDataRepresentativeCreated$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'WebhookDataRepresentativeCreated' from JSON`,
71
+ );
72
+ }
@@ -0,0 +1,73 @@
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 WebhookDataRepresentativeDisabled = {
11
+ accountID: string;
12
+ representativeID: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const WebhookDataRepresentativeDisabled$inboundSchema: z.ZodType<
17
+ WebhookDataRepresentativeDisabled,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ accountID: z.string(),
22
+ representativeID: z.string(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type WebhookDataRepresentativeDisabled$Outbound = {
27
+ accountID: string;
28
+ representativeID: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const WebhookDataRepresentativeDisabled$outboundSchema: z.ZodType<
33
+ WebhookDataRepresentativeDisabled$Outbound,
34
+ z.ZodTypeDef,
35
+ WebhookDataRepresentativeDisabled
36
+ > = z.object({
37
+ accountID: z.string(),
38
+ representativeID: 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 WebhookDataRepresentativeDisabled$ {
46
+ /** @deprecated use `WebhookDataRepresentativeDisabled$inboundSchema` instead. */
47
+ export const inboundSchema = WebhookDataRepresentativeDisabled$inboundSchema;
48
+ /** @deprecated use `WebhookDataRepresentativeDisabled$outboundSchema` instead. */
49
+ export const outboundSchema =
50
+ WebhookDataRepresentativeDisabled$outboundSchema;
51
+ /** @deprecated use `WebhookDataRepresentativeDisabled$Outbound` instead. */
52
+ export type Outbound = WebhookDataRepresentativeDisabled$Outbound;
53
+ }
54
+
55
+ export function webhookDataRepresentativeDisabledToJSON(
56
+ webhookDataRepresentativeDisabled: WebhookDataRepresentativeDisabled,
57
+ ): string {
58
+ return JSON.stringify(
59
+ WebhookDataRepresentativeDisabled$outboundSchema.parse(
60
+ webhookDataRepresentativeDisabled,
61
+ ),
62
+ );
63
+ }
64
+
65
+ export function webhookDataRepresentativeDisabledFromJSON(
66
+ jsonString: string,
67
+ ): SafeParseResult<WebhookDataRepresentativeDisabled, SDKValidationError> {
68
+ return safeParse(
69
+ jsonString,
70
+ (x) => WebhookDataRepresentativeDisabled$inboundSchema.parse(JSON.parse(x)),
71
+ `Failed to parse 'WebhookDataRepresentativeDisabled' from JSON`,
72
+ );
73
+ }
@@ -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 WebhookDataRepresentativeUpdated = {
11
+ accountID: string;
12
+ representativeID: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const WebhookDataRepresentativeUpdated$inboundSchema: z.ZodType<
17
+ WebhookDataRepresentativeUpdated,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ accountID: z.string(),
22
+ representativeID: z.string(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type WebhookDataRepresentativeUpdated$Outbound = {
27
+ accountID: string;
28
+ representativeID: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const WebhookDataRepresentativeUpdated$outboundSchema: z.ZodType<
33
+ WebhookDataRepresentativeUpdated$Outbound,
34
+ z.ZodTypeDef,
35
+ WebhookDataRepresentativeUpdated
36
+ > = z.object({
37
+ accountID: z.string(),
38
+ representativeID: 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 WebhookDataRepresentativeUpdated$ {
46
+ /** @deprecated use `WebhookDataRepresentativeUpdated$inboundSchema` instead. */
47
+ export const inboundSchema = WebhookDataRepresentativeUpdated$inboundSchema;
48
+ /** @deprecated use `WebhookDataRepresentativeUpdated$outboundSchema` instead. */
49
+ export const outboundSchema = WebhookDataRepresentativeUpdated$outboundSchema;
50
+ /** @deprecated use `WebhookDataRepresentativeUpdated$Outbound` instead. */
51
+ export type Outbound = WebhookDataRepresentativeUpdated$Outbound;
52
+ }
53
+
54
+ export function webhookDataRepresentativeUpdatedToJSON(
55
+ webhookDataRepresentativeUpdated: WebhookDataRepresentativeUpdated,
56
+ ): string {
57
+ return JSON.stringify(
58
+ WebhookDataRepresentativeUpdated$outboundSchema.parse(
59
+ webhookDataRepresentativeUpdated,
60
+ ),
61
+ );
62
+ }
63
+
64
+ export function webhookDataRepresentativeUpdatedFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<WebhookDataRepresentativeUpdated, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => WebhookDataRepresentativeUpdated$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'WebhookDataRepresentativeUpdated' from JSON`,
71
+ );
72
+ }
@@ -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 WebhookDataSweepCreated = {
11
+ walletID: string;
12
+ sweepID: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const WebhookDataSweepCreated$inboundSchema: z.ZodType<
17
+ WebhookDataSweepCreated,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ walletID: z.string(),
22
+ sweepID: z.string(),
23
+ });
24
+
25
+ /** @internal */
26
+ export type WebhookDataSweepCreated$Outbound = {
27
+ walletID: string;
28
+ sweepID: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const WebhookDataSweepCreated$outboundSchema: z.ZodType<
33
+ WebhookDataSweepCreated$Outbound,
34
+ z.ZodTypeDef,
35
+ WebhookDataSweepCreated
36
+ > = z.object({
37
+ walletID: z.string(),
38
+ sweepID: 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 WebhookDataSweepCreated$ {
46
+ /** @deprecated use `WebhookDataSweepCreated$inboundSchema` instead. */
47
+ export const inboundSchema = WebhookDataSweepCreated$inboundSchema;
48
+ /** @deprecated use `WebhookDataSweepCreated$outboundSchema` instead. */
49
+ export const outboundSchema = WebhookDataSweepCreated$outboundSchema;
50
+ /** @deprecated use `WebhookDataSweepCreated$Outbound` instead. */
51
+ export type Outbound = WebhookDataSweepCreated$Outbound;
52
+ }
53
+
54
+ export function webhookDataSweepCreatedToJSON(
55
+ webhookDataSweepCreated: WebhookDataSweepCreated,
56
+ ): string {
57
+ return JSON.stringify(
58
+ WebhookDataSweepCreated$outboundSchema.parse(webhookDataSweepCreated),
59
+ );
60
+ }
61
+
62
+ export function webhookDataSweepCreatedFromJSON(
63
+ jsonString: string,
64
+ ): SafeParseResult<WebhookDataSweepCreated, SDKValidationError> {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) => WebhookDataSweepCreated$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'WebhookDataSweepCreated' from JSON`,
69
+ );
70
+ }
@@ -0,0 +1,83 @@
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
+ SweepStatus,
11
+ SweepStatus$inboundSchema,
12
+ SweepStatus$outboundSchema,
13
+ } from "./sweepstatus.js";
14
+
15
+ export type WebhookDataSweepUpdated = {
16
+ walletID: string;
17
+ sweepID: string;
18
+ transferID?: string | undefined;
19
+ status: SweepStatus;
20
+ };
21
+
22
+ /** @internal */
23
+ export const WebhookDataSweepUpdated$inboundSchema: z.ZodType<
24
+ WebhookDataSweepUpdated,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ walletID: z.string(),
29
+ sweepID: z.string(),
30
+ transferID: z.string().optional(),
31
+ status: SweepStatus$inboundSchema,
32
+ });
33
+
34
+ /** @internal */
35
+ export type WebhookDataSweepUpdated$Outbound = {
36
+ walletID: string;
37
+ sweepID: string;
38
+ transferID?: string | undefined;
39
+ status: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export const WebhookDataSweepUpdated$outboundSchema: z.ZodType<
44
+ WebhookDataSweepUpdated$Outbound,
45
+ z.ZodTypeDef,
46
+ WebhookDataSweepUpdated
47
+ > = z.object({
48
+ walletID: z.string(),
49
+ sweepID: z.string(),
50
+ transferID: z.string().optional(),
51
+ status: SweepStatus$outboundSchema,
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace WebhookDataSweepUpdated$ {
59
+ /** @deprecated use `WebhookDataSweepUpdated$inboundSchema` instead. */
60
+ export const inboundSchema = WebhookDataSweepUpdated$inboundSchema;
61
+ /** @deprecated use `WebhookDataSweepUpdated$outboundSchema` instead. */
62
+ export const outboundSchema = WebhookDataSweepUpdated$outboundSchema;
63
+ /** @deprecated use `WebhookDataSweepUpdated$Outbound` instead. */
64
+ export type Outbound = WebhookDataSweepUpdated$Outbound;
65
+ }
66
+
67
+ export function webhookDataSweepUpdatedToJSON(
68
+ webhookDataSweepUpdated: WebhookDataSweepUpdated,
69
+ ): string {
70
+ return JSON.stringify(
71
+ WebhookDataSweepUpdated$outboundSchema.parse(webhookDataSweepUpdated),
72
+ );
73
+ }
74
+
75
+ export function webhookDataSweepUpdatedFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<WebhookDataSweepUpdated, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => WebhookDataSweepUpdated$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'WebhookDataSweepUpdated' from JSON`,
82
+ );
83
+ }
@@ -0,0 +1,83 @@
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
+ TerminalApplicationStatus,
11
+ TerminalApplicationStatus$inboundSchema,
12
+ TerminalApplicationStatus$outboundSchema,
13
+ } from "./terminalapplicationstatus.js";
14
+
15
+ export type WebhookDataTerminalApplicationCreated = {
16
+ terminalApplicationID: string;
17
+ /**
18
+ * Status of the terminal application.
19
+ */
20
+ status: TerminalApplicationStatus;
21
+ };
22
+
23
+ /** @internal */
24
+ export const WebhookDataTerminalApplicationCreated$inboundSchema: z.ZodType<
25
+ WebhookDataTerminalApplicationCreated,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ terminalApplicationID: z.string(),
30
+ status: TerminalApplicationStatus$inboundSchema,
31
+ });
32
+
33
+ /** @internal */
34
+ export type WebhookDataTerminalApplicationCreated$Outbound = {
35
+ terminalApplicationID: string;
36
+ status: string;
37
+ };
38
+
39
+ /** @internal */
40
+ export const WebhookDataTerminalApplicationCreated$outboundSchema: z.ZodType<
41
+ WebhookDataTerminalApplicationCreated$Outbound,
42
+ z.ZodTypeDef,
43
+ WebhookDataTerminalApplicationCreated
44
+ > = z.object({
45
+ terminalApplicationID: z.string(),
46
+ status: TerminalApplicationStatus$outboundSchema,
47
+ });
48
+
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ export namespace WebhookDataTerminalApplicationCreated$ {
54
+ /** @deprecated use `WebhookDataTerminalApplicationCreated$inboundSchema` instead. */
55
+ export const inboundSchema =
56
+ WebhookDataTerminalApplicationCreated$inboundSchema;
57
+ /** @deprecated use `WebhookDataTerminalApplicationCreated$outboundSchema` instead. */
58
+ export const outboundSchema =
59
+ WebhookDataTerminalApplicationCreated$outboundSchema;
60
+ /** @deprecated use `WebhookDataTerminalApplicationCreated$Outbound` instead. */
61
+ export type Outbound = WebhookDataTerminalApplicationCreated$Outbound;
62
+ }
63
+
64
+ export function webhookDataTerminalApplicationCreatedToJSON(
65
+ webhookDataTerminalApplicationCreated: WebhookDataTerminalApplicationCreated,
66
+ ): string {
67
+ return JSON.stringify(
68
+ WebhookDataTerminalApplicationCreated$outboundSchema.parse(
69
+ webhookDataTerminalApplicationCreated,
70
+ ),
71
+ );
72
+ }
73
+
74
+ export function webhookDataTerminalApplicationCreatedFromJSON(
75
+ jsonString: string,
76
+ ): SafeParseResult<WebhookDataTerminalApplicationCreated, SDKValidationError> {
77
+ return safeParse(
78
+ jsonString,
79
+ (x) =>
80
+ WebhookDataTerminalApplicationCreated$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'WebhookDataTerminalApplicationCreated' from JSON`,
82
+ );
83
+ }