@moovio/sdk 0.21.14 → 0.21.15
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 +96 -47
- package/bin/mcp-server.js +2071 -543
- package/bin/mcp-server.js.map +48 -11
- package/examples/package-lock.json +1 -1
- package/funcs/invoicesCreateInvoice.d.ts +18 -0
- package/funcs/invoicesCreateInvoice.d.ts.map +1 -0
- package/funcs/invoicesCreateInvoice.js +139 -0
- package/funcs/invoicesCreateInvoice.js.map +1 -0
- package/funcs/invoicesGetInvoice.d.ts +17 -0
- package/funcs/invoicesGetInvoice.d.ts.map +1 -0
- package/funcs/invoicesGetInvoice.js +129 -0
- package/funcs/invoicesGetInvoice.js.map +1 -0
- package/funcs/invoicesListInvoices.d.ts +18 -0
- package/funcs/invoicesListInvoices.d.ts.map +1 -0
- package/funcs/invoicesListInvoices.js +135 -0
- package/funcs/invoicesListInvoices.js.map +1 -0
- package/funcs/invoicesMarkPaidInvoice.d.ts +19 -0
- package/funcs/invoicesMarkPaidInvoice.d.ts.map +1 -0
- package/funcs/invoicesMarkPaidInvoice.js +144 -0
- package/funcs/invoicesMarkPaidInvoice.js.map +1 -0
- package/funcs/invoicesUpdateInvoice.d.ts +18 -0
- package/funcs/invoicesUpdateInvoice.d.ts.map +1 -0
- package/funcs/invoicesUpdateInvoice.js +143 -0
- package/funcs/invoicesUpdateInvoice.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +11 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/invoicesCreateInvoice.d.ts +8 -0
- package/mcp-server/tools/invoicesCreateInvoice.d.ts.map +1 -0
- package/mcp-server/tools/invoicesCreateInvoice.js +65 -0
- package/mcp-server/tools/invoicesCreateInvoice.js.map +1 -0
- package/mcp-server/tools/invoicesGetInvoice.d.ts +8 -0
- package/mcp-server/tools/invoicesGetInvoice.d.ts.map +1 -0
- package/mcp-server/tools/invoicesGetInvoice.js +65 -0
- package/mcp-server/tools/invoicesGetInvoice.js.map +1 -0
- package/mcp-server/tools/invoicesListInvoices.d.ts +8 -0
- package/mcp-server/tools/invoicesListInvoices.d.ts.map +1 -0
- package/mcp-server/tools/invoicesListInvoices.js +65 -0
- package/mcp-server/tools/invoicesListInvoices.js.map +1 -0
- package/mcp-server/tools/invoicesMarkPaidInvoice.d.ts +8 -0
- package/mcp-server/tools/invoicesMarkPaidInvoice.d.ts.map +1 -0
- package/mcp-server/tools/invoicesMarkPaidInvoice.js +66 -0
- package/mcp-server/tools/invoicesMarkPaidInvoice.js.map +1 -0
- package/mcp-server/tools/invoicesUpdateInvoice.d.ts +8 -0
- package/mcp-server/tools/invoicesUpdateInvoice.d.ts.map +1 -0
- package/mcp-server/tools/invoicesUpdateInvoice.js +65 -0
- package/mcp-server/tools/invoicesUpdateInvoice.js.map +1 -0
- package/models/components/amountdecimalupdate.d.ts +29 -0
- package/models/components/amountdecimalupdate.d.ts.map +1 -0
- package/models/components/amountdecimalupdate.js +60 -0
- package/models/components/amountdecimalupdate.js.map +1 -0
- package/models/components/createinvoice.d.ts +32 -0
- package/models/components/createinvoice.d.ts.map +1 -0
- package/models/components/createinvoice.js +72 -0
- package/models/components/createinvoice.js.map +1 -0
- package/models/components/index.d.ts +18 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +81 -0
- package/models/components/invoice.d.ts.map +1 -0
- package/models/components/invoice.js +107 -0
- package/models/components/invoice.js.map +1 -0
- package/models/components/invoiceexternalpayment.d.ts +35 -0
- package/models/components/invoiceexternalpayment.d.ts.map +1 -0
- package/models/components/invoiceexternalpayment.js +75 -0
- package/models/components/invoiceexternalpayment.js.map +1 -0
- package/models/components/invoicelineitem.d.ts +45 -0
- package/models/components/invoicelineitem.d.ts.map +1 -0
- package/models/components/invoicelineitem.js +68 -0
- package/models/components/invoicelineitem.js.map +1 -0
- package/models/components/invoicelineitemoption.d.ts +39 -0
- package/models/components/invoicelineitemoption.d.ts.map +1 -0
- package/models/components/invoicelineitemoption.js +65 -0
- package/models/components/invoicelineitemoption.js.map +1 -0
- package/models/components/invoicelineitemoptionvalidationerror.d.ts +24 -0
- package/models/components/invoicelineitemoptionvalidationerror.d.ts.map +1 -0
- package/models/components/invoicelineitemoptionvalidationerror.js +65 -0
- package/models/components/invoicelineitemoptionvalidationerror.js.map +1 -0
- package/models/components/invoicelineitems.d.ts +24 -0
- package/models/components/invoicelineitems.d.ts.map +1 -0
- package/models/components/invoicelineitems.js +59 -0
- package/models/components/invoicelineitems.js.map +1 -0
- package/models/components/invoicelineitemsupdate.d.ts +24 -0
- package/models/components/invoicelineitemsupdate.d.ts.map +1 -0
- package/models/components/invoicelineitemsupdate.js +59 -0
- package/models/components/invoicelineitemsupdate.js.map +1 -0
- package/models/components/invoicelineitemsvalidationerror.d.ts +22 -0
- package/models/components/invoicelineitemsvalidationerror.d.ts.map +1 -0
- package/models/components/invoicelineitemsvalidationerror.js +59 -0
- package/models/components/invoicelineitemsvalidationerror.js.map +1 -0
- package/models/components/invoicelineitemvalidationerror.d.ts +31 -0
- package/models/components/invoicelineitemvalidationerror.d.ts.map +1 -0
- package/models/components/invoicelineitemvalidationerror.js +70 -0
- package/models/components/invoicelineitemvalidationerror.js.map +1 -0
- package/models/components/invoicepayment.d.ts +23 -0
- package/models/components/invoicepayment.d.ts.map +1 -0
- package/models/components/invoicepayment.js +70 -0
- package/models/components/invoicepayment.js.map +1 -0
- package/models/components/invoicestatus.d.ts +16 -0
- package/models/components/invoicestatus.d.ts.map +1 -0
- package/models/components/invoicestatus.js +53 -0
- package/models/components/invoicestatus.js.map +1 -0
- package/models/components/invoicetransferpayment.d.ts +28 -0
- package/models/components/invoicetransferpayment.d.ts.map +1 -0
- package/models/components/invoicetransferpayment.js +68 -0
- package/models/components/invoicetransferpayment.js.map +1 -0
- package/models/components/markinvoicepaid.d.ts +21 -0
- package/models/components/markinvoicepaid.d.ts.map +1 -0
- package/models/components/markinvoicepaid.js +63 -0
- package/models/components/markinvoicepaid.js.map +1 -0
- package/models/components/updateinvoice.d.ts +36 -0
- package/models/components/updateinvoice.d.ts.map +1 -0
- package/models/components/updateinvoice.js +71 -0
- package/models/components/updateinvoice.js.map +1 -0
- package/models/components/webhookdata.d.ts +4 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +6 -0
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdatainvoicecreated.d.ts +19 -0
- package/models/components/webhookdatainvoicecreated.d.ts.map +1 -0
- package/models/components/webhookdatainvoicecreated.js +60 -0
- package/models/components/webhookdatainvoicecreated.js.map +1 -0
- package/models/components/webhookdatainvoiceupdated.d.ts +22 -0
- package/models/components/webhookdatainvoiceupdated.d.ts.map +1 -0
- package/models/components/webhookdatainvoiceupdated.js +63 -0
- package/models/components/webhookdatainvoiceupdated.js.map +1 -0
- package/models/components/webhookeventtype.d.ts +2 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +2 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/createinvoiceerror.d.ts +40 -0
- package/models/errors/createinvoiceerror.d.ts.map +1 -0
- package/models/errors/createinvoiceerror.js +100 -0
- package/models/errors/createinvoiceerror.js.map +1 -0
- package/models/errors/index.d.ts +4 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +4 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/listinvoicesvalidationerror.d.ts +33 -0
- package/models/errors/listinvoicesvalidationerror.d.ts.map +1 -0
- package/models/errors/listinvoicesvalidationerror.js +88 -0
- package/models/errors/listinvoicesvalidationerror.js.map +1 -0
- package/models/errors/markinvoicepaiderror.d.ts +30 -0
- package/models/errors/markinvoicepaiderror.d.ts.map +1 -0
- package/models/errors/markinvoicepaiderror.js +83 -0
- package/models/errors/markinvoicepaiderror.js.map +1 -0
- package/models/errors/updateinvoiceerror.d.ts +40 -0
- package/models/errors/updateinvoiceerror.d.ts.map +1 -0
- package/models/errors/updateinvoiceerror.js +99 -0
- package/models/errors/updateinvoiceerror.js.map +1 -0
- package/models/operations/createinvoice.d.ts +66 -0
- package/models/operations/createinvoice.d.ts.map +1 -0
- package/models/operations/createinvoice.js +122 -0
- package/models/operations/createinvoice.js.map +1 -0
- package/models/operations/getinvoice.d.ts +66 -0
- package/models/operations/getinvoice.d.ts.map +1 -0
- package/models/operations/getinvoice.js +114 -0
- package/models/operations/getinvoice.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listinvoices.d.ts +72 -0
- package/models/operations/listinvoices.d.ts.map +1 -0
- package/models/operations/listinvoices.js +120 -0
- package/models/operations/listinvoices.js.map +1 -0
- package/models/operations/markpaidinvoice.d.ts +68 -0
- package/models/operations/markpaidinvoice.d.ts.map +1 -0
- package/models/operations/markpaidinvoice.js +124 -0
- package/models/operations/markpaidinvoice.js.map +1 -0
- package/models/operations/updateinvoice.d.ts +68 -0
- package/models/operations/updateinvoice.d.ts.map +1 -0
- package/models/operations/updateinvoice.js +124 -0
- package/models/operations/updateinvoice.js.map +1 -0
- package/package.json +1 -1
- package/sdk/invoices.d.ts +41 -0
- package/sdk/invoices.d.ts.map +1 -0
- package/sdk/invoices.js +63 -0
- package/sdk/invoices.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/invoicesCreateInvoice.ts +201 -0
- package/src/funcs/invoicesGetInvoice.ts +185 -0
- package/src/funcs/invoicesListInvoices.ts +194 -0
- package/src/funcs/invoicesMarkPaidInvoice.ts +208 -0
- package/src/funcs/invoicesUpdateInvoice.ts +207 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/invoicesCreateInvoice.ts +38 -0
- package/src/mcp-server/tools/invoicesGetInvoice.ts +38 -0
- package/src/mcp-server/tools/invoicesListInvoices.ts +38 -0
- package/src/mcp-server/tools/invoicesMarkPaidInvoice.ts +39 -0
- package/src/mcp-server/tools/invoicesUpdateInvoice.ts +38 -0
- package/src/models/components/amountdecimalupdate.ts +65 -0
- package/src/models/components/createinvoice.ts +84 -0
- package/src/models/components/index.ts +18 -0
- package/src/models/components/invoice.ts +178 -0
- package/src/models/components/invoiceexternalpayment.ts +91 -0
- package/src/models/components/invoicelineitem.ts +95 -0
- package/src/models/components/invoicelineitemoption.ts +84 -0
- package/src/models/components/invoicelineitemoptionvalidationerror.ts +72 -0
- package/src/models/components/invoicelineitems.ts +63 -0
- package/src/models/components/invoicelineitemsupdate.ts +63 -0
- package/src/models/components/invoicelineitemsvalidationerror.ts +59 -0
- package/src/models/components/invoicelineitemvalidationerror.ts +85 -0
- package/src/models/components/invoicepayment.ts +77 -0
- package/src/models/components/invoicestatus.ts +25 -0
- package/src/models/components/invoicetransferpayment.ts +68 -0
- package/src/models/components/markinvoicepaid.ts +58 -0
- package/src/models/components/updateinvoice.ts +94 -0
- package/src/models/components/webhookdata.ts +20 -0
- package/src/models/components/webhookdatainvoicecreated.ts +55 -0
- package/src/models/components/webhookdatainvoiceupdated.ts +64 -0
- package/src/models/components/webhookeventtype.ts +2 -0
- package/src/models/errors/createinvoiceerror.ts +102 -0
- package/src/models/errors/index.ts +4 -0
- package/src/models/errors/listinvoicesvalidationerror.ts +86 -0
- package/src/models/errors/markinvoicepaiderror.ts +78 -0
- package/src/models/errors/updateinvoiceerror.ts +100 -0
- package/src/models/operations/createinvoice.ts +187 -0
- package/src/models/operations/getinvoice.ts +179 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listinvoices.ts +191 -0
- package/src/models/operations/markpaidinvoice.ts +191 -0
- package/src/models/operations/updateinvoice.ts +191 -0
- package/src/sdk/invoices.ts +100 -0
- package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34030,9 +34030,9 @@ var init_config = __esm(() => {
|
|
|
34030
34030
|
SDK_METADATA = {
|
|
34031
34031
|
language: "typescript",
|
|
34032
34032
|
openapiDocVersion: "latest",
|
|
34033
|
-
sdkVersion: "0.21.
|
|
34033
|
+
sdkVersion: "0.21.15",
|
|
34034
34034
|
genVersion: "2.755.9",
|
|
34035
|
-
userAgent: "speakeasy-sdk/typescript 0.21.
|
|
34035
|
+
userAgent: "speakeasy-sdk/typescript 0.21.15 2.755.9 latest @moovio/sdk"
|
|
34036
34036
|
};
|
|
34037
34037
|
});
|
|
34038
34038
|
|
|
@@ -37029,6 +37029,20 @@ var init_amount = __esm(() => {
|
|
|
37029
37029
|
});
|
|
37030
37030
|
});
|
|
37031
37031
|
|
|
37032
|
+
// src/models/components/amountdecimalupdate.ts
|
|
37033
|
+
var AmountDecimalUpdate$inboundSchema, AmountDecimalUpdate$outboundSchema;
|
|
37034
|
+
var init_amountdecimalupdate = __esm(() => {
|
|
37035
|
+
init_esm();
|
|
37036
|
+
AmountDecimalUpdate$inboundSchema = objectType({
|
|
37037
|
+
currency: stringType().optional(),
|
|
37038
|
+
valueDecimal: stringType().optional()
|
|
37039
|
+
});
|
|
37040
|
+
AmountDecimalUpdate$outboundSchema = objectType({
|
|
37041
|
+
currency: stringType().optional(),
|
|
37042
|
+
valueDecimal: stringType().optional()
|
|
37043
|
+
});
|
|
37044
|
+
});
|
|
37045
|
+
|
|
37032
37046
|
// src/models/components/amountdecimalvalidationerror.ts
|
|
37033
37047
|
var AmountDecimalValidationError$inboundSchema, AmountDecimalValidationError$outboundSchema;
|
|
37034
37048
|
var init_amountdecimalvalidationerror = __esm(() => {
|
|
@@ -42519,6 +42533,84 @@ var init_createindividualerror = __esm(() => {
|
|
|
42519
42533
|
});
|
|
42520
42534
|
});
|
|
42521
42535
|
|
|
42536
|
+
// src/models/components/invoicelineitemoption.ts
|
|
42537
|
+
var InvoiceLineItemOption$inboundSchema, InvoiceLineItemOption$outboundSchema;
|
|
42538
|
+
var init_invoicelineitemoption = __esm(() => {
|
|
42539
|
+
init_esm();
|
|
42540
|
+
init_amountdecimal();
|
|
42541
|
+
InvoiceLineItemOption$inboundSchema = objectType({
|
|
42542
|
+
name: stringType(),
|
|
42543
|
+
quantity: numberType().int(),
|
|
42544
|
+
priceModifier: AmountDecimal$inboundSchema.optional(),
|
|
42545
|
+
group: stringType().optional()
|
|
42546
|
+
});
|
|
42547
|
+
InvoiceLineItemOption$outboundSchema = objectType({
|
|
42548
|
+
name: stringType(),
|
|
42549
|
+
quantity: numberType().int(),
|
|
42550
|
+
priceModifier: AmountDecimal$outboundSchema.optional(),
|
|
42551
|
+
group: stringType().optional()
|
|
42552
|
+
});
|
|
42553
|
+
});
|
|
42554
|
+
|
|
42555
|
+
// src/models/components/invoicelineitem.ts
|
|
42556
|
+
var InvoiceLineItem$inboundSchema, InvoiceLineItem$outboundSchema;
|
|
42557
|
+
var init_invoicelineitem = __esm(() => {
|
|
42558
|
+
init_esm();
|
|
42559
|
+
init_amountdecimal();
|
|
42560
|
+
init_invoicelineitemoption();
|
|
42561
|
+
InvoiceLineItem$inboundSchema = objectType({
|
|
42562
|
+
name: stringType(),
|
|
42563
|
+
basePrice: AmountDecimal$inboundSchema,
|
|
42564
|
+
quantity: numberType().int(),
|
|
42565
|
+
options: arrayType(InvoiceLineItemOption$inboundSchema).optional(),
|
|
42566
|
+
productID: stringType().optional()
|
|
42567
|
+
});
|
|
42568
|
+
InvoiceLineItem$outboundSchema = objectType({
|
|
42569
|
+
name: stringType(),
|
|
42570
|
+
basePrice: AmountDecimal$outboundSchema,
|
|
42571
|
+
quantity: numberType().int(),
|
|
42572
|
+
options: arrayType(InvoiceLineItemOption$outboundSchema).optional(),
|
|
42573
|
+
productID: stringType().optional()
|
|
42574
|
+
});
|
|
42575
|
+
});
|
|
42576
|
+
|
|
42577
|
+
// src/models/components/invoicelineitems.ts
|
|
42578
|
+
var InvoiceLineItems$inboundSchema, InvoiceLineItems$outboundSchema;
|
|
42579
|
+
var init_invoicelineitems = __esm(() => {
|
|
42580
|
+
init_esm();
|
|
42581
|
+
init_invoicelineitem();
|
|
42582
|
+
InvoiceLineItems$inboundSchema = objectType({
|
|
42583
|
+
items: arrayType(InvoiceLineItem$inboundSchema)
|
|
42584
|
+
});
|
|
42585
|
+
InvoiceLineItems$outboundSchema = objectType({
|
|
42586
|
+
items: arrayType(InvoiceLineItem$outboundSchema)
|
|
42587
|
+
});
|
|
42588
|
+
});
|
|
42589
|
+
|
|
42590
|
+
// src/models/components/createinvoice.ts
|
|
42591
|
+
var CreateInvoice$inboundSchema, CreateInvoice$outboundSchema;
|
|
42592
|
+
var init_createinvoice = __esm(() => {
|
|
42593
|
+
init_esm();
|
|
42594
|
+
init_amountdecimal();
|
|
42595
|
+
init_invoicelineitems();
|
|
42596
|
+
CreateInvoice$inboundSchema = objectType({
|
|
42597
|
+
customerAccountID: stringType(),
|
|
42598
|
+
description: stringType(),
|
|
42599
|
+
lineItems: InvoiceLineItems$inboundSchema,
|
|
42600
|
+
invoiceDate: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
42601
|
+
dueDate: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
42602
|
+
taxAmount: AmountDecimal$inboundSchema.optional()
|
|
42603
|
+
});
|
|
42604
|
+
CreateInvoice$outboundSchema = objectType({
|
|
42605
|
+
customerAccountID: stringType(),
|
|
42606
|
+
description: stringType(),
|
|
42607
|
+
lineItems: InvoiceLineItems$outboundSchema,
|
|
42608
|
+
invoiceDate: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
42609
|
+
dueDate: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
42610
|
+
taxAmount: AmountDecimal$outboundSchema.optional()
|
|
42611
|
+
});
|
|
42612
|
+
});
|
|
42613
|
+
|
|
42522
42614
|
// src/models/components/paymentlinkcustomeroptions.ts
|
|
42523
42615
|
var PaymentLinkCustomerOptions$inboundSchema, PaymentLinkCustomerOptions$outboundSchema;
|
|
42524
42616
|
var init_paymentlinkcustomeroptions = __esm(() => {
|
|
@@ -44237,6 +44329,216 @@ var init_institutionssearchresponse = __esm(() => {
|
|
|
44237
44329
|
});
|
|
44238
44330
|
});
|
|
44239
44331
|
|
|
44332
|
+
// src/models/components/invoiceexternalpayment.ts
|
|
44333
|
+
var InvoiceExternalPaymentPaymentType, InvoiceExternalPaymentPaymentType$inboundSchema, InvoiceExternalPaymentPaymentType$outboundSchema, InvoiceExternalPayment$inboundSchema, InvoiceExternalPayment$outboundSchema;
|
|
44334
|
+
var init_invoiceexternalpayment = __esm(() => {
|
|
44335
|
+
init_esm();
|
|
44336
|
+
init_amountdecimal();
|
|
44337
|
+
InvoiceExternalPaymentPaymentType = {
|
|
44338
|
+
External: "external"
|
|
44339
|
+
};
|
|
44340
|
+
InvoiceExternalPaymentPaymentType$inboundSchema = nativeEnumType(InvoiceExternalPaymentPaymentType);
|
|
44341
|
+
InvoiceExternalPaymentPaymentType$outboundSchema = InvoiceExternalPaymentPaymentType$inboundSchema;
|
|
44342
|
+
InvoiceExternalPayment$inboundSchema = objectType({
|
|
44343
|
+
paymentType: InvoiceExternalPaymentPaymentType$inboundSchema,
|
|
44344
|
+
description: stringType(),
|
|
44345
|
+
foreignID: stringType().optional(),
|
|
44346
|
+
paymentDate: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
44347
|
+
amount: AmountDecimal$inboundSchema
|
|
44348
|
+
});
|
|
44349
|
+
InvoiceExternalPayment$outboundSchema = objectType({
|
|
44350
|
+
paymentType: InvoiceExternalPaymentPaymentType$outboundSchema,
|
|
44351
|
+
description: stringType(),
|
|
44352
|
+
foreignID: stringType().optional(),
|
|
44353
|
+
paymentDate: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
44354
|
+
amount: AmountDecimal$outboundSchema
|
|
44355
|
+
});
|
|
44356
|
+
});
|
|
44357
|
+
|
|
44358
|
+
// src/models/components/invoicetransferpayment.ts
|
|
44359
|
+
var PaymentType, PaymentType$inboundSchema, PaymentType$outboundSchema, InvoiceTransferPayment$inboundSchema, InvoiceTransferPayment$outboundSchema;
|
|
44360
|
+
var init_invoicetransferpayment = __esm(() => {
|
|
44361
|
+
init_esm();
|
|
44362
|
+
PaymentType = {
|
|
44363
|
+
Transfer: "transfer"
|
|
44364
|
+
};
|
|
44365
|
+
PaymentType$inboundSchema = nativeEnumType(PaymentType);
|
|
44366
|
+
PaymentType$outboundSchema = PaymentType$inboundSchema;
|
|
44367
|
+
InvoiceTransferPayment$inboundSchema = objectType({
|
|
44368
|
+
paymentType: PaymentType$inboundSchema,
|
|
44369
|
+
transferID: stringType()
|
|
44370
|
+
});
|
|
44371
|
+
InvoiceTransferPayment$outboundSchema = objectType({
|
|
44372
|
+
paymentType: PaymentType$outboundSchema,
|
|
44373
|
+
transferID: stringType()
|
|
44374
|
+
});
|
|
44375
|
+
});
|
|
44376
|
+
|
|
44377
|
+
// src/models/components/invoicepayment.ts
|
|
44378
|
+
var InvoicePayment$inboundSchema, InvoicePayment$outboundSchema;
|
|
44379
|
+
var init_invoicepayment = __esm(() => {
|
|
44380
|
+
init_esm();
|
|
44381
|
+
init_invoiceexternalpayment();
|
|
44382
|
+
init_invoicetransferpayment();
|
|
44383
|
+
InvoicePayment$inboundSchema = unionType([
|
|
44384
|
+
InvoiceExternalPayment$inboundSchema.and(objectType({ paymentType: literalType("external") }).transform((v2) => ({
|
|
44385
|
+
paymentType: v2.paymentType
|
|
44386
|
+
}))),
|
|
44387
|
+
InvoiceTransferPayment$inboundSchema.and(objectType({ paymentType: literalType("transfer") }).transform((v2) => ({
|
|
44388
|
+
paymentType: v2.paymentType
|
|
44389
|
+
})))
|
|
44390
|
+
]);
|
|
44391
|
+
InvoicePayment$outboundSchema = unionType([
|
|
44392
|
+
InvoiceExternalPayment$outboundSchema.and(objectType({ paymentType: literalType("external") }).transform((v2) => ({
|
|
44393
|
+
paymentType: v2.paymentType
|
|
44394
|
+
}))),
|
|
44395
|
+
InvoiceTransferPayment$outboundSchema.and(objectType({ paymentType: literalType("transfer") }).transform((v2) => ({
|
|
44396
|
+
paymentType: v2.paymentType
|
|
44397
|
+
})))
|
|
44398
|
+
]);
|
|
44399
|
+
});
|
|
44400
|
+
|
|
44401
|
+
// src/models/components/invoicestatus.ts
|
|
44402
|
+
var InvoiceStatus, InvoiceStatus$inboundSchema, InvoiceStatus$outboundSchema;
|
|
44403
|
+
var init_invoicestatus = __esm(() => {
|
|
44404
|
+
init_esm();
|
|
44405
|
+
InvoiceStatus = {
|
|
44406
|
+
Draft: "draft",
|
|
44407
|
+
Unpaid: "unpaid",
|
|
44408
|
+
PaymentPending: "payment-pending",
|
|
44409
|
+
Paid: "paid",
|
|
44410
|
+
Overdue: "overdue",
|
|
44411
|
+
Canceled: "canceled"
|
|
44412
|
+
};
|
|
44413
|
+
InvoiceStatus$inboundSchema = nativeEnumType(InvoiceStatus);
|
|
44414
|
+
InvoiceStatus$outboundSchema = InvoiceStatus$inboundSchema;
|
|
44415
|
+
});
|
|
44416
|
+
|
|
44417
|
+
// src/models/components/invoice.ts
|
|
44418
|
+
var Invoice$inboundSchema, Invoice$outboundSchema;
|
|
44419
|
+
var init_invoice = __esm(() => {
|
|
44420
|
+
init_esm();
|
|
44421
|
+
init_amountdecimal();
|
|
44422
|
+
init_invoicelineitems();
|
|
44423
|
+
init_invoicepayment();
|
|
44424
|
+
init_invoicestatus();
|
|
44425
|
+
Invoice$inboundSchema = objectType({
|
|
44426
|
+
invoiceID: stringType(),
|
|
44427
|
+
invoiceNumber: stringType(),
|
|
44428
|
+
description: stringType(),
|
|
44429
|
+
customerAccountID: stringType(),
|
|
44430
|
+
partnerAccountID: stringType(),
|
|
44431
|
+
status: InvoiceStatus$inboundSchema,
|
|
44432
|
+
lineItems: InvoiceLineItems$inboundSchema,
|
|
44433
|
+
subtotalAmount: AmountDecimal$inboundSchema,
|
|
44434
|
+
taxAmount: AmountDecimal$inboundSchema,
|
|
44435
|
+
totalAmount: AmountDecimal$inboundSchema,
|
|
44436
|
+
pendingAmount: AmountDecimal$inboundSchema,
|
|
44437
|
+
paidAmount: AmountDecimal$inboundSchema,
|
|
44438
|
+
refundedAmount: AmountDecimal$inboundSchema,
|
|
44439
|
+
disputedAmount: AmountDecimal$inboundSchema,
|
|
44440
|
+
paymentLinkCode: stringType().optional(),
|
|
44441
|
+
payments: arrayType(InvoicePayment$inboundSchema).optional(),
|
|
44442
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
44443
|
+
invoiceDate: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
44444
|
+
dueDate: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
44445
|
+
sentOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
44446
|
+
paidOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
44447
|
+
canceledOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
|
|
44448
|
+
});
|
|
44449
|
+
Invoice$outboundSchema = objectType({
|
|
44450
|
+
invoiceID: stringType(),
|
|
44451
|
+
invoiceNumber: stringType(),
|
|
44452
|
+
description: stringType(),
|
|
44453
|
+
customerAccountID: stringType(),
|
|
44454
|
+
partnerAccountID: stringType(),
|
|
44455
|
+
status: InvoiceStatus$outboundSchema,
|
|
44456
|
+
lineItems: InvoiceLineItems$outboundSchema,
|
|
44457
|
+
subtotalAmount: AmountDecimal$outboundSchema,
|
|
44458
|
+
taxAmount: AmountDecimal$outboundSchema,
|
|
44459
|
+
totalAmount: AmountDecimal$outboundSchema,
|
|
44460
|
+
pendingAmount: AmountDecimal$outboundSchema,
|
|
44461
|
+
paidAmount: AmountDecimal$outboundSchema,
|
|
44462
|
+
refundedAmount: AmountDecimal$outboundSchema,
|
|
44463
|
+
disputedAmount: AmountDecimal$outboundSchema,
|
|
44464
|
+
paymentLinkCode: stringType().optional(),
|
|
44465
|
+
payments: arrayType(InvoicePayment$outboundSchema).optional(),
|
|
44466
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
44467
|
+
invoiceDate: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
44468
|
+
dueDate: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
44469
|
+
sentOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
44470
|
+
paidOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
44471
|
+
canceledOn: dateType().transform((v2) => v2.toISOString()).optional()
|
|
44472
|
+
});
|
|
44473
|
+
});
|
|
44474
|
+
|
|
44475
|
+
// src/models/components/invoicelineitemoptionvalidationerror.ts
|
|
44476
|
+
var InvoiceLineItemOptionValidationError$inboundSchema, InvoiceLineItemOptionValidationError$outboundSchema;
|
|
44477
|
+
var init_invoicelineitemoptionvalidationerror = __esm(() => {
|
|
44478
|
+
init_esm();
|
|
44479
|
+
init_amountdecimalvalidationerror();
|
|
44480
|
+
InvoiceLineItemOptionValidationError$inboundSchema = objectType({
|
|
44481
|
+
name: stringType().optional(),
|
|
44482
|
+
group: stringType().optional(),
|
|
44483
|
+
priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
|
|
44484
|
+
quantity: stringType().optional()
|
|
44485
|
+
});
|
|
44486
|
+
InvoiceLineItemOptionValidationError$outboundSchema = objectType({
|
|
44487
|
+
name: stringType().optional(),
|
|
44488
|
+
group: stringType().optional(),
|
|
44489
|
+
priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
|
|
44490
|
+
quantity: stringType().optional()
|
|
44491
|
+
});
|
|
44492
|
+
});
|
|
44493
|
+
|
|
44494
|
+
// src/models/components/invoicelineitemsupdate.ts
|
|
44495
|
+
var InvoiceLineItemsUpdate$inboundSchema, InvoiceLineItemsUpdate$outboundSchema;
|
|
44496
|
+
var init_invoicelineitemsupdate = __esm(() => {
|
|
44497
|
+
init_esm();
|
|
44498
|
+
init_invoicelineitem();
|
|
44499
|
+
InvoiceLineItemsUpdate$inboundSchema = objectType({
|
|
44500
|
+
items: arrayType(InvoiceLineItem$inboundSchema).optional()
|
|
44501
|
+
});
|
|
44502
|
+
InvoiceLineItemsUpdate$outboundSchema = objectType({
|
|
44503
|
+
items: arrayType(InvoiceLineItem$outboundSchema).optional()
|
|
44504
|
+
});
|
|
44505
|
+
});
|
|
44506
|
+
|
|
44507
|
+
// src/models/components/invoicelineitemvalidationerror.ts
|
|
44508
|
+
var InvoiceLineItemValidationError$inboundSchema, InvoiceLineItemValidationError$outboundSchema;
|
|
44509
|
+
var init_invoicelineitemvalidationerror = __esm(() => {
|
|
44510
|
+
init_esm();
|
|
44511
|
+
init_amountdecimalvalidationerror();
|
|
44512
|
+
init_invoicelineitemoptionvalidationerror();
|
|
44513
|
+
InvoiceLineItemValidationError$inboundSchema = objectType({
|
|
44514
|
+
productID: stringType().optional(),
|
|
44515
|
+
name: stringType().optional(),
|
|
44516
|
+
basePrice: AmountDecimalValidationError$inboundSchema.optional(),
|
|
44517
|
+
options: recordType(InvoiceLineItemOptionValidationError$inboundSchema).optional(),
|
|
44518
|
+
quantity: stringType().optional()
|
|
44519
|
+
});
|
|
44520
|
+
InvoiceLineItemValidationError$outboundSchema = objectType({
|
|
44521
|
+
productID: stringType().optional(),
|
|
44522
|
+
name: stringType().optional(),
|
|
44523
|
+
basePrice: AmountDecimalValidationError$outboundSchema.optional(),
|
|
44524
|
+
options: recordType(InvoiceLineItemOptionValidationError$outboundSchema).optional(),
|
|
44525
|
+
quantity: stringType().optional()
|
|
44526
|
+
});
|
|
44527
|
+
});
|
|
44528
|
+
|
|
44529
|
+
// src/models/components/invoicelineitemsvalidationerror.ts
|
|
44530
|
+
var InvoiceLineItemsValidationError$inboundSchema, InvoiceLineItemsValidationError$outboundSchema;
|
|
44531
|
+
var init_invoicelineitemsvalidationerror = __esm(() => {
|
|
44532
|
+
init_esm();
|
|
44533
|
+
init_invoicelineitemvalidationerror();
|
|
44534
|
+
InvoiceLineItemsValidationError$inboundSchema = objectType({
|
|
44535
|
+
items: recordType(InvoiceLineItemValidationError$inboundSchema).optional()
|
|
44536
|
+
});
|
|
44537
|
+
InvoiceLineItemsValidationError$outboundSchema = objectType({
|
|
44538
|
+
items: recordType(InvoiceLineItemValidationError$outboundSchema).optional()
|
|
44539
|
+
});
|
|
44540
|
+
});
|
|
44541
|
+
|
|
44240
44542
|
// src/models/components/issuedcard.ts
|
|
44241
44543
|
var IssuedCard$inboundSchema, IssuedCard$outboundSchema;
|
|
44242
44544
|
var init_issuedcard = __esm(() => {
|
|
@@ -44775,6 +45077,22 @@ var init_manualtermsofserviceupdate = __esm(() => {
|
|
|
44775
45077
|
});
|
|
44776
45078
|
});
|
|
44777
45079
|
|
|
45080
|
+
// src/models/components/markinvoicepaid.ts
|
|
45081
|
+
var MarkInvoicePaid$inboundSchema, MarkInvoicePaid$outboundSchema;
|
|
45082
|
+
var init_markinvoicepaid = __esm(() => {
|
|
45083
|
+
init_esm();
|
|
45084
|
+
MarkInvoicePaid$inboundSchema = objectType({
|
|
45085
|
+
foreignID: stringType().optional(),
|
|
45086
|
+
description: stringType().optional(),
|
|
45087
|
+
paymentDate: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
|
|
45088
|
+
});
|
|
45089
|
+
MarkInvoicePaid$outboundSchema = objectType({
|
|
45090
|
+
foreignID: stringType().optional(),
|
|
45091
|
+
description: stringType().optional(),
|
|
45092
|
+
paymentDate: dateType().transform((v2) => v2.toISOString()).optional()
|
|
45093
|
+
});
|
|
45094
|
+
});
|
|
45095
|
+
|
|
44778
45096
|
// src/models/components/moneytransferpullfromcard.ts
|
|
44779
45097
|
var MoneyTransferPullFromCard$inboundSchema, MoneyTransferPullFromCard$outboundSchema;
|
|
44780
45098
|
var init_moneytransferpullfromcard = __esm(() => {
|
|
@@ -47341,6 +47659,31 @@ var init_updateevidence = __esm(() => {
|
|
|
47341
47659
|
});
|
|
47342
47660
|
});
|
|
47343
47661
|
|
|
47662
|
+
// src/models/components/updateinvoice.ts
|
|
47663
|
+
var UpdateInvoice$inboundSchema, UpdateInvoice$outboundSchema;
|
|
47664
|
+
var init_updateinvoice = __esm(() => {
|
|
47665
|
+
init_esm();
|
|
47666
|
+
init_amountdecimalupdate();
|
|
47667
|
+
init_invoicelineitemsupdate();
|
|
47668
|
+
init_invoicestatus();
|
|
47669
|
+
UpdateInvoice$inboundSchema = objectType({
|
|
47670
|
+
description: stringType().optional(),
|
|
47671
|
+
lineItems: InvoiceLineItemsUpdate$inboundSchema.optional(),
|
|
47672
|
+
invoiceDate: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
47673
|
+
dueDate: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
47674
|
+
status: InvoiceStatus$inboundSchema.optional(),
|
|
47675
|
+
taxAmount: AmountDecimalUpdate$inboundSchema.optional()
|
|
47676
|
+
});
|
|
47677
|
+
UpdateInvoice$outboundSchema = objectType({
|
|
47678
|
+
description: stringType().optional(),
|
|
47679
|
+
lineItems: InvoiceLineItemsUpdate$outboundSchema.optional(),
|
|
47680
|
+
invoiceDate: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
47681
|
+
dueDate: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
47682
|
+
status: InvoiceStatus$outboundSchema.optional(),
|
|
47683
|
+
taxAmount: AmountDecimalUpdate$outboundSchema.optional()
|
|
47684
|
+
});
|
|
47685
|
+
});
|
|
47686
|
+
|
|
47344
47687
|
// src/models/components/updateissuedcard.ts
|
|
47345
47688
|
var UpdateIssuedCard$inboundSchema, UpdateIssuedCard$outboundSchema;
|
|
47346
47689
|
var init_updateissuedcard = __esm(() => {
|
|
@@ -48008,6 +48351,37 @@ var init_webhookdatadisputeupdated = __esm(() => {
|
|
|
48008
48351
|
});
|
|
48009
48352
|
});
|
|
48010
48353
|
|
|
48354
|
+
// src/models/components/webhookdatainvoicecreated.ts
|
|
48355
|
+
var WebhookDataInvoiceCreated$inboundSchema, WebhookDataInvoiceCreated$outboundSchema;
|
|
48356
|
+
var init_webhookdatainvoicecreated = __esm(() => {
|
|
48357
|
+
init_esm();
|
|
48358
|
+
WebhookDataInvoiceCreated$inboundSchema = objectType({
|
|
48359
|
+
accountID: stringType(),
|
|
48360
|
+
invoiceID: stringType()
|
|
48361
|
+
});
|
|
48362
|
+
WebhookDataInvoiceCreated$outboundSchema = objectType({
|
|
48363
|
+
accountID: stringType(),
|
|
48364
|
+
invoiceID: stringType()
|
|
48365
|
+
});
|
|
48366
|
+
});
|
|
48367
|
+
|
|
48368
|
+
// src/models/components/webhookdatainvoiceupdated.ts
|
|
48369
|
+
var WebhookDataInvoiceUpdated$inboundSchema, WebhookDataInvoiceUpdated$outboundSchema;
|
|
48370
|
+
var init_webhookdatainvoiceupdated = __esm(() => {
|
|
48371
|
+
init_esm();
|
|
48372
|
+
init_invoicestatus();
|
|
48373
|
+
WebhookDataInvoiceUpdated$inboundSchema = objectType({
|
|
48374
|
+
accountID: stringType(),
|
|
48375
|
+
invoiceID: stringType(),
|
|
48376
|
+
status: InvoiceStatus$inboundSchema
|
|
48377
|
+
});
|
|
48378
|
+
WebhookDataInvoiceUpdated$outboundSchema = objectType({
|
|
48379
|
+
accountID: stringType(),
|
|
48380
|
+
invoiceID: stringType(),
|
|
48381
|
+
status: InvoiceStatus$outboundSchema
|
|
48382
|
+
});
|
|
48383
|
+
});
|
|
48384
|
+
|
|
48011
48385
|
// src/models/components/webhookdatanetworkidupdated.ts
|
|
48012
48386
|
var WebhookDataNetworkIDUpdated$inboundSchema, WebhookDataNetworkIDUpdated$outboundSchema;
|
|
48013
48387
|
var init_webhookdatanetworkidupdated = __esm(() => {
|
|
@@ -48416,6 +48790,8 @@ var init_webhookdata = __esm(() => {
|
|
|
48416
48790
|
init_webhookdatacardautoupdated();
|
|
48417
48791
|
init_webhookdatadisputecreated();
|
|
48418
48792
|
init_webhookdatadisputeupdated();
|
|
48793
|
+
init_webhookdatainvoicecreated();
|
|
48794
|
+
init_webhookdatainvoiceupdated();
|
|
48419
48795
|
init_webhookdatanetworkidupdated();
|
|
48420
48796
|
init_webhookdatapaymentmethoddisabled();
|
|
48421
48797
|
init_webhookdatapaymentmethodenabled();
|
|
@@ -48447,6 +48823,7 @@ var init_webhookdata = __esm(() => {
|
|
|
48447
48823
|
WebhookDataCancellationUpdated$inboundSchema,
|
|
48448
48824
|
WebhookDataCardAutoUpdated$inboundSchema,
|
|
48449
48825
|
WebhookDataCapabilityUpdated$inboundSchema,
|
|
48826
|
+
WebhookDataInvoiceUpdated$inboundSchema,
|
|
48450
48827
|
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
48451
48828
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
48452
48829
|
WebhookDataRefundCreated$inboundSchema,
|
|
@@ -48458,6 +48835,7 @@ var init_webhookdata = __esm(() => {
|
|
|
48458
48835
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
48459
48836
|
WebhookDataBankAccountDeleted$inboundSchema,
|
|
48460
48837
|
WebhookDataCapabilityRequested$inboundSchema,
|
|
48838
|
+
WebhookDataInvoiceCreated$inboundSchema,
|
|
48461
48839
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
48462
48840
|
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
48463
48841
|
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
@@ -48484,6 +48862,7 @@ var init_webhookdata = __esm(() => {
|
|
|
48484
48862
|
WebhookDataCancellationUpdated$outboundSchema,
|
|
48485
48863
|
WebhookDataCardAutoUpdated$outboundSchema,
|
|
48486
48864
|
WebhookDataCapabilityUpdated$outboundSchema,
|
|
48865
|
+
WebhookDataInvoiceUpdated$outboundSchema,
|
|
48487
48866
|
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
48488
48867
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
48489
48868
|
WebhookDataRefundCreated$outboundSchema,
|
|
@@ -48495,6 +48874,7 @@ var init_webhookdata = __esm(() => {
|
|
|
48495
48874
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
48496
48875
|
WebhookDataBankAccountDeleted$outboundSchema,
|
|
48497
48876
|
WebhookDataCapabilityRequested$outboundSchema,
|
|
48877
|
+
WebhookDataInvoiceCreated$outboundSchema,
|
|
48498
48878
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
48499
48879
|
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
48500
48880
|
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
@@ -48532,6 +48912,8 @@ var init_webhookeventtype = __esm(() => {
|
|
|
48532
48912
|
CapabilityUpdated: "capability.updated",
|
|
48533
48913
|
DisputeCreated: "dispute.created",
|
|
48534
48914
|
DisputeUpdated: "dispute.updated",
|
|
48915
|
+
InvoiceCreated: "invoice.created",
|
|
48916
|
+
InvoiceUpdated: "invoice.updated",
|
|
48535
48917
|
NetworkIDUpdated: "networkID.updated",
|
|
48536
48918
|
PaymentMethodEnabled: "paymentMethod.enabled",
|
|
48537
48919
|
PaymentMethodDisabled: "paymentMethod.disabled",
|
|
@@ -48610,6 +48992,7 @@ var init_components = __esm(() => {
|
|
|
48610
48992
|
init_adjustment();
|
|
48611
48993
|
init_amount();
|
|
48612
48994
|
init_amountdecimal();
|
|
48995
|
+
init_amountdecimalupdate();
|
|
48613
48996
|
init_amountdecimalvalidationerror();
|
|
48614
48997
|
init_amountupdate();
|
|
48615
48998
|
init_amountvalidationerror();
|
|
@@ -48719,6 +49102,7 @@ var init_components = __esm(() => {
|
|
|
48719
49102
|
init_createfeeplanagreement();
|
|
48720
49103
|
init_createindividualerror();
|
|
48721
49104
|
init_createindividualprofile();
|
|
49105
|
+
init_createinvoice();
|
|
48722
49106
|
init_createpaymentlink();
|
|
48723
49107
|
init_createproductoption();
|
|
48724
49108
|
init_createproductoptiongroup();
|
|
@@ -48811,6 +49195,18 @@ var init_components = __esm(() => {
|
|
|
48811
49195
|
init_instantbankcreditpaymentmethod();
|
|
48812
49196
|
init_instantpaymentfees();
|
|
48813
49197
|
init_institutionssearchresponse();
|
|
49198
|
+
init_invoice();
|
|
49199
|
+
init_invoiceexternalpayment();
|
|
49200
|
+
init_invoicelineitem();
|
|
49201
|
+
init_invoicelineitemoption();
|
|
49202
|
+
init_invoicelineitemoptionvalidationerror();
|
|
49203
|
+
init_invoicelineitems();
|
|
49204
|
+
init_invoicelineitemsupdate();
|
|
49205
|
+
init_invoicelineitemsvalidationerror();
|
|
49206
|
+
init_invoicelineitemvalidationerror();
|
|
49207
|
+
init_invoicepayment();
|
|
49208
|
+
init_invoicestatus();
|
|
49209
|
+
init_invoicetransferpayment();
|
|
48814
49210
|
init_issuedcard();
|
|
48815
49211
|
init_issuedcardauthorization();
|
|
48816
49212
|
init_issuedcardauthorizationevent();
|
|
@@ -48840,6 +49236,7 @@ var init_components = __esm(() => {
|
|
|
48840
49236
|
init_listfeesfetchrequest();
|
|
48841
49237
|
init_manualtermsofservice();
|
|
48842
49238
|
init_manualtermsofserviceupdate();
|
|
49239
|
+
init_markinvoicepaid();
|
|
48843
49240
|
init_microdepositstatus();
|
|
48844
49241
|
init_minimumcommitment();
|
|
48845
49242
|
init_mode();
|
|
@@ -49019,6 +49416,7 @@ var init_components = __esm(() => {
|
|
|
49019
49416
|
init_updatecolor();
|
|
49020
49417
|
init_updatecolors();
|
|
49021
49418
|
init_updateevidence();
|
|
49419
|
+
init_updateinvoice();
|
|
49022
49420
|
init_updateissuedcard();
|
|
49023
49421
|
init_updatepaymentlink();
|
|
49024
49422
|
init_updaterepresentative();
|
|
@@ -49059,6 +49457,8 @@ var init_components = __esm(() => {
|
|
|
49059
49457
|
init_webhookdatacardautoupdated();
|
|
49060
49458
|
init_webhookdatadisputecreated();
|
|
49061
49459
|
init_webhookdatadisputeupdated();
|
|
49460
|
+
init_webhookdatainvoicecreated();
|
|
49461
|
+
init_webhookdatainvoiceupdated();
|
|
49062
49462
|
init_webhookdatanetworkidupdated();
|
|
49063
49463
|
init_webhookdatapaymentmethoddisabled();
|
|
49064
49464
|
init_webhookdatapaymentmethodenabled();
|
|
@@ -49247,6 +49647,67 @@ var init_createaccounterror = __esm(() => {
|
|
|
49247
49647
|
}));
|
|
49248
49648
|
});
|
|
49249
49649
|
|
|
49650
|
+
// src/models/errors/createinvoiceerror.ts
|
|
49651
|
+
var CreateInvoiceError, CreateInvoiceError$inboundSchema, CreateInvoiceError$outboundSchema;
|
|
49652
|
+
var init_createinvoiceerror = __esm(() => {
|
|
49653
|
+
init_esm();
|
|
49654
|
+
init_components();
|
|
49655
|
+
init_mooverror();
|
|
49656
|
+
CreateInvoiceError = class CreateInvoiceError extends MoovError {
|
|
49657
|
+
customerAccountID;
|
|
49658
|
+
description;
|
|
49659
|
+
lineItems;
|
|
49660
|
+
invoiceDate;
|
|
49661
|
+
dueDate;
|
|
49662
|
+
taxAmount;
|
|
49663
|
+
data$;
|
|
49664
|
+
constructor(err, httpMeta) {
|
|
49665
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
49666
|
+
super(message, httpMeta);
|
|
49667
|
+
this.data$ = err;
|
|
49668
|
+
if (err.customerAccountID != null) {
|
|
49669
|
+
this.customerAccountID = err.customerAccountID;
|
|
49670
|
+
}
|
|
49671
|
+
if (err.description != null)
|
|
49672
|
+
this.description = err.description;
|
|
49673
|
+
if (err.lineItems != null)
|
|
49674
|
+
this.lineItems = err.lineItems;
|
|
49675
|
+
if (err.invoiceDate != null)
|
|
49676
|
+
this.invoiceDate = err.invoiceDate;
|
|
49677
|
+
if (err.dueDate != null)
|
|
49678
|
+
this.dueDate = err.dueDate;
|
|
49679
|
+
if (err.taxAmount != null)
|
|
49680
|
+
this.taxAmount = err.taxAmount;
|
|
49681
|
+
this.name = "CreateInvoiceError";
|
|
49682
|
+
}
|
|
49683
|
+
};
|
|
49684
|
+
CreateInvoiceError$inboundSchema = objectType({
|
|
49685
|
+
customerAccountID: stringType().optional(),
|
|
49686
|
+
description: stringType().optional(),
|
|
49687
|
+
lineItems: InvoiceLineItemsValidationError$inboundSchema.optional(),
|
|
49688
|
+
invoiceDate: stringType().optional(),
|
|
49689
|
+
dueDate: stringType().optional(),
|
|
49690
|
+
taxAmount: AmountDecimalValidationError$inboundSchema.optional(),
|
|
49691
|
+
request$: instanceOfType(Request),
|
|
49692
|
+
response$: instanceOfType(Response),
|
|
49693
|
+
body$: stringType()
|
|
49694
|
+
}).transform((v2) => {
|
|
49695
|
+
return new CreateInvoiceError(v2, {
|
|
49696
|
+
request: v2.request$,
|
|
49697
|
+
response: v2.response$,
|
|
49698
|
+
body: v2.body$
|
|
49699
|
+
});
|
|
49700
|
+
});
|
|
49701
|
+
CreateInvoiceError$outboundSchema = instanceOfType(CreateInvoiceError).transform((v2) => v2.data$).pipe(objectType({
|
|
49702
|
+
customerAccountID: stringType().optional(),
|
|
49703
|
+
description: stringType().optional(),
|
|
49704
|
+
lineItems: InvoiceLineItemsValidationError$outboundSchema.optional(),
|
|
49705
|
+
invoiceDate: stringType().optional(),
|
|
49706
|
+
dueDate: stringType().optional(),
|
|
49707
|
+
taxAmount: AmountDecimalValidationError$outboundSchema.optional()
|
|
49708
|
+
}));
|
|
49709
|
+
});
|
|
49710
|
+
|
|
49250
49711
|
// src/models/errors/createpaymentlinkerror.ts
|
|
49251
49712
|
var CreatePaymentLinkError, CreatePaymentLinkError$inboundSchema, CreatePaymentLinkError$outboundSchema;
|
|
49252
49713
|
var init_createpaymentlinkerror = __esm(() => {
|
|
@@ -49860,6 +50321,56 @@ var init_linkcarderror = __esm(() => {
|
|
|
49860
50321
|
}));
|
|
49861
50322
|
});
|
|
49862
50323
|
|
|
50324
|
+
// src/models/errors/listinvoicesvalidationerror.ts
|
|
50325
|
+
var ListInvoicesValidationError, ListInvoicesValidationError$inboundSchema, ListInvoicesValidationError$outboundSchema;
|
|
50326
|
+
var init_listinvoicesvalidationerror = __esm(() => {
|
|
50327
|
+
init_esm();
|
|
50328
|
+
init_mooverror();
|
|
50329
|
+
ListInvoicesValidationError = class ListInvoicesValidationError extends MoovError {
|
|
50330
|
+
status;
|
|
50331
|
+
customerAccountID;
|
|
50332
|
+
skip;
|
|
50333
|
+
count;
|
|
50334
|
+
data$;
|
|
50335
|
+
constructor(err, httpMeta) {
|
|
50336
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
50337
|
+
super(message, httpMeta);
|
|
50338
|
+
this.data$ = err;
|
|
50339
|
+
if (err.status != null)
|
|
50340
|
+
this.status = err.status;
|
|
50341
|
+
if (err.customerAccountID != null) {
|
|
50342
|
+
this.customerAccountID = err.customerAccountID;
|
|
50343
|
+
}
|
|
50344
|
+
if (err.skip != null)
|
|
50345
|
+
this.skip = err.skip;
|
|
50346
|
+
if (err.count != null)
|
|
50347
|
+
this.count = err.count;
|
|
50348
|
+
this.name = "ListInvoicesValidationError";
|
|
50349
|
+
}
|
|
50350
|
+
};
|
|
50351
|
+
ListInvoicesValidationError$inboundSchema = objectType({
|
|
50352
|
+
status: stringType().optional(),
|
|
50353
|
+
customerAccountID: stringType().optional(),
|
|
50354
|
+
skip: stringType().optional(),
|
|
50355
|
+
count: stringType().optional(),
|
|
50356
|
+
request$: instanceOfType(Request),
|
|
50357
|
+
response$: instanceOfType(Response),
|
|
50358
|
+
body$: stringType()
|
|
50359
|
+
}).transform((v2) => {
|
|
50360
|
+
return new ListInvoicesValidationError(v2, {
|
|
50361
|
+
request: v2.request$,
|
|
50362
|
+
response: v2.response$,
|
|
50363
|
+
body: v2.body$
|
|
50364
|
+
});
|
|
50365
|
+
});
|
|
50366
|
+
ListInvoicesValidationError$outboundSchema = instanceOfType(ListInvoicesValidationError).transform((v2) => v2.data$).pipe(objectType({
|
|
50367
|
+
status: stringType().optional(),
|
|
50368
|
+
customerAccountID: stringType().optional(),
|
|
50369
|
+
skip: stringType().optional(),
|
|
50370
|
+
count: stringType().optional()
|
|
50371
|
+
}));
|
|
50372
|
+
});
|
|
50373
|
+
|
|
49863
50374
|
// src/models/errors/listtransfersvalidationerror.ts
|
|
49864
50375
|
var ListTransfersValidationError, ListTransfersValidationError$inboundSchema, ListTransfersValidationError$outboundSchema;
|
|
49865
50376
|
var init_listtransfersvalidationerror = __esm(() => {
|
|
@@ -50098,6 +50609,50 @@ var init_listwallettransactionsvalidationerror = __esm(() => {
|
|
|
50098
50609
|
}));
|
|
50099
50610
|
});
|
|
50100
50611
|
|
|
50612
|
+
// src/models/errors/markinvoicepaiderror.ts
|
|
50613
|
+
var MarkInvoicePaidError, MarkInvoicePaidError$inboundSchema, MarkInvoicePaidError$outboundSchema;
|
|
50614
|
+
var init_markinvoicepaiderror = __esm(() => {
|
|
50615
|
+
init_esm();
|
|
50616
|
+
init_mooverror();
|
|
50617
|
+
MarkInvoicePaidError = class MarkInvoicePaidError extends MoovError {
|
|
50618
|
+
foreignID;
|
|
50619
|
+
description;
|
|
50620
|
+
paymentDate;
|
|
50621
|
+
data$;
|
|
50622
|
+
constructor(err, httpMeta) {
|
|
50623
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
50624
|
+
super(message, httpMeta);
|
|
50625
|
+
this.data$ = err;
|
|
50626
|
+
if (err.foreignID != null)
|
|
50627
|
+
this.foreignID = err.foreignID;
|
|
50628
|
+
if (err.description != null)
|
|
50629
|
+
this.description = err.description;
|
|
50630
|
+
if (err.paymentDate != null)
|
|
50631
|
+
this.paymentDate = err.paymentDate;
|
|
50632
|
+
this.name = "MarkInvoicePaidError";
|
|
50633
|
+
}
|
|
50634
|
+
};
|
|
50635
|
+
MarkInvoicePaidError$inboundSchema = objectType({
|
|
50636
|
+
foreignID: stringType().optional(),
|
|
50637
|
+
description: stringType().optional(),
|
|
50638
|
+
paymentDate: stringType().optional(),
|
|
50639
|
+
request$: instanceOfType(Request),
|
|
50640
|
+
response$: instanceOfType(Response),
|
|
50641
|
+
body$: stringType()
|
|
50642
|
+
}).transform((v2) => {
|
|
50643
|
+
return new MarkInvoicePaidError(v2, {
|
|
50644
|
+
request: v2.request$,
|
|
50645
|
+
response: v2.response$,
|
|
50646
|
+
body: v2.body$
|
|
50647
|
+
});
|
|
50648
|
+
});
|
|
50649
|
+
MarkInvoicePaidError$outboundSchema = instanceOfType(MarkInvoicePaidError).transform((v2) => v2.data$).pipe(objectType({
|
|
50650
|
+
foreignID: stringType().optional(),
|
|
50651
|
+
description: stringType().optional(),
|
|
50652
|
+
paymentDate: stringType().optional()
|
|
50653
|
+
}));
|
|
50654
|
+
});
|
|
50655
|
+
|
|
50101
50656
|
// src/models/errors/microdepositvalidationerror.ts
|
|
50102
50657
|
var MicroDepositValidationError, MicroDepositValidationError$inboundSchema, MicroDepositValidationError$outboundSchema;
|
|
50103
50658
|
var init_microdepositvalidationerror = __esm(() => {
|
|
@@ -51157,6 +51712,66 @@ var init_updatecarderror = __esm(() => {
|
|
|
51157
51712
|
}));
|
|
51158
51713
|
});
|
|
51159
51714
|
|
|
51715
|
+
// src/models/errors/updateinvoiceerror.ts
|
|
51716
|
+
var UpdateInvoiceError, UpdateInvoiceError$inboundSchema, UpdateInvoiceError$outboundSchema;
|
|
51717
|
+
var init_updateinvoiceerror = __esm(() => {
|
|
51718
|
+
init_esm();
|
|
51719
|
+
init_components();
|
|
51720
|
+
init_mooverror();
|
|
51721
|
+
UpdateInvoiceError = class UpdateInvoiceError extends MoovError {
|
|
51722
|
+
description;
|
|
51723
|
+
lineItems;
|
|
51724
|
+
invoiceDate;
|
|
51725
|
+
dueDate;
|
|
51726
|
+
status;
|
|
51727
|
+
taxAmount;
|
|
51728
|
+
data$;
|
|
51729
|
+
constructor(err, httpMeta) {
|
|
51730
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
51731
|
+
super(message, httpMeta);
|
|
51732
|
+
this.data$ = err;
|
|
51733
|
+
if (err.description != null)
|
|
51734
|
+
this.description = err.description;
|
|
51735
|
+
if (err.lineItems != null)
|
|
51736
|
+
this.lineItems = err.lineItems;
|
|
51737
|
+
if (err.invoiceDate != null)
|
|
51738
|
+
this.invoiceDate = err.invoiceDate;
|
|
51739
|
+
if (err.dueDate != null)
|
|
51740
|
+
this.dueDate = err.dueDate;
|
|
51741
|
+
if (err.status != null)
|
|
51742
|
+
this.status = err.status;
|
|
51743
|
+
if (err.taxAmount != null)
|
|
51744
|
+
this.taxAmount = err.taxAmount;
|
|
51745
|
+
this.name = "UpdateInvoiceError";
|
|
51746
|
+
}
|
|
51747
|
+
};
|
|
51748
|
+
UpdateInvoiceError$inboundSchema = objectType({
|
|
51749
|
+
description: stringType().optional(),
|
|
51750
|
+
lineItems: InvoiceLineItemsValidationError$inboundSchema.optional(),
|
|
51751
|
+
invoiceDate: stringType().optional(),
|
|
51752
|
+
dueDate: stringType().optional(),
|
|
51753
|
+
status: stringType().optional(),
|
|
51754
|
+
taxAmount: AmountDecimalValidationError$inboundSchema.optional(),
|
|
51755
|
+
request$: instanceOfType(Request),
|
|
51756
|
+
response$: instanceOfType(Response),
|
|
51757
|
+
body$: stringType()
|
|
51758
|
+
}).transform((v2) => {
|
|
51759
|
+
return new UpdateInvoiceError(v2, {
|
|
51760
|
+
request: v2.request$,
|
|
51761
|
+
response: v2.response$,
|
|
51762
|
+
body: v2.body$
|
|
51763
|
+
});
|
|
51764
|
+
});
|
|
51765
|
+
UpdateInvoiceError$outboundSchema = instanceOfType(UpdateInvoiceError).transform((v2) => v2.data$).pipe(objectType({
|
|
51766
|
+
description: stringType().optional(),
|
|
51767
|
+
lineItems: InvoiceLineItemsValidationError$outboundSchema.optional(),
|
|
51768
|
+
invoiceDate: stringType().optional(),
|
|
51769
|
+
dueDate: stringType().optional(),
|
|
51770
|
+
status: stringType().optional(),
|
|
51771
|
+
taxAmount: AmountDecimalValidationError$outboundSchema.optional()
|
|
51772
|
+
}));
|
|
51773
|
+
});
|
|
51774
|
+
|
|
51160
51775
|
// src/models/errors/updateissuedcarderror.ts
|
|
51161
51776
|
var UpdateIssuedCardError, UpdateIssuedCardError$inboundSchema, UpdateIssuedCardError$outboundSchema;
|
|
51162
51777
|
var init_updateissuedcarderror = __esm(() => {
|
|
@@ -51465,6 +52080,7 @@ var init_errors2 = __esm(() => {
|
|
|
51465
52080
|
init_brandvalidationerror();
|
|
51466
52081
|
init_cardacquiringrefund2();
|
|
51467
52082
|
init_createaccounterror();
|
|
52083
|
+
init_createinvoiceerror();
|
|
51468
52084
|
init_createpaymentlinkerror();
|
|
51469
52085
|
init_createsweepconfigerror();
|
|
51470
52086
|
init_createticketerror();
|
|
@@ -51478,9 +52094,11 @@ var init_errors2 = __esm(() => {
|
|
|
51478
52094
|
init_imagerequestvalidationerror();
|
|
51479
52095
|
init_linkapplepayerror();
|
|
51480
52096
|
init_linkcarderror();
|
|
52097
|
+
init_listinvoicesvalidationerror();
|
|
51481
52098
|
init_listtransfersvalidationerror();
|
|
51482
52099
|
init_listwalletsvalidationerror();
|
|
51483
52100
|
init_listwallettransactionsvalidationerror();
|
|
52101
|
+
init_markinvoicepaiderror();
|
|
51484
52102
|
init_microdepositvalidationerror();
|
|
51485
52103
|
init_mooverror();
|
|
51486
52104
|
init_onboardinginviteerror();
|
|
@@ -51502,6 +52120,7 @@ var init_errors2 = __esm(() => {
|
|
|
51502
52120
|
init_transferoptionsvalidationerror();
|
|
51503
52121
|
init_transfervalidationerror();
|
|
51504
52122
|
init_updatecarderror();
|
|
52123
|
+
init_updateinvoiceerror();
|
|
51505
52124
|
init_updateissuedcarderror();
|
|
51506
52125
|
init_updatepaymentlinkerror();
|
|
51507
52126
|
init_updateticketerror();
|
|
@@ -52068,6 +52687,62 @@ var init_createfeeplanagreements = __esm(() => {
|
|
|
52068
52687
|
});
|
|
52069
52688
|
});
|
|
52070
52689
|
|
|
52690
|
+
// src/models/operations/createinvoice.ts
|
|
52691
|
+
var CreateInvoiceGlobals$inboundSchema, CreateInvoiceGlobals$outboundSchema, CreateInvoiceRequest$inboundSchema, CreateInvoiceRequest$outboundSchema, CreateInvoiceResponse$inboundSchema, CreateInvoiceResponse$outboundSchema;
|
|
52692
|
+
var init_createinvoice2 = __esm(() => {
|
|
52693
|
+
init_esm();
|
|
52694
|
+
init_primitives();
|
|
52695
|
+
init_components();
|
|
52696
|
+
CreateInvoiceGlobals$inboundSchema = objectType({
|
|
52697
|
+
"X-Moov-Version": stringType().optional()
|
|
52698
|
+
}).transform((v2) => {
|
|
52699
|
+
return remap(v2, {
|
|
52700
|
+
"X-Moov-Version": "xMoovVersion"
|
|
52701
|
+
});
|
|
52702
|
+
});
|
|
52703
|
+
CreateInvoiceGlobals$outboundSchema = objectType({
|
|
52704
|
+
xMoovVersion: stringType().optional()
|
|
52705
|
+
}).transform((v2) => {
|
|
52706
|
+
return remap(v2, {
|
|
52707
|
+
xMoovVersion: "X-Moov-Version"
|
|
52708
|
+
});
|
|
52709
|
+
});
|
|
52710
|
+
CreateInvoiceRequest$inboundSchema = objectType({
|
|
52711
|
+
accountID: stringType(),
|
|
52712
|
+
CreateInvoice: CreateInvoice$inboundSchema
|
|
52713
|
+
}).transform((v2) => {
|
|
52714
|
+
return remap(v2, {
|
|
52715
|
+
CreateInvoice: "createInvoice"
|
|
52716
|
+
});
|
|
52717
|
+
});
|
|
52718
|
+
CreateInvoiceRequest$outboundSchema = objectType({
|
|
52719
|
+
accountID: stringType(),
|
|
52720
|
+
createInvoice: CreateInvoice$outboundSchema
|
|
52721
|
+
}).transform((v2) => {
|
|
52722
|
+
return remap(v2, {
|
|
52723
|
+
createInvoice: "CreateInvoice"
|
|
52724
|
+
});
|
|
52725
|
+
});
|
|
52726
|
+
CreateInvoiceResponse$inboundSchema = objectType({
|
|
52727
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
52728
|
+
Result: Invoice$inboundSchema
|
|
52729
|
+
}).transform((v2) => {
|
|
52730
|
+
return remap(v2, {
|
|
52731
|
+
Headers: "headers",
|
|
52732
|
+
Result: "result"
|
|
52733
|
+
});
|
|
52734
|
+
});
|
|
52735
|
+
CreateInvoiceResponse$outboundSchema = objectType({
|
|
52736
|
+
headers: recordType(arrayType(stringType())),
|
|
52737
|
+
result: Invoice$outboundSchema
|
|
52738
|
+
}).transform((v2) => {
|
|
52739
|
+
return remap(v2, {
|
|
52740
|
+
headers: "Headers",
|
|
52741
|
+
result: "Result"
|
|
52742
|
+
});
|
|
52743
|
+
});
|
|
52744
|
+
});
|
|
52745
|
+
|
|
52071
52746
|
// src/models/operations/createonboardinginvite.ts
|
|
52072
52747
|
var CreateOnboardingInviteGlobals$inboundSchema, CreateOnboardingInviteGlobals$outboundSchema, CreateOnboardingInviteResponse$inboundSchema, CreateOnboardingInviteResponse$outboundSchema;
|
|
52073
52748
|
var init_createonboardinginvite = __esm(() => {
|
|
@@ -54299,6 +54974,54 @@ var init_getimagemetadata = __esm(() => {
|
|
|
54299
54974
|
});
|
|
54300
54975
|
});
|
|
54301
54976
|
|
|
54977
|
+
// src/models/operations/getinvoice.ts
|
|
54978
|
+
var GetInvoiceGlobals$inboundSchema, GetInvoiceGlobals$outboundSchema, GetInvoiceRequest$inboundSchema, GetInvoiceRequest$outboundSchema, GetInvoiceResponse$inboundSchema, GetInvoiceResponse$outboundSchema;
|
|
54979
|
+
var init_getinvoice = __esm(() => {
|
|
54980
|
+
init_esm();
|
|
54981
|
+
init_primitives();
|
|
54982
|
+
init_components();
|
|
54983
|
+
GetInvoiceGlobals$inboundSchema = objectType({
|
|
54984
|
+
"X-Moov-Version": stringType().optional()
|
|
54985
|
+
}).transform((v2) => {
|
|
54986
|
+
return remap(v2, {
|
|
54987
|
+
"X-Moov-Version": "xMoovVersion"
|
|
54988
|
+
});
|
|
54989
|
+
});
|
|
54990
|
+
GetInvoiceGlobals$outboundSchema = objectType({
|
|
54991
|
+
xMoovVersion: stringType().optional()
|
|
54992
|
+
}).transform((v2) => {
|
|
54993
|
+
return remap(v2, {
|
|
54994
|
+
xMoovVersion: "X-Moov-Version"
|
|
54995
|
+
});
|
|
54996
|
+
});
|
|
54997
|
+
GetInvoiceRequest$inboundSchema = objectType({
|
|
54998
|
+
accountID: stringType(),
|
|
54999
|
+
invoiceID: stringType()
|
|
55000
|
+
});
|
|
55001
|
+
GetInvoiceRequest$outboundSchema = objectType({
|
|
55002
|
+
accountID: stringType(),
|
|
55003
|
+
invoiceID: stringType()
|
|
55004
|
+
});
|
|
55005
|
+
GetInvoiceResponse$inboundSchema = objectType({
|
|
55006
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
55007
|
+
Result: Invoice$inboundSchema
|
|
55008
|
+
}).transform((v2) => {
|
|
55009
|
+
return remap(v2, {
|
|
55010
|
+
Headers: "headers",
|
|
55011
|
+
Result: "result"
|
|
55012
|
+
});
|
|
55013
|
+
});
|
|
55014
|
+
GetInvoiceResponse$outboundSchema = objectType({
|
|
55015
|
+
headers: recordType(arrayType(stringType())),
|
|
55016
|
+
result: Invoice$outboundSchema
|
|
55017
|
+
}).transform((v2) => {
|
|
55018
|
+
return remap(v2, {
|
|
55019
|
+
headers: "Headers",
|
|
55020
|
+
result: "Result"
|
|
55021
|
+
});
|
|
55022
|
+
});
|
|
55023
|
+
});
|
|
55024
|
+
|
|
54302
55025
|
// src/models/operations/getissuedcard.ts
|
|
54303
55026
|
var GetIssuedCardGlobals$inboundSchema, GetIssuedCardGlobals$outboundSchema, GetIssuedCardRequest$inboundSchema, GetIssuedCardRequest$outboundSchema, GetIssuedCardResponse$inboundSchema, GetIssuedCardResponse$outboundSchema;
|
|
54304
55027
|
var init_getissuedcard = __esm(() => {
|
|
@@ -56814,6 +57537,60 @@ var init_listinstitutions = __esm(() => {
|
|
|
56814
57537
|
});
|
|
56815
57538
|
});
|
|
56816
57539
|
|
|
57540
|
+
// src/models/operations/listinvoices.ts
|
|
57541
|
+
var ListInvoicesGlobals$inboundSchema, ListInvoicesGlobals$outboundSchema, ListInvoicesRequest$inboundSchema, ListInvoicesRequest$outboundSchema, ListInvoicesResponse$inboundSchema, ListInvoicesResponse$outboundSchema;
|
|
57542
|
+
var init_listinvoices = __esm(() => {
|
|
57543
|
+
init_esm();
|
|
57544
|
+
init_primitives();
|
|
57545
|
+
init_components();
|
|
57546
|
+
ListInvoicesGlobals$inboundSchema = objectType({
|
|
57547
|
+
"X-Moov-Version": stringType().optional()
|
|
57548
|
+
}).transform((v2) => {
|
|
57549
|
+
return remap(v2, {
|
|
57550
|
+
"X-Moov-Version": "xMoovVersion"
|
|
57551
|
+
});
|
|
57552
|
+
});
|
|
57553
|
+
ListInvoicesGlobals$outboundSchema = objectType({
|
|
57554
|
+
xMoovVersion: stringType().optional()
|
|
57555
|
+
}).transform((v2) => {
|
|
57556
|
+
return remap(v2, {
|
|
57557
|
+
xMoovVersion: "X-Moov-Version"
|
|
57558
|
+
});
|
|
57559
|
+
});
|
|
57560
|
+
ListInvoicesRequest$inboundSchema = objectType({
|
|
57561
|
+
skip: numberType().int().optional(),
|
|
57562
|
+
count: numberType().int().optional(),
|
|
57563
|
+
status: InvoiceStatus$inboundSchema.optional(),
|
|
57564
|
+
customerAccountID: stringType().optional(),
|
|
57565
|
+
accountID: stringType()
|
|
57566
|
+
});
|
|
57567
|
+
ListInvoicesRequest$outboundSchema = objectType({
|
|
57568
|
+
skip: numberType().int().optional(),
|
|
57569
|
+
count: numberType().int().optional(),
|
|
57570
|
+
status: InvoiceStatus$outboundSchema.optional(),
|
|
57571
|
+
customerAccountID: stringType().optional(),
|
|
57572
|
+
accountID: stringType()
|
|
57573
|
+
});
|
|
57574
|
+
ListInvoicesResponse$inboundSchema = objectType({
|
|
57575
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
57576
|
+
Result: arrayType(Invoice$inboundSchema)
|
|
57577
|
+
}).transform((v2) => {
|
|
57578
|
+
return remap(v2, {
|
|
57579
|
+
Headers: "headers",
|
|
57580
|
+
Result: "result"
|
|
57581
|
+
});
|
|
57582
|
+
});
|
|
57583
|
+
ListInvoicesResponse$outboundSchema = objectType({
|
|
57584
|
+
headers: recordType(arrayType(stringType())),
|
|
57585
|
+
result: arrayType(Invoice$outboundSchema)
|
|
57586
|
+
}).transform((v2) => {
|
|
57587
|
+
return remap(v2, {
|
|
57588
|
+
headers: "Headers",
|
|
57589
|
+
result: "Result"
|
|
57590
|
+
});
|
|
57591
|
+
});
|
|
57592
|
+
});
|
|
57593
|
+
|
|
56817
57594
|
// src/models/operations/listissuedcardauthorizationevents.ts
|
|
56818
57595
|
var ListIssuedCardAuthorizationEventsGlobals$inboundSchema, ListIssuedCardAuthorizationEventsGlobals$outboundSchema, ListIssuedCardAuthorizationEventsRequest$inboundSchema, ListIssuedCardAuthorizationEventsRequest$outboundSchema, ListIssuedCardAuthorizationEventsResponse$inboundSchema, ListIssuedCardAuthorizationEventsResponse$outboundSchema;
|
|
56819
57596
|
var init_listissuedcardauthorizationevents = __esm(() => {
|
|
@@ -58141,6 +58918,64 @@ var init_listwallettransactions = __esm(() => {
|
|
|
58141
58918
|
});
|
|
58142
58919
|
});
|
|
58143
58920
|
|
|
58921
|
+
// src/models/operations/markpaidinvoice.ts
|
|
58922
|
+
var MarkPaidInvoiceGlobals$inboundSchema, MarkPaidInvoiceGlobals$outboundSchema, MarkPaidInvoiceRequest$inboundSchema, MarkPaidInvoiceRequest$outboundSchema, MarkPaidInvoiceResponse$inboundSchema, MarkPaidInvoiceResponse$outboundSchema;
|
|
58923
|
+
var init_markpaidinvoice = __esm(() => {
|
|
58924
|
+
init_esm();
|
|
58925
|
+
init_primitives();
|
|
58926
|
+
init_components();
|
|
58927
|
+
MarkPaidInvoiceGlobals$inboundSchema = objectType({
|
|
58928
|
+
"X-Moov-Version": stringType().optional()
|
|
58929
|
+
}).transform((v2) => {
|
|
58930
|
+
return remap(v2, {
|
|
58931
|
+
"X-Moov-Version": "xMoovVersion"
|
|
58932
|
+
});
|
|
58933
|
+
});
|
|
58934
|
+
MarkPaidInvoiceGlobals$outboundSchema = objectType({
|
|
58935
|
+
xMoovVersion: stringType().optional()
|
|
58936
|
+
}).transform((v2) => {
|
|
58937
|
+
return remap(v2, {
|
|
58938
|
+
xMoovVersion: "X-Moov-Version"
|
|
58939
|
+
});
|
|
58940
|
+
});
|
|
58941
|
+
MarkPaidInvoiceRequest$inboundSchema = objectType({
|
|
58942
|
+
accountID: stringType(),
|
|
58943
|
+
invoiceID: stringType(),
|
|
58944
|
+
MarkInvoicePaid: MarkInvoicePaid$inboundSchema
|
|
58945
|
+
}).transform((v2) => {
|
|
58946
|
+
return remap(v2, {
|
|
58947
|
+
MarkInvoicePaid: "markInvoicePaid"
|
|
58948
|
+
});
|
|
58949
|
+
});
|
|
58950
|
+
MarkPaidInvoiceRequest$outboundSchema = objectType({
|
|
58951
|
+
accountID: stringType(),
|
|
58952
|
+
invoiceID: stringType(),
|
|
58953
|
+
markInvoicePaid: MarkInvoicePaid$outboundSchema
|
|
58954
|
+
}).transform((v2) => {
|
|
58955
|
+
return remap(v2, {
|
|
58956
|
+
markInvoicePaid: "MarkInvoicePaid"
|
|
58957
|
+
});
|
|
58958
|
+
});
|
|
58959
|
+
MarkPaidInvoiceResponse$inboundSchema = objectType({
|
|
58960
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
58961
|
+
Result: Invoice$inboundSchema
|
|
58962
|
+
}).transform((v2) => {
|
|
58963
|
+
return remap(v2, {
|
|
58964
|
+
Headers: "headers",
|
|
58965
|
+
Result: "result"
|
|
58966
|
+
});
|
|
58967
|
+
});
|
|
58968
|
+
MarkPaidInvoiceResponse$outboundSchema = objectType({
|
|
58969
|
+
headers: recordType(arrayType(stringType())),
|
|
58970
|
+
result: Invoice$outboundSchema
|
|
58971
|
+
}).transform((v2) => {
|
|
58972
|
+
return remap(v2, {
|
|
58973
|
+
headers: "Headers",
|
|
58974
|
+
result: "Result"
|
|
58975
|
+
});
|
|
58976
|
+
});
|
|
58977
|
+
});
|
|
58978
|
+
|
|
58144
58979
|
// src/models/operations/ping.ts
|
|
58145
58980
|
var PingGlobals$inboundSchema, PingGlobals$outboundSchema, PingRequest$inboundSchema, PingRequest$outboundSchema, PingResponse$inboundSchema, PingResponse$outboundSchema;
|
|
58146
58981
|
var init_ping = __esm(() => {
|
|
@@ -59067,6 +59902,64 @@ var init_updateimagemetadata = __esm(() => {
|
|
|
59067
59902
|
});
|
|
59068
59903
|
});
|
|
59069
59904
|
|
|
59905
|
+
// src/models/operations/updateinvoice.ts
|
|
59906
|
+
var UpdateInvoiceGlobals$inboundSchema, UpdateInvoiceGlobals$outboundSchema, UpdateInvoiceRequest$inboundSchema, UpdateInvoiceRequest$outboundSchema, UpdateInvoiceResponse$inboundSchema, UpdateInvoiceResponse$outboundSchema;
|
|
59907
|
+
var init_updateinvoice2 = __esm(() => {
|
|
59908
|
+
init_esm();
|
|
59909
|
+
init_primitives();
|
|
59910
|
+
init_components();
|
|
59911
|
+
UpdateInvoiceGlobals$inboundSchema = objectType({
|
|
59912
|
+
"X-Moov-Version": stringType().optional()
|
|
59913
|
+
}).transform((v2) => {
|
|
59914
|
+
return remap(v2, {
|
|
59915
|
+
"X-Moov-Version": "xMoovVersion"
|
|
59916
|
+
});
|
|
59917
|
+
});
|
|
59918
|
+
UpdateInvoiceGlobals$outboundSchema = objectType({
|
|
59919
|
+
xMoovVersion: stringType().optional()
|
|
59920
|
+
}).transform((v2) => {
|
|
59921
|
+
return remap(v2, {
|
|
59922
|
+
xMoovVersion: "X-Moov-Version"
|
|
59923
|
+
});
|
|
59924
|
+
});
|
|
59925
|
+
UpdateInvoiceRequest$inboundSchema = objectType({
|
|
59926
|
+
accountID: stringType(),
|
|
59927
|
+
invoiceID: stringType(),
|
|
59928
|
+
UpdateInvoice: UpdateInvoice$inboundSchema
|
|
59929
|
+
}).transform((v2) => {
|
|
59930
|
+
return remap(v2, {
|
|
59931
|
+
UpdateInvoice: "updateInvoice"
|
|
59932
|
+
});
|
|
59933
|
+
});
|
|
59934
|
+
UpdateInvoiceRequest$outboundSchema = objectType({
|
|
59935
|
+
accountID: stringType(),
|
|
59936
|
+
invoiceID: stringType(),
|
|
59937
|
+
updateInvoice: UpdateInvoice$outboundSchema
|
|
59938
|
+
}).transform((v2) => {
|
|
59939
|
+
return remap(v2, {
|
|
59940
|
+
updateInvoice: "UpdateInvoice"
|
|
59941
|
+
});
|
|
59942
|
+
});
|
|
59943
|
+
UpdateInvoiceResponse$inboundSchema = objectType({
|
|
59944
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
59945
|
+
Result: Invoice$inboundSchema
|
|
59946
|
+
}).transform((v2) => {
|
|
59947
|
+
return remap(v2, {
|
|
59948
|
+
Headers: "headers",
|
|
59949
|
+
Result: "result"
|
|
59950
|
+
});
|
|
59951
|
+
});
|
|
59952
|
+
UpdateInvoiceResponse$outboundSchema = objectType({
|
|
59953
|
+
headers: recordType(arrayType(stringType())),
|
|
59954
|
+
result: Invoice$outboundSchema
|
|
59955
|
+
}).transform((v2) => {
|
|
59956
|
+
return remap(v2, {
|
|
59957
|
+
headers: "Headers",
|
|
59958
|
+
result: "Result"
|
|
59959
|
+
});
|
|
59960
|
+
});
|
|
59961
|
+
});
|
|
59962
|
+
|
|
59070
59963
|
// src/models/operations/updateissuedcard.ts
|
|
59071
59964
|
var UpdateIssuedCardGlobals$inboundSchema, UpdateIssuedCardGlobals$outboundSchema, UpdateIssuedCardRequest$inboundSchema, UpdateIssuedCardRequest$outboundSchema, UpdateIssuedCardResponse$inboundSchema, UpdateIssuedCardResponse$outboundSchema;
|
|
59072
59965
|
var init_updateissuedcard2 = __esm(() => {
|
|
@@ -59938,6 +60831,7 @@ var init_operations = __esm(() => {
|
|
|
59938
60831
|
init_createbrand();
|
|
59939
60832
|
init_createcancellation();
|
|
59940
60833
|
init_createfeeplanagreements();
|
|
60834
|
+
init_createinvoice2();
|
|
59941
60835
|
init_createonboardinginvite();
|
|
59942
60836
|
init_createpaymentlink2();
|
|
59943
60837
|
init_createproduct();
|
|
@@ -59983,6 +60877,7 @@ var init_operations = __esm(() => {
|
|
|
59983
60877
|
init_getfiledetails();
|
|
59984
60878
|
init_getfullissuedcard();
|
|
59985
60879
|
init_getimagemetadata();
|
|
60880
|
+
init_getinvoice();
|
|
59986
60881
|
init_getissuedcard();
|
|
59987
60882
|
init_getissuedcardauthorization();
|
|
59988
60883
|
init_getissuedcardtransaction();
|
|
@@ -60032,6 +60927,7 @@ var init_operations = __esm(() => {
|
|
|
60032
60927
|
init_listimagemetadata();
|
|
60033
60928
|
init_listindustries();
|
|
60034
60929
|
init_listinstitutions();
|
|
60930
|
+
init_listinvoices();
|
|
60035
60931
|
init_listissuedcardauthorizationevents();
|
|
60036
60932
|
init_listissuedcardauthorizations();
|
|
60037
60933
|
init_listissuedcards();
|
|
@@ -60057,6 +60953,7 @@ var init_operations = __esm(() => {
|
|
|
60057
60953
|
init_listtransfers();
|
|
60058
60954
|
init_listwallets();
|
|
60059
60955
|
init_listwallettransactions();
|
|
60956
|
+
init_markpaidinvoice();
|
|
60060
60957
|
init_ping();
|
|
60061
60958
|
init_registerapplepaymerchantdomains2();
|
|
60062
60959
|
init_requestcapabilities();
|
|
@@ -60075,6 +60972,7 @@ var init_operations = __esm(() => {
|
|
|
60075
60972
|
init_updatedisputeevidence();
|
|
60076
60973
|
init_updateimage();
|
|
60077
60974
|
init_updateimagemetadata();
|
|
60975
|
+
init_updateinvoice2();
|
|
60078
60976
|
init_updateissuedcard2();
|
|
60079
60977
|
init_updatepaymentlink2();
|
|
60080
60978
|
init_updateproduct();
|
|
@@ -70976,26 +71874,26 @@ you'll need to specify the \`/institutions.read\` scope.`,
|
|
|
70976
71874
|
};
|
|
70977
71875
|
});
|
|
70978
71876
|
|
|
70979
|
-
// src/funcs/
|
|
70980
|
-
function
|
|
71877
|
+
// src/funcs/invoicesCreateInvoice.ts
|
|
71878
|
+
function invoicesCreateInvoice(client, request, options) {
|
|
70981
71879
|
return new APIPromise($do90(client, request, options));
|
|
70982
71880
|
}
|
|
70983
71881
|
async function $do90(client, request, options) {
|
|
70984
|
-
const parsed = safeParse(request, (value) =>
|
|
71882
|
+
const parsed = safeParse(request, (value) => CreateInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
70985
71883
|
if (!parsed.ok) {
|
|
70986
71884
|
return [parsed, { status: "invalid" }];
|
|
70987
71885
|
}
|
|
70988
71886
|
const payload = parsed.value;
|
|
70989
|
-
const body =
|
|
71887
|
+
const body = encodeJSON("body", payload.CreateInvoice, { explode: true });
|
|
70990
71888
|
const pathParams = {
|
|
70991
71889
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
70992
71890
|
explode: false,
|
|
70993
71891
|
charEncoding: "percent"
|
|
70994
|
-
})
|
|
70995
|
-
cardTransactionID: encodeSimple("cardTransactionID", payload.cardTransactionID, { explode: false, charEncoding: "percent" })
|
|
71892
|
+
})
|
|
70996
71893
|
};
|
|
70997
|
-
const path = pathToFunc("/
|
|
71894
|
+
const path = pathToFunc("/accounts/{accountID}/invoices")(pathParams);
|
|
70998
71895
|
const headers = new Headers(compactMap({
|
|
71896
|
+
"Content-Type": "application/json",
|
|
70999
71897
|
Accept: "application/json",
|
|
71000
71898
|
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
71001
71899
|
}));
|
|
@@ -71004,7 +71902,7 @@ async function $do90(client, request, options) {
|
|
|
71004
71902
|
const context = {
|
|
71005
71903
|
options: client._options,
|
|
71006
71904
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
71007
|
-
operationID: "
|
|
71905
|
+
operationID: "createInvoice",
|
|
71008
71906
|
oAuth2Scopes: null,
|
|
71009
71907
|
resolvedSecurity: requestSecurity,
|
|
71010
71908
|
securitySource: client._options.security,
|
|
@@ -71013,7 +71911,7 @@ async function $do90(client, request, options) {
|
|
|
71013
71911
|
};
|
|
71014
71912
|
const requestRes = client._createRequest(context, {
|
|
71015
71913
|
security: requestSecurity,
|
|
71016
|
-
method: "
|
|
71914
|
+
method: "POST",
|
|
71017
71915
|
baseURL: options?.serverURL,
|
|
71018
71916
|
path,
|
|
71019
71917
|
headers,
|
|
@@ -71027,7 +71925,19 @@ async function $do90(client, request, options) {
|
|
|
71027
71925
|
const req = requestRes.value;
|
|
71028
71926
|
const doResult = await client._do(req, {
|
|
71029
71927
|
context,
|
|
71030
|
-
errorCodes: [
|
|
71928
|
+
errorCodes: [
|
|
71929
|
+
"400",
|
|
71930
|
+
"401",
|
|
71931
|
+
"403",
|
|
71932
|
+
"404",
|
|
71933
|
+
"409",
|
|
71934
|
+
"422",
|
|
71935
|
+
"429",
|
|
71936
|
+
"4XX",
|
|
71937
|
+
"500",
|
|
71938
|
+
"504",
|
|
71939
|
+
"5XX"
|
|
71940
|
+
],
|
|
71031
71941
|
retryConfig: context.retryConfig,
|
|
71032
71942
|
retryCodes: context.retryCodes
|
|
71033
71943
|
});
|
|
@@ -71038,44 +71948,45 @@ async function $do90(client, request, options) {
|
|
|
71038
71948
|
const responseFields = {
|
|
71039
71949
|
HttpMeta: { Response: response, Request: req }
|
|
71040
71950
|
};
|
|
71041
|
-
const [result] = await match(json(
|
|
71951
|
+
const [result] = await match(json(201, CreateInvoiceResponse$inboundSchema, {
|
|
71042
71952
|
hdrs: true,
|
|
71043
71953
|
key: "Result"
|
|
71044
|
-
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
71954
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, CreateInvoiceError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
71045
71955
|
if (!result.ok) {
|
|
71046
71956
|
return [result, { status: "complete", request: req, response }];
|
|
71047
71957
|
}
|
|
71048
71958
|
return [result, { status: "complete", request: req, response }];
|
|
71049
71959
|
}
|
|
71050
|
-
var
|
|
71960
|
+
var init_invoicesCreateInvoice = __esm(() => {
|
|
71051
71961
|
init_encodings();
|
|
71052
71962
|
init_matchers();
|
|
71053
71963
|
init_primitives();
|
|
71054
71964
|
init_schemas();
|
|
71055
71965
|
init_security();
|
|
71056
71966
|
init_url();
|
|
71967
|
+
init_errors2();
|
|
71057
71968
|
init_operations();
|
|
71058
71969
|
init_async();
|
|
71059
71970
|
});
|
|
71060
71971
|
|
|
71061
|
-
// src/mcp-server/tools/
|
|
71062
|
-
var args90, tool$
|
|
71063
|
-
var
|
|
71064
|
-
|
|
71972
|
+
// src/mcp-server/tools/invoicesCreateInvoice.ts
|
|
71973
|
+
var args90, tool$invoicesCreateInvoice;
|
|
71974
|
+
var init_invoicesCreateInvoice2 = __esm(() => {
|
|
71975
|
+
init_invoicesCreateInvoice();
|
|
71065
71976
|
init_operations();
|
|
71066
71977
|
init_tools();
|
|
71067
71978
|
args90 = {
|
|
71068
|
-
request:
|
|
71979
|
+
request: CreateInvoiceRequest$inboundSchema
|
|
71069
71980
|
};
|
|
71070
|
-
tool$
|
|
71071
|
-
name: "
|
|
71072
|
-
description: `
|
|
71981
|
+
tool$invoicesCreateInvoice = {
|
|
71982
|
+
name: "invoices-create-invoice",
|
|
71983
|
+
description: `Create an invoice for a Moov account.
|
|
71073
71984
|
|
|
71074
71985
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71075
|
-
you'll need to specify the \`/accounts/{accountID}/
|
|
71986
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.write\` scope.`,
|
|
71076
71987
|
args: args90,
|
|
71077
71988
|
tool: async (client, args91, ctx) => {
|
|
71078
|
-
const [result, apiCall] = await
|
|
71989
|
+
const [result, apiCall] = await invoicesCreateInvoice(client, args91.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71079
71990
|
if (!result.ok) {
|
|
71080
71991
|
return {
|
|
71081
71992
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71088,12 +71999,12 @@ you'll need to specify the \`/accounts/{accountID}/issued-cards.read\` scope.`,
|
|
|
71088
71999
|
};
|
|
71089
72000
|
});
|
|
71090
72001
|
|
|
71091
|
-
// src/funcs/
|
|
71092
|
-
function
|
|
72002
|
+
// src/funcs/invoicesGetInvoice.ts
|
|
72003
|
+
function invoicesGetInvoice(client, request, options) {
|
|
71093
72004
|
return new APIPromise($do91(client, request, options));
|
|
71094
72005
|
}
|
|
71095
72006
|
async function $do91(client, request, options) {
|
|
71096
|
-
const parsed = safeParse(request, (value) =>
|
|
72007
|
+
const parsed = safeParse(request, (value) => GetInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71097
72008
|
if (!parsed.ok) {
|
|
71098
72009
|
return [parsed, { status: "invalid" }];
|
|
71099
72010
|
}
|
|
@@ -71104,12 +72015,12 @@ async function $do91(client, request, options) {
|
|
|
71104
72015
|
explode: false,
|
|
71105
72016
|
charEncoding: "percent"
|
|
71106
72017
|
}),
|
|
71107
|
-
|
|
72018
|
+
invoiceID: encodeSimple("invoiceID", payload.invoiceID, {
|
|
71108
72019
|
explode: false,
|
|
71109
72020
|
charEncoding: "percent"
|
|
71110
72021
|
})
|
|
71111
72022
|
};
|
|
71112
|
-
const path = pathToFunc("/
|
|
72023
|
+
const path = pathToFunc("/accounts/{accountID}/invoices/{invoiceID}")(pathParams);
|
|
71113
72024
|
const headers = new Headers(compactMap({
|
|
71114
72025
|
Accept: "application/json",
|
|
71115
72026
|
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
@@ -71119,7 +72030,614 @@ async function $do91(client, request, options) {
|
|
|
71119
72030
|
const context = {
|
|
71120
72031
|
options: client._options,
|
|
71121
72032
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
71122
|
-
operationID: "
|
|
72033
|
+
operationID: "getInvoice",
|
|
72034
|
+
oAuth2Scopes: null,
|
|
72035
|
+
resolvedSecurity: requestSecurity,
|
|
72036
|
+
securitySource: client._options.security,
|
|
72037
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
72038
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
72039
|
+
};
|
|
72040
|
+
const requestRes = client._createRequest(context, {
|
|
72041
|
+
security: requestSecurity,
|
|
72042
|
+
method: "GET",
|
|
72043
|
+
baseURL: options?.serverURL,
|
|
72044
|
+
path,
|
|
72045
|
+
headers,
|
|
72046
|
+
body,
|
|
72047
|
+
userAgent: client._options.userAgent,
|
|
72048
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
72049
|
+
}, options);
|
|
72050
|
+
if (!requestRes.ok) {
|
|
72051
|
+
return [requestRes, { status: "invalid" }];
|
|
72052
|
+
}
|
|
72053
|
+
const req = requestRes.value;
|
|
72054
|
+
const doResult = await client._do(req, {
|
|
72055
|
+
context,
|
|
72056
|
+
errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
72057
|
+
retryConfig: context.retryConfig,
|
|
72058
|
+
retryCodes: context.retryCodes
|
|
72059
|
+
});
|
|
72060
|
+
if (!doResult.ok) {
|
|
72061
|
+
return [doResult, { status: "request-error", request: req }];
|
|
72062
|
+
}
|
|
72063
|
+
const response = doResult.value;
|
|
72064
|
+
const responseFields = {
|
|
72065
|
+
HttpMeta: { Response: response, Request: req }
|
|
72066
|
+
};
|
|
72067
|
+
const [result] = await match(json(200, GetInvoiceResponse$inboundSchema, {
|
|
72068
|
+
hdrs: true,
|
|
72069
|
+
key: "Result"
|
|
72070
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
72071
|
+
if (!result.ok) {
|
|
72072
|
+
return [result, { status: "complete", request: req, response }];
|
|
72073
|
+
}
|
|
72074
|
+
return [result, { status: "complete", request: req, response }];
|
|
72075
|
+
}
|
|
72076
|
+
var init_invoicesGetInvoice = __esm(() => {
|
|
72077
|
+
init_encodings();
|
|
72078
|
+
init_matchers();
|
|
72079
|
+
init_primitives();
|
|
72080
|
+
init_schemas();
|
|
72081
|
+
init_security();
|
|
72082
|
+
init_url();
|
|
72083
|
+
init_operations();
|
|
72084
|
+
init_async();
|
|
72085
|
+
});
|
|
72086
|
+
|
|
72087
|
+
// src/mcp-server/tools/invoicesGetInvoice.ts
|
|
72088
|
+
var args91, tool$invoicesGetInvoice;
|
|
72089
|
+
var init_invoicesGetInvoice2 = __esm(() => {
|
|
72090
|
+
init_invoicesGetInvoice();
|
|
72091
|
+
init_operations();
|
|
72092
|
+
init_tools();
|
|
72093
|
+
args91 = {
|
|
72094
|
+
request: GetInvoiceRequest$inboundSchema
|
|
72095
|
+
};
|
|
72096
|
+
tool$invoicesGetInvoice = {
|
|
72097
|
+
name: "invoices-get-invoice",
|
|
72098
|
+
description: `Retrieve an invoice by ID.
|
|
72099
|
+
|
|
72100
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72101
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.read\` scope.`,
|
|
72102
|
+
args: args91,
|
|
72103
|
+
tool: async (client, args92, ctx) => {
|
|
72104
|
+
const [result, apiCall] = await invoicesGetInvoice(client, args92.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72105
|
+
if (!result.ok) {
|
|
72106
|
+
return {
|
|
72107
|
+
content: [{ type: "text", text: result.error.message }],
|
|
72108
|
+
isError: true
|
|
72109
|
+
};
|
|
72110
|
+
}
|
|
72111
|
+
const value = result.value.result;
|
|
72112
|
+
return formatResult(value, apiCall);
|
|
72113
|
+
}
|
|
72114
|
+
};
|
|
72115
|
+
});
|
|
72116
|
+
|
|
72117
|
+
// src/funcs/invoicesListInvoices.ts
|
|
72118
|
+
function invoicesListInvoices(client, request, options) {
|
|
72119
|
+
return new APIPromise($do92(client, request, options));
|
|
72120
|
+
}
|
|
72121
|
+
async function $do92(client, request, options) {
|
|
72122
|
+
const parsed = safeParse(request, (value) => ListInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72123
|
+
if (!parsed.ok) {
|
|
72124
|
+
return [parsed, { status: "invalid" }];
|
|
72125
|
+
}
|
|
72126
|
+
const payload = parsed.value;
|
|
72127
|
+
const body = null;
|
|
72128
|
+
const pathParams = {
|
|
72129
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
72130
|
+
explode: false,
|
|
72131
|
+
charEncoding: "percent"
|
|
72132
|
+
})
|
|
72133
|
+
};
|
|
72134
|
+
const path = pathToFunc("/accounts/{accountID}/invoices")(pathParams);
|
|
72135
|
+
const query = encodeFormQuery({
|
|
72136
|
+
count: payload.count,
|
|
72137
|
+
customerAccountID: payload.customerAccountID,
|
|
72138
|
+
skip: payload.skip,
|
|
72139
|
+
status: payload.status
|
|
72140
|
+
}, { explode: false });
|
|
72141
|
+
const headers = new Headers(compactMap({
|
|
72142
|
+
Accept: "application/json",
|
|
72143
|
+
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
72144
|
+
}));
|
|
72145
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
72146
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
72147
|
+
const context = {
|
|
72148
|
+
options: client._options,
|
|
72149
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
72150
|
+
operationID: "listInvoices",
|
|
72151
|
+
oAuth2Scopes: null,
|
|
72152
|
+
resolvedSecurity: requestSecurity,
|
|
72153
|
+
securitySource: client._options.security,
|
|
72154
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
72155
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
72156
|
+
};
|
|
72157
|
+
const requestRes = client._createRequest(context, {
|
|
72158
|
+
security: requestSecurity,
|
|
72159
|
+
method: "GET",
|
|
72160
|
+
baseURL: options?.serverURL,
|
|
72161
|
+
path,
|
|
72162
|
+
headers,
|
|
72163
|
+
query,
|
|
72164
|
+
body,
|
|
72165
|
+
userAgent: client._options.userAgent,
|
|
72166
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
72167
|
+
}, options);
|
|
72168
|
+
if (!requestRes.ok) {
|
|
72169
|
+
return [requestRes, { status: "invalid" }];
|
|
72170
|
+
}
|
|
72171
|
+
const req = requestRes.value;
|
|
72172
|
+
const doResult = await client._do(req, {
|
|
72173
|
+
context,
|
|
72174
|
+
errorCodes: ["401", "403", "422", "429", "4XX", "500", "504", "5XX"],
|
|
72175
|
+
retryConfig: context.retryConfig,
|
|
72176
|
+
retryCodes: context.retryCodes
|
|
72177
|
+
});
|
|
72178
|
+
if (!doResult.ok) {
|
|
72179
|
+
return [doResult, { status: "request-error", request: req }];
|
|
72180
|
+
}
|
|
72181
|
+
const response = doResult.value;
|
|
72182
|
+
const responseFields = {
|
|
72183
|
+
HttpMeta: { Response: response, Request: req }
|
|
72184
|
+
};
|
|
72185
|
+
const [result] = await match(json(200, ListInvoicesResponse$inboundSchema, {
|
|
72186
|
+
hdrs: true,
|
|
72187
|
+
key: "Result"
|
|
72188
|
+
}), jsonErr(422, ListInvoicesValidationError$inboundSchema, {
|
|
72189
|
+
hdrs: true
|
|
72190
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
72191
|
+
if (!result.ok) {
|
|
72192
|
+
return [result, { status: "complete", request: req, response }];
|
|
72193
|
+
}
|
|
72194
|
+
return [result, { status: "complete", request: req, response }];
|
|
72195
|
+
}
|
|
72196
|
+
var init_invoicesListInvoices = __esm(() => {
|
|
72197
|
+
init_encodings();
|
|
72198
|
+
init_matchers();
|
|
72199
|
+
init_primitives();
|
|
72200
|
+
init_schemas();
|
|
72201
|
+
init_security();
|
|
72202
|
+
init_url();
|
|
72203
|
+
init_errors2();
|
|
72204
|
+
init_operations();
|
|
72205
|
+
init_async();
|
|
72206
|
+
});
|
|
72207
|
+
|
|
72208
|
+
// src/mcp-server/tools/invoicesListInvoices.ts
|
|
72209
|
+
var args92, tool$invoicesListInvoices;
|
|
72210
|
+
var init_invoicesListInvoices2 = __esm(() => {
|
|
72211
|
+
init_invoicesListInvoices();
|
|
72212
|
+
init_operations();
|
|
72213
|
+
init_tools();
|
|
72214
|
+
args92 = {
|
|
72215
|
+
request: ListInvoicesRequest$inboundSchema
|
|
72216
|
+
};
|
|
72217
|
+
tool$invoicesListInvoices = {
|
|
72218
|
+
name: "invoices-list-invoices",
|
|
72219
|
+
description: `List all the invoices created under a Moov account.
|
|
72220
|
+
|
|
72221
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72222
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.read\` scope.`,
|
|
72223
|
+
args: args92,
|
|
72224
|
+
tool: async (client, args93, ctx) => {
|
|
72225
|
+
const [result, apiCall] = await invoicesListInvoices(client, args93.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72226
|
+
if (!result.ok) {
|
|
72227
|
+
return {
|
|
72228
|
+
content: [{ type: "text", text: result.error.message }],
|
|
72229
|
+
isError: true
|
|
72230
|
+
};
|
|
72231
|
+
}
|
|
72232
|
+
const value = result.value.result;
|
|
72233
|
+
return formatResult(value, apiCall);
|
|
72234
|
+
}
|
|
72235
|
+
};
|
|
72236
|
+
});
|
|
72237
|
+
|
|
72238
|
+
// src/funcs/invoicesMarkPaidInvoice.ts
|
|
72239
|
+
function invoicesMarkPaidInvoice(client, request, options) {
|
|
72240
|
+
return new APIPromise($do93(client, request, options));
|
|
72241
|
+
}
|
|
72242
|
+
async function $do93(client, request, options) {
|
|
72243
|
+
const parsed = safeParse(request, (value) => MarkPaidInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72244
|
+
if (!parsed.ok) {
|
|
72245
|
+
return [parsed, { status: "invalid" }];
|
|
72246
|
+
}
|
|
72247
|
+
const payload = parsed.value;
|
|
72248
|
+
const body = encodeJSON("body", payload.MarkInvoicePaid, { explode: true });
|
|
72249
|
+
const pathParams = {
|
|
72250
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
72251
|
+
explode: false,
|
|
72252
|
+
charEncoding: "percent"
|
|
72253
|
+
}),
|
|
72254
|
+
invoiceID: encodeSimple("invoiceID", payload.invoiceID, {
|
|
72255
|
+
explode: false,
|
|
72256
|
+
charEncoding: "percent"
|
|
72257
|
+
})
|
|
72258
|
+
};
|
|
72259
|
+
const path = pathToFunc("/accounts/{accountID}/invoices/{invoiceID}/mark-paid")(pathParams);
|
|
72260
|
+
const headers = new Headers(compactMap({
|
|
72261
|
+
"Content-Type": "application/json",
|
|
72262
|
+
Accept: "application/json",
|
|
72263
|
+
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
72264
|
+
}));
|
|
72265
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
72266
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
72267
|
+
const context = {
|
|
72268
|
+
options: client._options,
|
|
72269
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
72270
|
+
operationID: "markPaidInvoice",
|
|
72271
|
+
oAuth2Scopes: null,
|
|
72272
|
+
resolvedSecurity: requestSecurity,
|
|
72273
|
+
securitySource: client._options.security,
|
|
72274
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
72275
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
72276
|
+
};
|
|
72277
|
+
const requestRes = client._createRequest(context, {
|
|
72278
|
+
security: requestSecurity,
|
|
72279
|
+
method: "PUT",
|
|
72280
|
+
baseURL: options?.serverURL,
|
|
72281
|
+
path,
|
|
72282
|
+
headers,
|
|
72283
|
+
body,
|
|
72284
|
+
userAgent: client._options.userAgent,
|
|
72285
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
72286
|
+
}, options);
|
|
72287
|
+
if (!requestRes.ok) {
|
|
72288
|
+
return [requestRes, { status: "invalid" }];
|
|
72289
|
+
}
|
|
72290
|
+
const req = requestRes.value;
|
|
72291
|
+
const doResult = await client._do(req, {
|
|
72292
|
+
context,
|
|
72293
|
+
errorCodes: [
|
|
72294
|
+
"400",
|
|
72295
|
+
"401",
|
|
72296
|
+
"403",
|
|
72297
|
+
"404",
|
|
72298
|
+
"409",
|
|
72299
|
+
"422",
|
|
72300
|
+
"429",
|
|
72301
|
+
"4XX",
|
|
72302
|
+
"500",
|
|
72303
|
+
"504",
|
|
72304
|
+
"5XX"
|
|
72305
|
+
],
|
|
72306
|
+
retryConfig: context.retryConfig,
|
|
72307
|
+
retryCodes: context.retryCodes
|
|
72308
|
+
});
|
|
72309
|
+
if (!doResult.ok) {
|
|
72310
|
+
return [doResult, { status: "request-error", request: req }];
|
|
72311
|
+
}
|
|
72312
|
+
const response = doResult.value;
|
|
72313
|
+
const responseFields = {
|
|
72314
|
+
HttpMeta: { Response: response, Request: req }
|
|
72315
|
+
};
|
|
72316
|
+
const [result] = await match(json(200, MarkPaidInvoiceResponse$inboundSchema, {
|
|
72317
|
+
hdrs: true,
|
|
72318
|
+
key: "Result"
|
|
72319
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, MarkInvoicePaidError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
72320
|
+
if (!result.ok) {
|
|
72321
|
+
return [result, { status: "complete", request: req, response }];
|
|
72322
|
+
}
|
|
72323
|
+
return [result, { status: "complete", request: req, response }];
|
|
72324
|
+
}
|
|
72325
|
+
var init_invoicesMarkPaidInvoice = __esm(() => {
|
|
72326
|
+
init_encodings();
|
|
72327
|
+
init_matchers();
|
|
72328
|
+
init_primitives();
|
|
72329
|
+
init_schemas();
|
|
72330
|
+
init_security();
|
|
72331
|
+
init_url();
|
|
72332
|
+
init_errors2();
|
|
72333
|
+
init_operations();
|
|
72334
|
+
init_async();
|
|
72335
|
+
});
|
|
72336
|
+
|
|
72337
|
+
// src/mcp-server/tools/invoicesMarkPaidInvoice.ts
|
|
72338
|
+
var args93, tool$invoicesMarkPaidInvoice;
|
|
72339
|
+
var init_invoicesMarkPaidInvoice2 = __esm(() => {
|
|
72340
|
+
init_invoicesMarkPaidInvoice();
|
|
72341
|
+
init_operations();
|
|
72342
|
+
init_tools();
|
|
72343
|
+
args93 = {
|
|
72344
|
+
request: MarkPaidInvoiceRequest$inboundSchema
|
|
72345
|
+
};
|
|
72346
|
+
tool$invoicesMarkPaidInvoice = {
|
|
72347
|
+
name: "invoices-mark-paid-invoice",
|
|
72348
|
+
description: `Marks an invoice as paid outside of the Moov platform.
|
|
72349
|
+
If a payment link was created, the corresponding payment link is canceled, but a receipt is still sent.
|
|
72350
|
+
|
|
72351
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72352
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.write\` scope.`,
|
|
72353
|
+
args: args93,
|
|
72354
|
+
tool: async (client, args94, ctx) => {
|
|
72355
|
+
const [result, apiCall] = await invoicesMarkPaidInvoice(client, args94.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72356
|
+
if (!result.ok) {
|
|
72357
|
+
return {
|
|
72358
|
+
content: [{ type: "text", text: result.error.message }],
|
|
72359
|
+
isError: true
|
|
72360
|
+
};
|
|
72361
|
+
}
|
|
72362
|
+
const value = result.value.result;
|
|
72363
|
+
return formatResult(value, apiCall);
|
|
72364
|
+
}
|
|
72365
|
+
};
|
|
72366
|
+
});
|
|
72367
|
+
|
|
72368
|
+
// src/funcs/invoicesUpdateInvoice.ts
|
|
72369
|
+
function invoicesUpdateInvoice(client, request, options) {
|
|
72370
|
+
return new APIPromise($do94(client, request, options));
|
|
72371
|
+
}
|
|
72372
|
+
async function $do94(client, request, options) {
|
|
72373
|
+
const parsed = safeParse(request, (value) => UpdateInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72374
|
+
if (!parsed.ok) {
|
|
72375
|
+
return [parsed, { status: "invalid" }];
|
|
72376
|
+
}
|
|
72377
|
+
const payload = parsed.value;
|
|
72378
|
+
const body = encodeJSON("body", payload.UpdateInvoice, { explode: true });
|
|
72379
|
+
const pathParams = {
|
|
72380
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
72381
|
+
explode: false,
|
|
72382
|
+
charEncoding: "percent"
|
|
72383
|
+
}),
|
|
72384
|
+
invoiceID: encodeSimple("invoiceID", payload.invoiceID, {
|
|
72385
|
+
explode: false,
|
|
72386
|
+
charEncoding: "percent"
|
|
72387
|
+
})
|
|
72388
|
+
};
|
|
72389
|
+
const path = pathToFunc("/accounts/{accountID}/invoices/{invoiceID}")(pathParams);
|
|
72390
|
+
const headers = new Headers(compactMap({
|
|
72391
|
+
"Content-Type": "application/json",
|
|
72392
|
+
Accept: "application/json",
|
|
72393
|
+
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
72394
|
+
}));
|
|
72395
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
72396
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
72397
|
+
const context = {
|
|
72398
|
+
options: client._options,
|
|
72399
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
72400
|
+
operationID: "updateInvoice",
|
|
72401
|
+
oAuth2Scopes: null,
|
|
72402
|
+
resolvedSecurity: requestSecurity,
|
|
72403
|
+
securitySource: client._options.security,
|
|
72404
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
72405
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
72406
|
+
};
|
|
72407
|
+
const requestRes = client._createRequest(context, {
|
|
72408
|
+
security: requestSecurity,
|
|
72409
|
+
method: "PATCH",
|
|
72410
|
+
baseURL: options?.serverURL,
|
|
72411
|
+
path,
|
|
72412
|
+
headers,
|
|
72413
|
+
body,
|
|
72414
|
+
userAgent: client._options.userAgent,
|
|
72415
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
72416
|
+
}, options);
|
|
72417
|
+
if (!requestRes.ok) {
|
|
72418
|
+
return [requestRes, { status: "invalid" }];
|
|
72419
|
+
}
|
|
72420
|
+
const req = requestRes.value;
|
|
72421
|
+
const doResult = await client._do(req, {
|
|
72422
|
+
context,
|
|
72423
|
+
errorCodes: [
|
|
72424
|
+
"400",
|
|
72425
|
+
"401",
|
|
72426
|
+
"403",
|
|
72427
|
+
"404",
|
|
72428
|
+
"409",
|
|
72429
|
+
"422",
|
|
72430
|
+
"429",
|
|
72431
|
+
"4XX",
|
|
72432
|
+
"500",
|
|
72433
|
+
"504",
|
|
72434
|
+
"5XX"
|
|
72435
|
+
],
|
|
72436
|
+
retryConfig: context.retryConfig,
|
|
72437
|
+
retryCodes: context.retryCodes
|
|
72438
|
+
});
|
|
72439
|
+
if (!doResult.ok) {
|
|
72440
|
+
return [doResult, { status: "request-error", request: req }];
|
|
72441
|
+
}
|
|
72442
|
+
const response = doResult.value;
|
|
72443
|
+
const responseFields = {
|
|
72444
|
+
HttpMeta: { Response: response, Request: req }
|
|
72445
|
+
};
|
|
72446
|
+
const [result] = await match(json(200, UpdateInvoiceResponse$inboundSchema, {
|
|
72447
|
+
hdrs: true,
|
|
72448
|
+
key: "Result"
|
|
72449
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, UpdateInvoiceError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
72450
|
+
if (!result.ok) {
|
|
72451
|
+
return [result, { status: "complete", request: req, response }];
|
|
72452
|
+
}
|
|
72453
|
+
return [result, { status: "complete", request: req, response }];
|
|
72454
|
+
}
|
|
72455
|
+
var init_invoicesUpdateInvoice = __esm(() => {
|
|
72456
|
+
init_encodings();
|
|
72457
|
+
init_matchers();
|
|
72458
|
+
init_primitives();
|
|
72459
|
+
init_schemas();
|
|
72460
|
+
init_security();
|
|
72461
|
+
init_url();
|
|
72462
|
+
init_errors2();
|
|
72463
|
+
init_operations();
|
|
72464
|
+
init_async();
|
|
72465
|
+
});
|
|
72466
|
+
|
|
72467
|
+
// src/mcp-server/tools/invoicesUpdateInvoice.ts
|
|
72468
|
+
var args94, tool$invoicesUpdateInvoice;
|
|
72469
|
+
var init_invoicesUpdateInvoice2 = __esm(() => {
|
|
72470
|
+
init_invoicesUpdateInvoice();
|
|
72471
|
+
init_operations();
|
|
72472
|
+
init_tools();
|
|
72473
|
+
args94 = {
|
|
72474
|
+
request: UpdateInvoiceRequest$inboundSchema
|
|
72475
|
+
};
|
|
72476
|
+
tool$invoicesUpdateInvoice = {
|
|
72477
|
+
name: "invoices-update-invoice",
|
|
72478
|
+
description: `Updates an invoice.
|
|
72479
|
+
|
|
72480
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72481
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.write\` scope.`,
|
|
72482
|
+
args: args94,
|
|
72483
|
+
tool: async (client, args95, ctx) => {
|
|
72484
|
+
const [result, apiCall] = await invoicesUpdateInvoice(client, args95.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72485
|
+
if (!result.ok) {
|
|
72486
|
+
return {
|
|
72487
|
+
content: [{ type: "text", text: result.error.message }],
|
|
72488
|
+
isError: true
|
|
72489
|
+
};
|
|
72490
|
+
}
|
|
72491
|
+
const value = result.value.result;
|
|
72492
|
+
return formatResult(value, apiCall);
|
|
72493
|
+
}
|
|
72494
|
+
};
|
|
72495
|
+
});
|
|
72496
|
+
|
|
72497
|
+
// src/funcs/issuingTransactionsGet.ts
|
|
72498
|
+
function issuingTransactionsGet(client, request, options) {
|
|
72499
|
+
return new APIPromise($do95(client, request, options));
|
|
72500
|
+
}
|
|
72501
|
+
async function $do95(client, request, options) {
|
|
72502
|
+
const parsed = safeParse(request, (value) => GetIssuedCardTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72503
|
+
if (!parsed.ok) {
|
|
72504
|
+
return [parsed, { status: "invalid" }];
|
|
72505
|
+
}
|
|
72506
|
+
const payload = parsed.value;
|
|
72507
|
+
const body = null;
|
|
72508
|
+
const pathParams = {
|
|
72509
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
72510
|
+
explode: false,
|
|
72511
|
+
charEncoding: "percent"
|
|
72512
|
+
}),
|
|
72513
|
+
cardTransactionID: encodeSimple("cardTransactionID", payload.cardTransactionID, { explode: false, charEncoding: "percent" })
|
|
72514
|
+
};
|
|
72515
|
+
const path = pathToFunc("/issuing/{accountID}/card-transactions/{cardTransactionID}")(pathParams);
|
|
72516
|
+
const headers = new Headers(compactMap({
|
|
72517
|
+
Accept: "application/json",
|
|
72518
|
+
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
72519
|
+
}));
|
|
72520
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
72521
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
72522
|
+
const context = {
|
|
72523
|
+
options: client._options,
|
|
72524
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
72525
|
+
operationID: "getIssuedCardTransaction",
|
|
72526
|
+
oAuth2Scopes: null,
|
|
72527
|
+
resolvedSecurity: requestSecurity,
|
|
72528
|
+
securitySource: client._options.security,
|
|
72529
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
72530
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
72531
|
+
};
|
|
72532
|
+
const requestRes = client._createRequest(context, {
|
|
72533
|
+
security: requestSecurity,
|
|
72534
|
+
method: "GET",
|
|
72535
|
+
baseURL: options?.serverURL,
|
|
72536
|
+
path,
|
|
72537
|
+
headers,
|
|
72538
|
+
body,
|
|
72539
|
+
userAgent: client._options.userAgent,
|
|
72540
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
72541
|
+
}, options);
|
|
72542
|
+
if (!requestRes.ok) {
|
|
72543
|
+
return [requestRes, { status: "invalid" }];
|
|
72544
|
+
}
|
|
72545
|
+
const req = requestRes.value;
|
|
72546
|
+
const doResult = await client._do(req, {
|
|
72547
|
+
context,
|
|
72548
|
+
errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
72549
|
+
retryConfig: context.retryConfig,
|
|
72550
|
+
retryCodes: context.retryCodes
|
|
72551
|
+
});
|
|
72552
|
+
if (!doResult.ok) {
|
|
72553
|
+
return [doResult, { status: "request-error", request: req }];
|
|
72554
|
+
}
|
|
72555
|
+
const response = doResult.value;
|
|
72556
|
+
const responseFields = {
|
|
72557
|
+
HttpMeta: { Response: response, Request: req }
|
|
72558
|
+
};
|
|
72559
|
+
const [result] = await match(json(200, GetIssuedCardTransactionResponse$inboundSchema, {
|
|
72560
|
+
hdrs: true,
|
|
72561
|
+
key: "Result"
|
|
72562
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
72563
|
+
if (!result.ok) {
|
|
72564
|
+
return [result, { status: "complete", request: req, response }];
|
|
72565
|
+
}
|
|
72566
|
+
return [result, { status: "complete", request: req, response }];
|
|
72567
|
+
}
|
|
72568
|
+
var init_issuingTransactionsGet = __esm(() => {
|
|
72569
|
+
init_encodings();
|
|
72570
|
+
init_matchers();
|
|
72571
|
+
init_primitives();
|
|
72572
|
+
init_schemas();
|
|
72573
|
+
init_security();
|
|
72574
|
+
init_url();
|
|
72575
|
+
init_operations();
|
|
72576
|
+
init_async();
|
|
72577
|
+
});
|
|
72578
|
+
|
|
72579
|
+
// src/mcp-server/tools/issuingTransactionsGet.ts
|
|
72580
|
+
var args95, tool$issuingTransactionsGet;
|
|
72581
|
+
var init_issuingTransactionsGet2 = __esm(() => {
|
|
72582
|
+
init_issuingTransactionsGet();
|
|
72583
|
+
init_operations();
|
|
72584
|
+
init_tools();
|
|
72585
|
+
args95 = {
|
|
72586
|
+
request: GetIssuedCardTransactionRequest$inboundSchema
|
|
72587
|
+
};
|
|
72588
|
+
tool$issuingTransactionsGet = {
|
|
72589
|
+
name: "issuing-transactions-get",
|
|
72590
|
+
description: `Retrieves details of an issued card transaction associated with a specific Moov account.
|
|
72591
|
+
|
|
72592
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72593
|
+
you'll need to specify the \`/accounts/{accountID}/issued-cards.read\` scope.`,
|
|
72594
|
+
args: args95,
|
|
72595
|
+
tool: async (client, args96, ctx) => {
|
|
72596
|
+
const [result, apiCall] = await issuingTransactionsGet(client, args96.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72597
|
+
if (!result.ok) {
|
|
72598
|
+
return {
|
|
72599
|
+
content: [{ type: "text", text: result.error.message }],
|
|
72600
|
+
isError: true
|
|
72601
|
+
};
|
|
72602
|
+
}
|
|
72603
|
+
const value = result.value.result;
|
|
72604
|
+
return formatResult(value, apiCall);
|
|
72605
|
+
}
|
|
72606
|
+
};
|
|
72607
|
+
});
|
|
72608
|
+
|
|
72609
|
+
// src/funcs/issuingTransactionsGetAuthorization.ts
|
|
72610
|
+
function issuingTransactionsGetAuthorization(client, request, options) {
|
|
72611
|
+
return new APIPromise($do96(client, request, options));
|
|
72612
|
+
}
|
|
72613
|
+
async function $do96(client, request, options) {
|
|
72614
|
+
const parsed = safeParse(request, (value) => GetIssuedCardAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72615
|
+
if (!parsed.ok) {
|
|
72616
|
+
return [parsed, { status: "invalid" }];
|
|
72617
|
+
}
|
|
72618
|
+
const payload = parsed.value;
|
|
72619
|
+
const body = null;
|
|
72620
|
+
const pathParams = {
|
|
72621
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
72622
|
+
explode: false,
|
|
72623
|
+
charEncoding: "percent"
|
|
72624
|
+
}),
|
|
72625
|
+
authorizationID: encodeSimple("authorizationID", payload.authorizationID, {
|
|
72626
|
+
explode: false,
|
|
72627
|
+
charEncoding: "percent"
|
|
72628
|
+
})
|
|
72629
|
+
};
|
|
72630
|
+
const path = pathToFunc("/issuing/{accountID}/authorizations/{authorizationID}")(pathParams);
|
|
72631
|
+
const headers = new Headers(compactMap({
|
|
72632
|
+
Accept: "application/json",
|
|
72633
|
+
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
72634
|
+
}));
|
|
72635
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
72636
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
72637
|
+
const context = {
|
|
72638
|
+
options: client._options,
|
|
72639
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
72640
|
+
operationID: "getIssuedCardAuthorization",
|
|
71123
72641
|
oAuth2Scopes: null,
|
|
71124
72642
|
resolvedSecurity: requestSecurity,
|
|
71125
72643
|
securitySource: client._options.security,
|
|
@@ -71174,12 +72692,12 @@ var init_issuingTransactionsGetAuthorization = __esm(() => {
|
|
|
71174
72692
|
});
|
|
71175
72693
|
|
|
71176
72694
|
// src/mcp-server/tools/issuingTransactionsGetAuthorization.ts
|
|
71177
|
-
var
|
|
72695
|
+
var args96, tool$issuingTransactionsGetAuthorization;
|
|
71178
72696
|
var init_issuingTransactionsGetAuthorization2 = __esm(() => {
|
|
71179
72697
|
init_issuingTransactionsGetAuthorization();
|
|
71180
72698
|
init_operations();
|
|
71181
72699
|
init_tools();
|
|
71182
|
-
|
|
72700
|
+
args96 = {
|
|
71183
72701
|
request: GetIssuedCardAuthorizationRequest$inboundSchema
|
|
71184
72702
|
};
|
|
71185
72703
|
tool$issuingTransactionsGetAuthorization = {
|
|
@@ -71188,9 +72706,9 @@ var init_issuingTransactionsGetAuthorization2 = __esm(() => {
|
|
|
71188
72706
|
|
|
71189
72707
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71190
72708
|
you'll need to specify the \`/accounts/{accountID}/issued-cards.read\` scope.`,
|
|
71191
|
-
args:
|
|
71192
|
-
tool: async (client,
|
|
71193
|
-
const [result, apiCall] = await issuingTransactionsGetAuthorization(client,
|
|
72709
|
+
args: args96,
|
|
72710
|
+
tool: async (client, args97, ctx) => {
|
|
72711
|
+
const [result, apiCall] = await issuingTransactionsGetAuthorization(client, args97.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71194
72712
|
if (!result.ok) {
|
|
71195
72713
|
return {
|
|
71196
72714
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71205,9 +72723,9 @@ you'll need to specify the \`/accounts/{accountID}/issued-cards.read\` scope.`,
|
|
|
71205
72723
|
|
|
71206
72724
|
// src/funcs/issuingTransactionsList.ts
|
|
71207
72725
|
function issuingTransactionsList(client, request, options) {
|
|
71208
|
-
return new APIPromise($
|
|
72726
|
+
return new APIPromise($do97(client, request, options));
|
|
71209
72727
|
}
|
|
71210
|
-
async function $
|
|
72728
|
+
async function $do97(client, request, options) {
|
|
71211
72729
|
const parsed = safeParse(request, (value) => ListIssuedCardTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71212
72730
|
if (!parsed.ok) {
|
|
71213
72731
|
return [parsed, { status: "invalid" }];
|
|
@@ -71293,12 +72811,12 @@ var init_issuingTransactionsList = __esm(() => {
|
|
|
71293
72811
|
});
|
|
71294
72812
|
|
|
71295
72813
|
// src/mcp-server/tools/issuingTransactionsList.ts
|
|
71296
|
-
var
|
|
72814
|
+
var args97, tool$issuingTransactionsList;
|
|
71297
72815
|
var init_issuingTransactionsList2 = __esm(() => {
|
|
71298
72816
|
init_issuingTransactionsList();
|
|
71299
72817
|
init_operations();
|
|
71300
72818
|
init_tools();
|
|
71301
|
-
|
|
72819
|
+
args97 = {
|
|
71302
72820
|
request: ListIssuedCardTransactionsRequest$inboundSchema
|
|
71303
72821
|
};
|
|
71304
72822
|
tool$issuingTransactionsList = {
|
|
@@ -71307,9 +72825,9 @@ var init_issuingTransactionsList2 = __esm(() => {
|
|
|
71307
72825
|
|
|
71308
72826
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71309
72827
|
you'll need to specify the \`/accounts/{accountID}/issued-cards.read\` scope.`,
|
|
71310
|
-
args:
|
|
71311
|
-
tool: async (client,
|
|
71312
|
-
const [result, apiCall] = await issuingTransactionsList(client,
|
|
72828
|
+
args: args97,
|
|
72829
|
+
tool: async (client, args98, ctx) => {
|
|
72830
|
+
const [result, apiCall] = await issuingTransactionsList(client, args98.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71313
72831
|
if (!result.ok) {
|
|
71314
72832
|
return {
|
|
71315
72833
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71324,9 +72842,9 @@ you'll need to specify the \`/accounts/{accountID}/issued-cards.read\` scope.`,
|
|
|
71324
72842
|
|
|
71325
72843
|
// src/funcs/issuingTransactionsListAuthorizationEvents.ts
|
|
71326
72844
|
function issuingTransactionsListAuthorizationEvents(client, request, options) {
|
|
71327
|
-
return new APIPromise($
|
|
72845
|
+
return new APIPromise($do98(client, request, options));
|
|
71328
72846
|
}
|
|
71329
|
-
async function $
|
|
72847
|
+
async function $do98(client, request, options) {
|
|
71330
72848
|
const parsed = safeParse(request, (value) => ListIssuedCardAuthorizationEventsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71331
72849
|
if (!parsed.ok) {
|
|
71332
72850
|
return [parsed, { status: "invalid" }];
|
|
@@ -71410,12 +72928,12 @@ var init_issuingTransactionsListAuthorizationEvents = __esm(() => {
|
|
|
71410
72928
|
});
|
|
71411
72929
|
|
|
71412
72930
|
// src/mcp-server/tools/issuingTransactionsListAuthorizationEvents.ts
|
|
71413
|
-
var
|
|
72931
|
+
var args98, tool$issuingTransactionsListAuthorizationEvents;
|
|
71414
72932
|
var init_issuingTransactionsListAuthorizationEvents2 = __esm(() => {
|
|
71415
72933
|
init_issuingTransactionsListAuthorizationEvents();
|
|
71416
72934
|
init_operations();
|
|
71417
72935
|
init_tools();
|
|
71418
|
-
|
|
72936
|
+
args98 = {
|
|
71419
72937
|
request: ListIssuedCardAuthorizationEventsRequest$inboundSchema
|
|
71420
72938
|
};
|
|
71421
72939
|
tool$issuingTransactionsListAuthorizationEvents = {
|
|
@@ -71424,9 +72942,9 @@ var init_issuingTransactionsListAuthorizationEvents2 = __esm(() => {
|
|
|
71424
72942
|
|
|
71425
72943
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71426
72944
|
you'll need to specify the \`/accounts/{accountID}/issued-cards.read\` scope.`,
|
|
71427
|
-
args:
|
|
71428
|
-
tool: async (client,
|
|
71429
|
-
const [result, apiCall] = await issuingTransactionsListAuthorizationEvents(client,
|
|
72945
|
+
args: args98,
|
|
72946
|
+
tool: async (client, args99, ctx) => {
|
|
72947
|
+
const [result, apiCall] = await issuingTransactionsListAuthorizationEvents(client, args99.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71430
72948
|
if (!result.ok) {
|
|
71431
72949
|
return {
|
|
71432
72950
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71441,9 +72959,9 @@ you'll need to specify the \`/accounts/{accountID}/issued-cards.read\` scope.`,
|
|
|
71441
72959
|
|
|
71442
72960
|
// src/funcs/issuingTransactionsListAuthorizations.ts
|
|
71443
72961
|
function issuingTransactionsListAuthorizations(client, request, options) {
|
|
71444
|
-
return new APIPromise($
|
|
72962
|
+
return new APIPromise($do99(client, request, options));
|
|
71445
72963
|
}
|
|
71446
|
-
async function $
|
|
72964
|
+
async function $do99(client, request, options) {
|
|
71447
72965
|
const parsed = safeParse(request, (value) => ListIssuedCardAuthorizationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71448
72966
|
if (!parsed.ok) {
|
|
71449
72967
|
return [parsed, { status: "invalid" }];
|
|
@@ -71530,12 +73048,12 @@ var init_issuingTransactionsListAuthorizations = __esm(() => {
|
|
|
71530
73048
|
});
|
|
71531
73049
|
|
|
71532
73050
|
// src/mcp-server/tools/issuingTransactionsListAuthorizations.ts
|
|
71533
|
-
var
|
|
73051
|
+
var args99, tool$issuingTransactionsListAuthorizations;
|
|
71534
73052
|
var init_issuingTransactionsListAuthorizations2 = __esm(() => {
|
|
71535
73053
|
init_issuingTransactionsListAuthorizations();
|
|
71536
73054
|
init_operations();
|
|
71537
73055
|
init_tools();
|
|
71538
|
-
|
|
73056
|
+
args99 = {
|
|
71539
73057
|
request: ListIssuedCardAuthorizationsRequest$inboundSchema
|
|
71540
73058
|
};
|
|
71541
73059
|
tool$issuingTransactionsListAuthorizations = {
|
|
@@ -71544,9 +73062,9 @@ var init_issuingTransactionsListAuthorizations2 = __esm(() => {
|
|
|
71544
73062
|
|
|
71545
73063
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71546
73064
|
you'll need to specify the \`/accounts/{accountID}/issued-cards.read\` scope.`,
|
|
71547
|
-
args:
|
|
71548
|
-
tool: async (client,
|
|
71549
|
-
const [result, apiCall] = await issuingTransactionsListAuthorizations(client,
|
|
73065
|
+
args: args99,
|
|
73066
|
+
tool: async (client, args100, ctx) => {
|
|
73067
|
+
const [result, apiCall] = await issuingTransactionsListAuthorizations(client, args100.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71550
73068
|
if (!result.ok) {
|
|
71551
73069
|
return {
|
|
71552
73070
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71561,9 +73079,9 @@ you'll need to specify the \`/accounts/{accountID}/issued-cards.read\` scope.`,
|
|
|
71561
73079
|
|
|
71562
73080
|
// src/funcs/onboardingCreateInvite.ts
|
|
71563
73081
|
function onboardingCreateInvite(client, request, options) {
|
|
71564
|
-
return new APIPromise($
|
|
73082
|
+
return new APIPromise($do100(client, request, options));
|
|
71565
73083
|
}
|
|
71566
|
-
async function $
|
|
73084
|
+
async function $do100(client, request, options) {
|
|
71567
73085
|
const parsed = safeParse(request, (value) => OnboardingInviteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71568
73086
|
if (!parsed.ok) {
|
|
71569
73087
|
return [parsed, { status: "invalid" }];
|
|
@@ -71650,12 +73168,12 @@ var init_onboardingCreateInvite = __esm(() => {
|
|
|
71650
73168
|
});
|
|
71651
73169
|
|
|
71652
73170
|
// src/mcp-server/tools/onboardingCreateInvite.ts
|
|
71653
|
-
var
|
|
73171
|
+
var args100, tool$onboardingCreateInvite;
|
|
71654
73172
|
var init_onboardingCreateInvite2 = __esm(() => {
|
|
71655
73173
|
init_onboardingCreateInvite();
|
|
71656
73174
|
init_components();
|
|
71657
73175
|
init_tools();
|
|
71658
|
-
|
|
73176
|
+
args100 = {
|
|
71659
73177
|
request: OnboardingInviteRequest$inboundSchema
|
|
71660
73178
|
};
|
|
71661
73179
|
tool$onboardingCreateInvite = {
|
|
@@ -71664,9 +73182,9 @@ var init_onboardingCreateInvite2 = __esm(() => {
|
|
|
71664
73182
|
|
|
71665
73183
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71666
73184
|
you'll need to specify the \`/accounts.write\` scope.`,
|
|
71667
|
-
args:
|
|
71668
|
-
tool: async (client,
|
|
71669
|
-
const [result, apiCall] = await onboardingCreateInvite(client,
|
|
73185
|
+
args: args100,
|
|
73186
|
+
tool: async (client, args101, ctx) => {
|
|
73187
|
+
const [result, apiCall] = await onboardingCreateInvite(client, args101.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71670
73188
|
if (!result.ok) {
|
|
71671
73189
|
return {
|
|
71672
73190
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71681,9 +73199,9 @@ you'll need to specify the \`/accounts.write\` scope.`,
|
|
|
71681
73199
|
|
|
71682
73200
|
// src/funcs/onboardingGetInvite.ts
|
|
71683
73201
|
function onboardingGetInvite(client, request, options) {
|
|
71684
|
-
return new APIPromise($
|
|
73202
|
+
return new APIPromise($do101(client, request, options));
|
|
71685
73203
|
}
|
|
71686
|
-
async function $
|
|
73204
|
+
async function $do101(client, request, options) {
|
|
71687
73205
|
const parsed = safeParse(request, (value) => GetOnboardingInviteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71688
73206
|
if (!parsed.ok) {
|
|
71689
73207
|
return [parsed, { status: "invalid" }];
|
|
@@ -71761,12 +73279,12 @@ var init_onboardingGetInvite = __esm(() => {
|
|
|
71761
73279
|
});
|
|
71762
73280
|
|
|
71763
73281
|
// src/mcp-server/tools/onboardingGetInvite.ts
|
|
71764
|
-
var
|
|
73282
|
+
var args101, tool$onboardingGetInvite;
|
|
71765
73283
|
var init_onboardingGetInvite2 = __esm(() => {
|
|
71766
73284
|
init_onboardingGetInvite();
|
|
71767
73285
|
init_operations();
|
|
71768
73286
|
init_tools();
|
|
71769
|
-
|
|
73287
|
+
args101 = {
|
|
71770
73288
|
request: GetOnboardingInviteRequest$inboundSchema
|
|
71771
73289
|
};
|
|
71772
73290
|
tool$onboardingGetInvite = {
|
|
@@ -71775,9 +73293,9 @@ var init_onboardingGetInvite2 = __esm(() => {
|
|
|
71775
73293
|
|
|
71776
73294
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71777
73295
|
you'll need to specify the \`/accounts.read\` scope.`,
|
|
71778
|
-
args:
|
|
71779
|
-
tool: async (client,
|
|
71780
|
-
const [result, apiCall] = await onboardingGetInvite(client,
|
|
73296
|
+
args: args101,
|
|
73297
|
+
tool: async (client, args102, ctx) => {
|
|
73298
|
+
const [result, apiCall] = await onboardingGetInvite(client, args102.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71781
73299
|
if (!result.ok) {
|
|
71782
73300
|
return {
|
|
71783
73301
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71792,9 +73310,9 @@ you'll need to specify the \`/accounts.read\` scope.`,
|
|
|
71792
73310
|
|
|
71793
73311
|
// src/funcs/onboardingListInvites.ts
|
|
71794
73312
|
function onboardingListInvites(client, _request, options) {
|
|
71795
|
-
return new APIPromise($
|
|
73313
|
+
return new APIPromise($do102(client, _request, options));
|
|
71796
73314
|
}
|
|
71797
|
-
async function $
|
|
73315
|
+
async function $do102(client, _request, options) {
|
|
71798
73316
|
const path = pathToFunc("/onboarding-invites")();
|
|
71799
73317
|
const headers = new Headers(compactMap({
|
|
71800
73318
|
Accept: "application/json",
|
|
@@ -71858,12 +73376,12 @@ var init_onboardingListInvites = __esm(() => {
|
|
|
71858
73376
|
});
|
|
71859
73377
|
|
|
71860
73378
|
// src/mcp-server/tools/onboardingListInvites.ts
|
|
71861
|
-
var
|
|
73379
|
+
var args102, tool$onboardingListInvites;
|
|
71862
73380
|
var init_onboardingListInvites2 = __esm(() => {
|
|
71863
73381
|
init_onboardingListInvites();
|
|
71864
73382
|
init_operations();
|
|
71865
73383
|
init_tools();
|
|
71866
|
-
|
|
73384
|
+
args102 = {
|
|
71867
73385
|
request: ListOnboardingInvitesRequest$inboundSchema
|
|
71868
73386
|
};
|
|
71869
73387
|
tool$onboardingListInvites = {
|
|
@@ -71872,9 +73390,9 @@ var init_onboardingListInvites2 = __esm(() => {
|
|
|
71872
73390
|
|
|
71873
73391
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71874
73392
|
you'll need to specify the \`/accounts.read\` scope.`,
|
|
71875
|
-
args:
|
|
71876
|
-
tool: async (client,
|
|
71877
|
-
const [result, apiCall] = await onboardingListInvites(client,
|
|
73393
|
+
args: args102,
|
|
73394
|
+
tool: async (client, args103, ctx) => {
|
|
73395
|
+
const [result, apiCall] = await onboardingListInvites(client, args103.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71878
73396
|
if (!result.ok) {
|
|
71879
73397
|
return {
|
|
71880
73398
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71889,9 +73407,9 @@ you'll need to specify the \`/accounts.read\` scope.`,
|
|
|
71889
73407
|
|
|
71890
73408
|
// src/funcs/onboardingRevokeInvite.ts
|
|
71891
73409
|
function onboardingRevokeInvite(client, request, options) {
|
|
71892
|
-
return new APIPromise($
|
|
73410
|
+
return new APIPromise($do103(client, request, options));
|
|
71893
73411
|
}
|
|
71894
|
-
async function $
|
|
73412
|
+
async function $do103(client, request, options) {
|
|
71895
73413
|
const parsed = safeParse(request, (value) => RevokeOnboardingInviteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71896
73414
|
if (!parsed.ok) {
|
|
71897
73415
|
return [parsed, { status: "invalid" }];
|
|
@@ -71966,12 +73484,12 @@ var init_onboardingRevokeInvite = __esm(() => {
|
|
|
71966
73484
|
});
|
|
71967
73485
|
|
|
71968
73486
|
// src/mcp-server/tools/onboardingRevokeInvite.ts
|
|
71969
|
-
var
|
|
73487
|
+
var args103, tool$onboardingRevokeInvite;
|
|
71970
73488
|
var init_onboardingRevokeInvite2 = __esm(() => {
|
|
71971
73489
|
init_onboardingRevokeInvite();
|
|
71972
73490
|
init_operations();
|
|
71973
73491
|
init_tools();
|
|
71974
|
-
|
|
73492
|
+
args103 = {
|
|
71975
73493
|
request: RevokeOnboardingInviteRequest$inboundSchema
|
|
71976
73494
|
};
|
|
71977
73495
|
tool$onboardingRevokeInvite = {
|
|
@@ -71980,9 +73498,9 @@ var init_onboardingRevokeInvite2 = __esm(() => {
|
|
|
71980
73498
|
|
|
71981
73499
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
71982
73500
|
you'll need to specify the \`/accounts.write\` scope.`,
|
|
71983
|
-
args:
|
|
71984
|
-
tool: async (client,
|
|
71985
|
-
const [result, apiCall] = await onboardingRevokeInvite(client,
|
|
73501
|
+
args: args103,
|
|
73502
|
+
tool: async (client, args104, ctx) => {
|
|
73503
|
+
const [result, apiCall] = await onboardingRevokeInvite(client, args104.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71986
73504
|
if (!result.ok) {
|
|
71987
73505
|
return {
|
|
71988
73506
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71996,9 +73514,9 @@ you'll need to specify the \`/accounts.write\` scope.`,
|
|
|
71996
73514
|
|
|
71997
73515
|
// src/funcs/paymentLinksCreate.ts
|
|
71998
73516
|
function paymentLinksCreate(client, request, options) {
|
|
71999
|
-
return new APIPromise($
|
|
73517
|
+
return new APIPromise($do104(client, request, options));
|
|
72000
73518
|
}
|
|
72001
|
-
async function $
|
|
73519
|
+
async function $do104(client, request, options) {
|
|
72002
73520
|
const parsed = safeParse(request, (value) => CreatePaymentLinkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72003
73521
|
if (!parsed.ok) {
|
|
72004
73522
|
return [parsed, { status: "invalid" }];
|
|
@@ -72090,12 +73608,12 @@ var init_paymentLinksCreate = __esm(() => {
|
|
|
72090
73608
|
});
|
|
72091
73609
|
|
|
72092
73610
|
// src/mcp-server/tools/paymentLinksCreate.ts
|
|
72093
|
-
var
|
|
73611
|
+
var args104, tool$paymentLinksCreate;
|
|
72094
73612
|
var init_paymentLinksCreate2 = __esm(() => {
|
|
72095
73613
|
init_paymentLinksCreate();
|
|
72096
73614
|
init_operations();
|
|
72097
73615
|
init_tools();
|
|
72098
|
-
|
|
73616
|
+
args104 = {
|
|
72099
73617
|
request: CreatePaymentLinkRequest$inboundSchema
|
|
72100
73618
|
};
|
|
72101
73619
|
tool$paymentLinksCreate = {
|
|
@@ -72104,9 +73622,9 @@ var init_paymentLinksCreate2 = __esm(() => {
|
|
|
72104
73622
|
|
|
72105
73623
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72106
73624
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
72107
|
-
args:
|
|
72108
|
-
tool: async (client,
|
|
72109
|
-
const [result, apiCall] = await paymentLinksCreate(client,
|
|
73625
|
+
args: args104,
|
|
73626
|
+
tool: async (client, args105, ctx) => {
|
|
73627
|
+
const [result, apiCall] = await paymentLinksCreate(client, args105.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72110
73628
|
if (!result.ok) {
|
|
72111
73629
|
return {
|
|
72112
73630
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72121,9 +73639,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
72121
73639
|
|
|
72122
73640
|
// src/funcs/paymentLinksDisable.ts
|
|
72123
73641
|
function paymentLinksDisable(client, request, options) {
|
|
72124
|
-
return new APIPromise($
|
|
73642
|
+
return new APIPromise($do105(client, request, options));
|
|
72125
73643
|
}
|
|
72126
|
-
async function $
|
|
73644
|
+
async function $do105(client, request, options) {
|
|
72127
73645
|
const parsed = safeParse(request, (value) => DisablePaymentLinkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72128
73646
|
if (!parsed.ok) {
|
|
72129
73647
|
return [parsed, { status: "invalid" }];
|
|
@@ -72204,12 +73722,12 @@ var init_paymentLinksDisable = __esm(() => {
|
|
|
72204
73722
|
});
|
|
72205
73723
|
|
|
72206
73724
|
// src/mcp-server/tools/paymentLinksDisable.ts
|
|
72207
|
-
var
|
|
73725
|
+
var args105, tool$paymentLinksDisable;
|
|
72208
73726
|
var init_paymentLinksDisable2 = __esm(() => {
|
|
72209
73727
|
init_paymentLinksDisable();
|
|
72210
73728
|
init_operations();
|
|
72211
73729
|
init_tools();
|
|
72212
|
-
|
|
73730
|
+
args105 = {
|
|
72213
73731
|
request: DisablePaymentLinkRequest$inboundSchema
|
|
72214
73732
|
};
|
|
72215
73733
|
tool$paymentLinksDisable = {
|
|
@@ -72218,9 +73736,9 @@ var init_paymentLinksDisable2 = __esm(() => {
|
|
|
72218
73736
|
|
|
72219
73737
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72220
73738
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
72221
|
-
args:
|
|
72222
|
-
tool: async (client,
|
|
72223
|
-
const [result, apiCall] = await paymentLinksDisable(client,
|
|
73739
|
+
args: args105,
|
|
73740
|
+
tool: async (client, args106, ctx) => {
|
|
73741
|
+
const [result, apiCall] = await paymentLinksDisable(client, args106.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72224
73742
|
if (!result.ok) {
|
|
72225
73743
|
return {
|
|
72226
73744
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72234,9 +73752,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
72234
73752
|
|
|
72235
73753
|
// src/funcs/paymentLinksGet.ts
|
|
72236
73754
|
function paymentLinksGet(client, request, options) {
|
|
72237
|
-
return new APIPromise($
|
|
73755
|
+
return new APIPromise($do106(client, request, options));
|
|
72238
73756
|
}
|
|
72239
|
-
async function $
|
|
73757
|
+
async function $do106(client, request, options) {
|
|
72240
73758
|
const parsed = safeParse(request, (value) => GetPaymentLinkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72241
73759
|
if (!parsed.ok) {
|
|
72242
73760
|
return [parsed, { status: "invalid" }];
|
|
@@ -72318,12 +73836,12 @@ var init_paymentLinksGet = __esm(() => {
|
|
|
72318
73836
|
});
|
|
72319
73837
|
|
|
72320
73838
|
// src/mcp-server/tools/paymentLinksGet.ts
|
|
72321
|
-
var
|
|
73839
|
+
var args106, tool$paymentLinksGet;
|
|
72322
73840
|
var init_paymentLinksGet2 = __esm(() => {
|
|
72323
73841
|
init_paymentLinksGet();
|
|
72324
73842
|
init_operations();
|
|
72325
73843
|
init_tools();
|
|
72326
|
-
|
|
73844
|
+
args106 = {
|
|
72327
73845
|
request: GetPaymentLinkRequest$inboundSchema
|
|
72328
73846
|
};
|
|
72329
73847
|
tool$paymentLinksGet = {
|
|
@@ -72332,9 +73850,9 @@ var init_paymentLinksGet2 = __esm(() => {
|
|
|
72332
73850
|
|
|
72333
73851
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72334
73852
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
72335
|
-
args:
|
|
72336
|
-
tool: async (client,
|
|
72337
|
-
const [result, apiCall] = await paymentLinksGet(client,
|
|
73853
|
+
args: args106,
|
|
73854
|
+
tool: async (client, args107, ctx) => {
|
|
73855
|
+
const [result, apiCall] = await paymentLinksGet(client, args107.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72338
73856
|
if (!result.ok) {
|
|
72339
73857
|
return {
|
|
72340
73858
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72349,9 +73867,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
72349
73867
|
|
|
72350
73868
|
// src/funcs/paymentLinksGetQRCode.ts
|
|
72351
73869
|
function paymentLinksGetQRCode(client, request, options) {
|
|
72352
|
-
return new APIPromise($
|
|
73870
|
+
return new APIPromise($do107(client, request, options));
|
|
72353
73871
|
}
|
|
72354
|
-
async function $
|
|
73872
|
+
async function $do107(client, request, options) {
|
|
72355
73873
|
const parsed = safeParse(request, (value) => GetPaymentLinkQRCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72356
73874
|
if (!parsed.ok) {
|
|
72357
73875
|
return [parsed, { status: "invalid" }];
|
|
@@ -72437,12 +73955,12 @@ var init_paymentLinksGetQRCode = __esm(() => {
|
|
|
72437
73955
|
});
|
|
72438
73956
|
|
|
72439
73957
|
// src/mcp-server/tools/paymentLinksGetQRCode.ts
|
|
72440
|
-
var
|
|
73958
|
+
var args107, tool$paymentLinksGetQRCode;
|
|
72441
73959
|
var init_paymentLinksGetQRCode2 = __esm(() => {
|
|
72442
73960
|
init_paymentLinksGetQRCode();
|
|
72443
73961
|
init_operations();
|
|
72444
73962
|
init_tools();
|
|
72445
|
-
|
|
73963
|
+
args107 = {
|
|
72446
73964
|
request: GetPaymentLinkQRCodeRequest$inboundSchema
|
|
72447
73965
|
};
|
|
72448
73966
|
tool$paymentLinksGetQRCode = {
|
|
@@ -72453,9 +73971,9 @@ Use the \`Accept\` header to specify the format of the response. Supported forma
|
|
|
72453
73971
|
|
|
72454
73972
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72455
73973
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
72456
|
-
args:
|
|
72457
|
-
tool: async (client,
|
|
72458
|
-
const [result, apiCall] = await paymentLinksGetQRCode(client,
|
|
73974
|
+
args: args107,
|
|
73975
|
+
tool: async (client, args108, ctx) => {
|
|
73976
|
+
const [result, apiCall] = await paymentLinksGetQRCode(client, args108.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72459
73977
|
if (!result.ok) {
|
|
72460
73978
|
return {
|
|
72461
73979
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72470,9 +73988,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
72470
73988
|
|
|
72471
73989
|
// src/funcs/paymentLinksList.ts
|
|
72472
73990
|
function paymentLinksList(client, request, options) {
|
|
72473
|
-
return new APIPromise($
|
|
73991
|
+
return new APIPromise($do108(client, request, options));
|
|
72474
73992
|
}
|
|
72475
|
-
async function $
|
|
73993
|
+
async function $do108(client, request, options) {
|
|
72476
73994
|
const parsed = safeParse(request, (value) => ListPaymentLinksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72477
73995
|
if (!parsed.ok) {
|
|
72478
73996
|
return [parsed, { status: "invalid" }];
|
|
@@ -72557,12 +74075,12 @@ var init_paymentLinksList = __esm(() => {
|
|
|
72557
74075
|
});
|
|
72558
74076
|
|
|
72559
74077
|
// src/mcp-server/tools/paymentLinksList.ts
|
|
72560
|
-
var
|
|
74078
|
+
var args108, tool$paymentLinksList;
|
|
72561
74079
|
var init_paymentLinksList2 = __esm(() => {
|
|
72562
74080
|
init_paymentLinksList();
|
|
72563
74081
|
init_operations();
|
|
72564
74082
|
init_tools();
|
|
72565
|
-
|
|
74083
|
+
args108 = {
|
|
72566
74084
|
request: ListPaymentLinksRequest$inboundSchema
|
|
72567
74085
|
};
|
|
72568
74086
|
tool$paymentLinksList = {
|
|
@@ -72571,9 +74089,9 @@ var init_paymentLinksList2 = __esm(() => {
|
|
|
72571
74089
|
|
|
72572
74090
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72573
74091
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
72574
|
-
args:
|
|
72575
|
-
tool: async (client,
|
|
72576
|
-
const [result, apiCall] = await paymentLinksList(client,
|
|
74092
|
+
args: args108,
|
|
74093
|
+
tool: async (client, args109, ctx) => {
|
|
74094
|
+
const [result, apiCall] = await paymentLinksList(client, args109.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72577
74095
|
if (!result.ok) {
|
|
72578
74096
|
return {
|
|
72579
74097
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72588,9 +74106,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
72588
74106
|
|
|
72589
74107
|
// src/funcs/paymentLinksUpdate.ts
|
|
72590
74108
|
function paymentLinksUpdate(client, request, options) {
|
|
72591
|
-
return new APIPromise($
|
|
74109
|
+
return new APIPromise($do109(client, request, options));
|
|
72592
74110
|
}
|
|
72593
|
-
async function $
|
|
74111
|
+
async function $do109(client, request, options) {
|
|
72594
74112
|
const parsed = safeParse(request, (value) => UpdatePaymentLinkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72595
74113
|
if (!parsed.ok) {
|
|
72596
74114
|
return [parsed, { status: "invalid" }];
|
|
@@ -72686,12 +74204,12 @@ var init_paymentLinksUpdate = __esm(() => {
|
|
|
72686
74204
|
});
|
|
72687
74205
|
|
|
72688
74206
|
// src/mcp-server/tools/paymentLinksUpdate.ts
|
|
72689
|
-
var
|
|
74207
|
+
var args109, tool$paymentLinksUpdate;
|
|
72690
74208
|
var init_paymentLinksUpdate2 = __esm(() => {
|
|
72691
74209
|
init_paymentLinksUpdate();
|
|
72692
74210
|
init_operations();
|
|
72693
74211
|
init_tools();
|
|
72694
|
-
|
|
74212
|
+
args109 = {
|
|
72695
74213
|
request: UpdatePaymentLinkRequest$inboundSchema
|
|
72696
74214
|
};
|
|
72697
74215
|
tool$paymentLinksUpdate = {
|
|
@@ -72700,9 +74218,9 @@ var init_paymentLinksUpdate2 = __esm(() => {
|
|
|
72700
74218
|
|
|
72701
74219
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72702
74220
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
72703
|
-
args:
|
|
72704
|
-
tool: async (client,
|
|
72705
|
-
const [result, apiCall] = await paymentLinksUpdate(client,
|
|
74221
|
+
args: args109,
|
|
74222
|
+
tool: async (client, args110, ctx) => {
|
|
74223
|
+
const [result, apiCall] = await paymentLinksUpdate(client, args110.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72706
74224
|
if (!result.ok) {
|
|
72707
74225
|
return {
|
|
72708
74226
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72717,9 +74235,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
72717
74235
|
|
|
72718
74236
|
// src/funcs/paymentMethodsGet.ts
|
|
72719
74237
|
function paymentMethodsGet(client, request, options) {
|
|
72720
|
-
return new APIPromise($
|
|
74238
|
+
return new APIPromise($do110(client, request, options));
|
|
72721
74239
|
}
|
|
72722
|
-
async function $
|
|
74240
|
+
async function $do110(client, request, options) {
|
|
72723
74241
|
const parsed = safeParse(request, (value) => GetPaymentMethodRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72724
74242
|
if (!parsed.ok) {
|
|
72725
74243
|
return [parsed, { status: "invalid" }];
|
|
@@ -72801,12 +74319,12 @@ var init_paymentMethodsGet = __esm(() => {
|
|
|
72801
74319
|
});
|
|
72802
74320
|
|
|
72803
74321
|
// src/mcp-server/tools/paymentMethodsGet.ts
|
|
72804
|
-
var
|
|
74322
|
+
var args110, tool$paymentMethodsGet;
|
|
72805
74323
|
var init_paymentMethodsGet2 = __esm(() => {
|
|
72806
74324
|
init_paymentMethodsGet();
|
|
72807
74325
|
init_operations();
|
|
72808
74326
|
init_tools();
|
|
72809
|
-
|
|
74327
|
+
args110 = {
|
|
72810
74328
|
request: GetPaymentMethodRequest$inboundSchema
|
|
72811
74329
|
};
|
|
72812
74330
|
tool$paymentMethodsGet = {
|
|
@@ -72815,9 +74333,9 @@ var init_paymentMethodsGet2 = __esm(() => {
|
|
|
72815
74333
|
|
|
72816
74334
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72817
74335
|
you'll need to specify the \`/accounts/{accountID}/payment-methods.read\` scope.`,
|
|
72818
|
-
args:
|
|
72819
|
-
tool: async (client,
|
|
72820
|
-
const [result, apiCall] = await paymentMethodsGet(client,
|
|
74336
|
+
args: args110,
|
|
74337
|
+
tool: async (client, args111, ctx) => {
|
|
74338
|
+
const [result, apiCall] = await paymentMethodsGet(client, args111.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72821
74339
|
if (!result.ok) {
|
|
72822
74340
|
return {
|
|
72823
74341
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72832,9 +74350,9 @@ you'll need to specify the \`/accounts/{accountID}/payment-methods.read\` scope.
|
|
|
72832
74350
|
|
|
72833
74351
|
// src/funcs/paymentMethodsList.ts
|
|
72834
74352
|
function paymentMethodsList(client, request, options) {
|
|
72835
|
-
return new APIPromise($
|
|
74353
|
+
return new APIPromise($do111(client, request, options));
|
|
72836
74354
|
}
|
|
72837
|
-
async function $
|
|
74355
|
+
async function $do111(client, request, options) {
|
|
72838
74356
|
const parsed = safeParse(request, (value) => ListPaymentMethodsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72839
74357
|
if (!parsed.ok) {
|
|
72840
74358
|
return [parsed, { status: "invalid" }];
|
|
@@ -72917,12 +74435,12 @@ var init_paymentMethodsList = __esm(() => {
|
|
|
72917
74435
|
});
|
|
72918
74436
|
|
|
72919
74437
|
// src/mcp-server/tools/paymentMethodsList.ts
|
|
72920
|
-
var
|
|
74438
|
+
var args111, tool$paymentMethodsList;
|
|
72921
74439
|
var init_paymentMethodsList2 = __esm(() => {
|
|
72922
74440
|
init_paymentMethodsList();
|
|
72923
74441
|
init_operations();
|
|
72924
74442
|
init_tools();
|
|
72925
|
-
|
|
74443
|
+
args111 = {
|
|
72926
74444
|
request: ListPaymentMethodsRequest$inboundSchema
|
|
72927
74445
|
};
|
|
72928
74446
|
tool$paymentMethodsList = {
|
|
@@ -72932,9 +74450,9 @@ guide](https://docs.moov.io/guides/money-movement/payment-methods/) to learn mor
|
|
|
72932
74450
|
|
|
72933
74451
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
72934
74452
|
you'll need to specify the \`/accounts/{accountID}/payment-methods.read\` scope.`,
|
|
72935
|
-
args:
|
|
72936
|
-
tool: async (client,
|
|
72937
|
-
const [result, apiCall] = await paymentMethodsList(client,
|
|
74453
|
+
args: args111,
|
|
74454
|
+
tool: async (client, args112, ctx) => {
|
|
74455
|
+
const [result, apiCall] = await paymentMethodsList(client, args112.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72938
74456
|
if (!result.ok) {
|
|
72939
74457
|
return {
|
|
72940
74458
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72949,9 +74467,9 @@ you'll need to specify the \`/accounts/{accountID}/payment-methods.read\` scope.
|
|
|
72949
74467
|
|
|
72950
74468
|
// src/funcs/pingPing.ts
|
|
72951
74469
|
function pingPing(client, _request, options) {
|
|
72952
|
-
return new APIPromise($
|
|
74470
|
+
return new APIPromise($do112(client, _request, options));
|
|
72953
74471
|
}
|
|
72954
|
-
async function $
|
|
74472
|
+
async function $do112(client, _request, options) {
|
|
72955
74473
|
const path = pathToFunc("/ping")();
|
|
72956
74474
|
const headers = new Headers(compactMap({
|
|
72957
74475
|
Accept: "*/*",
|
|
@@ -73014,12 +74532,12 @@ var init_pingPing = __esm(() => {
|
|
|
73014
74532
|
});
|
|
73015
74533
|
|
|
73016
74534
|
// src/mcp-server/tools/pingPing.ts
|
|
73017
|
-
var
|
|
74535
|
+
var args112, tool$pingPing;
|
|
73018
74536
|
var init_pingPing2 = __esm(() => {
|
|
73019
74537
|
init_pingPing();
|
|
73020
74538
|
init_operations();
|
|
73021
74539
|
init_tools();
|
|
73022
|
-
|
|
74540
|
+
args112 = {
|
|
73023
74541
|
request: PingRequest$inboundSchema
|
|
73024
74542
|
};
|
|
73025
74543
|
tool$pingPing = {
|
|
@@ -73028,9 +74546,9 @@ var init_pingPing2 = __esm(() => {
|
|
|
73028
74546
|
|
|
73029
74547
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
73030
74548
|
you'll need to specify the \`/ping.read\` scope.`,
|
|
73031
|
-
args:
|
|
73032
|
-
tool: async (client,
|
|
73033
|
-
const [result, apiCall] = await pingPing(client,
|
|
74549
|
+
args: args112,
|
|
74550
|
+
tool: async (client, args113, ctx) => {
|
|
74551
|
+
const [result, apiCall] = await pingPing(client, args113.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73034
74552
|
if (!result.ok) {
|
|
73035
74553
|
return {
|
|
73036
74554
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73044,9 +74562,9 @@ you'll need to specify the \`/ping.read\` scope.`,
|
|
|
73044
74562
|
|
|
73045
74563
|
// src/funcs/productsCreate.ts
|
|
73046
74564
|
function productsCreate(client, request, options) {
|
|
73047
|
-
return new APIPromise($
|
|
74565
|
+
return new APIPromise($do113(client, request, options));
|
|
73048
74566
|
}
|
|
73049
|
-
async function $
|
|
74567
|
+
async function $do113(client, request, options) {
|
|
73050
74568
|
const parsed = safeParse(request, (value) => CreateProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73051
74569
|
if (!parsed.ok) {
|
|
73052
74570
|
return [parsed, { status: "invalid" }];
|
|
@@ -73140,20 +74658,20 @@ var init_productsCreate = __esm(() => {
|
|
|
73140
74658
|
});
|
|
73141
74659
|
|
|
73142
74660
|
// src/mcp-server/tools/productsCreate.ts
|
|
73143
|
-
var
|
|
74661
|
+
var args113, tool$productsCreate;
|
|
73144
74662
|
var init_productsCreate2 = __esm(() => {
|
|
73145
74663
|
init_productsCreate();
|
|
73146
74664
|
init_operations();
|
|
73147
74665
|
init_tools();
|
|
73148
|
-
|
|
74666
|
+
args113 = {
|
|
73149
74667
|
request: CreateProductRequest$inboundSchema
|
|
73150
74668
|
};
|
|
73151
74669
|
tool$productsCreate = {
|
|
73152
74670
|
name: "products-create",
|
|
73153
74671
|
description: `Creates a new product for the specified account.`,
|
|
73154
|
-
args:
|
|
73155
|
-
tool: async (client,
|
|
73156
|
-
const [result, apiCall] = await productsCreate(client,
|
|
74672
|
+
args: args113,
|
|
74673
|
+
tool: async (client, args114, ctx) => {
|
|
74674
|
+
const [result, apiCall] = await productsCreate(client, args114.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73157
74675
|
if (!result.ok) {
|
|
73158
74676
|
return {
|
|
73159
74677
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73168,9 +74686,9 @@ var init_productsCreate2 = __esm(() => {
|
|
|
73168
74686
|
|
|
73169
74687
|
// src/funcs/productsDisable.ts
|
|
73170
74688
|
function productsDisable(client, request, options) {
|
|
73171
|
-
return new APIPromise($
|
|
74689
|
+
return new APIPromise($do114(client, request, options));
|
|
73172
74690
|
}
|
|
73173
|
-
async function $
|
|
74691
|
+
async function $do114(client, request, options) {
|
|
73174
74692
|
const parsed = safeParse(request, (value) => DisableProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73175
74693
|
if (!parsed.ok) {
|
|
73176
74694
|
return [parsed, { status: "invalid" }];
|
|
@@ -73263,12 +74781,12 @@ var init_productsDisable = __esm(() => {
|
|
|
73263
74781
|
});
|
|
73264
74782
|
|
|
73265
74783
|
// src/mcp-server/tools/productsDisable.ts
|
|
73266
|
-
var
|
|
74784
|
+
var args114, tool$productsDisable;
|
|
73267
74785
|
var init_productsDisable2 = __esm(() => {
|
|
73268
74786
|
init_productsDisable();
|
|
73269
74787
|
init_operations();
|
|
73270
74788
|
init_tools();
|
|
73271
|
-
|
|
74789
|
+
args114 = {
|
|
73272
74790
|
request: DisableProductRequest$inboundSchema
|
|
73273
74791
|
};
|
|
73274
74792
|
tool$productsDisable = {
|
|
@@ -73276,9 +74794,9 @@ var init_productsDisable2 = __esm(() => {
|
|
|
73276
74794
|
description: `Disable a product by ID.
|
|
73277
74795
|
|
|
73278
74796
|
The product will no longer be available, but will remain in the system for historical and reporting purposes.`,
|
|
73279
|
-
args:
|
|
73280
|
-
tool: async (client,
|
|
73281
|
-
const [result, apiCall] = await productsDisable(client,
|
|
74797
|
+
args: args114,
|
|
74798
|
+
tool: async (client, args115, ctx) => {
|
|
74799
|
+
const [result, apiCall] = await productsDisable(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73282
74800
|
if (!result.ok) {
|
|
73283
74801
|
return {
|
|
73284
74802
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73292,9 +74810,9 @@ The product will no longer be available, but will remain in the system for histo
|
|
|
73292
74810
|
|
|
73293
74811
|
// src/funcs/productsGet.ts
|
|
73294
74812
|
function productsGet(client, request, options) {
|
|
73295
|
-
return new APIPromise($
|
|
74813
|
+
return new APIPromise($do115(client, request, options));
|
|
73296
74814
|
}
|
|
73297
|
-
async function $
|
|
74815
|
+
async function $do115(client, request, options) {
|
|
73298
74816
|
const parsed = safeParse(request, (value) => GetProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73299
74817
|
if (!parsed.ok) {
|
|
73300
74818
|
return [parsed, { status: "invalid" }];
|
|
@@ -73376,20 +74894,20 @@ var init_productsGet = __esm(() => {
|
|
|
73376
74894
|
});
|
|
73377
74895
|
|
|
73378
74896
|
// src/mcp-server/tools/productsGet.ts
|
|
73379
|
-
var
|
|
74897
|
+
var args115, tool$productsGet;
|
|
73380
74898
|
var init_productsGet2 = __esm(() => {
|
|
73381
74899
|
init_productsGet();
|
|
73382
74900
|
init_operations();
|
|
73383
74901
|
init_tools();
|
|
73384
|
-
|
|
74902
|
+
args115 = {
|
|
73385
74903
|
request: GetProductRequest$inboundSchema
|
|
73386
74904
|
};
|
|
73387
74905
|
tool$productsGet = {
|
|
73388
74906
|
name: "products-get",
|
|
73389
74907
|
description: `Retrieve a product by ID.`,
|
|
73390
|
-
args:
|
|
73391
|
-
tool: async (client,
|
|
73392
|
-
const [result, apiCall] = await productsGet(client,
|
|
74908
|
+
args: args115,
|
|
74909
|
+
tool: async (client, args116, ctx) => {
|
|
74910
|
+
const [result, apiCall] = await productsGet(client, args116.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73393
74911
|
if (!result.ok) {
|
|
73394
74912
|
return {
|
|
73395
74913
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73404,9 +74922,9 @@ var init_productsGet2 = __esm(() => {
|
|
|
73404
74922
|
|
|
73405
74923
|
// src/funcs/productsList.ts
|
|
73406
74924
|
function productsList(client, request, options) {
|
|
73407
|
-
return new APIPromise($
|
|
74925
|
+
return new APIPromise($do116(client, request, options));
|
|
73408
74926
|
}
|
|
73409
|
-
async function $
|
|
74927
|
+
async function $do116(client, request, options) {
|
|
73410
74928
|
const parsed = safeParse(request, (value) => ListProductsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73411
74929
|
if (!parsed.ok) {
|
|
73412
74930
|
return [parsed, { status: "invalid" }];
|
|
@@ -73489,20 +75007,20 @@ var init_productsList = __esm(() => {
|
|
|
73489
75007
|
});
|
|
73490
75008
|
|
|
73491
75009
|
// src/mcp-server/tools/productsList.ts
|
|
73492
|
-
var
|
|
75010
|
+
var args116, tool$productsList;
|
|
73493
75011
|
var init_productsList2 = __esm(() => {
|
|
73494
75012
|
init_productsList();
|
|
73495
75013
|
init_operations();
|
|
73496
75014
|
init_tools();
|
|
73497
|
-
|
|
75015
|
+
args116 = {
|
|
73498
75016
|
request: ListProductsRequest$inboundSchema
|
|
73499
75017
|
};
|
|
73500
75018
|
tool$productsList = {
|
|
73501
75019
|
name: "products-list",
|
|
73502
75020
|
description: `List active (non-disabled) products for an account.`,
|
|
73503
|
-
args:
|
|
73504
|
-
tool: async (client,
|
|
73505
|
-
const [result, apiCall] = await productsList(client,
|
|
75021
|
+
args: args116,
|
|
75022
|
+
tool: async (client, args117, ctx) => {
|
|
75023
|
+
const [result, apiCall] = await productsList(client, args117.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73506
75024
|
if (!result.ok) {
|
|
73507
75025
|
return {
|
|
73508
75026
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73517,9 +75035,9 @@ var init_productsList2 = __esm(() => {
|
|
|
73517
75035
|
|
|
73518
75036
|
// src/funcs/productsUpdate.ts
|
|
73519
75037
|
function productsUpdate(client, request, options) {
|
|
73520
|
-
return new APIPromise($
|
|
75038
|
+
return new APIPromise($do117(client, request, options));
|
|
73521
75039
|
}
|
|
73522
|
-
async function $
|
|
75040
|
+
async function $do117(client, request, options) {
|
|
73523
75041
|
const parsed = safeParse(request, (value) => UpdateProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73524
75042
|
if (!parsed.ok) {
|
|
73525
75043
|
return [parsed, { status: "invalid" }];
|
|
@@ -73617,20 +75135,20 @@ var init_productsUpdate = __esm(() => {
|
|
|
73617
75135
|
});
|
|
73618
75136
|
|
|
73619
75137
|
// src/mcp-server/tools/productsUpdate.ts
|
|
73620
|
-
var
|
|
75138
|
+
var args117, tool$productsUpdate;
|
|
73621
75139
|
var init_productsUpdate2 = __esm(() => {
|
|
73622
75140
|
init_productsUpdate();
|
|
73623
75141
|
init_operations();
|
|
73624
75142
|
init_tools();
|
|
73625
|
-
|
|
75143
|
+
args117 = {
|
|
73626
75144
|
request: UpdateProductRequest$inboundSchema
|
|
73627
75145
|
};
|
|
73628
75146
|
tool$productsUpdate = {
|
|
73629
75147
|
name: "products-update",
|
|
73630
75148
|
description: `Update a product and its options.`,
|
|
73631
|
-
args:
|
|
73632
|
-
tool: async (client,
|
|
73633
|
-
const [result, apiCall] = await productsUpdate(client,
|
|
75149
|
+
args: args117,
|
|
75150
|
+
tool: async (client, args118, ctx) => {
|
|
75151
|
+
const [result, apiCall] = await productsUpdate(client, args118.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73634
75152
|
if (!result.ok) {
|
|
73635
75153
|
return {
|
|
73636
75154
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73645,9 +75163,9 @@ var init_productsUpdate2 = __esm(() => {
|
|
|
73645
75163
|
|
|
73646
75164
|
// src/funcs/receiptsCreate.ts
|
|
73647
75165
|
function receiptsCreate(client, request, options) {
|
|
73648
|
-
return new APIPromise($
|
|
75166
|
+
return new APIPromise($do118(client, request, options));
|
|
73649
75167
|
}
|
|
73650
|
-
async function $
|
|
75168
|
+
async function $do118(client, request, options) {
|
|
73651
75169
|
const parsed = safeParse(request, (value) => arrayType(ReceiptRequest$outboundSchema).parse(value), "Input validation failed");
|
|
73652
75170
|
if (!parsed.ok) {
|
|
73653
75171
|
return [parsed, { status: "invalid" }];
|
|
@@ -73735,13 +75253,13 @@ var init_receiptsCreate = __esm(() => {
|
|
|
73735
75253
|
});
|
|
73736
75254
|
|
|
73737
75255
|
// src/mcp-server/tools/receiptsCreate.ts
|
|
73738
|
-
var
|
|
75256
|
+
var args118, tool$receiptsCreate;
|
|
73739
75257
|
var init_receiptsCreate2 = __esm(() => {
|
|
73740
75258
|
init_esm();
|
|
73741
75259
|
init_receiptsCreate();
|
|
73742
75260
|
init_components();
|
|
73743
75261
|
init_tools();
|
|
73744
|
-
|
|
75262
|
+
args118 = {
|
|
73745
75263
|
request: arrayType(ReceiptRequest$inboundSchema)
|
|
73746
75264
|
};
|
|
73747
75265
|
tool$receiptsCreate = {
|
|
@@ -73750,9 +75268,9 @@ var init_receiptsCreate2 = __esm(() => {
|
|
|
73750
75268
|
|
|
73751
75269
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
73752
75270
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
73753
|
-
args:
|
|
73754
|
-
tool: async (client,
|
|
73755
|
-
const [result, apiCall] = await receiptsCreate(client,
|
|
75271
|
+
args: args118,
|
|
75272
|
+
tool: async (client, args119, ctx) => {
|
|
75273
|
+
const [result, apiCall] = await receiptsCreate(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73756
75274
|
if (!result.ok) {
|
|
73757
75275
|
return {
|
|
73758
75276
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73767,9 +75285,9 @@ var init_receiptsCreate2 = __esm(() => {
|
|
|
73767
75285
|
|
|
73768
75286
|
// src/funcs/receiptsList.ts
|
|
73769
75287
|
function receiptsList(client, request, options) {
|
|
73770
|
-
return new APIPromise($
|
|
75288
|
+
return new APIPromise($do119(client, request, options));
|
|
73771
75289
|
}
|
|
73772
|
-
async function $
|
|
75290
|
+
async function $do119(client, request, options) {
|
|
73773
75291
|
const parsed = safeParse(request, (value) => ListReceiptsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73774
75292
|
if (!parsed.ok) {
|
|
73775
75293
|
return [parsed, { status: "invalid" }];
|
|
@@ -73845,12 +75363,12 @@ var init_receiptsList = __esm(() => {
|
|
|
73845
75363
|
});
|
|
73846
75364
|
|
|
73847
75365
|
// src/mcp-server/tools/receiptsList.ts
|
|
73848
|
-
var
|
|
75366
|
+
var args119, tool$receiptsList;
|
|
73849
75367
|
var init_receiptsList2 = __esm(() => {
|
|
73850
75368
|
init_receiptsList();
|
|
73851
75369
|
init_operations();
|
|
73852
75370
|
init_tools();
|
|
73853
|
-
|
|
75371
|
+
args119 = {
|
|
73854
75372
|
request: ListReceiptsRequest$inboundSchema
|
|
73855
75373
|
};
|
|
73856
75374
|
tool$receiptsList = {
|
|
@@ -73859,9 +75377,9 @@ var init_receiptsList2 = __esm(() => {
|
|
|
73859
75377
|
|
|
73860
75378
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
73861
75379
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
73862
|
-
args:
|
|
73863
|
-
tool: async (client,
|
|
73864
|
-
const [result, apiCall] = await receiptsList(client,
|
|
75380
|
+
args: args119,
|
|
75381
|
+
tool: async (client, args120, ctx) => {
|
|
75382
|
+
const [result, apiCall] = await receiptsList(client, args120.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73865
75383
|
if (!result.ok) {
|
|
73866
75384
|
return {
|
|
73867
75385
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73876,9 +75394,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
73876
75394
|
|
|
73877
75395
|
// src/funcs/representativesCreate.ts
|
|
73878
75396
|
function representativesCreate(client, request, options) {
|
|
73879
|
-
return new APIPromise($
|
|
75397
|
+
return new APIPromise($do120(client, request, options));
|
|
73880
75398
|
}
|
|
73881
|
-
async function $
|
|
75399
|
+
async function $do120(client, request, options) {
|
|
73882
75400
|
const parsed = safeParse(request, (value) => CreateRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73883
75401
|
if (!parsed.ok) {
|
|
73884
75402
|
return [parsed, { status: "invalid" }];
|
|
@@ -73974,12 +75492,12 @@ var init_representativesCreate = __esm(() => {
|
|
|
73974
75492
|
});
|
|
73975
75493
|
|
|
73976
75494
|
// src/mcp-server/tools/representativesCreate.ts
|
|
73977
|
-
var
|
|
75495
|
+
var args120, tool$representativesCreate;
|
|
73978
75496
|
var init_representativesCreate2 = __esm(() => {
|
|
73979
75497
|
init_representativesCreate();
|
|
73980
75498
|
init_operations();
|
|
73981
75499
|
init_tools();
|
|
73982
|
-
|
|
75500
|
+
args120 = {
|
|
73983
75501
|
request: CreateRepresentativeRequest$inboundSchema
|
|
73984
75502
|
};
|
|
73985
75503
|
tool$representativesCreate = {
|
|
@@ -73990,9 +75508,9 @@ Read our [business representatives guide](https://docs.moov.io/guides/accounts/r
|
|
|
73990
75508
|
|
|
73991
75509
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
73992
75510
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
73993
|
-
args:
|
|
73994
|
-
tool: async (client,
|
|
73995
|
-
const [result, apiCall] = await representativesCreate(client,
|
|
75511
|
+
args: args120,
|
|
75512
|
+
tool: async (client, args121, ctx) => {
|
|
75513
|
+
const [result, apiCall] = await representativesCreate(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73996
75514
|
if (!result.ok) {
|
|
73997
75515
|
return {
|
|
73998
75516
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74007,9 +75525,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
74007
75525
|
|
|
74008
75526
|
// src/funcs/representativesDelete.ts
|
|
74009
75527
|
function representativesDelete(client, request, options) {
|
|
74010
|
-
return new APIPromise($
|
|
75528
|
+
return new APIPromise($do121(client, request, options));
|
|
74011
75529
|
}
|
|
74012
|
-
async function $
|
|
75530
|
+
async function $do121(client, request, options) {
|
|
74013
75531
|
const parsed = safeParse(request, (value) => DeleteRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74014
75532
|
if (!parsed.ok) {
|
|
74015
75533
|
return [parsed, { status: "invalid" }];
|
|
@@ -74097,12 +75615,12 @@ var init_representativesDelete = __esm(() => {
|
|
|
74097
75615
|
});
|
|
74098
75616
|
|
|
74099
75617
|
// src/mcp-server/tools/representativesDelete.ts
|
|
74100
|
-
var
|
|
75618
|
+
var args121, tool$representativesDelete;
|
|
74101
75619
|
var init_representativesDelete2 = __esm(() => {
|
|
74102
75620
|
init_representativesDelete();
|
|
74103
75621
|
init_operations();
|
|
74104
75622
|
init_tools();
|
|
74105
|
-
|
|
75623
|
+
args121 = {
|
|
74106
75624
|
request: DeleteRepresentativeRequest$inboundSchema
|
|
74107
75625
|
};
|
|
74108
75626
|
tool$representativesDelete = {
|
|
@@ -74111,9 +75629,9 @@ var init_representativesDelete2 = __esm(() => {
|
|
|
74111
75629
|
|
|
74112
75630
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74113
75631
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
74114
|
-
args:
|
|
74115
|
-
tool: async (client,
|
|
74116
|
-
const [result, apiCall] = await representativesDelete(client,
|
|
75632
|
+
args: args121,
|
|
75633
|
+
tool: async (client, args122, ctx) => {
|
|
75634
|
+
const [result, apiCall] = await representativesDelete(client, args122.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74117
75635
|
if (!result.ok) {
|
|
74118
75636
|
return {
|
|
74119
75637
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74127,9 +75645,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
74127
75645
|
|
|
74128
75646
|
// src/funcs/representativesGet.ts
|
|
74129
75647
|
function representativesGet(client, request, options) {
|
|
74130
|
-
return new APIPromise($
|
|
75648
|
+
return new APIPromise($do122(client, request, options));
|
|
74131
75649
|
}
|
|
74132
|
-
async function $
|
|
75650
|
+
async function $do122(client, request, options) {
|
|
74133
75651
|
const parsed = safeParse(request, (value) => GetRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74134
75652
|
if (!parsed.ok) {
|
|
74135
75653
|
return [parsed, { status: "invalid" }];
|
|
@@ -74208,12 +75726,12 @@ var init_representativesGet = __esm(() => {
|
|
|
74208
75726
|
});
|
|
74209
75727
|
|
|
74210
75728
|
// src/mcp-server/tools/representativesGet.ts
|
|
74211
|
-
var
|
|
75729
|
+
var args122, tool$representativesGet;
|
|
74212
75730
|
var init_representativesGet2 = __esm(() => {
|
|
74213
75731
|
init_representativesGet();
|
|
74214
75732
|
init_operations();
|
|
74215
75733
|
init_tools();
|
|
74216
|
-
|
|
75734
|
+
args122 = {
|
|
74217
75735
|
request: GetRepresentativeRequest$inboundSchema
|
|
74218
75736
|
};
|
|
74219
75737
|
tool$representativesGet = {
|
|
@@ -74222,9 +75740,9 @@ var init_representativesGet2 = __esm(() => {
|
|
|
74222
75740
|
|
|
74223
75741
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74224
75742
|
you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.`,
|
|
74225
|
-
args:
|
|
74226
|
-
tool: async (client,
|
|
74227
|
-
const [result, apiCall] = await representativesGet(client,
|
|
75743
|
+
args: args122,
|
|
75744
|
+
tool: async (client, args123, ctx) => {
|
|
75745
|
+
const [result, apiCall] = await representativesGet(client, args123.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74228
75746
|
if (!result.ok) {
|
|
74229
75747
|
return {
|
|
74230
75748
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74239,9 +75757,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.
|
|
|
74239
75757
|
|
|
74240
75758
|
// src/funcs/representativesList.ts
|
|
74241
75759
|
function representativesList(client, request, options) {
|
|
74242
|
-
return new APIPromise($
|
|
75760
|
+
return new APIPromise($do123(client, request, options));
|
|
74243
75761
|
}
|
|
74244
|
-
async function $
|
|
75762
|
+
async function $do123(client, request, options) {
|
|
74245
75763
|
const parsed = safeParse(request, (value) => ListRepresentativesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74246
75764
|
if (!parsed.ok) {
|
|
74247
75765
|
return [parsed, { status: "invalid" }];
|
|
@@ -74319,12 +75837,12 @@ var init_representativesList = __esm(() => {
|
|
|
74319
75837
|
});
|
|
74320
75838
|
|
|
74321
75839
|
// src/mcp-server/tools/representativesList.ts
|
|
74322
|
-
var
|
|
75840
|
+
var args123, tool$representativesList;
|
|
74323
75841
|
var init_representativesList2 = __esm(() => {
|
|
74324
75842
|
init_representativesList();
|
|
74325
75843
|
init_operations();
|
|
74326
75844
|
init_tools();
|
|
74327
|
-
|
|
75845
|
+
args123 = {
|
|
74328
75846
|
request: ListRepresentativesRequest$inboundSchema
|
|
74329
75847
|
};
|
|
74330
75848
|
tool$representativesList = {
|
|
@@ -74336,9 +75854,9 @@ Read our [business representatives guide](https://docs.moov.io/guides/accounts/r
|
|
|
74336
75854
|
|
|
74337
75855
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74338
75856
|
you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.`,
|
|
74339
|
-
args:
|
|
74340
|
-
tool: async (client,
|
|
74341
|
-
const [result, apiCall] = await representativesList(client,
|
|
75857
|
+
args: args123,
|
|
75858
|
+
tool: async (client, args124, ctx) => {
|
|
75859
|
+
const [result, apiCall] = await representativesList(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74342
75860
|
if (!result.ok) {
|
|
74343
75861
|
return {
|
|
74344
75862
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74353,9 +75871,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.
|
|
|
74353
75871
|
|
|
74354
75872
|
// src/funcs/representativesUpdate.ts
|
|
74355
75873
|
function representativesUpdate(client, request, options) {
|
|
74356
|
-
return new APIPromise($
|
|
75874
|
+
return new APIPromise($do124(client, request, options));
|
|
74357
75875
|
}
|
|
74358
|
-
async function $
|
|
75876
|
+
async function $do124(client, request, options) {
|
|
74359
75877
|
const parsed = safeParse(request, (value) => UpdateRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74360
75878
|
if (!parsed.ok) {
|
|
74361
75879
|
return [parsed, { status: "invalid" }];
|
|
@@ -74449,12 +75967,12 @@ var init_representativesUpdate = __esm(() => {
|
|
|
74449
75967
|
});
|
|
74450
75968
|
|
|
74451
75969
|
// src/mcp-server/tools/representativesUpdate.ts
|
|
74452
|
-
var
|
|
75970
|
+
var args124, tool$representativesUpdate;
|
|
74453
75971
|
var init_representativesUpdate2 = __esm(() => {
|
|
74454
75972
|
init_representativesUpdate();
|
|
74455
75973
|
init_operations();
|
|
74456
75974
|
init_tools();
|
|
74457
|
-
|
|
75975
|
+
args124 = {
|
|
74458
75976
|
request: UpdateRepresentativeRequest$inboundSchema
|
|
74459
75977
|
};
|
|
74460
75978
|
tool$representativesUpdate = {
|
|
@@ -74476,9 +75994,9 @@ If you need to update information in a locked state, please contact Moov support
|
|
|
74476
75994
|
|
|
74477
75995
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74478
75996
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
74479
|
-
args:
|
|
74480
|
-
tool: async (client,
|
|
74481
|
-
const [result, apiCall] = await representativesUpdate(client,
|
|
75997
|
+
args: args124,
|
|
75998
|
+
tool: async (client, args125, ctx) => {
|
|
75999
|
+
const [result, apiCall] = await representativesUpdate(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74482
76000
|
if (!result.ok) {
|
|
74483
76001
|
return {
|
|
74484
76002
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74493,9 +76011,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
74493
76011
|
|
|
74494
76012
|
// src/funcs/schedulingCancel.ts
|
|
74495
76013
|
function schedulingCancel(client, request, options) {
|
|
74496
|
-
return new APIPromise($
|
|
76014
|
+
return new APIPromise($do125(client, request, options));
|
|
74497
76015
|
}
|
|
74498
|
-
async function $
|
|
76016
|
+
async function $do125(client, request, options) {
|
|
74499
76017
|
const parsed = safeParse(request, (value) => CancelScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74500
76018
|
if (!parsed.ok) {
|
|
74501
76019
|
return [parsed, { status: "invalid" }];
|
|
@@ -74588,12 +76106,12 @@ var init_schedulingCancel = __esm(() => {
|
|
|
74588
76106
|
});
|
|
74589
76107
|
|
|
74590
76108
|
// src/mcp-server/tools/schedulingCancel.ts
|
|
74591
|
-
var
|
|
76109
|
+
var args125, tool$schedulingCancel;
|
|
74592
76110
|
var init_schedulingCancel2 = __esm(() => {
|
|
74593
76111
|
init_schedulingCancel();
|
|
74594
76112
|
init_operations();
|
|
74595
76113
|
init_tools();
|
|
74596
|
-
|
|
76114
|
+
args125 = {
|
|
74597
76115
|
request: CancelScheduleRequest$inboundSchema
|
|
74598
76116
|
};
|
|
74599
76117
|
tool$schedulingCancel = {
|
|
@@ -74602,9 +76120,9 @@ var init_schedulingCancel2 = __esm(() => {
|
|
|
74602
76120
|
|
|
74603
76121
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74604
76122
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
74605
|
-
args:
|
|
74606
|
-
tool: async (client,
|
|
74607
|
-
const [result, apiCall] = await schedulingCancel(client,
|
|
76123
|
+
args: args125,
|
|
76124
|
+
tool: async (client, args126, ctx) => {
|
|
76125
|
+
const [result, apiCall] = await schedulingCancel(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74608
76126
|
if (!result.ok) {
|
|
74609
76127
|
return {
|
|
74610
76128
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74618,9 +76136,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
74618
76136
|
|
|
74619
76137
|
// src/funcs/schedulingCreate.ts
|
|
74620
76138
|
function schedulingCreate(client, request, options) {
|
|
74621
|
-
return new APIPromise($
|
|
76139
|
+
return new APIPromise($do126(client, request, options));
|
|
74622
76140
|
}
|
|
74623
|
-
async function $
|
|
76141
|
+
async function $do126(client, request, options) {
|
|
74624
76142
|
const parsed = safeParse(request, (value) => CreateScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74625
76143
|
if (!parsed.ok) {
|
|
74626
76144
|
return [parsed, { status: "invalid" }];
|
|
@@ -74714,12 +76232,12 @@ var init_schedulingCreate = __esm(() => {
|
|
|
74714
76232
|
});
|
|
74715
76233
|
|
|
74716
76234
|
// src/mcp-server/tools/schedulingCreate.ts
|
|
74717
|
-
var
|
|
76235
|
+
var args126, tool$schedulingCreate;
|
|
74718
76236
|
var init_schedulingCreate2 = __esm(() => {
|
|
74719
76237
|
init_schedulingCreate();
|
|
74720
76238
|
init_operations();
|
|
74721
76239
|
init_tools();
|
|
74722
|
-
|
|
76240
|
+
args126 = {
|
|
74723
76241
|
request: CreateScheduleRequest$inboundSchema
|
|
74724
76242
|
};
|
|
74725
76243
|
tool$schedulingCreate = {
|
|
@@ -74728,9 +76246,9 @@ var init_schedulingCreate2 = __esm(() => {
|
|
|
74728
76246
|
|
|
74729
76247
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74730
76248
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
74731
|
-
args:
|
|
74732
|
-
tool: async (client,
|
|
74733
|
-
const [result, apiCall] = await schedulingCreate(client,
|
|
76249
|
+
args: args126,
|
|
76250
|
+
tool: async (client, args127, ctx) => {
|
|
76251
|
+
const [result, apiCall] = await schedulingCreate(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74734
76252
|
if (!result.ok) {
|
|
74735
76253
|
return {
|
|
74736
76254
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74745,9 +76263,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
74745
76263
|
|
|
74746
76264
|
// src/funcs/schedulingGet.ts
|
|
74747
76265
|
function schedulingGet(client, request, options) {
|
|
74748
|
-
return new APIPromise($
|
|
76266
|
+
return new APIPromise($do127(client, request, options));
|
|
74749
76267
|
}
|
|
74750
|
-
async function $
|
|
76268
|
+
async function $do127(client, request, options) {
|
|
74751
76269
|
const parsed = safeParse(request, (value) => GetSchedulesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74752
76270
|
if (!parsed.ok) {
|
|
74753
76271
|
return [parsed, { status: "invalid" }];
|
|
@@ -74829,12 +76347,12 @@ var init_schedulingGet = __esm(() => {
|
|
|
74829
76347
|
});
|
|
74830
76348
|
|
|
74831
76349
|
// src/mcp-server/tools/schedulingGet.ts
|
|
74832
|
-
var
|
|
76350
|
+
var args127, tool$schedulingGet;
|
|
74833
76351
|
var init_schedulingGet2 = __esm(() => {
|
|
74834
76352
|
init_schedulingGet();
|
|
74835
76353
|
init_operations();
|
|
74836
76354
|
init_tools();
|
|
74837
|
-
|
|
76355
|
+
args127 = {
|
|
74838
76356
|
request: GetSchedulesRequest$inboundSchema
|
|
74839
76357
|
};
|
|
74840
76358
|
tool$schedulingGet = {
|
|
@@ -74843,9 +76361,9 @@ var init_schedulingGet2 = __esm(() => {
|
|
|
74843
76361
|
|
|
74844
76362
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74845
76363
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
74846
|
-
args:
|
|
74847
|
-
tool: async (client,
|
|
74848
|
-
const [result, apiCall] = await schedulingGet(client,
|
|
76364
|
+
args: args127,
|
|
76365
|
+
tool: async (client, args128, ctx) => {
|
|
76366
|
+
const [result, apiCall] = await schedulingGet(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74849
76367
|
if (!result.ok) {
|
|
74850
76368
|
return {
|
|
74851
76369
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74860,9 +76378,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
74860
76378
|
|
|
74861
76379
|
// src/funcs/schedulingGetOccurrance.ts
|
|
74862
76380
|
function schedulingGetOccurrance(client, request, options) {
|
|
74863
|
-
return new APIPromise($
|
|
76381
|
+
return new APIPromise($do128(client, request, options));
|
|
74864
76382
|
}
|
|
74865
|
-
async function $
|
|
76383
|
+
async function $do128(client, request, options) {
|
|
74866
76384
|
const parsed = safeParse(request, (value) => GetScheduledOccurrenceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74867
76385
|
if (!parsed.ok) {
|
|
74868
76386
|
return [parsed, { status: "invalid" }];
|
|
@@ -74945,12 +76463,12 @@ var init_schedulingGetOccurrance = __esm(() => {
|
|
|
74945
76463
|
});
|
|
74946
76464
|
|
|
74947
76465
|
// src/mcp-server/tools/schedulingGetOccurrance.ts
|
|
74948
|
-
var
|
|
76466
|
+
var args128, tool$schedulingGetOccurrance;
|
|
74949
76467
|
var init_schedulingGetOccurrance2 = __esm(() => {
|
|
74950
76468
|
init_schedulingGetOccurrance();
|
|
74951
76469
|
init_operations();
|
|
74952
76470
|
init_tools();
|
|
74953
|
-
|
|
76471
|
+
args128 = {
|
|
74954
76472
|
request: GetScheduledOccurrenceRequest$inboundSchema
|
|
74955
76473
|
};
|
|
74956
76474
|
tool$schedulingGetOccurrance = {
|
|
@@ -74959,9 +76477,9 @@ var init_schedulingGetOccurrance2 = __esm(() => {
|
|
|
74959
76477
|
|
|
74960
76478
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74961
76479
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
74962
|
-
args:
|
|
74963
|
-
tool: async (client,
|
|
74964
|
-
const [result, apiCall] = await schedulingGetOccurrance(client,
|
|
76480
|
+
args: args128,
|
|
76481
|
+
tool: async (client, args129, ctx) => {
|
|
76482
|
+
const [result, apiCall] = await schedulingGetOccurrance(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74965
76483
|
if (!result.ok) {
|
|
74966
76484
|
return {
|
|
74967
76485
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74976,9 +76494,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
74976
76494
|
|
|
74977
76495
|
// src/funcs/schedulingList.ts
|
|
74978
76496
|
function schedulingList(client, request, options) {
|
|
74979
|
-
return new APIPromise($
|
|
76497
|
+
return new APIPromise($do129(client, request, options));
|
|
74980
76498
|
}
|
|
74981
|
-
async function $
|
|
76499
|
+
async function $do129(client, request, options) {
|
|
74982
76500
|
const parsed = safeParse(request, (value) => ListSchedulesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74983
76501
|
if (!parsed.ok) {
|
|
74984
76502
|
return [parsed, { status: "invalid" }];
|
|
@@ -75062,12 +76580,12 @@ var init_schedulingList = __esm(() => {
|
|
|
75062
76580
|
});
|
|
75063
76581
|
|
|
75064
76582
|
// src/mcp-server/tools/schedulingList.ts
|
|
75065
|
-
var
|
|
76583
|
+
var args129, tool$schedulingList;
|
|
75066
76584
|
var init_schedulingList2 = __esm(() => {
|
|
75067
76585
|
init_schedulingList();
|
|
75068
76586
|
init_operations();
|
|
75069
76587
|
init_tools();
|
|
75070
|
-
|
|
76588
|
+
args129 = {
|
|
75071
76589
|
request: ListSchedulesRequest$inboundSchema
|
|
75072
76590
|
};
|
|
75073
76591
|
tool$schedulingList = {
|
|
@@ -75076,9 +76594,9 @@ var init_schedulingList2 = __esm(() => {
|
|
|
75076
76594
|
|
|
75077
76595
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75078
76596
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
75079
|
-
args:
|
|
75080
|
-
tool: async (client,
|
|
75081
|
-
const [result, apiCall] = await schedulingList(client,
|
|
76597
|
+
args: args129,
|
|
76598
|
+
tool: async (client, args130, ctx) => {
|
|
76599
|
+
const [result, apiCall] = await schedulingList(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75082
76600
|
if (!result.ok) {
|
|
75083
76601
|
return {
|
|
75084
76602
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75093,9 +76611,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
75093
76611
|
|
|
75094
76612
|
// src/funcs/schedulingUpdate.ts
|
|
75095
76613
|
function schedulingUpdate(client, request, options) {
|
|
75096
|
-
return new APIPromise($
|
|
76614
|
+
return new APIPromise($do130(client, request, options));
|
|
75097
76615
|
}
|
|
75098
|
-
async function $
|
|
76616
|
+
async function $do130(client, request, options) {
|
|
75099
76617
|
const parsed = safeParse(request, (value) => UpdateScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75100
76618
|
if (!parsed.ok) {
|
|
75101
76619
|
return [parsed, { status: "invalid" }];
|
|
@@ -75193,12 +76711,12 @@ var init_schedulingUpdate = __esm(() => {
|
|
|
75193
76711
|
});
|
|
75194
76712
|
|
|
75195
76713
|
// src/mcp-server/tools/schedulingUpdate.ts
|
|
75196
|
-
var
|
|
76714
|
+
var args130, tool$schedulingUpdate;
|
|
75197
76715
|
var init_schedulingUpdate2 = __esm(() => {
|
|
75198
76716
|
init_schedulingUpdate();
|
|
75199
76717
|
init_operations();
|
|
75200
76718
|
init_tools();
|
|
75201
|
-
|
|
76719
|
+
args130 = {
|
|
75202
76720
|
request: UpdateScheduleRequest$inboundSchema
|
|
75203
76721
|
};
|
|
75204
76722
|
tool$schedulingUpdate = {
|
|
@@ -75207,9 +76725,9 @@ var init_schedulingUpdate2 = __esm(() => {
|
|
|
75207
76725
|
|
|
75208
76726
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75209
76727
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
75210
|
-
args:
|
|
75211
|
-
tool: async (client,
|
|
75212
|
-
const [result, apiCall] = await schedulingUpdate(client,
|
|
76728
|
+
args: args130,
|
|
76729
|
+
tool: async (client, args131, ctx) => {
|
|
76730
|
+
const [result, apiCall] = await schedulingUpdate(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75213
76731
|
if (!result.ok) {
|
|
75214
76732
|
return {
|
|
75215
76733
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75224,9 +76742,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
75224
76742
|
|
|
75225
76743
|
// src/funcs/statementsGet.ts
|
|
75226
76744
|
function statementsGet(client, request, options) {
|
|
75227
|
-
return new APIPromise($
|
|
76745
|
+
return new APIPromise($do131(client, request, options));
|
|
75228
76746
|
}
|
|
75229
|
-
async function $
|
|
76747
|
+
async function $do131(client, request, options) {
|
|
75230
76748
|
const parsed = safeParse(request, (value) => GetStatementRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75231
76749
|
if (!parsed.ok) {
|
|
75232
76750
|
return [parsed, { status: "invalid" }];
|
|
@@ -75312,12 +76830,12 @@ var init_statementsGet = __esm(() => {
|
|
|
75312
76830
|
});
|
|
75313
76831
|
|
|
75314
76832
|
// src/mcp-server/tools/statementsGet.ts
|
|
75315
|
-
var
|
|
76833
|
+
var args131, tool$statementsGet;
|
|
75316
76834
|
var init_statementsGet2 = __esm(() => {
|
|
75317
76835
|
init_statementsGet();
|
|
75318
76836
|
init_operations();
|
|
75319
76837
|
init_tools();
|
|
75320
|
-
|
|
76838
|
+
args131 = {
|
|
75321
76839
|
request: GetStatementRequest$inboundSchema
|
|
75322
76840
|
};
|
|
75323
76841
|
tool$statementsGet = {
|
|
@@ -75328,9 +76846,9 @@ Use the \`Accept\` header to specify the format of the response. Supported forma
|
|
|
75328
76846
|
|
|
75329
76847
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75330
76848
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
75331
|
-
args:
|
|
75332
|
-
tool: async (client,
|
|
75333
|
-
const [result, apiCall] = await statementsGet(client,
|
|
76849
|
+
args: args131,
|
|
76850
|
+
tool: async (client, args132, ctx) => {
|
|
76851
|
+
const [result, apiCall] = await statementsGet(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75334
76852
|
if (!result.ok) {
|
|
75335
76853
|
return {
|
|
75336
76854
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75345,9 +76863,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
75345
76863
|
|
|
75346
76864
|
// src/funcs/statementsList.ts
|
|
75347
76865
|
function statementsList(client, request, options) {
|
|
75348
|
-
return new APIPromise($
|
|
76866
|
+
return new APIPromise($do132(client, request, options));
|
|
75349
76867
|
}
|
|
75350
|
-
async function $
|
|
76868
|
+
async function $do132(client, request, options) {
|
|
75351
76869
|
const parsed = safeParse(request, (value) => ListStatementsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75352
76870
|
if (!parsed.ok) {
|
|
75353
76871
|
return [parsed, { status: "invalid" }];
|
|
@@ -75433,12 +76951,12 @@ var init_statementsList = __esm(() => {
|
|
|
75433
76951
|
});
|
|
75434
76952
|
|
|
75435
76953
|
// src/mcp-server/tools/statementsList.ts
|
|
75436
|
-
var
|
|
76954
|
+
var args132, tool$statementsList;
|
|
75437
76955
|
var init_statementsList2 = __esm(() => {
|
|
75438
76956
|
init_statementsList();
|
|
75439
76957
|
init_operations();
|
|
75440
76958
|
init_tools();
|
|
75441
|
-
|
|
76959
|
+
args132 = {
|
|
75442
76960
|
request: ListStatementsRequest$inboundSchema
|
|
75443
76961
|
};
|
|
75444
76962
|
tool$statementsList = {
|
|
@@ -75447,9 +76965,9 @@ var init_statementsList2 = __esm(() => {
|
|
|
75447
76965
|
|
|
75448
76966
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75449
76967
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
75450
|
-
args:
|
|
75451
|
-
tool: async (client,
|
|
75452
|
-
const [result, apiCall] = await statementsList(client,
|
|
76968
|
+
args: args132,
|
|
76969
|
+
tool: async (client, args133, ctx) => {
|
|
76970
|
+
const [result, apiCall] = await statementsList(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75453
76971
|
if (!result.ok) {
|
|
75454
76972
|
return {
|
|
75455
76973
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75464,9 +76982,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
75464
76982
|
|
|
75465
76983
|
// src/funcs/supportCreateTicket.ts
|
|
75466
76984
|
function supportCreateTicket(client, request, options) {
|
|
75467
|
-
return new APIPromise($
|
|
76985
|
+
return new APIPromise($do133(client, request, options));
|
|
75468
76986
|
}
|
|
75469
|
-
async function $
|
|
76987
|
+
async function $do133(client, request, options) {
|
|
75470
76988
|
const parsed = safeParse(request, (value) => CreateTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75471
76989
|
if (!parsed.ok) {
|
|
75472
76990
|
return [parsed, { status: "invalid" }];
|
|
@@ -75558,12 +77076,12 @@ var init_supportCreateTicket = __esm(() => {
|
|
|
75558
77076
|
});
|
|
75559
77077
|
|
|
75560
77078
|
// src/mcp-server/tools/supportCreateTicket.ts
|
|
75561
|
-
var
|
|
77079
|
+
var args133, tool$supportCreateTicket;
|
|
75562
77080
|
var init_supportCreateTicket2 = __esm(() => {
|
|
75563
77081
|
init_supportCreateTicket();
|
|
75564
77082
|
init_operations();
|
|
75565
77083
|
init_tools();
|
|
75566
|
-
|
|
77084
|
+
args133 = {
|
|
75567
77085
|
request: CreateTicketRequest$inboundSchema
|
|
75568
77086
|
};
|
|
75569
77087
|
tool$supportCreateTicket = {
|
|
@@ -75575,9 +77093,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
|
|
|
75575
77093
|
|
|
75576
77094
|
If you're creating the ticket on behalf of another account, then you'll need to
|
|
75577
77095
|
specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
75578
|
-
args:
|
|
75579
|
-
tool: async (client,
|
|
75580
|
-
const [result, apiCall] = await supportCreateTicket(client,
|
|
77096
|
+
args: args133,
|
|
77097
|
+
tool: async (client, args134, ctx) => {
|
|
77098
|
+
const [result, apiCall] = await supportCreateTicket(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75581
77099
|
if (!result.ok) {
|
|
75582
77100
|
return {
|
|
75583
77101
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75592,9 +77110,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{acco
|
|
|
75592
77110
|
|
|
75593
77111
|
// src/funcs/supportGetTicket.ts
|
|
75594
77112
|
function supportGetTicket(client, request, options) {
|
|
75595
|
-
return new APIPromise($
|
|
77113
|
+
return new APIPromise($do134(client, request, options));
|
|
75596
77114
|
}
|
|
75597
|
-
async function $
|
|
77115
|
+
async function $do134(client, request, options) {
|
|
75598
77116
|
const parsed = safeParse(request, (value) => GetTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75599
77117
|
if (!parsed.ok) {
|
|
75600
77118
|
return [parsed, { status: "invalid" }];
|
|
@@ -75676,12 +77194,12 @@ var init_supportGetTicket = __esm(() => {
|
|
|
75676
77194
|
});
|
|
75677
77195
|
|
|
75678
77196
|
// src/mcp-server/tools/supportGetTicket.ts
|
|
75679
|
-
var
|
|
77197
|
+
var args134, tool$supportGetTicket;
|
|
75680
77198
|
var init_supportGetTicket2 = __esm(() => {
|
|
75681
77199
|
init_supportGetTicket();
|
|
75682
77200
|
init_operations();
|
|
75683
77201
|
init_tools();
|
|
75684
|
-
|
|
77202
|
+
args134 = {
|
|
75685
77203
|
request: GetTicketRequest$inboundSchema
|
|
75686
77204
|
};
|
|
75687
77205
|
tool$supportGetTicket = {
|
|
@@ -75693,9 +77211,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
75693
77211
|
|
|
75694
77212
|
If you're retrieving another account's ticket, then you'll need to
|
|
75695
77213
|
specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
75696
|
-
args:
|
|
75697
|
-
tool: async (client,
|
|
75698
|
-
const [result, apiCall] = await supportGetTicket(client,
|
|
77214
|
+
args: args134,
|
|
77215
|
+
tool: async (client, args135, ctx) => {
|
|
77216
|
+
const [result, apiCall] = await supportGetTicket(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75699
77217
|
if (!result.ok) {
|
|
75700
77218
|
return {
|
|
75701
77219
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75710,9 +77228,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
75710
77228
|
|
|
75711
77229
|
// src/funcs/supportListTicketMessages.ts
|
|
75712
77230
|
function supportListTicketMessages(client, request, options) {
|
|
75713
|
-
return new APIPromise($
|
|
77231
|
+
return new APIPromise($do135(client, request, options));
|
|
75714
77232
|
}
|
|
75715
|
-
async function $
|
|
77233
|
+
async function $do135(client, request, options) {
|
|
75716
77234
|
const parsed = safeParse(request, (value) => ListTicketMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75717
77235
|
if (!parsed.ok) {
|
|
75718
77236
|
return [parsed, { status: "invalid" }];
|
|
@@ -75794,12 +77312,12 @@ var init_supportListTicketMessages = __esm(() => {
|
|
|
75794
77312
|
});
|
|
75795
77313
|
|
|
75796
77314
|
// src/mcp-server/tools/supportListTicketMessages.ts
|
|
75797
|
-
var
|
|
77315
|
+
var args135, tool$supportListTicketMessages;
|
|
75798
77316
|
var init_supportListTicketMessages2 = __esm(() => {
|
|
75799
77317
|
init_supportListTicketMessages();
|
|
75800
77318
|
init_operations();
|
|
75801
77319
|
init_tools();
|
|
75802
|
-
|
|
77320
|
+
args135 = {
|
|
75803
77321
|
request: ListTicketMessagesRequest$inboundSchema
|
|
75804
77322
|
};
|
|
75805
77323
|
tool$supportListTicketMessages = {
|
|
@@ -75811,9 +77329,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
75811
77329
|
|
|
75812
77330
|
If you're listing another account's messages, then you'll need to
|
|
75813
77331
|
specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
75814
|
-
args:
|
|
75815
|
-
tool: async (client,
|
|
75816
|
-
const [result, apiCall] = await supportListTicketMessages(client,
|
|
77332
|
+
args: args135,
|
|
77333
|
+
tool: async (client, args136, ctx) => {
|
|
77334
|
+
const [result, apiCall] = await supportListTicketMessages(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75817
77335
|
if (!result.ok) {
|
|
75818
77336
|
return {
|
|
75819
77337
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75828,9 +77346,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
75828
77346
|
|
|
75829
77347
|
// src/funcs/supportListTickets.ts
|
|
75830
77348
|
function supportListTickets(client, request, options) {
|
|
75831
|
-
return new APIPromise($
|
|
77349
|
+
return new APIPromise($do136(client, request, options));
|
|
75832
77350
|
}
|
|
75833
|
-
async function $
|
|
77351
|
+
async function $do136(client, request, options) {
|
|
75834
77352
|
const parsed = safeParse(request, (value) => ListTicketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75835
77353
|
if (!parsed.ok) {
|
|
75836
77354
|
return [parsed, { status: "invalid" }];
|
|
@@ -75915,12 +77433,12 @@ var init_supportListTickets = __esm(() => {
|
|
|
75915
77433
|
});
|
|
75916
77434
|
|
|
75917
77435
|
// src/mcp-server/tools/supportListTickets.ts
|
|
75918
|
-
var
|
|
77436
|
+
var args136, tool$supportListTickets;
|
|
75919
77437
|
var init_supportListTickets2 = __esm(() => {
|
|
75920
77438
|
init_supportListTickets();
|
|
75921
77439
|
init_operations();
|
|
75922
77440
|
init_tools();
|
|
75923
|
-
|
|
77441
|
+
args136 = {
|
|
75924
77442
|
request: ListTicketsRequest$inboundSchema
|
|
75925
77443
|
};
|
|
75926
77444
|
tool$supportListTickets = {
|
|
@@ -75932,9 +77450,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
75932
77450
|
|
|
75933
77451
|
If you're listing another account's tickets, then you'll need to
|
|
75934
77452
|
specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
75935
|
-
args:
|
|
75936
|
-
tool: async (client,
|
|
75937
|
-
const [result, apiCall] = await supportListTickets(client,
|
|
77453
|
+
args: args136,
|
|
77454
|
+
tool: async (client, args137, ctx) => {
|
|
77455
|
+
const [result, apiCall] = await supportListTickets(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75938
77456
|
if (!result.ok) {
|
|
75939
77457
|
return {
|
|
75940
77458
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75949,9 +77467,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
75949
77467
|
|
|
75950
77468
|
// src/funcs/supportUpdateTicket.ts
|
|
75951
77469
|
function supportUpdateTicket(client, request, options) {
|
|
75952
|
-
return new APIPromise($
|
|
77470
|
+
return new APIPromise($do137(client, request, options));
|
|
75953
77471
|
}
|
|
75954
|
-
async function $
|
|
77472
|
+
async function $do137(client, request, options) {
|
|
75955
77473
|
const parsed = safeParse(request, (value) => UpdateTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75956
77474
|
if (!parsed.ok) {
|
|
75957
77475
|
return [parsed, { status: "invalid" }];
|
|
@@ -76047,12 +77565,12 @@ var init_supportUpdateTicket = __esm(() => {
|
|
|
76047
77565
|
});
|
|
76048
77566
|
|
|
76049
77567
|
// src/mcp-server/tools/supportUpdateTicket.ts
|
|
76050
|
-
var
|
|
77568
|
+
var args137, tool$supportUpdateTicket;
|
|
76051
77569
|
var init_supportUpdateTicket2 = __esm(() => {
|
|
76052
77570
|
init_supportUpdateTicket();
|
|
76053
77571
|
init_operations();
|
|
76054
77572
|
init_tools();
|
|
76055
|
-
|
|
77573
|
+
args137 = {
|
|
76056
77574
|
request: UpdateTicketRequest$inboundSchema
|
|
76057
77575
|
};
|
|
76058
77576
|
tool$supportUpdateTicket = {
|
|
@@ -76064,9 +77582,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
|
|
|
76064
77582
|
|
|
76065
77583
|
If you're updating the ticket on behalf of another account, then you'll need to
|
|
76066
77584
|
specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
76067
|
-
args:
|
|
76068
|
-
tool: async (client,
|
|
76069
|
-
const [result, apiCall] = await supportUpdateTicket(client,
|
|
77585
|
+
args: args137,
|
|
77586
|
+
tool: async (client, args138, ctx) => {
|
|
77587
|
+
const [result, apiCall] = await supportUpdateTicket(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76070
77588
|
if (!result.ok) {
|
|
76071
77589
|
return {
|
|
76072
77590
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76081,9 +77599,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{acco
|
|
|
76081
77599
|
|
|
76082
77600
|
// src/funcs/sweepsCreateConfig.ts
|
|
76083
77601
|
function sweepsCreateConfig(client, request, options) {
|
|
76084
|
-
return new APIPromise($
|
|
77602
|
+
return new APIPromise($do138(client, request, options));
|
|
76085
77603
|
}
|
|
76086
|
-
async function $
|
|
77604
|
+
async function $do138(client, request, options) {
|
|
76087
77605
|
const parsed = safeParse(request, (value) => CreateSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76088
77606
|
if (!parsed.ok) {
|
|
76089
77607
|
return [parsed, { status: "invalid" }];
|
|
@@ -76175,12 +77693,12 @@ var init_sweepsCreateConfig = __esm(() => {
|
|
|
76175
77693
|
});
|
|
76176
77694
|
|
|
76177
77695
|
// src/mcp-server/tools/sweepsCreateConfig.ts
|
|
76178
|
-
var
|
|
77696
|
+
var args138, tool$sweepsCreateConfig;
|
|
76179
77697
|
var init_sweepsCreateConfig2 = __esm(() => {
|
|
76180
77698
|
init_sweepsCreateConfig();
|
|
76181
77699
|
init_operations();
|
|
76182
77700
|
init_tools();
|
|
76183
|
-
|
|
77701
|
+
args138 = {
|
|
76184
77702
|
request: CreateSweepConfigRequest$inboundSchema
|
|
76185
77703
|
};
|
|
76186
77704
|
tool$sweepsCreateConfig = {
|
|
@@ -76189,9 +77707,9 @@ var init_sweepsCreateConfig2 = __esm(() => {
|
|
|
76189
77707
|
|
|
76190
77708
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76191
77709
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
76192
|
-
args:
|
|
76193
|
-
tool: async (client,
|
|
76194
|
-
const [result, apiCall] = await sweepsCreateConfig(client,
|
|
77710
|
+
args: args138,
|
|
77711
|
+
tool: async (client, args139, ctx) => {
|
|
77712
|
+
const [result, apiCall] = await sweepsCreateConfig(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76195
77713
|
if (!result.ok) {
|
|
76196
77714
|
return {
|
|
76197
77715
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76206,9 +77724,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
76206
77724
|
|
|
76207
77725
|
// src/funcs/sweepsGet.ts
|
|
76208
77726
|
function sweepsGet(client, request, options) {
|
|
76209
|
-
return new APIPromise($
|
|
77727
|
+
return new APIPromise($do139(client, request, options));
|
|
76210
77728
|
}
|
|
76211
|
-
async function $
|
|
77729
|
+
async function $do139(client, request, options) {
|
|
76212
77730
|
const parsed = safeParse(request, (value) => GetSweepRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76213
77731
|
if (!parsed.ok) {
|
|
76214
77732
|
return [parsed, { status: "invalid" }];
|
|
@@ -76294,12 +77812,12 @@ var init_sweepsGet = __esm(() => {
|
|
|
76294
77812
|
});
|
|
76295
77813
|
|
|
76296
77814
|
// src/mcp-server/tools/sweepsGet.ts
|
|
76297
|
-
var
|
|
77815
|
+
var args139, tool$sweepsGet;
|
|
76298
77816
|
var init_sweepsGet2 = __esm(() => {
|
|
76299
77817
|
init_sweepsGet();
|
|
76300
77818
|
init_operations();
|
|
76301
77819
|
init_tools();
|
|
76302
|
-
|
|
77820
|
+
args139 = {
|
|
76303
77821
|
request: GetSweepRequest$inboundSchema
|
|
76304
77822
|
};
|
|
76305
77823
|
tool$sweepsGet = {
|
|
@@ -76308,9 +77826,9 @@ var init_sweepsGet2 = __esm(() => {
|
|
|
76308
77826
|
|
|
76309
77827
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76310
77828
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
76311
|
-
args:
|
|
76312
|
-
tool: async (client,
|
|
76313
|
-
const [result, apiCall] = await sweepsGet(client,
|
|
77829
|
+
args: args139,
|
|
77830
|
+
tool: async (client, args140, ctx) => {
|
|
77831
|
+
const [result, apiCall] = await sweepsGet(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76314
77832
|
if (!result.ok) {
|
|
76315
77833
|
return {
|
|
76316
77834
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76325,9 +77843,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
76325
77843
|
|
|
76326
77844
|
// src/funcs/sweepsGetConfig.ts
|
|
76327
77845
|
function sweepsGetConfig(client, request, options) {
|
|
76328
|
-
return new APIPromise($
|
|
77846
|
+
return new APIPromise($do140(client, request, options));
|
|
76329
77847
|
}
|
|
76330
|
-
async function $
|
|
77848
|
+
async function $do140(client, request, options) {
|
|
76331
77849
|
const parsed = safeParse(request, (value) => GetSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76332
77850
|
if (!parsed.ok) {
|
|
76333
77851
|
return [parsed, { status: "invalid" }];
|
|
@@ -76409,12 +77927,12 @@ var init_sweepsGetConfig = __esm(() => {
|
|
|
76409
77927
|
});
|
|
76410
77928
|
|
|
76411
77929
|
// src/mcp-server/tools/sweepsGetConfig.ts
|
|
76412
|
-
var
|
|
77930
|
+
var args140, tool$sweepsGetConfig;
|
|
76413
77931
|
var init_sweepsGetConfig2 = __esm(() => {
|
|
76414
77932
|
init_sweepsGetConfig();
|
|
76415
77933
|
init_operations();
|
|
76416
77934
|
init_tools();
|
|
76417
|
-
|
|
77935
|
+
args140 = {
|
|
76418
77936
|
request: GetSweepConfigRequest$inboundSchema
|
|
76419
77937
|
};
|
|
76420
77938
|
tool$sweepsGetConfig = {
|
|
@@ -76423,9 +77941,9 @@ var init_sweepsGetConfig2 = __esm(() => {
|
|
|
76423
77941
|
|
|
76424
77942
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76425
77943
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
76426
|
-
args:
|
|
76427
|
-
tool: async (client,
|
|
76428
|
-
const [result, apiCall] = await sweepsGetConfig(client,
|
|
77944
|
+
args: args140,
|
|
77945
|
+
tool: async (client, args141, ctx) => {
|
|
77946
|
+
const [result, apiCall] = await sweepsGetConfig(client, args141.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76429
77947
|
if (!result.ok) {
|
|
76430
77948
|
return {
|
|
76431
77949
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76440,9 +77958,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
76440
77958
|
|
|
76441
77959
|
// src/funcs/sweepsList.ts
|
|
76442
77960
|
function sweepsList(client, request, options) {
|
|
76443
|
-
return new APIPromise($
|
|
77961
|
+
return new APIPromise($do141(client, request, options));
|
|
76444
77962
|
}
|
|
76445
|
-
async function $
|
|
77963
|
+
async function $do141(client, request, options) {
|
|
76446
77964
|
const parsed = safeParse(request, (value) => ListSweepsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76447
77965
|
if (!parsed.ok) {
|
|
76448
77966
|
return [parsed, { status: "invalid" }];
|
|
@@ -76531,12 +78049,12 @@ var init_sweepsList = __esm(() => {
|
|
|
76531
78049
|
});
|
|
76532
78050
|
|
|
76533
78051
|
// src/mcp-server/tools/sweepsList.ts
|
|
76534
|
-
var
|
|
78052
|
+
var args141, tool$sweepsList;
|
|
76535
78053
|
var init_sweepsList2 = __esm(() => {
|
|
76536
78054
|
init_sweepsList();
|
|
76537
78055
|
init_operations();
|
|
76538
78056
|
init_tools();
|
|
76539
|
-
|
|
78057
|
+
args141 = {
|
|
76540
78058
|
request: ListSweepsRequest$inboundSchema
|
|
76541
78059
|
};
|
|
76542
78060
|
tool$sweepsList = {
|
|
@@ -76545,9 +78063,9 @@ var init_sweepsList2 = __esm(() => {
|
|
|
76545
78063
|
|
|
76546
78064
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76547
78065
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
76548
|
-
args:
|
|
76549
|
-
tool: async (client,
|
|
76550
|
-
const [result, apiCall] = await sweepsList(client,
|
|
78066
|
+
args: args141,
|
|
78067
|
+
tool: async (client, args142, ctx) => {
|
|
78068
|
+
const [result, apiCall] = await sweepsList(client, args142.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76551
78069
|
if (!result.ok) {
|
|
76552
78070
|
return {
|
|
76553
78071
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76562,9 +78080,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
76562
78080
|
|
|
76563
78081
|
// src/funcs/sweepsListConfigs.ts
|
|
76564
78082
|
function sweepsListConfigs(client, request, options) {
|
|
76565
|
-
return new APIPromise($
|
|
78083
|
+
return new APIPromise($do142(client, request, options));
|
|
76566
78084
|
}
|
|
76567
|
-
async function $
|
|
78085
|
+
async function $do142(client, request, options) {
|
|
76568
78086
|
const parsed = safeParse(request, (value) => ListSweepConfigsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76569
78087
|
if (!parsed.ok) {
|
|
76570
78088
|
return [parsed, { status: "invalid" }];
|
|
@@ -76642,12 +78160,12 @@ var init_sweepsListConfigs = __esm(() => {
|
|
|
76642
78160
|
});
|
|
76643
78161
|
|
|
76644
78162
|
// src/mcp-server/tools/sweepsListConfigs.ts
|
|
76645
|
-
var
|
|
78163
|
+
var args142, tool$sweepsListConfigs;
|
|
76646
78164
|
var init_sweepsListConfigs2 = __esm(() => {
|
|
76647
78165
|
init_sweepsListConfigs();
|
|
76648
78166
|
init_operations();
|
|
76649
78167
|
init_tools();
|
|
76650
|
-
|
|
78168
|
+
args142 = {
|
|
76651
78169
|
request: ListSweepConfigsRequest$inboundSchema
|
|
76652
78170
|
};
|
|
76653
78171
|
tool$sweepsListConfigs = {
|
|
@@ -76656,9 +78174,9 @@ var init_sweepsListConfigs2 = __esm(() => {
|
|
|
76656
78174
|
|
|
76657
78175
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76658
78176
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
76659
|
-
args:
|
|
76660
|
-
tool: async (client,
|
|
76661
|
-
const [result, apiCall] = await sweepsListConfigs(client,
|
|
78177
|
+
args: args142,
|
|
78178
|
+
tool: async (client, args143, ctx) => {
|
|
78179
|
+
const [result, apiCall] = await sweepsListConfigs(client, args143.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76662
78180
|
if (!result.ok) {
|
|
76663
78181
|
return {
|
|
76664
78182
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76673,9 +78191,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
76673
78191
|
|
|
76674
78192
|
// src/funcs/sweepsUpdateConfig.ts
|
|
76675
78193
|
function sweepsUpdateConfig(client, request, options) {
|
|
76676
|
-
return new APIPromise($
|
|
78194
|
+
return new APIPromise($do143(client, request, options));
|
|
76677
78195
|
}
|
|
76678
|
-
async function $
|
|
78196
|
+
async function $do143(client, request, options) {
|
|
76679
78197
|
const parsed = safeParse(request, (value) => UpdateSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76680
78198
|
if (!parsed.ok) {
|
|
76681
78199
|
return [parsed, { status: "invalid" }];
|
|
@@ -76771,12 +78289,12 @@ var init_sweepsUpdateConfig = __esm(() => {
|
|
|
76771
78289
|
});
|
|
76772
78290
|
|
|
76773
78291
|
// src/mcp-server/tools/sweepsUpdateConfig.ts
|
|
76774
|
-
var
|
|
78292
|
+
var args143, tool$sweepsUpdateConfig;
|
|
76775
78293
|
var init_sweepsUpdateConfig2 = __esm(() => {
|
|
76776
78294
|
init_sweepsUpdateConfig();
|
|
76777
78295
|
init_operations();
|
|
76778
78296
|
init_tools();
|
|
76779
|
-
|
|
78297
|
+
args143 = {
|
|
76780
78298
|
request: UpdateSweepConfigRequest$inboundSchema
|
|
76781
78299
|
};
|
|
76782
78300
|
tool$sweepsUpdateConfig = {
|
|
@@ -76785,9 +78303,9 @@ var init_sweepsUpdateConfig2 = __esm(() => {
|
|
|
76785
78303
|
|
|
76786
78304
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76787
78305
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
76788
|
-
args:
|
|
76789
|
-
tool: async (client,
|
|
76790
|
-
const [result, apiCall] = await sweepsUpdateConfig(client,
|
|
78306
|
+
args: args143,
|
|
78307
|
+
tool: async (client, args144, ctx) => {
|
|
78308
|
+
const [result, apiCall] = await sweepsUpdateConfig(client, args144.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76791
78309
|
if (!result.ok) {
|
|
76792
78310
|
return {
|
|
76793
78311
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76802,9 +78320,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
76802
78320
|
|
|
76803
78321
|
// src/funcs/terminalApplicationsCreate.ts
|
|
76804
78322
|
function terminalApplicationsCreate(client, request, options) {
|
|
76805
|
-
return new APIPromise($
|
|
78323
|
+
return new APIPromise($do144(client, request, options));
|
|
76806
78324
|
}
|
|
76807
|
-
async function $
|
|
78325
|
+
async function $do144(client, request, options) {
|
|
76808
78326
|
const parsed = safeParse(request, (value) => CreateTerminalApplication$outboundSchema.parse(value), "Input validation failed");
|
|
76809
78327
|
if (!parsed.ok) {
|
|
76810
78328
|
return [parsed, { status: "invalid" }];
|
|
@@ -76893,12 +78411,12 @@ var init_terminalApplicationsCreate = __esm(() => {
|
|
|
76893
78411
|
});
|
|
76894
78412
|
|
|
76895
78413
|
// src/mcp-server/tools/terminalApplicationsCreate.ts
|
|
76896
|
-
var
|
|
78414
|
+
var args144, tool$terminalApplicationsCreate;
|
|
76897
78415
|
var init_terminalApplicationsCreate2 = __esm(() => {
|
|
76898
78416
|
init_terminalApplicationsCreate();
|
|
76899
78417
|
init_components();
|
|
76900
78418
|
init_tools();
|
|
76901
|
-
|
|
78419
|
+
args144 = {
|
|
76902
78420
|
request: CreateTerminalApplication$inboundSchema
|
|
76903
78421
|
};
|
|
76904
78422
|
tool$terminalApplicationsCreate = {
|
|
@@ -76907,9 +78425,9 @@ var init_terminalApplicationsCreate2 = __esm(() => {
|
|
|
76907
78425
|
|
|
76908
78426
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76909
78427
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
76910
|
-
args:
|
|
76911
|
-
tool: async (client,
|
|
76912
|
-
const [result, apiCall] = await terminalApplicationsCreate(client,
|
|
78428
|
+
args: args144,
|
|
78429
|
+
tool: async (client, args145, ctx) => {
|
|
78430
|
+
const [result, apiCall] = await terminalApplicationsCreate(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76913
78431
|
if (!result.ok) {
|
|
76914
78432
|
return {
|
|
76915
78433
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76924,9 +78442,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
76924
78442
|
|
|
76925
78443
|
// src/funcs/terminalApplicationsCreateVersion.ts
|
|
76926
78444
|
function terminalApplicationsCreateVersion(client, request, options) {
|
|
76927
|
-
return new APIPromise($
|
|
78445
|
+
return new APIPromise($do145(client, request, options));
|
|
76928
78446
|
}
|
|
76929
|
-
async function $
|
|
78447
|
+
async function $do145(client, request, options) {
|
|
76930
78448
|
const parsed = safeParse(request, (value) => CreateTerminalApplicationVersionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76931
78449
|
if (!parsed.ok) {
|
|
76932
78450
|
return [parsed, { status: "invalid" }];
|
|
@@ -77016,12 +78534,12 @@ var init_terminalApplicationsCreateVersion = __esm(() => {
|
|
|
77016
78534
|
});
|
|
77017
78535
|
|
|
77018
78536
|
// src/mcp-server/tools/terminalApplicationsCreateVersion.ts
|
|
77019
|
-
var
|
|
78537
|
+
var args145, tool$terminalApplicationsCreateVersion;
|
|
77020
78538
|
var init_terminalApplicationsCreateVersion2 = __esm(() => {
|
|
77021
78539
|
init_terminalApplicationsCreateVersion();
|
|
77022
78540
|
init_operations();
|
|
77023
78541
|
init_tools();
|
|
77024
|
-
|
|
78542
|
+
args145 = {
|
|
77025
78543
|
request: CreateTerminalApplicationVersionRequest$inboundSchema
|
|
77026
78544
|
};
|
|
77027
78545
|
tool$terminalApplicationsCreateVersion = {
|
|
@@ -77030,9 +78548,9 @@ var init_terminalApplicationsCreateVersion2 = __esm(() => {
|
|
|
77030
78548
|
|
|
77031
78549
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77032
78550
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
77033
|
-
args:
|
|
77034
|
-
tool: async (client,
|
|
77035
|
-
const [result, apiCall] = await terminalApplicationsCreateVersion(client,
|
|
78551
|
+
args: args145,
|
|
78552
|
+
tool: async (client, args146, ctx) => {
|
|
78553
|
+
const [result, apiCall] = await terminalApplicationsCreateVersion(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77036
78554
|
if (!result.ok) {
|
|
77037
78555
|
return {
|
|
77038
78556
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77047,9 +78565,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
77047
78565
|
|
|
77048
78566
|
// src/funcs/terminalApplicationsDelete.ts
|
|
77049
78567
|
function terminalApplicationsDelete(client, request, options) {
|
|
77050
|
-
return new APIPromise($
|
|
78568
|
+
return new APIPromise($do146(client, request, options));
|
|
77051
78569
|
}
|
|
77052
|
-
async function $
|
|
78570
|
+
async function $do146(client, request, options) {
|
|
77053
78571
|
const parsed = safeParse(request, (value) => DeleteTerminalApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77054
78572
|
if (!parsed.ok) {
|
|
77055
78573
|
return [parsed, { status: "invalid" }];
|
|
@@ -77133,12 +78651,12 @@ var init_terminalApplicationsDelete = __esm(() => {
|
|
|
77133
78651
|
});
|
|
77134
78652
|
|
|
77135
78653
|
// src/mcp-server/tools/terminalApplicationsDelete.ts
|
|
77136
|
-
var
|
|
78654
|
+
var args146, tool$terminalApplicationsDelete;
|
|
77137
78655
|
var init_terminalApplicationsDelete2 = __esm(() => {
|
|
77138
78656
|
init_terminalApplicationsDelete();
|
|
77139
78657
|
init_operations();
|
|
77140
78658
|
init_tools();
|
|
77141
|
-
|
|
78659
|
+
args146 = {
|
|
77142
78660
|
request: DeleteTerminalApplicationRequest$inboundSchema
|
|
77143
78661
|
};
|
|
77144
78662
|
tool$terminalApplicationsDelete = {
|
|
@@ -77147,9 +78665,9 @@ var init_terminalApplicationsDelete2 = __esm(() => {
|
|
|
77147
78665
|
|
|
77148
78666
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77149
78667
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
77150
|
-
args:
|
|
77151
|
-
tool: async (client,
|
|
77152
|
-
const [result, apiCall] = await terminalApplicationsDelete(client,
|
|
78668
|
+
args: args146,
|
|
78669
|
+
tool: async (client, args147, ctx) => {
|
|
78670
|
+
const [result, apiCall] = await terminalApplicationsDelete(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77153
78671
|
if (!result.ok) {
|
|
77154
78672
|
return {
|
|
77155
78673
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77163,9 +78681,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
77163
78681
|
|
|
77164
78682
|
// src/funcs/terminalApplicationsGet.ts
|
|
77165
78683
|
function terminalApplicationsGet(client, request, options) {
|
|
77166
|
-
return new APIPromise($
|
|
78684
|
+
return new APIPromise($do147(client, request, options));
|
|
77167
78685
|
}
|
|
77168
|
-
async function $
|
|
78686
|
+
async function $do147(client, request, options) {
|
|
77169
78687
|
const parsed = safeParse(request, (value) => GetTerminalApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77170
78688
|
if (!parsed.ok) {
|
|
77171
78689
|
return [parsed, { status: "invalid" }];
|
|
@@ -77240,12 +78758,12 @@ var init_terminalApplicationsGet = __esm(() => {
|
|
|
77240
78758
|
});
|
|
77241
78759
|
|
|
77242
78760
|
// src/mcp-server/tools/terminalApplicationsGet.ts
|
|
77243
|
-
var
|
|
78761
|
+
var args147, tool$terminalApplicationsGet;
|
|
77244
78762
|
var init_terminalApplicationsGet2 = __esm(() => {
|
|
77245
78763
|
init_terminalApplicationsGet();
|
|
77246
78764
|
init_operations();
|
|
77247
78765
|
init_tools();
|
|
77248
|
-
|
|
78766
|
+
args147 = {
|
|
77249
78767
|
request: GetTerminalApplicationRequest$inboundSchema
|
|
77250
78768
|
};
|
|
77251
78769
|
tool$terminalApplicationsGet = {
|
|
@@ -77254,9 +78772,9 @@ var init_terminalApplicationsGet2 = __esm(() => {
|
|
|
77254
78772
|
|
|
77255
78773
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77256
78774
|
you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
77257
|
-
args:
|
|
77258
|
-
tool: async (client,
|
|
77259
|
-
const [result, apiCall] = await terminalApplicationsGet(client,
|
|
78775
|
+
args: args147,
|
|
78776
|
+
tool: async (client, args148, ctx) => {
|
|
78777
|
+
const [result, apiCall] = await terminalApplicationsGet(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77260
78778
|
if (!result.ok) {
|
|
77261
78779
|
return {
|
|
77262
78780
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77271,9 +78789,9 @@ you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
|
77271
78789
|
|
|
77272
78790
|
// src/funcs/terminalApplicationsList.ts
|
|
77273
78791
|
function terminalApplicationsList(client, _request, options) {
|
|
77274
|
-
return new APIPromise($
|
|
78792
|
+
return new APIPromise($do148(client, _request, options));
|
|
77275
78793
|
}
|
|
77276
|
-
async function $
|
|
78794
|
+
async function $do148(client, _request, options) {
|
|
77277
78795
|
const path = pathToFunc("/terminal-applications")();
|
|
77278
78796
|
const headers = new Headers(compactMap({
|
|
77279
78797
|
Accept: "application/json",
|
|
@@ -77337,12 +78855,12 @@ var init_terminalApplicationsList = __esm(() => {
|
|
|
77337
78855
|
});
|
|
77338
78856
|
|
|
77339
78857
|
// src/mcp-server/tools/terminalApplicationsList.ts
|
|
77340
|
-
var
|
|
78858
|
+
var args148, tool$terminalApplicationsList;
|
|
77341
78859
|
var init_terminalApplicationsList2 = __esm(() => {
|
|
77342
78860
|
init_terminalApplicationsList();
|
|
77343
78861
|
init_operations();
|
|
77344
78862
|
init_tools();
|
|
77345
|
-
|
|
78863
|
+
args148 = {
|
|
77346
78864
|
request: ListTerminalApplicationsRequest$inboundSchema
|
|
77347
78865
|
};
|
|
77348
78866
|
tool$terminalApplicationsList = {
|
|
@@ -77351,9 +78869,9 @@ var init_terminalApplicationsList2 = __esm(() => {
|
|
|
77351
78869
|
|
|
77352
78870
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77353
78871
|
you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
77354
|
-
args:
|
|
77355
|
-
tool: async (client,
|
|
77356
|
-
const [result, apiCall] = await terminalApplicationsList(client,
|
|
78872
|
+
args: args148,
|
|
78873
|
+
tool: async (client, args149, ctx) => {
|
|
78874
|
+
const [result, apiCall] = await terminalApplicationsList(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77357
78875
|
if (!result.ok) {
|
|
77358
78876
|
return {
|
|
77359
78877
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77368,9 +78886,9 @@ you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
|
77368
78886
|
|
|
77369
78887
|
// src/funcs/transfersCreate.ts
|
|
77370
78888
|
function transfersCreate(client, request, options) {
|
|
77371
|
-
return new APIPromise($
|
|
78889
|
+
return new APIPromise($do149(client, request, options));
|
|
77372
78890
|
}
|
|
77373
|
-
async function $
|
|
78891
|
+
async function $do149(client, request, options) {
|
|
77374
78892
|
const parsed = safeParse(request, (value) => CreateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77375
78893
|
if (!parsed.ok) {
|
|
77376
78894
|
return [parsed, { status: "invalid" }];
|
|
@@ -77463,12 +78981,12 @@ var init_transfersCreate = __esm(() => {
|
|
|
77463
78981
|
});
|
|
77464
78982
|
|
|
77465
78983
|
// src/mcp-server/tools/transfersCreate.ts
|
|
77466
|
-
var
|
|
78984
|
+
var args149, tool$transfersCreate;
|
|
77467
78985
|
var init_transfersCreate2 = __esm(() => {
|
|
77468
78986
|
init_transfersCreate();
|
|
77469
78987
|
init_operations();
|
|
77470
78988
|
init_tools();
|
|
77471
|
-
|
|
78989
|
+
args149 = {
|
|
77472
78990
|
request: CreateTransferRequest$inboundSchema
|
|
77473
78991
|
};
|
|
77474
78992
|
tool$transfersCreate = {
|
|
@@ -77479,9 +78997,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
77479
78997
|
|
|
77480
78998
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77481
78999
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
77482
|
-
args:
|
|
77483
|
-
tool: async (client,
|
|
77484
|
-
const [result, apiCall] = await transfersCreate(client,
|
|
79000
|
+
args: args149,
|
|
79001
|
+
tool: async (client, args150, ctx) => {
|
|
79002
|
+
const [result, apiCall] = await transfersCreate(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77485
79003
|
if (!result.ok) {
|
|
77486
79004
|
return {
|
|
77487
79005
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77496,9 +79014,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
77496
79014
|
|
|
77497
79015
|
// src/funcs/transfersCreateCancellation.ts
|
|
77498
79016
|
function transfersCreateCancellation(client, request, options) {
|
|
77499
|
-
return new APIPromise($
|
|
79017
|
+
return new APIPromise($do150(client, request, options));
|
|
77500
79018
|
}
|
|
77501
|
-
async function $
|
|
79019
|
+
async function $do150(client, request, options) {
|
|
77502
79020
|
const parsed = safeParse(request, (value) => CreateCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77503
79021
|
if (!parsed.ok) {
|
|
77504
79022
|
return [parsed, { status: "invalid" }];
|
|
@@ -77581,12 +79099,12 @@ var init_transfersCreateCancellation = __esm(() => {
|
|
|
77581
79099
|
});
|
|
77582
79100
|
|
|
77583
79101
|
// src/mcp-server/tools/transfersCreateCancellation.ts
|
|
77584
|
-
var
|
|
79102
|
+
var args150, tool$transfersCreateCancellation;
|
|
77585
79103
|
var init_transfersCreateCancellation2 = __esm(() => {
|
|
77586
79104
|
init_transfersCreateCancellation();
|
|
77587
79105
|
init_operations();
|
|
77588
79106
|
init_tools();
|
|
77589
|
-
|
|
79107
|
+
args150 = {
|
|
77590
79108
|
request: CreateCancellationRequest$inboundSchema
|
|
77591
79109
|
};
|
|
77592
79110
|
tool$transfersCreateCancellation = {
|
|
@@ -77595,9 +79113,9 @@ var init_transfersCreateCancellation2 = __esm(() => {
|
|
|
77595
79113
|
|
|
77596
79114
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
77597
79115
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
77598
|
-
args:
|
|
77599
|
-
tool: async (client,
|
|
77600
|
-
const [result, apiCall] = await transfersCreateCancellation(client,
|
|
79116
|
+
args: args150,
|
|
79117
|
+
tool: async (client, args151, ctx) => {
|
|
79118
|
+
const [result, apiCall] = await transfersCreateCancellation(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77601
79119
|
if (!result.ok) {
|
|
77602
79120
|
return {
|
|
77603
79121
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77612,9 +79130,9 @@ var init_transfersCreateCancellation2 = __esm(() => {
|
|
|
77612
79130
|
|
|
77613
79131
|
// src/funcs/transfersCreateReversal.ts
|
|
77614
79132
|
function transfersCreateReversal(client, request, options) {
|
|
77615
|
-
return new APIPromise($
|
|
79133
|
+
return new APIPromise($do151(client, request, options));
|
|
77616
79134
|
}
|
|
77617
|
-
async function $
|
|
79135
|
+
async function $do151(client, request, options) {
|
|
77618
79136
|
const parsed = safeParse(request, (value) => CreateReversalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77619
79137
|
if (!parsed.ok) {
|
|
77620
79138
|
return [parsed, { status: "invalid" }];
|
|
@@ -77713,12 +79231,12 @@ var init_transfersCreateReversal = __esm(() => {
|
|
|
77713
79231
|
});
|
|
77714
79232
|
|
|
77715
79233
|
// src/mcp-server/tools/transfersCreateReversal.ts
|
|
77716
|
-
var
|
|
79234
|
+
var args151, tool$transfersCreateReversal;
|
|
77717
79235
|
var init_transfersCreateReversal2 = __esm(() => {
|
|
77718
79236
|
init_transfersCreateReversal();
|
|
77719
79237
|
init_operations();
|
|
77720
79238
|
init_tools();
|
|
77721
|
-
|
|
79239
|
+
args151 = {
|
|
77722
79240
|
request: CreateReversalRequest$inboundSchema
|
|
77723
79241
|
};
|
|
77724
79242
|
tool$transfersCreateReversal = {
|
|
@@ -77729,9 +79247,9 @@ to learn more.
|
|
|
77729
79247
|
|
|
77730
79248
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
77731
79249
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
77732
|
-
args:
|
|
77733
|
-
tool: async (client,
|
|
77734
|
-
const [result, apiCall] = await transfersCreateReversal(client,
|
|
79250
|
+
args: args151,
|
|
79251
|
+
tool: async (client, args152, ctx) => {
|
|
79252
|
+
const [result, apiCall] = await transfersCreateReversal(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77735
79253
|
if (!result.ok) {
|
|
77736
79254
|
return {
|
|
77737
79255
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77746,9 +79264,9 @@ to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
77746
79264
|
|
|
77747
79265
|
// src/funcs/transfersGenerateOptions.ts
|
|
77748
79266
|
function transfersGenerateOptions(client, request, options) {
|
|
77749
|
-
return new APIPromise($
|
|
79267
|
+
return new APIPromise($do152(client, request, options));
|
|
77750
79268
|
}
|
|
77751
|
-
async function $
|
|
79269
|
+
async function $do152(client, request, options) {
|
|
77752
79270
|
const parsed = safeParse(request, (value) => CreateTransferOptionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77753
79271
|
if (!parsed.ok) {
|
|
77754
79272
|
return [parsed, { status: "invalid" }];
|
|
@@ -77832,12 +79350,12 @@ var init_transfersGenerateOptions = __esm(() => {
|
|
|
77832
79350
|
});
|
|
77833
79351
|
|
|
77834
79352
|
// src/mcp-server/tools/transfersGenerateOptions.ts
|
|
77835
|
-
var
|
|
79353
|
+
var args152, tool$transfersGenerateOptions;
|
|
77836
79354
|
var init_transfersGenerateOptions2 = __esm(() => {
|
|
77837
79355
|
init_transfersGenerateOptions();
|
|
77838
79356
|
init_operations();
|
|
77839
79357
|
init_tools();
|
|
77840
|
-
|
|
79358
|
+
args152 = {
|
|
77841
79359
|
request: CreateTransferOptionsRequest$inboundSchema
|
|
77842
79360
|
};
|
|
77843
79361
|
tool$transfersGenerateOptions = {
|
|
@@ -77851,9 +79369,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
77851
79369
|
|
|
77852
79370
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77853
79371
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
77854
|
-
args:
|
|
77855
|
-
tool: async (client,
|
|
77856
|
-
const [result, apiCall] = await transfersGenerateOptions(client,
|
|
79372
|
+
args: args152,
|
|
79373
|
+
tool: async (client, args153, ctx) => {
|
|
79374
|
+
const [result, apiCall] = await transfersGenerateOptions(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77857
79375
|
if (!result.ok) {
|
|
77858
79376
|
return {
|
|
77859
79377
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77868,9 +79386,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
77868
79386
|
|
|
77869
79387
|
// src/funcs/transfersGet.ts
|
|
77870
79388
|
function transfersGet(client, request, options) {
|
|
77871
|
-
return new APIPromise($
|
|
79389
|
+
return new APIPromise($do153(client, request, options));
|
|
77872
79390
|
}
|
|
77873
|
-
async function $
|
|
79391
|
+
async function $do153(client, request, options) {
|
|
77874
79392
|
const parsed = safeParse(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77875
79393
|
if (!parsed.ok) {
|
|
77876
79394
|
return [parsed, { status: "invalid" }];
|
|
@@ -77952,12 +79470,12 @@ var init_transfersGet = __esm(() => {
|
|
|
77952
79470
|
});
|
|
77953
79471
|
|
|
77954
79472
|
// src/mcp-server/tools/transfersGet.ts
|
|
77955
|
-
var
|
|
79473
|
+
var args153, tool$transfersGet;
|
|
77956
79474
|
var init_transfersGet2 = __esm(() => {
|
|
77957
79475
|
init_transfersGet();
|
|
77958
79476
|
init_operations();
|
|
77959
79477
|
init_tools();
|
|
77960
|
-
|
|
79478
|
+
args153 = {
|
|
77961
79479
|
request: GetTransferRequest$inboundSchema
|
|
77962
79480
|
};
|
|
77963
79481
|
tool$transfersGet = {
|
|
@@ -77969,9 +79487,9 @@ to learn more.
|
|
|
77969
79487
|
|
|
77970
79488
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77971
79489
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
77972
|
-
args:
|
|
77973
|
-
tool: async (client,
|
|
77974
|
-
const [result, apiCall] = await transfersGet(client,
|
|
79490
|
+
args: args153,
|
|
79491
|
+
tool: async (client, args154, ctx) => {
|
|
79492
|
+
const [result, apiCall] = await transfersGet(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77975
79493
|
if (!result.ok) {
|
|
77976
79494
|
return {
|
|
77977
79495
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77986,9 +79504,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
77986
79504
|
|
|
77987
79505
|
// src/funcs/transfersGetCancellation.ts
|
|
77988
79506
|
function transfersGetCancellation(client, request, options) {
|
|
77989
|
-
return new APIPromise($
|
|
79507
|
+
return new APIPromise($do154(client, request, options));
|
|
77990
79508
|
}
|
|
77991
|
-
async function $
|
|
79509
|
+
async function $do154(client, request, options) {
|
|
77992
79510
|
const parsed = safeParse(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77993
79511
|
if (!parsed.ok) {
|
|
77994
79512
|
return [parsed, { status: "invalid" }];
|
|
@@ -78074,12 +79592,12 @@ var init_transfersGetCancellation = __esm(() => {
|
|
|
78074
79592
|
});
|
|
78075
79593
|
|
|
78076
79594
|
// src/mcp-server/tools/transfersGetCancellation.ts
|
|
78077
|
-
var
|
|
79595
|
+
var args154, tool$transfersGetCancellation;
|
|
78078
79596
|
var init_transfersGetCancellation2 = __esm(() => {
|
|
78079
79597
|
init_transfersGetCancellation();
|
|
78080
79598
|
init_operations();
|
|
78081
79599
|
init_tools();
|
|
78082
|
-
|
|
79600
|
+
args154 = {
|
|
78083
79601
|
request: GetCancellationRequest$inboundSchema
|
|
78084
79602
|
};
|
|
78085
79603
|
tool$transfersGetCancellation = {
|
|
@@ -78088,9 +79606,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
78088
79606
|
|
|
78089
79607
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
78090
79608
|
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
78091
|
-
args:
|
|
78092
|
-
tool: async (client,
|
|
78093
|
-
const [result, apiCall] = await transfersGetCancellation(client,
|
|
79609
|
+
args: args154,
|
|
79610
|
+
tool: async (client, args155, ctx) => {
|
|
79611
|
+
const [result, apiCall] = await transfersGetCancellation(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78094
79612
|
if (!result.ok) {
|
|
78095
79613
|
return {
|
|
78096
79614
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78105,9 +79623,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
78105
79623
|
|
|
78106
79624
|
// src/funcs/transfersGetRefund.ts
|
|
78107
79625
|
function transfersGetRefund(client, request, options) {
|
|
78108
|
-
return new APIPromise($
|
|
79626
|
+
return new APIPromise($do155(client, request, options));
|
|
78109
79627
|
}
|
|
78110
|
-
async function $
|
|
79628
|
+
async function $do155(client, request, options) {
|
|
78111
79629
|
const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78112
79630
|
if (!parsed.ok) {
|
|
78113
79631
|
return [parsed, { status: "invalid" }];
|
|
@@ -78193,12 +79711,12 @@ var init_transfersGetRefund = __esm(() => {
|
|
|
78193
79711
|
});
|
|
78194
79712
|
|
|
78195
79713
|
// src/mcp-server/tools/transfersGetRefund.ts
|
|
78196
|
-
var
|
|
79714
|
+
var args155, tool$transfersGetRefund;
|
|
78197
79715
|
var init_transfersGetRefund2 = __esm(() => {
|
|
78198
79716
|
init_transfersGetRefund();
|
|
78199
79717
|
init_operations();
|
|
78200
79718
|
init_tools();
|
|
78201
|
-
|
|
79719
|
+
args155 = {
|
|
78202
79720
|
request: GetRefundRequest$inboundSchema
|
|
78203
79721
|
};
|
|
78204
79722
|
tool$transfersGetRefund = {
|
|
@@ -78207,9 +79725,9 @@ var init_transfersGetRefund2 = __esm(() => {
|
|
|
78207
79725
|
|
|
78208
79726
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78209
79727
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
78210
|
-
args:
|
|
78211
|
-
tool: async (client,
|
|
78212
|
-
const [result, apiCall] = await transfersGetRefund(client,
|
|
79728
|
+
args: args155,
|
|
79729
|
+
tool: async (client, args156, ctx) => {
|
|
79730
|
+
const [result, apiCall] = await transfersGetRefund(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78213
79731
|
if (!result.ok) {
|
|
78214
79732
|
return {
|
|
78215
79733
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78224,9 +79742,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
78224
79742
|
|
|
78225
79743
|
// src/funcs/transfersInitiateRefund.ts
|
|
78226
79744
|
function transfersInitiateRefund(client, request, options) {
|
|
78227
|
-
return new APIPromise($
|
|
79745
|
+
return new APIPromise($do156(client, request, options));
|
|
78228
79746
|
}
|
|
78229
|
-
async function $
|
|
79747
|
+
async function $do156(client, request, options) {
|
|
78230
79748
|
const parsed = safeParse(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78231
79749
|
if (!parsed.ok) {
|
|
78232
79750
|
return [parsed, { status: "invalid" }];
|
|
@@ -78318,12 +79836,12 @@ var init_transfersInitiateRefund = __esm(() => {
|
|
|
78318
79836
|
});
|
|
78319
79837
|
|
|
78320
79838
|
// src/mcp-server/tools/transfersInitiateRefund.ts
|
|
78321
|
-
var
|
|
79839
|
+
var args156, tool$transfersInitiateRefund;
|
|
78322
79840
|
var init_transfersInitiateRefund2 = __esm(() => {
|
|
78323
79841
|
init_transfersInitiateRefund();
|
|
78324
79842
|
init_operations();
|
|
78325
79843
|
init_tools();
|
|
78326
|
-
|
|
79844
|
+
args156 = {
|
|
78327
79845
|
request: InitiateRefundRequest$inboundSchema
|
|
78328
79846
|
};
|
|
78329
79847
|
tool$transfersInitiateRefund = {
|
|
@@ -78335,9 +79853,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
|
|
|
78335
79853
|
|
|
78336
79854
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78337
79855
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
78338
|
-
args:
|
|
78339
|
-
tool: async (client,
|
|
78340
|
-
const [result, apiCall] = await transfersInitiateRefund(client,
|
|
79856
|
+
args: args156,
|
|
79857
|
+
tool: async (client, args157, ctx) => {
|
|
79858
|
+
const [result, apiCall] = await transfersInitiateRefund(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78341
79859
|
if (!result.ok) {
|
|
78342
79860
|
return {
|
|
78343
79861
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78352,9 +79870,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
78352
79870
|
|
|
78353
79871
|
// src/funcs/transfersList.ts
|
|
78354
79872
|
function transfersList(client, request, options) {
|
|
78355
|
-
return new APIPromise($
|
|
79873
|
+
return new APIPromise($do157(client, request, options));
|
|
78356
79874
|
}
|
|
78357
|
-
async function $
|
|
79875
|
+
async function $do157(client, request, options) {
|
|
78358
79876
|
const parsed = safeParse(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78359
79877
|
if (!parsed.ok) {
|
|
78360
79878
|
return [parsed, { status: "invalid" }];
|
|
@@ -78450,12 +79968,12 @@ var init_transfersList = __esm(() => {
|
|
|
78450
79968
|
});
|
|
78451
79969
|
|
|
78452
79970
|
// src/mcp-server/tools/transfersList.ts
|
|
78453
|
-
var
|
|
79971
|
+
var args157, tool$transfersList;
|
|
78454
79972
|
var init_transfersList2 = __esm(() => {
|
|
78455
79973
|
init_transfersList();
|
|
78456
79974
|
init_operations();
|
|
78457
79975
|
init_tools();
|
|
78458
|
-
|
|
79976
|
+
args157 = {
|
|
78459
79977
|
request: ListTransfersRequest$inboundSchema
|
|
78460
79978
|
};
|
|
78461
79979
|
tool$transfersList = {
|
|
@@ -78471,9 +79989,9 @@ period of time. You can run multiple requests in smaller time window increments
|
|
|
78471
79989
|
|
|
78472
79990
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78473
79991
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
78474
|
-
args:
|
|
78475
|
-
tool: async (client,
|
|
78476
|
-
const [result, apiCall] = await transfersList(client,
|
|
79992
|
+
args: args157,
|
|
79993
|
+
tool: async (client, args158, ctx) => {
|
|
79994
|
+
const [result, apiCall] = await transfersList(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78477
79995
|
if (!result.ok) {
|
|
78478
79996
|
return {
|
|
78479
79997
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78488,9 +80006,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
78488
80006
|
|
|
78489
80007
|
// src/funcs/transfersListRefunds.ts
|
|
78490
80008
|
function transfersListRefunds(client, request, options) {
|
|
78491
|
-
return new APIPromise($
|
|
80009
|
+
return new APIPromise($do158(client, request, options));
|
|
78492
80010
|
}
|
|
78493
|
-
async function $
|
|
80011
|
+
async function $do158(client, request, options) {
|
|
78494
80012
|
const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78495
80013
|
if (!parsed.ok) {
|
|
78496
80014
|
return [parsed, { status: "invalid" }];
|
|
@@ -78572,12 +80090,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
78572
80090
|
});
|
|
78573
80091
|
|
|
78574
80092
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
78575
|
-
var
|
|
80093
|
+
var args158, tool$transfersListRefunds;
|
|
78576
80094
|
var init_transfersListRefunds2 = __esm(() => {
|
|
78577
80095
|
init_transfersListRefunds();
|
|
78578
80096
|
init_operations();
|
|
78579
80097
|
init_tools();
|
|
78580
|
-
|
|
80098
|
+
args158 = {
|
|
78581
80099
|
request: ListRefundsRequest$inboundSchema
|
|
78582
80100
|
};
|
|
78583
80101
|
tool$transfersListRefunds = {
|
|
@@ -78586,9 +80104,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
78586
80104
|
|
|
78587
80105
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78588
80106
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
78589
|
-
args:
|
|
78590
|
-
tool: async (client,
|
|
78591
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
80107
|
+
args: args158,
|
|
80108
|
+
tool: async (client, args159, ctx) => {
|
|
80109
|
+
const [result, apiCall] = await transfersListRefunds(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78592
80110
|
if (!result.ok) {
|
|
78593
80111
|
return {
|
|
78594
80112
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78603,9 +80121,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
78603
80121
|
|
|
78604
80122
|
// src/funcs/transfersUpdate.ts
|
|
78605
80123
|
function transfersUpdate(client, request, options) {
|
|
78606
|
-
return new APIPromise($
|
|
80124
|
+
return new APIPromise($do159(client, request, options));
|
|
78607
80125
|
}
|
|
78608
|
-
async function $
|
|
80126
|
+
async function $do159(client, request, options) {
|
|
78609
80127
|
const parsed = safeParse(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78610
80128
|
if (!parsed.ok) {
|
|
78611
80129
|
return [parsed, { status: "invalid" }];
|
|
@@ -78691,12 +80209,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
78691
80209
|
});
|
|
78692
80210
|
|
|
78693
80211
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
78694
|
-
var
|
|
80212
|
+
var args159, tool$transfersUpdate;
|
|
78695
80213
|
var init_transfersUpdate2 = __esm(() => {
|
|
78696
80214
|
init_transfersUpdate();
|
|
78697
80215
|
init_operations();
|
|
78698
80216
|
init_tools();
|
|
78699
|
-
|
|
80217
|
+
args159 = {
|
|
78700
80218
|
request: UpdateTransferRequest$inboundSchema
|
|
78701
80219
|
};
|
|
78702
80220
|
tool$transfersUpdate = {
|
|
@@ -78707,9 +80225,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
78707
80225
|
|
|
78708
80226
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78709
80227
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
78710
|
-
args:
|
|
78711
|
-
tool: async (client,
|
|
78712
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
80228
|
+
args: args159,
|
|
80229
|
+
tool: async (client, args160, ctx) => {
|
|
80230
|
+
const [result, apiCall] = await transfersUpdate(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78713
80231
|
if (!result.ok) {
|
|
78714
80232
|
return {
|
|
78715
80233
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78724,9 +80242,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
78724
80242
|
|
|
78725
80243
|
// src/funcs/underwritingGet.ts
|
|
78726
80244
|
function underwritingGet(client, request, options) {
|
|
78727
|
-
return new APIPromise($
|
|
80245
|
+
return new APIPromise($do160(client, request, options));
|
|
78728
80246
|
}
|
|
78729
|
-
async function $
|
|
80247
|
+
async function $do160(client, request, options) {
|
|
78730
80248
|
const parsed = safeParse(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78731
80249
|
if (!parsed.ok) {
|
|
78732
80250
|
return [parsed, { status: "invalid" }];
|
|
@@ -78804,12 +80322,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
78804
80322
|
});
|
|
78805
80323
|
|
|
78806
80324
|
// src/mcp-server/tools/underwritingGet.ts
|
|
78807
|
-
var
|
|
80325
|
+
var args160, tool$underwritingGet;
|
|
78808
80326
|
var init_underwritingGet2 = __esm(() => {
|
|
78809
80327
|
init_underwritingGet();
|
|
78810
80328
|
init_operations();
|
|
78811
80329
|
init_tools();
|
|
78812
|
-
|
|
80330
|
+
args160 = {
|
|
78813
80331
|
request: GetUnderwritingRequest$inboundSchema
|
|
78814
80332
|
};
|
|
78815
80333
|
tool$underwritingGet = {
|
|
@@ -78820,9 +80338,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
78820
80338
|
|
|
78821
80339
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78822
80340
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
78823
|
-
args:
|
|
78824
|
-
tool: async (client,
|
|
78825
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
80341
|
+
args: args160,
|
|
80342
|
+
tool: async (client, args161, ctx) => {
|
|
80343
|
+
const [result, apiCall] = await underwritingGet(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78826
80344
|
if (!result.ok) {
|
|
78827
80345
|
return {
|
|
78828
80346
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78837,9 +80355,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
78837
80355
|
|
|
78838
80356
|
// src/funcs/underwritingSave.ts
|
|
78839
80357
|
function underwritingSave(client, request, options) {
|
|
78840
|
-
return new APIPromise($
|
|
80358
|
+
return new APIPromise($do161(client, request, options));
|
|
78841
80359
|
}
|
|
78842
|
-
async function $
|
|
80360
|
+
async function $do161(client, request, options) {
|
|
78843
80361
|
const parsed = safeParse(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78844
80362
|
if (!parsed.ok) {
|
|
78845
80363
|
return [parsed, { status: "invalid" }];
|
|
@@ -78935,12 +80453,12 @@ var init_underwritingSave = __esm(() => {
|
|
|
78935
80453
|
});
|
|
78936
80454
|
|
|
78937
80455
|
// src/mcp-server/tools/underwritingSave.ts
|
|
78938
|
-
var
|
|
80456
|
+
var args161, tool$underwritingSave;
|
|
78939
80457
|
var init_underwritingSave2 = __esm(() => {
|
|
78940
80458
|
init_underwritingSave();
|
|
78941
80459
|
init_operations();
|
|
78942
80460
|
init_tools();
|
|
78943
|
-
|
|
80461
|
+
args161 = {
|
|
78944
80462
|
request: SaveUnderwritingRequest$inboundSchema
|
|
78945
80463
|
};
|
|
78946
80464
|
tool$underwritingSave = {
|
|
@@ -78951,9 +80469,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
78951
80469
|
|
|
78952
80470
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78953
80471
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
78954
|
-
args:
|
|
78955
|
-
tool: async (client,
|
|
78956
|
-
const [result, apiCall] = await underwritingSave(client,
|
|
80472
|
+
args: args161,
|
|
80473
|
+
tool: async (client, args162, ctx) => {
|
|
80474
|
+
const [result, apiCall] = await underwritingSave(client, args162.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78957
80475
|
if (!result.ok) {
|
|
78958
80476
|
return {
|
|
78959
80477
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78968,9 +80486,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
78968
80486
|
|
|
78969
80487
|
// src/funcs/underwritingUpsert.ts
|
|
78970
80488
|
function underwritingUpsert(client, request, options) {
|
|
78971
|
-
return new APIPromise($
|
|
80489
|
+
return new APIPromise($do162(client, request, options));
|
|
78972
80490
|
}
|
|
78973
|
-
async function $
|
|
80491
|
+
async function $do162(client, request, options) {
|
|
78974
80492
|
const parsed = safeParse(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78975
80493
|
if (!parsed.ok) {
|
|
78976
80494
|
return [parsed, { status: "invalid" }];
|
|
@@ -79066,12 +80584,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
79066
80584
|
});
|
|
79067
80585
|
|
|
79068
80586
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
79069
|
-
var
|
|
80587
|
+
var args162, tool$underwritingUpsert;
|
|
79070
80588
|
var init_underwritingUpsert2 = __esm(() => {
|
|
79071
80589
|
init_underwritingUpsert();
|
|
79072
80590
|
init_operations();
|
|
79073
80591
|
init_tools();
|
|
79074
|
-
|
|
80592
|
+
args162 = {
|
|
79075
80593
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
79076
80594
|
};
|
|
79077
80595
|
tool$underwritingUpsert = {
|
|
@@ -79082,9 +80600,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
79082
80600
|
|
|
79083
80601
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79084
80602
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
79085
|
-
args:
|
|
79086
|
-
tool: async (client,
|
|
79087
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
80603
|
+
args: args162,
|
|
80604
|
+
tool: async (client, args163, ctx) => {
|
|
80605
|
+
const [result, apiCall] = await underwritingUpsert(client, args163.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79088
80606
|
if (!result.ok) {
|
|
79089
80607
|
return {
|
|
79090
80608
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79099,9 +80617,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
79099
80617
|
|
|
79100
80618
|
// src/funcs/walletsCreate.ts
|
|
79101
80619
|
function walletsCreate(client, request, options) {
|
|
79102
|
-
return new APIPromise($
|
|
80620
|
+
return new APIPromise($do163(client, request, options));
|
|
79103
80621
|
}
|
|
79104
|
-
async function $
|
|
80622
|
+
async function $do163(client, request, options) {
|
|
79105
80623
|
const parsed = safeParse(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79106
80624
|
if (!parsed.ok) {
|
|
79107
80625
|
return [parsed, { status: "invalid" }];
|
|
@@ -79195,12 +80713,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
79195
80713
|
});
|
|
79196
80714
|
|
|
79197
80715
|
// src/mcp-server/tools/walletsCreate.ts
|
|
79198
|
-
var
|
|
80716
|
+
var args163, tool$walletsCreate;
|
|
79199
80717
|
var init_walletsCreate2 = __esm(() => {
|
|
79200
80718
|
init_walletsCreate();
|
|
79201
80719
|
init_operations();
|
|
79202
80720
|
init_tools();
|
|
79203
|
-
|
|
80721
|
+
args163 = {
|
|
79204
80722
|
request: CreateWalletRequest$inboundSchema
|
|
79205
80723
|
};
|
|
79206
80724
|
tool$walletsCreate = {
|
|
@@ -79211,9 +80729,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
79211
80729
|
|
|
79212
80730
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79213
80731
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
79214
|
-
args:
|
|
79215
|
-
tool: async (client,
|
|
79216
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
80732
|
+
args: args163,
|
|
80733
|
+
tool: async (client, args164, ctx) => {
|
|
80734
|
+
const [result, apiCall] = await walletsCreate(client, args164.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79217
80735
|
if (!result.ok) {
|
|
79218
80736
|
return {
|
|
79219
80737
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79228,9 +80746,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
79228
80746
|
|
|
79229
80747
|
// src/funcs/walletsGet.ts
|
|
79230
80748
|
function walletsGet(client, request, options) {
|
|
79231
|
-
return new APIPromise($
|
|
80749
|
+
return new APIPromise($do164(client, request, options));
|
|
79232
80750
|
}
|
|
79233
|
-
async function $
|
|
80751
|
+
async function $do164(client, request, options) {
|
|
79234
80752
|
const parsed = safeParse(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79235
80753
|
if (!parsed.ok) {
|
|
79236
80754
|
return [parsed, { status: "invalid" }];
|
|
@@ -79312,12 +80830,12 @@ var init_walletsGet = __esm(() => {
|
|
|
79312
80830
|
});
|
|
79313
80831
|
|
|
79314
80832
|
// src/mcp-server/tools/walletsGet.ts
|
|
79315
|
-
var
|
|
80833
|
+
var args164, tool$walletsGet;
|
|
79316
80834
|
var init_walletsGet2 = __esm(() => {
|
|
79317
80835
|
init_walletsGet();
|
|
79318
80836
|
init_operations();
|
|
79319
80837
|
init_tools();
|
|
79320
|
-
|
|
80838
|
+
args164 = {
|
|
79321
80839
|
request: GetWalletRequest$inboundSchema
|
|
79322
80840
|
};
|
|
79323
80841
|
tool$walletsGet = {
|
|
@@ -79328,9 +80846,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
79328
80846
|
|
|
79329
80847
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79330
80848
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
79331
|
-
args:
|
|
79332
|
-
tool: async (client,
|
|
79333
|
-
const [result, apiCall] = await walletsGet(client,
|
|
80849
|
+
args: args164,
|
|
80850
|
+
tool: async (client, args165, ctx) => {
|
|
80851
|
+
const [result, apiCall] = await walletsGet(client, args165.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79334
80852
|
if (!result.ok) {
|
|
79335
80853
|
return {
|
|
79336
80854
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79345,9 +80863,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
79345
80863
|
|
|
79346
80864
|
// src/funcs/walletsList.ts
|
|
79347
80865
|
function walletsList(client, request, options) {
|
|
79348
|
-
return new APIPromise($
|
|
80866
|
+
return new APIPromise($do165(client, request, options));
|
|
79349
80867
|
}
|
|
79350
|
-
async function $
|
|
80868
|
+
async function $do165(client, request, options) {
|
|
79351
80869
|
const parsed = safeParse(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79352
80870
|
if (!parsed.ok) {
|
|
79353
80871
|
return [parsed, { status: "invalid" }];
|
|
@@ -79435,12 +80953,12 @@ var init_walletsList = __esm(() => {
|
|
|
79435
80953
|
});
|
|
79436
80954
|
|
|
79437
80955
|
// src/mcp-server/tools/walletsList.ts
|
|
79438
|
-
var
|
|
80956
|
+
var args165, tool$walletsList;
|
|
79439
80957
|
var init_walletsList2 = __esm(() => {
|
|
79440
80958
|
init_walletsList();
|
|
79441
80959
|
init_operations();
|
|
79442
80960
|
init_tools();
|
|
79443
|
-
|
|
80961
|
+
args165 = {
|
|
79444
80962
|
request: ListWalletsRequest$inboundSchema
|
|
79445
80963
|
};
|
|
79446
80964
|
tool$walletsList = {
|
|
@@ -79451,9 +80969,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
79451
80969
|
|
|
79452
80970
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79453
80971
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
79454
|
-
args:
|
|
79455
|
-
tool: async (client,
|
|
79456
|
-
const [result, apiCall] = await walletsList(client,
|
|
80972
|
+
args: args165,
|
|
80973
|
+
tool: async (client, args166, ctx) => {
|
|
80974
|
+
const [result, apiCall] = await walletsList(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79457
80975
|
if (!result.ok) {
|
|
79458
80976
|
return {
|
|
79459
80977
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79468,9 +80986,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
79468
80986
|
|
|
79469
80987
|
// src/funcs/walletsUpdate.ts
|
|
79470
80988
|
function walletsUpdate(client, request, options) {
|
|
79471
|
-
return new APIPromise($
|
|
80989
|
+
return new APIPromise($do166(client, request, options));
|
|
79472
80990
|
}
|
|
79473
|
-
async function $
|
|
80991
|
+
async function $do166(client, request, options) {
|
|
79474
80992
|
const parsed = safeParse(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79475
80993
|
if (!parsed.ok) {
|
|
79476
80994
|
return [parsed, { status: "invalid" }];
|
|
@@ -79568,12 +81086,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
79568
81086
|
});
|
|
79569
81087
|
|
|
79570
81088
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
79571
|
-
var
|
|
81089
|
+
var args166, tool$walletsUpdate;
|
|
79572
81090
|
var init_walletsUpdate2 = __esm(() => {
|
|
79573
81091
|
init_walletsUpdate();
|
|
79574
81092
|
init_operations();
|
|
79575
81093
|
init_tools();
|
|
79576
|
-
|
|
81094
|
+
args166 = {
|
|
79577
81095
|
request: UpdateWalletRequest$inboundSchema
|
|
79578
81096
|
};
|
|
79579
81097
|
tool$walletsUpdate = {
|
|
@@ -79584,9 +81102,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
79584
81102
|
|
|
79585
81103
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79586
81104
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
79587
|
-
args:
|
|
79588
|
-
tool: async (client,
|
|
79589
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
81105
|
+
args: args166,
|
|
81106
|
+
tool: async (client, args167, ctx) => {
|
|
81107
|
+
const [result, apiCall] = await walletsUpdate(client, args167.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79590
81108
|
if (!result.ok) {
|
|
79591
81109
|
return {
|
|
79592
81110
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79601,9 +81119,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
79601
81119
|
|
|
79602
81120
|
// src/funcs/walletTransactionsGet.ts
|
|
79603
81121
|
function walletTransactionsGet(client, request, options) {
|
|
79604
|
-
return new APIPromise($
|
|
81122
|
+
return new APIPromise($do167(client, request, options));
|
|
79605
81123
|
}
|
|
79606
|
-
async function $
|
|
81124
|
+
async function $do167(client, request, options) {
|
|
79607
81125
|
const parsed = safeParse(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79608
81126
|
if (!parsed.ok) {
|
|
79609
81127
|
return [parsed, { status: "invalid" }];
|
|
@@ -79689,12 +81207,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
79689
81207
|
});
|
|
79690
81208
|
|
|
79691
81209
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
79692
|
-
var
|
|
81210
|
+
var args167, tool$walletTransactionsGet;
|
|
79693
81211
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
79694
81212
|
init_walletTransactionsGet();
|
|
79695
81213
|
init_operations();
|
|
79696
81214
|
init_tools();
|
|
79697
|
-
|
|
81215
|
+
args167 = {
|
|
79698
81216
|
request: GetWalletTransactionRequest$inboundSchema
|
|
79699
81217
|
};
|
|
79700
81218
|
tool$walletTransactionsGet = {
|
|
@@ -79705,9 +81223,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
79705
81223
|
|
|
79706
81224
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79707
81225
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
79708
|
-
args:
|
|
79709
|
-
tool: async (client,
|
|
79710
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
81226
|
+
args: args167,
|
|
81227
|
+
tool: async (client, args168, ctx) => {
|
|
81228
|
+
const [result, apiCall] = await walletTransactionsGet(client, args168.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79711
81229
|
if (!result.ok) {
|
|
79712
81230
|
return {
|
|
79713
81231
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79722,9 +81240,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
79722
81240
|
|
|
79723
81241
|
// src/funcs/walletTransactionsList.ts
|
|
79724
81242
|
function walletTransactionsList(client, request, options) {
|
|
79725
|
-
return new APIPromise($
|
|
81243
|
+
return new APIPromise($do168(client, request, options));
|
|
79726
81244
|
}
|
|
79727
|
-
async function $
|
|
81245
|
+
async function $do168(client, request, options) {
|
|
79728
81246
|
const parsed = safeParse(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79729
81247
|
if (!parsed.ok) {
|
|
79730
81248
|
return [parsed, { status: "invalid" }];
|
|
@@ -79824,12 +81342,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
79824
81342
|
});
|
|
79825
81343
|
|
|
79826
81344
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
79827
|
-
var
|
|
81345
|
+
var args168, tool$walletTransactionsList;
|
|
79828
81346
|
var init_walletTransactionsList2 = __esm(() => {
|
|
79829
81347
|
init_walletTransactionsList();
|
|
79830
81348
|
init_operations();
|
|
79831
81349
|
init_tools();
|
|
79832
|
-
|
|
81350
|
+
args168 = {
|
|
79833
81351
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
79834
81352
|
};
|
|
79835
81353
|
tool$walletTransactionsList = {
|
|
@@ -79840,9 +81358,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
79840
81358
|
|
|
79841
81359
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79842
81360
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
79843
|
-
args:
|
|
79844
|
-
tool: async (client,
|
|
79845
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
81361
|
+
args: args168,
|
|
81362
|
+
tool: async (client, args169, ctx) => {
|
|
81363
|
+
const [result, apiCall] = await walletTransactionsList(client, args169.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79846
81364
|
if (!result.ok) {
|
|
79847
81365
|
return {
|
|
79848
81366
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79859,7 +81377,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
79859
81377
|
function createMCPServer(deps) {
|
|
79860
81378
|
const server = new McpServer({
|
|
79861
81379
|
name: "Moov",
|
|
79862
|
-
version: "0.21.
|
|
81380
|
+
version: "0.21.15"
|
|
79863
81381
|
});
|
|
79864
81382
|
const client = new MoovCore({
|
|
79865
81383
|
security: deps.security,
|
|
@@ -79944,6 +81462,11 @@ function createMCPServer(deps) {
|
|
|
79944
81462
|
tool(tool$imagesDelete);
|
|
79945
81463
|
tool(tool$imagesUpdateMetadata);
|
|
79946
81464
|
tool(tool$imagesGetPublic);
|
|
81465
|
+
tool(tool$invoicesCreateInvoice);
|
|
81466
|
+
tool(tool$invoicesListInvoices);
|
|
81467
|
+
tool(tool$invoicesGetInvoice);
|
|
81468
|
+
tool(tool$invoicesUpdateInvoice);
|
|
81469
|
+
tool(tool$invoicesMarkPaidInvoice);
|
|
79947
81470
|
tool(tool$paymentLinksCreate);
|
|
79948
81471
|
tool(tool$paymentLinksList);
|
|
79949
81472
|
tool(tool$paymentLinksGet);
|
|
@@ -80133,6 +81656,11 @@ var init_server2 = __esm(() => {
|
|
|
80133
81656
|
init_industriesList2();
|
|
80134
81657
|
init_institutionsSearch2();
|
|
80135
81658
|
init_institutionsSearchInstitutions2();
|
|
81659
|
+
init_invoicesCreateInvoice2();
|
|
81660
|
+
init_invoicesGetInvoice2();
|
|
81661
|
+
init_invoicesListInvoices2();
|
|
81662
|
+
init_invoicesMarkPaidInvoice2();
|
|
81663
|
+
init_invoicesUpdateInvoice2();
|
|
80136
81664
|
init_issuingTransactionsGet2();
|
|
80137
81665
|
init_issuingTransactionsGetAuthorization2();
|
|
80138
81666
|
init_issuingTransactionsList2();
|
|
@@ -81409,7 +82937,7 @@ var routes = rn({
|
|
|
81409
82937
|
var app = Ve(routes, {
|
|
81410
82938
|
name: "mcp",
|
|
81411
82939
|
versionInfo: {
|
|
81412
|
-
currentVersion: "0.21.
|
|
82940
|
+
currentVersion: "0.21.15"
|
|
81413
82941
|
}
|
|
81414
82942
|
});
|
|
81415
82943
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -81417,5 +82945,5 @@ export {
|
|
|
81417
82945
|
app
|
|
81418
82946
|
};
|
|
81419
82947
|
|
|
81420
|
-
//# debugId=
|
|
82948
|
+
//# debugId=88F89244FDD160AE64756E2164756E21
|
|
81421
82949
|
//# sourceMappingURL=mcp-server.js.map
|