@moovio/sdk 0.12.3 → 0.12.5
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.
- package/README.md +54 -36
- package/bin/mcp-server.js +453 -202
- package/bin/mcp-server.js.map +31 -28
- package/docs/sdks/transfers/README.md +117 -2
- package/funcs/disputesUploadEvidenceFile.d.ts.map +1 -1
- package/funcs/disputesUploadEvidenceFile.js +5 -3
- package/funcs/disputesUploadEvidenceFile.js.map +1 -1
- package/funcs/filesUpload.d.ts.map +1 -1
- package/funcs/filesUpload.js +5 -3
- package/funcs/filesUpload.js.map +1 -1
- package/funcs/transfersGenerateOptions.d.ts +1 -1
- package/funcs/transfersGenerateOptions.js +1 -1
- package/funcs/transfersGenerateOptionsForAccount.d.ts +23 -0
- package/funcs/transfersGenerateOptionsForAccount.d.ts.map +1 -0
- package/funcs/transfersGenerateOptionsForAccount.js +133 -0
- package/funcs/transfersGenerateOptionsForAccount.js.map +1 -0
- package/funcs/transfersList.js +1 -1
- package/funcs/transfersList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/transfersGenerateOptions.js +1 -1
- package/mcp-server/tools/transfersGenerateOptions.js.map +1 -1
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts +8 -0
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts.map +1 -0
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js +70 -0
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js.map +1 -0
- package/models/components/createaccount.d.ts +4 -4
- package/models/components/createaccount.d.ts.map +1 -1
- package/models/components/createaccount.js +4 -4
- package/models/components/createaccount.js.map +1 -1
- package/models/components/createdtransfer.d.ts +2 -0
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js +2 -0
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createrefundresponse.d.ts +2 -2
- package/models/components/createrefundresponse.d.ts.map +1 -1
- package/models/components/createrefundresponse.js +2 -2
- package/models/components/createrefundresponse.js.map +1 -1
- package/models/components/index.d.ts +1 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -1
- package/models/components/index.js.map +1 -1
- package/models/components/transfer.d.ts +2 -2
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +2 -2
- package/models/components/transfer.js.map +1 -1
- package/models/components/webhookdata.d.ts +2 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +38 -38
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdatatransfercreated.d.ts +2 -5
- package/models/components/webhookdatatransfercreated.d.ts.map +1 -1
- package/models/components/webhookdatatransfercreated.js +3 -3
- package/models/components/webhookdatatransfercreated.js.map +1 -1
- package/models/components/webhookdatatransferstatus.d.ts +94 -0
- package/models/components/webhookdatatransferstatus.d.ts.map +1 -0
- package/models/components/webhookdatatransferstatus.js +82 -0
- package/models/components/webhookdatatransferstatus.js.map +1 -0
- package/models/components/webhookdatatransferupdated.d.ts +2 -5
- package/models/components/webhookdatatransferupdated.d.ts.map +1 -1
- package/models/components/webhookdatatransferupdated.js +3 -3
- package/models/components/webhookdatatransferupdated.js.map +1 -1
- package/models/components/webhookdatawallettransactionupdated.d.ts +3 -6
- package/models/components/webhookdatawallettransactionupdated.d.ts.map +1 -1
- package/models/components/webhookdatawallettransactionupdated.js +3 -3
- package/models/components/webhookdatawallettransactionupdated.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +3 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/transfer.d.ts +3 -3
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -4
- package/models/errors/transfer.js.map +1 -1
- package/models/operations/createtransfer.d.ts +4 -4
- package/models/operations/createtransfer.d.ts.map +1 -1
- package/models/operations/createtransfer.js +8 -8
- package/models/operations/createtransfer.js.map +1 -1
- package/models/operations/createtransferoptionsforaccount.d.ts +104 -0
- package/models/operations/createtransferoptionsforaccount.d.ts.map +1 -0
- package/models/operations/createtransferoptionsforaccount.js +155 -0
- package/models/operations/createtransferoptionsforaccount.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listtransfers.d.ts +3 -3
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +2 -2
- package/models/operations/listtransfers.js.map +1 -1
- package/package.json +1 -1
- package/sdk/transfers.d.ts +13 -1
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +16 -1
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/disputesUploadEvidenceFile.ts +20 -4
- package/src/funcs/filesUpload.ts +20 -4
- package/src/funcs/transfersGenerateOptions.ts +1 -1
- package/src/funcs/transfersGenerateOptionsForAccount.ts +202 -0
- package/src/funcs/transfersList.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/transfersGenerateOptions.ts +1 -1
- package/src/mcp-server/tools/transfersGenerateOptionsForAccount.ts +46 -0
- package/src/models/components/createaccount.ts +10 -10
- package/src/models/components/createdtransfer.ts +4 -0
- package/src/models/components/createrefundresponse.ts +5 -5
- package/src/models/components/index.ts +1 -1
- package/src/models/components/transfer.ts +4 -4
- package/src/models/components/webhookdata.ts +76 -76
- package/src/models/components/webhookdatatransfercreated.ts +7 -10
- package/src/models/components/webhookdatatransferstatus.ts +57 -0
- package/src/models/components/webhookdatatransferupdated.ts +7 -10
- package/src/models/components/webhookdatawallettransactionupdated.ts +10 -13
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/errors/transfer.ts +6 -6
- package/src/models/operations/createtransfer.ts +16 -16
- package/src/models/operations/createtransferoptionsforaccount.ts +257 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listtransfers.ts +5 -5
- package/src/sdk/transfers.ts +24 -1
- package/src/types/constdatetime.ts +1 -1
- package/types/constdatetime.js +1 -1
- package/models/components/webhookwalletavailablebalance.d.ts +0 -36
- package/models/components/webhookwalletavailablebalance.d.ts.map +0 -1
- package/models/components/webhookwalletavailablebalance.js +0 -73
- package/models/components/webhookwalletavailablebalance.js.map +0 -1
- package/src/models/components/webhookwalletavailablebalance.ts +0 -79
|
@@ -33,11 +33,11 @@ import { WebhookDataWalletTransactionUpdated, WebhookDataWalletTransactionUpdate
|
|
|
33
33
|
/**
|
|
34
34
|
* The data for the webhook event. The contents are based on the event type.
|
|
35
35
|
*/
|
|
36
|
-
export type WebhookData =
|
|
36
|
+
export type WebhookData = WebhookDataDisputeCreated | WebhookDataDisputeUpdated | WebhookDataTransferUpdated | WebhookDataBankAccountUpdated | WebhookDataRefundUpdated | WebhookDataWalletTransactionUpdated | WebhookDataCancellationCreated | WebhookDataCancellationUpdated | WebhookDataCardAutoUpdated | WebhookDataCapabilityUpdated | WebhookDataPaymentMethodEnabled | WebhookDataPaymentMethodDisabled | WebhookDataRefundCreated | WebhookDataSweepUpdated | WebhookDataTransferCreated | WebhookDataBalanceUpdated | WebhookDataBankAccountCreated | WebhookDataBankAccountDeleted | WebhookDataCapabilityRequested | WebhookDataRepresentativeCreated | WebhookDataRepresentativeUpdated | WebhookDataRepresentativeDisabled | WebhookDataSweepCreated | WebhookDataTerminalApplicationCreated | WebhookDataTerminalApplicationUpdated | WebhookDataAccountCreated | WebhookDataAccountUpdated | WebhookDataAccountDeleted | WebhookDataNetworkIDUpdated;
|
|
37
37
|
/** @internal */
|
|
38
38
|
export declare const WebhookData$inboundSchema: z.ZodType<WebhookData, z.ZodTypeDef, unknown>;
|
|
39
39
|
/** @internal */
|
|
40
|
-
export type WebhookData$Outbound =
|
|
40
|
+
export type WebhookData$Outbound = WebhookDataDisputeCreated$Outbound | WebhookDataDisputeUpdated$Outbound | WebhookDataTransferUpdated$Outbound | WebhookDataBankAccountUpdated$Outbound | WebhookDataRefundUpdated$Outbound | WebhookDataWalletTransactionUpdated$Outbound | WebhookDataCancellationCreated$Outbound | WebhookDataCancellationUpdated$Outbound | WebhookDataCardAutoUpdated$Outbound | WebhookDataCapabilityUpdated$Outbound | WebhookDataPaymentMethodEnabled$Outbound | WebhookDataPaymentMethodDisabled$Outbound | WebhookDataRefundCreated$Outbound | WebhookDataSweepUpdated$Outbound | WebhookDataTransferCreated$Outbound | WebhookDataBalanceUpdated$Outbound | WebhookDataBankAccountCreated$Outbound | WebhookDataBankAccountDeleted$Outbound | WebhookDataCapabilityRequested$Outbound | WebhookDataRepresentativeCreated$Outbound | WebhookDataRepresentativeUpdated$Outbound | WebhookDataRepresentativeDisabled$Outbound | WebhookDataSweepCreated$Outbound | WebhookDataTerminalApplicationCreated$Outbound | WebhookDataTerminalApplicationUpdated$Outbound | WebhookDataAccountCreated$Outbound | WebhookDataAccountUpdated$Outbound | WebhookDataAccountDeleted$Outbound | WebhookDataNetworkIDUpdated$Outbound;
|
|
41
41
|
/** @internal */
|
|
42
42
|
export declare const WebhookData$outboundSchema: z.ZodType<WebhookData$Outbound, z.ZodTypeDef, WebhookData>;
|
|
43
43
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookdata.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookdata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAA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AO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,gCAAgC,EAEhC,yCAAyC,EAE1C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,iCAAiC,EAEjC,0CAA0C,EAE3C,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,gCAAgC,EAEhC,yCAAyC,EAE1C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,qCAAqC,EAErC,8CAA8C,EAE/C,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,qCAAqC,EAErC,8CAA8C,EAE/C,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,mCAAmC,EAEnC,4CAA4C,EAE7C,MAAM,0CAA0C,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,yBAAyB,GACzB,yBAAyB,GACzB,
|
|
1
|
+
{"version":3,"file":"webhookdata.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookdata.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;AACrE,OAAO,EACL,yBAAyB,EAEzB,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M,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CA+BP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oBAAoB,GAC5B,kCAAkC,GAClC,kCAAkC,GAClC,mCAAmC,GACnC,sCAAsC,GACtC,iCAAiC,GACjC,4CAA4C,GAC5C,uCAAuC,GACvC,uCAAuC,GACvC,mCAAmC,GACnC,qCAAqC,GACrC,wCAAwC,GACxC,yCAAyC,GACzC,iCAAiC,GACjC,gCAAgC,GAChC,mCAAmC,GACnC,kCAAkC,GAClC,sCAAsC,GACtC,sCAAsC,GACtC,uCAAuC,GACvC,yCAAyC,GACzC,yCAAyC,GACzC,0CAA0C,GAC1C,gCAAgC,GAChC,8CAA8C,GAC9C,8CAA8C,GAC9C,kCAAkC,GAClC,kCAAkC,GAClC,kCAAkC,GAClC,oCAAoC,CAAC;AAEzC,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CA+BX,CAAC;AAEH;;;GAGG;AACH,yBAAiB,YAAY,CAAC;IAC5B,2DAA2D;IACpD,MAAM,aAAa,+CAA4B,CAAC;IACvD,4DAA4D;IACrD,MAAM,cAAc,4DAA6B,CAAC;IACzD,sDAAsD;IACtD,KAAY,QAAQ,GAAG,oBAAoB,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -72,66 +72,66 @@ const webhookdatatransferupdated_js_1 = require("./webhookdatatransferupdated.js
|
|
|
72
72
|
const webhookdatawallettransactionupdated_js_1 = require("./webhookdatawallettransactionupdated.js");
|
|
73
73
|
/** @internal */
|
|
74
74
|
exports.WebhookData$inboundSchema = z.union([
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
webhookdatadisputecreated_js_1.WebhookDataDisputeCreated$inboundSchema,
|
|
76
|
+
webhookdatadisputeupdated_js_1.WebhookDataDisputeUpdated$inboundSchema,
|
|
77
|
+
webhookdatatransferupdated_js_1.WebhookDataTransferUpdated$inboundSchema,
|
|
78
|
+
webhookdatabankaccountupdated_js_1.WebhookDataBankAccountUpdated$inboundSchema,
|
|
79
|
+
webhookdatarefundupdated_js_1.WebhookDataRefundUpdated$inboundSchema,
|
|
80
|
+
webhookdatawallettransactionupdated_js_1.WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
81
|
+
webhookdatacancellationcreated_js_1.WebhookDataCancellationCreated$inboundSchema,
|
|
82
|
+
webhookdatacancellationupdated_js_1.WebhookDataCancellationUpdated$inboundSchema,
|
|
83
|
+
webhookdatacardautoupdated_js_1.WebhookDataCardAutoUpdated$inboundSchema,
|
|
84
|
+
webhookdatacapabilityupdated_js_1.WebhookDataCapabilityUpdated$inboundSchema,
|
|
85
|
+
webhookdatapaymentmethodenabled_js_1.WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
86
|
+
webhookdatapaymentmethoddisabled_js_1.WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
87
|
+
webhookdatarefundcreated_js_1.WebhookDataRefundCreated$inboundSchema,
|
|
88
|
+
webhookdatasweepupdated_js_1.WebhookDataSweepUpdated$inboundSchema,
|
|
89
|
+
webhookdatatransfercreated_js_1.WebhookDataTransferCreated$inboundSchema,
|
|
78
90
|
webhookdatabalanceupdated_js_1.WebhookDataBalanceUpdated$inboundSchema,
|
|
79
91
|
webhookdatabankaccountcreated_js_1.WebhookDataBankAccountCreated$inboundSchema,
|
|
80
92
|
webhookdatabankaccountdeleted_js_1.WebhookDataBankAccountDeleted$inboundSchema,
|
|
93
|
+
webhookdatacapabilityrequested_js_1.WebhookDataCapabilityRequested$inboundSchema,
|
|
81
94
|
webhookdatarepresentativecreated_js_1.WebhookDataRepresentativeCreated$inboundSchema,
|
|
82
95
|
webhookdatarepresentativeupdated_js_1.WebhookDataRepresentativeUpdated$inboundSchema,
|
|
83
96
|
webhookdatarepresentativedisabled_js_1.WebhookDataRepresentativeDisabled$inboundSchema,
|
|
84
97
|
webhookdatasweepcreated_js_1.WebhookDataSweepCreated$inboundSchema,
|
|
85
98
|
webhookdataterminalapplicationcreated_js_1.WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
86
99
|
webhookdataterminalapplicationupdated_js_1.WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
webhookdatacapabilityrequested_js_1.WebhookDataCapabilityRequested$inboundSchema,
|
|
91
|
-
webhookdatapaymentmethodenabled_js_1.WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
92
|
-
webhookdatapaymentmethoddisabled_js_1.WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
93
|
-
webhookdatarefundcreated_js_1.WebhookDataRefundCreated$inboundSchema,
|
|
94
|
-
webhookdatatransfercreated_js_1.WebhookDataTransferCreated$inboundSchema,
|
|
95
|
-
webhookdatacapabilityupdated_js_1.WebhookDataCapabilityUpdated$inboundSchema,
|
|
96
|
-
webhookdatarefundupdated_js_1.WebhookDataRefundUpdated$inboundSchema,
|
|
97
|
-
webhookdatasweepupdated_js_1.WebhookDataSweepUpdated$inboundSchema,
|
|
98
|
-
webhookdatabankaccountupdated_js_1.WebhookDataBankAccountUpdated$inboundSchema,
|
|
99
|
-
webhookdatatransferupdated_js_1.WebhookDataTransferUpdated$inboundSchema,
|
|
100
|
-
webhookdatawallettransactionupdated_js_1.WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
101
|
-
webhookdatadisputecreated_js_1.WebhookDataDisputeCreated$inboundSchema,
|
|
102
|
-
webhookdatadisputeupdated_js_1.WebhookDataDisputeUpdated$inboundSchema,
|
|
100
|
+
webhookdataaccountcreated_js_1.WebhookDataAccountCreated$inboundSchema,
|
|
101
|
+
webhookdataaccountupdated_js_1.WebhookDataAccountUpdated$inboundSchema,
|
|
102
|
+
webhookdataaccountdeleted_js_1.WebhookDataAccountDeleted$inboundSchema,
|
|
103
103
|
webhookdatanetworkidupdated_js_1.WebhookDataNetworkIDUpdated$inboundSchema,
|
|
104
104
|
]);
|
|
105
105
|
/** @internal */
|
|
106
106
|
exports.WebhookData$outboundSchema = z.union([
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
webhookdatadisputecreated_js_1.WebhookDataDisputeCreated$outboundSchema,
|
|
108
|
+
webhookdatadisputeupdated_js_1.WebhookDataDisputeUpdated$outboundSchema,
|
|
109
|
+
webhookdatatransferupdated_js_1.WebhookDataTransferUpdated$outboundSchema,
|
|
110
|
+
webhookdatabankaccountupdated_js_1.WebhookDataBankAccountUpdated$outboundSchema,
|
|
111
|
+
webhookdatarefundupdated_js_1.WebhookDataRefundUpdated$outboundSchema,
|
|
112
|
+
webhookdatawallettransactionupdated_js_1.WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
113
|
+
webhookdatacancellationcreated_js_1.WebhookDataCancellationCreated$outboundSchema,
|
|
114
|
+
webhookdatacancellationupdated_js_1.WebhookDataCancellationUpdated$outboundSchema,
|
|
115
|
+
webhookdatacardautoupdated_js_1.WebhookDataCardAutoUpdated$outboundSchema,
|
|
116
|
+
webhookdatacapabilityupdated_js_1.WebhookDataCapabilityUpdated$outboundSchema,
|
|
117
|
+
webhookdatapaymentmethodenabled_js_1.WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
118
|
+
webhookdatapaymentmethoddisabled_js_1.WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
119
|
+
webhookdatarefundcreated_js_1.WebhookDataRefundCreated$outboundSchema,
|
|
120
|
+
webhookdatasweepupdated_js_1.WebhookDataSweepUpdated$outboundSchema,
|
|
121
|
+
webhookdatatransfercreated_js_1.WebhookDataTransferCreated$outboundSchema,
|
|
110
122
|
webhookdatabalanceupdated_js_1.WebhookDataBalanceUpdated$outboundSchema,
|
|
111
123
|
webhookdatabankaccountcreated_js_1.WebhookDataBankAccountCreated$outboundSchema,
|
|
112
124
|
webhookdatabankaccountdeleted_js_1.WebhookDataBankAccountDeleted$outboundSchema,
|
|
125
|
+
webhookdatacapabilityrequested_js_1.WebhookDataCapabilityRequested$outboundSchema,
|
|
113
126
|
webhookdatarepresentativecreated_js_1.WebhookDataRepresentativeCreated$outboundSchema,
|
|
114
127
|
webhookdatarepresentativeupdated_js_1.WebhookDataRepresentativeUpdated$outboundSchema,
|
|
115
128
|
webhookdatarepresentativedisabled_js_1.WebhookDataRepresentativeDisabled$outboundSchema,
|
|
116
129
|
webhookdatasweepcreated_js_1.WebhookDataSweepCreated$outboundSchema,
|
|
117
130
|
webhookdataterminalapplicationcreated_js_1.WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
118
131
|
webhookdataterminalapplicationupdated_js_1.WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
webhookdatacapabilityrequested_js_1.WebhookDataCapabilityRequested$outboundSchema,
|
|
123
|
-
webhookdatapaymentmethodenabled_js_1.WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
124
|
-
webhookdatapaymentmethoddisabled_js_1.WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
125
|
-
webhookdatarefundcreated_js_1.WebhookDataRefundCreated$outboundSchema,
|
|
126
|
-
webhookdatatransfercreated_js_1.WebhookDataTransferCreated$outboundSchema,
|
|
127
|
-
webhookdatacapabilityupdated_js_1.WebhookDataCapabilityUpdated$outboundSchema,
|
|
128
|
-
webhookdatarefundupdated_js_1.WebhookDataRefundUpdated$outboundSchema,
|
|
129
|
-
webhookdatasweepupdated_js_1.WebhookDataSweepUpdated$outboundSchema,
|
|
130
|
-
webhookdatabankaccountupdated_js_1.WebhookDataBankAccountUpdated$outboundSchema,
|
|
131
|
-
webhookdatatransferupdated_js_1.WebhookDataTransferUpdated$outboundSchema,
|
|
132
|
-
webhookdatawallettransactionupdated_js_1.WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
133
|
-
webhookdatadisputecreated_js_1.WebhookDataDisputeCreated$outboundSchema,
|
|
134
|
-
webhookdatadisputeupdated_js_1.WebhookDataDisputeUpdated$outboundSchema,
|
|
132
|
+
webhookdataaccountcreated_js_1.WebhookDataAccountCreated$outboundSchema,
|
|
133
|
+
webhookdataaccountupdated_js_1.WebhookDataAccountUpdated$outboundSchema,
|
|
134
|
+
webhookdataaccountdeleted_js_1.WebhookDataAccountDeleted$outboundSchema,
|
|
135
135
|
webhookdatanetworkidupdated_js_1.WebhookDataNetworkIDUpdated$outboundSchema,
|
|
136
136
|
]);
|
|
137
137
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookdata.js","sourceRoot":"","sources":["../../src/models/components/webhookdata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8UH,8CAEC;AAED,kDAQC;AAxVD,uCAAyB;AACzB,qDAAiD;AAGjD,iFAKwC;AACxC,iFAKwC;AACxC,iFAKwC;AACxC,iFAKwC;AACxC,yFAK4C;AAC5C,yFAK4C;AAC5C,yFAK4C;AAC5C,2FAK6C;AAC7C,2FAK6C;AAC7C,2FAK6C;AAC7C,uFAK2C;AAC3C,mFAKyC;AACzC,iFAKwC;AACxC,iFAKwC;AACxC,qFAK0C;AAC1C,+FAK+C;AAC/C,6FAK8C;AAC9C,+EAKuC;AACvC,+EAKuC;AACvC,+FAK+C;AAC/C,iGAKgD;AAChD,+FAK+C;AAC/C,6EAKsC;AACtC,6EAKsC;AACtC,yGAKoD;AACpD,yGAKoD;AACpD,mFAKyC;AACzC,mFAKyC;AACzC,qGAKkD;AAoClD,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,KAAK,CAAC;IACV,sEAAuC;IACvC,sEAAuC;IACvC,
|
|
1
|
+
{"version":3,"file":"webhookdata.js","sourceRoot":"","sources":["../../src/models/components/webhookdata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8UH,8CAEC;AAED,kDAQC;AAxVD,uCAAyB;AACzB,qDAAiD;AAGjD,iFAKwC;AACxC,iFAKwC;AACxC,iFAKwC;AACxC,iFAKwC;AACxC,yFAK4C;AAC5C,yFAK4C;AAC5C,yFAK4C;AAC5C,2FAK6C;AAC7C,2FAK6C;AAC7C,2FAK6C;AAC7C,uFAK2C;AAC3C,mFAKyC;AACzC,iFAKwC;AACxC,iFAKwC;AACxC,qFAK0C;AAC1C,+FAK+C;AAC/C,6FAK8C;AAC9C,+EAKuC;AACvC,+EAKuC;AACvC,+FAK+C;AAC/C,iGAKgD;AAChD,+FAK+C;AAC/C,6EAKsC;AACtC,6EAKsC;AACtC,yGAKoD;AACpD,yGAKoD;AACpD,mFAKyC;AACzC,mFAKyC;AACzC,qGAKkD;AAoClD,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,KAAK,CAAC;IACV,sEAAuC;IACvC,sEAAuC;IACvC,wEAAwC;IACxC,8EAA2C;IAC3C,oEAAsC;IACtC,0FAAiD;IACjD,gFAA4C;IAC5C,gFAA4C;IAC5C,wEAAwC;IACxC,4EAA0C;IAC1C,kFAA6C;IAC7C,oFAA8C;IAC9C,oEAAsC;IACtC,kEAAqC;IACrC,wEAAwC;IACxC,sEAAuC;IACvC,8EAA2C;IAC3C,8EAA2C;IAC3C,gFAA4C;IAC5C,oFAA8C;IAC9C,oFAA8C;IAC9C,sFAA+C;IAC/C,kEAAqC;IACrC,8FAAmD;IACnD,8FAAmD;IACnD,sEAAuC;IACvC,sEAAuC;IACvC,sEAAuC;IACvC,0EAAyC;CAC1C,CAAC,CAAC;AAkCH,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,KAAK,CAAC;IACV,uEAAwC;IACxC,uEAAwC;IACxC,yEAAyC;IACzC,+EAA4C;IAC5C,qEAAuC;IACvC,2FAAkD;IAClD,iFAA6C;IAC7C,iFAA6C;IAC7C,yEAAyC;IACzC,6EAA2C;IAC3C,mFAA8C;IAC9C,qFAA+C;IAC/C,qEAAuC;IACvC,mEAAsC;IACtC,yEAAyC;IACzC,uEAAwC;IACxC,+EAA4C;IAC5C,+EAA4C;IAC5C,iFAA6C;IAC7C,qFAA+C;IAC/C,qFAA+C;IAC/C,uFAAgD;IAChD,mEAAsC;IACtC,+FAAoD;IACpD,+FAAoD;IACpD,uEAAwC;IACxC,uEAAwC;IACxC,uEAAwC;IACxC,2EAA0C;CAC3C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,YAAY,CAO5B;AAPD,WAAiB,YAAY;IAC3B,2DAA2D;IAC9C,0BAAa,GAAG,iCAAyB,CAAC;IACvD,4DAA4D;IAC/C,2BAAc,GAAG,kCAA0B,CAAC;AAG3D,CAAC,EAPgB,YAAY,4BAAZ,YAAY,QAO5B;AAED,SAAgB,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,kCAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC;AAED,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import {
|
|
4
|
+
import { WebhookDataTransferStatus } from "./webhookdatatransferstatus.js";
|
|
5
5
|
export type WebhookDataTransferCreated = {
|
|
6
6
|
/**
|
|
7
7
|
* The accountID which facilitated the transfer.
|
|
8
8
|
*/
|
|
9
9
|
accountID: string;
|
|
10
10
|
transferID: string;
|
|
11
|
-
|
|
12
|
-
* Status of a transfer.
|
|
13
|
-
*/
|
|
14
|
-
status: TransferStatus;
|
|
11
|
+
status: WebhookDataTransferStatus;
|
|
15
12
|
};
|
|
16
13
|
/** @internal */
|
|
17
14
|
export declare const WebhookDataTransferCreated$inboundSchema: z.ZodType<WebhookDataTransferCreated, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookdatatransfercreated.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookdatatransfercreated.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;AACrE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"webhookdatatransfercreated.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookdatatransfercreated.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;AACrE,OAAO,EACL,yBAAyB,EAG1B,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,yBAAyB,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAK1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -41,18 +41,18 @@ exports.webhookDataTransferCreatedToJSON = webhookDataTransferCreatedToJSON;
|
|
|
41
41
|
exports.webhookDataTransferCreatedFromJSON = webhookDataTransferCreatedFromJSON;
|
|
42
42
|
const z = __importStar(require("zod"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const
|
|
44
|
+
const webhookdatatransferstatus_js_1 = require("./webhookdatatransferstatus.js");
|
|
45
45
|
/** @internal */
|
|
46
46
|
exports.WebhookDataTransferCreated$inboundSchema = z.object({
|
|
47
47
|
accountID: z.string(),
|
|
48
48
|
transferID: z.string(),
|
|
49
|
-
status:
|
|
49
|
+
status: webhookdatatransferstatus_js_1.WebhookDataTransferStatus$inboundSchema,
|
|
50
50
|
});
|
|
51
51
|
/** @internal */
|
|
52
52
|
exports.WebhookDataTransferCreated$outboundSchema = z.object({
|
|
53
53
|
accountID: z.string(),
|
|
54
54
|
transferID: z.string(),
|
|
55
|
-
status:
|
|
55
|
+
status: webhookdatatransferstatus_js_1.WebhookDataTransferStatus$outboundSchema,
|
|
56
56
|
});
|
|
57
57
|
/**
|
|
58
58
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookdatatransfercreated.js","sourceRoot":"","sources":["../../src/models/components/webhookdatatransfercreated.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"webhookdatatransfercreated.js","sourceRoot":"","sources":["../../src/models/components/webhookdatatransfercreated.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DH,4EAMC;AAED,gFAQC;AA7ED,uCAAyB;AACzB,qDAAiD;AAGjD,iFAIwC;AAWxC,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,sEAAuC;CAChD,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,uEAAwC;CACjD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const WebhookDataTransferStatus: {
|
|
4
|
+
readonly Created: "created";
|
|
5
|
+
readonly Pending: "pending";
|
|
6
|
+
readonly Completed: "completed";
|
|
7
|
+
readonly Failed: "failed";
|
|
8
|
+
readonly Reversed: "reversed";
|
|
9
|
+
readonly Queued: "queued";
|
|
10
|
+
readonly Canceled: "canceled";
|
|
11
|
+
readonly SourceCompleted: "source.completed";
|
|
12
|
+
readonly SourceCorrected: "source.corrected";
|
|
13
|
+
readonly SourceInitiated: "source.initiated";
|
|
14
|
+
readonly SourceReturned: "source.returned";
|
|
15
|
+
readonly SourceOriginated: "source.originated";
|
|
16
|
+
readonly SourceConfirmed: "source.confirmed";
|
|
17
|
+
readonly SourceSettled: "source.settled";
|
|
18
|
+
readonly SourceFailed: "source.failed";
|
|
19
|
+
readonly SourceCanceled: "source.canceled";
|
|
20
|
+
readonly DestinationCompleted: "destination.completed";
|
|
21
|
+
readonly DestinationCorrected: "destination.corrected";
|
|
22
|
+
readonly DestinationInitiated: "destination.initiated";
|
|
23
|
+
readonly DestinationReturned: "destination.returned";
|
|
24
|
+
readonly DestinationOriginated: "destination.originated";
|
|
25
|
+
readonly DestinationConfirmed: "destination.confirmed";
|
|
26
|
+
readonly DestinationFailed: "destination.failed";
|
|
27
|
+
readonly DestinationAcceptedWithoutPosting: "destination.accepted-without-posting";
|
|
28
|
+
};
|
|
29
|
+
export type WebhookDataTransferStatus = ClosedEnum<typeof WebhookDataTransferStatus>;
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const WebhookDataTransferStatus$inboundSchema: z.ZodNativeEnum<typeof WebhookDataTransferStatus>;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export declare const WebhookDataTransferStatus$outboundSchema: z.ZodNativeEnum<typeof WebhookDataTransferStatus>;
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
+
*/
|
|
38
|
+
export declare namespace WebhookDataTransferStatus$ {
|
|
39
|
+
/** @deprecated use `WebhookDataTransferStatus$inboundSchema` instead. */
|
|
40
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
41
|
+
readonly Created: "created";
|
|
42
|
+
readonly Pending: "pending";
|
|
43
|
+
readonly Completed: "completed";
|
|
44
|
+
readonly Failed: "failed";
|
|
45
|
+
readonly Reversed: "reversed";
|
|
46
|
+
readonly Queued: "queued";
|
|
47
|
+
readonly Canceled: "canceled";
|
|
48
|
+
readonly SourceCompleted: "source.completed";
|
|
49
|
+
readonly SourceCorrected: "source.corrected";
|
|
50
|
+
readonly SourceInitiated: "source.initiated";
|
|
51
|
+
readonly SourceReturned: "source.returned";
|
|
52
|
+
readonly SourceOriginated: "source.originated";
|
|
53
|
+
readonly SourceConfirmed: "source.confirmed";
|
|
54
|
+
readonly SourceSettled: "source.settled";
|
|
55
|
+
readonly SourceFailed: "source.failed";
|
|
56
|
+
readonly SourceCanceled: "source.canceled";
|
|
57
|
+
readonly DestinationCompleted: "destination.completed";
|
|
58
|
+
readonly DestinationCorrected: "destination.corrected";
|
|
59
|
+
readonly DestinationInitiated: "destination.initiated";
|
|
60
|
+
readonly DestinationReturned: "destination.returned";
|
|
61
|
+
readonly DestinationOriginated: "destination.originated";
|
|
62
|
+
readonly DestinationConfirmed: "destination.confirmed";
|
|
63
|
+
readonly DestinationFailed: "destination.failed";
|
|
64
|
+
readonly DestinationAcceptedWithoutPosting: "destination.accepted-without-posting";
|
|
65
|
+
}>;
|
|
66
|
+
/** @deprecated use `WebhookDataTransferStatus$outboundSchema` instead. */
|
|
67
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
68
|
+
readonly Created: "created";
|
|
69
|
+
readonly Pending: "pending";
|
|
70
|
+
readonly Completed: "completed";
|
|
71
|
+
readonly Failed: "failed";
|
|
72
|
+
readonly Reversed: "reversed";
|
|
73
|
+
readonly Queued: "queued";
|
|
74
|
+
readonly Canceled: "canceled";
|
|
75
|
+
readonly SourceCompleted: "source.completed";
|
|
76
|
+
readonly SourceCorrected: "source.corrected";
|
|
77
|
+
readonly SourceInitiated: "source.initiated";
|
|
78
|
+
readonly SourceReturned: "source.returned";
|
|
79
|
+
readonly SourceOriginated: "source.originated";
|
|
80
|
+
readonly SourceConfirmed: "source.confirmed";
|
|
81
|
+
readonly SourceSettled: "source.settled";
|
|
82
|
+
readonly SourceFailed: "source.failed";
|
|
83
|
+
readonly SourceCanceled: "source.canceled";
|
|
84
|
+
readonly DestinationCompleted: "destination.completed";
|
|
85
|
+
readonly DestinationCorrected: "destination.corrected";
|
|
86
|
+
readonly DestinationInitiated: "destination.initiated";
|
|
87
|
+
readonly DestinationReturned: "destination.returned";
|
|
88
|
+
readonly DestinationOriginated: "destination.originated";
|
|
89
|
+
readonly DestinationConfirmed: "destination.confirmed";
|
|
90
|
+
readonly DestinationFailed: "destination.failed";
|
|
91
|
+
readonly DestinationAcceptedWithoutPosting: "destination.accepted-without-posting";
|
|
92
|
+
}>;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=webhookdatatransferstatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookdatatransferstatus.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookdatatransferstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;CAyB5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD,OAAO,yBAAyB,CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,aAAa,CACnE,OAAO,yBAAyB,CACS,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,aAAa,CACpE,OAAO,yBAAyB,CACS,CAAC;AAE5C;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;MAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;MAA2C,CAAC;CACxE"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.WebhookDataTransferStatus$ = exports.WebhookDataTransferStatus$outboundSchema = exports.WebhookDataTransferStatus$inboundSchema = exports.WebhookDataTransferStatus = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
exports.WebhookDataTransferStatus = {
|
|
42
|
+
Created: "created",
|
|
43
|
+
Pending: "pending",
|
|
44
|
+
Completed: "completed",
|
|
45
|
+
Failed: "failed",
|
|
46
|
+
Reversed: "reversed",
|
|
47
|
+
Queued: "queued",
|
|
48
|
+
Canceled: "canceled",
|
|
49
|
+
SourceCompleted: "source.completed",
|
|
50
|
+
SourceCorrected: "source.corrected",
|
|
51
|
+
SourceInitiated: "source.initiated",
|
|
52
|
+
SourceReturned: "source.returned",
|
|
53
|
+
SourceOriginated: "source.originated",
|
|
54
|
+
SourceConfirmed: "source.confirmed",
|
|
55
|
+
SourceSettled: "source.settled",
|
|
56
|
+
SourceFailed: "source.failed",
|
|
57
|
+
SourceCanceled: "source.canceled",
|
|
58
|
+
DestinationCompleted: "destination.completed",
|
|
59
|
+
DestinationCorrected: "destination.corrected",
|
|
60
|
+
DestinationInitiated: "destination.initiated",
|
|
61
|
+
DestinationReturned: "destination.returned",
|
|
62
|
+
DestinationOriginated: "destination.originated",
|
|
63
|
+
DestinationConfirmed: "destination.confirmed",
|
|
64
|
+
DestinationFailed: "destination.failed",
|
|
65
|
+
DestinationAcceptedWithoutPosting: "destination.accepted-without-posting",
|
|
66
|
+
};
|
|
67
|
+
/** @internal */
|
|
68
|
+
exports.WebhookDataTransferStatus$inboundSchema = z.nativeEnum(exports.WebhookDataTransferStatus);
|
|
69
|
+
/** @internal */
|
|
70
|
+
exports.WebhookDataTransferStatus$outboundSchema = exports.WebhookDataTransferStatus$inboundSchema;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
+
*/
|
|
75
|
+
var WebhookDataTransferStatus$;
|
|
76
|
+
(function (WebhookDataTransferStatus$) {
|
|
77
|
+
/** @deprecated use `WebhookDataTransferStatus$inboundSchema` instead. */
|
|
78
|
+
WebhookDataTransferStatus$.inboundSchema = exports.WebhookDataTransferStatus$inboundSchema;
|
|
79
|
+
/** @deprecated use `WebhookDataTransferStatus$outboundSchema` instead. */
|
|
80
|
+
WebhookDataTransferStatus$.outboundSchema = exports.WebhookDataTransferStatus$outboundSchema;
|
|
81
|
+
})(WebhookDataTransferStatus$ || (exports.WebhookDataTransferStatus$ = WebhookDataTransferStatus$ = {}));
|
|
82
|
+
//# sourceMappingURL=webhookdatatransferstatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookdatatransferstatus.js","sourceRoot":"","sources":["../../src/models/components/webhookdatatransferstatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,yBAAyB,GAAG;IACvC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;IACnC,cAAc,EAAE,iBAAiB;IACjC,gBAAgB,EAAE,mBAAmB;IACrC,eAAe,EAAE,kBAAkB;IACnC,aAAa,EAAE,gBAAgB;IAC/B,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,oBAAoB,EAAE,uBAAuB;IAC7C,oBAAoB,EAAE,uBAAuB;IAC7C,oBAAoB,EAAE,uBAAuB;IAC7C,mBAAmB,EAAE,sBAAsB;IAC3C,qBAAqB,EAAE,wBAAwB;IAC/C,oBAAoB,EAAE,uBAAuB;IAC7C,iBAAiB,EAAE,oBAAoB;IACvC,iCAAiC,EAAE,sCAAsC;CACjE,CAAC;AAKX,gBAAgB;AACH,QAAA,uCAAuC,GAEhD,CAAC,CAAC,UAAU,CAAC,iCAAyB,CAAC,CAAC;AAE5C,gBAAgB;AACH,QAAA,wCAAwC,GAEjD,+CAAuC,CAAC;AAE5C;;;GAGG;AACH,IAAiB,0BAA0B,CAK1C;AALD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AACzE,CAAC,EALgB,0BAA0B,0CAA1B,0BAA0B,QAK1C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import {
|
|
4
|
+
import { WebhookDataTransferStatus } from "./webhookdatatransferstatus.js";
|
|
5
5
|
import { WebhookTransferPaymentMethodDetails, WebhookTransferPaymentMethodDetails$Outbound } from "./webhooktransferpaymentmethoddetails.js";
|
|
6
6
|
export type WebhookDataTransferUpdated = {
|
|
7
7
|
/**
|
|
@@ -9,10 +9,7 @@ export type WebhookDataTransferUpdated = {
|
|
|
9
9
|
*/
|
|
10
10
|
accountID: string;
|
|
11
11
|
transferID: string;
|
|
12
|
-
|
|
13
|
-
* Status of a transfer.
|
|
14
|
-
*/
|
|
15
|
-
status: TransferStatus;
|
|
12
|
+
status: WebhookDataTransferStatus;
|
|
16
13
|
/**
|
|
17
14
|
* Payment method details for the source or destination of a transfer.
|
|
18
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookdatatransferupdated.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookdatatransferupdated.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;AACrE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"webhookdatatransferupdated.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookdatatransferupdated.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;AACrE,OAAO,EACL,yBAAyB,EAG1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,mCAAmC,EAEnC,4CAA4C,EAE7C,MAAM,0CAA0C,CAAC;AAElD,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,yBAAyB,CAAC;IAClC;;OAEG;IACH,MAAM,EAAE,mCAAmC,CAAC;IAC5C;;OAEG;IACH,WAAW,EAAE,mCAAmC,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,4CAA4C,CAAC;IACrD,WAAW,EAAE,4CAA4C,CAAC;CAC3D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAO1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -41,13 +41,13 @@ exports.webhookDataTransferUpdatedToJSON = webhookDataTransferUpdatedToJSON;
|
|
|
41
41
|
exports.webhookDataTransferUpdatedFromJSON = webhookDataTransferUpdatedFromJSON;
|
|
42
42
|
const z = __importStar(require("zod"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const
|
|
44
|
+
const webhookdatatransferstatus_js_1 = require("./webhookdatatransferstatus.js");
|
|
45
45
|
const webhooktransferpaymentmethoddetails_js_1 = require("./webhooktransferpaymentmethoddetails.js");
|
|
46
46
|
/** @internal */
|
|
47
47
|
exports.WebhookDataTransferUpdated$inboundSchema = z.object({
|
|
48
48
|
accountID: z.string(),
|
|
49
49
|
transferID: z.string(),
|
|
50
|
-
status:
|
|
50
|
+
status: webhookdatatransferstatus_js_1.WebhookDataTransferStatus$inboundSchema,
|
|
51
51
|
source: webhooktransferpaymentmethoddetails_js_1.WebhookTransferPaymentMethodDetails$inboundSchema,
|
|
52
52
|
destination: webhooktransferpaymentmethoddetails_js_1.WebhookTransferPaymentMethodDetails$inboundSchema,
|
|
53
53
|
});
|
|
@@ -55,7 +55,7 @@ exports.WebhookDataTransferUpdated$inboundSchema = z.object({
|
|
|
55
55
|
exports.WebhookDataTransferUpdated$outboundSchema = z.object({
|
|
56
56
|
accountID: z.string(),
|
|
57
57
|
transferID: z.string(),
|
|
58
|
-
status:
|
|
58
|
+
status: webhookdatatransferstatus_js_1.WebhookDataTransferStatus$outboundSchema,
|
|
59
59
|
source: webhooktransferpaymentmethoddetails_js_1.WebhookTransferPaymentMethodDetails$outboundSchema,
|
|
60
60
|
destination: webhooktransferpaymentmethoddetails_js_1.WebhookTransferPaymentMethodDetails$outboundSchema,
|
|
61
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookdatatransferupdated.js","sourceRoot":"","sources":["../../src/models/components/webhookdatatransferupdated.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"webhookdatatransferupdated.js","sourceRoot":"","sources":["../../src/models/components/webhookdatatransferupdated.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFH,4EAMC;AAED,gFAQC;AAjGD,uCAAyB;AACzB,qDAAiD;AAGjD,iFAIwC;AACxC,qGAKkD;AAmBlD,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,sEAAuC;IAC/C,MAAM,EAAE,0FAAiD;IACzD,WAAW,EAAE,0FAAiD;CAC/D,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,uEAAwC;IAChD,MAAM,EAAE,2FAAkD;IAC1D,WAAW,EAAE,2FAAkD;CAChE,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { WalletAvailableBalance, WalletAvailableBalance$Outbound } from "./walletavailablebalance.js";
|
|
4
5
|
import { WalletTransactionStatus } from "./wallettransactionstatus.js";
|
|
5
|
-
import { WebhookWalletAvailableBalance, WebhookWalletAvailableBalance$Outbound } from "./webhookwalletavailablebalance.js";
|
|
6
6
|
export type WebhookDataWalletTransactionUpdated = {
|
|
7
7
|
accountID: string;
|
|
8
8
|
walletID: string;
|
|
9
9
|
transactionID: string;
|
|
10
10
|
status: WalletTransactionStatus;
|
|
11
|
-
|
|
12
|
-
* The available balance of a wallet.
|
|
13
|
-
*/
|
|
14
|
-
availableBalance?: WebhookWalletAvailableBalance | undefined;
|
|
11
|
+
availableBalance?: WalletAvailableBalance | undefined;
|
|
15
12
|
};
|
|
16
13
|
/** @internal */
|
|
17
14
|
export declare const WebhookDataWalletTransactionUpdated$inboundSchema: z.ZodType<WebhookDataWalletTransactionUpdated, z.ZodTypeDef, unknown>;
|
|
@@ -21,7 +18,7 @@ export type WebhookDataWalletTransactionUpdated$Outbound = {
|
|
|
21
18
|
walletID: string;
|
|
22
19
|
transactionID: string;
|
|
23
20
|
status: string;
|
|
24
|
-
availableBalance?:
|
|
21
|
+
availableBalance?: WalletAvailableBalance$Outbound | undefined;
|
|
25
22
|
};
|
|
26
23
|
/** @internal */
|
|
27
24
|
export declare const WebhookDataWalletTransactionUpdated$outboundSchema: z.ZodType<WebhookDataWalletTransactionUpdated$Outbound, z.ZodTypeDef, WebhookDataWalletTransactionUpdated>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookdatawallettransactionupdated.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookdatawallettransactionupdated.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;AACrE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"webhookdatawallettransactionupdated.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookdatawallettransactionupdated.ts"],"names":[],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AmC,EAAE,mCAAmC,GACvE,MAAM,CAMR;AAED,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
@@ -41,15 +41,15 @@ exports.webhookDataWalletTransactionUpdatedToJSON = webhookDataWalletTransaction
|
|
|
41
41
|
exports.webhookDataWalletTransactionUpdatedFromJSON = webhookDataWalletTransactionUpdatedFromJSON;
|
|
42
42
|
const z = __importStar(require("zod"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const walletavailablebalance_js_1 = require("./walletavailablebalance.js");
|
|
44
45
|
const wallettransactionstatus_js_1 = require("./wallettransactionstatus.js");
|
|
45
|
-
const webhookwalletavailablebalance_js_1 = require("./webhookwalletavailablebalance.js");
|
|
46
46
|
/** @internal */
|
|
47
47
|
exports.WebhookDataWalletTransactionUpdated$inboundSchema = z.object({
|
|
48
48
|
accountID: z.string(),
|
|
49
49
|
walletID: z.string(),
|
|
50
50
|
transactionID: z.string(),
|
|
51
51
|
status: wallettransactionstatus_js_1.WalletTransactionStatus$inboundSchema,
|
|
52
|
-
availableBalance:
|
|
52
|
+
availableBalance: walletavailablebalance_js_1.WalletAvailableBalance$inboundSchema.optional(),
|
|
53
53
|
});
|
|
54
54
|
/** @internal */
|
|
55
55
|
exports.WebhookDataWalletTransactionUpdated$outboundSchema = z.object({
|
|
@@ -57,7 +57,7 @@ exports.WebhookDataWalletTransactionUpdated$outboundSchema = z.object({
|
|
|
57
57
|
walletID: z.string(),
|
|
58
58
|
transactionID: z.string(),
|
|
59
59
|
status: wallettransactionstatus_js_1.WalletTransactionStatus$outboundSchema,
|
|
60
|
-
availableBalance:
|
|
60
|
+
availableBalance: walletavailablebalance_js_1.WalletAvailableBalance$outboundSchema.optional(),
|
|
61
61
|
});
|
|
62
62
|
/**
|
|
63
63
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookdatawallettransactionupdated.js","sourceRoot":"","sources":["../../src/models/components/webhookdatawallettransactionupdated.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"webhookdatawallettransactionupdated.js","sourceRoot":"","sources":["../../src/models/components/webhookdatawallettransactionupdated.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EH,8FAQC;AAED,kGASC;AA7FD,uCAAyB;AACzB,qDAAiD;AAGjD,2EAKqC;AACrC,6EAIsC;AAUtC,gBAAgB;AACH,QAAA,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,kEAAqC;IAC7C,gBAAgB,EAAE,gEAAoC,CAAC,QAAQ,EAAE;CAClE,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,mEAAsC;IAC9C,gBAAgB,EAAE,iEAAqC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oCAAoC,CASpD;AATD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,yDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDAAc,GACzB,0DAAkD,CAAC;AAGvD,CAAC,EATgB,oCAAoC,oDAApC,oCAAoC,QASpD;AAED,SAAgB,yCAAyC,CACvD,mCAAwE;IAExE,OAAO,IAAI,CAAC,SAAS,CACnB,0DAAkD,CAAC,KAAK,CACtD,mCAAmC,CACpC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,2CAA2C,CACzD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,yDAAiD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,iEAAiE,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
4
4
|
* The type of event that occurred.
|
|
5
5
|
*/
|
|
6
6
|
export declare const WebhookEventType: {
|
|
7
|
+
readonly Wildcard: "*";
|
|
7
8
|
readonly AccountCreated: "account.created";
|
|
8
9
|
readonly AccountUpdated: "account.updated";
|
|
9
10
|
readonly AccountDeleted: "account.deleted";
|
|
@@ -49,6 +50,7 @@ export declare const WebhookEventType$outboundSchema: z.ZodNativeEnum<typeof Web
|
|
|
49
50
|
export declare namespace WebhookEventType$ {
|
|
50
51
|
/** @deprecated use `WebhookEventType$inboundSchema` instead. */
|
|
51
52
|
const inboundSchema: z.ZodNativeEnum<{
|
|
53
|
+
readonly Wildcard: "*";
|
|
52
54
|
readonly AccountCreated: "account.created";
|
|
53
55
|
readonly AccountUpdated: "account.updated";
|
|
54
56
|
readonly AccountDeleted: "account.deleted";
|
|
@@ -81,6 +83,7 @@ export declare namespace WebhookEventType$ {
|
|
|
81
83
|
}>;
|
|
82
84
|
/** @deprecated use `WebhookEventType$outboundSchema` instead. */
|
|
83
85
|
const outboundSchema: z.ZodNativeEnum<{
|
|
86
|
+
readonly Wildcard: "*";
|
|
84
87
|
readonly AccountCreated: "account.created";
|
|
85
88
|
readonly AccountUpdated: "account.updated";
|
|
86
89
|
readonly AccountDeleted: "account.deleted";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookeventtype.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"webhookeventtype.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BnB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC;AAEnC;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkC,CAAC;CAC/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookeventtype.js","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,kBAAkB,EAAE,qBAAqB;IACzC,kBAAkB,EAAE,qBAAqB;IACzC,kBAAkB,EAAE,qBAAqB;IACzC,mBAAmB,EAAE,sBAAsB;IAC3C,mBAAmB,EAAE,sBAAsB;IAC3C,eAAe,EAAE,kBAAkB;IACnC,mBAAmB,EAAE,sBAAsB;IAC3C,iBAAiB,EAAE,oBAAoB;IACvC,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,gBAAgB,EAAE,mBAAmB;IACrC,oBAAoB,EAAE,uBAAuB;IAC7C,qBAAqB,EAAE,wBAAwB;IAC/C,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,qBAAqB,EAAE,wBAAwB;IAC/C,qBAAqB,EAAE,wBAAwB;IAC/C,qBAAqB,EAAE,wBAAwB;IAC/C,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,eAAe;IAC7B,0BAA0B,EAAE,6BAA6B;IACzD,0BAA0B,EAAE,6BAA6B;IACzD,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;IACnC,wBAAwB,EAAE,2BAA2B;CAC7C,CAAC;AAMX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AAEnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC;AAEnC;;;GAGG;AACH,IAAiB,iBAAiB,CAKjC;AALD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAChE,CAAC,EALgB,iBAAiB,iCAAjB,iBAAiB,QAKjC"}
|
|
1
|
+
{"version":3,"file":"webhookeventtype.js","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCA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