@moovio/sdk 0.12.2 → 0.12.4

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 (74) hide show
  1. package/bin/mcp-server.js +71 -50
  2. package/bin/mcp-server.js.map +18 -18
  3. package/funcs/transfersList.js +1 -1
  4. package/funcs/transfersList.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/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/components/bankaccountexception.d.ts +4 -4
  11. package/models/components/bankaccountexception.d.ts.map +1 -1
  12. package/models/components/bankaccountexception.js +4 -4
  13. package/models/components/bankaccountexception.js.map +1 -1
  14. package/models/components/createdtransfer.d.ts +2 -0
  15. package/models/components/createdtransfer.d.ts.map +1 -1
  16. package/models/components/createdtransfer.js +2 -0
  17. package/models/components/createdtransfer.js.map +1 -1
  18. package/models/components/index.d.ts +1 -1
  19. package/models/components/index.d.ts.map +1 -1
  20. package/models/components/index.js +1 -1
  21. package/models/components/index.js.map +1 -1
  22. package/models/components/transfer.d.ts +2 -2
  23. package/models/components/transfer.d.ts.map +1 -1
  24. package/models/components/transfer.js +2 -2
  25. package/models/components/transfer.js.map +1 -1
  26. package/models/components/webhookdatatransfercreated.d.ts +2 -5
  27. package/models/components/webhookdatatransfercreated.d.ts.map +1 -1
  28. package/models/components/webhookdatatransfercreated.js +3 -3
  29. package/models/components/webhookdatatransfercreated.js.map +1 -1
  30. package/models/components/webhookdatatransferstatus.d.ts +94 -0
  31. package/models/components/webhookdatatransferstatus.d.ts.map +1 -0
  32. package/models/components/webhookdatatransferstatus.js +82 -0
  33. package/models/components/webhookdatatransferstatus.js.map +1 -0
  34. package/models/components/webhookdatatransferupdated.d.ts +2 -5
  35. package/models/components/webhookdatatransferupdated.d.ts.map +1 -1
  36. package/models/components/webhookdatatransferupdated.js +3 -3
  37. package/models/components/webhookdatatransferupdated.js.map +1 -1
  38. package/models/components/webhookdatawallettransactionupdated.d.ts +3 -6
  39. package/models/components/webhookdatawallettransactionupdated.d.ts.map +1 -1
  40. package/models/components/webhookdatawallettransactionupdated.js +3 -3
  41. package/models/components/webhookdatawallettransactionupdated.js.map +1 -1
  42. package/models/components/webhookeventtype.d.ts +3 -0
  43. package/models/components/webhookeventtype.d.ts.map +1 -1
  44. package/models/components/webhookeventtype.js +1 -0
  45. package/models/components/webhookeventtype.js.map +1 -1
  46. package/models/errors/transfer.d.ts +3 -3
  47. package/models/errors/transfer.d.ts.map +1 -1
  48. package/models/errors/transfer.js +4 -4
  49. package/models/errors/transfer.js.map +1 -1
  50. package/models/operations/listtransfers.d.ts +3 -3
  51. package/models/operations/listtransfers.d.ts.map +1 -1
  52. package/models/operations/listtransfers.js +2 -2
  53. package/models/operations/listtransfers.js.map +1 -1
  54. package/package.json +1 -1
  55. package/src/funcs/transfersList.ts +1 -1
  56. package/src/lib/config.ts +3 -3
  57. package/src/mcp-server/mcp-server.ts +1 -1
  58. package/src/mcp-server/server.ts +1 -1
  59. package/src/models/components/bankaccountexception.ts +8 -8
  60. package/src/models/components/createdtransfer.ts +4 -0
  61. package/src/models/components/index.ts +1 -1
  62. package/src/models/components/transfer.ts +4 -4
  63. package/src/models/components/webhookdatatransfercreated.ts +7 -10
  64. package/src/models/components/webhookdatatransferstatus.ts +57 -0
  65. package/src/models/components/webhookdatatransferupdated.ts +7 -10
  66. package/src/models/components/webhookdatawallettransactionupdated.ts +10 -13
  67. package/src/models/components/webhookeventtype.ts +1 -0
  68. package/src/models/errors/transfer.ts +6 -6
  69. package/src/models/operations/listtransfers.ts +5 -5
  70. package/models/components/webhookwalletavailablebalance.d.ts +0 -36
  71. package/models/components/webhookwalletavailablebalance.d.ts.map +0 -1
  72. package/models/components/webhookwalletavailablebalance.js +0 -73
  73. package/models/components/webhookwalletavailablebalance.js.map +0 -1
  74. package/src/models/components/webhookwalletavailablebalance.ts +0 -79
