@moovio/sdk 0.16.4 → 0.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -44
- package/bin/mcp-server.js +1864 -585
- package/bin/mcp-server.js.map +37 -9
- package/docs/sdks/products/README.md +592 -0
- package/examples/package-lock.json +1 -1
- package/funcs/productsCreate.d.ts +15 -0
- package/funcs/productsCreate.d.ts.map +1 -0
- package/funcs/productsCreate.js +138 -0
- package/funcs/productsCreate.js.map +1 -0
- package/funcs/productsDisable.d.ts +17 -0
- package/funcs/productsDisable.d.ts.map +1 -0
- package/funcs/productsDisable.js +139 -0
- package/funcs/productsDisable.js.map +1 -0
- package/funcs/productsGet.d.ts +14 -0
- package/funcs/productsGet.d.ts.map +1 -0
- package/funcs/productsGet.js +126 -0
- package/funcs/productsGet.js.map +1 -0
- package/funcs/productsList.d.ts +14 -0
- package/funcs/productsList.d.ts.map +1 -0
- package/funcs/productsList.js +127 -0
- package/funcs/productsList.js.map +1 -0
- package/funcs/productsUpdate.d.ts +15 -0
- package/funcs/productsUpdate.d.ts.map +1 -0
- package/funcs/productsUpdate.js +142 -0
- package/funcs/productsUpdate.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/productsCreate.d.ts +8 -0
- package/mcp-server/tools/productsCreate.d.ts.map +1 -0
- package/mcp-server/tools/productsCreate.js +62 -0
- package/mcp-server/tools/productsCreate.js.map +1 -0
- package/mcp-server/tools/productsDisable.d.ts +8 -0
- package/mcp-server/tools/productsDisable.d.ts.map +1 -0
- package/mcp-server/tools/productsDisable.js +63 -0
- package/mcp-server/tools/productsDisable.js.map +1 -0
- package/mcp-server/tools/productsGet.d.ts +8 -0
- package/mcp-server/tools/productsGet.d.ts.map +1 -0
- package/mcp-server/tools/productsGet.js +62 -0
- package/mcp-server/tools/productsGet.js.map +1 -0
- package/mcp-server/tools/productsList.d.ts +8 -0
- package/mcp-server/tools/productsList.d.ts.map +1 -0
- package/mcp-server/tools/productsList.js +62 -0
- package/mcp-server/tools/productsList.js.map +1 -0
- package/mcp-server/tools/productsUpdate.d.ts +8 -0
- package/mcp-server/tools/productsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/productsUpdate.js +62 -0
- package/mcp-server/tools/productsUpdate.js.map +1 -0
- package/models/components/amountdecimalvalidationerror.d.ts +31 -0
- package/models/components/amountdecimalvalidationerror.d.ts.map +1 -0
- package/models/components/amountdecimalvalidationerror.js +71 -0
- package/models/components/amountdecimalvalidationerror.js.map +1 -0
- package/models/components/assignproductimage.d.ts +32 -0
- package/models/components/assignproductimage.d.ts.map +1 -0
- package/models/components/assignproductimage.js +69 -0
- package/models/components/assignproductimage.js.map +1 -0
- package/models/components/assignproductimagevalidationerror.d.ts +29 -0
- package/models/components/assignproductimagevalidationerror.d.ts.map +1 -0
- package/models/components/assignproductimagevalidationerror.js +69 -0
- package/models/components/assignproductimagevalidationerror.js.map +1 -0
- package/models/components/createproductoption.d.ts +54 -0
- package/models/components/createproductoption.d.ts.map +1 -0
- package/models/components/createproductoption.js +76 -0
- package/models/components/createproductoption.js.map +1 -0
- package/models/components/createproductoptiongroup.d.ts +60 -0
- package/models/components/createproductoptiongroup.d.ts.map +1 -0
- package/models/components/createproductoptiongroup.js +78 -0
- package/models/components/createproductoptiongroup.js.map +1 -0
- package/models/components/index.d.ts +12 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +12 -0
- package/models/components/index.js.map +1 -1
- package/models/components/product.d.ts +81 -0
- package/models/components/product.d.ts.map +1 -0
- package/models/components/product.js +88 -0
- package/models/components/product.js.map +1 -0
- package/models/components/productimagemetadata.d.ts +42 -0
- package/models/components/productimagemetadata.d.ts.map +1 -0
- package/models/components/productimagemetadata.js +73 -0
- package/models/components/productimagemetadata.js.map +1 -0
- package/models/components/productoption.d.ts +57 -0
- package/models/components/productoption.d.ts.map +1 -0
- package/models/components/productoption.js +76 -0
- package/models/components/productoption.js.map +1 -0
- package/models/components/productoptiongroup.d.ts +63 -0
- package/models/components/productoptiongroup.d.ts.map +1 -0
- package/models/components/productoptiongroup.js +78 -0
- package/models/components/productoptiongroup.js.map +1 -0
- package/models/components/productoptiongroupvalidationerror.d.ts +42 -0
- package/models/components/productoptiongroupvalidationerror.d.ts.map +1 -0
- package/models/components/productoptiongroupvalidationerror.js +78 -0
- package/models/components/productoptiongroupvalidationerror.js.map +1 -0
- package/models/components/productoptionvalidationerror.d.ts +40 -0
- package/models/components/productoptionvalidationerror.d.ts.map +1 -0
- package/models/components/productoptionvalidationerror.js +76 -0
- package/models/components/productoptionvalidationerror.js.map +1 -0
- package/models/components/productrequest.d.ts +61 -0
- package/models/components/productrequest.d.ts.map +1 -0
- package/models/components/productrequest.js +80 -0
- package/models/components/productrequest.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/productrequestvalidationerror.d.ts +61 -0
- package/models/errors/productrequestvalidationerror.d.ts.map +1 -0
- package/models/errors/productrequestvalidationerror.js +105 -0
- package/models/errors/productrequestvalidationerror.js.map +1 -0
- package/models/operations/createproduct.d.ts +101 -0
- package/models/operations/createproduct.d.ts.map +1 -0
- package/models/operations/createproduct.js +155 -0
- package/models/operations/createproduct.js.map +1 -0
- package/models/operations/disableproduct.d.ts +98 -0
- package/models/operations/disableproduct.d.ts.map +1 -0
- package/models/operations/disableproduct.js +142 -0
- package/models/operations/disableproduct.js.map +1 -0
- package/models/operations/getproduct.d.ts +101 -0
- package/models/operations/getproduct.d.ts.map +1 -0
- package/models/operations/getproduct.js +147 -0
- package/models/operations/getproduct.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/listproducts.d.ts +103 -0
- package/models/operations/listproducts.d.ts.map +1 -0
- package/models/operations/listproducts.js +149 -0
- package/models/operations/listproducts.js.map +1 -0
- package/models/operations/updateproduct.d.ts +103 -0
- package/models/operations/updateproduct.d.ts.map +1 -0
- package/models/operations/updateproduct.js +157 -0
- package/models/operations/updateproduct.js.map +1 -0
- package/package.json +1 -1
- package/sdk/products.d.ts +27 -0
- package/sdk/products.d.ts.map +1 -0
- package/sdk/products.js +49 -0
- package/sdk/products.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/productsCreate.ts +200 -0
- package/src/funcs/productsDisable.ts +199 -0
- package/src/funcs/productsGet.ts +182 -0
- package/src/funcs/productsList.ts +182 -0
- package/src/funcs/productsUpdate.ts +206 -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/productsCreate.ts +35 -0
- package/src/mcp-server/tools/productsDisable.ts +35 -0
- package/src/mcp-server/tools/productsGet.ts +35 -0
- package/src/mcp-server/tools/productsList.ts +35 -0
- package/src/mcp-server/tools/productsUpdate.ts +35 -0
- package/src/models/components/amountdecimalvalidationerror.ts +72 -0
- package/src/models/components/assignproductimage.ts +69 -0
- package/src/models/components/assignproductimagevalidationerror.ts +69 -0
- package/src/models/components/createproductoption.ts +102 -0
- package/src/models/components/createproductoptiongroup.ts +110 -0
- package/src/models/components/index.ts +12 -0
- package/src/models/components/product.ts +148 -0
- package/src/models/components/productimagemetadata.ts +83 -0
- package/src/models/components/productoption.ts +101 -0
- package/src/models/components/productoptiongroup.ts +113 -0
- package/src/models/components/productoptiongroupvalidationerror.ts +91 -0
- package/src/models/components/productoptionvalidationerror.ts +88 -0
- package/src/models/components/productrequest.ts +117 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/productrequestvalidationerror.ts +124 -0
- package/src/models/operations/createproduct.ts +231 -0
- package/src/models/operations/disableproduct.ts +216 -0
- package/src/models/operations/getproduct.ts +223 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listproducts.ts +227 -0
- package/src/models/operations/updateproduct.ts +235 -0
- package/src/sdk/products.ts +86 -0
- package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34175,9 +34175,9 @@ var init_config = __esm(() => {
|
|
|
34175
34175
|
SDK_METADATA = {
|
|
34176
34176
|
language: "typescript",
|
|
34177
34177
|
openapiDocVersion: "latest",
|
|
34178
|
-
sdkVersion: "0.16.
|
|
34178
|
+
sdkVersion: "0.16.5",
|
|
34179
34179
|
genVersion: "2.723.11",
|
|
34180
|
-
userAgent: "speakeasy-sdk/typescript 0.16.
|
|
34180
|
+
userAgent: "speakeasy-sdk/typescript 0.16.5 2.723.11 latest @moovio/sdk"
|
|
34181
34181
|
};
|
|
34182
34182
|
});
|
|
34183
34183
|
|
|
@@ -37293,6 +37293,24 @@ var init_amount = __esm(() => {
|
|
|
37293
37293
|
})(Amount$ ||= {});
|
|
37294
37294
|
});
|
|
37295
37295
|
|
|
37296
|
+
// src/models/components/amountdecimalvalidationerror.ts
|
|
37297
|
+
var AmountDecimalValidationError$inboundSchema, AmountDecimalValidationError$outboundSchema, AmountDecimalValidationError$;
|
|
37298
|
+
var init_amountdecimalvalidationerror = __esm(() => {
|
|
37299
|
+
init_esm();
|
|
37300
|
+
AmountDecimalValidationError$inboundSchema = objectType({
|
|
37301
|
+
currency: stringType().optional(),
|
|
37302
|
+
valueDecimal: stringType().optional()
|
|
37303
|
+
});
|
|
37304
|
+
AmountDecimalValidationError$outboundSchema = objectType({
|
|
37305
|
+
currency: stringType().optional(),
|
|
37306
|
+
valueDecimal: stringType().optional()
|
|
37307
|
+
});
|
|
37308
|
+
((AmountDecimalValidationError$) => {
|
|
37309
|
+
AmountDecimalValidationError$.inboundSchema = AmountDecimalValidationError$inboundSchema;
|
|
37310
|
+
AmountDecimalValidationError$.outboundSchema = AmountDecimalValidationError$outboundSchema;
|
|
37311
|
+
})(AmountDecimalValidationError$ ||= {});
|
|
37312
|
+
});
|
|
37313
|
+
|
|
37296
37314
|
// src/models/components/amountupdate.ts
|
|
37297
37315
|
var AmountUpdate$inboundSchema, AmountUpdate$outboundSchema, AmountUpdate$;
|
|
37298
37316
|
var init_amountupdate = __esm(() => {
|
|
@@ -37559,6 +37577,38 @@ var init_applicationscope = __esm(() => {
|
|
|
37559
37577
|
})(ApplicationScope$ ||= {});
|
|
37560
37578
|
});
|
|
37561
37579
|
|
|
37580
|
+
// src/models/components/assignproductimage.ts
|
|
37581
|
+
var AssignProductImage$inboundSchema, AssignProductImage$outboundSchema, AssignProductImage$;
|
|
37582
|
+
var init_assignproductimage = __esm(() => {
|
|
37583
|
+
init_esm();
|
|
37584
|
+
AssignProductImage$inboundSchema = objectType({
|
|
37585
|
+
imageID: stringType()
|
|
37586
|
+
});
|
|
37587
|
+
AssignProductImage$outboundSchema = objectType({
|
|
37588
|
+
imageID: stringType()
|
|
37589
|
+
});
|
|
37590
|
+
((AssignProductImage$) => {
|
|
37591
|
+
AssignProductImage$.inboundSchema = AssignProductImage$inboundSchema;
|
|
37592
|
+
AssignProductImage$.outboundSchema = AssignProductImage$outboundSchema;
|
|
37593
|
+
})(AssignProductImage$ ||= {});
|
|
37594
|
+
});
|
|
37595
|
+
|
|
37596
|
+
// src/models/components/assignproductimagevalidationerror.ts
|
|
37597
|
+
var AssignProductImageValidationError$inboundSchema, AssignProductImageValidationError$outboundSchema, AssignProductImageValidationError$;
|
|
37598
|
+
var init_assignproductimagevalidationerror = __esm(() => {
|
|
37599
|
+
init_esm();
|
|
37600
|
+
AssignProductImageValidationError$inboundSchema = objectType({
|
|
37601
|
+
imageID: stringType().optional()
|
|
37602
|
+
});
|
|
37603
|
+
AssignProductImageValidationError$outboundSchema = objectType({
|
|
37604
|
+
imageID: stringType().optional()
|
|
37605
|
+
});
|
|
37606
|
+
((AssignProductImageValidationError$) => {
|
|
37607
|
+
AssignProductImageValidationError$.inboundSchema = AssignProductImageValidationError$inboundSchema;
|
|
37608
|
+
AssignProductImageValidationError$.outboundSchema = AssignProductImageValidationError$outboundSchema;
|
|
37609
|
+
})(AssignProductImageValidationError$ ||= {});
|
|
37610
|
+
});
|
|
37611
|
+
|
|
37562
37612
|
// src/models/components/asynccreatedrefund.ts
|
|
37563
37613
|
var AsyncCreatedRefund$inboundSchema, AsyncCreatedRefund$outboundSchema, AsyncCreatedRefund$;
|
|
37564
37614
|
var init_asynccreatedrefund = __esm(() => {
|
|
@@ -43500,6 +43550,54 @@ var init_createpaymentlink = __esm(() => {
|
|
|
43500
43550
|
})(CreatePaymentLink$ ||= {});
|
|
43501
43551
|
});
|
|
43502
43552
|
|
|
43553
|
+
// src/models/components/createproductoption.ts
|
|
43554
|
+
var CreateProductOption$inboundSchema, CreateProductOption$outboundSchema, CreateProductOption$;
|
|
43555
|
+
var init_createproductoption = __esm(() => {
|
|
43556
|
+
init_esm();
|
|
43557
|
+
init_assignproductimage();
|
|
43558
|
+
CreateProductOption$inboundSchema = objectType({
|
|
43559
|
+
name: stringType(),
|
|
43560
|
+
description: stringType().optional(),
|
|
43561
|
+
priceModifier: stringType().optional(),
|
|
43562
|
+
images: arrayType(AssignProductImage$inboundSchema).optional()
|
|
43563
|
+
});
|
|
43564
|
+
CreateProductOption$outboundSchema = objectType({
|
|
43565
|
+
name: stringType(),
|
|
43566
|
+
description: stringType().optional(),
|
|
43567
|
+
priceModifier: stringType().optional(),
|
|
43568
|
+
images: arrayType(AssignProductImage$outboundSchema).optional()
|
|
43569
|
+
});
|
|
43570
|
+
((CreateProductOption$) => {
|
|
43571
|
+
CreateProductOption$.inboundSchema = CreateProductOption$inboundSchema;
|
|
43572
|
+
CreateProductOption$.outboundSchema = CreateProductOption$outboundSchema;
|
|
43573
|
+
})(CreateProductOption$ ||= {});
|
|
43574
|
+
});
|
|
43575
|
+
|
|
43576
|
+
// src/models/components/createproductoptiongroup.ts
|
|
43577
|
+
var CreateProductOptionGroup$inboundSchema, CreateProductOptionGroup$outboundSchema, CreateProductOptionGroup$;
|
|
43578
|
+
var init_createproductoptiongroup = __esm(() => {
|
|
43579
|
+
init_esm();
|
|
43580
|
+
init_createproductoption();
|
|
43581
|
+
CreateProductOptionGroup$inboundSchema = objectType({
|
|
43582
|
+
name: stringType(),
|
|
43583
|
+
description: stringType().optional(),
|
|
43584
|
+
minSelect: numberType().int(),
|
|
43585
|
+
maxSelect: numberType().int(),
|
|
43586
|
+
options: arrayType(CreateProductOption$inboundSchema)
|
|
43587
|
+
});
|
|
43588
|
+
CreateProductOptionGroup$outboundSchema = objectType({
|
|
43589
|
+
name: stringType(),
|
|
43590
|
+
description: stringType().optional(),
|
|
43591
|
+
minSelect: numberType().int(),
|
|
43592
|
+
maxSelect: numberType().int(),
|
|
43593
|
+
options: arrayType(CreateProductOption$outboundSchema)
|
|
43594
|
+
});
|
|
43595
|
+
((CreateProductOptionGroup$) => {
|
|
43596
|
+
CreateProductOptionGroup$.inboundSchema = CreateProductOptionGroup$inboundSchema;
|
|
43597
|
+
CreateProductOptionGroup$.outboundSchema = CreateProductOptionGroup$outboundSchema;
|
|
43598
|
+
})(CreateProductOptionGroup$ ||= {});
|
|
43599
|
+
});
|
|
43600
|
+
|
|
43503
43601
|
// src/models/components/createprofileerror.ts
|
|
43504
43602
|
var CreateProfileError$inboundSchema, CreateProfileError$outboundSchema, CreateProfileError$;
|
|
43505
43603
|
var init_createprofileerror = __esm(() => {
|
|
@@ -47218,6 +47316,184 @@ var init_platformfees = __esm(() => {
|
|
|
47218
47316
|
})(PlatformFees$ ||= {});
|
|
47219
47317
|
});
|
|
47220
47318
|
|
|
47319
|
+
// src/models/components/productimagemetadata.ts
|
|
47320
|
+
var ProductImageMetadata$inboundSchema, ProductImageMetadata$outboundSchema, ProductImageMetadata$;
|
|
47321
|
+
var init_productimagemetadata = __esm(() => {
|
|
47322
|
+
init_esm();
|
|
47323
|
+
ProductImageMetadata$inboundSchema = objectType({
|
|
47324
|
+
imageID: stringType(),
|
|
47325
|
+
altText: stringType().optional(),
|
|
47326
|
+
link: stringType()
|
|
47327
|
+
});
|
|
47328
|
+
ProductImageMetadata$outboundSchema = objectType({
|
|
47329
|
+
imageID: stringType(),
|
|
47330
|
+
altText: stringType().optional(),
|
|
47331
|
+
link: stringType()
|
|
47332
|
+
});
|
|
47333
|
+
((ProductImageMetadata$) => {
|
|
47334
|
+
ProductImageMetadata$.inboundSchema = ProductImageMetadata$inboundSchema;
|
|
47335
|
+
ProductImageMetadata$.outboundSchema = ProductImageMetadata$outboundSchema;
|
|
47336
|
+
})(ProductImageMetadata$ ||= {});
|
|
47337
|
+
});
|
|
47338
|
+
|
|
47339
|
+
// src/models/components/productoption.ts
|
|
47340
|
+
var ProductOption$inboundSchema, ProductOption$outboundSchema, ProductOption$;
|
|
47341
|
+
var init_productoption = __esm(() => {
|
|
47342
|
+
init_esm();
|
|
47343
|
+
init_productimagemetadata();
|
|
47344
|
+
ProductOption$inboundSchema = objectType({
|
|
47345
|
+
name: stringType(),
|
|
47346
|
+
description: stringType().optional(),
|
|
47347
|
+
priceModifier: stringType().optional(),
|
|
47348
|
+
images: arrayType(ProductImageMetadata$inboundSchema).optional()
|
|
47349
|
+
});
|
|
47350
|
+
ProductOption$outboundSchema = objectType({
|
|
47351
|
+
name: stringType(),
|
|
47352
|
+
description: stringType().optional(),
|
|
47353
|
+
priceModifier: stringType().optional(),
|
|
47354
|
+
images: arrayType(ProductImageMetadata$outboundSchema).optional()
|
|
47355
|
+
});
|
|
47356
|
+
((ProductOption$) => {
|
|
47357
|
+
ProductOption$.inboundSchema = ProductOption$inboundSchema;
|
|
47358
|
+
ProductOption$.outboundSchema = ProductOption$outboundSchema;
|
|
47359
|
+
})(ProductOption$ ||= {});
|
|
47360
|
+
});
|
|
47361
|
+
|
|
47362
|
+
// src/models/components/productoptiongroup.ts
|
|
47363
|
+
var ProductOptionGroup$inboundSchema, ProductOptionGroup$outboundSchema, ProductOptionGroup$;
|
|
47364
|
+
var init_productoptiongroup = __esm(() => {
|
|
47365
|
+
init_esm();
|
|
47366
|
+
init_productoption();
|
|
47367
|
+
ProductOptionGroup$inboundSchema = objectType({
|
|
47368
|
+
name: stringType(),
|
|
47369
|
+
description: stringType().optional(),
|
|
47370
|
+
minSelect: numberType().int(),
|
|
47371
|
+
maxSelect: numberType().int(),
|
|
47372
|
+
options: arrayType(ProductOption$inboundSchema)
|
|
47373
|
+
});
|
|
47374
|
+
ProductOptionGroup$outboundSchema = objectType({
|
|
47375
|
+
name: stringType(),
|
|
47376
|
+
description: stringType().optional(),
|
|
47377
|
+
minSelect: numberType().int(),
|
|
47378
|
+
maxSelect: numberType().int(),
|
|
47379
|
+
options: arrayType(ProductOption$outboundSchema)
|
|
47380
|
+
});
|
|
47381
|
+
((ProductOptionGroup$) => {
|
|
47382
|
+
ProductOptionGroup$.inboundSchema = ProductOptionGroup$inboundSchema;
|
|
47383
|
+
ProductOptionGroup$.outboundSchema = ProductOptionGroup$outboundSchema;
|
|
47384
|
+
})(ProductOptionGroup$ ||= {});
|
|
47385
|
+
});
|
|
47386
|
+
|
|
47387
|
+
// src/models/components/product.ts
|
|
47388
|
+
var Product$inboundSchema, Product$outboundSchema, Product$;
|
|
47389
|
+
var init_product = __esm(() => {
|
|
47390
|
+
init_esm();
|
|
47391
|
+
init_amountdecimal();
|
|
47392
|
+
init_productimagemetadata();
|
|
47393
|
+
init_productoptiongroup();
|
|
47394
|
+
Product$inboundSchema = objectType({
|
|
47395
|
+
productID: stringType(),
|
|
47396
|
+
title: stringType(),
|
|
47397
|
+
description: stringType().optional(),
|
|
47398
|
+
basePrice: AmountDecimal$inboundSchema,
|
|
47399
|
+
optionGroups: arrayType(ProductOptionGroup$inboundSchema).optional(),
|
|
47400
|
+
images: arrayType(ProductImageMetadata$inboundSchema).optional(),
|
|
47401
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
47402
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
47403
|
+
disabledOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
|
|
47404
|
+
});
|
|
47405
|
+
Product$outboundSchema = objectType({
|
|
47406
|
+
productID: stringType(),
|
|
47407
|
+
title: stringType(),
|
|
47408
|
+
description: stringType().optional(),
|
|
47409
|
+
basePrice: AmountDecimal$outboundSchema,
|
|
47410
|
+
optionGroups: arrayType(ProductOptionGroup$outboundSchema).optional(),
|
|
47411
|
+
images: arrayType(ProductImageMetadata$outboundSchema).optional(),
|
|
47412
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
47413
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
47414
|
+
disabledOn: dateType().transform((v2) => v2.toISOString()).optional()
|
|
47415
|
+
});
|
|
47416
|
+
((Product$) => {
|
|
47417
|
+
Product$.inboundSchema = Product$inboundSchema;
|
|
47418
|
+
Product$.outboundSchema = Product$outboundSchema;
|
|
47419
|
+
})(Product$ ||= {});
|
|
47420
|
+
});
|
|
47421
|
+
|
|
47422
|
+
// src/models/components/productoptionvalidationerror.ts
|
|
47423
|
+
var ProductOptionValidationError$inboundSchema, ProductOptionValidationError$outboundSchema, ProductOptionValidationError$;
|
|
47424
|
+
var init_productoptionvalidationerror = __esm(() => {
|
|
47425
|
+
init_esm();
|
|
47426
|
+
init_assignproductimagevalidationerror();
|
|
47427
|
+
ProductOptionValidationError$inboundSchema = objectType({
|
|
47428
|
+
name: stringType().optional(),
|
|
47429
|
+
description: stringType().optional(),
|
|
47430
|
+
priceModifier: stringType().optional(),
|
|
47431
|
+
images: recordType(AssignProductImageValidationError$inboundSchema).optional()
|
|
47432
|
+
});
|
|
47433
|
+
ProductOptionValidationError$outboundSchema = objectType({
|
|
47434
|
+
name: stringType().optional(),
|
|
47435
|
+
description: stringType().optional(),
|
|
47436
|
+
priceModifier: stringType().optional(),
|
|
47437
|
+
images: recordType(AssignProductImageValidationError$outboundSchema).optional()
|
|
47438
|
+
});
|
|
47439
|
+
((ProductOptionValidationError$) => {
|
|
47440
|
+
ProductOptionValidationError$.inboundSchema = ProductOptionValidationError$inboundSchema;
|
|
47441
|
+
ProductOptionValidationError$.outboundSchema = ProductOptionValidationError$outboundSchema;
|
|
47442
|
+
})(ProductOptionValidationError$ ||= {});
|
|
47443
|
+
});
|
|
47444
|
+
|
|
47445
|
+
// src/models/components/productoptiongroupvalidationerror.ts
|
|
47446
|
+
var ProductOptionGroupValidationError$inboundSchema, ProductOptionGroupValidationError$outboundSchema, ProductOptionGroupValidationError$;
|
|
47447
|
+
var init_productoptiongroupvalidationerror = __esm(() => {
|
|
47448
|
+
init_esm();
|
|
47449
|
+
init_productoptionvalidationerror();
|
|
47450
|
+
ProductOptionGroupValidationError$inboundSchema = objectType({
|
|
47451
|
+
name: stringType().optional(),
|
|
47452
|
+
description: stringType().optional(),
|
|
47453
|
+
minSelect: stringType().optional(),
|
|
47454
|
+
maxSelect: stringType().optional(),
|
|
47455
|
+
options: recordType(ProductOptionValidationError$inboundSchema).optional()
|
|
47456
|
+
});
|
|
47457
|
+
ProductOptionGroupValidationError$outboundSchema = objectType({
|
|
47458
|
+
name: stringType().optional(),
|
|
47459
|
+
description: stringType().optional(),
|
|
47460
|
+
minSelect: stringType().optional(),
|
|
47461
|
+
maxSelect: stringType().optional(),
|
|
47462
|
+
options: recordType(ProductOptionValidationError$outboundSchema).optional()
|
|
47463
|
+
});
|
|
47464
|
+
((ProductOptionGroupValidationError$) => {
|
|
47465
|
+
ProductOptionGroupValidationError$.inboundSchema = ProductOptionGroupValidationError$inboundSchema;
|
|
47466
|
+
ProductOptionGroupValidationError$.outboundSchema = ProductOptionGroupValidationError$outboundSchema;
|
|
47467
|
+
})(ProductOptionGroupValidationError$ ||= {});
|
|
47468
|
+
});
|
|
47469
|
+
|
|
47470
|
+
// src/models/components/productrequest.ts
|
|
47471
|
+
var ProductRequest$inboundSchema, ProductRequest$outboundSchema, ProductRequest$;
|
|
47472
|
+
var init_productrequest = __esm(() => {
|
|
47473
|
+
init_esm();
|
|
47474
|
+
init_amountdecimal();
|
|
47475
|
+
init_assignproductimage();
|
|
47476
|
+
init_createproductoptiongroup();
|
|
47477
|
+
ProductRequest$inboundSchema = objectType({
|
|
47478
|
+
title: stringType(),
|
|
47479
|
+
description: stringType().optional(),
|
|
47480
|
+
basePrice: AmountDecimal$inboundSchema,
|
|
47481
|
+
images: arrayType(AssignProductImage$inboundSchema).optional(),
|
|
47482
|
+
optionGroups: arrayType(CreateProductOptionGroup$inboundSchema).optional()
|
|
47483
|
+
});
|
|
47484
|
+
ProductRequest$outboundSchema = objectType({
|
|
47485
|
+
title: stringType(),
|
|
47486
|
+
description: stringType().optional(),
|
|
47487
|
+
basePrice: AmountDecimal$outboundSchema,
|
|
47488
|
+
images: arrayType(AssignProductImage$outboundSchema).optional(),
|
|
47489
|
+
optionGroups: arrayType(CreateProductOptionGroup$outboundSchema).optional()
|
|
47490
|
+
});
|
|
47491
|
+
((ProductRequest$) => {
|
|
47492
|
+
ProductRequest$.inboundSchema = ProductRequest$inboundSchema;
|
|
47493
|
+
ProductRequest$.outboundSchema = ProductRequest$outboundSchema;
|
|
47494
|
+
})(ProductRequest$ ||= {});
|
|
47495
|
+
});
|
|
47496
|
+
|
|
47221
47497
|
// src/models/components/qrcode.ts
|
|
47222
47498
|
var QRCode$inboundSchema, QRCode$outboundSchema, QRCode$;
|
|
47223
47499
|
var init_qrcode = __esm(() => {
|
|
@@ -50171,6 +50447,7 @@ var init_components = __esm(() => {
|
|
|
50171
50447
|
init_adjustment();
|
|
50172
50448
|
init_amount();
|
|
50173
50449
|
init_amountdecimal();
|
|
50450
|
+
init_amountdecimalvalidationerror();
|
|
50174
50451
|
init_amountupdate();
|
|
50175
50452
|
init_amountvalidationerror();
|
|
50176
50453
|
init_applebillingcontact();
|
|
@@ -50179,6 +50456,8 @@ var init_components = __esm(() => {
|
|
|
50179
50456
|
init_applepaypaymentmethod();
|
|
50180
50457
|
init_applepayresponse();
|
|
50181
50458
|
init_applicationscope();
|
|
50459
|
+
init_assignproductimage();
|
|
50460
|
+
init_assignproductimagevalidationerror();
|
|
50182
50461
|
init_asynccreatedrefund();
|
|
50183
50462
|
init_asynctransfer();
|
|
50184
50463
|
init_authorizeduser();
|
|
@@ -50278,6 +50557,8 @@ var init_components = __esm(() => {
|
|
|
50278
50557
|
init_createindividualerror();
|
|
50279
50558
|
init_createindividualprofile();
|
|
50280
50559
|
init_createpaymentlink();
|
|
50560
|
+
init_createproductoption();
|
|
50561
|
+
init_createproductoptiongroup();
|
|
50281
50562
|
init_createprofile();
|
|
50282
50563
|
init_createprofileerror();
|
|
50283
50564
|
init_createrefund();
|
|
@@ -50456,6 +50737,13 @@ var init_components = __esm(() => {
|
|
|
50456
50737
|
init_plaidpayload();
|
|
50457
50738
|
init_platformfees();
|
|
50458
50739
|
init_primaryregulator();
|
|
50740
|
+
init_product();
|
|
50741
|
+
init_productimagemetadata();
|
|
50742
|
+
init_productoption();
|
|
50743
|
+
init_productoptiongroup();
|
|
50744
|
+
init_productoptiongroupvalidationerror();
|
|
50745
|
+
init_productoptionvalidationerror();
|
|
50746
|
+
init_productrequest();
|
|
50459
50747
|
init_profile();
|
|
50460
50748
|
init_pullfromcardpaymentmethod();
|
|
50461
50749
|
init_pushtocardpaymentmethod();
|
|
@@ -51940,6 +52228,65 @@ var init_patchwalletvalidationerror = __esm(() => {
|
|
|
51940
52228
|
})(PatchWalletValidationError$ ||= {});
|
|
51941
52229
|
});
|
|
51942
52230
|
|
|
52231
|
+
// src/models/errors/productrequestvalidationerror.ts
|
|
52232
|
+
var ProductRequestValidationError, ProductRequestValidationError$inboundSchema, ProductRequestValidationError$outboundSchema, ProductRequestValidationError$;
|
|
52233
|
+
var init_productrequestvalidationerror = __esm(() => {
|
|
52234
|
+
init_esm();
|
|
52235
|
+
init_components();
|
|
52236
|
+
init_mooverror();
|
|
52237
|
+
ProductRequestValidationError = class ProductRequestValidationError extends MoovError {
|
|
52238
|
+
title;
|
|
52239
|
+
description;
|
|
52240
|
+
basePrice;
|
|
52241
|
+
images;
|
|
52242
|
+
optionGroups;
|
|
52243
|
+
data$;
|
|
52244
|
+
constructor(err, httpMeta) {
|
|
52245
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
52246
|
+
super(message, httpMeta);
|
|
52247
|
+
this.data$ = err;
|
|
52248
|
+
if (err.title != null)
|
|
52249
|
+
this.title = err.title;
|
|
52250
|
+
if (err.description != null)
|
|
52251
|
+
this.description = err.description;
|
|
52252
|
+
if (err.basePrice != null)
|
|
52253
|
+
this.basePrice = err.basePrice;
|
|
52254
|
+
if (err.images != null)
|
|
52255
|
+
this.images = err.images;
|
|
52256
|
+
if (err.optionGroups != null)
|
|
52257
|
+
this.optionGroups = err.optionGroups;
|
|
52258
|
+
this.name = "ProductRequestValidationError";
|
|
52259
|
+
}
|
|
52260
|
+
};
|
|
52261
|
+
ProductRequestValidationError$inboundSchema = objectType({
|
|
52262
|
+
title: stringType().optional(),
|
|
52263
|
+
description: stringType().optional(),
|
|
52264
|
+
basePrice: AmountDecimalValidationError$inboundSchema.optional(),
|
|
52265
|
+
images: recordType(AssignProductImageValidationError$inboundSchema).optional(),
|
|
52266
|
+
optionGroups: recordType(ProductOptionGroupValidationError$inboundSchema).optional(),
|
|
52267
|
+
request$: instanceOfType(Request),
|
|
52268
|
+
response$: instanceOfType(Response),
|
|
52269
|
+
body$: stringType()
|
|
52270
|
+
}).transform((v2) => {
|
|
52271
|
+
return new ProductRequestValidationError(v2, {
|
|
52272
|
+
request: v2.request$,
|
|
52273
|
+
response: v2.response$,
|
|
52274
|
+
body: v2.body$
|
|
52275
|
+
});
|
|
52276
|
+
});
|
|
52277
|
+
ProductRequestValidationError$outboundSchema = instanceOfType(ProductRequestValidationError).transform((v2) => v2.data$).pipe(objectType({
|
|
52278
|
+
title: stringType().optional(),
|
|
52279
|
+
description: stringType().optional(),
|
|
52280
|
+
basePrice: AmountDecimalValidationError$outboundSchema.optional(),
|
|
52281
|
+
images: recordType(AssignProductImageValidationError$outboundSchema).optional(),
|
|
52282
|
+
optionGroups: recordType(ProductOptionGroupValidationError$outboundSchema).optional()
|
|
52283
|
+
}));
|
|
52284
|
+
((ProductRequestValidationError$) => {
|
|
52285
|
+
ProductRequestValidationError$.inboundSchema = ProductRequestValidationError$inboundSchema;
|
|
52286
|
+
ProductRequestValidationError$.outboundSchema = ProductRequestValidationError$outboundSchema;
|
|
52287
|
+
})(ProductRequestValidationError$ ||= {});
|
|
52288
|
+
});
|
|
52289
|
+
|
|
51943
52290
|
// src/models/errors/refundvalidationerror.ts
|
|
51944
52291
|
var RefundValidationError, RefundValidationError$inboundSchema, RefundValidationError$outboundSchema, RefundValidationError$;
|
|
51945
52292
|
var init_refundvalidationerror = __esm(() => {
|
|
@@ -53033,6 +53380,7 @@ var init_errors2 = __esm(() => {
|
|
|
53033
53380
|
init_patchsweepconfigerror();
|
|
53034
53381
|
init_patchtransfervalidationerror();
|
|
53035
53382
|
init_patchwalletvalidationerror();
|
|
53383
|
+
init_productrequestvalidationerror();
|
|
53036
53384
|
init_refundvalidationerror();
|
|
53037
53385
|
init_representativevalidationerror();
|
|
53038
53386
|
init_requestcarderror();
|
|
@@ -53852,6 +54200,74 @@ var init_createpaymentlink2 = __esm(() => {
|
|
|
53852
54200
|
})(CreatePaymentLinkResponse$ ||= {});
|
|
53853
54201
|
});
|
|
53854
54202
|
|
|
54203
|
+
// src/models/operations/createproduct.ts
|
|
54204
|
+
var CreateProductGlobals$inboundSchema, CreateProductGlobals$outboundSchema, CreateProductGlobals$, CreateProductRequest$inboundSchema, CreateProductRequest$outboundSchema, CreateProductRequest$, CreateProductResponse$inboundSchema, CreateProductResponse$outboundSchema, CreateProductResponse$;
|
|
54205
|
+
var init_createproduct = __esm(() => {
|
|
54206
|
+
init_esm();
|
|
54207
|
+
init_primitives();
|
|
54208
|
+
init_components();
|
|
54209
|
+
CreateProductGlobals$inboundSchema = objectType({
|
|
54210
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
54211
|
+
}).transform((v2) => {
|
|
54212
|
+
return remap(v2, {
|
|
54213
|
+
"x-moov-version": "xMoovVersion"
|
|
54214
|
+
});
|
|
54215
|
+
});
|
|
54216
|
+
CreateProductGlobals$outboundSchema = objectType({
|
|
54217
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
54218
|
+
}).transform((v2) => {
|
|
54219
|
+
return remap(v2, {
|
|
54220
|
+
xMoovVersion: "x-moov-version"
|
|
54221
|
+
});
|
|
54222
|
+
});
|
|
54223
|
+
((CreateProductGlobals$) => {
|
|
54224
|
+
CreateProductGlobals$.inboundSchema = CreateProductGlobals$inboundSchema;
|
|
54225
|
+
CreateProductGlobals$.outboundSchema = CreateProductGlobals$outboundSchema;
|
|
54226
|
+
})(CreateProductGlobals$ ||= {});
|
|
54227
|
+
CreateProductRequest$inboundSchema = objectType({
|
|
54228
|
+
accountID: stringType(),
|
|
54229
|
+
ProductRequest: ProductRequest$inboundSchema
|
|
54230
|
+
}).transform((v2) => {
|
|
54231
|
+
return remap(v2, {
|
|
54232
|
+
ProductRequest: "productRequest"
|
|
54233
|
+
});
|
|
54234
|
+
});
|
|
54235
|
+
CreateProductRequest$outboundSchema = objectType({
|
|
54236
|
+
accountID: stringType(),
|
|
54237
|
+
productRequest: ProductRequest$outboundSchema
|
|
54238
|
+
}).transform((v2) => {
|
|
54239
|
+
return remap(v2, {
|
|
54240
|
+
productRequest: "ProductRequest"
|
|
54241
|
+
});
|
|
54242
|
+
});
|
|
54243
|
+
((CreateProductRequest$) => {
|
|
54244
|
+
CreateProductRequest$.inboundSchema = CreateProductRequest$inboundSchema;
|
|
54245
|
+
CreateProductRequest$.outboundSchema = CreateProductRequest$outboundSchema;
|
|
54246
|
+
})(CreateProductRequest$ ||= {});
|
|
54247
|
+
CreateProductResponse$inboundSchema = objectType({
|
|
54248
|
+
Headers: recordType(arrayType(stringType())),
|
|
54249
|
+
Result: Product$inboundSchema
|
|
54250
|
+
}).transform((v2) => {
|
|
54251
|
+
return remap(v2, {
|
|
54252
|
+
Headers: "headers",
|
|
54253
|
+
Result: "result"
|
|
54254
|
+
});
|
|
54255
|
+
});
|
|
54256
|
+
CreateProductResponse$outboundSchema = objectType({
|
|
54257
|
+
headers: recordType(arrayType(stringType())),
|
|
54258
|
+
result: Product$outboundSchema
|
|
54259
|
+
}).transform((v2) => {
|
|
54260
|
+
return remap(v2, {
|
|
54261
|
+
headers: "Headers",
|
|
54262
|
+
result: "Result"
|
|
54263
|
+
});
|
|
54264
|
+
});
|
|
54265
|
+
((CreateProductResponse$) => {
|
|
54266
|
+
CreateProductResponse$.inboundSchema = CreateProductResponse$inboundSchema;
|
|
54267
|
+
CreateProductResponse$.outboundSchema = CreateProductResponse$outboundSchema;
|
|
54268
|
+
})(CreateProductResponse$ ||= {});
|
|
54269
|
+
});
|
|
54270
|
+
|
|
53855
54271
|
// src/models/operations/createreceipts.ts
|
|
53856
54272
|
var CreateReceiptsGlobals$inboundSchema, CreateReceiptsGlobals$outboundSchema, CreateReceiptsGlobals$, CreateReceiptsResponse$inboundSchema, CreateReceiptsResponse$outboundSchema, CreateReceiptsResponse$;
|
|
53857
54273
|
var init_createreceipts = __esm(() => {
|
|
@@ -55037,6 +55453,61 @@ var init_disablepaymentlink = __esm(() => {
|
|
|
55037
55453
|
})(DisablePaymentLinkResponse$ ||= {});
|
|
55038
55454
|
});
|
|
55039
55455
|
|
|
55456
|
+
// src/models/operations/disableproduct.ts
|
|
55457
|
+
var DisableProductGlobals$inboundSchema, DisableProductGlobals$outboundSchema, DisableProductGlobals$, DisableProductRequest$inboundSchema, DisableProductRequest$outboundSchema, DisableProductRequest$, DisableProductResponse$inboundSchema, DisableProductResponse$outboundSchema, DisableProductResponse$;
|
|
55458
|
+
var init_disableproduct = __esm(() => {
|
|
55459
|
+
init_esm();
|
|
55460
|
+
init_primitives();
|
|
55461
|
+
DisableProductGlobals$inboundSchema = objectType({
|
|
55462
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
55463
|
+
}).transform((v2) => {
|
|
55464
|
+
return remap(v2, {
|
|
55465
|
+
"x-moov-version": "xMoovVersion"
|
|
55466
|
+
});
|
|
55467
|
+
});
|
|
55468
|
+
DisableProductGlobals$outboundSchema = objectType({
|
|
55469
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
55470
|
+
}).transform((v2) => {
|
|
55471
|
+
return remap(v2, {
|
|
55472
|
+
xMoovVersion: "x-moov-version"
|
|
55473
|
+
});
|
|
55474
|
+
});
|
|
55475
|
+
((DisableProductGlobals$) => {
|
|
55476
|
+
DisableProductGlobals$.inboundSchema = DisableProductGlobals$inboundSchema;
|
|
55477
|
+
DisableProductGlobals$.outboundSchema = DisableProductGlobals$outboundSchema;
|
|
55478
|
+
})(DisableProductGlobals$ ||= {});
|
|
55479
|
+
DisableProductRequest$inboundSchema = objectType({
|
|
55480
|
+
accountID: stringType(),
|
|
55481
|
+
productID: stringType()
|
|
55482
|
+
});
|
|
55483
|
+
DisableProductRequest$outboundSchema = objectType({
|
|
55484
|
+
accountID: stringType(),
|
|
55485
|
+
productID: stringType()
|
|
55486
|
+
});
|
|
55487
|
+
((DisableProductRequest$) => {
|
|
55488
|
+
DisableProductRequest$.inboundSchema = DisableProductRequest$inboundSchema;
|
|
55489
|
+
DisableProductRequest$.outboundSchema = DisableProductRequest$outboundSchema;
|
|
55490
|
+
})(DisableProductRequest$ ||= {});
|
|
55491
|
+
DisableProductResponse$inboundSchema = objectType({
|
|
55492
|
+
Headers: recordType(arrayType(stringType()))
|
|
55493
|
+
}).transform((v2) => {
|
|
55494
|
+
return remap(v2, {
|
|
55495
|
+
Headers: "headers"
|
|
55496
|
+
});
|
|
55497
|
+
});
|
|
55498
|
+
DisableProductResponse$outboundSchema = objectType({
|
|
55499
|
+
headers: recordType(arrayType(stringType()))
|
|
55500
|
+
}).transform((v2) => {
|
|
55501
|
+
return remap(v2, {
|
|
55502
|
+
headers: "Headers"
|
|
55503
|
+
});
|
|
55504
|
+
});
|
|
55505
|
+
((DisableProductResponse$) => {
|
|
55506
|
+
DisableProductResponse$.inboundSchema = DisableProductResponse$inboundSchema;
|
|
55507
|
+
DisableProductResponse$.outboundSchema = DisableProductResponse$outboundSchema;
|
|
55508
|
+
})(DisableProductResponse$ ||= {});
|
|
55509
|
+
});
|
|
55510
|
+
|
|
55040
55511
|
// src/models/operations/disconnectaccount.ts
|
|
55041
55512
|
var DisconnectAccountGlobals$inboundSchema, DisconnectAccountGlobals$outboundSchema, DisconnectAccountGlobals$, DisconnectAccountRequest$inboundSchema, DisconnectAccountRequest$outboundSchema, DisconnectAccountRequest$, DisconnectAccountResponse$inboundSchema, DisconnectAccountResponse$outboundSchema, DisconnectAccountResponse$;
|
|
55042
55513
|
var init_disconnectaccount = __esm(() => {
|
|
@@ -56873,6 +57344,66 @@ var init_getpaymentmethod = __esm(() => {
|
|
|
56873
57344
|
})(GetPaymentMethodResponse$ ||= {});
|
|
56874
57345
|
});
|
|
56875
57346
|
|
|
57347
|
+
// src/models/operations/getproduct.ts
|
|
57348
|
+
var GetProductGlobals$inboundSchema, GetProductGlobals$outboundSchema, GetProductGlobals$, GetProductRequest$inboundSchema, GetProductRequest$outboundSchema, GetProductRequest$, GetProductResponse$inboundSchema, GetProductResponse$outboundSchema, GetProductResponse$;
|
|
57349
|
+
var init_getproduct = __esm(() => {
|
|
57350
|
+
init_esm();
|
|
57351
|
+
init_primitives();
|
|
57352
|
+
init_components();
|
|
57353
|
+
GetProductGlobals$inboundSchema = objectType({
|
|
57354
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
57355
|
+
}).transform((v2) => {
|
|
57356
|
+
return remap(v2, {
|
|
57357
|
+
"x-moov-version": "xMoovVersion"
|
|
57358
|
+
});
|
|
57359
|
+
});
|
|
57360
|
+
GetProductGlobals$outboundSchema = objectType({
|
|
57361
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
57362
|
+
}).transform((v2) => {
|
|
57363
|
+
return remap(v2, {
|
|
57364
|
+
xMoovVersion: "x-moov-version"
|
|
57365
|
+
});
|
|
57366
|
+
});
|
|
57367
|
+
((GetProductGlobals$) => {
|
|
57368
|
+
GetProductGlobals$.inboundSchema = GetProductGlobals$inboundSchema;
|
|
57369
|
+
GetProductGlobals$.outboundSchema = GetProductGlobals$outboundSchema;
|
|
57370
|
+
})(GetProductGlobals$ ||= {});
|
|
57371
|
+
GetProductRequest$inboundSchema = objectType({
|
|
57372
|
+
accountID: stringType(),
|
|
57373
|
+
productID: stringType()
|
|
57374
|
+
});
|
|
57375
|
+
GetProductRequest$outboundSchema = objectType({
|
|
57376
|
+
accountID: stringType(),
|
|
57377
|
+
productID: stringType()
|
|
57378
|
+
});
|
|
57379
|
+
((GetProductRequest$) => {
|
|
57380
|
+
GetProductRequest$.inboundSchema = GetProductRequest$inboundSchema;
|
|
57381
|
+
GetProductRequest$.outboundSchema = GetProductRequest$outboundSchema;
|
|
57382
|
+
})(GetProductRequest$ ||= {});
|
|
57383
|
+
GetProductResponse$inboundSchema = objectType({
|
|
57384
|
+
Headers: recordType(arrayType(stringType())),
|
|
57385
|
+
Result: Product$inboundSchema
|
|
57386
|
+
}).transform((v2) => {
|
|
57387
|
+
return remap(v2, {
|
|
57388
|
+
Headers: "headers",
|
|
57389
|
+
Result: "result"
|
|
57390
|
+
});
|
|
57391
|
+
});
|
|
57392
|
+
GetProductResponse$outboundSchema = objectType({
|
|
57393
|
+
headers: recordType(arrayType(stringType())),
|
|
57394
|
+
result: Product$outboundSchema
|
|
57395
|
+
}).transform((v2) => {
|
|
57396
|
+
return remap(v2, {
|
|
57397
|
+
headers: "Headers",
|
|
57398
|
+
result: "Result"
|
|
57399
|
+
});
|
|
57400
|
+
});
|
|
57401
|
+
((GetProductResponse$) => {
|
|
57402
|
+
GetProductResponse$.inboundSchema = GetProductResponse$inboundSchema;
|
|
57403
|
+
GetProductResponse$.outboundSchema = GetProductResponse$outboundSchema;
|
|
57404
|
+
})(GetProductResponse$ ||= {});
|
|
57405
|
+
});
|
|
57406
|
+
|
|
56876
57407
|
// src/models/operations/getpublicimage.ts
|
|
56877
57408
|
var GetPublicImageRequest$inboundSchema, GetPublicImageRequest$outboundSchema, GetPublicImageRequest$, GetPublicImageResponseResult$inboundSchema, GetPublicImageResponseResult$outboundSchema, GetPublicImageResponseResult$, GetPublicImageResponse$inboundSchema, GetPublicImageResponse$outboundSchema, GetPublicImageResponse$;
|
|
56878
57409
|
var init_getpublicimage = __esm(() => {
|
|
@@ -59871,6 +60402,68 @@ var init_listpaymentmethods = __esm(() => {
|
|
|
59871
60402
|
})(ListPaymentMethodsResponse$ ||= {});
|
|
59872
60403
|
});
|
|
59873
60404
|
|
|
60405
|
+
// src/models/operations/listproducts.ts
|
|
60406
|
+
var ListProductsGlobals$inboundSchema, ListProductsGlobals$outboundSchema, ListProductsGlobals$, ListProductsRequest$inboundSchema, ListProductsRequest$outboundSchema, ListProductsRequest$, ListProductsResponse$inboundSchema, ListProductsResponse$outboundSchema, ListProductsResponse$;
|
|
60407
|
+
var init_listproducts = __esm(() => {
|
|
60408
|
+
init_esm();
|
|
60409
|
+
init_primitives();
|
|
60410
|
+
init_components();
|
|
60411
|
+
ListProductsGlobals$inboundSchema = objectType({
|
|
60412
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
60413
|
+
}).transform((v2) => {
|
|
60414
|
+
return remap(v2, {
|
|
60415
|
+
"x-moov-version": "xMoovVersion"
|
|
60416
|
+
});
|
|
60417
|
+
});
|
|
60418
|
+
ListProductsGlobals$outboundSchema = objectType({
|
|
60419
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
60420
|
+
}).transform((v2) => {
|
|
60421
|
+
return remap(v2, {
|
|
60422
|
+
xMoovVersion: "x-moov-version"
|
|
60423
|
+
});
|
|
60424
|
+
});
|
|
60425
|
+
((ListProductsGlobals$) => {
|
|
60426
|
+
ListProductsGlobals$.inboundSchema = ListProductsGlobals$inboundSchema;
|
|
60427
|
+
ListProductsGlobals$.outboundSchema = ListProductsGlobals$outboundSchema;
|
|
60428
|
+
})(ListProductsGlobals$ ||= {});
|
|
60429
|
+
ListProductsRequest$inboundSchema = objectType({
|
|
60430
|
+
accountID: stringType(),
|
|
60431
|
+
skip: numberType().int().optional(),
|
|
60432
|
+
count: numberType().int().optional()
|
|
60433
|
+
});
|
|
60434
|
+
ListProductsRequest$outboundSchema = objectType({
|
|
60435
|
+
accountID: stringType(),
|
|
60436
|
+
skip: numberType().int().optional(),
|
|
60437
|
+
count: numberType().int().optional()
|
|
60438
|
+
});
|
|
60439
|
+
((ListProductsRequest$) => {
|
|
60440
|
+
ListProductsRequest$.inboundSchema = ListProductsRequest$inboundSchema;
|
|
60441
|
+
ListProductsRequest$.outboundSchema = ListProductsRequest$outboundSchema;
|
|
60442
|
+
})(ListProductsRequest$ ||= {});
|
|
60443
|
+
ListProductsResponse$inboundSchema = objectType({
|
|
60444
|
+
Headers: recordType(arrayType(stringType())),
|
|
60445
|
+
Result: arrayType(Product$inboundSchema)
|
|
60446
|
+
}).transform((v2) => {
|
|
60447
|
+
return remap(v2, {
|
|
60448
|
+
Headers: "headers",
|
|
60449
|
+
Result: "result"
|
|
60450
|
+
});
|
|
60451
|
+
});
|
|
60452
|
+
ListProductsResponse$outboundSchema = objectType({
|
|
60453
|
+
headers: recordType(arrayType(stringType())),
|
|
60454
|
+
result: arrayType(Product$outboundSchema)
|
|
60455
|
+
}).transform((v2) => {
|
|
60456
|
+
return remap(v2, {
|
|
60457
|
+
headers: "Headers",
|
|
60458
|
+
result: "Result"
|
|
60459
|
+
});
|
|
60460
|
+
});
|
|
60461
|
+
((ListProductsResponse$) => {
|
|
60462
|
+
ListProductsResponse$.inboundSchema = ListProductsResponse$inboundSchema;
|
|
60463
|
+
ListProductsResponse$.outboundSchema = ListProductsResponse$outboundSchema;
|
|
60464
|
+
})(ListProductsResponse$ ||= {});
|
|
60465
|
+
});
|
|
60466
|
+
|
|
59874
60467
|
// src/models/operations/listreceipts.ts
|
|
59875
60468
|
var ListReceiptsGlobals$inboundSchema, ListReceiptsGlobals$outboundSchema, ListReceiptsGlobals$, ListReceiptsRequest$inboundSchema, ListReceiptsRequest$outboundSchema, ListReceiptsRequest$, ListReceiptsResponse$inboundSchema, ListReceiptsResponse$outboundSchema, ListReceiptsResponse$;
|
|
59876
60469
|
var init_listreceipts = __esm(() => {
|
|
@@ -61866,6 +62459,76 @@ var init_updatepaymentlink2 = __esm(() => {
|
|
|
61866
62459
|
})(UpdatePaymentLinkResponse$ ||= {});
|
|
61867
62460
|
});
|
|
61868
62461
|
|
|
62462
|
+
// src/models/operations/updateproduct.ts
|
|
62463
|
+
var UpdateProductGlobals$inboundSchema, UpdateProductGlobals$outboundSchema, UpdateProductGlobals$, UpdateProductRequest$inboundSchema, UpdateProductRequest$outboundSchema, UpdateProductRequest$, UpdateProductResponse$inboundSchema, UpdateProductResponse$outboundSchema, UpdateProductResponse$;
|
|
62464
|
+
var init_updateproduct = __esm(() => {
|
|
62465
|
+
init_esm();
|
|
62466
|
+
init_primitives();
|
|
62467
|
+
init_components();
|
|
62468
|
+
UpdateProductGlobals$inboundSchema = objectType({
|
|
62469
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
62470
|
+
}).transform((v2) => {
|
|
62471
|
+
return remap(v2, {
|
|
62472
|
+
"x-moov-version": "xMoovVersion"
|
|
62473
|
+
});
|
|
62474
|
+
});
|
|
62475
|
+
UpdateProductGlobals$outboundSchema = objectType({
|
|
62476
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
62477
|
+
}).transform((v2) => {
|
|
62478
|
+
return remap(v2, {
|
|
62479
|
+
xMoovVersion: "x-moov-version"
|
|
62480
|
+
});
|
|
62481
|
+
});
|
|
62482
|
+
((UpdateProductGlobals$) => {
|
|
62483
|
+
UpdateProductGlobals$.inboundSchema = UpdateProductGlobals$inboundSchema;
|
|
62484
|
+
UpdateProductGlobals$.outboundSchema = UpdateProductGlobals$outboundSchema;
|
|
62485
|
+
})(UpdateProductGlobals$ ||= {});
|
|
62486
|
+
UpdateProductRequest$inboundSchema = objectType({
|
|
62487
|
+
accountID: stringType(),
|
|
62488
|
+
productID: stringType(),
|
|
62489
|
+
ProductRequest: ProductRequest$inboundSchema
|
|
62490
|
+
}).transform((v2) => {
|
|
62491
|
+
return remap(v2, {
|
|
62492
|
+
ProductRequest: "productRequest"
|
|
62493
|
+
});
|
|
62494
|
+
});
|
|
62495
|
+
UpdateProductRequest$outboundSchema = objectType({
|
|
62496
|
+
accountID: stringType(),
|
|
62497
|
+
productID: stringType(),
|
|
62498
|
+
productRequest: ProductRequest$outboundSchema
|
|
62499
|
+
}).transform((v2) => {
|
|
62500
|
+
return remap(v2, {
|
|
62501
|
+
productRequest: "ProductRequest"
|
|
62502
|
+
});
|
|
62503
|
+
});
|
|
62504
|
+
((UpdateProductRequest$) => {
|
|
62505
|
+
UpdateProductRequest$.inboundSchema = UpdateProductRequest$inboundSchema;
|
|
62506
|
+
UpdateProductRequest$.outboundSchema = UpdateProductRequest$outboundSchema;
|
|
62507
|
+
})(UpdateProductRequest$ ||= {});
|
|
62508
|
+
UpdateProductResponse$inboundSchema = objectType({
|
|
62509
|
+
Headers: recordType(arrayType(stringType())),
|
|
62510
|
+
Result: Product$inboundSchema
|
|
62511
|
+
}).transform((v2) => {
|
|
62512
|
+
return remap(v2, {
|
|
62513
|
+
Headers: "headers",
|
|
62514
|
+
Result: "result"
|
|
62515
|
+
});
|
|
62516
|
+
});
|
|
62517
|
+
UpdateProductResponse$outboundSchema = objectType({
|
|
62518
|
+
headers: recordType(arrayType(stringType())),
|
|
62519
|
+
result: Product$outboundSchema
|
|
62520
|
+
}).transform((v2) => {
|
|
62521
|
+
return remap(v2, {
|
|
62522
|
+
headers: "Headers",
|
|
62523
|
+
result: "Result"
|
|
62524
|
+
});
|
|
62525
|
+
});
|
|
62526
|
+
((UpdateProductResponse$) => {
|
|
62527
|
+
UpdateProductResponse$.inboundSchema = UpdateProductResponse$inboundSchema;
|
|
62528
|
+
UpdateProductResponse$.outboundSchema = UpdateProductResponse$outboundSchema;
|
|
62529
|
+
})(UpdateProductResponse$ ||= {});
|
|
62530
|
+
});
|
|
62531
|
+
|
|
61869
62532
|
// src/models/operations/updaterepresentative.ts
|
|
61870
62533
|
var UpdateRepresentativeGlobals$inboundSchema, UpdateRepresentativeGlobals$outboundSchema, UpdateRepresentativeGlobals$, UpdateRepresentativeRequest$inboundSchema, UpdateRepresentativeRequest$outboundSchema, UpdateRepresentativeRequest$, UpdateRepresentativeResponse$inboundSchema, UpdateRepresentativeResponse$outboundSchema, UpdateRepresentativeResponse$;
|
|
61871
62534
|
var init_updaterepresentative2 = __esm(() => {
|
|
@@ -62645,6 +63308,7 @@ var init_operations = __esm(() => {
|
|
|
62645
63308
|
init_createfeeplanagreements();
|
|
62646
63309
|
init_createonboardinginvite();
|
|
62647
63310
|
init_createpaymentlink2();
|
|
63311
|
+
init_createproduct();
|
|
62648
63312
|
init_createreceipts();
|
|
62649
63313
|
init_createrepresentative2();
|
|
62650
63314
|
init_createreversal2();
|
|
@@ -62664,6 +63328,7 @@ var init_operations = __esm(() => {
|
|
|
62664
63328
|
init_disablecapability();
|
|
62665
63329
|
init_disablecard();
|
|
62666
63330
|
init_disablepaymentlink();
|
|
63331
|
+
init_disableproduct();
|
|
62667
63332
|
init_disconnectaccount();
|
|
62668
63333
|
init_generateendtoendkey();
|
|
62669
63334
|
init_getaccount();
|
|
@@ -62694,6 +63359,7 @@ var init_operations = __esm(() => {
|
|
|
62694
63359
|
init_getpaymentlink();
|
|
62695
63360
|
init_getpaymentlinkqrcode();
|
|
62696
63361
|
init_getpaymentmethod();
|
|
63362
|
+
init_getproduct();
|
|
62697
63363
|
init_getpublicimage();
|
|
62698
63364
|
init_getrefund();
|
|
62699
63365
|
init_getrepresentative();
|
|
@@ -62741,6 +63407,7 @@ var init_operations = __esm(() => {
|
|
|
62741
63407
|
init_listpartnerpricingagreements();
|
|
62742
63408
|
init_listpaymentlinks();
|
|
62743
63409
|
init_listpaymentmethods();
|
|
63410
|
+
init_listproducts();
|
|
62744
63411
|
init_listreceipts();
|
|
62745
63412
|
init_listrefunds();
|
|
62746
63413
|
init_listrepresentatives();
|
|
@@ -62772,6 +63439,7 @@ var init_operations = __esm(() => {
|
|
|
62772
63439
|
init_updatedisputeevidence();
|
|
62773
63440
|
init_updateissuedcard2();
|
|
62774
63441
|
init_updatepaymentlink2();
|
|
63442
|
+
init_updateproduct();
|
|
62775
63443
|
init_updaterepresentative2();
|
|
62776
63444
|
init_updateschedule();
|
|
62777
63445
|
init_updatesweepconfig();
|
|
@@ -74827,257 +75495,24 @@ you'll need to specify the \`/ping.read\` scope.`,
|
|
|
74827
75495
|
};
|
|
74828
75496
|
});
|
|
74829
75497
|
|
|
74830
|
-
// src/funcs/
|
|
74831
|
-
function
|
|
75498
|
+
// src/funcs/productsCreate.ts
|
|
75499
|
+
function productsCreate(client, request, options) {
|
|
74832
75500
|
return new APIPromise($do101(client, request, options));
|
|
74833
75501
|
}
|
|
74834
75502
|
async function $do101(client, request, options) {
|
|
74835
|
-
const parsed = safeParse(request, (value) =>
|
|
74836
|
-
if (!parsed.ok) {
|
|
74837
|
-
return [parsed, { status: "invalid" }];
|
|
74838
|
-
}
|
|
74839
|
-
const payload = parsed.value;
|
|
74840
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
74841
|
-
const path = pathToFunc("/receipts")();
|
|
74842
|
-
const headers = new Headers(compactMap({
|
|
74843
|
-
"Content-Type": "application/json",
|
|
74844
|
-
Accept: "application/json",
|
|
74845
|
-
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
74846
|
-
}));
|
|
74847
|
-
const securityInput = await extractSecurity(client._options.security);
|
|
74848
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
74849
|
-
const context = {
|
|
74850
|
-
options: client._options,
|
|
74851
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
74852
|
-
operationID: "createReceipts",
|
|
74853
|
-
oAuth2Scopes: null,
|
|
74854
|
-
resolvedSecurity: requestSecurity,
|
|
74855
|
-
securitySource: client._options.security,
|
|
74856
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
74857
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
74858
|
-
};
|
|
74859
|
-
const requestRes = client._createRequest(context, {
|
|
74860
|
-
security: requestSecurity,
|
|
74861
|
-
method: "POST",
|
|
74862
|
-
baseURL: options?.serverURL,
|
|
74863
|
-
path,
|
|
74864
|
-
headers,
|
|
74865
|
-
body,
|
|
74866
|
-
userAgent: client._options.userAgent,
|
|
74867
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
74868
|
-
}, options);
|
|
74869
|
-
if (!requestRes.ok) {
|
|
74870
|
-
return [requestRes, { status: "invalid" }];
|
|
74871
|
-
}
|
|
74872
|
-
const req = requestRes.value;
|
|
74873
|
-
const doResult = await client._do(req, {
|
|
74874
|
-
context,
|
|
74875
|
-
errorCodes: [
|
|
74876
|
-
"400",
|
|
74877
|
-
"401",
|
|
74878
|
-
"403",
|
|
74879
|
-
"404",
|
|
74880
|
-
"409",
|
|
74881
|
-
"422",
|
|
74882
|
-
"429",
|
|
74883
|
-
"4XX",
|
|
74884
|
-
"500",
|
|
74885
|
-
"504",
|
|
74886
|
-
"5XX"
|
|
74887
|
-
],
|
|
74888
|
-
retryConfig: context.retryConfig,
|
|
74889
|
-
retryCodes: context.retryCodes
|
|
74890
|
-
});
|
|
74891
|
-
if (!doResult.ok) {
|
|
74892
|
-
return [doResult, { status: "request-error", request: req }];
|
|
74893
|
-
}
|
|
74894
|
-
const response = doResult.value;
|
|
74895
|
-
const responseFields = {
|
|
74896
|
-
HttpMeta: { Response: response, Request: req }
|
|
74897
|
-
};
|
|
74898
|
-
const [result] = await match(json(201, CreateReceiptsResponse$inboundSchema, {
|
|
74899
|
-
hdrs: true,
|
|
74900
|
-
key: "Result"
|
|
74901
|
-
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 422, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
74902
|
-
if (!result.ok) {
|
|
74903
|
-
return [result, { status: "complete", request: req, response }];
|
|
74904
|
-
}
|
|
74905
|
-
return [result, { status: "complete", request: req, response }];
|
|
74906
|
-
}
|
|
74907
|
-
var init_receiptsCreate = __esm(() => {
|
|
74908
|
-
init_esm();
|
|
74909
|
-
init_encodings();
|
|
74910
|
-
init_matchers();
|
|
74911
|
-
init_primitives();
|
|
74912
|
-
init_schemas();
|
|
74913
|
-
init_security();
|
|
74914
|
-
init_url();
|
|
74915
|
-
init_components();
|
|
74916
|
-
init_errors2();
|
|
74917
|
-
init_operations();
|
|
74918
|
-
init_async();
|
|
74919
|
-
});
|
|
74920
|
-
|
|
74921
|
-
// src/mcp-server/tools/receiptsCreate.ts
|
|
74922
|
-
var args101, tool$receiptsCreate;
|
|
74923
|
-
var init_receiptsCreate2 = __esm(() => {
|
|
74924
|
-
init_esm();
|
|
74925
|
-
init_receiptsCreate();
|
|
74926
|
-
init_components();
|
|
74927
|
-
init_tools();
|
|
74928
|
-
args101 = {
|
|
74929
|
-
request: arrayType(ReceiptRequest$inboundSchema)
|
|
74930
|
-
};
|
|
74931
|
-
tool$receiptsCreate = {
|
|
74932
|
-
name: "receipts-create",
|
|
74933
|
-
description: ` Create receipts for transfers and scheduled transfers.
|
|
74934
|
-
|
|
74935
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
74936
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
74937
|
-
args: args101,
|
|
74938
|
-
tool: async (client, args102, ctx) => {
|
|
74939
|
-
const [result, apiCall] = await receiptsCreate(client, args102.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74940
|
-
if (!result.ok) {
|
|
74941
|
-
return {
|
|
74942
|
-
content: [{ type: "text", text: result.error.message }],
|
|
74943
|
-
isError: true
|
|
74944
|
-
};
|
|
74945
|
-
}
|
|
74946
|
-
const value = result.value.result;
|
|
74947
|
-
return formatResult(value, apiCall);
|
|
74948
|
-
}
|
|
74949
|
-
};
|
|
74950
|
-
});
|
|
74951
|
-
|
|
74952
|
-
// src/funcs/receiptsList.ts
|
|
74953
|
-
function receiptsList(client, request, options) {
|
|
74954
|
-
return new APIPromise($do102(client, request, options));
|
|
74955
|
-
}
|
|
74956
|
-
async function $do102(client, request, options) {
|
|
74957
|
-
const parsed = safeParse(request, (value) => ListReceiptsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74958
|
-
if (!parsed.ok) {
|
|
74959
|
-
return [parsed, { status: "invalid" }];
|
|
74960
|
-
}
|
|
74961
|
-
const payload = parsed.value;
|
|
74962
|
-
const body = null;
|
|
74963
|
-
const path = pathToFunc("/receipts")();
|
|
74964
|
-
const query = encodeFormQuery({
|
|
74965
|
-
id: payload.id
|
|
74966
|
-
}, { explode: false });
|
|
74967
|
-
const headers = new Headers(compactMap({
|
|
74968
|
-
Accept: "application/json",
|
|
74969
|
-
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
74970
|
-
}));
|
|
74971
|
-
const securityInput = await extractSecurity(client._options.security);
|
|
74972
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
74973
|
-
const context = {
|
|
74974
|
-
options: client._options,
|
|
74975
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
74976
|
-
operationID: "listReceipts",
|
|
74977
|
-
oAuth2Scopes: null,
|
|
74978
|
-
resolvedSecurity: requestSecurity,
|
|
74979
|
-
securitySource: client._options.security,
|
|
74980
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
74981
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
74982
|
-
};
|
|
74983
|
-
const requestRes = client._createRequest(context, {
|
|
74984
|
-
security: requestSecurity,
|
|
74985
|
-
method: "GET",
|
|
74986
|
-
baseURL: options?.serverURL,
|
|
74987
|
-
path,
|
|
74988
|
-
headers,
|
|
74989
|
-
query,
|
|
74990
|
-
body,
|
|
74991
|
-
userAgent: client._options.userAgent,
|
|
74992
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
74993
|
-
}, options);
|
|
74994
|
-
if (!requestRes.ok) {
|
|
74995
|
-
return [requestRes, { status: "invalid" }];
|
|
74996
|
-
}
|
|
74997
|
-
const req = requestRes.value;
|
|
74998
|
-
const doResult = await client._do(req, {
|
|
74999
|
-
context,
|
|
75000
|
-
errorCodes: ["401", "403", "429", "4XX", "500", "504", "5XX"],
|
|
75001
|
-
retryConfig: context.retryConfig,
|
|
75002
|
-
retryCodes: context.retryCodes
|
|
75003
|
-
});
|
|
75004
|
-
if (!doResult.ok) {
|
|
75005
|
-
return [doResult, { status: "request-error", request: req }];
|
|
75006
|
-
}
|
|
75007
|
-
const response = doResult.value;
|
|
75008
|
-
const responseFields = {
|
|
75009
|
-
HttpMeta: { Response: response, Request: req }
|
|
75010
|
-
};
|
|
75011
|
-
const [result] = await match(json(200, ListReceiptsResponse$inboundSchema, {
|
|
75012
|
-
hdrs: true,
|
|
75013
|
-
key: "Result"
|
|
75014
|
-
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
75015
|
-
if (!result.ok) {
|
|
75016
|
-
return [result, { status: "complete", request: req, response }];
|
|
75017
|
-
}
|
|
75018
|
-
return [result, { status: "complete", request: req, response }];
|
|
75019
|
-
}
|
|
75020
|
-
var init_receiptsList = __esm(() => {
|
|
75021
|
-
init_encodings();
|
|
75022
|
-
init_matchers();
|
|
75023
|
-
init_primitives();
|
|
75024
|
-
init_schemas();
|
|
75025
|
-
init_security();
|
|
75026
|
-
init_url();
|
|
75027
|
-
init_operations();
|
|
75028
|
-
init_async();
|
|
75029
|
-
});
|
|
75030
|
-
|
|
75031
|
-
// src/mcp-server/tools/receiptsList.ts
|
|
75032
|
-
var args102, tool$receiptsList;
|
|
75033
|
-
var init_receiptsList2 = __esm(() => {
|
|
75034
|
-
init_receiptsList();
|
|
75035
|
-
init_operations();
|
|
75036
|
-
init_tools();
|
|
75037
|
-
args102 = {
|
|
75038
|
-
request: ListReceiptsRequest$inboundSchema
|
|
75039
|
-
};
|
|
75040
|
-
tool$receiptsList = {
|
|
75041
|
-
name: "receipts-list",
|
|
75042
|
-
description: `List receipts by transferID, scheduleID, or occurrenceID.
|
|
75043
|
-
|
|
75044
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75045
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
75046
|
-
args: args102,
|
|
75047
|
-
tool: async (client, args103, ctx) => {
|
|
75048
|
-
const [result, apiCall] = await receiptsList(client, args103.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75049
|
-
if (!result.ok) {
|
|
75050
|
-
return {
|
|
75051
|
-
content: [{ type: "text", text: result.error.message }],
|
|
75052
|
-
isError: true
|
|
75053
|
-
};
|
|
75054
|
-
}
|
|
75055
|
-
const value = result.value.result;
|
|
75056
|
-
return formatResult(value, apiCall);
|
|
75057
|
-
}
|
|
75058
|
-
};
|
|
75059
|
-
});
|
|
75060
|
-
|
|
75061
|
-
// src/funcs/representativesCreate.ts
|
|
75062
|
-
function representativesCreate(client, request, options) {
|
|
75063
|
-
return new APIPromise($do103(client, request, options));
|
|
75064
|
-
}
|
|
75065
|
-
async function $do103(client, request, options) {
|
|
75066
|
-
const parsed = safeParse(request, (value) => CreateRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75503
|
+
const parsed = safeParse(request, (value) => CreateProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75067
75504
|
if (!parsed.ok) {
|
|
75068
75505
|
return [parsed, { status: "invalid" }];
|
|
75069
75506
|
}
|
|
75070
75507
|
const payload = parsed.value;
|
|
75071
|
-
const body = encodeJSON("body", payload.
|
|
75072
|
-
explode: true
|
|
75073
|
-
});
|
|
75508
|
+
const body = encodeJSON("body", payload.ProductRequest, { explode: true });
|
|
75074
75509
|
const pathParams = {
|
|
75075
75510
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
75076
75511
|
explode: false,
|
|
75077
75512
|
charEncoding: "percent"
|
|
75078
75513
|
})
|
|
75079
75514
|
};
|
|
75080
|
-
const path = pathToFunc("/accounts/{accountID}/
|
|
75515
|
+
const path = pathToFunc("/accounts/{accountID}/products")(pathParams);
|
|
75081
75516
|
const headers = new Headers(compactMap({
|
|
75082
75517
|
"Content-Type": "application/json",
|
|
75083
75518
|
Accept: "application/json",
|
|
@@ -75088,7 +75523,841 @@ async function $do103(client, request, options) {
|
|
|
75088
75523
|
const context = {
|
|
75089
75524
|
options: client._options,
|
|
75090
75525
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
75091
|
-
operationID: "
|
|
75526
|
+
operationID: "createProduct",
|
|
75527
|
+
oAuth2Scopes: null,
|
|
75528
|
+
resolvedSecurity: requestSecurity,
|
|
75529
|
+
securitySource: client._options.security,
|
|
75530
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
75531
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
75532
|
+
};
|
|
75533
|
+
const requestRes = client._createRequest(context, {
|
|
75534
|
+
security: requestSecurity,
|
|
75535
|
+
method: "POST",
|
|
75536
|
+
baseURL: options?.serverURL,
|
|
75537
|
+
path,
|
|
75538
|
+
headers,
|
|
75539
|
+
body,
|
|
75540
|
+
userAgent: client._options.userAgent,
|
|
75541
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
75542
|
+
}, options);
|
|
75543
|
+
if (!requestRes.ok) {
|
|
75544
|
+
return [requestRes, { status: "invalid" }];
|
|
75545
|
+
}
|
|
75546
|
+
const req = requestRes.value;
|
|
75547
|
+
const doResult = await client._do(req, {
|
|
75548
|
+
context,
|
|
75549
|
+
errorCodes: [
|
|
75550
|
+
"400",
|
|
75551
|
+
"401",
|
|
75552
|
+
"403",
|
|
75553
|
+
"404",
|
|
75554
|
+
"409",
|
|
75555
|
+
"422",
|
|
75556
|
+
"429",
|
|
75557
|
+
"4XX",
|
|
75558
|
+
"500",
|
|
75559
|
+
"504",
|
|
75560
|
+
"5XX"
|
|
75561
|
+
],
|
|
75562
|
+
retryConfig: context.retryConfig,
|
|
75563
|
+
retryCodes: context.retryCodes
|
|
75564
|
+
});
|
|
75565
|
+
if (!doResult.ok) {
|
|
75566
|
+
return [doResult, { status: "request-error", request: req }];
|
|
75567
|
+
}
|
|
75568
|
+
const response = doResult.value;
|
|
75569
|
+
const responseFields = {
|
|
75570
|
+
HttpMeta: { Response: response, Request: req }
|
|
75571
|
+
};
|
|
75572
|
+
const [result] = await match(json(201, CreateProductResponse$inboundSchema, {
|
|
75573
|
+
hdrs: true,
|
|
75574
|
+
key: "Result"
|
|
75575
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, ProductRequestValidationError$inboundSchema, {
|
|
75576
|
+
hdrs: true
|
|
75577
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
75578
|
+
if (!result.ok) {
|
|
75579
|
+
return [result, { status: "complete", request: req, response }];
|
|
75580
|
+
}
|
|
75581
|
+
return [result, { status: "complete", request: req, response }];
|
|
75582
|
+
}
|
|
75583
|
+
var init_productsCreate = __esm(() => {
|
|
75584
|
+
init_encodings();
|
|
75585
|
+
init_matchers();
|
|
75586
|
+
init_primitives();
|
|
75587
|
+
init_schemas();
|
|
75588
|
+
init_security();
|
|
75589
|
+
init_url();
|
|
75590
|
+
init_errors2();
|
|
75591
|
+
init_operations();
|
|
75592
|
+
init_async();
|
|
75593
|
+
});
|
|
75594
|
+
|
|
75595
|
+
// src/mcp-server/tools/productsCreate.ts
|
|
75596
|
+
var args101, tool$productsCreate;
|
|
75597
|
+
var init_productsCreate2 = __esm(() => {
|
|
75598
|
+
init_productsCreate();
|
|
75599
|
+
init_operations();
|
|
75600
|
+
init_tools();
|
|
75601
|
+
args101 = {
|
|
75602
|
+
request: CreateProductRequest$inboundSchema
|
|
75603
|
+
};
|
|
75604
|
+
tool$productsCreate = {
|
|
75605
|
+
name: "products-create",
|
|
75606
|
+
description: `Creates a new product for the specified account.`,
|
|
75607
|
+
args: args101,
|
|
75608
|
+
tool: async (client, args102, ctx) => {
|
|
75609
|
+
const [result, apiCall] = await productsCreate(client, args102.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75610
|
+
if (!result.ok) {
|
|
75611
|
+
return {
|
|
75612
|
+
content: [{ type: "text", text: result.error.message }],
|
|
75613
|
+
isError: true
|
|
75614
|
+
};
|
|
75615
|
+
}
|
|
75616
|
+
const value = result.value.result;
|
|
75617
|
+
return formatResult(value, apiCall);
|
|
75618
|
+
}
|
|
75619
|
+
};
|
|
75620
|
+
});
|
|
75621
|
+
|
|
75622
|
+
// src/funcs/productsDisable.ts
|
|
75623
|
+
function productsDisable(client, request, options) {
|
|
75624
|
+
return new APIPromise($do102(client, request, options));
|
|
75625
|
+
}
|
|
75626
|
+
async function $do102(client, request, options) {
|
|
75627
|
+
const parsed = safeParse(request, (value) => DisableProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75628
|
+
if (!parsed.ok) {
|
|
75629
|
+
return [parsed, { status: "invalid" }];
|
|
75630
|
+
}
|
|
75631
|
+
const payload = parsed.value;
|
|
75632
|
+
const body = null;
|
|
75633
|
+
const pathParams = {
|
|
75634
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
75635
|
+
explode: false,
|
|
75636
|
+
charEncoding: "percent"
|
|
75637
|
+
}),
|
|
75638
|
+
productID: encodeSimple("productID", payload.productID, {
|
|
75639
|
+
explode: false,
|
|
75640
|
+
charEncoding: "percent"
|
|
75641
|
+
})
|
|
75642
|
+
};
|
|
75643
|
+
const path = pathToFunc("/accounts/{accountID}/products/{productID}")(pathParams);
|
|
75644
|
+
const headers = new Headers(compactMap({
|
|
75645
|
+
Accept: "application/json",
|
|
75646
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
75647
|
+
}));
|
|
75648
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
75649
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75650
|
+
const context = {
|
|
75651
|
+
options: client._options,
|
|
75652
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
75653
|
+
operationID: "disableProduct",
|
|
75654
|
+
oAuth2Scopes: null,
|
|
75655
|
+
resolvedSecurity: requestSecurity,
|
|
75656
|
+
securitySource: client._options.security,
|
|
75657
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
75658
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
75659
|
+
};
|
|
75660
|
+
const requestRes = client._createRequest(context, {
|
|
75661
|
+
security: requestSecurity,
|
|
75662
|
+
method: "DELETE",
|
|
75663
|
+
baseURL: options?.serverURL,
|
|
75664
|
+
path,
|
|
75665
|
+
headers,
|
|
75666
|
+
body,
|
|
75667
|
+
userAgent: client._options.userAgent,
|
|
75668
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
75669
|
+
}, options);
|
|
75670
|
+
if (!requestRes.ok) {
|
|
75671
|
+
return [requestRes, { status: "invalid" }];
|
|
75672
|
+
}
|
|
75673
|
+
const req = requestRes.value;
|
|
75674
|
+
const doResult = await client._do(req, {
|
|
75675
|
+
context,
|
|
75676
|
+
errorCodes: [
|
|
75677
|
+
"400",
|
|
75678
|
+
"401",
|
|
75679
|
+
"403",
|
|
75680
|
+
"404",
|
|
75681
|
+
"409",
|
|
75682
|
+
"429",
|
|
75683
|
+
"4XX",
|
|
75684
|
+
"500",
|
|
75685
|
+
"504",
|
|
75686
|
+
"5XX"
|
|
75687
|
+
],
|
|
75688
|
+
retryConfig: context.retryConfig,
|
|
75689
|
+
retryCodes: context.retryCodes
|
|
75690
|
+
});
|
|
75691
|
+
if (!doResult.ok) {
|
|
75692
|
+
return [doResult, { status: "request-error", request: req }];
|
|
75693
|
+
}
|
|
75694
|
+
const response = doResult.value;
|
|
75695
|
+
const responseFields = {
|
|
75696
|
+
HttpMeta: { Response: response, Request: req }
|
|
75697
|
+
};
|
|
75698
|
+
const [result] = await match(nil(204, DisableProductResponse$inboundSchema.optional(), {
|
|
75699
|
+
hdrs: true
|
|
75700
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
75701
|
+
if (!result.ok) {
|
|
75702
|
+
return [result, { status: "complete", request: req, response }];
|
|
75703
|
+
}
|
|
75704
|
+
return [result, { status: "complete", request: req, response }];
|
|
75705
|
+
}
|
|
75706
|
+
var init_productsDisable = __esm(() => {
|
|
75707
|
+
init_encodings();
|
|
75708
|
+
init_matchers();
|
|
75709
|
+
init_primitives();
|
|
75710
|
+
init_schemas();
|
|
75711
|
+
init_security();
|
|
75712
|
+
init_url();
|
|
75713
|
+
init_errors2();
|
|
75714
|
+
init_operations();
|
|
75715
|
+
init_async();
|
|
75716
|
+
});
|
|
75717
|
+
|
|
75718
|
+
// src/mcp-server/tools/productsDisable.ts
|
|
75719
|
+
var args102, tool$productsDisable;
|
|
75720
|
+
var init_productsDisable2 = __esm(() => {
|
|
75721
|
+
init_productsDisable();
|
|
75722
|
+
init_operations();
|
|
75723
|
+
init_tools();
|
|
75724
|
+
args102 = {
|
|
75725
|
+
request: DisableProductRequest$inboundSchema
|
|
75726
|
+
};
|
|
75727
|
+
tool$productsDisable = {
|
|
75728
|
+
name: "products-disable",
|
|
75729
|
+
description: `Disable a product by ID.
|
|
75730
|
+
|
|
75731
|
+
The product will no longer be available, but will remain in the system for historical and reporting purposes.`,
|
|
75732
|
+
args: args102,
|
|
75733
|
+
tool: async (client, args103, ctx) => {
|
|
75734
|
+
const [result, apiCall] = await productsDisable(client, args103.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75735
|
+
if (!result.ok) {
|
|
75736
|
+
return {
|
|
75737
|
+
content: [{ type: "text", text: result.error.message }],
|
|
75738
|
+
isError: true
|
|
75739
|
+
};
|
|
75740
|
+
}
|
|
75741
|
+
return formatResult(undefined, apiCall);
|
|
75742
|
+
}
|
|
75743
|
+
};
|
|
75744
|
+
});
|
|
75745
|
+
|
|
75746
|
+
// src/funcs/productsGet.ts
|
|
75747
|
+
function productsGet(client, request, options) {
|
|
75748
|
+
return new APIPromise($do103(client, request, options));
|
|
75749
|
+
}
|
|
75750
|
+
async function $do103(client, request, options) {
|
|
75751
|
+
const parsed = safeParse(request, (value) => GetProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75752
|
+
if (!parsed.ok) {
|
|
75753
|
+
return [parsed, { status: "invalid" }];
|
|
75754
|
+
}
|
|
75755
|
+
const payload = parsed.value;
|
|
75756
|
+
const body = null;
|
|
75757
|
+
const pathParams = {
|
|
75758
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
75759
|
+
explode: false,
|
|
75760
|
+
charEncoding: "percent"
|
|
75761
|
+
}),
|
|
75762
|
+
productID: encodeSimple("productID", payload.productID, {
|
|
75763
|
+
explode: false,
|
|
75764
|
+
charEncoding: "percent"
|
|
75765
|
+
})
|
|
75766
|
+
};
|
|
75767
|
+
const path = pathToFunc("/accounts/{accountID}/products/{productID}")(pathParams);
|
|
75768
|
+
const headers = new Headers(compactMap({
|
|
75769
|
+
Accept: "application/json",
|
|
75770
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
75771
|
+
}));
|
|
75772
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
75773
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75774
|
+
const context = {
|
|
75775
|
+
options: client._options,
|
|
75776
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
75777
|
+
operationID: "getProduct",
|
|
75778
|
+
oAuth2Scopes: null,
|
|
75779
|
+
resolvedSecurity: requestSecurity,
|
|
75780
|
+
securitySource: client._options.security,
|
|
75781
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
75782
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
75783
|
+
};
|
|
75784
|
+
const requestRes = client._createRequest(context, {
|
|
75785
|
+
security: requestSecurity,
|
|
75786
|
+
method: "GET",
|
|
75787
|
+
baseURL: options?.serverURL,
|
|
75788
|
+
path,
|
|
75789
|
+
headers,
|
|
75790
|
+
body,
|
|
75791
|
+
userAgent: client._options.userAgent,
|
|
75792
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
75793
|
+
}, options);
|
|
75794
|
+
if (!requestRes.ok) {
|
|
75795
|
+
return [requestRes, { status: "invalid" }];
|
|
75796
|
+
}
|
|
75797
|
+
const req = requestRes.value;
|
|
75798
|
+
const doResult = await client._do(req, {
|
|
75799
|
+
context,
|
|
75800
|
+
errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
75801
|
+
retryConfig: context.retryConfig,
|
|
75802
|
+
retryCodes: context.retryCodes
|
|
75803
|
+
});
|
|
75804
|
+
if (!doResult.ok) {
|
|
75805
|
+
return [doResult, { status: "request-error", request: req }];
|
|
75806
|
+
}
|
|
75807
|
+
const response = doResult.value;
|
|
75808
|
+
const responseFields = {
|
|
75809
|
+
HttpMeta: { Response: response, Request: req }
|
|
75810
|
+
};
|
|
75811
|
+
const [result] = await match(json(200, GetProductResponse$inboundSchema, {
|
|
75812
|
+
hdrs: true,
|
|
75813
|
+
key: "Result"
|
|
75814
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
75815
|
+
if (!result.ok) {
|
|
75816
|
+
return [result, { status: "complete", request: req, response }];
|
|
75817
|
+
}
|
|
75818
|
+
return [result, { status: "complete", request: req, response }];
|
|
75819
|
+
}
|
|
75820
|
+
var init_productsGet = __esm(() => {
|
|
75821
|
+
init_encodings();
|
|
75822
|
+
init_matchers();
|
|
75823
|
+
init_primitives();
|
|
75824
|
+
init_schemas();
|
|
75825
|
+
init_security();
|
|
75826
|
+
init_url();
|
|
75827
|
+
init_operations();
|
|
75828
|
+
init_async();
|
|
75829
|
+
});
|
|
75830
|
+
|
|
75831
|
+
// src/mcp-server/tools/productsGet.ts
|
|
75832
|
+
var args103, tool$productsGet;
|
|
75833
|
+
var init_productsGet2 = __esm(() => {
|
|
75834
|
+
init_productsGet();
|
|
75835
|
+
init_operations();
|
|
75836
|
+
init_tools();
|
|
75837
|
+
args103 = {
|
|
75838
|
+
request: GetProductRequest$inboundSchema
|
|
75839
|
+
};
|
|
75840
|
+
tool$productsGet = {
|
|
75841
|
+
name: "products-get",
|
|
75842
|
+
description: `Retrieve a product by ID.`,
|
|
75843
|
+
args: args103,
|
|
75844
|
+
tool: async (client, args104, ctx) => {
|
|
75845
|
+
const [result, apiCall] = await productsGet(client, args104.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75846
|
+
if (!result.ok) {
|
|
75847
|
+
return {
|
|
75848
|
+
content: [{ type: "text", text: result.error.message }],
|
|
75849
|
+
isError: true
|
|
75850
|
+
};
|
|
75851
|
+
}
|
|
75852
|
+
const value = result.value.result;
|
|
75853
|
+
return formatResult(value, apiCall);
|
|
75854
|
+
}
|
|
75855
|
+
};
|
|
75856
|
+
});
|
|
75857
|
+
|
|
75858
|
+
// src/funcs/productsList.ts
|
|
75859
|
+
function productsList(client, request, options) {
|
|
75860
|
+
return new APIPromise($do104(client, request, options));
|
|
75861
|
+
}
|
|
75862
|
+
async function $do104(client, request, options) {
|
|
75863
|
+
const parsed = safeParse(request, (value) => ListProductsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75864
|
+
if (!parsed.ok) {
|
|
75865
|
+
return [parsed, { status: "invalid" }];
|
|
75866
|
+
}
|
|
75867
|
+
const payload = parsed.value;
|
|
75868
|
+
const body = null;
|
|
75869
|
+
const pathParams = {
|
|
75870
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
75871
|
+
explode: false,
|
|
75872
|
+
charEncoding: "percent"
|
|
75873
|
+
})
|
|
75874
|
+
};
|
|
75875
|
+
const path = pathToFunc("/accounts/{accountID}/products")(pathParams);
|
|
75876
|
+
const query = encodeFormQuery({
|
|
75877
|
+
count: payload.count,
|
|
75878
|
+
skip: payload.skip
|
|
75879
|
+
}, { explode: false });
|
|
75880
|
+
const headers = new Headers(compactMap({
|
|
75881
|
+
Accept: "application/json",
|
|
75882
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
75883
|
+
}));
|
|
75884
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
75885
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75886
|
+
const context = {
|
|
75887
|
+
options: client._options,
|
|
75888
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
75889
|
+
operationID: "listProducts",
|
|
75890
|
+
oAuth2Scopes: null,
|
|
75891
|
+
resolvedSecurity: requestSecurity,
|
|
75892
|
+
securitySource: client._options.security,
|
|
75893
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
75894
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
75895
|
+
};
|
|
75896
|
+
const requestRes = client._createRequest(context, {
|
|
75897
|
+
security: requestSecurity,
|
|
75898
|
+
method: "GET",
|
|
75899
|
+
baseURL: options?.serverURL,
|
|
75900
|
+
path,
|
|
75901
|
+
headers,
|
|
75902
|
+
query,
|
|
75903
|
+
body,
|
|
75904
|
+
userAgent: client._options.userAgent,
|
|
75905
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
75906
|
+
}, options);
|
|
75907
|
+
if (!requestRes.ok) {
|
|
75908
|
+
return [requestRes, { status: "invalid" }];
|
|
75909
|
+
}
|
|
75910
|
+
const req = requestRes.value;
|
|
75911
|
+
const doResult = await client._do(req, {
|
|
75912
|
+
context,
|
|
75913
|
+
errorCodes: ["401", "403", "429", "4XX", "500", "504", "5XX"],
|
|
75914
|
+
retryConfig: context.retryConfig,
|
|
75915
|
+
retryCodes: context.retryCodes
|
|
75916
|
+
});
|
|
75917
|
+
if (!doResult.ok) {
|
|
75918
|
+
return [doResult, { status: "request-error", request: req }];
|
|
75919
|
+
}
|
|
75920
|
+
const response = doResult.value;
|
|
75921
|
+
const responseFields = {
|
|
75922
|
+
HttpMeta: { Response: response, Request: req }
|
|
75923
|
+
};
|
|
75924
|
+
const [result] = await match(json(200, ListProductsResponse$inboundSchema, {
|
|
75925
|
+
hdrs: true,
|
|
75926
|
+
key: "Result"
|
|
75927
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
75928
|
+
if (!result.ok) {
|
|
75929
|
+
return [result, { status: "complete", request: req, response }];
|
|
75930
|
+
}
|
|
75931
|
+
return [result, { status: "complete", request: req, response }];
|
|
75932
|
+
}
|
|
75933
|
+
var init_productsList = __esm(() => {
|
|
75934
|
+
init_encodings();
|
|
75935
|
+
init_matchers();
|
|
75936
|
+
init_primitives();
|
|
75937
|
+
init_schemas();
|
|
75938
|
+
init_security();
|
|
75939
|
+
init_url();
|
|
75940
|
+
init_operations();
|
|
75941
|
+
init_async();
|
|
75942
|
+
});
|
|
75943
|
+
|
|
75944
|
+
// src/mcp-server/tools/productsList.ts
|
|
75945
|
+
var args104, tool$productsList;
|
|
75946
|
+
var init_productsList2 = __esm(() => {
|
|
75947
|
+
init_productsList();
|
|
75948
|
+
init_operations();
|
|
75949
|
+
init_tools();
|
|
75950
|
+
args104 = {
|
|
75951
|
+
request: ListProductsRequest$inboundSchema
|
|
75952
|
+
};
|
|
75953
|
+
tool$productsList = {
|
|
75954
|
+
name: "products-list",
|
|
75955
|
+
description: `List active (non-disabled) products for an account.`,
|
|
75956
|
+
args: args104,
|
|
75957
|
+
tool: async (client, args105, ctx) => {
|
|
75958
|
+
const [result, apiCall] = await productsList(client, args105.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75959
|
+
if (!result.ok) {
|
|
75960
|
+
return {
|
|
75961
|
+
content: [{ type: "text", text: result.error.message }],
|
|
75962
|
+
isError: true
|
|
75963
|
+
};
|
|
75964
|
+
}
|
|
75965
|
+
const value = result.value.result;
|
|
75966
|
+
return formatResult(value, apiCall);
|
|
75967
|
+
}
|
|
75968
|
+
};
|
|
75969
|
+
});
|
|
75970
|
+
|
|
75971
|
+
// src/funcs/productsUpdate.ts
|
|
75972
|
+
function productsUpdate(client, request, options) {
|
|
75973
|
+
return new APIPromise($do105(client, request, options));
|
|
75974
|
+
}
|
|
75975
|
+
async function $do105(client, request, options) {
|
|
75976
|
+
const parsed = safeParse(request, (value) => UpdateProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75977
|
+
if (!parsed.ok) {
|
|
75978
|
+
return [parsed, { status: "invalid" }];
|
|
75979
|
+
}
|
|
75980
|
+
const payload = parsed.value;
|
|
75981
|
+
const body = encodeJSON("body", payload.ProductRequest, { explode: true });
|
|
75982
|
+
const pathParams = {
|
|
75983
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
75984
|
+
explode: false,
|
|
75985
|
+
charEncoding: "percent"
|
|
75986
|
+
}),
|
|
75987
|
+
productID: encodeSimple("productID", payload.productID, {
|
|
75988
|
+
explode: false,
|
|
75989
|
+
charEncoding: "percent"
|
|
75990
|
+
})
|
|
75991
|
+
};
|
|
75992
|
+
const path = pathToFunc("/accounts/{accountID}/products/{productID}")(pathParams);
|
|
75993
|
+
const headers = new Headers(compactMap({
|
|
75994
|
+
"Content-Type": "application/json",
|
|
75995
|
+
Accept: "application/json",
|
|
75996
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
75997
|
+
}));
|
|
75998
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
75999
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
76000
|
+
const context = {
|
|
76001
|
+
options: client._options,
|
|
76002
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76003
|
+
operationID: "updateProduct",
|
|
76004
|
+
oAuth2Scopes: null,
|
|
76005
|
+
resolvedSecurity: requestSecurity,
|
|
76006
|
+
securitySource: client._options.security,
|
|
76007
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
76008
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
76009
|
+
};
|
|
76010
|
+
const requestRes = client._createRequest(context, {
|
|
76011
|
+
security: requestSecurity,
|
|
76012
|
+
method: "PUT",
|
|
76013
|
+
baseURL: options?.serverURL,
|
|
76014
|
+
path,
|
|
76015
|
+
headers,
|
|
76016
|
+
body,
|
|
76017
|
+
userAgent: client._options.userAgent,
|
|
76018
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
76019
|
+
}, options);
|
|
76020
|
+
if (!requestRes.ok) {
|
|
76021
|
+
return [requestRes, { status: "invalid" }];
|
|
76022
|
+
}
|
|
76023
|
+
const req = requestRes.value;
|
|
76024
|
+
const doResult = await client._do(req, {
|
|
76025
|
+
context,
|
|
76026
|
+
errorCodes: [
|
|
76027
|
+
"400",
|
|
76028
|
+
"401",
|
|
76029
|
+
"403",
|
|
76030
|
+
"404",
|
|
76031
|
+
"409",
|
|
76032
|
+
"422",
|
|
76033
|
+
"429",
|
|
76034
|
+
"4XX",
|
|
76035
|
+
"500",
|
|
76036
|
+
"504",
|
|
76037
|
+
"5XX"
|
|
76038
|
+
],
|
|
76039
|
+
retryConfig: context.retryConfig,
|
|
76040
|
+
retryCodes: context.retryCodes
|
|
76041
|
+
});
|
|
76042
|
+
if (!doResult.ok) {
|
|
76043
|
+
return [doResult, { status: "request-error", request: req }];
|
|
76044
|
+
}
|
|
76045
|
+
const response = doResult.value;
|
|
76046
|
+
const responseFields = {
|
|
76047
|
+
HttpMeta: { Response: response, Request: req }
|
|
76048
|
+
};
|
|
76049
|
+
const [result] = await match(json(200, UpdateProductResponse$inboundSchema, {
|
|
76050
|
+
hdrs: true,
|
|
76051
|
+
key: "Result"
|
|
76052
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, ProductRequestValidationError$inboundSchema, {
|
|
76053
|
+
hdrs: true
|
|
76054
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
76055
|
+
if (!result.ok) {
|
|
76056
|
+
return [result, { status: "complete", request: req, response }];
|
|
76057
|
+
}
|
|
76058
|
+
return [result, { status: "complete", request: req, response }];
|
|
76059
|
+
}
|
|
76060
|
+
var init_productsUpdate = __esm(() => {
|
|
76061
|
+
init_encodings();
|
|
76062
|
+
init_matchers();
|
|
76063
|
+
init_primitives();
|
|
76064
|
+
init_schemas();
|
|
76065
|
+
init_security();
|
|
76066
|
+
init_url();
|
|
76067
|
+
init_errors2();
|
|
76068
|
+
init_operations();
|
|
76069
|
+
init_async();
|
|
76070
|
+
});
|
|
76071
|
+
|
|
76072
|
+
// src/mcp-server/tools/productsUpdate.ts
|
|
76073
|
+
var args105, tool$productsUpdate;
|
|
76074
|
+
var init_productsUpdate2 = __esm(() => {
|
|
76075
|
+
init_productsUpdate();
|
|
76076
|
+
init_operations();
|
|
76077
|
+
init_tools();
|
|
76078
|
+
args105 = {
|
|
76079
|
+
request: UpdateProductRequest$inboundSchema
|
|
76080
|
+
};
|
|
76081
|
+
tool$productsUpdate = {
|
|
76082
|
+
name: "products-update",
|
|
76083
|
+
description: `Update a product and its options.`,
|
|
76084
|
+
args: args105,
|
|
76085
|
+
tool: async (client, args106, ctx) => {
|
|
76086
|
+
const [result, apiCall] = await productsUpdate(client, args106.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76087
|
+
if (!result.ok) {
|
|
76088
|
+
return {
|
|
76089
|
+
content: [{ type: "text", text: result.error.message }],
|
|
76090
|
+
isError: true
|
|
76091
|
+
};
|
|
76092
|
+
}
|
|
76093
|
+
const value = result.value.result;
|
|
76094
|
+
return formatResult(value, apiCall);
|
|
76095
|
+
}
|
|
76096
|
+
};
|
|
76097
|
+
});
|
|
76098
|
+
|
|
76099
|
+
// src/funcs/receiptsCreate.ts
|
|
76100
|
+
function receiptsCreate(client, request, options) {
|
|
76101
|
+
return new APIPromise($do106(client, request, options));
|
|
76102
|
+
}
|
|
76103
|
+
async function $do106(client, request, options) {
|
|
76104
|
+
const parsed = safeParse(request, (value) => arrayType(ReceiptRequest$outboundSchema).parse(value), "Input validation failed");
|
|
76105
|
+
if (!parsed.ok) {
|
|
76106
|
+
return [parsed, { status: "invalid" }];
|
|
76107
|
+
}
|
|
76108
|
+
const payload = parsed.value;
|
|
76109
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
76110
|
+
const path = pathToFunc("/receipts")();
|
|
76111
|
+
const headers = new Headers(compactMap({
|
|
76112
|
+
"Content-Type": "application/json",
|
|
76113
|
+
Accept: "application/json",
|
|
76114
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
76115
|
+
}));
|
|
76116
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
76117
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
76118
|
+
const context = {
|
|
76119
|
+
options: client._options,
|
|
76120
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76121
|
+
operationID: "createReceipts",
|
|
76122
|
+
oAuth2Scopes: null,
|
|
76123
|
+
resolvedSecurity: requestSecurity,
|
|
76124
|
+
securitySource: client._options.security,
|
|
76125
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
76126
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
76127
|
+
};
|
|
76128
|
+
const requestRes = client._createRequest(context, {
|
|
76129
|
+
security: requestSecurity,
|
|
76130
|
+
method: "POST",
|
|
76131
|
+
baseURL: options?.serverURL,
|
|
76132
|
+
path,
|
|
76133
|
+
headers,
|
|
76134
|
+
body,
|
|
76135
|
+
userAgent: client._options.userAgent,
|
|
76136
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
76137
|
+
}, options);
|
|
76138
|
+
if (!requestRes.ok) {
|
|
76139
|
+
return [requestRes, { status: "invalid" }];
|
|
76140
|
+
}
|
|
76141
|
+
const req = requestRes.value;
|
|
76142
|
+
const doResult = await client._do(req, {
|
|
76143
|
+
context,
|
|
76144
|
+
errorCodes: [
|
|
76145
|
+
"400",
|
|
76146
|
+
"401",
|
|
76147
|
+
"403",
|
|
76148
|
+
"404",
|
|
76149
|
+
"409",
|
|
76150
|
+
"422",
|
|
76151
|
+
"429",
|
|
76152
|
+
"4XX",
|
|
76153
|
+
"500",
|
|
76154
|
+
"504",
|
|
76155
|
+
"5XX"
|
|
76156
|
+
],
|
|
76157
|
+
retryConfig: context.retryConfig,
|
|
76158
|
+
retryCodes: context.retryCodes
|
|
76159
|
+
});
|
|
76160
|
+
if (!doResult.ok) {
|
|
76161
|
+
return [doResult, { status: "request-error", request: req }];
|
|
76162
|
+
}
|
|
76163
|
+
const response = doResult.value;
|
|
76164
|
+
const responseFields = {
|
|
76165
|
+
HttpMeta: { Response: response, Request: req }
|
|
76166
|
+
};
|
|
76167
|
+
const [result] = await match(json(201, CreateReceiptsResponse$inboundSchema, {
|
|
76168
|
+
hdrs: true,
|
|
76169
|
+
key: "Result"
|
|
76170
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 422, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
76171
|
+
if (!result.ok) {
|
|
76172
|
+
return [result, { status: "complete", request: req, response }];
|
|
76173
|
+
}
|
|
76174
|
+
return [result, { status: "complete", request: req, response }];
|
|
76175
|
+
}
|
|
76176
|
+
var init_receiptsCreate = __esm(() => {
|
|
76177
|
+
init_esm();
|
|
76178
|
+
init_encodings();
|
|
76179
|
+
init_matchers();
|
|
76180
|
+
init_primitives();
|
|
76181
|
+
init_schemas();
|
|
76182
|
+
init_security();
|
|
76183
|
+
init_url();
|
|
76184
|
+
init_components();
|
|
76185
|
+
init_errors2();
|
|
76186
|
+
init_operations();
|
|
76187
|
+
init_async();
|
|
76188
|
+
});
|
|
76189
|
+
|
|
76190
|
+
// src/mcp-server/tools/receiptsCreate.ts
|
|
76191
|
+
var args106, tool$receiptsCreate;
|
|
76192
|
+
var init_receiptsCreate2 = __esm(() => {
|
|
76193
|
+
init_esm();
|
|
76194
|
+
init_receiptsCreate();
|
|
76195
|
+
init_components();
|
|
76196
|
+
init_tools();
|
|
76197
|
+
args106 = {
|
|
76198
|
+
request: arrayType(ReceiptRequest$inboundSchema)
|
|
76199
|
+
};
|
|
76200
|
+
tool$receiptsCreate = {
|
|
76201
|
+
name: "receipts-create",
|
|
76202
|
+
description: ` Create receipts for transfers and scheduled transfers.
|
|
76203
|
+
|
|
76204
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76205
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
76206
|
+
args: args106,
|
|
76207
|
+
tool: async (client, args107, ctx) => {
|
|
76208
|
+
const [result, apiCall] = await receiptsCreate(client, args107.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76209
|
+
if (!result.ok) {
|
|
76210
|
+
return {
|
|
76211
|
+
content: [{ type: "text", text: result.error.message }],
|
|
76212
|
+
isError: true
|
|
76213
|
+
};
|
|
76214
|
+
}
|
|
76215
|
+
const value = result.value.result;
|
|
76216
|
+
return formatResult(value, apiCall);
|
|
76217
|
+
}
|
|
76218
|
+
};
|
|
76219
|
+
});
|
|
76220
|
+
|
|
76221
|
+
// src/funcs/receiptsList.ts
|
|
76222
|
+
function receiptsList(client, request, options) {
|
|
76223
|
+
return new APIPromise($do107(client, request, options));
|
|
76224
|
+
}
|
|
76225
|
+
async function $do107(client, request, options) {
|
|
76226
|
+
const parsed = safeParse(request, (value) => ListReceiptsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76227
|
+
if (!parsed.ok) {
|
|
76228
|
+
return [parsed, { status: "invalid" }];
|
|
76229
|
+
}
|
|
76230
|
+
const payload = parsed.value;
|
|
76231
|
+
const body = null;
|
|
76232
|
+
const path = pathToFunc("/receipts")();
|
|
76233
|
+
const query = encodeFormQuery({
|
|
76234
|
+
id: payload.id
|
|
76235
|
+
}, { explode: false });
|
|
76236
|
+
const headers = new Headers(compactMap({
|
|
76237
|
+
Accept: "application/json",
|
|
76238
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
76239
|
+
}));
|
|
76240
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
76241
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
76242
|
+
const context = {
|
|
76243
|
+
options: client._options,
|
|
76244
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76245
|
+
operationID: "listReceipts",
|
|
76246
|
+
oAuth2Scopes: null,
|
|
76247
|
+
resolvedSecurity: requestSecurity,
|
|
76248
|
+
securitySource: client._options.security,
|
|
76249
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
76250
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
76251
|
+
};
|
|
76252
|
+
const requestRes = client._createRequest(context, {
|
|
76253
|
+
security: requestSecurity,
|
|
76254
|
+
method: "GET",
|
|
76255
|
+
baseURL: options?.serverURL,
|
|
76256
|
+
path,
|
|
76257
|
+
headers,
|
|
76258
|
+
query,
|
|
76259
|
+
body,
|
|
76260
|
+
userAgent: client._options.userAgent,
|
|
76261
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
76262
|
+
}, options);
|
|
76263
|
+
if (!requestRes.ok) {
|
|
76264
|
+
return [requestRes, { status: "invalid" }];
|
|
76265
|
+
}
|
|
76266
|
+
const req = requestRes.value;
|
|
76267
|
+
const doResult = await client._do(req, {
|
|
76268
|
+
context,
|
|
76269
|
+
errorCodes: ["401", "403", "429", "4XX", "500", "504", "5XX"],
|
|
76270
|
+
retryConfig: context.retryConfig,
|
|
76271
|
+
retryCodes: context.retryCodes
|
|
76272
|
+
});
|
|
76273
|
+
if (!doResult.ok) {
|
|
76274
|
+
return [doResult, { status: "request-error", request: req }];
|
|
76275
|
+
}
|
|
76276
|
+
const response = doResult.value;
|
|
76277
|
+
const responseFields = {
|
|
76278
|
+
HttpMeta: { Response: response, Request: req }
|
|
76279
|
+
};
|
|
76280
|
+
const [result] = await match(json(200, ListReceiptsResponse$inboundSchema, {
|
|
76281
|
+
hdrs: true,
|
|
76282
|
+
key: "Result"
|
|
76283
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
76284
|
+
if (!result.ok) {
|
|
76285
|
+
return [result, { status: "complete", request: req, response }];
|
|
76286
|
+
}
|
|
76287
|
+
return [result, { status: "complete", request: req, response }];
|
|
76288
|
+
}
|
|
76289
|
+
var init_receiptsList = __esm(() => {
|
|
76290
|
+
init_encodings();
|
|
76291
|
+
init_matchers();
|
|
76292
|
+
init_primitives();
|
|
76293
|
+
init_schemas();
|
|
76294
|
+
init_security();
|
|
76295
|
+
init_url();
|
|
76296
|
+
init_operations();
|
|
76297
|
+
init_async();
|
|
76298
|
+
});
|
|
76299
|
+
|
|
76300
|
+
// src/mcp-server/tools/receiptsList.ts
|
|
76301
|
+
var args107, tool$receiptsList;
|
|
76302
|
+
var init_receiptsList2 = __esm(() => {
|
|
76303
|
+
init_receiptsList();
|
|
76304
|
+
init_operations();
|
|
76305
|
+
init_tools();
|
|
76306
|
+
args107 = {
|
|
76307
|
+
request: ListReceiptsRequest$inboundSchema
|
|
76308
|
+
};
|
|
76309
|
+
tool$receiptsList = {
|
|
76310
|
+
name: "receipts-list",
|
|
76311
|
+
description: `List receipts by transferID, scheduleID, or occurrenceID.
|
|
76312
|
+
|
|
76313
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76314
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
76315
|
+
args: args107,
|
|
76316
|
+
tool: async (client, args108, ctx) => {
|
|
76317
|
+
const [result, apiCall] = await receiptsList(client, args108.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76318
|
+
if (!result.ok) {
|
|
76319
|
+
return {
|
|
76320
|
+
content: [{ type: "text", text: result.error.message }],
|
|
76321
|
+
isError: true
|
|
76322
|
+
};
|
|
76323
|
+
}
|
|
76324
|
+
const value = result.value.result;
|
|
76325
|
+
return formatResult(value, apiCall);
|
|
76326
|
+
}
|
|
76327
|
+
};
|
|
76328
|
+
});
|
|
76329
|
+
|
|
76330
|
+
// src/funcs/representativesCreate.ts
|
|
76331
|
+
function representativesCreate(client, request, options) {
|
|
76332
|
+
return new APIPromise($do108(client, request, options));
|
|
76333
|
+
}
|
|
76334
|
+
async function $do108(client, request, options) {
|
|
76335
|
+
const parsed = safeParse(request, (value) => CreateRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76336
|
+
if (!parsed.ok) {
|
|
76337
|
+
return [parsed, { status: "invalid" }];
|
|
76338
|
+
}
|
|
76339
|
+
const payload = parsed.value;
|
|
76340
|
+
const body = encodeJSON("body", payload.CreateRepresentative, {
|
|
76341
|
+
explode: true
|
|
76342
|
+
});
|
|
76343
|
+
const pathParams = {
|
|
76344
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
76345
|
+
explode: false,
|
|
76346
|
+
charEncoding: "percent"
|
|
76347
|
+
})
|
|
76348
|
+
};
|
|
76349
|
+
const path = pathToFunc("/accounts/{accountID}/representatives")(pathParams);
|
|
76350
|
+
const headers = new Headers(compactMap({
|
|
76351
|
+
"Content-Type": "application/json",
|
|
76352
|
+
Accept: "application/json",
|
|
76353
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
76354
|
+
}));
|
|
76355
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
76356
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
76357
|
+
const context = {
|
|
76358
|
+
options: client._options,
|
|
76359
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76360
|
+
operationID: "createRepresentative",
|
|
75092
76361
|
oAuth2Scopes: null,
|
|
75093
76362
|
resolvedSecurity: requestSecurity,
|
|
75094
76363
|
securitySource: client._options.security,
|
|
@@ -75158,12 +76427,12 @@ var init_representativesCreate = __esm(() => {
|
|
|
75158
76427
|
});
|
|
75159
76428
|
|
|
75160
76429
|
// src/mcp-server/tools/representativesCreate.ts
|
|
75161
|
-
var
|
|
76430
|
+
var args108, tool$representativesCreate;
|
|
75162
76431
|
var init_representativesCreate2 = __esm(() => {
|
|
75163
76432
|
init_representativesCreate();
|
|
75164
76433
|
init_operations();
|
|
75165
76434
|
init_tools();
|
|
75166
|
-
|
|
76435
|
+
args108 = {
|
|
75167
76436
|
request: CreateRepresentativeRequest$inboundSchema
|
|
75168
76437
|
};
|
|
75169
76438
|
tool$representativesCreate = {
|
|
@@ -75174,9 +76443,9 @@ Read our [business representatives guide](https://docs.moov.io/guides/accounts/r
|
|
|
75174
76443
|
|
|
75175
76444
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75176
76445
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
75177
|
-
args:
|
|
75178
|
-
tool: async (client,
|
|
75179
|
-
const [result, apiCall] = await representativesCreate(client,
|
|
76446
|
+
args: args108,
|
|
76447
|
+
tool: async (client, args109, ctx) => {
|
|
76448
|
+
const [result, apiCall] = await representativesCreate(client, args109.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75180
76449
|
if (!result.ok) {
|
|
75181
76450
|
return {
|
|
75182
76451
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75191,9 +76460,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
75191
76460
|
|
|
75192
76461
|
// src/funcs/representativesDelete.ts
|
|
75193
76462
|
function representativesDelete(client, request, options) {
|
|
75194
|
-
return new APIPromise($
|
|
76463
|
+
return new APIPromise($do109(client, request, options));
|
|
75195
76464
|
}
|
|
75196
|
-
async function $
|
|
76465
|
+
async function $do109(client, request, options) {
|
|
75197
76466
|
const parsed = safeParse(request, (value) => DeleteRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75198
76467
|
if (!parsed.ok) {
|
|
75199
76468
|
return [parsed, { status: "invalid" }];
|
|
@@ -75281,12 +76550,12 @@ var init_representativesDelete = __esm(() => {
|
|
|
75281
76550
|
});
|
|
75282
76551
|
|
|
75283
76552
|
// src/mcp-server/tools/representativesDelete.ts
|
|
75284
|
-
var
|
|
76553
|
+
var args109, tool$representativesDelete;
|
|
75285
76554
|
var init_representativesDelete2 = __esm(() => {
|
|
75286
76555
|
init_representativesDelete();
|
|
75287
76556
|
init_operations();
|
|
75288
76557
|
init_tools();
|
|
75289
|
-
|
|
76558
|
+
args109 = {
|
|
75290
76559
|
request: DeleteRepresentativeRequest$inboundSchema
|
|
75291
76560
|
};
|
|
75292
76561
|
tool$representativesDelete = {
|
|
@@ -75295,9 +76564,9 @@ var init_representativesDelete2 = __esm(() => {
|
|
|
75295
76564
|
|
|
75296
76565
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75297
76566
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
75298
|
-
args:
|
|
75299
|
-
tool: async (client,
|
|
75300
|
-
const [result, apiCall] = await representativesDelete(client,
|
|
76567
|
+
args: args109,
|
|
76568
|
+
tool: async (client, args110, ctx) => {
|
|
76569
|
+
const [result, apiCall] = await representativesDelete(client, args110.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75301
76570
|
if (!result.ok) {
|
|
75302
76571
|
return {
|
|
75303
76572
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75311,9 +76580,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
75311
76580
|
|
|
75312
76581
|
// src/funcs/representativesGet.ts
|
|
75313
76582
|
function representativesGet(client, request, options) {
|
|
75314
|
-
return new APIPromise($
|
|
76583
|
+
return new APIPromise($do110(client, request, options));
|
|
75315
76584
|
}
|
|
75316
|
-
async function $
|
|
76585
|
+
async function $do110(client, request, options) {
|
|
75317
76586
|
const parsed = safeParse(request, (value) => GetRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75318
76587
|
if (!parsed.ok) {
|
|
75319
76588
|
return [parsed, { status: "invalid" }];
|
|
@@ -75392,12 +76661,12 @@ var init_representativesGet = __esm(() => {
|
|
|
75392
76661
|
});
|
|
75393
76662
|
|
|
75394
76663
|
// src/mcp-server/tools/representativesGet.ts
|
|
75395
|
-
var
|
|
76664
|
+
var args110, tool$representativesGet;
|
|
75396
76665
|
var init_representativesGet2 = __esm(() => {
|
|
75397
76666
|
init_representativesGet();
|
|
75398
76667
|
init_operations();
|
|
75399
76668
|
init_tools();
|
|
75400
|
-
|
|
76669
|
+
args110 = {
|
|
75401
76670
|
request: GetRepresentativeRequest$inboundSchema
|
|
75402
76671
|
};
|
|
75403
76672
|
tool$representativesGet = {
|
|
@@ -75406,9 +76675,9 @@ var init_representativesGet2 = __esm(() => {
|
|
|
75406
76675
|
|
|
75407
76676
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75408
76677
|
you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.`,
|
|
75409
|
-
args:
|
|
75410
|
-
tool: async (client,
|
|
75411
|
-
const [result, apiCall] = await representativesGet(client,
|
|
76678
|
+
args: args110,
|
|
76679
|
+
tool: async (client, args111, ctx) => {
|
|
76680
|
+
const [result, apiCall] = await representativesGet(client, args111.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75412
76681
|
if (!result.ok) {
|
|
75413
76682
|
return {
|
|
75414
76683
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75423,9 +76692,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.
|
|
|
75423
76692
|
|
|
75424
76693
|
// src/funcs/representativesList.ts
|
|
75425
76694
|
function representativesList(client, request, options) {
|
|
75426
|
-
return new APIPromise($
|
|
76695
|
+
return new APIPromise($do111(client, request, options));
|
|
75427
76696
|
}
|
|
75428
|
-
async function $
|
|
76697
|
+
async function $do111(client, request, options) {
|
|
75429
76698
|
const parsed = safeParse(request, (value) => ListRepresentativesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75430
76699
|
if (!parsed.ok) {
|
|
75431
76700
|
return [parsed, { status: "invalid" }];
|
|
@@ -75503,12 +76772,12 @@ var init_representativesList = __esm(() => {
|
|
|
75503
76772
|
});
|
|
75504
76773
|
|
|
75505
76774
|
// src/mcp-server/tools/representativesList.ts
|
|
75506
|
-
var
|
|
76775
|
+
var args111, tool$representativesList;
|
|
75507
76776
|
var init_representativesList2 = __esm(() => {
|
|
75508
76777
|
init_representativesList();
|
|
75509
76778
|
init_operations();
|
|
75510
76779
|
init_tools();
|
|
75511
|
-
|
|
76780
|
+
args111 = {
|
|
75512
76781
|
request: ListRepresentativesRequest$inboundSchema
|
|
75513
76782
|
};
|
|
75514
76783
|
tool$representativesList = {
|
|
@@ -75520,9 +76789,9 @@ Read our [business representatives guide](https://docs.moov.io/guides/accounts/r
|
|
|
75520
76789
|
|
|
75521
76790
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75522
76791
|
you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.`,
|
|
75523
|
-
args:
|
|
75524
|
-
tool: async (client,
|
|
75525
|
-
const [result, apiCall] = await representativesList(client,
|
|
76792
|
+
args: args111,
|
|
76793
|
+
tool: async (client, args112, ctx) => {
|
|
76794
|
+
const [result, apiCall] = await representativesList(client, args112.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75526
76795
|
if (!result.ok) {
|
|
75527
76796
|
return {
|
|
75528
76797
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75537,9 +76806,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.
|
|
|
75537
76806
|
|
|
75538
76807
|
// src/funcs/representativesUpdate.ts
|
|
75539
76808
|
function representativesUpdate(client, request, options) {
|
|
75540
|
-
return new APIPromise($
|
|
76809
|
+
return new APIPromise($do112(client, request, options));
|
|
75541
76810
|
}
|
|
75542
|
-
async function $
|
|
76811
|
+
async function $do112(client, request, options) {
|
|
75543
76812
|
const parsed = safeParse(request, (value) => UpdateRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75544
76813
|
if (!parsed.ok) {
|
|
75545
76814
|
return [parsed, { status: "invalid" }];
|
|
@@ -75633,12 +76902,12 @@ var init_representativesUpdate = __esm(() => {
|
|
|
75633
76902
|
});
|
|
75634
76903
|
|
|
75635
76904
|
// src/mcp-server/tools/representativesUpdate.ts
|
|
75636
|
-
var
|
|
76905
|
+
var args112, tool$representativesUpdate;
|
|
75637
76906
|
var init_representativesUpdate2 = __esm(() => {
|
|
75638
76907
|
init_representativesUpdate();
|
|
75639
76908
|
init_operations();
|
|
75640
76909
|
init_tools();
|
|
75641
|
-
|
|
76910
|
+
args112 = {
|
|
75642
76911
|
request: UpdateRepresentativeRequest$inboundSchema
|
|
75643
76912
|
};
|
|
75644
76913
|
tool$representativesUpdate = {
|
|
@@ -75660,9 +76929,9 @@ If you need to update information in a locked state, please contact Moov support
|
|
|
75660
76929
|
|
|
75661
76930
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75662
76931
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
75663
|
-
args:
|
|
75664
|
-
tool: async (client,
|
|
75665
|
-
const [result, apiCall] = await representativesUpdate(client,
|
|
76932
|
+
args: args112,
|
|
76933
|
+
tool: async (client, args113, ctx) => {
|
|
76934
|
+
const [result, apiCall] = await representativesUpdate(client, args113.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75666
76935
|
if (!result.ok) {
|
|
75667
76936
|
return {
|
|
75668
76937
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75677,9 +76946,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
75677
76946
|
|
|
75678
76947
|
// src/funcs/schedulingCancel.ts
|
|
75679
76948
|
function schedulingCancel(client, request, options) {
|
|
75680
|
-
return new APIPromise($
|
|
76949
|
+
return new APIPromise($do113(client, request, options));
|
|
75681
76950
|
}
|
|
75682
|
-
async function $
|
|
76951
|
+
async function $do113(client, request, options) {
|
|
75683
76952
|
const parsed = safeParse(request, (value) => CancelScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75684
76953
|
if (!parsed.ok) {
|
|
75685
76954
|
return [parsed, { status: "invalid" }];
|
|
@@ -75772,12 +77041,12 @@ var init_schedulingCancel = __esm(() => {
|
|
|
75772
77041
|
});
|
|
75773
77042
|
|
|
75774
77043
|
// src/mcp-server/tools/schedulingCancel.ts
|
|
75775
|
-
var
|
|
77044
|
+
var args113, tool$schedulingCancel;
|
|
75776
77045
|
var init_schedulingCancel2 = __esm(() => {
|
|
75777
77046
|
init_schedulingCancel();
|
|
75778
77047
|
init_operations();
|
|
75779
77048
|
init_tools();
|
|
75780
|
-
|
|
77049
|
+
args113 = {
|
|
75781
77050
|
request: CancelScheduleRequest$inboundSchema
|
|
75782
77051
|
};
|
|
75783
77052
|
tool$schedulingCancel = {
|
|
@@ -75786,9 +77055,9 @@ var init_schedulingCancel2 = __esm(() => {
|
|
|
75786
77055
|
|
|
75787
77056
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75788
77057
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
75789
|
-
args:
|
|
75790
|
-
tool: async (client,
|
|
75791
|
-
const [result, apiCall] = await schedulingCancel(client,
|
|
77058
|
+
args: args113,
|
|
77059
|
+
tool: async (client, args114, ctx) => {
|
|
77060
|
+
const [result, apiCall] = await schedulingCancel(client, args114.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75792
77061
|
if (!result.ok) {
|
|
75793
77062
|
return {
|
|
75794
77063
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75802,9 +77071,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
75802
77071
|
|
|
75803
77072
|
// src/funcs/schedulingCreate.ts
|
|
75804
77073
|
function schedulingCreate(client, request, options) {
|
|
75805
|
-
return new APIPromise($
|
|
77074
|
+
return new APIPromise($do114(client, request, options));
|
|
75806
77075
|
}
|
|
75807
|
-
async function $
|
|
77076
|
+
async function $do114(client, request, options) {
|
|
75808
77077
|
const parsed = safeParse(request, (value) => CreateScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75809
77078
|
if (!parsed.ok) {
|
|
75810
77079
|
return [parsed, { status: "invalid" }];
|
|
@@ -75898,12 +77167,12 @@ var init_schedulingCreate = __esm(() => {
|
|
|
75898
77167
|
});
|
|
75899
77168
|
|
|
75900
77169
|
// src/mcp-server/tools/schedulingCreate.ts
|
|
75901
|
-
var
|
|
77170
|
+
var args114, tool$schedulingCreate;
|
|
75902
77171
|
var init_schedulingCreate2 = __esm(() => {
|
|
75903
77172
|
init_schedulingCreate();
|
|
75904
77173
|
init_operations();
|
|
75905
77174
|
init_tools();
|
|
75906
|
-
|
|
77175
|
+
args114 = {
|
|
75907
77176
|
request: CreateScheduleRequest$inboundSchema
|
|
75908
77177
|
};
|
|
75909
77178
|
tool$schedulingCreate = {
|
|
@@ -75912,9 +77181,9 @@ var init_schedulingCreate2 = __esm(() => {
|
|
|
75912
77181
|
|
|
75913
77182
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75914
77183
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
75915
|
-
args:
|
|
75916
|
-
tool: async (client,
|
|
75917
|
-
const [result, apiCall] = await schedulingCreate(client,
|
|
77184
|
+
args: args114,
|
|
77185
|
+
tool: async (client, args115, ctx) => {
|
|
77186
|
+
const [result, apiCall] = await schedulingCreate(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75918
77187
|
if (!result.ok) {
|
|
75919
77188
|
return {
|
|
75920
77189
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75929,9 +77198,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
75929
77198
|
|
|
75930
77199
|
// src/funcs/schedulingGet.ts
|
|
75931
77200
|
function schedulingGet(client, request, options) {
|
|
75932
|
-
return new APIPromise($
|
|
77201
|
+
return new APIPromise($do115(client, request, options));
|
|
75933
77202
|
}
|
|
75934
|
-
async function $
|
|
77203
|
+
async function $do115(client, request, options) {
|
|
75935
77204
|
const parsed = safeParse(request, (value) => GetSchedulesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75936
77205
|
if (!parsed.ok) {
|
|
75937
77206
|
return [parsed, { status: "invalid" }];
|
|
@@ -76013,12 +77282,12 @@ var init_schedulingGet = __esm(() => {
|
|
|
76013
77282
|
});
|
|
76014
77283
|
|
|
76015
77284
|
// src/mcp-server/tools/schedulingGet.ts
|
|
76016
|
-
var
|
|
77285
|
+
var args115, tool$schedulingGet;
|
|
76017
77286
|
var init_schedulingGet2 = __esm(() => {
|
|
76018
77287
|
init_schedulingGet();
|
|
76019
77288
|
init_operations();
|
|
76020
77289
|
init_tools();
|
|
76021
|
-
|
|
77290
|
+
args115 = {
|
|
76022
77291
|
request: GetSchedulesRequest$inboundSchema
|
|
76023
77292
|
};
|
|
76024
77293
|
tool$schedulingGet = {
|
|
@@ -76027,9 +77296,9 @@ var init_schedulingGet2 = __esm(() => {
|
|
|
76027
77296
|
|
|
76028
77297
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76029
77298
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
76030
|
-
args:
|
|
76031
|
-
tool: async (client,
|
|
76032
|
-
const [result, apiCall] = await schedulingGet(client,
|
|
77299
|
+
args: args115,
|
|
77300
|
+
tool: async (client, args116, ctx) => {
|
|
77301
|
+
const [result, apiCall] = await schedulingGet(client, args116.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76033
77302
|
if (!result.ok) {
|
|
76034
77303
|
return {
|
|
76035
77304
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76044,9 +77313,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
76044
77313
|
|
|
76045
77314
|
// src/funcs/schedulingGetOccurrance.ts
|
|
76046
77315
|
function schedulingGetOccurrance(client, request, options) {
|
|
76047
|
-
return new APIPromise($
|
|
77316
|
+
return new APIPromise($do116(client, request, options));
|
|
76048
77317
|
}
|
|
76049
|
-
async function $
|
|
77318
|
+
async function $do116(client, request, options) {
|
|
76050
77319
|
const parsed = safeParse(request, (value) => GetScheduledOccurrenceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76051
77320
|
if (!parsed.ok) {
|
|
76052
77321
|
return [parsed, { status: "invalid" }];
|
|
@@ -76129,12 +77398,12 @@ var init_schedulingGetOccurrance = __esm(() => {
|
|
|
76129
77398
|
});
|
|
76130
77399
|
|
|
76131
77400
|
// src/mcp-server/tools/schedulingGetOccurrance.ts
|
|
76132
|
-
var
|
|
77401
|
+
var args116, tool$schedulingGetOccurrance;
|
|
76133
77402
|
var init_schedulingGetOccurrance2 = __esm(() => {
|
|
76134
77403
|
init_schedulingGetOccurrance();
|
|
76135
77404
|
init_operations();
|
|
76136
77405
|
init_tools();
|
|
76137
|
-
|
|
77406
|
+
args116 = {
|
|
76138
77407
|
request: GetScheduledOccurrenceRequest$inboundSchema
|
|
76139
77408
|
};
|
|
76140
77409
|
tool$schedulingGetOccurrance = {
|
|
@@ -76143,9 +77412,9 @@ var init_schedulingGetOccurrance2 = __esm(() => {
|
|
|
76143
77412
|
|
|
76144
77413
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76145
77414
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
76146
|
-
args:
|
|
76147
|
-
tool: async (client,
|
|
76148
|
-
const [result, apiCall] = await schedulingGetOccurrance(client,
|
|
77415
|
+
args: args116,
|
|
77416
|
+
tool: async (client, args117, ctx) => {
|
|
77417
|
+
const [result, apiCall] = await schedulingGetOccurrance(client, args117.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76149
77418
|
if (!result.ok) {
|
|
76150
77419
|
return {
|
|
76151
77420
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76160,9 +77429,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
76160
77429
|
|
|
76161
77430
|
// src/funcs/schedulingList.ts
|
|
76162
77431
|
function schedulingList(client, request, options) {
|
|
76163
|
-
return new APIPromise($
|
|
77432
|
+
return new APIPromise($do117(client, request, options));
|
|
76164
77433
|
}
|
|
76165
|
-
async function $
|
|
77434
|
+
async function $do117(client, request, options) {
|
|
76166
77435
|
const parsed = safeParse(request, (value) => ListSchedulesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76167
77436
|
if (!parsed.ok) {
|
|
76168
77437
|
return [parsed, { status: "invalid" }];
|
|
@@ -76246,12 +77515,12 @@ var init_schedulingList = __esm(() => {
|
|
|
76246
77515
|
});
|
|
76247
77516
|
|
|
76248
77517
|
// src/mcp-server/tools/schedulingList.ts
|
|
76249
|
-
var
|
|
77518
|
+
var args117, tool$schedulingList;
|
|
76250
77519
|
var init_schedulingList2 = __esm(() => {
|
|
76251
77520
|
init_schedulingList();
|
|
76252
77521
|
init_operations();
|
|
76253
77522
|
init_tools();
|
|
76254
|
-
|
|
77523
|
+
args117 = {
|
|
76255
77524
|
request: ListSchedulesRequest$inboundSchema
|
|
76256
77525
|
};
|
|
76257
77526
|
tool$schedulingList = {
|
|
@@ -76260,9 +77529,9 @@ var init_schedulingList2 = __esm(() => {
|
|
|
76260
77529
|
|
|
76261
77530
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76262
77531
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
76263
|
-
args:
|
|
76264
|
-
tool: async (client,
|
|
76265
|
-
const [result, apiCall] = await schedulingList(client,
|
|
77532
|
+
args: args117,
|
|
77533
|
+
tool: async (client, args118, ctx) => {
|
|
77534
|
+
const [result, apiCall] = await schedulingList(client, args118.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76266
77535
|
if (!result.ok) {
|
|
76267
77536
|
return {
|
|
76268
77537
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76277,9 +77546,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
76277
77546
|
|
|
76278
77547
|
// src/funcs/schedulingUpdate.ts
|
|
76279
77548
|
function schedulingUpdate(client, request, options) {
|
|
76280
|
-
return new APIPromise($
|
|
77549
|
+
return new APIPromise($do118(client, request, options));
|
|
76281
77550
|
}
|
|
76282
|
-
async function $
|
|
77551
|
+
async function $do118(client, request, options) {
|
|
76283
77552
|
const parsed = safeParse(request, (value) => UpdateScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76284
77553
|
if (!parsed.ok) {
|
|
76285
77554
|
return [parsed, { status: "invalid" }];
|
|
@@ -76377,12 +77646,12 @@ var init_schedulingUpdate = __esm(() => {
|
|
|
76377
77646
|
});
|
|
76378
77647
|
|
|
76379
77648
|
// src/mcp-server/tools/schedulingUpdate.ts
|
|
76380
|
-
var
|
|
77649
|
+
var args118, tool$schedulingUpdate;
|
|
76381
77650
|
var init_schedulingUpdate2 = __esm(() => {
|
|
76382
77651
|
init_schedulingUpdate();
|
|
76383
77652
|
init_operations();
|
|
76384
77653
|
init_tools();
|
|
76385
|
-
|
|
77654
|
+
args118 = {
|
|
76386
77655
|
request: UpdateScheduleRequest$inboundSchema
|
|
76387
77656
|
};
|
|
76388
77657
|
tool$schedulingUpdate = {
|
|
@@ -76391,9 +77660,9 @@ var init_schedulingUpdate2 = __esm(() => {
|
|
|
76391
77660
|
|
|
76392
77661
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76393
77662
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
76394
|
-
args:
|
|
76395
|
-
tool: async (client,
|
|
76396
|
-
const [result, apiCall] = await schedulingUpdate(client,
|
|
77663
|
+
args: args118,
|
|
77664
|
+
tool: async (client, args119, ctx) => {
|
|
77665
|
+
const [result, apiCall] = await schedulingUpdate(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76397
77666
|
if (!result.ok) {
|
|
76398
77667
|
return {
|
|
76399
77668
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76408,9 +77677,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
76408
77677
|
|
|
76409
77678
|
// src/funcs/statementsGet.ts
|
|
76410
77679
|
function statementsGet(client, request, options) {
|
|
76411
|
-
return new APIPromise($
|
|
77680
|
+
return new APIPromise($do119(client, request, options));
|
|
76412
77681
|
}
|
|
76413
|
-
async function $
|
|
77682
|
+
async function $do119(client, request, options) {
|
|
76414
77683
|
const parsed = safeParse(request, (value) => GetStatementRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76415
77684
|
if (!parsed.ok) {
|
|
76416
77685
|
return [parsed, { status: "invalid" }];
|
|
@@ -76496,12 +77765,12 @@ var init_statementsGet = __esm(() => {
|
|
|
76496
77765
|
});
|
|
76497
77766
|
|
|
76498
77767
|
// src/mcp-server/tools/statementsGet.ts
|
|
76499
|
-
var
|
|
77768
|
+
var args119, tool$statementsGet;
|
|
76500
77769
|
var init_statementsGet2 = __esm(() => {
|
|
76501
77770
|
init_statementsGet();
|
|
76502
77771
|
init_operations();
|
|
76503
77772
|
init_tools();
|
|
76504
|
-
|
|
77773
|
+
args119 = {
|
|
76505
77774
|
request: GetStatementRequest$inboundSchema
|
|
76506
77775
|
};
|
|
76507
77776
|
tool$statementsGet = {
|
|
@@ -76512,9 +77781,9 @@ Use the \`Accept\` header to specify the format of the response. Supported forma
|
|
|
76512
77781
|
|
|
76513
77782
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76514
77783
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
76515
|
-
args:
|
|
76516
|
-
tool: async (client,
|
|
76517
|
-
const [result, apiCall] = await statementsGet(client,
|
|
77784
|
+
args: args119,
|
|
77785
|
+
tool: async (client, args120, ctx) => {
|
|
77786
|
+
const [result, apiCall] = await statementsGet(client, args120.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76518
77787
|
if (!result.ok) {
|
|
76519
77788
|
return {
|
|
76520
77789
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76529,9 +77798,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
76529
77798
|
|
|
76530
77799
|
// src/funcs/statementsList.ts
|
|
76531
77800
|
function statementsList(client, request, options) {
|
|
76532
|
-
return new APIPromise($
|
|
77801
|
+
return new APIPromise($do120(client, request, options));
|
|
76533
77802
|
}
|
|
76534
|
-
async function $
|
|
77803
|
+
async function $do120(client, request, options) {
|
|
76535
77804
|
const parsed = safeParse(request, (value) => ListStatementsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76536
77805
|
if (!parsed.ok) {
|
|
76537
77806
|
return [parsed, { status: "invalid" }];
|
|
@@ -76617,12 +77886,12 @@ var init_statementsList = __esm(() => {
|
|
|
76617
77886
|
});
|
|
76618
77887
|
|
|
76619
77888
|
// src/mcp-server/tools/statementsList.ts
|
|
76620
|
-
var
|
|
77889
|
+
var args120, tool$statementsList;
|
|
76621
77890
|
var init_statementsList2 = __esm(() => {
|
|
76622
77891
|
init_statementsList();
|
|
76623
77892
|
init_operations();
|
|
76624
77893
|
init_tools();
|
|
76625
|
-
|
|
77894
|
+
args120 = {
|
|
76626
77895
|
request: ListStatementsRequest$inboundSchema
|
|
76627
77896
|
};
|
|
76628
77897
|
tool$statementsList = {
|
|
@@ -76631,9 +77900,9 @@ var init_statementsList2 = __esm(() => {
|
|
|
76631
77900
|
|
|
76632
77901
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76633
77902
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
76634
|
-
args:
|
|
76635
|
-
tool: async (client,
|
|
76636
|
-
const [result, apiCall] = await statementsList(client,
|
|
77903
|
+
args: args120,
|
|
77904
|
+
tool: async (client, args121, ctx) => {
|
|
77905
|
+
const [result, apiCall] = await statementsList(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76637
77906
|
if (!result.ok) {
|
|
76638
77907
|
return {
|
|
76639
77908
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76648,9 +77917,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
76648
77917
|
|
|
76649
77918
|
// src/funcs/supportCreateTicket.ts
|
|
76650
77919
|
function supportCreateTicket(client, request, options) {
|
|
76651
|
-
return new APIPromise($
|
|
77920
|
+
return new APIPromise($do121(client, request, options));
|
|
76652
77921
|
}
|
|
76653
|
-
async function $
|
|
77922
|
+
async function $do121(client, request, options) {
|
|
76654
77923
|
const parsed = safeParse(request, (value) => CreateTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76655
77924
|
if (!parsed.ok) {
|
|
76656
77925
|
return [parsed, { status: "invalid" }];
|
|
@@ -76742,12 +78011,12 @@ var init_supportCreateTicket = __esm(() => {
|
|
|
76742
78011
|
});
|
|
76743
78012
|
|
|
76744
78013
|
// src/mcp-server/tools/supportCreateTicket.ts
|
|
76745
|
-
var
|
|
78014
|
+
var args121, tool$supportCreateTicket;
|
|
76746
78015
|
var init_supportCreateTicket2 = __esm(() => {
|
|
76747
78016
|
init_supportCreateTicket();
|
|
76748
78017
|
init_operations();
|
|
76749
78018
|
init_tools();
|
|
76750
|
-
|
|
78019
|
+
args121 = {
|
|
76751
78020
|
request: CreateTicketRequest$inboundSchema
|
|
76752
78021
|
};
|
|
76753
78022
|
tool$supportCreateTicket = {
|
|
@@ -76759,9 +78028,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
|
|
|
76759
78028
|
|
|
76760
78029
|
If you're creating the ticket on behalf of another account, then you'll need to
|
|
76761
78030
|
specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
76762
|
-
args:
|
|
76763
|
-
tool: async (client,
|
|
76764
|
-
const [result, apiCall] = await supportCreateTicket(client,
|
|
78031
|
+
args: args121,
|
|
78032
|
+
tool: async (client, args122, ctx) => {
|
|
78033
|
+
const [result, apiCall] = await supportCreateTicket(client, args122.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76765
78034
|
if (!result.ok) {
|
|
76766
78035
|
return {
|
|
76767
78036
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76776,9 +78045,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{acco
|
|
|
76776
78045
|
|
|
76777
78046
|
// src/funcs/supportGetTicket.ts
|
|
76778
78047
|
function supportGetTicket(client, request, options) {
|
|
76779
|
-
return new APIPromise($
|
|
78048
|
+
return new APIPromise($do122(client, request, options));
|
|
76780
78049
|
}
|
|
76781
|
-
async function $
|
|
78050
|
+
async function $do122(client, request, options) {
|
|
76782
78051
|
const parsed = safeParse(request, (value) => GetTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76783
78052
|
if (!parsed.ok) {
|
|
76784
78053
|
return [parsed, { status: "invalid" }];
|
|
@@ -76860,12 +78129,12 @@ var init_supportGetTicket = __esm(() => {
|
|
|
76860
78129
|
});
|
|
76861
78130
|
|
|
76862
78131
|
// src/mcp-server/tools/supportGetTicket.ts
|
|
76863
|
-
var
|
|
78132
|
+
var args122, tool$supportGetTicket;
|
|
76864
78133
|
var init_supportGetTicket2 = __esm(() => {
|
|
76865
78134
|
init_supportGetTicket();
|
|
76866
78135
|
init_operations();
|
|
76867
78136
|
init_tools();
|
|
76868
|
-
|
|
78137
|
+
args122 = {
|
|
76869
78138
|
request: GetTicketRequest$inboundSchema
|
|
76870
78139
|
};
|
|
76871
78140
|
tool$supportGetTicket = {
|
|
@@ -76877,9 +78146,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
76877
78146
|
|
|
76878
78147
|
If you're retrieving another account's ticket, then you'll need to
|
|
76879
78148
|
specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
76880
|
-
args:
|
|
76881
|
-
tool: async (client,
|
|
76882
|
-
const [result, apiCall] = await supportGetTicket(client,
|
|
78149
|
+
args: args122,
|
|
78150
|
+
tool: async (client, args123, ctx) => {
|
|
78151
|
+
const [result, apiCall] = await supportGetTicket(client, args123.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76883
78152
|
if (!result.ok) {
|
|
76884
78153
|
return {
|
|
76885
78154
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76894,9 +78163,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
76894
78163
|
|
|
76895
78164
|
// src/funcs/supportListTicketMessages.ts
|
|
76896
78165
|
function supportListTicketMessages(client, request, options) {
|
|
76897
|
-
return new APIPromise($
|
|
78166
|
+
return new APIPromise($do123(client, request, options));
|
|
76898
78167
|
}
|
|
76899
|
-
async function $
|
|
78168
|
+
async function $do123(client, request, options) {
|
|
76900
78169
|
const parsed = safeParse(request, (value) => ListTicketMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76901
78170
|
if (!parsed.ok) {
|
|
76902
78171
|
return [parsed, { status: "invalid" }];
|
|
@@ -76978,12 +78247,12 @@ var init_supportListTicketMessages = __esm(() => {
|
|
|
76978
78247
|
});
|
|
76979
78248
|
|
|
76980
78249
|
// src/mcp-server/tools/supportListTicketMessages.ts
|
|
76981
|
-
var
|
|
78250
|
+
var args123, tool$supportListTicketMessages;
|
|
76982
78251
|
var init_supportListTicketMessages2 = __esm(() => {
|
|
76983
78252
|
init_supportListTicketMessages();
|
|
76984
78253
|
init_operations();
|
|
76985
78254
|
init_tools();
|
|
76986
|
-
|
|
78255
|
+
args123 = {
|
|
76987
78256
|
request: ListTicketMessagesRequest$inboundSchema
|
|
76988
78257
|
};
|
|
76989
78258
|
tool$supportListTicketMessages = {
|
|
@@ -76995,9 +78264,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
76995
78264
|
|
|
76996
78265
|
If you're listing another account's messages, then you'll need to
|
|
76997
78266
|
specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
76998
|
-
args:
|
|
76999
|
-
tool: async (client,
|
|
77000
|
-
const [result, apiCall] = await supportListTicketMessages(client,
|
|
78267
|
+
args: args123,
|
|
78268
|
+
tool: async (client, args124, ctx) => {
|
|
78269
|
+
const [result, apiCall] = await supportListTicketMessages(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77001
78270
|
if (!result.ok) {
|
|
77002
78271
|
return {
|
|
77003
78272
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77012,9 +78281,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
77012
78281
|
|
|
77013
78282
|
// src/funcs/supportListTickets.ts
|
|
77014
78283
|
function supportListTickets(client, request, options) {
|
|
77015
|
-
return new APIPromise($
|
|
78284
|
+
return new APIPromise($do124(client, request, options));
|
|
77016
78285
|
}
|
|
77017
|
-
async function $
|
|
78286
|
+
async function $do124(client, request, options) {
|
|
77018
78287
|
const parsed = safeParse(request, (value) => ListTicketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77019
78288
|
if (!parsed.ok) {
|
|
77020
78289
|
return [parsed, { status: "invalid" }];
|
|
@@ -77099,12 +78368,12 @@ var init_supportListTickets = __esm(() => {
|
|
|
77099
78368
|
});
|
|
77100
78369
|
|
|
77101
78370
|
// src/mcp-server/tools/supportListTickets.ts
|
|
77102
|
-
var
|
|
78371
|
+
var args124, tool$supportListTickets;
|
|
77103
78372
|
var init_supportListTickets2 = __esm(() => {
|
|
77104
78373
|
init_supportListTickets();
|
|
77105
78374
|
init_operations();
|
|
77106
78375
|
init_tools();
|
|
77107
|
-
|
|
78376
|
+
args124 = {
|
|
77108
78377
|
request: ListTicketsRequest$inboundSchema
|
|
77109
78378
|
};
|
|
77110
78379
|
tool$supportListTickets = {
|
|
@@ -77116,9 +78385,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
77116
78385
|
|
|
77117
78386
|
If you're listing another account's tickets, then you'll need to
|
|
77118
78387
|
specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
77119
|
-
args:
|
|
77120
|
-
tool: async (client,
|
|
77121
|
-
const [result, apiCall] = await supportListTickets(client,
|
|
78388
|
+
args: args124,
|
|
78389
|
+
tool: async (client, args125, ctx) => {
|
|
78390
|
+
const [result, apiCall] = await supportListTickets(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77122
78391
|
if (!result.ok) {
|
|
77123
78392
|
return {
|
|
77124
78393
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77133,9 +78402,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
77133
78402
|
|
|
77134
78403
|
// src/funcs/supportUpdateTicket.ts
|
|
77135
78404
|
function supportUpdateTicket(client, request, options) {
|
|
77136
|
-
return new APIPromise($
|
|
78405
|
+
return new APIPromise($do125(client, request, options));
|
|
77137
78406
|
}
|
|
77138
|
-
async function $
|
|
78407
|
+
async function $do125(client, request, options) {
|
|
77139
78408
|
const parsed = safeParse(request, (value) => UpdateTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77140
78409
|
if (!parsed.ok) {
|
|
77141
78410
|
return [parsed, { status: "invalid" }];
|
|
@@ -77231,12 +78500,12 @@ var init_supportUpdateTicket = __esm(() => {
|
|
|
77231
78500
|
});
|
|
77232
78501
|
|
|
77233
78502
|
// src/mcp-server/tools/supportUpdateTicket.ts
|
|
77234
|
-
var
|
|
78503
|
+
var args125, tool$supportUpdateTicket;
|
|
77235
78504
|
var init_supportUpdateTicket2 = __esm(() => {
|
|
77236
78505
|
init_supportUpdateTicket();
|
|
77237
78506
|
init_operations();
|
|
77238
78507
|
init_tools();
|
|
77239
|
-
|
|
78508
|
+
args125 = {
|
|
77240
78509
|
request: UpdateTicketRequest$inboundSchema
|
|
77241
78510
|
};
|
|
77242
78511
|
tool$supportUpdateTicket = {
|
|
@@ -77248,9 +78517,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
|
|
|
77248
78517
|
|
|
77249
78518
|
If you're updating the ticket on behalf of another account, then you'll need to
|
|
77250
78519
|
specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
77251
|
-
args:
|
|
77252
|
-
tool: async (client,
|
|
77253
|
-
const [result, apiCall] = await supportUpdateTicket(client,
|
|
78520
|
+
args: args125,
|
|
78521
|
+
tool: async (client, args126, ctx) => {
|
|
78522
|
+
const [result, apiCall] = await supportUpdateTicket(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77254
78523
|
if (!result.ok) {
|
|
77255
78524
|
return {
|
|
77256
78525
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77265,9 +78534,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{acco
|
|
|
77265
78534
|
|
|
77266
78535
|
// src/funcs/sweepsCreateConfig.ts
|
|
77267
78536
|
function sweepsCreateConfig(client, request, options) {
|
|
77268
|
-
return new APIPromise($
|
|
78537
|
+
return new APIPromise($do126(client, request, options));
|
|
77269
78538
|
}
|
|
77270
|
-
async function $
|
|
78539
|
+
async function $do126(client, request, options) {
|
|
77271
78540
|
const parsed = safeParse(request, (value) => CreateSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77272
78541
|
if (!parsed.ok) {
|
|
77273
78542
|
return [parsed, { status: "invalid" }];
|
|
@@ -77359,12 +78628,12 @@ var init_sweepsCreateConfig = __esm(() => {
|
|
|
77359
78628
|
});
|
|
77360
78629
|
|
|
77361
78630
|
// src/mcp-server/tools/sweepsCreateConfig.ts
|
|
77362
|
-
var
|
|
78631
|
+
var args126, tool$sweepsCreateConfig;
|
|
77363
78632
|
var init_sweepsCreateConfig2 = __esm(() => {
|
|
77364
78633
|
init_sweepsCreateConfig();
|
|
77365
78634
|
init_operations();
|
|
77366
78635
|
init_tools();
|
|
77367
|
-
|
|
78636
|
+
args126 = {
|
|
77368
78637
|
request: CreateSweepConfigRequest$inboundSchema
|
|
77369
78638
|
};
|
|
77370
78639
|
tool$sweepsCreateConfig = {
|
|
@@ -77373,9 +78642,9 @@ var init_sweepsCreateConfig2 = __esm(() => {
|
|
|
77373
78642
|
|
|
77374
78643
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77375
78644
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
77376
|
-
args:
|
|
77377
|
-
tool: async (client,
|
|
77378
|
-
const [result, apiCall] = await sweepsCreateConfig(client,
|
|
78645
|
+
args: args126,
|
|
78646
|
+
tool: async (client, args127, ctx) => {
|
|
78647
|
+
const [result, apiCall] = await sweepsCreateConfig(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77379
78648
|
if (!result.ok) {
|
|
77380
78649
|
return {
|
|
77381
78650
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77390,9 +78659,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
77390
78659
|
|
|
77391
78660
|
// src/funcs/sweepsGet.ts
|
|
77392
78661
|
function sweepsGet(client, request, options) {
|
|
77393
|
-
return new APIPromise($
|
|
78662
|
+
return new APIPromise($do127(client, request, options));
|
|
77394
78663
|
}
|
|
77395
|
-
async function $
|
|
78664
|
+
async function $do127(client, request, options) {
|
|
77396
78665
|
const parsed = safeParse(request, (value) => GetSweepRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77397
78666
|
if (!parsed.ok) {
|
|
77398
78667
|
return [parsed, { status: "invalid" }];
|
|
@@ -77478,12 +78747,12 @@ var init_sweepsGet = __esm(() => {
|
|
|
77478
78747
|
});
|
|
77479
78748
|
|
|
77480
78749
|
// src/mcp-server/tools/sweepsGet.ts
|
|
77481
|
-
var
|
|
78750
|
+
var args127, tool$sweepsGet;
|
|
77482
78751
|
var init_sweepsGet2 = __esm(() => {
|
|
77483
78752
|
init_sweepsGet();
|
|
77484
78753
|
init_operations();
|
|
77485
78754
|
init_tools();
|
|
77486
|
-
|
|
78755
|
+
args127 = {
|
|
77487
78756
|
request: GetSweepRequest$inboundSchema
|
|
77488
78757
|
};
|
|
77489
78758
|
tool$sweepsGet = {
|
|
@@ -77492,9 +78761,9 @@ var init_sweepsGet2 = __esm(() => {
|
|
|
77492
78761
|
|
|
77493
78762
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77494
78763
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
77495
|
-
args:
|
|
77496
|
-
tool: async (client,
|
|
77497
|
-
const [result, apiCall] = await sweepsGet(client,
|
|
78764
|
+
args: args127,
|
|
78765
|
+
tool: async (client, args128, ctx) => {
|
|
78766
|
+
const [result, apiCall] = await sweepsGet(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77498
78767
|
if (!result.ok) {
|
|
77499
78768
|
return {
|
|
77500
78769
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77509,9 +78778,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
77509
78778
|
|
|
77510
78779
|
// src/funcs/sweepsGetConfig.ts
|
|
77511
78780
|
function sweepsGetConfig(client, request, options) {
|
|
77512
|
-
return new APIPromise($
|
|
78781
|
+
return new APIPromise($do128(client, request, options));
|
|
77513
78782
|
}
|
|
77514
|
-
async function $
|
|
78783
|
+
async function $do128(client, request, options) {
|
|
77515
78784
|
const parsed = safeParse(request, (value) => GetSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77516
78785
|
if (!parsed.ok) {
|
|
77517
78786
|
return [parsed, { status: "invalid" }];
|
|
@@ -77593,12 +78862,12 @@ var init_sweepsGetConfig = __esm(() => {
|
|
|
77593
78862
|
});
|
|
77594
78863
|
|
|
77595
78864
|
// src/mcp-server/tools/sweepsGetConfig.ts
|
|
77596
|
-
var
|
|
78865
|
+
var args128, tool$sweepsGetConfig;
|
|
77597
78866
|
var init_sweepsGetConfig2 = __esm(() => {
|
|
77598
78867
|
init_sweepsGetConfig();
|
|
77599
78868
|
init_operations();
|
|
77600
78869
|
init_tools();
|
|
77601
|
-
|
|
78870
|
+
args128 = {
|
|
77602
78871
|
request: GetSweepConfigRequest$inboundSchema
|
|
77603
78872
|
};
|
|
77604
78873
|
tool$sweepsGetConfig = {
|
|
@@ -77607,9 +78876,9 @@ var init_sweepsGetConfig2 = __esm(() => {
|
|
|
77607
78876
|
|
|
77608
78877
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77609
78878
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
77610
|
-
args:
|
|
77611
|
-
tool: async (client,
|
|
77612
|
-
const [result, apiCall] = await sweepsGetConfig(client,
|
|
78879
|
+
args: args128,
|
|
78880
|
+
tool: async (client, args129, ctx) => {
|
|
78881
|
+
const [result, apiCall] = await sweepsGetConfig(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77613
78882
|
if (!result.ok) {
|
|
77614
78883
|
return {
|
|
77615
78884
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77624,9 +78893,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
77624
78893
|
|
|
77625
78894
|
// src/funcs/sweepsList.ts
|
|
77626
78895
|
function sweepsList(client, request, options) {
|
|
77627
|
-
return new APIPromise($
|
|
78896
|
+
return new APIPromise($do129(client, request, options));
|
|
77628
78897
|
}
|
|
77629
|
-
async function $
|
|
78898
|
+
async function $do129(client, request, options) {
|
|
77630
78899
|
const parsed = safeParse(request, (value) => ListSweepsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77631
78900
|
if (!parsed.ok) {
|
|
77632
78901
|
return [parsed, { status: "invalid" }];
|
|
@@ -77715,12 +78984,12 @@ var init_sweepsList = __esm(() => {
|
|
|
77715
78984
|
});
|
|
77716
78985
|
|
|
77717
78986
|
// src/mcp-server/tools/sweepsList.ts
|
|
77718
|
-
var
|
|
78987
|
+
var args129, tool$sweepsList;
|
|
77719
78988
|
var init_sweepsList2 = __esm(() => {
|
|
77720
78989
|
init_sweepsList();
|
|
77721
78990
|
init_operations();
|
|
77722
78991
|
init_tools();
|
|
77723
|
-
|
|
78992
|
+
args129 = {
|
|
77724
78993
|
request: ListSweepsRequest$inboundSchema
|
|
77725
78994
|
};
|
|
77726
78995
|
tool$sweepsList = {
|
|
@@ -77729,9 +78998,9 @@ var init_sweepsList2 = __esm(() => {
|
|
|
77729
78998
|
|
|
77730
78999
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77731
79000
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
77732
|
-
args:
|
|
77733
|
-
tool: async (client,
|
|
77734
|
-
const [result, apiCall] = await sweepsList(client,
|
|
79001
|
+
args: args129,
|
|
79002
|
+
tool: async (client, args130, ctx) => {
|
|
79003
|
+
const [result, apiCall] = await sweepsList(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77735
79004
|
if (!result.ok) {
|
|
77736
79005
|
return {
|
|
77737
79006
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77746,9 +79015,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
77746
79015
|
|
|
77747
79016
|
// src/funcs/sweepsListConfigs.ts
|
|
77748
79017
|
function sweepsListConfigs(client, request, options) {
|
|
77749
|
-
return new APIPromise($
|
|
79018
|
+
return new APIPromise($do130(client, request, options));
|
|
77750
79019
|
}
|
|
77751
|
-
async function $
|
|
79020
|
+
async function $do130(client, request, options) {
|
|
77752
79021
|
const parsed = safeParse(request, (value) => ListSweepConfigsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77753
79022
|
if (!parsed.ok) {
|
|
77754
79023
|
return [parsed, { status: "invalid" }];
|
|
@@ -77826,12 +79095,12 @@ var init_sweepsListConfigs = __esm(() => {
|
|
|
77826
79095
|
});
|
|
77827
79096
|
|
|
77828
79097
|
// src/mcp-server/tools/sweepsListConfigs.ts
|
|
77829
|
-
var
|
|
79098
|
+
var args130, tool$sweepsListConfigs;
|
|
77830
79099
|
var init_sweepsListConfigs2 = __esm(() => {
|
|
77831
79100
|
init_sweepsListConfigs();
|
|
77832
79101
|
init_operations();
|
|
77833
79102
|
init_tools();
|
|
77834
|
-
|
|
79103
|
+
args130 = {
|
|
77835
79104
|
request: ListSweepConfigsRequest$inboundSchema
|
|
77836
79105
|
};
|
|
77837
79106
|
tool$sweepsListConfigs = {
|
|
@@ -77840,9 +79109,9 @@ var init_sweepsListConfigs2 = __esm(() => {
|
|
|
77840
79109
|
|
|
77841
79110
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77842
79111
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
77843
|
-
args:
|
|
77844
|
-
tool: async (client,
|
|
77845
|
-
const [result, apiCall] = await sweepsListConfigs(client,
|
|
79112
|
+
args: args130,
|
|
79113
|
+
tool: async (client, args131, ctx) => {
|
|
79114
|
+
const [result, apiCall] = await sweepsListConfigs(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77846
79115
|
if (!result.ok) {
|
|
77847
79116
|
return {
|
|
77848
79117
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77857,9 +79126,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
77857
79126
|
|
|
77858
79127
|
// src/funcs/sweepsUpdateConfig.ts
|
|
77859
79128
|
function sweepsUpdateConfig(client, request, options) {
|
|
77860
|
-
return new APIPromise($
|
|
79129
|
+
return new APIPromise($do131(client, request, options));
|
|
77861
79130
|
}
|
|
77862
|
-
async function $
|
|
79131
|
+
async function $do131(client, request, options) {
|
|
77863
79132
|
const parsed = safeParse(request, (value) => UpdateSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77864
79133
|
if (!parsed.ok) {
|
|
77865
79134
|
return [parsed, { status: "invalid" }];
|
|
@@ -77955,12 +79224,12 @@ var init_sweepsUpdateConfig = __esm(() => {
|
|
|
77955
79224
|
});
|
|
77956
79225
|
|
|
77957
79226
|
// src/mcp-server/tools/sweepsUpdateConfig.ts
|
|
77958
|
-
var
|
|
79227
|
+
var args131, tool$sweepsUpdateConfig;
|
|
77959
79228
|
var init_sweepsUpdateConfig2 = __esm(() => {
|
|
77960
79229
|
init_sweepsUpdateConfig();
|
|
77961
79230
|
init_operations();
|
|
77962
79231
|
init_tools();
|
|
77963
|
-
|
|
79232
|
+
args131 = {
|
|
77964
79233
|
request: UpdateSweepConfigRequest$inboundSchema
|
|
77965
79234
|
};
|
|
77966
79235
|
tool$sweepsUpdateConfig = {
|
|
@@ -77969,9 +79238,9 @@ var init_sweepsUpdateConfig2 = __esm(() => {
|
|
|
77969
79238
|
|
|
77970
79239
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77971
79240
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
77972
|
-
args:
|
|
77973
|
-
tool: async (client,
|
|
77974
|
-
const [result, apiCall] = await sweepsUpdateConfig(client,
|
|
79241
|
+
args: args131,
|
|
79242
|
+
tool: async (client, args132, ctx) => {
|
|
79243
|
+
const [result, apiCall] = await sweepsUpdateConfig(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77975
79244
|
if (!result.ok) {
|
|
77976
79245
|
return {
|
|
77977
79246
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77986,9 +79255,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
77986
79255
|
|
|
77987
79256
|
// src/funcs/terminalApplicationsCreate.ts
|
|
77988
79257
|
function terminalApplicationsCreate(client, request, options) {
|
|
77989
|
-
return new APIPromise($
|
|
79258
|
+
return new APIPromise($do132(client, request, options));
|
|
77990
79259
|
}
|
|
77991
|
-
async function $
|
|
79260
|
+
async function $do132(client, request, options) {
|
|
77992
79261
|
const parsed = safeParse(request, (value) => CreateTerminalApplication$outboundSchema.parse(value), "Input validation failed");
|
|
77993
79262
|
if (!parsed.ok) {
|
|
77994
79263
|
return [parsed, { status: "invalid" }];
|
|
@@ -78077,12 +79346,12 @@ var init_terminalApplicationsCreate = __esm(() => {
|
|
|
78077
79346
|
});
|
|
78078
79347
|
|
|
78079
79348
|
// src/mcp-server/tools/terminalApplicationsCreate.ts
|
|
78080
|
-
var
|
|
79349
|
+
var args132, tool$terminalApplicationsCreate;
|
|
78081
79350
|
var init_terminalApplicationsCreate2 = __esm(() => {
|
|
78082
79351
|
init_terminalApplicationsCreate();
|
|
78083
79352
|
init_components();
|
|
78084
79353
|
init_tools();
|
|
78085
|
-
|
|
79354
|
+
args132 = {
|
|
78086
79355
|
request: CreateTerminalApplication$inboundSchema
|
|
78087
79356
|
};
|
|
78088
79357
|
tool$terminalApplicationsCreate = {
|
|
@@ -78091,9 +79360,9 @@ var init_terminalApplicationsCreate2 = __esm(() => {
|
|
|
78091
79360
|
|
|
78092
79361
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78093
79362
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
78094
|
-
args:
|
|
78095
|
-
tool: async (client,
|
|
78096
|
-
const [result, apiCall] = await terminalApplicationsCreate(client,
|
|
79363
|
+
args: args132,
|
|
79364
|
+
tool: async (client, args133, ctx) => {
|
|
79365
|
+
const [result, apiCall] = await terminalApplicationsCreate(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78097
79366
|
if (!result.ok) {
|
|
78098
79367
|
return {
|
|
78099
79368
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78108,9 +79377,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
78108
79377
|
|
|
78109
79378
|
// src/funcs/terminalApplicationsCreateVersion.ts
|
|
78110
79379
|
function terminalApplicationsCreateVersion(client, request, options) {
|
|
78111
|
-
return new APIPromise($
|
|
79380
|
+
return new APIPromise($do133(client, request, options));
|
|
78112
79381
|
}
|
|
78113
|
-
async function $
|
|
79382
|
+
async function $do133(client, request, options) {
|
|
78114
79383
|
const parsed = safeParse(request, (value) => CreateTerminalApplicationVersionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78115
79384
|
if (!parsed.ok) {
|
|
78116
79385
|
return [parsed, { status: "invalid" }];
|
|
@@ -78200,12 +79469,12 @@ var init_terminalApplicationsCreateVersion = __esm(() => {
|
|
|
78200
79469
|
});
|
|
78201
79470
|
|
|
78202
79471
|
// src/mcp-server/tools/terminalApplicationsCreateVersion.ts
|
|
78203
|
-
var
|
|
79472
|
+
var args133, tool$terminalApplicationsCreateVersion;
|
|
78204
79473
|
var init_terminalApplicationsCreateVersion2 = __esm(() => {
|
|
78205
79474
|
init_terminalApplicationsCreateVersion();
|
|
78206
79475
|
init_operations();
|
|
78207
79476
|
init_tools();
|
|
78208
|
-
|
|
79477
|
+
args133 = {
|
|
78209
79478
|
request: CreateTerminalApplicationVersionRequest$inboundSchema
|
|
78210
79479
|
};
|
|
78211
79480
|
tool$terminalApplicationsCreateVersion = {
|
|
@@ -78214,9 +79483,9 @@ var init_terminalApplicationsCreateVersion2 = __esm(() => {
|
|
|
78214
79483
|
|
|
78215
79484
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78216
79485
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
78217
|
-
args:
|
|
78218
|
-
tool: async (client,
|
|
78219
|
-
const [result, apiCall] = await terminalApplicationsCreateVersion(client,
|
|
79486
|
+
args: args133,
|
|
79487
|
+
tool: async (client, args134, ctx) => {
|
|
79488
|
+
const [result, apiCall] = await terminalApplicationsCreateVersion(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78220
79489
|
if (!result.ok) {
|
|
78221
79490
|
return {
|
|
78222
79491
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78231,9 +79500,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
78231
79500
|
|
|
78232
79501
|
// src/funcs/terminalApplicationsDelete.ts
|
|
78233
79502
|
function terminalApplicationsDelete(client, request, options) {
|
|
78234
|
-
return new APIPromise($
|
|
79503
|
+
return new APIPromise($do134(client, request, options));
|
|
78235
79504
|
}
|
|
78236
|
-
async function $
|
|
79505
|
+
async function $do134(client, request, options) {
|
|
78237
79506
|
const parsed = safeParse(request, (value) => DeleteTerminalApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78238
79507
|
if (!parsed.ok) {
|
|
78239
79508
|
return [parsed, { status: "invalid" }];
|
|
@@ -78317,12 +79586,12 @@ var init_terminalApplicationsDelete = __esm(() => {
|
|
|
78317
79586
|
});
|
|
78318
79587
|
|
|
78319
79588
|
// src/mcp-server/tools/terminalApplicationsDelete.ts
|
|
78320
|
-
var
|
|
79589
|
+
var args134, tool$terminalApplicationsDelete;
|
|
78321
79590
|
var init_terminalApplicationsDelete2 = __esm(() => {
|
|
78322
79591
|
init_terminalApplicationsDelete();
|
|
78323
79592
|
init_operations();
|
|
78324
79593
|
init_tools();
|
|
78325
|
-
|
|
79594
|
+
args134 = {
|
|
78326
79595
|
request: DeleteTerminalApplicationRequest$inboundSchema
|
|
78327
79596
|
};
|
|
78328
79597
|
tool$terminalApplicationsDelete = {
|
|
@@ -78331,9 +79600,9 @@ var init_terminalApplicationsDelete2 = __esm(() => {
|
|
|
78331
79600
|
|
|
78332
79601
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78333
79602
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
78334
|
-
args:
|
|
78335
|
-
tool: async (client,
|
|
78336
|
-
const [result, apiCall] = await terminalApplicationsDelete(client,
|
|
79603
|
+
args: args134,
|
|
79604
|
+
tool: async (client, args135, ctx) => {
|
|
79605
|
+
const [result, apiCall] = await terminalApplicationsDelete(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78337
79606
|
if (!result.ok) {
|
|
78338
79607
|
return {
|
|
78339
79608
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78347,9 +79616,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
78347
79616
|
|
|
78348
79617
|
// src/funcs/terminalApplicationsGet.ts
|
|
78349
79618
|
function terminalApplicationsGet(client, request, options) {
|
|
78350
|
-
return new APIPromise($
|
|
79619
|
+
return new APIPromise($do135(client, request, options));
|
|
78351
79620
|
}
|
|
78352
|
-
async function $
|
|
79621
|
+
async function $do135(client, request, options) {
|
|
78353
79622
|
const parsed = safeParse(request, (value) => GetTerminalApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78354
79623
|
if (!parsed.ok) {
|
|
78355
79624
|
return [parsed, { status: "invalid" }];
|
|
@@ -78424,12 +79693,12 @@ var init_terminalApplicationsGet = __esm(() => {
|
|
|
78424
79693
|
});
|
|
78425
79694
|
|
|
78426
79695
|
// src/mcp-server/tools/terminalApplicationsGet.ts
|
|
78427
|
-
var
|
|
79696
|
+
var args135, tool$terminalApplicationsGet;
|
|
78428
79697
|
var init_terminalApplicationsGet2 = __esm(() => {
|
|
78429
79698
|
init_terminalApplicationsGet();
|
|
78430
79699
|
init_operations();
|
|
78431
79700
|
init_tools();
|
|
78432
|
-
|
|
79701
|
+
args135 = {
|
|
78433
79702
|
request: GetTerminalApplicationRequest$inboundSchema
|
|
78434
79703
|
};
|
|
78435
79704
|
tool$terminalApplicationsGet = {
|
|
@@ -78438,9 +79707,9 @@ var init_terminalApplicationsGet2 = __esm(() => {
|
|
|
78438
79707
|
|
|
78439
79708
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78440
79709
|
you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
78441
|
-
args:
|
|
78442
|
-
tool: async (client,
|
|
78443
|
-
const [result, apiCall] = await terminalApplicationsGet(client,
|
|
79710
|
+
args: args135,
|
|
79711
|
+
tool: async (client, args136, ctx) => {
|
|
79712
|
+
const [result, apiCall] = await terminalApplicationsGet(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78444
79713
|
if (!result.ok) {
|
|
78445
79714
|
return {
|
|
78446
79715
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78455,9 +79724,9 @@ you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
|
78455
79724
|
|
|
78456
79725
|
// src/funcs/terminalApplicationsList.ts
|
|
78457
79726
|
function terminalApplicationsList(client, _request, options) {
|
|
78458
|
-
return new APIPromise($
|
|
79727
|
+
return new APIPromise($do136(client, _request, options));
|
|
78459
79728
|
}
|
|
78460
|
-
async function $
|
|
79729
|
+
async function $do136(client, _request, options) {
|
|
78461
79730
|
const path = pathToFunc("/terminal-applications")();
|
|
78462
79731
|
const headers = new Headers(compactMap({
|
|
78463
79732
|
Accept: "application/json",
|
|
@@ -78521,12 +79790,12 @@ var init_terminalApplicationsList = __esm(() => {
|
|
|
78521
79790
|
});
|
|
78522
79791
|
|
|
78523
79792
|
// src/mcp-server/tools/terminalApplicationsList.ts
|
|
78524
|
-
var
|
|
79793
|
+
var args136, tool$terminalApplicationsList;
|
|
78525
79794
|
var init_terminalApplicationsList2 = __esm(() => {
|
|
78526
79795
|
init_terminalApplicationsList();
|
|
78527
79796
|
init_operations();
|
|
78528
79797
|
init_tools();
|
|
78529
|
-
|
|
79798
|
+
args136 = {
|
|
78530
79799
|
request: ListTerminalApplicationsRequest$inboundSchema
|
|
78531
79800
|
};
|
|
78532
79801
|
tool$terminalApplicationsList = {
|
|
@@ -78535,9 +79804,9 @@ var init_terminalApplicationsList2 = __esm(() => {
|
|
|
78535
79804
|
|
|
78536
79805
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78537
79806
|
you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
78538
|
-
args:
|
|
78539
|
-
tool: async (client,
|
|
78540
|
-
const [result, apiCall] = await terminalApplicationsList(client,
|
|
79807
|
+
args: args136,
|
|
79808
|
+
tool: async (client, args137, ctx) => {
|
|
79809
|
+
const [result, apiCall] = await terminalApplicationsList(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78541
79810
|
if (!result.ok) {
|
|
78542
79811
|
return {
|
|
78543
79812
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78552,9 +79821,9 @@ you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
|
78552
79821
|
|
|
78553
79822
|
// src/funcs/transfersCreate.ts
|
|
78554
79823
|
function transfersCreate(client, request, options) {
|
|
78555
|
-
return new APIPromise($
|
|
79824
|
+
return new APIPromise($do137(client, request, options));
|
|
78556
79825
|
}
|
|
78557
|
-
async function $
|
|
79826
|
+
async function $do137(client, request, options) {
|
|
78558
79827
|
const parsed = safeParse(request, (value) => CreateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78559
79828
|
if (!parsed.ok) {
|
|
78560
79829
|
return [parsed, { status: "invalid" }];
|
|
@@ -78647,12 +79916,12 @@ var init_transfersCreate = __esm(() => {
|
|
|
78647
79916
|
});
|
|
78648
79917
|
|
|
78649
79918
|
// src/mcp-server/tools/transfersCreate.ts
|
|
78650
|
-
var
|
|
79919
|
+
var args137, tool$transfersCreate;
|
|
78651
79920
|
var init_transfersCreate2 = __esm(() => {
|
|
78652
79921
|
init_transfersCreate();
|
|
78653
79922
|
init_operations();
|
|
78654
79923
|
init_tools();
|
|
78655
|
-
|
|
79924
|
+
args137 = {
|
|
78656
79925
|
request: CreateTransferRequest$inboundSchema
|
|
78657
79926
|
};
|
|
78658
79927
|
tool$transfersCreate = {
|
|
@@ -78663,9 +79932,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
78663
79932
|
|
|
78664
79933
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78665
79934
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
78666
|
-
args:
|
|
78667
|
-
tool: async (client,
|
|
78668
|
-
const [result, apiCall] = await transfersCreate(client,
|
|
79935
|
+
args: args137,
|
|
79936
|
+
tool: async (client, args138, ctx) => {
|
|
79937
|
+
const [result, apiCall] = await transfersCreate(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78669
79938
|
if (!result.ok) {
|
|
78670
79939
|
return {
|
|
78671
79940
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78680,9 +79949,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
78680
79949
|
|
|
78681
79950
|
// src/funcs/transfersCreateCancellation.ts
|
|
78682
79951
|
function transfersCreateCancellation(client, request, options) {
|
|
78683
|
-
return new APIPromise($
|
|
79952
|
+
return new APIPromise($do138(client, request, options));
|
|
78684
79953
|
}
|
|
78685
|
-
async function $
|
|
79954
|
+
async function $do138(client, request, options) {
|
|
78686
79955
|
const parsed = safeParse(request, (value) => CreateCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78687
79956
|
if (!parsed.ok) {
|
|
78688
79957
|
return [parsed, { status: "invalid" }];
|
|
@@ -78765,12 +80034,12 @@ var init_transfersCreateCancellation = __esm(() => {
|
|
|
78765
80034
|
});
|
|
78766
80035
|
|
|
78767
80036
|
// src/mcp-server/tools/transfersCreateCancellation.ts
|
|
78768
|
-
var
|
|
80037
|
+
var args138, tool$transfersCreateCancellation;
|
|
78769
80038
|
var init_transfersCreateCancellation2 = __esm(() => {
|
|
78770
80039
|
init_transfersCreateCancellation();
|
|
78771
80040
|
init_operations();
|
|
78772
80041
|
init_tools();
|
|
78773
|
-
|
|
80042
|
+
args138 = {
|
|
78774
80043
|
request: CreateCancellationRequest$inboundSchema
|
|
78775
80044
|
};
|
|
78776
80045
|
tool$transfersCreateCancellation = {
|
|
@@ -78779,9 +80048,9 @@ var init_transfersCreateCancellation2 = __esm(() => {
|
|
|
78779
80048
|
|
|
78780
80049
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
78781
80050
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
78782
|
-
args:
|
|
78783
|
-
tool: async (client,
|
|
78784
|
-
const [result, apiCall] = await transfersCreateCancellation(client,
|
|
80051
|
+
args: args138,
|
|
80052
|
+
tool: async (client, args139, ctx) => {
|
|
80053
|
+
const [result, apiCall] = await transfersCreateCancellation(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78785
80054
|
if (!result.ok) {
|
|
78786
80055
|
return {
|
|
78787
80056
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78796,9 +80065,9 @@ var init_transfersCreateCancellation2 = __esm(() => {
|
|
|
78796
80065
|
|
|
78797
80066
|
// src/funcs/transfersCreateReversal.ts
|
|
78798
80067
|
function transfersCreateReversal(client, request, options) {
|
|
78799
|
-
return new APIPromise($
|
|
80068
|
+
return new APIPromise($do139(client, request, options));
|
|
78800
80069
|
}
|
|
78801
|
-
async function $
|
|
80070
|
+
async function $do139(client, request, options) {
|
|
78802
80071
|
const parsed = safeParse(request, (value) => CreateReversalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78803
80072
|
if (!parsed.ok) {
|
|
78804
80073
|
return [parsed, { status: "invalid" }];
|
|
@@ -78897,12 +80166,12 @@ var init_transfersCreateReversal = __esm(() => {
|
|
|
78897
80166
|
});
|
|
78898
80167
|
|
|
78899
80168
|
// src/mcp-server/tools/transfersCreateReversal.ts
|
|
78900
|
-
var
|
|
80169
|
+
var args139, tool$transfersCreateReversal;
|
|
78901
80170
|
var init_transfersCreateReversal2 = __esm(() => {
|
|
78902
80171
|
init_transfersCreateReversal();
|
|
78903
80172
|
init_operations();
|
|
78904
80173
|
init_tools();
|
|
78905
|
-
|
|
80174
|
+
args139 = {
|
|
78906
80175
|
request: CreateReversalRequest$inboundSchema
|
|
78907
80176
|
};
|
|
78908
80177
|
tool$transfersCreateReversal = {
|
|
@@ -78913,9 +80182,9 @@ to learn more.
|
|
|
78913
80182
|
|
|
78914
80183
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
78915
80184
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
78916
|
-
args:
|
|
78917
|
-
tool: async (client,
|
|
78918
|
-
const [result, apiCall] = await transfersCreateReversal(client,
|
|
80185
|
+
args: args139,
|
|
80186
|
+
tool: async (client, args140, ctx) => {
|
|
80187
|
+
const [result, apiCall] = await transfersCreateReversal(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78919
80188
|
if (!result.ok) {
|
|
78920
80189
|
return {
|
|
78921
80190
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78930,9 +80199,9 @@ to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
78930
80199
|
|
|
78931
80200
|
// src/funcs/transfersGenerateOptions.ts
|
|
78932
80201
|
function transfersGenerateOptions(client, request, options) {
|
|
78933
|
-
return new APIPromise($
|
|
80202
|
+
return new APIPromise($do140(client, request, options));
|
|
78934
80203
|
}
|
|
78935
|
-
async function $
|
|
80204
|
+
async function $do140(client, request, options) {
|
|
78936
80205
|
const parsed = safeParse(request, (value) => CreateTransferOptionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78937
80206
|
if (!parsed.ok) {
|
|
78938
80207
|
return [parsed, { status: "invalid" }];
|
|
@@ -79016,12 +80285,12 @@ var init_transfersGenerateOptions = __esm(() => {
|
|
|
79016
80285
|
});
|
|
79017
80286
|
|
|
79018
80287
|
// src/mcp-server/tools/transfersGenerateOptions.ts
|
|
79019
|
-
var
|
|
80288
|
+
var args140, tool$transfersGenerateOptions;
|
|
79020
80289
|
var init_transfersGenerateOptions2 = __esm(() => {
|
|
79021
80290
|
init_transfersGenerateOptions();
|
|
79022
80291
|
init_operations();
|
|
79023
80292
|
init_tools();
|
|
79024
|
-
|
|
80293
|
+
args140 = {
|
|
79025
80294
|
request: CreateTransferOptionsRequest$inboundSchema
|
|
79026
80295
|
};
|
|
79027
80296
|
tool$transfersGenerateOptions = {
|
|
@@ -79035,9 +80304,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
79035
80304
|
|
|
79036
80305
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79037
80306
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
79038
|
-
args:
|
|
79039
|
-
tool: async (client,
|
|
79040
|
-
const [result, apiCall] = await transfersGenerateOptions(client,
|
|
80307
|
+
args: args140,
|
|
80308
|
+
tool: async (client, args141, ctx) => {
|
|
80309
|
+
const [result, apiCall] = await transfersGenerateOptions(client, args141.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79041
80310
|
if (!result.ok) {
|
|
79042
80311
|
return {
|
|
79043
80312
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79052,9 +80321,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
79052
80321
|
|
|
79053
80322
|
// src/funcs/transfersGet.ts
|
|
79054
80323
|
function transfersGet(client, request, options) {
|
|
79055
|
-
return new APIPromise($
|
|
80324
|
+
return new APIPromise($do141(client, request, options));
|
|
79056
80325
|
}
|
|
79057
|
-
async function $
|
|
80326
|
+
async function $do141(client, request, options) {
|
|
79058
80327
|
const parsed = safeParse(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79059
80328
|
if (!parsed.ok) {
|
|
79060
80329
|
return [parsed, { status: "invalid" }];
|
|
@@ -79136,12 +80405,12 @@ var init_transfersGet = __esm(() => {
|
|
|
79136
80405
|
});
|
|
79137
80406
|
|
|
79138
80407
|
// src/mcp-server/tools/transfersGet.ts
|
|
79139
|
-
var
|
|
80408
|
+
var args141, tool$transfersGet;
|
|
79140
80409
|
var init_transfersGet2 = __esm(() => {
|
|
79141
80410
|
init_transfersGet();
|
|
79142
80411
|
init_operations();
|
|
79143
80412
|
init_tools();
|
|
79144
|
-
|
|
80413
|
+
args141 = {
|
|
79145
80414
|
request: GetTransferRequest$inboundSchema
|
|
79146
80415
|
};
|
|
79147
80416
|
tool$transfersGet = {
|
|
@@ -79153,9 +80422,9 @@ to learn more.
|
|
|
79153
80422
|
|
|
79154
80423
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79155
80424
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
79156
|
-
args:
|
|
79157
|
-
tool: async (client,
|
|
79158
|
-
const [result, apiCall] = await transfersGet(client,
|
|
80425
|
+
args: args141,
|
|
80426
|
+
tool: async (client, args142, ctx) => {
|
|
80427
|
+
const [result, apiCall] = await transfersGet(client, args142.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79159
80428
|
if (!result.ok) {
|
|
79160
80429
|
return {
|
|
79161
80430
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79170,9 +80439,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
79170
80439
|
|
|
79171
80440
|
// src/funcs/transfersGetCancellation.ts
|
|
79172
80441
|
function transfersGetCancellation(client, request, options) {
|
|
79173
|
-
return new APIPromise($
|
|
80442
|
+
return new APIPromise($do142(client, request, options));
|
|
79174
80443
|
}
|
|
79175
|
-
async function $
|
|
80444
|
+
async function $do142(client, request, options) {
|
|
79176
80445
|
const parsed = safeParse(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79177
80446
|
if (!parsed.ok) {
|
|
79178
80447
|
return [parsed, { status: "invalid" }];
|
|
@@ -79258,12 +80527,12 @@ var init_transfersGetCancellation = __esm(() => {
|
|
|
79258
80527
|
});
|
|
79259
80528
|
|
|
79260
80529
|
// src/mcp-server/tools/transfersGetCancellation.ts
|
|
79261
|
-
var
|
|
80530
|
+
var args142, tool$transfersGetCancellation;
|
|
79262
80531
|
var init_transfersGetCancellation2 = __esm(() => {
|
|
79263
80532
|
init_transfersGetCancellation();
|
|
79264
80533
|
init_operations();
|
|
79265
80534
|
init_tools();
|
|
79266
|
-
|
|
80535
|
+
args142 = {
|
|
79267
80536
|
request: GetCancellationRequest$inboundSchema
|
|
79268
80537
|
};
|
|
79269
80538
|
tool$transfersGetCancellation = {
|
|
@@ -79272,9 +80541,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
79272
80541
|
|
|
79273
80542
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
79274
80543
|
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
79275
|
-
args:
|
|
79276
|
-
tool: async (client,
|
|
79277
|
-
const [result, apiCall] = await transfersGetCancellation(client,
|
|
80544
|
+
args: args142,
|
|
80545
|
+
tool: async (client, args143, ctx) => {
|
|
80546
|
+
const [result, apiCall] = await transfersGetCancellation(client, args143.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79278
80547
|
if (!result.ok) {
|
|
79279
80548
|
return {
|
|
79280
80549
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79289,9 +80558,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
79289
80558
|
|
|
79290
80559
|
// src/funcs/transfersGetRefund.ts
|
|
79291
80560
|
function transfersGetRefund(client, request, options) {
|
|
79292
|
-
return new APIPromise($
|
|
80561
|
+
return new APIPromise($do143(client, request, options));
|
|
79293
80562
|
}
|
|
79294
|
-
async function $
|
|
80563
|
+
async function $do143(client, request, options) {
|
|
79295
80564
|
const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79296
80565
|
if (!parsed.ok) {
|
|
79297
80566
|
return [parsed, { status: "invalid" }];
|
|
@@ -79377,12 +80646,12 @@ var init_transfersGetRefund = __esm(() => {
|
|
|
79377
80646
|
});
|
|
79378
80647
|
|
|
79379
80648
|
// src/mcp-server/tools/transfersGetRefund.ts
|
|
79380
|
-
var
|
|
80649
|
+
var args143, tool$transfersGetRefund;
|
|
79381
80650
|
var init_transfersGetRefund2 = __esm(() => {
|
|
79382
80651
|
init_transfersGetRefund();
|
|
79383
80652
|
init_operations();
|
|
79384
80653
|
init_tools();
|
|
79385
|
-
|
|
80654
|
+
args143 = {
|
|
79386
80655
|
request: GetRefundRequest$inboundSchema
|
|
79387
80656
|
};
|
|
79388
80657
|
tool$transfersGetRefund = {
|
|
@@ -79391,9 +80660,9 @@ var init_transfersGetRefund2 = __esm(() => {
|
|
|
79391
80660
|
|
|
79392
80661
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79393
80662
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
79394
|
-
args:
|
|
79395
|
-
tool: async (client,
|
|
79396
|
-
const [result, apiCall] = await transfersGetRefund(client,
|
|
80663
|
+
args: args143,
|
|
80664
|
+
tool: async (client, args144, ctx) => {
|
|
80665
|
+
const [result, apiCall] = await transfersGetRefund(client, args144.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79397
80666
|
if (!result.ok) {
|
|
79398
80667
|
return {
|
|
79399
80668
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79408,9 +80677,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
79408
80677
|
|
|
79409
80678
|
// src/funcs/transfersInitiateRefund.ts
|
|
79410
80679
|
function transfersInitiateRefund(client, request, options) {
|
|
79411
|
-
return new APIPromise($
|
|
80680
|
+
return new APIPromise($do144(client, request, options));
|
|
79412
80681
|
}
|
|
79413
|
-
async function $
|
|
80682
|
+
async function $do144(client, request, options) {
|
|
79414
80683
|
const parsed = safeParse(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79415
80684
|
if (!parsed.ok) {
|
|
79416
80685
|
return [parsed, { status: "invalid" }];
|
|
@@ -79502,12 +80771,12 @@ var init_transfersInitiateRefund = __esm(() => {
|
|
|
79502
80771
|
});
|
|
79503
80772
|
|
|
79504
80773
|
// src/mcp-server/tools/transfersInitiateRefund.ts
|
|
79505
|
-
var
|
|
80774
|
+
var args144, tool$transfersInitiateRefund;
|
|
79506
80775
|
var init_transfersInitiateRefund2 = __esm(() => {
|
|
79507
80776
|
init_transfersInitiateRefund();
|
|
79508
80777
|
init_operations();
|
|
79509
80778
|
init_tools();
|
|
79510
|
-
|
|
80779
|
+
args144 = {
|
|
79511
80780
|
request: InitiateRefundRequest$inboundSchema
|
|
79512
80781
|
};
|
|
79513
80782
|
tool$transfersInitiateRefund = {
|
|
@@ -79519,9 +80788,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
|
|
|
79519
80788
|
|
|
79520
80789
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79521
80790
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
79522
|
-
args:
|
|
79523
|
-
tool: async (client,
|
|
79524
|
-
const [result, apiCall] = await transfersInitiateRefund(client,
|
|
80791
|
+
args: args144,
|
|
80792
|
+
tool: async (client, args145, ctx) => {
|
|
80793
|
+
const [result, apiCall] = await transfersInitiateRefund(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79525
80794
|
if (!result.ok) {
|
|
79526
80795
|
return {
|
|
79527
80796
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79536,9 +80805,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
79536
80805
|
|
|
79537
80806
|
// src/funcs/transfersList.ts
|
|
79538
80807
|
function transfersList(client, request, options) {
|
|
79539
|
-
return new APIPromise($
|
|
80808
|
+
return new APIPromise($do145(client, request, options));
|
|
79540
80809
|
}
|
|
79541
|
-
async function $
|
|
80810
|
+
async function $do145(client, request, options) {
|
|
79542
80811
|
const parsed = safeParse(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79543
80812
|
if (!parsed.ok) {
|
|
79544
80813
|
return [parsed, { status: "invalid" }];
|
|
@@ -79634,12 +80903,12 @@ var init_transfersList = __esm(() => {
|
|
|
79634
80903
|
});
|
|
79635
80904
|
|
|
79636
80905
|
// src/mcp-server/tools/transfersList.ts
|
|
79637
|
-
var
|
|
80906
|
+
var args145, tool$transfersList;
|
|
79638
80907
|
var init_transfersList2 = __esm(() => {
|
|
79639
80908
|
init_transfersList();
|
|
79640
80909
|
init_operations();
|
|
79641
80910
|
init_tools();
|
|
79642
|
-
|
|
80911
|
+
args145 = {
|
|
79643
80912
|
request: ListTransfersRequest$inboundSchema
|
|
79644
80913
|
};
|
|
79645
80914
|
tool$transfersList = {
|
|
@@ -79655,9 +80924,9 @@ period of time. You can run multiple requests in smaller time window increments
|
|
|
79655
80924
|
|
|
79656
80925
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79657
80926
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
79658
|
-
args:
|
|
79659
|
-
tool: async (client,
|
|
79660
|
-
const [result, apiCall] = await transfersList(client,
|
|
80927
|
+
args: args145,
|
|
80928
|
+
tool: async (client, args146, ctx) => {
|
|
80929
|
+
const [result, apiCall] = await transfersList(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79661
80930
|
if (!result.ok) {
|
|
79662
80931
|
return {
|
|
79663
80932
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79672,9 +80941,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
79672
80941
|
|
|
79673
80942
|
// src/funcs/transfersListRefunds.ts
|
|
79674
80943
|
function transfersListRefunds(client, request, options) {
|
|
79675
|
-
return new APIPromise($
|
|
80944
|
+
return new APIPromise($do146(client, request, options));
|
|
79676
80945
|
}
|
|
79677
|
-
async function $
|
|
80946
|
+
async function $do146(client, request, options) {
|
|
79678
80947
|
const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79679
80948
|
if (!parsed.ok) {
|
|
79680
80949
|
return [parsed, { status: "invalid" }];
|
|
@@ -79756,12 +81025,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
79756
81025
|
});
|
|
79757
81026
|
|
|
79758
81027
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
79759
|
-
var
|
|
81028
|
+
var args146, tool$transfersListRefunds;
|
|
79760
81029
|
var init_transfersListRefunds2 = __esm(() => {
|
|
79761
81030
|
init_transfersListRefunds();
|
|
79762
81031
|
init_operations();
|
|
79763
81032
|
init_tools();
|
|
79764
|
-
|
|
81033
|
+
args146 = {
|
|
79765
81034
|
request: ListRefundsRequest$inboundSchema
|
|
79766
81035
|
};
|
|
79767
81036
|
tool$transfersListRefunds = {
|
|
@@ -79770,9 +81039,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
79770
81039
|
|
|
79771
81040
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79772
81041
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
79773
|
-
args:
|
|
79774
|
-
tool: async (client,
|
|
79775
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
81042
|
+
args: args146,
|
|
81043
|
+
tool: async (client, args147, ctx) => {
|
|
81044
|
+
const [result, apiCall] = await transfersListRefunds(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79776
81045
|
if (!result.ok) {
|
|
79777
81046
|
return {
|
|
79778
81047
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79787,9 +81056,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
79787
81056
|
|
|
79788
81057
|
// src/funcs/transfersUpdate.ts
|
|
79789
81058
|
function transfersUpdate(client, request, options) {
|
|
79790
|
-
return new APIPromise($
|
|
81059
|
+
return new APIPromise($do147(client, request, options));
|
|
79791
81060
|
}
|
|
79792
|
-
async function $
|
|
81061
|
+
async function $do147(client, request, options) {
|
|
79793
81062
|
const parsed = safeParse(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79794
81063
|
if (!parsed.ok) {
|
|
79795
81064
|
return [parsed, { status: "invalid" }];
|
|
@@ -79875,12 +81144,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
79875
81144
|
});
|
|
79876
81145
|
|
|
79877
81146
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
79878
|
-
var
|
|
81147
|
+
var args147, tool$transfersUpdate;
|
|
79879
81148
|
var init_transfersUpdate2 = __esm(() => {
|
|
79880
81149
|
init_transfersUpdate();
|
|
79881
81150
|
init_operations();
|
|
79882
81151
|
init_tools();
|
|
79883
|
-
|
|
81152
|
+
args147 = {
|
|
79884
81153
|
request: UpdateTransferRequest$inboundSchema
|
|
79885
81154
|
};
|
|
79886
81155
|
tool$transfersUpdate = {
|
|
@@ -79891,9 +81160,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
79891
81160
|
|
|
79892
81161
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79893
81162
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
79894
|
-
args:
|
|
79895
|
-
tool: async (client,
|
|
79896
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
81163
|
+
args: args147,
|
|
81164
|
+
tool: async (client, args148, ctx) => {
|
|
81165
|
+
const [result, apiCall] = await transfersUpdate(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79897
81166
|
if (!result.ok) {
|
|
79898
81167
|
return {
|
|
79899
81168
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79908,9 +81177,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
79908
81177
|
|
|
79909
81178
|
// src/funcs/underwritingGet.ts
|
|
79910
81179
|
function underwritingGet(client, request, options) {
|
|
79911
|
-
return new APIPromise($
|
|
81180
|
+
return new APIPromise($do148(client, request, options));
|
|
79912
81181
|
}
|
|
79913
|
-
async function $
|
|
81182
|
+
async function $do148(client, request, options) {
|
|
79914
81183
|
const parsed = safeParse(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79915
81184
|
if (!parsed.ok) {
|
|
79916
81185
|
return [parsed, { status: "invalid" }];
|
|
@@ -79988,12 +81257,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
79988
81257
|
});
|
|
79989
81258
|
|
|
79990
81259
|
// src/mcp-server/tools/underwritingGet.ts
|
|
79991
|
-
var
|
|
81260
|
+
var args148, tool$underwritingGet;
|
|
79992
81261
|
var init_underwritingGet2 = __esm(() => {
|
|
79993
81262
|
init_underwritingGet();
|
|
79994
81263
|
init_operations();
|
|
79995
81264
|
init_tools();
|
|
79996
|
-
|
|
81265
|
+
args148 = {
|
|
79997
81266
|
request: GetUnderwritingRequest$inboundSchema
|
|
79998
81267
|
};
|
|
79999
81268
|
tool$underwritingGet = {
|
|
@@ -80004,9 +81273,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
80004
81273
|
|
|
80005
81274
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80006
81275
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
80007
|
-
args:
|
|
80008
|
-
tool: async (client,
|
|
80009
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
81276
|
+
args: args148,
|
|
81277
|
+
tool: async (client, args149, ctx) => {
|
|
81278
|
+
const [result, apiCall] = await underwritingGet(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80010
81279
|
if (!result.ok) {
|
|
80011
81280
|
return {
|
|
80012
81281
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80021,9 +81290,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
80021
81290
|
|
|
80022
81291
|
// src/funcs/underwritingSave.ts
|
|
80023
81292
|
function underwritingSave(client, request, options) {
|
|
80024
|
-
return new APIPromise($
|
|
81293
|
+
return new APIPromise($do149(client, request, options));
|
|
80025
81294
|
}
|
|
80026
|
-
async function $
|
|
81295
|
+
async function $do149(client, request, options) {
|
|
80027
81296
|
const parsed = safeParse(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80028
81297
|
if (!parsed.ok) {
|
|
80029
81298
|
return [parsed, { status: "invalid" }];
|
|
@@ -80119,12 +81388,12 @@ var init_underwritingSave = __esm(() => {
|
|
|
80119
81388
|
});
|
|
80120
81389
|
|
|
80121
81390
|
// src/mcp-server/tools/underwritingSave.ts
|
|
80122
|
-
var
|
|
81391
|
+
var args149, tool$underwritingSave;
|
|
80123
81392
|
var init_underwritingSave2 = __esm(() => {
|
|
80124
81393
|
init_underwritingSave();
|
|
80125
81394
|
init_operations();
|
|
80126
81395
|
init_tools();
|
|
80127
|
-
|
|
81396
|
+
args149 = {
|
|
80128
81397
|
request: SaveUnderwritingRequest$inboundSchema
|
|
80129
81398
|
};
|
|
80130
81399
|
tool$underwritingSave = {
|
|
@@ -80135,9 +81404,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
80135
81404
|
|
|
80136
81405
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80137
81406
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
80138
|
-
args:
|
|
80139
|
-
tool: async (client,
|
|
80140
|
-
const [result, apiCall] = await underwritingSave(client,
|
|
81407
|
+
args: args149,
|
|
81408
|
+
tool: async (client, args150, ctx) => {
|
|
81409
|
+
const [result, apiCall] = await underwritingSave(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80141
81410
|
if (!result.ok) {
|
|
80142
81411
|
return {
|
|
80143
81412
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80152,9 +81421,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
80152
81421
|
|
|
80153
81422
|
// src/funcs/underwritingUpsert.ts
|
|
80154
81423
|
function underwritingUpsert(client, request, options) {
|
|
80155
|
-
return new APIPromise($
|
|
81424
|
+
return new APIPromise($do150(client, request, options));
|
|
80156
81425
|
}
|
|
80157
|
-
async function $
|
|
81426
|
+
async function $do150(client, request, options) {
|
|
80158
81427
|
const parsed = safeParse(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80159
81428
|
if (!parsed.ok) {
|
|
80160
81429
|
return [parsed, { status: "invalid" }];
|
|
@@ -80250,12 +81519,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
80250
81519
|
});
|
|
80251
81520
|
|
|
80252
81521
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
80253
|
-
var
|
|
81522
|
+
var args150, tool$underwritingUpsert;
|
|
80254
81523
|
var init_underwritingUpsert2 = __esm(() => {
|
|
80255
81524
|
init_underwritingUpsert();
|
|
80256
81525
|
init_operations();
|
|
80257
81526
|
init_tools();
|
|
80258
|
-
|
|
81527
|
+
args150 = {
|
|
80259
81528
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
80260
81529
|
};
|
|
80261
81530
|
tool$underwritingUpsert = {
|
|
@@ -80266,9 +81535,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
80266
81535
|
|
|
80267
81536
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80268
81537
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
80269
|
-
args:
|
|
80270
|
-
tool: async (client,
|
|
80271
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
81538
|
+
args: args150,
|
|
81539
|
+
tool: async (client, args151, ctx) => {
|
|
81540
|
+
const [result, apiCall] = await underwritingUpsert(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80272
81541
|
if (!result.ok) {
|
|
80273
81542
|
return {
|
|
80274
81543
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80283,9 +81552,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
80283
81552
|
|
|
80284
81553
|
// src/funcs/walletsCreate.ts
|
|
80285
81554
|
function walletsCreate(client, request, options) {
|
|
80286
|
-
return new APIPromise($
|
|
81555
|
+
return new APIPromise($do151(client, request, options));
|
|
80287
81556
|
}
|
|
80288
|
-
async function $
|
|
81557
|
+
async function $do151(client, request, options) {
|
|
80289
81558
|
const parsed = safeParse(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80290
81559
|
if (!parsed.ok) {
|
|
80291
81560
|
return [parsed, { status: "invalid" }];
|
|
@@ -80379,12 +81648,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
80379
81648
|
});
|
|
80380
81649
|
|
|
80381
81650
|
// src/mcp-server/tools/walletsCreate.ts
|
|
80382
|
-
var
|
|
81651
|
+
var args151, tool$walletsCreate;
|
|
80383
81652
|
var init_walletsCreate2 = __esm(() => {
|
|
80384
81653
|
init_walletsCreate();
|
|
80385
81654
|
init_operations();
|
|
80386
81655
|
init_tools();
|
|
80387
|
-
|
|
81656
|
+
args151 = {
|
|
80388
81657
|
request: CreateWalletRequest$inboundSchema
|
|
80389
81658
|
};
|
|
80390
81659
|
tool$walletsCreate = {
|
|
@@ -80395,9 +81664,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
80395
81664
|
|
|
80396
81665
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80397
81666
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
80398
|
-
args:
|
|
80399
|
-
tool: async (client,
|
|
80400
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
81667
|
+
args: args151,
|
|
81668
|
+
tool: async (client, args152, ctx) => {
|
|
81669
|
+
const [result, apiCall] = await walletsCreate(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80401
81670
|
if (!result.ok) {
|
|
80402
81671
|
return {
|
|
80403
81672
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80412,9 +81681,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
80412
81681
|
|
|
80413
81682
|
// src/funcs/walletsGet.ts
|
|
80414
81683
|
function walletsGet(client, request, options) {
|
|
80415
|
-
return new APIPromise($
|
|
81684
|
+
return new APIPromise($do152(client, request, options));
|
|
80416
81685
|
}
|
|
80417
|
-
async function $
|
|
81686
|
+
async function $do152(client, request, options) {
|
|
80418
81687
|
const parsed = safeParse(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80419
81688
|
if (!parsed.ok) {
|
|
80420
81689
|
return [parsed, { status: "invalid" }];
|
|
@@ -80496,12 +81765,12 @@ var init_walletsGet = __esm(() => {
|
|
|
80496
81765
|
});
|
|
80497
81766
|
|
|
80498
81767
|
// src/mcp-server/tools/walletsGet.ts
|
|
80499
|
-
var
|
|
81768
|
+
var args152, tool$walletsGet;
|
|
80500
81769
|
var init_walletsGet2 = __esm(() => {
|
|
80501
81770
|
init_walletsGet();
|
|
80502
81771
|
init_operations();
|
|
80503
81772
|
init_tools();
|
|
80504
|
-
|
|
81773
|
+
args152 = {
|
|
80505
81774
|
request: GetWalletRequest$inboundSchema
|
|
80506
81775
|
};
|
|
80507
81776
|
tool$walletsGet = {
|
|
@@ -80512,9 +81781,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
80512
81781
|
|
|
80513
81782
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80514
81783
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
80515
|
-
args:
|
|
80516
|
-
tool: async (client,
|
|
80517
|
-
const [result, apiCall] = await walletsGet(client,
|
|
81784
|
+
args: args152,
|
|
81785
|
+
tool: async (client, args153, ctx) => {
|
|
81786
|
+
const [result, apiCall] = await walletsGet(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80518
81787
|
if (!result.ok) {
|
|
80519
81788
|
return {
|
|
80520
81789
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80529,9 +81798,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
80529
81798
|
|
|
80530
81799
|
// src/funcs/walletsList.ts
|
|
80531
81800
|
function walletsList(client, request, options) {
|
|
80532
|
-
return new APIPromise($
|
|
81801
|
+
return new APIPromise($do153(client, request, options));
|
|
80533
81802
|
}
|
|
80534
|
-
async function $
|
|
81803
|
+
async function $do153(client, request, options) {
|
|
80535
81804
|
const parsed = safeParse(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80536
81805
|
if (!parsed.ok) {
|
|
80537
81806
|
return [parsed, { status: "invalid" }];
|
|
@@ -80619,12 +81888,12 @@ var init_walletsList = __esm(() => {
|
|
|
80619
81888
|
});
|
|
80620
81889
|
|
|
80621
81890
|
// src/mcp-server/tools/walletsList.ts
|
|
80622
|
-
var
|
|
81891
|
+
var args153, tool$walletsList;
|
|
80623
81892
|
var init_walletsList2 = __esm(() => {
|
|
80624
81893
|
init_walletsList();
|
|
80625
81894
|
init_operations();
|
|
80626
81895
|
init_tools();
|
|
80627
|
-
|
|
81896
|
+
args153 = {
|
|
80628
81897
|
request: ListWalletsRequest$inboundSchema
|
|
80629
81898
|
};
|
|
80630
81899
|
tool$walletsList = {
|
|
@@ -80635,9 +81904,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
80635
81904
|
|
|
80636
81905
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80637
81906
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
80638
|
-
args:
|
|
80639
|
-
tool: async (client,
|
|
80640
|
-
const [result, apiCall] = await walletsList(client,
|
|
81907
|
+
args: args153,
|
|
81908
|
+
tool: async (client, args154, ctx) => {
|
|
81909
|
+
const [result, apiCall] = await walletsList(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80641
81910
|
if (!result.ok) {
|
|
80642
81911
|
return {
|
|
80643
81912
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80652,9 +81921,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
80652
81921
|
|
|
80653
81922
|
// src/funcs/walletsUpdate.ts
|
|
80654
81923
|
function walletsUpdate(client, request, options) {
|
|
80655
|
-
return new APIPromise($
|
|
81924
|
+
return new APIPromise($do154(client, request, options));
|
|
80656
81925
|
}
|
|
80657
|
-
async function $
|
|
81926
|
+
async function $do154(client, request, options) {
|
|
80658
81927
|
const parsed = safeParse(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80659
81928
|
if (!parsed.ok) {
|
|
80660
81929
|
return [parsed, { status: "invalid" }];
|
|
@@ -80752,12 +82021,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
80752
82021
|
});
|
|
80753
82022
|
|
|
80754
82023
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
80755
|
-
var
|
|
82024
|
+
var args154, tool$walletsUpdate;
|
|
80756
82025
|
var init_walletsUpdate2 = __esm(() => {
|
|
80757
82026
|
init_walletsUpdate();
|
|
80758
82027
|
init_operations();
|
|
80759
82028
|
init_tools();
|
|
80760
|
-
|
|
82029
|
+
args154 = {
|
|
80761
82030
|
request: UpdateWalletRequest$inboundSchema
|
|
80762
82031
|
};
|
|
80763
82032
|
tool$walletsUpdate = {
|
|
@@ -80768,9 +82037,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
80768
82037
|
|
|
80769
82038
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80770
82039
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
80771
|
-
args:
|
|
80772
|
-
tool: async (client,
|
|
80773
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
82040
|
+
args: args154,
|
|
82041
|
+
tool: async (client, args155, ctx) => {
|
|
82042
|
+
const [result, apiCall] = await walletsUpdate(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80774
82043
|
if (!result.ok) {
|
|
80775
82044
|
return {
|
|
80776
82045
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80785,9 +82054,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
80785
82054
|
|
|
80786
82055
|
// src/funcs/walletTransactionsGet.ts
|
|
80787
82056
|
function walletTransactionsGet(client, request, options) {
|
|
80788
|
-
return new APIPromise($
|
|
82057
|
+
return new APIPromise($do155(client, request, options));
|
|
80789
82058
|
}
|
|
80790
|
-
async function $
|
|
82059
|
+
async function $do155(client, request, options) {
|
|
80791
82060
|
const parsed = safeParse(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80792
82061
|
if (!parsed.ok) {
|
|
80793
82062
|
return [parsed, { status: "invalid" }];
|
|
@@ -80873,12 +82142,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
80873
82142
|
});
|
|
80874
82143
|
|
|
80875
82144
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
80876
|
-
var
|
|
82145
|
+
var args155, tool$walletTransactionsGet;
|
|
80877
82146
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
80878
82147
|
init_walletTransactionsGet();
|
|
80879
82148
|
init_operations();
|
|
80880
82149
|
init_tools();
|
|
80881
|
-
|
|
82150
|
+
args155 = {
|
|
80882
82151
|
request: GetWalletTransactionRequest$inboundSchema
|
|
80883
82152
|
};
|
|
80884
82153
|
tool$walletTransactionsGet = {
|
|
@@ -80889,9 +82158,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
80889
82158
|
|
|
80890
82159
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80891
82160
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
80892
|
-
args:
|
|
80893
|
-
tool: async (client,
|
|
80894
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
82161
|
+
args: args155,
|
|
82162
|
+
tool: async (client, args156, ctx) => {
|
|
82163
|
+
const [result, apiCall] = await walletTransactionsGet(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80895
82164
|
if (!result.ok) {
|
|
80896
82165
|
return {
|
|
80897
82166
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80906,9 +82175,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
80906
82175
|
|
|
80907
82176
|
// src/funcs/walletTransactionsList.ts
|
|
80908
82177
|
function walletTransactionsList(client, request, options) {
|
|
80909
|
-
return new APIPromise($
|
|
82178
|
+
return new APIPromise($do156(client, request, options));
|
|
80910
82179
|
}
|
|
80911
|
-
async function $
|
|
82180
|
+
async function $do156(client, request, options) {
|
|
80912
82181
|
const parsed = safeParse(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80913
82182
|
if (!parsed.ok) {
|
|
80914
82183
|
return [parsed, { status: "invalid" }];
|
|
@@ -81008,12 +82277,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
81008
82277
|
});
|
|
81009
82278
|
|
|
81010
82279
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
81011
|
-
var
|
|
82280
|
+
var args156, tool$walletTransactionsList;
|
|
81012
82281
|
var init_walletTransactionsList2 = __esm(() => {
|
|
81013
82282
|
init_walletTransactionsList();
|
|
81014
82283
|
init_operations();
|
|
81015
82284
|
init_tools();
|
|
81016
|
-
|
|
82285
|
+
args156 = {
|
|
81017
82286
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
81018
82287
|
};
|
|
81019
82288
|
tool$walletTransactionsList = {
|
|
@@ -81024,9 +82293,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
81024
82293
|
|
|
81025
82294
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81026
82295
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
81027
|
-
args:
|
|
81028
|
-
tool: async (client,
|
|
81029
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
82296
|
+
args: args156,
|
|
82297
|
+
tool: async (client, args157, ctx) => {
|
|
82298
|
+
const [result, apiCall] = await walletTransactionsList(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81030
82299
|
if (!result.ok) {
|
|
81031
82300
|
return {
|
|
81032
82301
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -81043,7 +82312,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
81043
82312
|
function createMCPServer(deps) {
|
|
81044
82313
|
const server = new McpServer({
|
|
81045
82314
|
name: "Moov",
|
|
81046
|
-
version: "0.16.
|
|
82315
|
+
version: "0.16.5"
|
|
81047
82316
|
});
|
|
81048
82317
|
const client = new MoovCore({
|
|
81049
82318
|
security: deps.security,
|
|
@@ -81129,6 +82398,11 @@ function createMCPServer(deps) {
|
|
|
81129
82398
|
tool(tool$paymentLinksGetQRCode);
|
|
81130
82399
|
tool(tool$paymentMethodsList);
|
|
81131
82400
|
tool(tool$paymentMethodsGet);
|
|
82401
|
+
tool(tool$productsList);
|
|
82402
|
+
tool(tool$productsCreate);
|
|
82403
|
+
tool(tool$productsGet);
|
|
82404
|
+
tool(tool$productsUpdate);
|
|
82405
|
+
tool(tool$productsDisable);
|
|
81132
82406
|
tool(tool$representativesCreate);
|
|
81133
82407
|
tool(tool$representativesList);
|
|
81134
82408
|
tool(tool$representativesDelete);
|
|
@@ -81316,6 +82590,11 @@ var init_server2 = __esm(() => {
|
|
|
81316
82590
|
init_paymentMethodsGet2();
|
|
81317
82591
|
init_paymentMethodsList2();
|
|
81318
82592
|
init_pingPing2();
|
|
82593
|
+
init_productsCreate2();
|
|
82594
|
+
init_productsDisable2();
|
|
82595
|
+
init_productsGet2();
|
|
82596
|
+
init_productsList2();
|
|
82597
|
+
init_productsUpdate2();
|
|
81319
82598
|
init_receiptsCreate2();
|
|
81320
82599
|
init_receiptsList2();
|
|
81321
82600
|
init_representativesCreate2();
|
|
@@ -82569,7 +83848,7 @@ var routes = rn({
|
|
|
82569
83848
|
var app = Ve(routes, {
|
|
82570
83849
|
name: "mcp",
|
|
82571
83850
|
versionInfo: {
|
|
82572
|
-
currentVersion: "0.16.
|
|
83851
|
+
currentVersion: "0.16.5"
|
|
82573
83852
|
}
|
|
82574
83853
|
});
|
|
82575
83854
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -82577,5 +83856,5 @@ export {
|
|
|
82577
83856
|
app
|
|
82578
83857
|
};
|
|
82579
83858
|
|
|
82580
|
-
//# debugId=
|
|
83859
|
+
//# debugId=FB9192464406F64164756E2164756E21
|
|
82581
83860
|
//# sourceMappingURL=mcp-server.js.map
|