@moovio/sdk 0.10.6 → 0.10.8
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 +5 -5
- package/bin/mcp-server.js +407 -398
- package/bin/mcp-server.js.map +33 -34
- package/docs/sdks/accounts/README.md +10 -30
- package/docs/sdks/adjustments/README.md +6 -6
- package/docs/sdks/applepay/README.md +12 -12
- package/docs/sdks/bankaccounts/README.md +24 -26
- package/docs/sdks/branding/README.md +4 -4
- package/docs/sdks/capabilities/README.md +10 -10
- package/docs/sdks/cardissuing/README.md +30 -22
- package/docs/sdks/cards/README.md +10 -16
- package/docs/sdks/disputes/README.md +54 -54
- package/docs/sdks/enrichedprofile/README.md +2 -2
- package/docs/sdks/files/README.md +8 -8
- package/docs/sdks/issuingtransactions/README.md +16 -16
- package/docs/sdks/paymentlinks/README.md +14 -14
- package/docs/sdks/paymentmethods/README.md +6 -6
- package/docs/sdks/receipts/README.md +12 -9
- package/docs/sdks/representatives/README.md +16 -16
- package/docs/sdks/scheduling/README.md +96 -96
- package/docs/sdks/sweeps/README.md +18 -18
- package/docs/sdks/transfers/README.md +10 -10
- package/docs/sdks/underwriting/README.md +2 -2
- package/docs/sdks/wallets/README.md +6 -6
- package/docs/sdks/wallettransactions/README.md +10 -10
- package/funcs/receiptsCreate.d.ts +1 -1
- package/funcs/receiptsCreate.d.ts.map +1 -1
- package/funcs/receiptsCreate.js +1 -1
- package/funcs/receiptsCreate.js.map +1 -1
- package/funcs/receiptsList.d.ts +1 -1
- package/funcs/receiptsList.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts.map +1 -1
- package/mcp-server/prompts.js +5 -1
- package/mcp-server/prompts.js.map +1 -1
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +10 -2
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +2 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/receiptsList.js +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +4 -3
- package/mcp-server/tools.js.map +1 -1
- package/models/components/achtransactionstatus.d.ts +3 -0
- package/models/components/achtransactionstatus.d.ts.map +1 -1
- package/models/components/achtransactionstatus.js +1 -0
- package/models/components/achtransactionstatus.js.map +1 -1
- package/models/components/createdtransfer.d.ts +116 -0
- package/models/components/createdtransfer.d.ts.map +1 -0
- package/models/components/createdtransfer.js +126 -0
- package/models/components/createdtransfer.js.map +1 -0
- package/models/components/createevidencefilemultipart.d.ts +2 -2
- package/models/components/createevidencefilemultipart.d.ts.map +1 -1
- package/models/components/createevidencefilemultipart.js +2 -2
- package/models/components/createevidencefilemultipart.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/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/createreceipts.d.ts +2 -2
- package/models/operations/createreceipts.d.ts.map +1 -1
- package/models/operations/createreceipts.js +2 -2
- package/models/operations/createreceipts.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 +4 -4
- package/models/operations/createtransfer.js.map +1 -1
- package/models/operations/listreceipts.d.ts +3 -3
- package/models/operations/listreceipts.d.ts.map +1 -1
- package/models/operations/listreceipts.js +2 -2
- package/models/operations/listreceipts.js.map +1 -1
- package/package.json +1 -1
- package/sdk/receipts.d.ts +1 -1
- package/sdk/receipts.js +1 -1
- package/src/funcs/receiptsCreate.ts +1 -5
- package/src/funcs/receiptsList.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +8 -1
- package/src/mcp-server/resources.ts +16 -2
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/receiptsList.ts +1 -1
- package/src/mcp-server/tools.ts +6 -3
- package/src/models/components/achtransactionstatus.ts +1 -0
- package/src/models/components/createdtransfer.ts +242 -0
- package/src/models/components/createevidencefilemultipart.ts +4 -4
- package/src/models/components/index.ts +1 -1
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/createreceipts.ts +4 -4
- package/src/models/operations/createtransfer.ts +12 -12
- package/src/models/operations/listreceipts.ts +5 -5
- package/src/sdk/receipts.ts +1 -1
- package/models/components/transferresponse.d.ts +0 -27
- package/models/components/transferresponse.d.ts.map +0 -1
- package/models/components/transferresponse.js +0 -67
- package/models/components/transferresponse.js.map +0 -1
- package/models/errors/receiptvalidationerror.d.ts +0 -46
- package/models/errors/receiptvalidationerror.d.ts.map +0 -1
- package/models/errors/receiptvalidationerror.js +0 -98
- package/models/errors/receiptvalidationerror.js.map +0 -1
- package/src/models/components/transferresponse.ts +0 -72
- package/src/models/errors/receiptvalidationerror.ts +0 -99
package/bin/mcp-server.js
CHANGED
|
@@ -4012,12 +4012,6 @@ var init_console_logger = __esm(() => {
|
|
|
4012
4012
|
];
|
|
4013
4013
|
});
|
|
4014
4014
|
|
|
4015
|
-
// src/mcp-server/scopes.ts
|
|
4016
|
-
var mcpScopes;
|
|
4017
|
-
var init_scopes = __esm(() => {
|
|
4018
|
-
mcpScopes = [];
|
|
4019
|
-
});
|
|
4020
|
-
|
|
4021
4015
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
4022
4016
|
var LATEST_PROTOCOL_VERSION = "2024-11-05", SUPPORTED_PROTOCOL_VERSIONS, JSONRPC_VERSION = "2.0", ProgressTokenSchema, CursorSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, EmbeddedResourceSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, ResourceReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError;
|
|
4023
4017
|
var init_types = __esm(() => {
|
|
@@ -34213,9 +34207,9 @@ var init_config = __esm(() => {
|
|
|
34213
34207
|
SDK_METADATA = {
|
|
34214
34208
|
language: "typescript",
|
|
34215
34209
|
openapiDocVersion: "latest",
|
|
34216
|
-
sdkVersion: "0.10.
|
|
34217
|
-
genVersion: "2.
|
|
34218
|
-
userAgent: "speakeasy-sdk/typescript 0.10.
|
|
34210
|
+
sdkVersion: "0.10.8",
|
|
34211
|
+
genVersion: "2.568.2",
|
|
34212
|
+
userAgent: "speakeasy-sdk/typescript 0.10.8 2.568.2 latest @moovio/sdk"
|
|
34219
34213
|
};
|
|
34220
34214
|
});
|
|
34221
34215
|
|
|
@@ -35000,7 +34994,10 @@ var init_core = __esm(() => {
|
|
|
35000
34994
|
function createRegisterPrompt(logger, server, sdk, allowedScopes) {
|
|
35001
34995
|
return (prompt) => {
|
|
35002
34996
|
const scopes = prompt.scopes ?? [];
|
|
35003
|
-
if (
|
|
34997
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
34998
|
+
return;
|
|
34999
|
+
}
|
|
35000
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35004
35001
|
return;
|
|
35005
35002
|
}
|
|
35006
35003
|
if (prompt.args) {
|
|
@@ -35071,7 +35068,10 @@ var init_shared = __esm(() => {
|
|
|
35071
35068
|
function createRegisterResource(logger, server, sdk, allowedScopes) {
|
|
35072
35069
|
return (resource) => {
|
|
35073
35070
|
const scopes = resource.scopes ?? [];
|
|
35074
|
-
if (
|
|
35071
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35072
|
+
return;
|
|
35073
|
+
}
|
|
35074
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35075
35075
|
return;
|
|
35076
35076
|
}
|
|
35077
35077
|
const metadata = {
|
|
@@ -35085,7 +35085,10 @@ function createRegisterResource(logger, server, sdk, allowedScopes) {
|
|
|
35085
35085
|
function createRegisterResourceTemplate(logger, server, sdk, allowedScopes) {
|
|
35086
35086
|
return (resource) => {
|
|
35087
35087
|
const scopes = resource.scopes ?? [];
|
|
35088
|
-
if (
|
|
35088
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35089
|
+
return;
|
|
35090
|
+
}
|
|
35091
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35089
35092
|
return;
|
|
35090
35093
|
}
|
|
35091
35094
|
const metadata = {
|
|
@@ -35143,11 +35146,11 @@ function createRegisterTool(logger, server, sdk, allowedScopes, allowedTools) {
|
|
|
35143
35146
|
if (allowedTools && !allowedTools.has(tool.name)) {
|
|
35144
35147
|
return;
|
|
35145
35148
|
}
|
|
35146
|
-
const
|
|
35147
|
-
if (allowedScopes.size > 0 &&
|
|
35149
|
+
const scopes = tool.scopes ?? [];
|
|
35150
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35148
35151
|
return;
|
|
35149
35152
|
}
|
|
35150
|
-
if (!
|
|
35153
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35151
35154
|
return;
|
|
35152
35155
|
}
|
|
35153
35156
|
if (tool.args) {
|
|
@@ -36596,6 +36599,7 @@ var ACHTransactionStatus, ACHTransactionStatus$inboundSchema, ACHTransactionStat
|
|
|
36596
36599
|
var init_achtransactionstatus = __esm(() => {
|
|
36597
36600
|
init_lib();
|
|
36598
36601
|
ACHTransactionStatus = {
|
|
36602
|
+
Unknown: "",
|
|
36599
36603
|
Initiated: "initiated",
|
|
36600
36604
|
Originated: "originated",
|
|
36601
36605
|
Corrected: "corrected",
|
|
@@ -39614,6 +39618,358 @@ var init_createauthorizeduserupdate = __esm(() => {
|
|
|
39614
39618
|
})(CreateAuthorizedUserUpdate$ ||= {});
|
|
39615
39619
|
});
|
|
39616
39620
|
|
|
39621
|
+
// src/models/components/facilitatorfee.ts
|
|
39622
|
+
var FacilitatorFee$inboundSchema, FacilitatorFee$outboundSchema, FacilitatorFee$;
|
|
39623
|
+
var init_facilitatorfee = __esm(() => {
|
|
39624
|
+
init_lib();
|
|
39625
|
+
FacilitatorFee$inboundSchema = objectType({
|
|
39626
|
+
total: numberType().int().optional(),
|
|
39627
|
+
totalDecimal: stringType().optional(),
|
|
39628
|
+
markup: numberType().int().optional(),
|
|
39629
|
+
markupDecimal: stringType().optional()
|
|
39630
|
+
});
|
|
39631
|
+
FacilitatorFee$outboundSchema = objectType({
|
|
39632
|
+
total: numberType().int().optional(),
|
|
39633
|
+
totalDecimal: stringType().optional(),
|
|
39634
|
+
markup: numberType().int().optional(),
|
|
39635
|
+
markupDecimal: stringType().optional()
|
|
39636
|
+
});
|
|
39637
|
+
((FacilitatorFee$) => {
|
|
39638
|
+
FacilitatorFee$.inboundSchema = FacilitatorFee$inboundSchema;
|
|
39639
|
+
FacilitatorFee$.outboundSchema = FacilitatorFee$outboundSchema;
|
|
39640
|
+
})(FacilitatorFee$ ||= {});
|
|
39641
|
+
});
|
|
39642
|
+
|
|
39643
|
+
// src/models/components/moovfeedetails.ts
|
|
39644
|
+
var MoovFeeDetails$inboundSchema, MoovFeeDetails$outboundSchema, MoovFeeDetails$;
|
|
39645
|
+
var init_moovfeedetails = __esm(() => {
|
|
39646
|
+
init_lib();
|
|
39647
|
+
MoovFeeDetails$inboundSchema = objectType({
|
|
39648
|
+
cardScheme: stringType().optional(),
|
|
39649
|
+
interchange: stringType().optional(),
|
|
39650
|
+
discount: stringType().optional(),
|
|
39651
|
+
moovProcessing: stringType()
|
|
39652
|
+
});
|
|
39653
|
+
MoovFeeDetails$outboundSchema = objectType({
|
|
39654
|
+
cardScheme: stringType().optional(),
|
|
39655
|
+
interchange: stringType().optional(),
|
|
39656
|
+
discount: stringType().optional(),
|
|
39657
|
+
moovProcessing: stringType()
|
|
39658
|
+
});
|
|
39659
|
+
((MoovFeeDetails$) => {
|
|
39660
|
+
MoovFeeDetails$.inboundSchema = MoovFeeDetails$inboundSchema;
|
|
39661
|
+
MoovFeeDetails$.outboundSchema = MoovFeeDetails$outboundSchema;
|
|
39662
|
+
})(MoovFeeDetails$ ||= {});
|
|
39663
|
+
});
|
|
39664
|
+
|
|
39665
|
+
// src/models/components/paymentmethodswallet.ts
|
|
39666
|
+
var PaymentMethodsWallet$inboundSchema, PaymentMethodsWallet$outboundSchema, PaymentMethodsWallet$;
|
|
39667
|
+
var init_paymentmethodswallet = __esm(() => {
|
|
39668
|
+
init_lib();
|
|
39669
|
+
PaymentMethodsWallet$inboundSchema = objectType({
|
|
39670
|
+
walletID: stringType()
|
|
39671
|
+
});
|
|
39672
|
+
PaymentMethodsWallet$outboundSchema = objectType({
|
|
39673
|
+
walletID: stringType()
|
|
39674
|
+
});
|
|
39675
|
+
((PaymentMethodsWallet$) => {
|
|
39676
|
+
PaymentMethodsWallet$.inboundSchema = PaymentMethodsWallet$inboundSchema;
|
|
39677
|
+
PaymentMethodsWallet$.outboundSchema = PaymentMethodsWallet$outboundSchema;
|
|
39678
|
+
})(PaymentMethodsWallet$ ||= {});
|
|
39679
|
+
});
|
|
39680
|
+
|
|
39681
|
+
// src/models/components/rtpfailurecode.ts
|
|
39682
|
+
var RTPFailureCode, RTPFailureCode$inboundSchema, RTPFailureCode$outboundSchema, RTPFailureCode$;
|
|
39683
|
+
var init_rtpfailurecode = __esm(() => {
|
|
39684
|
+
init_lib();
|
|
39685
|
+
RTPFailureCode = {
|
|
39686
|
+
ProcessingError: "processing-error",
|
|
39687
|
+
InvalidAccount: "invalid-account",
|
|
39688
|
+
AccountClosed: "account-closed",
|
|
39689
|
+
AccountBlocked: "account-blocked",
|
|
39690
|
+
InvalidField: "invalid-field",
|
|
39691
|
+
TransactionNotSupported: "transaction-not-supported",
|
|
39692
|
+
LimitExceeded: "limit-exceeded",
|
|
39693
|
+
InvalidAmount: "invalid-amount",
|
|
39694
|
+
CustomerDeceased: "customer-deceased",
|
|
39695
|
+
Other: "other"
|
|
39696
|
+
};
|
|
39697
|
+
RTPFailureCode$inboundSchema = nativeEnumType(RTPFailureCode);
|
|
39698
|
+
RTPFailureCode$outboundSchema = RTPFailureCode$inboundSchema;
|
|
39699
|
+
((RTPFailureCode$) => {
|
|
39700
|
+
RTPFailureCode$.inboundSchema = RTPFailureCode$inboundSchema;
|
|
39701
|
+
RTPFailureCode$.outboundSchema = RTPFailureCode$outboundSchema;
|
|
39702
|
+
})(RTPFailureCode$ ||= {});
|
|
39703
|
+
});
|
|
39704
|
+
|
|
39705
|
+
// src/models/components/rtptransactionstatus.ts
|
|
39706
|
+
var RTPTransactionStatus, RTPTransactionStatus$inboundSchema, RTPTransactionStatus$outboundSchema, RTPTransactionStatus$;
|
|
39707
|
+
var init_rtptransactionstatus = __esm(() => {
|
|
39708
|
+
init_lib();
|
|
39709
|
+
RTPTransactionStatus = {
|
|
39710
|
+
Initiated: "initiated",
|
|
39711
|
+
Completed: "completed",
|
|
39712
|
+
Failed: "failed",
|
|
39713
|
+
AcceptedWithoutPosting: "accepted-without-posting"
|
|
39714
|
+
};
|
|
39715
|
+
RTPTransactionStatus$inboundSchema = nativeEnumType(RTPTransactionStatus);
|
|
39716
|
+
RTPTransactionStatus$outboundSchema = RTPTransactionStatus$inboundSchema;
|
|
39717
|
+
((RTPTransactionStatus$) => {
|
|
39718
|
+
RTPTransactionStatus$.inboundSchema = RTPTransactionStatus$inboundSchema;
|
|
39719
|
+
RTPTransactionStatus$.outboundSchema = RTPTransactionStatus$outboundSchema;
|
|
39720
|
+
})(RTPTransactionStatus$ ||= {});
|
|
39721
|
+
});
|
|
39722
|
+
|
|
39723
|
+
// src/models/components/rtptransactiondetails.ts
|
|
39724
|
+
var RTPTransactionDetails$inboundSchema, RTPTransactionDetails$outboundSchema, RTPTransactionDetails$;
|
|
39725
|
+
var init_rtptransactiondetails = __esm(() => {
|
|
39726
|
+
init_lib();
|
|
39727
|
+
init_rtpfailurecode();
|
|
39728
|
+
init_rtptransactionstatus();
|
|
39729
|
+
RTPTransactionDetails$inboundSchema = objectType({
|
|
39730
|
+
status: RTPTransactionStatus$inboundSchema,
|
|
39731
|
+
networkResponseCode: stringType().optional(),
|
|
39732
|
+
failureCode: RTPFailureCode$inboundSchema.optional(),
|
|
39733
|
+
initiatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
39734
|
+
completedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
39735
|
+
failedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
39736
|
+
acceptedWithoutPostingOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
|
|
39737
|
+
});
|
|
39738
|
+
RTPTransactionDetails$outboundSchema = objectType({
|
|
39739
|
+
status: RTPTransactionStatus$outboundSchema,
|
|
39740
|
+
networkResponseCode: stringType().optional(),
|
|
39741
|
+
failureCode: RTPFailureCode$outboundSchema.optional(),
|
|
39742
|
+
initiatedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
39743
|
+
completedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
39744
|
+
failedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
39745
|
+
acceptedWithoutPostingOn: dateType().transform((v2) => v2.toISOString()).optional()
|
|
39746
|
+
});
|
|
39747
|
+
((RTPTransactionDetails$) => {
|
|
39748
|
+
RTPTransactionDetails$.inboundSchema = RTPTransactionDetails$inboundSchema;
|
|
39749
|
+
RTPTransactionDetails$.outboundSchema = RTPTransactionDetails$outboundSchema;
|
|
39750
|
+
})(RTPTransactionDetails$ ||= {});
|
|
39751
|
+
});
|
|
39752
|
+
|
|
39753
|
+
// src/models/components/transferaccount.ts
|
|
39754
|
+
var TransferAccount$inboundSchema, TransferAccount$outboundSchema, TransferAccount$;
|
|
39755
|
+
var init_transferaccount = __esm(() => {
|
|
39756
|
+
init_lib();
|
|
39757
|
+
TransferAccount$inboundSchema = objectType({
|
|
39758
|
+
accountID: stringType(),
|
|
39759
|
+
email: stringType(),
|
|
39760
|
+
displayName: stringType()
|
|
39761
|
+
});
|
|
39762
|
+
TransferAccount$outboundSchema = objectType({
|
|
39763
|
+
accountID: stringType(),
|
|
39764
|
+
email: stringType(),
|
|
39765
|
+
displayName: stringType()
|
|
39766
|
+
});
|
|
39767
|
+
((TransferAccount$) => {
|
|
39768
|
+
TransferAccount$.inboundSchema = TransferAccount$inboundSchema;
|
|
39769
|
+
TransferAccount$.outboundSchema = TransferAccount$outboundSchema;
|
|
39770
|
+
})(TransferAccount$ ||= {});
|
|
39771
|
+
});
|
|
39772
|
+
|
|
39773
|
+
// src/models/components/transferdestination.ts
|
|
39774
|
+
var TransferDestination$inboundSchema, TransferDestination$outboundSchema, TransferDestination$;
|
|
39775
|
+
var init_transferdestination = __esm(() => {
|
|
39776
|
+
init_lib();
|
|
39777
|
+
init_achtransactiondetails();
|
|
39778
|
+
init_applepayresponse();
|
|
39779
|
+
init_cardtransactiondetails();
|
|
39780
|
+
init_paymentmethodsbankaccount();
|
|
39781
|
+
init_paymentmethodscard();
|
|
39782
|
+
init_paymentmethodswallet();
|
|
39783
|
+
init_paymentmethodtype();
|
|
39784
|
+
init_rtptransactiondetails();
|
|
39785
|
+
init_transferaccount();
|
|
39786
|
+
TransferDestination$inboundSchema = objectType({
|
|
39787
|
+
paymentMethodID: stringType(),
|
|
39788
|
+
paymentMethodType: PaymentMethodType$inboundSchema,
|
|
39789
|
+
account: TransferAccount$inboundSchema,
|
|
39790
|
+
bankAccount: PaymentMethodsBankAccount$inboundSchema.optional(),
|
|
39791
|
+
wallet: PaymentMethodsWallet$inboundSchema.optional(),
|
|
39792
|
+
card: PaymentMethodsCard$inboundSchema.optional(),
|
|
39793
|
+
achDetails: ACHTransactionDetails$inboundSchema.optional(),
|
|
39794
|
+
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
39795
|
+
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
39796
|
+
rtpDetails: RTPTransactionDetails$inboundSchema.optional()
|
|
39797
|
+
});
|
|
39798
|
+
TransferDestination$outboundSchema = objectType({
|
|
39799
|
+
paymentMethodID: stringType(),
|
|
39800
|
+
paymentMethodType: PaymentMethodType$outboundSchema,
|
|
39801
|
+
account: TransferAccount$outboundSchema,
|
|
39802
|
+
bankAccount: PaymentMethodsBankAccount$outboundSchema.optional(),
|
|
39803
|
+
wallet: PaymentMethodsWallet$outboundSchema.optional(),
|
|
39804
|
+
card: PaymentMethodsCard$outboundSchema.optional(),
|
|
39805
|
+
achDetails: ACHTransactionDetails$outboundSchema.optional(),
|
|
39806
|
+
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
39807
|
+
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
39808
|
+
rtpDetails: RTPTransactionDetails$outboundSchema.optional()
|
|
39809
|
+
});
|
|
39810
|
+
((TransferDestination$) => {
|
|
39811
|
+
TransferDestination$.inboundSchema = TransferDestination$inboundSchema;
|
|
39812
|
+
TransferDestination$.outboundSchema = TransferDestination$outboundSchema;
|
|
39813
|
+
})(TransferDestination$ ||= {});
|
|
39814
|
+
});
|
|
39815
|
+
|
|
39816
|
+
// src/models/components/transferfailurereason.ts
|
|
39817
|
+
var TransferFailureReason, TransferFailureReason$inboundSchema, TransferFailureReason$outboundSchema, TransferFailureReason$;
|
|
39818
|
+
var init_transferfailurereason = __esm(() => {
|
|
39819
|
+
init_lib();
|
|
39820
|
+
TransferFailureReason = {
|
|
39821
|
+
SourcePaymentError: "source-payment-error",
|
|
39822
|
+
DestinationPaymentError: "destination-payment-error",
|
|
39823
|
+
WalletInsufficientFunds: "wallet-insufficient-funds",
|
|
39824
|
+
RejectedHighRisk: "rejected-high-risk",
|
|
39825
|
+
ProcessingError: "processing-error"
|
|
39826
|
+
};
|
|
39827
|
+
TransferFailureReason$inboundSchema = nativeEnumType(TransferFailureReason);
|
|
39828
|
+
TransferFailureReason$outboundSchema = TransferFailureReason$inboundSchema;
|
|
39829
|
+
((TransferFailureReason$) => {
|
|
39830
|
+
TransferFailureReason$.inboundSchema = TransferFailureReason$inboundSchema;
|
|
39831
|
+
TransferFailureReason$.outboundSchema = TransferFailureReason$outboundSchema;
|
|
39832
|
+
})(TransferFailureReason$ ||= {});
|
|
39833
|
+
});
|
|
39834
|
+
|
|
39835
|
+
// src/models/components/transfersource.ts
|
|
39836
|
+
var TransferSource$inboundSchema, TransferSource$outboundSchema, TransferSource$;
|
|
39837
|
+
var init_transfersource = __esm(() => {
|
|
39838
|
+
init_lib();
|
|
39839
|
+
init_achtransactiondetails();
|
|
39840
|
+
init_applepayresponse();
|
|
39841
|
+
init_cardtransactiondetails();
|
|
39842
|
+
init_paymentmethodsbankaccount();
|
|
39843
|
+
init_paymentmethodscard();
|
|
39844
|
+
init_paymentmethodswallet();
|
|
39845
|
+
init_paymentmethodtype();
|
|
39846
|
+
init_terminalcard();
|
|
39847
|
+
init_transferaccount();
|
|
39848
|
+
TransferSource$inboundSchema = objectType({
|
|
39849
|
+
transferID: stringType().optional(),
|
|
39850
|
+
paymentMethodID: stringType(),
|
|
39851
|
+
paymentMethodType: PaymentMethodType$inboundSchema,
|
|
39852
|
+
account: TransferAccount$inboundSchema,
|
|
39853
|
+
bankAccount: PaymentMethodsBankAccount$inboundSchema.optional(),
|
|
39854
|
+
wallet: PaymentMethodsWallet$inboundSchema.optional(),
|
|
39855
|
+
card: PaymentMethodsCard$inboundSchema.optional(),
|
|
39856
|
+
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
39857
|
+
terminalCard: TerminalCard$inboundSchema.optional(),
|
|
39858
|
+
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
39859
|
+
achDetails: ACHTransactionDetails$inboundSchema.optional()
|
|
39860
|
+
});
|
|
39861
|
+
TransferSource$outboundSchema = objectType({
|
|
39862
|
+
transferID: stringType().optional(),
|
|
39863
|
+
paymentMethodID: stringType(),
|
|
39864
|
+
paymentMethodType: PaymentMethodType$outboundSchema,
|
|
39865
|
+
account: TransferAccount$outboundSchema,
|
|
39866
|
+
bankAccount: PaymentMethodsBankAccount$outboundSchema.optional(),
|
|
39867
|
+
wallet: PaymentMethodsWallet$outboundSchema.optional(),
|
|
39868
|
+
card: PaymentMethodsCard$outboundSchema.optional(),
|
|
39869
|
+
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
39870
|
+
terminalCard: TerminalCard$outboundSchema.optional(),
|
|
39871
|
+
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
39872
|
+
achDetails: ACHTransactionDetails$outboundSchema.optional()
|
|
39873
|
+
});
|
|
39874
|
+
((TransferSource$) => {
|
|
39875
|
+
TransferSource$.inboundSchema = TransferSource$inboundSchema;
|
|
39876
|
+
TransferSource$.outboundSchema = TransferSource$outboundSchema;
|
|
39877
|
+
})(TransferSource$ ||= {});
|
|
39878
|
+
});
|
|
39879
|
+
|
|
39880
|
+
// src/models/components/transferstatus.ts
|
|
39881
|
+
var TransferStatus, TransferStatus$inboundSchema, TransferStatus$outboundSchema, TransferStatus$;
|
|
39882
|
+
var init_transferstatus = __esm(() => {
|
|
39883
|
+
init_lib();
|
|
39884
|
+
TransferStatus = {
|
|
39885
|
+
Created: "created",
|
|
39886
|
+
Pending: "pending",
|
|
39887
|
+
Completed: "completed",
|
|
39888
|
+
Failed: "failed",
|
|
39889
|
+
Reversed: "reversed",
|
|
39890
|
+
Queued: "queued",
|
|
39891
|
+
Canceled: "canceled"
|
|
39892
|
+
};
|
|
39893
|
+
TransferStatus$inboundSchema = nativeEnumType(TransferStatus);
|
|
39894
|
+
TransferStatus$outboundSchema = TransferStatus$inboundSchema;
|
|
39895
|
+
((TransferStatus$) => {
|
|
39896
|
+
TransferStatus$.inboundSchema = TransferStatus$inboundSchema;
|
|
39897
|
+
TransferStatus$.outboundSchema = TransferStatus$outboundSchema;
|
|
39898
|
+
})(TransferStatus$ ||= {});
|
|
39899
|
+
});
|
|
39900
|
+
|
|
39901
|
+
// src/models/components/createdtransfer.ts
|
|
39902
|
+
var CreatedTransfer$inboundSchema, CreatedTransfer$outboundSchema, CreatedTransfer$;
|
|
39903
|
+
var init_createdtransfer = __esm(() => {
|
|
39904
|
+
init_lib();
|
|
39905
|
+
init_amount();
|
|
39906
|
+
init_cancellation();
|
|
39907
|
+
init_cardacquiringdispute();
|
|
39908
|
+
init_cardacquiringrefund();
|
|
39909
|
+
init_facilitatorfee();
|
|
39910
|
+
init_moovfeedetails();
|
|
39911
|
+
init_transferdestination();
|
|
39912
|
+
init_transferfailurereason();
|
|
39913
|
+
init_transfersource();
|
|
39914
|
+
init_transferstatus();
|
|
39915
|
+
CreatedTransfer$inboundSchema = objectType({
|
|
39916
|
+
transferID: stringType(),
|
|
39917
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
39918
|
+
source: TransferSource$inboundSchema.optional(),
|
|
39919
|
+
destination: TransferDestination$inboundSchema.optional(),
|
|
39920
|
+
completedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
39921
|
+
status: TransferStatus$inboundSchema.optional(),
|
|
39922
|
+
failureReason: TransferFailureReason$inboundSchema.optional(),
|
|
39923
|
+
amount: Amount$inboundSchema.optional(),
|
|
39924
|
+
description: stringType().optional(),
|
|
39925
|
+
metadata: recordType(stringType()).optional(),
|
|
39926
|
+
facilitatorFee: FacilitatorFee$inboundSchema.optional(),
|
|
39927
|
+
moovFee: numberType().int().optional(),
|
|
39928
|
+
moovFeeDecimal: stringType().optional(),
|
|
39929
|
+
moovFeeDetails: MoovFeeDetails$inboundSchema.optional(),
|
|
39930
|
+
groupID: stringType().optional(),
|
|
39931
|
+
cancellations: arrayType(Cancellation$inboundSchema).optional(),
|
|
39932
|
+
refundedAmount: Amount$inboundSchema.optional(),
|
|
39933
|
+
refunds: arrayType(CardAcquiringRefund$inboundSchema).optional(),
|
|
39934
|
+
disputedAmount: Amount$inboundSchema.optional(),
|
|
39935
|
+
disputes: arrayType(CardAcquiringDispute$inboundSchema).optional(),
|
|
39936
|
+
sweepID: stringType().optional(),
|
|
39937
|
+
scheduleID: stringType().optional(),
|
|
39938
|
+
occurrenceID: stringType().optional(),
|
|
39939
|
+
salesTaxAmount: Amount$inboundSchema.optional()
|
|
39940
|
+
});
|
|
39941
|
+
CreatedTransfer$outboundSchema = objectType({
|
|
39942
|
+
transferID: stringType(),
|
|
39943
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
39944
|
+
source: TransferSource$outboundSchema.optional(),
|
|
39945
|
+
destination: TransferDestination$outboundSchema.optional(),
|
|
39946
|
+
completedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
39947
|
+
status: TransferStatus$outboundSchema.optional(),
|
|
39948
|
+
failureReason: TransferFailureReason$outboundSchema.optional(),
|
|
39949
|
+
amount: Amount$outboundSchema.optional(),
|
|
39950
|
+
description: stringType().optional(),
|
|
39951
|
+
metadata: recordType(stringType()).optional(),
|
|
39952
|
+
facilitatorFee: FacilitatorFee$outboundSchema.optional(),
|
|
39953
|
+
moovFee: numberType().int().optional(),
|
|
39954
|
+
moovFeeDecimal: stringType().optional(),
|
|
39955
|
+
moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
|
|
39956
|
+
groupID: stringType().optional(),
|
|
39957
|
+
cancellations: arrayType(Cancellation$outboundSchema).optional(),
|
|
39958
|
+
refundedAmount: Amount$outboundSchema.optional(),
|
|
39959
|
+
refunds: arrayType(CardAcquiringRefund$outboundSchema).optional(),
|
|
39960
|
+
disputedAmount: Amount$outboundSchema.optional(),
|
|
39961
|
+
disputes: arrayType(CardAcquiringDispute$outboundSchema).optional(),
|
|
39962
|
+
sweepID: stringType().optional(),
|
|
39963
|
+
scheduleID: stringType().optional(),
|
|
39964
|
+
occurrenceID: stringType().optional(),
|
|
39965
|
+
salesTaxAmount: Amount$outboundSchema.optional()
|
|
39966
|
+
});
|
|
39967
|
+
((CreatedTransfer$) => {
|
|
39968
|
+
CreatedTransfer$.inboundSchema = CreatedTransfer$inboundSchema;
|
|
39969
|
+
CreatedTransfer$.outboundSchema = CreatedTransfer$outboundSchema;
|
|
39970
|
+
})(CreatedTransfer$ ||= {});
|
|
39971
|
+
});
|
|
39972
|
+
|
|
39617
39973
|
// src/types/blobs.ts
|
|
39618
39974
|
function isBlobLike(val) {
|
|
39619
39975
|
if (val instanceof Blob) {
|
|
@@ -39691,12 +40047,12 @@ var init_createevidencefilemultipart = __esm(() => {
|
|
|
39691
40047
|
FileT$.outboundSchema = FileT$outboundSchema;
|
|
39692
40048
|
})(FileT$ ||= {});
|
|
39693
40049
|
CreateEvidenceFileMultiPart$inboundSchema = objectType({
|
|
39694
|
-
|
|
39695
|
-
|
|
40050
|
+
file: lazyType(() => FileT$inboundSchema),
|
|
40051
|
+
evidenceType: EvidenceType$inboundSchema
|
|
39696
40052
|
});
|
|
39697
40053
|
CreateEvidenceFileMultiPart$outboundSchema = objectType({
|
|
39698
|
-
|
|
39699
|
-
|
|
40054
|
+
file: lazyType(() => FileT$outboundSchema).or(blobLikeSchema),
|
|
40055
|
+
evidenceType: EvidenceType$outboundSchema
|
|
39700
40056
|
});
|
|
39701
40057
|
((CreateEvidenceFileMultiPart$) => {
|
|
39702
40058
|
CreateEvidenceFileMultiPart$.inboundSchema = CreateEvidenceFileMultiPart$inboundSchema;
|
|
@@ -40190,28 +40546,6 @@ var init_createtransfersource = __esm(() => {
|
|
|
40190
40546
|
})(CreateTransferSource$ ||= {});
|
|
40191
40547
|
});
|
|
40192
40548
|
|
|
40193
|
-
// src/models/components/facilitatorfee.ts
|
|
40194
|
-
var FacilitatorFee$inboundSchema, FacilitatorFee$outboundSchema, FacilitatorFee$;
|
|
40195
|
-
var init_facilitatorfee = __esm(() => {
|
|
40196
|
-
init_lib();
|
|
40197
|
-
FacilitatorFee$inboundSchema = objectType({
|
|
40198
|
-
total: numberType().int().optional(),
|
|
40199
|
-
totalDecimal: stringType().optional(),
|
|
40200
|
-
markup: numberType().int().optional(),
|
|
40201
|
-
markupDecimal: stringType().optional()
|
|
40202
|
-
});
|
|
40203
|
-
FacilitatorFee$outboundSchema = objectType({
|
|
40204
|
-
total: numberType().int().optional(),
|
|
40205
|
-
totalDecimal: stringType().optional(),
|
|
40206
|
-
markup: numberType().int().optional(),
|
|
40207
|
-
markupDecimal: stringType().optional()
|
|
40208
|
-
});
|
|
40209
|
-
((FacilitatorFee$) => {
|
|
40210
|
-
FacilitatorFee$.inboundSchema = FacilitatorFee$inboundSchema;
|
|
40211
|
-
FacilitatorFee$.outboundSchema = FacilitatorFee$outboundSchema;
|
|
40212
|
-
})(FacilitatorFee$ ||= {});
|
|
40213
|
-
});
|
|
40214
|
-
|
|
40215
40549
|
// src/models/components/createtransfer.ts
|
|
40216
40550
|
var CreateTransfer$inboundSchema, CreateTransfer$outboundSchema, CreateTransfer$;
|
|
40217
40551
|
var init_createtransfer = __esm(() => {
|
|
@@ -41970,44 +42304,6 @@ var init_manualtermsofserviceupdate = __esm(() => {
|
|
|
41970
42304
|
})(ManualTermsOfServiceUpdate$ ||= {});
|
|
41971
42305
|
});
|
|
41972
42306
|
|
|
41973
|
-
// src/models/components/moovfeedetails.ts
|
|
41974
|
-
var MoovFeeDetails$inboundSchema, MoovFeeDetails$outboundSchema, MoovFeeDetails$;
|
|
41975
|
-
var init_moovfeedetails = __esm(() => {
|
|
41976
|
-
init_lib();
|
|
41977
|
-
MoovFeeDetails$inboundSchema = objectType({
|
|
41978
|
-
cardScheme: stringType().optional(),
|
|
41979
|
-
interchange: stringType().optional(),
|
|
41980
|
-
discount: stringType().optional(),
|
|
41981
|
-
moovProcessing: stringType()
|
|
41982
|
-
});
|
|
41983
|
-
MoovFeeDetails$outboundSchema = objectType({
|
|
41984
|
-
cardScheme: stringType().optional(),
|
|
41985
|
-
interchange: stringType().optional(),
|
|
41986
|
-
discount: stringType().optional(),
|
|
41987
|
-
moovProcessing: stringType()
|
|
41988
|
-
});
|
|
41989
|
-
((MoovFeeDetails$) => {
|
|
41990
|
-
MoovFeeDetails$.inboundSchema = MoovFeeDetails$inboundSchema;
|
|
41991
|
-
MoovFeeDetails$.outboundSchema = MoovFeeDetails$outboundSchema;
|
|
41992
|
-
})(MoovFeeDetails$ ||= {});
|
|
41993
|
-
});
|
|
41994
|
-
|
|
41995
|
-
// src/models/components/paymentmethodswallet.ts
|
|
41996
|
-
var PaymentMethodsWallet$inboundSchema, PaymentMethodsWallet$outboundSchema, PaymentMethodsWallet$;
|
|
41997
|
-
var init_paymentmethodswallet = __esm(() => {
|
|
41998
|
-
init_lib();
|
|
41999
|
-
PaymentMethodsWallet$inboundSchema = objectType({
|
|
42000
|
-
walletID: stringType()
|
|
42001
|
-
});
|
|
42002
|
-
PaymentMethodsWallet$outboundSchema = objectType({
|
|
42003
|
-
walletID: stringType()
|
|
42004
|
-
});
|
|
42005
|
-
((PaymentMethodsWallet$) => {
|
|
42006
|
-
PaymentMethodsWallet$.inboundSchema = PaymentMethodsWallet$inboundSchema;
|
|
42007
|
-
PaymentMethodsWallet$.outboundSchema = PaymentMethodsWallet$outboundSchema;
|
|
42008
|
-
})(PaymentMethodsWallet$ ||= {});
|
|
42009
|
-
});
|
|
42010
|
-
|
|
42011
42307
|
// src/models/components/moovwalletpaymentmethod.ts
|
|
42012
42308
|
var MoovWalletPaymentMethodPaymentMethodType, MoovWalletPaymentMethodPaymentMethodType$inboundSchema, MoovWalletPaymentMethodPaymentMethodType$outboundSchema, MoovWalletPaymentMethodPaymentMethodType$, MoovWalletPaymentMethod$inboundSchema, MoovWalletPaymentMethod$outboundSchema, MoovWalletPaymentMethod$;
|
|
42013
42309
|
var init_moovwalletpaymentmethod = __esm(() => {
|
|
@@ -43374,78 +43670,6 @@ var init_revoketokenrequest = __esm(() => {
|
|
|
43374
43670
|
})(RevokeTokenRequest$ ||= {});
|
|
43375
43671
|
});
|
|
43376
43672
|
|
|
43377
|
-
// src/models/components/rtpfailurecode.ts
|
|
43378
|
-
var RTPFailureCode, RTPFailureCode$inboundSchema, RTPFailureCode$outboundSchema, RTPFailureCode$;
|
|
43379
|
-
var init_rtpfailurecode = __esm(() => {
|
|
43380
|
-
init_lib();
|
|
43381
|
-
RTPFailureCode = {
|
|
43382
|
-
ProcessingError: "processing-error",
|
|
43383
|
-
InvalidAccount: "invalid-account",
|
|
43384
|
-
AccountClosed: "account-closed",
|
|
43385
|
-
AccountBlocked: "account-blocked",
|
|
43386
|
-
InvalidField: "invalid-field",
|
|
43387
|
-
TransactionNotSupported: "transaction-not-supported",
|
|
43388
|
-
LimitExceeded: "limit-exceeded",
|
|
43389
|
-
InvalidAmount: "invalid-amount",
|
|
43390
|
-
CustomerDeceased: "customer-deceased",
|
|
43391
|
-
Other: "other"
|
|
43392
|
-
};
|
|
43393
|
-
RTPFailureCode$inboundSchema = nativeEnumType(RTPFailureCode);
|
|
43394
|
-
RTPFailureCode$outboundSchema = RTPFailureCode$inboundSchema;
|
|
43395
|
-
((RTPFailureCode$) => {
|
|
43396
|
-
RTPFailureCode$.inboundSchema = RTPFailureCode$inboundSchema;
|
|
43397
|
-
RTPFailureCode$.outboundSchema = RTPFailureCode$outboundSchema;
|
|
43398
|
-
})(RTPFailureCode$ ||= {});
|
|
43399
|
-
});
|
|
43400
|
-
|
|
43401
|
-
// src/models/components/rtptransactionstatus.ts
|
|
43402
|
-
var RTPTransactionStatus, RTPTransactionStatus$inboundSchema, RTPTransactionStatus$outboundSchema, RTPTransactionStatus$;
|
|
43403
|
-
var init_rtptransactionstatus = __esm(() => {
|
|
43404
|
-
init_lib();
|
|
43405
|
-
RTPTransactionStatus = {
|
|
43406
|
-
Initiated: "initiated",
|
|
43407
|
-
Completed: "completed",
|
|
43408
|
-
Failed: "failed",
|
|
43409
|
-
AcceptedWithoutPosting: "accepted-without-posting"
|
|
43410
|
-
};
|
|
43411
|
-
RTPTransactionStatus$inboundSchema = nativeEnumType(RTPTransactionStatus);
|
|
43412
|
-
RTPTransactionStatus$outboundSchema = RTPTransactionStatus$inboundSchema;
|
|
43413
|
-
((RTPTransactionStatus$) => {
|
|
43414
|
-
RTPTransactionStatus$.inboundSchema = RTPTransactionStatus$inboundSchema;
|
|
43415
|
-
RTPTransactionStatus$.outboundSchema = RTPTransactionStatus$outboundSchema;
|
|
43416
|
-
})(RTPTransactionStatus$ ||= {});
|
|
43417
|
-
});
|
|
43418
|
-
|
|
43419
|
-
// src/models/components/rtptransactiondetails.ts
|
|
43420
|
-
var RTPTransactionDetails$inboundSchema, RTPTransactionDetails$outboundSchema, RTPTransactionDetails$;
|
|
43421
|
-
var init_rtptransactiondetails = __esm(() => {
|
|
43422
|
-
init_lib();
|
|
43423
|
-
init_rtpfailurecode();
|
|
43424
|
-
init_rtptransactionstatus();
|
|
43425
|
-
RTPTransactionDetails$inboundSchema = objectType({
|
|
43426
|
-
status: RTPTransactionStatus$inboundSchema,
|
|
43427
|
-
networkResponseCode: stringType().optional(),
|
|
43428
|
-
failureCode: RTPFailureCode$inboundSchema.optional(),
|
|
43429
|
-
initiatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
43430
|
-
completedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
43431
|
-
failedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
43432
|
-
acceptedWithoutPostingOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
|
|
43433
|
-
});
|
|
43434
|
-
RTPTransactionDetails$outboundSchema = objectType({
|
|
43435
|
-
status: RTPTransactionStatus$outboundSchema,
|
|
43436
|
-
networkResponseCode: stringType().optional(),
|
|
43437
|
-
failureCode: RTPFailureCode$outboundSchema.optional(),
|
|
43438
|
-
initiatedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
43439
|
-
completedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
43440
|
-
failedOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
43441
|
-
acceptedWithoutPostingOn: dateType().transform((v2) => v2.toISOString()).optional()
|
|
43442
|
-
});
|
|
43443
|
-
((RTPTransactionDetails$) => {
|
|
43444
|
-
RTPTransactionDetails$.inboundSchema = RTPTransactionDetails$inboundSchema;
|
|
43445
|
-
RTPTransactionDetails$.outboundSchema = RTPTransactionDetails$outboundSchema;
|
|
43446
|
-
})(RTPTransactionDetails$ ||= {});
|
|
43447
|
-
});
|
|
43448
|
-
|
|
43449
43673
|
// src/models/components/schedulelistresponse.ts
|
|
43450
43674
|
var ScheduleListResponse$inboundSchema, ScheduleListResponse$outboundSchema, ScheduleListResponse$;
|
|
43451
43675
|
var init_schedulelistresponse = __esm(() => {
|
|
@@ -43732,154 +43956,6 @@ var init_terminalconfiguration = __esm(() => {
|
|
|
43732
43956
|
})(TerminalConfiguration$ ||= {});
|
|
43733
43957
|
});
|
|
43734
43958
|
|
|
43735
|
-
// src/models/components/transferaccount.ts
|
|
43736
|
-
var TransferAccount$inboundSchema, TransferAccount$outboundSchema, TransferAccount$;
|
|
43737
|
-
var init_transferaccount = __esm(() => {
|
|
43738
|
-
init_lib();
|
|
43739
|
-
TransferAccount$inboundSchema = objectType({
|
|
43740
|
-
accountID: stringType(),
|
|
43741
|
-
email: stringType(),
|
|
43742
|
-
displayName: stringType()
|
|
43743
|
-
});
|
|
43744
|
-
TransferAccount$outboundSchema = objectType({
|
|
43745
|
-
accountID: stringType(),
|
|
43746
|
-
email: stringType(),
|
|
43747
|
-
displayName: stringType()
|
|
43748
|
-
});
|
|
43749
|
-
((TransferAccount$) => {
|
|
43750
|
-
TransferAccount$.inboundSchema = TransferAccount$inboundSchema;
|
|
43751
|
-
TransferAccount$.outboundSchema = TransferAccount$outboundSchema;
|
|
43752
|
-
})(TransferAccount$ ||= {});
|
|
43753
|
-
});
|
|
43754
|
-
|
|
43755
|
-
// src/models/components/transferdestination.ts
|
|
43756
|
-
var TransferDestination$inboundSchema, TransferDestination$outboundSchema, TransferDestination$;
|
|
43757
|
-
var init_transferdestination = __esm(() => {
|
|
43758
|
-
init_lib();
|
|
43759
|
-
init_achtransactiondetails();
|
|
43760
|
-
init_applepayresponse();
|
|
43761
|
-
init_cardtransactiondetails();
|
|
43762
|
-
init_paymentmethodsbankaccount();
|
|
43763
|
-
init_paymentmethodscard();
|
|
43764
|
-
init_paymentmethodswallet();
|
|
43765
|
-
init_paymentmethodtype();
|
|
43766
|
-
init_rtptransactiondetails();
|
|
43767
|
-
init_transferaccount();
|
|
43768
|
-
TransferDestination$inboundSchema = objectType({
|
|
43769
|
-
paymentMethodID: stringType(),
|
|
43770
|
-
paymentMethodType: PaymentMethodType$inboundSchema,
|
|
43771
|
-
account: TransferAccount$inboundSchema,
|
|
43772
|
-
bankAccount: PaymentMethodsBankAccount$inboundSchema.optional(),
|
|
43773
|
-
wallet: PaymentMethodsWallet$inboundSchema.optional(),
|
|
43774
|
-
card: PaymentMethodsCard$inboundSchema.optional(),
|
|
43775
|
-
achDetails: ACHTransactionDetails$inboundSchema.optional(),
|
|
43776
|
-
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
43777
|
-
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
43778
|
-
rtpDetails: RTPTransactionDetails$inboundSchema.optional()
|
|
43779
|
-
});
|
|
43780
|
-
TransferDestination$outboundSchema = objectType({
|
|
43781
|
-
paymentMethodID: stringType(),
|
|
43782
|
-
paymentMethodType: PaymentMethodType$outboundSchema,
|
|
43783
|
-
account: TransferAccount$outboundSchema,
|
|
43784
|
-
bankAccount: PaymentMethodsBankAccount$outboundSchema.optional(),
|
|
43785
|
-
wallet: PaymentMethodsWallet$outboundSchema.optional(),
|
|
43786
|
-
card: PaymentMethodsCard$outboundSchema.optional(),
|
|
43787
|
-
achDetails: ACHTransactionDetails$outboundSchema.optional(),
|
|
43788
|
-
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
43789
|
-
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
43790
|
-
rtpDetails: RTPTransactionDetails$outboundSchema.optional()
|
|
43791
|
-
});
|
|
43792
|
-
((TransferDestination$) => {
|
|
43793
|
-
TransferDestination$.inboundSchema = TransferDestination$inboundSchema;
|
|
43794
|
-
TransferDestination$.outboundSchema = TransferDestination$outboundSchema;
|
|
43795
|
-
})(TransferDestination$ ||= {});
|
|
43796
|
-
});
|
|
43797
|
-
|
|
43798
|
-
// src/models/components/transferfailurereason.ts
|
|
43799
|
-
var TransferFailureReason, TransferFailureReason$inboundSchema, TransferFailureReason$outboundSchema, TransferFailureReason$;
|
|
43800
|
-
var init_transferfailurereason = __esm(() => {
|
|
43801
|
-
init_lib();
|
|
43802
|
-
TransferFailureReason = {
|
|
43803
|
-
SourcePaymentError: "source-payment-error",
|
|
43804
|
-
DestinationPaymentError: "destination-payment-error",
|
|
43805
|
-
WalletInsufficientFunds: "wallet-insufficient-funds",
|
|
43806
|
-
RejectedHighRisk: "rejected-high-risk",
|
|
43807
|
-
ProcessingError: "processing-error"
|
|
43808
|
-
};
|
|
43809
|
-
TransferFailureReason$inboundSchema = nativeEnumType(TransferFailureReason);
|
|
43810
|
-
TransferFailureReason$outboundSchema = TransferFailureReason$inboundSchema;
|
|
43811
|
-
((TransferFailureReason$) => {
|
|
43812
|
-
TransferFailureReason$.inboundSchema = TransferFailureReason$inboundSchema;
|
|
43813
|
-
TransferFailureReason$.outboundSchema = TransferFailureReason$outboundSchema;
|
|
43814
|
-
})(TransferFailureReason$ ||= {});
|
|
43815
|
-
});
|
|
43816
|
-
|
|
43817
|
-
// src/models/components/transfersource.ts
|
|
43818
|
-
var TransferSource$inboundSchema, TransferSource$outboundSchema, TransferSource$;
|
|
43819
|
-
var init_transfersource = __esm(() => {
|
|
43820
|
-
init_lib();
|
|
43821
|
-
init_achtransactiondetails();
|
|
43822
|
-
init_applepayresponse();
|
|
43823
|
-
init_cardtransactiondetails();
|
|
43824
|
-
init_paymentmethodsbankaccount();
|
|
43825
|
-
init_paymentmethodscard();
|
|
43826
|
-
init_paymentmethodswallet();
|
|
43827
|
-
init_paymentmethodtype();
|
|
43828
|
-
init_terminalcard();
|
|
43829
|
-
init_transferaccount();
|
|
43830
|
-
TransferSource$inboundSchema = objectType({
|
|
43831
|
-
transferID: stringType().optional(),
|
|
43832
|
-
paymentMethodID: stringType(),
|
|
43833
|
-
paymentMethodType: PaymentMethodType$inboundSchema,
|
|
43834
|
-
account: TransferAccount$inboundSchema,
|
|
43835
|
-
bankAccount: PaymentMethodsBankAccount$inboundSchema.optional(),
|
|
43836
|
-
wallet: PaymentMethodsWallet$inboundSchema.optional(),
|
|
43837
|
-
card: PaymentMethodsCard$inboundSchema.optional(),
|
|
43838
|
-
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
43839
|
-
terminalCard: TerminalCard$inboundSchema.optional(),
|
|
43840
|
-
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
43841
|
-
achDetails: ACHTransactionDetails$inboundSchema.optional()
|
|
43842
|
-
});
|
|
43843
|
-
TransferSource$outboundSchema = objectType({
|
|
43844
|
-
transferID: stringType().optional(),
|
|
43845
|
-
paymentMethodID: stringType(),
|
|
43846
|
-
paymentMethodType: PaymentMethodType$outboundSchema,
|
|
43847
|
-
account: TransferAccount$outboundSchema,
|
|
43848
|
-
bankAccount: PaymentMethodsBankAccount$outboundSchema.optional(),
|
|
43849
|
-
wallet: PaymentMethodsWallet$outboundSchema.optional(),
|
|
43850
|
-
card: PaymentMethodsCard$outboundSchema.optional(),
|
|
43851
|
-
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
43852
|
-
terminalCard: TerminalCard$outboundSchema.optional(),
|
|
43853
|
-
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
43854
|
-
achDetails: ACHTransactionDetails$outboundSchema.optional()
|
|
43855
|
-
});
|
|
43856
|
-
((TransferSource$) => {
|
|
43857
|
-
TransferSource$.inboundSchema = TransferSource$inboundSchema;
|
|
43858
|
-
TransferSource$.outboundSchema = TransferSource$outboundSchema;
|
|
43859
|
-
})(TransferSource$ ||= {});
|
|
43860
|
-
});
|
|
43861
|
-
|
|
43862
|
-
// src/models/components/transferstatus.ts
|
|
43863
|
-
var TransferStatus, TransferStatus$inboundSchema, TransferStatus$outboundSchema, TransferStatus$;
|
|
43864
|
-
var init_transferstatus = __esm(() => {
|
|
43865
|
-
init_lib();
|
|
43866
|
-
TransferStatus = {
|
|
43867
|
-
Created: "created",
|
|
43868
|
-
Pending: "pending",
|
|
43869
|
-
Completed: "completed",
|
|
43870
|
-
Failed: "failed",
|
|
43871
|
-
Reversed: "reversed",
|
|
43872
|
-
Queued: "queued",
|
|
43873
|
-
Canceled: "canceled"
|
|
43874
|
-
};
|
|
43875
|
-
TransferStatus$inboundSchema = nativeEnumType(TransferStatus);
|
|
43876
|
-
TransferStatus$outboundSchema = TransferStatus$inboundSchema;
|
|
43877
|
-
((TransferStatus$) => {
|
|
43878
|
-
TransferStatus$.inboundSchema = TransferStatus$inboundSchema;
|
|
43879
|
-
TransferStatus$.outboundSchema = TransferStatus$outboundSchema;
|
|
43880
|
-
})(TransferStatus$ ||= {});
|
|
43881
|
-
});
|
|
43882
|
-
|
|
43883
43959
|
// src/models/components/transfer.ts
|
|
43884
43960
|
var Transfer$inboundSchema, Transfer$outboundSchema, Transfer$;
|
|
43885
43961
|
var init_transfer = __esm(() => {
|
|
@@ -43971,20 +44047,6 @@ var init_transferoptions = __esm(() => {
|
|
|
43971
44047
|
})(TransferOptions$ ||= {});
|
|
43972
44048
|
});
|
|
43973
44049
|
|
|
43974
|
-
// src/models/components/transferresponse.ts
|
|
43975
|
-
var TransferResponse$inboundSchema, TransferResponse$outboundSchema, TransferResponse$;
|
|
43976
|
-
var init_transferresponse = __esm(() => {
|
|
43977
|
-
init_lib();
|
|
43978
|
-
init_asynctransfer();
|
|
43979
|
-
init_transfer();
|
|
43980
|
-
TransferResponse$inboundSchema = unionType([AsyncTransfer$inboundSchema, Transfer$inboundSchema]);
|
|
43981
|
-
TransferResponse$outboundSchema = unionType([AsyncTransfer$outboundSchema, Transfer$outboundSchema]);
|
|
43982
|
-
((TransferResponse$) => {
|
|
43983
|
-
TransferResponse$.inboundSchema = TransferResponse$inboundSchema;
|
|
43984
|
-
TransferResponse$.outboundSchema = TransferResponse$outboundSchema;
|
|
43985
|
-
})(TransferResponse$ ||= {});
|
|
43986
|
-
});
|
|
43987
|
-
|
|
43988
44050
|
// src/models/components/transferwaitfor.ts
|
|
43989
44051
|
var TransferWaitFor, TransferWaitFor$inboundSchema, TransferWaitFor$outboundSchema, TransferWaitFor$;
|
|
43990
44052
|
var init_transferwaitfor = __esm(() => {
|
|
@@ -44784,6 +44846,7 @@ var init_components = __esm(() => {
|
|
|
44784
44846
|
init_createauthorizeduserupdate();
|
|
44785
44847
|
init_createbusinesserror();
|
|
44786
44848
|
init_createbusinessprofile();
|
|
44849
|
+
init_createdtransfer();
|
|
44787
44850
|
init_createevidencefilemultipart();
|
|
44788
44851
|
init_createevidencetext();
|
|
44789
44852
|
init_createfeeplanagreement();
|
|
@@ -45001,7 +45064,6 @@ var init_components = __esm(() => {
|
|
|
45001
45064
|
init_transferdestination();
|
|
45002
45065
|
init_transferfailurereason();
|
|
45003
45066
|
init_transferoptions();
|
|
45004
|
-
init_transferresponse();
|
|
45005
45067
|
init_transfersource();
|
|
45006
45068
|
init_transferstatus();
|
|
45007
45069
|
init_transferwaitfor();
|
|
@@ -45219,11 +45281,11 @@ var init_brandvalidationerror = __esm(() => {
|
|
|
45219
45281
|
});
|
|
45220
45282
|
|
|
45221
45283
|
// src/models/errors/cardacquiringrefund.ts
|
|
45222
|
-
var
|
|
45284
|
+
var CardAcquiringRefund5, CardAcquiringRefund$inboundSchema2, CardAcquiringRefund$outboundSchema2, CardAcquiringRefund$2;
|
|
45223
45285
|
var init_cardacquiringrefund2 = __esm(() => {
|
|
45224
45286
|
init_lib();
|
|
45225
45287
|
init_components();
|
|
45226
|
-
|
|
45288
|
+
CardAcquiringRefund5 = class CardAcquiringRefund5 extends Error {
|
|
45227
45289
|
refundID;
|
|
45228
45290
|
createdOn;
|
|
45229
45291
|
updatedOn;
|
|
@@ -45253,9 +45315,9 @@ var init_cardacquiringrefund2 = __esm(() => {
|
|
|
45253
45315
|
amount: Amount$inboundSchema,
|
|
45254
45316
|
cardDetails: RefundCardDetails$inboundSchema.optional()
|
|
45255
45317
|
}).transform((v2) => {
|
|
45256
|
-
return new
|
|
45318
|
+
return new CardAcquiringRefund5(v2);
|
|
45257
45319
|
});
|
|
45258
|
-
CardAcquiringRefund$outboundSchema2 = instanceOfType(
|
|
45320
|
+
CardAcquiringRefund$outboundSchema2 = instanceOfType(CardAcquiringRefund5).transform((v2) => v2.data$).pipe(objectType({
|
|
45259
45321
|
refundID: stringType(),
|
|
45260
45322
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
45261
45323
|
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
@@ -45833,61 +45895,6 @@ var init_patchsweepconfigerror = __esm(() => {
|
|
|
45833
45895
|
})(PatchSweepConfigError$ ||= {});
|
|
45834
45896
|
});
|
|
45835
45897
|
|
|
45836
|
-
// src/models/errors/receiptvalidationerror.ts
|
|
45837
|
-
var ReceiptValidationError, ReceiptValidationError$inboundSchema, ReceiptValidationError$outboundSchema, ReceiptValidationError$;
|
|
45838
|
-
var init_receiptvalidationerror = __esm(() => {
|
|
45839
|
-
init_lib();
|
|
45840
|
-
ReceiptValidationError = class ReceiptValidationError extends Error {
|
|
45841
|
-
kind;
|
|
45842
|
-
email;
|
|
45843
|
-
emailAccountID;
|
|
45844
|
-
forTransferID;
|
|
45845
|
-
forScheduleID;
|
|
45846
|
-
forOccurrenceID;
|
|
45847
|
-
data$;
|
|
45848
|
-
constructor(err) {
|
|
45849
|
-
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
45850
|
-
super(message);
|
|
45851
|
-
this.data$ = err;
|
|
45852
|
-
if (err.kind != null)
|
|
45853
|
-
this.kind = err.kind;
|
|
45854
|
-
if (err.email != null)
|
|
45855
|
-
this.email = err.email;
|
|
45856
|
-
if (err.emailAccountID != null)
|
|
45857
|
-
this.emailAccountID = err.emailAccountID;
|
|
45858
|
-
if (err.forTransferID != null)
|
|
45859
|
-
this.forTransferID = err.forTransferID;
|
|
45860
|
-
if (err.forScheduleID != null)
|
|
45861
|
-
this.forScheduleID = err.forScheduleID;
|
|
45862
|
-
if (err.forOccurrenceID != null)
|
|
45863
|
-
this.forOccurrenceID = err.forOccurrenceID;
|
|
45864
|
-
this.name = "ReceiptValidationError";
|
|
45865
|
-
}
|
|
45866
|
-
};
|
|
45867
|
-
ReceiptValidationError$inboundSchema = objectType({
|
|
45868
|
-
kind: stringType().optional(),
|
|
45869
|
-
email: stringType().optional(),
|
|
45870
|
-
emailAccountID: stringType().optional(),
|
|
45871
|
-
forTransferID: stringType().optional(),
|
|
45872
|
-
forScheduleID: stringType().optional(),
|
|
45873
|
-
forOccurrenceID: stringType().optional()
|
|
45874
|
-
}).transform((v2) => {
|
|
45875
|
-
return new ReceiptValidationError(v2);
|
|
45876
|
-
});
|
|
45877
|
-
ReceiptValidationError$outboundSchema = instanceOfType(ReceiptValidationError).transform((v2) => v2.data$).pipe(objectType({
|
|
45878
|
-
kind: stringType().optional(),
|
|
45879
|
-
email: stringType().optional(),
|
|
45880
|
-
emailAccountID: stringType().optional(),
|
|
45881
|
-
forTransferID: stringType().optional(),
|
|
45882
|
-
forScheduleID: stringType().optional(),
|
|
45883
|
-
forOccurrenceID: stringType().optional()
|
|
45884
|
-
}));
|
|
45885
|
-
((ReceiptValidationError$) => {
|
|
45886
|
-
ReceiptValidationError$.inboundSchema = ReceiptValidationError$inboundSchema;
|
|
45887
|
-
ReceiptValidationError$.outboundSchema = ReceiptValidationError$outboundSchema;
|
|
45888
|
-
})(ReceiptValidationError$ ||= {});
|
|
45889
|
-
});
|
|
45890
|
-
|
|
45891
45898
|
// src/models/errors/refundvalidationerror.ts
|
|
45892
45899
|
var RefundValidationError, RefundValidationError$inboundSchema, RefundValidationError$outboundSchema, RefundValidationError$;
|
|
45893
45900
|
var init_refundvalidationerror = __esm(() => {
|
|
@@ -46195,11 +46202,11 @@ var init_terminalapplicationerror = __esm(() => {
|
|
|
46195
46202
|
});
|
|
46196
46203
|
|
|
46197
46204
|
// src/models/errors/transfer.ts
|
|
46198
|
-
var
|
|
46205
|
+
var Transfer, Transfer$inboundSchema2, Transfer$outboundSchema2, Transfer$2;
|
|
46199
46206
|
var init_transfer2 = __esm(() => {
|
|
46200
46207
|
init_lib();
|
|
46201
46208
|
init_components();
|
|
46202
|
-
|
|
46209
|
+
Transfer = class Transfer extends Error {
|
|
46203
46210
|
transferID;
|
|
46204
46211
|
createdOn;
|
|
46205
46212
|
source;
|
|
@@ -46300,9 +46307,9 @@ var init_transfer2 = __esm(() => {
|
|
|
46300
46307
|
occurrenceID: stringType().optional(),
|
|
46301
46308
|
salesTaxAmount: Amount$inboundSchema.optional()
|
|
46302
46309
|
}).transform((v2) => {
|
|
46303
|
-
return new
|
|
46310
|
+
return new Transfer(v2);
|
|
46304
46311
|
});
|
|
46305
|
-
Transfer$outboundSchema2 = instanceOfType(
|
|
46312
|
+
Transfer$outboundSchema2 = instanceOfType(Transfer).transform((v2) => v2.data$).pipe(objectType({
|
|
46306
46313
|
transferID: stringType(),
|
|
46307
46314
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
46308
46315
|
source: TransferSource$outboundSchema,
|
|
@@ -46726,7 +46733,6 @@ var init_errors = __esm(() => {
|
|
|
46726
46733
|
init_microdepositvalidationerror();
|
|
46727
46734
|
init_onboardinginviteerror();
|
|
46728
46735
|
init_patchsweepconfigerror();
|
|
46729
|
-
init_receiptvalidationerror();
|
|
46730
46736
|
init_refundvalidationerror();
|
|
46731
46737
|
init_representativevalidationerror();
|
|
46732
46738
|
init_requestcarderror();
|
|
@@ -47570,7 +47576,7 @@ var init_createreceipts = __esm(() => {
|
|
|
47570
47576
|
})(CreateReceiptsGlobals$ ||= {});
|
|
47571
47577
|
CreateReceiptsResponse$inboundSchema = objectType({
|
|
47572
47578
|
Headers: recordType(arrayType(stringType())),
|
|
47573
|
-
Result: ReceiptResponse$inboundSchema
|
|
47579
|
+
Result: arrayType(ReceiptResponse$inboundSchema)
|
|
47574
47580
|
}).transform((v2) => {
|
|
47575
47581
|
return remap(v2, {
|
|
47576
47582
|
Headers: "headers",
|
|
@@ -47579,7 +47585,7 @@ var init_createreceipts = __esm(() => {
|
|
|
47579
47585
|
});
|
|
47580
47586
|
CreateReceiptsResponse$outboundSchema = objectType({
|
|
47581
47587
|
headers: recordType(arrayType(stringType())),
|
|
47582
|
-
result: ReceiptResponse$outboundSchema
|
|
47588
|
+
result: arrayType(ReceiptResponse$outboundSchema)
|
|
47583
47589
|
}).transform((v2) => {
|
|
47584
47590
|
return remap(v2, {
|
|
47585
47591
|
headers: "Headers",
|
|
@@ -47972,13 +47978,13 @@ var init_createtransfer2 = __esm(() => {
|
|
|
47972
47978
|
})(CreateTransferRequest$ ||= {});
|
|
47973
47979
|
CreateTransferResponseResult$inboundSchema = unionType([
|
|
47974
47980
|
AsyncTransfer$inboundSchema,
|
|
47975
|
-
|
|
47976
|
-
|
|
47981
|
+
CreatedTransfer$inboundSchema,
|
|
47982
|
+
Transfer$inboundSchema
|
|
47977
47983
|
]);
|
|
47978
47984
|
CreateTransferResponseResult$outboundSchema = unionType([
|
|
47979
47985
|
AsyncTransfer$outboundSchema,
|
|
47980
|
-
|
|
47981
|
-
|
|
47986
|
+
CreatedTransfer$outboundSchema,
|
|
47987
|
+
Transfer$outboundSchema
|
|
47982
47988
|
]);
|
|
47983
47989
|
((CreateTransferResponseResult$) => {
|
|
47984
47990
|
CreateTransferResponseResult$.inboundSchema = CreateTransferResponseResult$inboundSchema;
|
|
@@ -47988,8 +47994,8 @@ var init_createtransfer2 = __esm(() => {
|
|
|
47988
47994
|
Headers: recordType(arrayType(stringType())),
|
|
47989
47995
|
Result: unionType([
|
|
47990
47996
|
AsyncTransfer$inboundSchema,
|
|
47991
|
-
|
|
47992
|
-
|
|
47997
|
+
CreatedTransfer$inboundSchema,
|
|
47998
|
+
Transfer$inboundSchema
|
|
47993
47999
|
])
|
|
47994
48000
|
}).transform((v2) => {
|
|
47995
48001
|
return remap(v2, {
|
|
@@ -48001,8 +48007,8 @@ var init_createtransfer2 = __esm(() => {
|
|
|
48001
48007
|
headers: recordType(arrayType(stringType())),
|
|
48002
48008
|
result: unionType([
|
|
48003
48009
|
AsyncTransfer$outboundSchema,
|
|
48004
|
-
|
|
48005
|
-
|
|
48010
|
+
CreatedTransfer$outboundSchema,
|
|
48011
|
+
Transfer$outboundSchema
|
|
48006
48012
|
])
|
|
48007
48013
|
}).transform((v2) => {
|
|
48008
48014
|
return remap(v2, {
|
|
@@ -52794,10 +52800,10 @@ var init_listreceipts = __esm(() => {
|
|
|
52794
52800
|
ListReceiptsGlobals$.outboundSchema = ListReceiptsGlobals$outboundSchema;
|
|
52795
52801
|
})(ListReceiptsGlobals$ ||= {});
|
|
52796
52802
|
ListReceiptsRequest$inboundSchema = objectType({
|
|
52797
|
-
id: stringType()
|
|
52803
|
+
id: stringType()
|
|
52798
52804
|
});
|
|
52799
52805
|
ListReceiptsRequest$outboundSchema = objectType({
|
|
52800
|
-
id: stringType()
|
|
52806
|
+
id: stringType()
|
|
52801
52807
|
});
|
|
52802
52808
|
((ListReceiptsRequest$) => {
|
|
52803
52809
|
ListReceiptsRequest$.inboundSchema = ListReceiptsRequest$inboundSchema;
|
|
@@ -66037,7 +66043,7 @@ async function $do92(client, request, options) {
|
|
|
66037
66043
|
const [result] = await match(json(201, CreateReceiptsResponse$inboundSchema, {
|
|
66038
66044
|
hdrs: true,
|
|
66039
66045
|
key: "Result"
|
|
66040
|
-
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }),
|
|
66046
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 422, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
66041
66047
|
if (!result.ok) {
|
|
66042
66048
|
return [result, { status: "complete", request: req, response }];
|
|
66043
66049
|
}
|
|
@@ -66176,7 +66182,7 @@ var init_receiptsList2 = __esm(() => {
|
|
|
66176
66182
|
};
|
|
66177
66183
|
tool$receiptsList = {
|
|
66178
66184
|
name: "receipts-list",
|
|
66179
|
-
description: `List receipts by
|
|
66185
|
+
description: `List receipts by transferID, scheduleID, or occurrenceID.
|
|
66180
66186
|
|
|
66181
66187
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
66182
66188
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
@@ -70811,7 +70817,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
70811
70817
|
function createMCPServer(deps) {
|
|
70812
70818
|
const server = new McpServer({
|
|
70813
70819
|
name: "Moov",
|
|
70814
|
-
version: "0.10.
|
|
70820
|
+
version: "0.10.8"
|
|
70815
70821
|
});
|
|
70816
70822
|
const client = new MoovCore({
|
|
70817
70823
|
security: deps.security,
|
|
@@ -70819,7 +70825,7 @@ function createMCPServer(deps) {
|
|
|
70819
70825
|
serverURL: deps.serverURL,
|
|
70820
70826
|
serverIdx: deps.serverIdx
|
|
70821
70827
|
});
|
|
70822
|
-
const scopes = new Set(deps.scopes
|
|
70828
|
+
const scopes = new Set(deps.scopes);
|
|
70823
70829
|
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
70824
70830
|
const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
|
|
70825
70831
|
const resource = createRegisterResource(deps.logger, server, client, scopes);
|
|
@@ -70964,7 +70970,6 @@ var init_server2 = __esm(() => {
|
|
|
70964
70970
|
init_mcp();
|
|
70965
70971
|
init_core();
|
|
70966
70972
|
init_resources();
|
|
70967
|
-
init_scopes();
|
|
70968
70973
|
init_tools();
|
|
70969
70974
|
init_accountsAssignCountries2();
|
|
70970
70975
|
init_accountsCreate2();
|
|
@@ -72191,7 +72196,11 @@ function buildContext(process2) {
|
|
|
72191
72196
|
// src/mcp-server/cli/start/command.ts
|
|
72192
72197
|
init_lib();
|
|
72193
72198
|
init_console_logger();
|
|
72194
|
-
|
|
72199
|
+
|
|
72200
|
+
// src/mcp-server/scopes.ts
|
|
72201
|
+
var mcpScopes = [];
|
|
72202
|
+
|
|
72203
|
+
// src/mcp-server/cli/start/command.ts
|
|
72195
72204
|
var startCommand = tn({
|
|
72196
72205
|
loader: async () => {
|
|
72197
72206
|
const { main: main2 } = await Promise.resolve().then(() => (init_impl(), exports_impl));
|
|
@@ -72312,7 +72321,7 @@ var routes = rn({
|
|
|
72312
72321
|
var app = Ve(routes, {
|
|
72313
72322
|
name: "mcp",
|
|
72314
72323
|
versionInfo: {
|
|
72315
|
-
currentVersion: "0.10.
|
|
72324
|
+
currentVersion: "0.10.8"
|
|
72316
72325
|
}
|
|
72317
72326
|
});
|
|
72318
72327
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -72320,5 +72329,5 @@ export {
|
|
|
72320
72329
|
app
|
|
72321
72330
|
};
|
|
72322
72331
|
|
|
72323
|
-
//# debugId=
|
|
72332
|
+
//# debugId=A9D9FC1D1E81E5F164756E2164756E21
|
|
72324
72333
|
//# sourceMappingURL=mcp-server.js.map
|