@@ -400,11 +400,11 @@ export * from "./webhookdatasweepupdated.js";
400
400
  export * from "./webhookdataterminalapplicationcreated.js";
401
401
  export * from "./webhookdataterminalapplicationupdated.js";
402
402
  export * from "./webhookdatatransfercreated.js";
403
+ export * from "./webhookdatatransferstatus.js";
403
404
  export * from "./webhookdatatransferupdated.js";
404
405
  export * from "./webhookdatawallettransactionupdated.js";
405
406
  export * from "./webhookevent.js";
406
407
  export * from "./webhookeventtype.js";
407
408
  export * from "./webhooktransferpaymentmethoddetails.js";
408
- export * from "./webhookwalletavailablebalance.js";
409
409
  export * from "./wireinstitution.js";
410
410
  export * from "./wireservices.js";
@@ -126,7 +126,7 @@ export type Transfer = {
126
126
  sweepID?: string | undefined;
127
127
  scheduleID?: string | undefined;
128
128
  occurrenceID?: string | undefined;
129
- paymentLinkID?: string | undefined;
129
+ paymentLinkCode?: string | undefined;
130
130
  /**
131
131
  * Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
132
132
  */
@@ -164,7 +164,7 @@ export const Transfer$inboundSchema: z.ZodType<
164
164
  sweepID: z.string().optional(),
165
165
  scheduleID: z.string().optional(),
166
166
  occurrenceID: z.string().optional(),
167
- paymentLinkID: z.string().optional(),
167
+ paymentLinkCode: z.string().optional(),
168
168
  salesTaxAmount: Amount$inboundSchema.optional(),
169
169
  });
170
170
 
@@ -194,7 +194,7 @@ export type Transfer$Outbound = {
194
194
  sweepID?: string | undefined;
195
195
  scheduleID?: string | undefined;
196
196
  occurrenceID?: string | undefined;
197
- paymentLinkID?: string | undefined;
197
+ paymentLinkCode?: string | undefined;
198
198
  salesTaxAmount?: Amount$Outbound | undefined;
199
199
  };
200
200
 
@@ -228,7 +228,7 @@ export const Transfer$outboundSchema: z.ZodType<
228
228
  sweepID: z.string().optional(),
229
229
  scheduleID: z.string().optional(),
230
230
  occurrenceID: z.string().optional(),
231
- paymentLinkID: z.string().optional(),
231
+ paymentLinkCode: z.string().optional(),
232
232
  salesTaxAmount: Amount$outboundSchema.optional(),
233
233
  });
234
234
 
@@ -7,10 +7,10 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import {
10
- TransferStatus,
11
- TransferStatus$inboundSchema,
12
- TransferStatus$outboundSchema,
13
- } from "./transferstatus.js";
10
+ WebhookDataTransferStatus,
11
+ WebhookDataTransferStatus$inboundSchema,
12
+ WebhookDataTransferStatus$outboundSchema,
13
+ } from "./webhookdatatransferstatus.js";
14
14
 
15
15
  export type WebhookDataTransferCreated = {
16
16
  /**
@@ -18,10 +18,7 @@ export type WebhookDataTransferCreated = {
18
18
  */
19
19
  accountID: string;
20
20
  transferID: string;
21
- /**
22
- * Status of a transfer.
23
- */
24
- status: TransferStatus;
21
+ status: WebhookDataTransferStatus;
25
22
  };
26
23
 
27
24
  /** @internal */
@@ -32,7 +29,7 @@ export const WebhookDataTransferCreated$inboundSchema: z.ZodType<
32
29
  > = z.object({
33
30
  accountID: z.string(),
34
31
  transferID: z.string(),
35
- status: TransferStatus$inboundSchema,
32
+ status: WebhookDataTransferStatus$inboundSchema,
36
33
  });
37
34
 
38
35
  /** @internal */
@@ -50,7 +47,7 @@ export const WebhookDataTransferCreated$outboundSchema: z.ZodType<
50
47
  > = z.object({
51
48
  accountID: z.string(),
52
49
  transferID: z.string(),
53
- status: TransferStatus$outboundSchema,
50
+ status: WebhookDataTransferStatus$outboundSchema,
54
51
  });
55
52
 
56
53
  /**
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const WebhookDataTransferStatus = {
9
+ Created: "created",
10
+ Pending: "pending",
11
+ Completed: "completed",
12
+ Failed: "failed",
13
+ Reversed: "reversed",
14
+ Queued: "queued",
15
+ Canceled: "canceled",
16
+ SourceCompleted: "source.completed",
17
+ SourceCorrected: "source.corrected",
18
+ SourceInitiated: "source.initiated",
19
+ SourceReturned: "source.returned",
20
+ SourceOriginated: "source.originated",
21
+ SourceConfirmed: "source.confirmed",
22
+ SourceSettled: "source.settled",
23
+ SourceFailed: "source.failed",
24
+ SourceCanceled: "source.canceled",
25
+ DestinationCompleted: "destination.completed",
26
+ DestinationCorrected: "destination.corrected",
27
+ DestinationInitiated: "destination.initiated",
28
+ DestinationReturned: "destination.returned",
29
+ DestinationOriginated: "destination.originated",
30
+ DestinationConfirmed: "destination.confirmed",
31
+ DestinationFailed: "destination.failed",
32
+ DestinationAcceptedWithoutPosting: "destination.accepted-without-posting",
33
+ } as const;
34
+ export type WebhookDataTransferStatus = ClosedEnum<
35
+ typeof WebhookDataTransferStatus
36
+ >;
37
+
38
+ /** @internal */
39
+ export const WebhookDataTransferStatus$inboundSchema: z.ZodNativeEnum<
40
+ typeof WebhookDataTransferStatus
41
+ > = z.nativeEnum(WebhookDataTransferStatus);
42
+
43
+ /** @internal */
44
+ export const WebhookDataTransferStatus$outboundSchema: z.ZodNativeEnum<
45
+ typeof WebhookDataTransferStatus
46
+ > = WebhookDataTransferStatus$inboundSchema;
47
+
48
+ /**
49
+ * @internal
50
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
+ */
52
+ export namespace WebhookDataTransferStatus$ {
53
+ /** @deprecated use `WebhookDataTransferStatus$inboundSchema` instead. */
54
+ export const inboundSchema = WebhookDataTransferStatus$inboundSchema;
55
+ /** @deprecated use `WebhookDataTransferStatus$outboundSchema` instead. */
56
+ export const outboundSchema = WebhookDataTransferStatus$outboundSchema;
57
+ }
@@ -7,10 +7,10 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import {
10
- TransferStatus,
11
- TransferStatus$inboundSchema,
12
- TransferStatus$outboundSchema,
13
- } from "./transferstatus.js";
10
+ WebhookDataTransferStatus,
11
+ WebhookDataTransferStatus$inboundSchema,
12
+ WebhookDataTransferStatus$outboundSchema,
13
+ } from "./webhookdatatransferstatus.js";
14
14
  import {
15
15
  WebhookTransferPaymentMethodDetails,
16
16
  WebhookTransferPaymentMethodDetails$inboundSchema,
@@ -24,10 +24,7 @@ export type WebhookDataTransferUpdated = {
24
24
  */
25
25
  accountID: string;
26
26
  transferID: string;
27
- /**
28
- * Status of a transfer.
29
- */
30
- status: TransferStatus;
27
+ status: WebhookDataTransferStatus;
31
28
  /**
32
29
  * Payment method details for the source or destination of a transfer.
33
30
  */
@@ -46,7 +43,7 @@ export const WebhookDataTransferUpdated$inboundSchema: z.ZodType<
46
43
  > = z.object({
47
44
  accountID: z.string(),
48
45
  transferID: z.string(),
49
- status: TransferStatus$inboundSchema,
46
+ status: WebhookDataTransferStatus$inboundSchema,
50
47
  source: WebhookTransferPaymentMethodDetails$inboundSchema,
51
48
  destination: WebhookTransferPaymentMethodDetails$inboundSchema,
52
49
  });
@@ -68,7 +65,7 @@ export const WebhookDataTransferUpdated$outboundSchema: z.ZodType<
68
65
  > = z.object({
69
66
  accountID: z.string(),
70
67
  transferID: z.string(),
71
- status: TransferStatus$outboundSchema,
68
+ status: WebhookDataTransferStatus$outboundSchema,
72
69
  source: WebhookTransferPaymentMethodDetails$outboundSchema,
73
70
  destination: WebhookTransferPaymentMethodDetails$outboundSchema,
74
71
  });
@@ -6,27 +6,24 @@ import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ WalletAvailableBalance,
11
+ WalletAvailableBalance$inboundSchema,
12
+ WalletAvailableBalance$Outbound,
13
+ WalletAvailableBalance$outboundSchema,
14
+ } from "./walletavailablebalance.js";
9
15
  import {
10
16
  WalletTransactionStatus,
11
17
  WalletTransactionStatus$inboundSchema,
12
18
  WalletTransactionStatus$outboundSchema,
13
19
  } from "./wallettransactionstatus.js";
14
- import {
15
- WebhookWalletAvailableBalance,
16
- WebhookWalletAvailableBalance$inboundSchema,
17
- WebhookWalletAvailableBalance$Outbound,
18
- WebhookWalletAvailableBalance$outboundSchema,
19
- } from "./webhookwalletavailablebalance.js";
20
20
 
21
21
  export type WebhookDataWalletTransactionUpdated = {
22
22
  accountID: string;
23
23
  walletID: string;
24
24
  transactionID: string;
25
25
  status: WalletTransactionStatus;
26
- /**
27
- * The available balance of a wallet.
28
- */
29
- availableBalance?: WebhookWalletAvailableBalance | undefined;
26
+ availableBalance?: WalletAvailableBalance | undefined;
30
27
  };
31
28
 
32
29
  /** @internal */
@@ -39,7 +36,7 @@ export const WebhookDataWalletTransactionUpdated$inboundSchema: z.ZodType<
39
36
  walletID: z.string(),
40
37
  transactionID: z.string(),
41
38
  status: WalletTransactionStatus$inboundSchema,
42
- availableBalance: WebhookWalletAvailableBalance$inboundSchema.optional(),
39
+ availableBalance: WalletAvailableBalance$inboundSchema.optional(),
43
40
  });
44
41
 
45
42
  /** @internal */
@@ -48,7 +45,7 @@ export type WebhookDataWalletTransactionUpdated$Outbound = {
48
45
  walletID: string;
49
46
  transactionID: string;
50
47
  status: string;
51
- availableBalance?: WebhookWalletAvailableBalance$Outbound | undefined;
48
+ availableBalance?: WalletAvailableBalance$Outbound | undefined;
52
49
  };
53
50
 
54
51
  /** @internal */
@@ -61,7 +58,7 @@ export const WebhookDataWalletTransactionUpdated$outboundSchema: z.ZodType<
61
58
  walletID: z.string(),
62
59
  transactionID: z.string(),
63
60
  status: WalletTransactionStatus$outboundSchema,
64
- availableBalance: WebhookWalletAvailableBalance$outboundSchema.optional(),
61
+ availableBalance: WalletAvailableBalance$outboundSchema.optional(),
65
62
  });
66
63
 
67
64
  /**
@@ -9,6 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  * The type of event that occurred.
10
10
  */
11
11
  export const WebhookEventType = {
12
+ Wildcard: "*",
12
13
  AccountCreated: "account.created",
13
14
  AccountUpdated: "account.updated",
14
15
  AccountDeleted: "account.deleted",
@@ -61,7 +61,7 @@ export type TransferData = {
61
61
  sweepID?: string | undefined;
62
62
  scheduleID?: string | undefined;
63
63
  occurrenceID?: string | undefined;
64
- paymentLinkID?: string | undefined;
64
+ paymentLinkCode?: string | undefined;
65
65
  /**
66
66
  * Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
67
67
  */
@@ -123,7 +123,7 @@ export class Transfer extends MoovError {
123
123
  sweepID?: string | undefined;
124
124
  scheduleID?: string | undefined;
125
125
  occurrenceID?: string | undefined;
126
- paymentLinkID?: string | undefined;
126
+ paymentLinkCode?: string | undefined;
127
127
  /**
128
128
  * Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
129
129
  */
@@ -165,7 +165,7 @@ export class Transfer extends MoovError {
165
165
  if (err.sweepID != null) this.sweepID = err.sweepID;
166
166
  if (err.scheduleID != null) this.scheduleID = err.scheduleID;
167
167
  if (err.occurrenceID != null) this.occurrenceID = err.occurrenceID;
168
- if (err.paymentLinkID != null) this.paymentLinkID = err.paymentLinkID;
168
+ if (err.paymentLinkCode != null) this.paymentLinkCode = err.paymentLinkCode;
169
169
  if (err.salesTaxAmount != null) this.salesTaxAmount = err.salesTaxAmount;
170
170
 
171
171
  this.name = "Transfer";
@@ -203,7 +203,7 @@ export const Transfer$inboundSchema: z.ZodType<
203
203
  sweepID: z.string().optional(),
204
204
  scheduleID: z.string().optional(),
205
205
  occurrenceID: z.string().optional(),
206
- paymentLinkID: z.string().optional(),
206
+ paymentLinkCode: z.string().optional(),
207
207
  salesTaxAmount: components.Amount$inboundSchema.optional(),
208
208
  request$: z.instanceof(Request),
209
209
  response$: z.instanceof(Response),
@@ -243,7 +243,7 @@ export type Transfer$Outbound = {
243
243
  sweepID?: string | undefined;
244
244
  scheduleID?: string | undefined;
245
245
  occurrenceID?: string | undefined;
246
- paymentLinkID?: string | undefined;
246
+ paymentLinkCode?: string | undefined;
247
247
  salesTaxAmount?: components.Amount$Outbound | undefined;
248
248
  };
249
249
 
@@ -280,7 +280,7 @@ export const Transfer$outboundSchema: z.ZodType<
280
280
  sweepID: z.string().optional(),
281
281
  scheduleID: z.string().optional(),
282
282
  occurrenceID: z.string().optional(),
283
- paymentLinkID: z.string().optional(),
283
+ paymentLinkCode: z.string().optional(),
284
284
  salesTaxAmount: components.Amount$outboundSchema.optional(),
285
285
  }));
286
286
 
@@ -52,9 +52,9 @@ export type ListTransfersRequest = {
52
52
  */
53
53
  scheduleID?: string | undefined;
54
54
  /**
55
- * Optional ID to filter for transfers associated with the payment link.
55
+ * Optional code to filter for transfers associated with the payment link.
56
56
  */
57
- paymentLinkID?: string | undefined;
57
+ paymentLinkCode?: string | undefined;
58
58
  /**
59
59
  * Optional parameter to only return refunded transfers.
60
60
  */
@@ -150,7 +150,7 @@ export const ListTransfersRequest$inboundSchema: z.ZodType<
150
150
  .optional(),
151
151
  groupID: z.string().optional(),
152
152
  scheduleID: z.string().optional(),
153
- paymentLinkID: z.string().optional(),
153
+ paymentLinkCode: z.string().optional(),
154
154
  refunded: z.boolean().optional(),
155
155
  disputed: z.boolean().optional(),
156
156
  skip: z.number().int().optional(),
@@ -166,7 +166,7 @@ export type ListTransfersRequest$Outbound = {
166
166
  endDateTime?: string | undefined;
167
167
  groupID?: string | undefined;
168
168
  scheduleID?: string | undefined;
169
- paymentLinkID?: string | undefined;
169
+ paymentLinkCode?: string | undefined;
170
170
  refunded?: boolean | undefined;
171
171
  disputed?: boolean | undefined;
172
172
  skip?: number | undefined;
@@ -186,7 +186,7 @@ export const ListTransfersRequest$outboundSchema: z.ZodType<
186
186
  endDateTime: z.date().transform(v => v.toISOString()).optional(),
187
187
  groupID: z.string().optional(),
188
188
  scheduleID: z.string().optional(),
189
- paymentLinkID: z.string().optional(),
189
+ paymentLinkCode: z.string().optional(),
190
190
  refunded: z.boolean().optional(),
191
191
  disputed: z.boolean().optional(),
192
192
  skip: z.number().int().optional(),
@@ -1,36 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- /**
5
- * The available balance of a wallet.
6
- */
7
- export type WebhookWalletAvailableBalance = {
8
- currency: string;
9
- value: number;
10
- valueDecimal: string;
11
- };
12
- /** @internal */
13
- export declare const WebhookWalletAvailableBalance$inboundSchema: z.ZodType<WebhookWalletAvailableBalance, z.ZodTypeDef, unknown>;
14
- /** @internal */
15
- export type WebhookWalletAvailableBalance$Outbound = {
16
- currency: string;
17
- value: number;
18
- valueDecimal: string;
19
- };
20
- /** @internal */
21
- export declare const WebhookWalletAvailableBalance$outboundSchema: z.ZodType<WebhookWalletAvailableBalance$Outbound, z.ZodTypeDef, WebhookWalletAvailableBalance>;
22
- /**
23
- * @internal
24
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
- */
26
- export declare namespace WebhookWalletAvailableBalance$ {
27
- /** @deprecated use `WebhookWalletAvailableBalance$inboundSchema` instead. */
28
- const inboundSchema: z.ZodType<WebhookWalletAvailableBalance, z.ZodTypeDef, unknown>;
29
- /** @deprecated use `WebhookWalletAvailableBalance$outboundSchema` instead. */
30
- const outboundSchema: z.ZodType<WebhookWalletAvailableBalance$Outbound, z.ZodTypeDef, WebhookWalletAvailableBalance>;
31
- /** @deprecated use `WebhookWalletAvailableBalance$Outbound` instead. */
32
- type Outbound = WebhookWalletAvailableBalance$Outbound;
33
- }
34
- export declare function webhookWalletAvailableBalanceToJSON(webhookWalletAvailableBalance: WebhookWalletAvailableBalance): string;
35
- export declare function webhookWalletAvailableBalanceFromJSON(jsonString: string): SafeParseResult<WebhookWalletAvailableBalance, SDKValidationError>;
36
- //# sourceMappingURL=webhookwalletavailablebalance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhookwalletavailablebalance.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookwalletavailablebalance.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,6BAA6B,CAK7B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,8BAA8B,CAAC;IAC9C,6EAA6E;IACtE,MAAM,aAAa,iEAA8C,CAAC;IACzE,8EAA8E;IACvE,MAAM,cAAc,gGAA+C,CAAC;IAC3E,wEAAwE;IACxE,KAAY,QAAQ,GAAG,sCAAsC,CAAC;CAC/D;AAED,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR;AAED,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE"}
@@ -1,73 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.WebhookWalletAvailableBalance$ = exports.WebhookWalletAvailableBalance$outboundSchema = exports.WebhookWalletAvailableBalance$inboundSchema = void 0;
40
- exports.webhookWalletAvailableBalanceToJSON = webhookWalletAvailableBalanceToJSON;
41
- exports.webhookWalletAvailableBalanceFromJSON = webhookWalletAvailableBalanceFromJSON;
42
- const z = __importStar(require("zod"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- /** @internal */
45
- exports.WebhookWalletAvailableBalance$inboundSchema = z.object({
46
- currency: z.string(),
47
- value: z.number().int(),
48
- valueDecimal: z.string(),
49
- });
50
- /** @internal */
51
- exports.WebhookWalletAvailableBalance$outboundSchema = z.object({
52
- currency: z.string(),
53
- value: z.number().int(),
54
- valueDecimal: z.string(),
55
- });
56
- /**
57
- * @internal
58
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
- */
60
- var WebhookWalletAvailableBalance$;
61
- (function (WebhookWalletAvailableBalance$) {
62
- /** @deprecated use `WebhookWalletAvailableBalance$inboundSchema` instead. */
63
- WebhookWalletAvailableBalance$.inboundSchema = exports.WebhookWalletAvailableBalance$inboundSchema;
64
- /** @deprecated use `WebhookWalletAvailableBalance$outboundSchema` instead. */
65
- WebhookWalletAvailableBalance$.outboundSchema = exports.WebhookWalletAvailableBalance$outboundSchema;
66
- })(WebhookWalletAvailableBalance$ || (exports.WebhookWalletAvailableBalance$ = WebhookWalletAvailableBalance$ = {}));
67
- function webhookWalletAvailableBalanceToJSON(webhookWalletAvailableBalance) {
68
- return JSON.stringify(exports.WebhookWalletAvailableBalance$outboundSchema.parse(webhookWalletAvailableBalance));
69
- }
70
- function webhookWalletAvailableBalanceFromJSON(jsonString) {
71
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookWalletAvailableBalance$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookWalletAvailableBalance' from JSON`);
72
- }
73
- //# sourceMappingURL=webhookwalletavailablebalance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhookwalletavailablebalance.js","sourceRoot":"","sources":["../../src/models/components/webhookwalletavailablebalance.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DH,kFAQC;AAED,sFAQC;AA1ED,uCAAyB;AACzB,qDAAiD;AAajD,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,8BAA8B,CAO9C;AAPD,WAAiB,8BAA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAG7E,CAAC,EAPgB,8BAA8B,8CAA9B,8BAA8B,QAO9C;AAED,SAAgB,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,oDAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
@@ -1,79 +0,0 @@
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
- /**
11
- * The available balance of a wallet.
12
- */
13
- export type WebhookWalletAvailableBalance = {
14
- currency: string;
15
- value: number;
16
- valueDecimal: string;
17
- };
18
-
19
- /** @internal */
20
- export const WebhookWalletAvailableBalance$inboundSchema: z.ZodType<
21
- WebhookWalletAvailableBalance,
22
- z.ZodTypeDef,
23
- unknown
24
- > = z.object({
25
- currency: z.string(),
26
- value: z.number().int(),
27
- valueDecimal: z.string(),
28
- });
29
-
30
- /** @internal */
31
- export type WebhookWalletAvailableBalance$Outbound = {
32
- currency: string;
33
- value: number;
34
- valueDecimal: string;
35
- };
36
-
37
- /** @internal */
38
- export const WebhookWalletAvailableBalance$outboundSchema: z.ZodType<
39
- WebhookWalletAvailableBalance$Outbound,
40
- z.ZodTypeDef,
41
- WebhookWalletAvailableBalance
42
- > = z.object({
43
- currency: z.string(),
44
- value: z.number().int(),
45
- valueDecimal: z.string(),
46
- });
47
-
48
- /**
49
- * @internal
50
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
- */
52
- export namespace WebhookWalletAvailableBalance$ {
53
- /** @deprecated use `WebhookWalletAvailableBalance$inboundSchema` instead. */
54
- export const inboundSchema = WebhookWalletAvailableBalance$inboundSchema;
55
- /** @deprecated use `WebhookWalletAvailableBalance$outboundSchema` instead. */
56
- export const outboundSchema = WebhookWalletAvailableBalance$outboundSchema;
57
- /** @deprecated use `WebhookWalletAvailableBalance$Outbound` instead. */
58
- export type Outbound = WebhookWalletAvailableBalance$Outbound;
59
- }
60
-
61
- export function webhookWalletAvailableBalanceToJSON(
62
- webhookWalletAvailableBalance: WebhookWalletAvailableBalance,
63
- ): string {
64
- return JSON.stringify(
65
- WebhookWalletAvailableBalance$outboundSchema.parse(
66
- webhookWalletAvailableBalance,
67
- ),
68
- );
69
- }
70
-
71
- export function webhookWalletAvailableBalanceFromJSON(
72
- jsonString: string,
73
- ): SafeParseResult<WebhookWalletAvailableBalance, SDKValidationError> {
74
- return safeParse(
75
- jsonString,
76
- (x) => WebhookWalletAvailableBalance$inboundSchema.parse(JSON.parse(x)),
77
- `Failed to parse 'WebhookWalletAvailableBalance' from JSON`,
78
- );
79
- }