@moovio/sdk 0.16.4 → 0.16.6
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 +1867 -585
- package/bin/mcp-server.js.map +37 -9
- package/docs/sdks/products/README.md +616 -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 +55 -0
- package/models/components/createproductoption.d.ts.map +1 -0
- package/models/components/createproductoption.js +77 -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 +58 -0
- package/models/components/productoption.d.ts.map +1 -0
- package/models/components/productoption.js +77 -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 +41 -0
- package/models/components/productoptionvalidationerror.d.ts.map +1 -0
- package/models/components/productoptionvalidationerror.js +77 -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 +108 -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 +107 -0
- package/src/models/components/productoptiongroup.ts +113 -0
- package/src/models/components/productoptiongroupvalidationerror.ts +91 -0
- package/src/models/components/productoptionvalidationerror.ts +94 -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.6",
|
|
34179
34179
|
genVersion: "2.723.11",
|
|
34180
|
-
userAgent: "speakeasy-sdk/typescript 0.16.
|
|
34180
|
+
userAgent: "speakeasy-sdk/typescript 0.16.6 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,55 @@ 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_amountdecimal();
|
|
43558
|
+
init_assignproductimage();
|
|
43559
|
+
CreateProductOption$inboundSchema = objectType({
|
|
43560
|
+
name: stringType(),
|
|
43561
|
+
description: stringType().optional(),
|
|
43562
|
+
priceModifier: AmountDecimal$inboundSchema.optional(),
|
|
43563
|
+
images: arrayType(AssignProductImage$inboundSchema).optional()
|
|
43564
|
+
});
|
|
43565
|
+
CreateProductOption$outboundSchema = objectType({
|
|
43566
|
+
name: stringType(),
|
|
43567
|
+
description: stringType().optional(),
|
|
43568
|
+
priceModifier: AmountDecimal$outboundSchema.optional(),
|
|
43569
|
+
images: arrayType(AssignProductImage$outboundSchema).optional()
|
|
43570
|
+
});
|
|
43571
|
+
((CreateProductOption$) => {
|
|
43572
|
+
CreateProductOption$.inboundSchema = CreateProductOption$inboundSchema;
|
|
43573
|
+
CreateProductOption$.outboundSchema = CreateProductOption$outboundSchema;
|
|
43574
|
+
})(CreateProductOption$ ||= {});
|
|
43575
|
+
});
|
|
43576
|
+
|
|
43577
|
+
// src/models/components/createproductoptiongroup.ts
|
|
43578
|
+
var CreateProductOptionGroup$inboundSchema, CreateProductOptionGroup$outboundSchema, CreateProductOptionGroup$;
|
|
43579
|
+
var init_createproductoptiongroup = __esm(() => {
|
|
43580
|
+
init_esm();
|
|
43581
|
+
init_createproductoption();
|
|
43582
|
+
CreateProductOptionGroup$inboundSchema = objectType({
|
|
43583
|
+
name: stringType(),
|
|
43584
|
+
description: stringType().optional(),
|
|
43585
|
+
minSelect: numberType().int(),
|
|
43586
|
+
maxSelect: numberType().int(),
|
|
43587
|
+
options: arrayType(CreateProductOption$inboundSchema)
|
|
43588
|
+
});
|
|
43589
|
+
CreateProductOptionGroup$outboundSchema = objectType({
|
|
43590
|
+
name: stringType(),
|
|
43591
|
+
description: stringType().optional(),
|
|
43592
|
+
minSelect: numberType().int(),
|
|
43593
|
+
maxSelect: numberType().int(),
|
|
43594
|
+
options: arrayType(CreateProductOption$outboundSchema)
|
|
43595
|
+
});
|
|
43596
|
+
((CreateProductOptionGroup$) => {
|
|
43597
|
+
CreateProductOptionGroup$.inboundSchema = CreateProductOptionGroup$inboundSchema;
|
|
43598
|
+
CreateProductOptionGroup$.outboundSchema = CreateProductOptionGroup$outboundSchema;
|
|
43599
|
+
})(CreateProductOptionGroup$ ||= {});
|
|
43600
|
+
});
|
|
43601
|
+
|
|
43503
43602
|
// src/models/components/createprofileerror.ts
|
|
43504
43603
|
var CreateProfileError$inboundSchema, CreateProfileError$outboundSchema, CreateProfileError$;
|
|
43505
43604
|
var init_createprofileerror = __esm(() => {
|
|
@@ -47218,6 +47317,186 @@ var init_platformfees = __esm(() => {
|
|
|
47218
47317
|
})(PlatformFees$ ||= {});
|
|
47219
47318
|
});
|
|
47220
47319
|
|
|
47320
|
+
// src/models/components/productimagemetadata.ts
|
|
47321
|
+
var ProductImageMetadata$inboundSchema, ProductImageMetadata$outboundSchema, ProductImageMetadata$;
|
|
47322
|
+
var init_productimagemetadata = __esm(() => {
|
|
47323
|
+
init_esm();
|
|
47324
|
+
ProductImageMetadata$inboundSchema = objectType({
|
|
47325
|
+
imageID: stringType(),
|
|
47326
|
+
altText: stringType().optional(),
|
|
47327
|
+
link: stringType()
|
|
47328
|
+
});
|
|
47329
|
+
ProductImageMetadata$outboundSchema = objectType({
|
|
47330
|
+
imageID: stringType(),
|
|
47331
|
+
altText: stringType().optional(),
|
|
47332
|
+
link: stringType()
|
|
47333
|
+
});
|
|
47334
|
+
((ProductImageMetadata$) => {
|
|
47335
|
+
ProductImageMetadata$.inboundSchema = ProductImageMetadata$inboundSchema;
|
|
47336
|
+
ProductImageMetadata$.outboundSchema = ProductImageMetadata$outboundSchema;
|
|
47337
|
+
})(ProductImageMetadata$ ||= {});
|
|
47338
|
+
});
|
|
47339
|
+
|
|
47340
|
+
// src/models/components/productoption.ts
|
|
47341
|
+
var ProductOption$inboundSchema, ProductOption$outboundSchema, ProductOption$;
|
|
47342
|
+
var init_productoption = __esm(() => {
|
|
47343
|
+
init_esm();
|
|
47344
|
+
init_amountdecimal();
|
|
47345
|
+
init_productimagemetadata();
|
|
47346
|
+
ProductOption$inboundSchema = objectType({
|
|
47347
|
+
name: stringType(),
|
|
47348
|
+
description: stringType().optional(),
|
|
47349
|
+
priceModifier: AmountDecimal$inboundSchema.optional(),
|
|
47350
|
+
images: arrayType(ProductImageMetadata$inboundSchema).optional()
|
|
47351
|
+
});
|
|
47352
|
+
ProductOption$outboundSchema = objectType({
|
|
47353
|
+
name: stringType(),
|
|
47354
|
+
description: stringType().optional(),
|
|
47355
|
+
priceModifier: AmountDecimal$outboundSchema.optional(),
|
|
47356
|
+
images: arrayType(ProductImageMetadata$outboundSchema).optional()
|
|
47357
|
+
});
|
|
47358
|
+
((ProductOption$) => {
|
|
47359
|
+
ProductOption$.inboundSchema = ProductOption$inboundSchema;
|
|
47360
|
+
ProductOption$.outboundSchema = ProductOption$outboundSchema;
|
|
47361
|
+
})(ProductOption$ ||= {});
|
|
47362
|
+
});
|
|
47363
|
+
|
|
47364
|
+
// src/models/components/productoptiongroup.ts
|
|
47365
|
+
var ProductOptionGroup$inboundSchema, ProductOptionGroup$outboundSchema, ProductOptionGroup$;
|
|
47366
|
+
var init_productoptiongroup = __esm(() => {
|
|
47367
|
+
init_esm();
|
|
47368
|
+
init_productoption();
|
|
47369
|
+
ProductOptionGroup$inboundSchema = objectType({
|
|
47370
|
+
name: stringType(),
|
|
47371
|
+
description: stringType().optional(),
|
|
47372
|
+
minSelect: numberType().int(),
|
|
47373
|
+
maxSelect: numberType().int(),
|
|
47374
|
+
options: arrayType(ProductOption$inboundSchema)
|
|
47375
|
+
});
|
|
47376
|
+
ProductOptionGroup$outboundSchema = objectType({
|
|
47377
|
+
name: stringType(),
|
|
47378
|
+
description: stringType().optional(),
|
|
47379
|
+
minSelect: numberType().int(),
|
|
47380
|
+
maxSelect: numberType().int(),
|
|
47381
|
+
options: arrayType(ProductOption$outboundSchema)
|
|
47382
|
+
});
|
|
47383
|
+
((ProductOptionGroup$) => {
|
|
47384
|
+
ProductOptionGroup$.inboundSchema = ProductOptionGroup$inboundSchema;
|
|
47385
|
+
ProductOptionGroup$.outboundSchema = ProductOptionGroup$outboundSchema;
|
|
47386
|
+
})(ProductOptionGroup$ ||= {});
|
|
47387
|
+
});
|
|
47388
|
+
|
|
47389
|
+
// src/models/components/product.ts
|
|
47390
|
+
var Product$inboundSchema, Product$outboundSchema, Product$;
|
|
47391
|
+
var init_product = __esm(() => {
|
|
47392
|
+
init_esm();
|
|
47393
|
+
init_amountdecimal();
|
|
47394
|
+
init_productimagemetadata();
|
|
47395
|
+
init_productoptiongroup();
|
|
47396
|
+
Product$inboundSchema = objectType({
|
|
47397
|
+
productID: stringType(),
|
|
47398
|
+
title: stringType(),
|
|
47399
|
+
description: stringType().optional(),
|
|
47400
|
+
basePrice: AmountDecimal$inboundSchema,
|
|
47401
|
+
optionGroups: arrayType(ProductOptionGroup$inboundSchema).optional(),
|
|
47402
|
+
images: arrayType(ProductImageMetadata$inboundSchema).optional(),
|
|
47403
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
47404
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
47405
|
+
disabledOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
|
|
47406
|
+
});
|
|
47407
|
+
Product$outboundSchema = objectType({
|
|
47408
|
+
productID: stringType(),
|
|
47409
|
+
title: stringType(),
|
|
47410
|
+
description: stringType().optional(),
|
|
47411
|
+
basePrice: AmountDecimal$outboundSchema,
|
|
47412
|
+
optionGroups: arrayType(ProductOptionGroup$outboundSchema).optional(),
|
|
47413
|
+
images: arrayType(ProductImageMetadata$outboundSchema).optional(),
|
|
47414
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
47415
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
47416
|
+
disabledOn: dateType().transform((v2) => v2.toISOString()).optional()
|
|
47417
|
+
});
|
|
47418
|
+
((Product$) => {
|
|
47419
|
+
Product$.inboundSchema = Product$inboundSchema;
|
|
47420
|
+
Product$.outboundSchema = Product$outboundSchema;
|
|
47421
|
+
})(Product$ ||= {});
|
|
47422
|
+
});
|
|
47423
|
+
|
|
47424
|
+
// src/models/components/productoptionvalidationerror.ts
|
|
47425
|
+
var ProductOptionValidationError$inboundSchema, ProductOptionValidationError$outboundSchema, ProductOptionValidationError$;
|
|
47426
|
+
var init_productoptionvalidationerror = __esm(() => {
|
|
47427
|
+
init_esm();
|
|
47428
|
+
init_amountdecimalvalidationerror();
|
|
47429
|
+
init_assignproductimagevalidationerror();
|
|
47430
|
+
ProductOptionValidationError$inboundSchema = objectType({
|
|
47431
|
+
name: stringType().optional(),
|
|
47432
|
+
description: stringType().optional(),
|
|
47433
|
+
priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
|
|
47434
|
+
images: recordType(AssignProductImageValidationError$inboundSchema).optional()
|
|
47435
|
+
});
|
|
47436
|
+
ProductOptionValidationError$outboundSchema = objectType({
|
|
47437
|
+
name: stringType().optional(),
|
|
47438
|
+
description: stringType().optional(),
|
|
47439
|
+
priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
|
|
47440
|
+
images: recordType(AssignProductImageValidationError$outboundSchema).optional()
|
|
47441
|
+
});
|
|
47442
|
+
((ProductOptionValidationError$) => {
|
|
47443
|
+
ProductOptionValidationError$.inboundSchema = ProductOptionValidationError$inboundSchema;
|
|
47444
|
+
ProductOptionValidationError$.outboundSchema = ProductOptionValidationError$outboundSchema;
|
|
47445
|
+
})(ProductOptionValidationError$ ||= {});
|
|
47446
|
+
});
|
|
47447
|
+
|
|
47448
|
+
// src/models/components/productoptiongroupvalidationerror.ts
|
|
47449
|
+
var ProductOptionGroupValidationError$inboundSchema, ProductOptionGroupValidationError$outboundSchema, ProductOptionGroupValidationError$;
|
|
47450
|
+
var init_productoptiongroupvalidationerror = __esm(() => {
|
|
47451
|
+
init_esm();
|
|
47452
|
+
init_productoptionvalidationerror();
|
|
47453
|
+
ProductOptionGroupValidationError$inboundSchema = objectType({
|
|
47454
|
+
name: stringType().optional(),
|
|
47455
|
+
description: stringType().optional(),
|
|
47456
|
+
minSelect: stringType().optional(),
|
|
47457
|
+
maxSelect: stringType().optional(),
|
|
47458
|
+
options: recordType(ProductOptionValidationError$inboundSchema).optional()
|
|
47459
|
+
});
|
|
47460
|
+
ProductOptionGroupValidationError$outboundSchema = objectType({
|
|
47461
|
+
name: stringType().optional(),
|
|
47462
|
+
description: stringType().optional(),
|
|
47463
|
+
minSelect: stringType().optional(),
|
|
47464
|
+
maxSelect: stringType().optional(),
|
|
47465
|
+
options: recordType(ProductOptionValidationError$outboundSchema).optional()
|
|
47466
|
+
});
|
|
47467
|
+
((ProductOptionGroupValidationError$) => {
|
|
47468
|
+
ProductOptionGroupValidationError$.inboundSchema = ProductOptionGroupValidationError$inboundSchema;
|
|
47469
|
+
ProductOptionGroupValidationError$.outboundSchema = ProductOptionGroupValidationError$outboundSchema;
|
|
47470
|
+
})(ProductOptionGroupValidationError$ ||= {});
|
|
47471
|
+
});
|
|
47472
|
+
|
|
47473
|
+
// src/models/components/productrequest.ts
|
|
47474
|
+
var ProductRequest$inboundSchema, ProductRequest$outboundSchema, ProductRequest$;
|
|
47475
|
+
var init_productrequest = __esm(() => {
|
|
47476
|
+
init_esm();
|
|
47477
|
+
init_amountdecimal();
|
|
47478
|
+
init_assignproductimage();
|
|
47479
|
+
init_createproductoptiongroup();
|
|
47480
|
+
ProductRequest$inboundSchema = objectType({
|
|
47481
|
+
title: stringType(),
|
|
47482
|
+
description: stringType().optional(),
|
|
47483
|
+
basePrice: AmountDecimal$inboundSchema,
|
|
47484
|
+
images: arrayType(AssignProductImage$inboundSchema).optional(),
|
|
47485
|
+
optionGroups: arrayType(CreateProductOptionGroup$inboundSchema).optional()
|
|
47486
|
+
});
|
|
47487
|
+
ProductRequest$outboundSchema = objectType({
|
|
47488
|
+
title: stringType(),
|
|
47489
|
+
description: stringType().optional(),
|
|
47490
|
+
basePrice: AmountDecimal$outboundSchema,
|
|
47491
|
+
images: arrayType(AssignProductImage$outboundSchema).optional(),
|
|
47492
|
+
optionGroups: arrayType(CreateProductOptionGroup$outboundSchema).optional()
|
|
47493
|
+
});
|
|
47494
|
+
((ProductRequest$) => {
|
|
47495
|
+
ProductRequest$.inboundSchema = ProductRequest$inboundSchema;
|
|
47496
|
+
ProductRequest$.outboundSchema = ProductRequest$outboundSchema;
|
|
47497
|
+
})(ProductRequest$ ||= {});
|
|
47498
|
+
});
|
|
47499
|
+
|
|
47221
47500
|
// src/models/components/qrcode.ts
|
|
47222
47501
|
var QRCode$inboundSchema, QRCode$outboundSchema, QRCode$;
|
|
47223
47502
|
var init_qrcode = __esm(() => {
|
|
@@ -50171,6 +50450,7 @@ var init_components = __esm(() => {
|
|
|
50171
50450
|
init_adjustment();
|
|
50172
50451
|
init_amount();
|
|
50173
50452
|
init_amountdecimal();
|
|
50453
|
+
init_amountdecimalvalidationerror();
|
|
50174
50454
|
init_amountupdate();
|
|
50175
50455
|
init_amountvalidationerror();
|
|
50176
50456
|
init_applebillingcontact();
|
|
@@ -50179,6 +50459,8 @@ var init_components = __esm(() => {
|
|
|
50179
50459
|
init_applepaypaymentmethod();
|
|
50180
50460
|
init_applepayresponse();
|
|
50181
50461
|
init_applicationscope();
|
|
50462
|
+
init_assignproductimage();
|
|
50463
|
+
init_assignproductimagevalidationerror();
|
|
50182
50464
|
init_asynccreatedrefund();
|
|
50183
50465
|
init_asynctransfer();
|
|
50184
50466
|
init_authorizeduser();
|
|
@@ -50278,6 +50560,8 @@ var init_components = __esm(() => {
|
|
|
50278
50560
|
init_createindividualerror();
|
|
50279
50561
|
init_createindividualprofile();
|
|
50280
50562
|
init_createpaymentlink();
|
|
50563
|
+
init_createproductoption();
|
|
50564
|
+
init_createproductoptiongroup();
|
|
50281
50565
|
init_createprofile();
|
|
50282
50566
|
init_createprofileerror();
|
|
50283
50567
|
init_createrefund();
|
|
@@ -50456,6 +50740,13 @@ var init_components = __esm(() => {
|
|
|
50456
50740
|
init_plaidpayload();
|
|
50457
50741
|
init_platformfees();
|
|
50458
50742
|
init_primaryregulator();
|
|
50743
|
+
init_product();
|
|
50744
|
+
init_productimagemetadata();
|
|
50745
|
+
init_productoption();
|
|
50746
|
+
init_productoptiongroup();
|
|
50747
|
+
init_productoptiongroupvalidationerror();
|
|
50748
|
+
init_productoptionvalidationerror();
|
|
50749
|
+
init_productrequest();
|
|
50459
50750
|
init_profile();
|
|
50460
50751
|
init_pullfromcardpaymentmethod();
|
|
50461
50752
|
init_pushtocardpaymentmethod();
|
|
@@ -51940,6 +52231,65 @@ var init_patchwalletvalidationerror = __esm(() => {
|
|
|
51940
52231
|
})(PatchWalletValidationError$ ||= {});
|
|
51941
52232
|
});
|
|
51942
52233
|
|
|
52234
|
+
// src/models/errors/productrequestvalidationerror.ts
|
|
52235
|
+
var ProductRequestValidationError, ProductRequestValidationError$inboundSchema, ProductRequestValidationError$outboundSchema, ProductRequestValidationError$;
|
|
52236
|
+
var init_productrequestvalidationerror = __esm(() => {
|
|
52237
|
+
init_esm();
|
|
52238
|
+
init_components();
|
|
52239
|
+
init_mooverror();
|
|
52240
|
+
ProductRequestValidationError = class ProductRequestValidationError extends MoovError {
|
|
52241
|
+
title;
|
|
52242
|
+
description;
|
|
52243
|
+
basePrice;
|
|
52244
|
+
images;
|
|
52245
|
+
optionGroups;
|
|
52246
|
+
data$;
|
|
52247
|
+
constructor(err, httpMeta) {
|
|
52248
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
52249
|
+
super(message, httpMeta);
|
|
52250
|
+
this.data$ = err;
|
|
52251
|
+
if (err.title != null)
|
|
52252
|
+
this.title = err.title;
|
|
52253
|
+
if (err.description != null)
|
|
52254
|
+
this.description = err.description;
|
|
52255
|
+
if (err.basePrice != null)
|
|
52256
|
+
this.basePrice = err.basePrice;
|
|
52257
|
+
if (err.images != null)
|
|
52258
|
+
this.images = err.images;
|
|
52259
|
+
if (err.optionGroups != null)
|
|
52260
|
+
this.optionGroups = err.optionGroups;
|
|
52261
|
+
this.name = "ProductRequestValidationError";
|
|
52262
|
+
}
|
|
52263
|
+
};
|
|
52264
|
+
ProductRequestValidationError$inboundSchema = objectType({
|
|
52265
|
+
title: stringType().optional(),
|
|
52266
|
+
description: stringType().optional(),
|
|
52267
|
+
basePrice: AmountDecimalValidationError$inboundSchema.optional(),
|
|
52268
|
+
images: recordType(AssignProductImageValidationError$inboundSchema).optional(),
|
|
52269
|
+
optionGroups: recordType(ProductOptionGroupValidationError$inboundSchema).optional(),
|
|
52270
|
+
request$: instanceOfType(Request),
|
|
52271
|
+
response$: instanceOfType(Response),
|
|
52272
|
+
body$: stringType()
|
|
52273
|
+
}).transform((v2) => {
|
|
52274
|
+
return new ProductRequestValidationError(v2, {
|
|
52275
|
+
request: v2.request$,
|
|
52276
|
+
response: v2.response$,
|
|
52277
|
+
body: v2.body$
|
|
52278
|
+
});
|
|
52279
|
+
});
|
|
52280
|
+
ProductRequestValidationError$outboundSchema = instanceOfType(ProductRequestValidationError).transform((v2) => v2.data$).pipe(objectType({
|
|
52281
|
+
title: stringType().optional(),
|
|
52282
|
+
description: stringType().optional(),
|
|
52283
|
+
basePrice: AmountDecimalValidationError$outboundSchema.optional(),
|
|
52284
|
+
images: recordType(AssignProductImageValidationError$outboundSchema).optional(),
|
|
52285
|
+
optionGroups: recordType(ProductOptionGroupValidationError$outboundSchema).optional()
|
|
52286
|
+
}));
|
|
52287
|
+
((ProductRequestValidationError$) => {
|
|
52288
|
+
ProductRequestValidationError$.inboundSchema = ProductRequestValidationError$inboundSchema;
|
|
52289
|
+
ProductRequestValidationError$.outboundSchema = ProductRequestValidationError$outboundSchema;
|
|
52290
|
+
})(ProductRequestValidationError$ ||= {});
|
|
52291
|
+
});
|
|
52292
|
+
|
|
51943
52293
|
// src/models/errors/refundvalidationerror.ts
|
|
51944
52294
|
var RefundValidationError, RefundValidationError$inboundSchema, RefundValidationError$outboundSchema, RefundValidationError$;
|
|
51945
52295
|
var init_refundvalidationerror = __esm(() => {
|
|
@@ -53033,6 +53383,7 @@ var init_errors2 = __esm(() => {
|
|
|
53033
53383
|
init_patchsweepconfigerror();
|
|
53034
53384
|
init_patchtransfervalidationerror();
|
|
53035
53385
|
init_patchwalletvalidationerror();
|
|
53386
|
+
init_productrequestvalidationerror();
|
|
53036
53387
|
init_refundvalidationerror();
|
|
53037
53388
|
init_representativevalidationerror();
|
|
53038
53389
|
init_requestcarderror();
|
|
@@ -53852,6 +54203,74 @@ var init_createpaymentlink2 = __esm(() => {
|
|
|
53852
54203
|
})(CreatePaymentLinkResponse$ ||= {});
|
|
53853
54204
|
});
|
|
53854
54205
|
|
|
54206
|
+
// src/models/operations/createproduct.ts
|
|
54207
|
+
var CreateProductGlobals$inboundSchema, CreateProductGlobals$outboundSchema, CreateProductGlobals$, CreateProductRequest$inboundSchema, CreateProductRequest$outboundSchema, CreateProductRequest$, CreateProductResponse$inboundSchema, CreateProductResponse$outboundSchema, CreateProductResponse$;
|
|
54208
|
+
var init_createproduct = __esm(() => {
|
|
54209
|
+
init_esm();
|
|
54210
|
+
init_primitives();
|
|
54211
|
+
init_components();
|
|
54212
|
+
CreateProductGlobals$inboundSchema = objectType({
|
|
54213
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
54214
|
+
}).transform((v2) => {
|
|
54215
|
+
return remap(v2, {
|
|
54216
|
+
"x-moov-version": "xMoovVersion"
|
|
54217
|
+
});
|
|
54218
|
+
});
|
|
54219
|
+
CreateProductGlobals$outboundSchema = objectType({
|
|
54220
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
54221
|
+
}).transform((v2) => {
|
|
54222
|
+
return remap(v2, {
|
|
54223
|
+
xMoovVersion: "x-moov-version"
|
|
54224
|
+
});
|
|
54225
|
+
});
|
|
54226
|
+
((CreateProductGlobals$) => {
|
|
54227
|
+
CreateProductGlobals$.inboundSchema = CreateProductGlobals$inboundSchema;
|
|
54228
|
+
CreateProductGlobals$.outboundSchema = CreateProductGlobals$outboundSchema;
|
|
54229
|
+
})(CreateProductGlobals$ ||= {});
|
|
54230
|
+
CreateProductRequest$inboundSchema = objectType({
|
|
54231
|
+
accountID: stringType(),
|
|
54232
|
+
ProductRequest: ProductRequest$inboundSchema
|
|
54233
|
+
}).transform((v2) => {
|
|
54234
|
+
return remap(v2, {
|
|
54235
|
+
ProductRequest: "productRequest"
|
|
54236
|
+
});
|
|
54237
|
+
});
|
|
54238
|
+
CreateProductRequest$outboundSchema = objectType({
|
|
54239
|
+
accountID: stringType(),
|
|
54240
|
+
productRequest: ProductRequest$outboundSchema
|
|
54241
|
+
}).transform((v2) => {
|
|
54242
|
+
return remap(v2, {
|
|
54243
|
+
productRequest: "ProductRequest"
|
|
54244
|
+
});
|
|
54245
|
+
});
|
|
54246
|
+
((CreateProductRequest$) => {
|
|
54247
|
+
CreateProductRequest$.inboundSchema = CreateProductRequest$inboundSchema;
|
|
54248
|
+
CreateProductRequest$.outboundSchema = CreateProductRequest$outboundSchema;
|
|
54249
|
+
})(CreateProductRequest$ ||= {});
|
|
54250
|
+
CreateProductResponse$inboundSchema = objectType({
|
|
54251
|
+
Headers: recordType(arrayType(stringType())),
|
|
54252
|
+
Result: Product$inboundSchema
|
|
54253
|
+
}).transform((v2) => {
|
|
54254
|
+
return remap(v2, {
|
|
54255
|
+
Headers: "headers",
|
|
54256
|
+
Result: "result"
|
|
54257
|
+
});
|
|
54258
|
+
});
|
|
54259
|
+
CreateProductResponse$outboundSchema = objectType({
|
|
54260
|
+
headers: recordType(arrayType(stringType())),
|
|
54261
|
+
result: Product$outboundSchema
|
|
54262
|
+
}).transform((v2) => {
|
|
54263
|
+
return remap(v2, {
|
|
54264
|
+
headers: "Headers",
|
|
54265
|
+
result: "Result"
|
|
54266
|
+
});
|
|
54267
|
+
});
|
|
54268
|
+
((CreateProductResponse$) => {
|
|
54269
|
+
CreateProductResponse$.inboundSchema = CreateProductResponse$inboundSchema;
|
|
54270
|
+
CreateProductResponse$.outboundSchema = CreateProductResponse$outboundSchema;
|
|
54271
|
+
})(CreateProductResponse$ ||= {});
|
|
54272
|
+
});
|
|
54273
|
+
|
|
53855
54274
|
// src/models/operations/createreceipts.ts
|
|
53856
54275
|
var CreateReceiptsGlobals$inboundSchema, CreateReceiptsGlobals$outboundSchema, CreateReceiptsGlobals$, CreateReceiptsResponse$inboundSchema, CreateReceiptsResponse$outboundSchema, CreateReceiptsResponse$;
|
|
53857
54276
|
var init_createreceipts = __esm(() => {
|
|
@@ -55037,6 +55456,61 @@ var init_disablepaymentlink = __esm(() => {
|
|
|
55037
55456
|
})(DisablePaymentLinkResponse$ ||= {});
|
|
55038
55457
|
});
|
|
55039
55458
|
|
|
55459
|
+
// src/models/operations/disableproduct.ts
|
|
55460
|
+
var DisableProductGlobals$inboundSchema, DisableProductGlobals$outboundSchema, DisableProductGlobals$, DisableProductRequest$inboundSchema, DisableProductRequest$outboundSchema, DisableProductRequest$, DisableProductResponse$inboundSchema, DisableProductResponse$outboundSchema, DisableProductResponse$;
|
|
55461
|
+
var init_disableproduct = __esm(() => {
|
|
55462
|
+
init_esm();
|
|
55463
|
+
init_primitives();
|
|
55464
|
+
DisableProductGlobals$inboundSchema = objectType({
|
|
55465
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
55466
|
+
}).transform((v2) => {
|
|
55467
|
+
return remap(v2, {
|
|
55468
|
+
"x-moov-version": "xMoovVersion"
|
|
55469
|
+
});
|
|
55470
|
+
});
|
|
55471
|
+
DisableProductGlobals$outboundSchema = objectType({
|
|
55472
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
55473
|
+
}).transform((v2) => {
|
|
55474
|
+
return remap(v2, {
|
|
55475
|
+
xMoovVersion: "x-moov-version"
|
|
55476
|
+
});
|
|
55477
|
+
});
|
|
55478
|
+
((DisableProductGlobals$) => {
|
|
55479
|
+
DisableProductGlobals$.inboundSchema = DisableProductGlobals$inboundSchema;
|
|
55480
|
+
DisableProductGlobals$.outboundSchema = DisableProductGlobals$outboundSchema;
|
|
55481
|
+
})(DisableProductGlobals$ ||= {});
|
|
55482
|
+
DisableProductRequest$inboundSchema = objectType({
|
|
55483
|
+
accountID: stringType(),
|
|
55484
|
+
productID: stringType()
|
|
55485
|
+
});
|
|
55486
|
+
DisableProductRequest$outboundSchema = objectType({
|
|
55487
|
+
accountID: stringType(),
|
|
55488
|
+
productID: stringType()
|
|
55489
|
+
});
|
|
55490
|
+
((DisableProductRequest$) => {
|
|
55491
|
+
DisableProductRequest$.inboundSchema = DisableProductRequest$inboundSchema;
|
|
55492
|
+
DisableProductRequest$.outboundSchema = DisableProductRequest$outboundSchema;
|
|
55493
|
+
})(DisableProductRequest$ ||= {});
|
|
55494
|
+
DisableProductResponse$inboundSchema = objectType({
|
|
55495
|
+
Headers: recordType(arrayType(stringType()))
|
|
55496
|
+
}).transform((v2) => {
|
|
55497
|
+
return remap(v2, {
|
|
55498
|
+
Headers: "headers"
|
|
55499
|
+
});
|
|
55500
|
+
});
|
|
55501
|
+
DisableProductResponse$outboundSchema = objectType({
|
|
55502
|
+
headers: recordType(arrayType(stringType()))
|
|
55503
|
+
}).transform((v2) => {
|
|
55504
|
+
return remap(v2, {
|
|
55505
|
+
headers: "Headers"
|
|
55506
|
+
});
|
|
55507
|
+
});
|
|
55508
|
+
((DisableProductResponse$) => {
|
|
55509
|
+
DisableProductResponse$.inboundSchema = DisableProductResponse$inboundSchema;
|
|
55510
|
+
DisableProductResponse$.outboundSchema = DisableProductResponse$outboundSchema;
|
|
55511
|
+
})(DisableProductResponse$ ||= {});
|
|
55512
|
+
});
|
|
55513
|
+
|
|
55040
55514
|
// src/models/operations/disconnectaccount.ts
|
|
55041
55515
|
var DisconnectAccountGlobals$inboundSchema, DisconnectAccountGlobals$outboundSchema, DisconnectAccountGlobals$, DisconnectAccountRequest$inboundSchema, DisconnectAccountRequest$outboundSchema, DisconnectAccountRequest$, DisconnectAccountResponse$inboundSchema, DisconnectAccountResponse$outboundSchema, DisconnectAccountResponse$;
|
|
55042
55516
|
var init_disconnectaccount = __esm(() => {
|
|
@@ -56873,6 +57347,66 @@ var init_getpaymentmethod = __esm(() => {
|
|
|
56873
57347
|
})(GetPaymentMethodResponse$ ||= {});
|
|
56874
57348
|
});
|
|
56875
57349
|
|
|
57350
|
+
// src/models/operations/getproduct.ts
|
|
57351
|
+
var GetProductGlobals$inboundSchema, GetProductGlobals$outboundSchema, GetProductGlobals$, GetProductRequest$inboundSchema, GetProductRequest$outboundSchema, GetProductRequest$, GetProductResponse$inboundSchema, GetProductResponse$outboundSchema, GetProductResponse$;
|
|
57352
|
+
var init_getproduct = __esm(() => {
|
|
57353
|
+
init_esm();
|
|
57354
|
+
init_primitives();
|
|
57355
|
+
init_components();
|
|
57356
|
+
GetProductGlobals$inboundSchema = objectType({
|
|
57357
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
57358
|
+
}).transform((v2) => {
|
|
57359
|
+
return remap(v2, {
|
|
57360
|
+
"x-moov-version": "xMoovVersion"
|
|
57361
|
+
});
|
|
57362
|
+
});
|
|
57363
|
+
GetProductGlobals$outboundSchema = objectType({
|
|
57364
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
57365
|
+
}).transform((v2) => {
|
|
57366
|
+
return remap(v2, {
|
|
57367
|
+
xMoovVersion: "x-moov-version"
|
|
57368
|
+
});
|
|
57369
|
+
});
|
|
57370
|
+
((GetProductGlobals$) => {
|
|
57371
|
+
GetProductGlobals$.inboundSchema = GetProductGlobals$inboundSchema;
|
|
57372
|
+
GetProductGlobals$.outboundSchema = GetProductGlobals$outboundSchema;
|
|
57373
|
+
})(GetProductGlobals$ ||= {});
|
|
57374
|
+
GetProductRequest$inboundSchema = objectType({
|
|
57375
|
+
accountID: stringType(),
|
|
57376
|
+
productID: stringType()
|
|
57377
|
+
});
|
|
57378
|
+
GetProductRequest$outboundSchema = objectType({
|
|
57379
|
+
accountID: stringType(),
|
|
57380
|
+
productID: stringType()
|
|
57381
|
+
});
|
|
57382
|
+
((GetProductRequest$) => {
|
|
57383
|
+
GetProductRequest$.inboundSchema = GetProductRequest$inboundSchema;
|
|
57384
|
+
GetProductRequest$.outboundSchema = GetProductRequest$outboundSchema;
|
|
57385
|
+
})(GetProductRequest$ ||= {});
|
|
57386
|
+
GetProductResponse$inboundSchema = objectType({
|
|
57387
|
+
Headers: recordType(arrayType(stringType())),
|
|
57388
|
+
Result: Product$inboundSchema
|
|
57389
|
+
}).transform((v2) => {
|
|
57390
|
+
return remap(v2, {
|
|
57391
|
+
Headers: "headers",
|
|
57392
|
+
Result: "result"
|
|
57393
|
+
});
|
|
57394
|
+
});
|
|
57395
|
+
GetProductResponse$outboundSchema = objectType({
|
|
57396
|
+
headers: recordType(arrayType(stringType())),
|
|
57397
|
+
result: Product$outboundSchema
|
|
57398
|
+
}).transform((v2) => {
|
|
57399
|
+
return remap(v2, {
|
|
57400
|
+
headers: "Headers",
|
|
57401
|
+
result: "Result"
|
|
57402
|
+
});
|
|
57403
|
+
});
|
|
57404
|
+
((GetProductResponse$) => {
|
|
57405
|
+
GetProductResponse$.inboundSchema = GetProductResponse$inboundSchema;
|
|
57406
|
+
GetProductResponse$.outboundSchema = GetProductResponse$outboundSchema;
|
|
57407
|
+
})(GetProductResponse$ ||= {});
|
|
57408
|
+
});
|
|
57409
|
+
|
|
56876
57410
|
// src/models/operations/getpublicimage.ts
|
|
56877
57411
|
var GetPublicImageRequest$inboundSchema, GetPublicImageRequest$outboundSchema, GetPublicImageRequest$, GetPublicImageResponseResult$inboundSchema, GetPublicImageResponseResult$outboundSchema, GetPublicImageResponseResult$, GetPublicImageResponse$inboundSchema, GetPublicImageResponse$outboundSchema, GetPublicImageResponse$;
|
|
56878
57412
|
var init_getpublicimage = __esm(() => {
|
|
@@ -59871,6 +60405,68 @@ var init_listpaymentmethods = __esm(() => {
|
|
|
59871
60405
|
})(ListPaymentMethodsResponse$ ||= {});
|
|
59872
60406
|
});
|
|
59873
60407
|
|
|
60408
|
+
// src/models/operations/listproducts.ts
|
|
60409
|
+
var ListProductsGlobals$inboundSchema, ListProductsGlobals$outboundSchema, ListProductsGlobals$, ListProductsRequest$inboundSchema, ListProductsRequest$outboundSchema, ListProductsRequest$, ListProductsResponse$inboundSchema, ListProductsResponse$outboundSchema, ListProductsResponse$;
|
|
60410
|
+
var init_listproducts = __esm(() => {
|
|
60411
|
+
init_esm();
|
|
60412
|
+
init_primitives();
|
|
60413
|
+
init_components();
|
|
60414
|
+
ListProductsGlobals$inboundSchema = objectType({
|
|
60415
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
60416
|
+
}).transform((v2) => {
|
|
60417
|
+
return remap(v2, {
|
|
60418
|
+
"x-moov-version": "xMoovVersion"
|
|
60419
|
+
});
|
|
60420
|
+
});
|
|
60421
|
+
ListProductsGlobals$outboundSchema = objectType({
|
|
60422
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
60423
|
+
}).transform((v2) => {
|
|
60424
|
+
return remap(v2, {
|
|
60425
|
+
xMoovVersion: "x-moov-version"
|
|
60426
|
+
});
|
|
60427
|
+
});
|
|
60428
|
+
((ListProductsGlobals$) => {
|
|
60429
|
+
ListProductsGlobals$.inboundSchema = ListProductsGlobals$inboundSchema;
|
|
60430
|
+
ListProductsGlobals$.outboundSchema = ListProductsGlobals$outboundSchema;
|
|
60431
|
+
})(ListProductsGlobals$ ||= {});
|
|
60432
|
+
ListProductsRequest$inboundSchema = objectType({
|
|
60433
|
+
accountID: stringType(),
|
|
60434
|
+
skip: numberType().int().optional(),
|
|
60435
|
+
count: numberType().int().optional()
|
|
60436
|
+
});
|
|
60437
|
+
ListProductsRequest$outboundSchema = objectType({
|
|
60438
|
+
accountID: stringType(),
|
|
60439
|
+
skip: numberType().int().optional(),
|
|
60440
|
+
count: numberType().int().optional()
|
|
60441
|
+
});
|
|
60442
|
+
((ListProductsRequest$) => {
|
|
60443
|
+
ListProductsRequest$.inboundSchema = ListProductsRequest$inboundSchema;
|
|
60444
|
+
ListProductsRequest$.outboundSchema = ListProductsRequest$outboundSchema;
|
|
60445
|
+
})(ListProductsRequest$ ||= {});
|
|
60446
|
+
ListProductsResponse$inboundSchema = objectType({
|
|
60447
|
+
Headers: recordType(arrayType(stringType())),
|
|
60448
|
+
Result: arrayType(Product$inboundSchema)
|
|
60449
|
+
}).transform((v2) => {
|
|
60450
|
+
return remap(v2, {
|
|
60451
|
+
Headers: "headers",
|
|
60452
|
+
Result: "result"
|
|
60453
|
+
});
|
|
60454
|
+
});
|
|
60455
|
+
ListProductsResponse$outboundSchema = objectType({
|
|
60456
|
+
headers: recordType(arrayType(stringType())),
|
|
60457
|
+
result: arrayType(Product$outboundSchema)
|
|
60458
|
+
}).transform((v2) => {
|
|
60459
|
+
return remap(v2, {
|
|
60460
|
+
headers: "Headers",
|
|
60461
|
+
result: "Result"
|
|
60462
|
+
});
|
|
60463
|
+
});
|
|
60464
|
+
((ListProductsResponse$) => {
|
|
60465
|
+
ListProductsResponse$.inboundSchema = ListProductsResponse$inboundSchema;
|
|
60466
|
+
ListProductsResponse$.outboundSchema = ListProductsResponse$outboundSchema;
|
|
60467
|
+
})(ListProductsResponse$ ||= {});
|
|
60468
|
+
});
|
|
60469
|
+
|
|
59874
60470
|
// src/models/operations/listreceipts.ts
|
|
59875
60471
|
var ListReceiptsGlobals$inboundSchema, ListReceiptsGlobals$outboundSchema, ListReceiptsGlobals$, ListReceiptsRequest$inboundSchema, ListReceiptsRequest$outboundSchema, ListReceiptsRequest$, ListReceiptsResponse$inboundSchema, ListReceiptsResponse$outboundSchema, ListReceiptsResponse$;
|
|
59876
60472
|
var init_listreceipts = __esm(() => {
|
|
@@ -61866,6 +62462,76 @@ var init_updatepaymentlink2 = __esm(() => {
|
|
|
61866
62462
|
})(UpdatePaymentLinkResponse$ ||= {});
|
|
61867
62463
|
});
|
|
61868
62464
|
|
|
62465
|
+
// src/models/operations/updateproduct.ts
|
|
62466
|
+
var UpdateProductGlobals$inboundSchema, UpdateProductGlobals$outboundSchema, UpdateProductGlobals$, UpdateProductRequest$inboundSchema, UpdateProductRequest$outboundSchema, UpdateProductRequest$, UpdateProductResponse$inboundSchema, UpdateProductResponse$outboundSchema, UpdateProductResponse$;
|
|
62467
|
+
var init_updateproduct = __esm(() => {
|
|
62468
|
+
init_esm();
|
|
62469
|
+
init_primitives();
|
|
62470
|
+
init_components();
|
|
62471
|
+
UpdateProductGlobals$inboundSchema = objectType({
|
|
62472
|
+
"x-moov-version": stringType().default("v2024.01.00")
|
|
62473
|
+
}).transform((v2) => {
|
|
62474
|
+
return remap(v2, {
|
|
62475
|
+
"x-moov-version": "xMoovVersion"
|
|
62476
|
+
});
|
|
62477
|
+
});
|
|
62478
|
+
UpdateProductGlobals$outboundSchema = objectType({
|
|
62479
|
+
xMoovVersion: stringType().default("v2024.01.00")
|
|
62480
|
+
}).transform((v2) => {
|
|
62481
|
+
return remap(v2, {
|
|
62482
|
+
xMoovVersion: "x-moov-version"
|
|
62483
|
+
});
|
|
62484
|
+
});
|
|
62485
|
+
((UpdateProductGlobals$) => {
|
|
62486
|
+
UpdateProductGlobals$.inboundSchema = UpdateProductGlobals$inboundSchema;
|
|
62487
|
+
UpdateProductGlobals$.outboundSchema = UpdateProductGlobals$outboundSchema;
|
|
62488
|
+
})(UpdateProductGlobals$ ||= {});
|
|
62489
|
+
UpdateProductRequest$inboundSchema = objectType({
|
|
62490
|
+
accountID: stringType(),
|
|
62491
|
+
productID: stringType(),
|
|
62492
|
+
ProductRequest: ProductRequest$inboundSchema
|
|
62493
|
+
}).transform((v2) => {
|
|
62494
|
+
return remap(v2, {
|
|
62495
|
+
ProductRequest: "productRequest"
|
|
62496
|
+
});
|
|
62497
|
+
});
|
|
62498
|
+
UpdateProductRequest$outboundSchema = objectType({
|
|
62499
|
+
accountID: stringType(),
|
|
62500
|
+
productID: stringType(),
|
|
62501
|
+
productRequest: ProductRequest$outboundSchema
|
|
62502
|
+
}).transform((v2) => {
|
|
62503
|
+
return remap(v2, {
|
|
62504
|
+
productRequest: "ProductRequest"
|
|
62505
|
+
});
|
|
62506
|
+
});
|
|
62507
|
+
((UpdateProductRequest$) => {
|
|
62508
|
+
UpdateProductRequest$.inboundSchema = UpdateProductRequest$inboundSchema;
|
|
62509
|
+
UpdateProductRequest$.outboundSchema = UpdateProductRequest$outboundSchema;
|
|
62510
|
+
})(UpdateProductRequest$ ||= {});
|
|
62511
|
+
UpdateProductResponse$inboundSchema = objectType({
|
|
62512
|
+
Headers: recordType(arrayType(stringType())),
|
|
62513
|
+
Result: Product$inboundSchema
|
|
62514
|
+
}).transform((v2) => {
|
|
62515
|
+
return remap(v2, {
|
|
62516
|
+
Headers: "headers",
|
|
62517
|
+
Result: "result"
|
|
62518
|
+
});
|
|
62519
|
+
});
|
|
62520
|
+
UpdateProductResponse$outboundSchema = objectType({
|
|
62521
|
+
headers: recordType(arrayType(stringType())),
|
|
62522
|
+
result: Product$outboundSchema
|
|
62523
|
+
}).transform((v2) => {
|
|
62524
|
+
return remap(v2, {
|
|
62525
|
+
headers: "Headers",
|
|
62526
|
+
result: "Result"
|
|
62527
|
+
});
|
|
62528
|
+
});
|
|
62529
|
+
((UpdateProductResponse$) => {
|
|
62530
|
+
UpdateProductResponse$.inboundSchema = UpdateProductResponse$inboundSchema;
|
|
62531
|
+
UpdateProductResponse$.outboundSchema = UpdateProductResponse$outboundSchema;
|
|
62532
|
+
})(UpdateProductResponse$ ||= {});
|
|
62533
|
+
});
|
|
62534
|
+
|
|
61869
62535
|
// src/models/operations/updaterepresentative.ts
|
|
61870
62536
|
var UpdateRepresentativeGlobals$inboundSchema, UpdateRepresentativeGlobals$outboundSchema, UpdateRepresentativeGlobals$, UpdateRepresentativeRequest$inboundSchema, UpdateRepresentativeRequest$outboundSchema, UpdateRepresentativeRequest$, UpdateRepresentativeResponse$inboundSchema, UpdateRepresentativeResponse$outboundSchema, UpdateRepresentativeResponse$;
|
|
61871
62537
|
var init_updaterepresentative2 = __esm(() => {
|
|
@@ -62645,6 +63311,7 @@ var init_operations = __esm(() => {
|
|
|
62645
63311
|
init_createfeeplanagreements();
|
|
62646
63312
|
init_createonboardinginvite();
|
|
62647
63313
|
init_createpaymentlink2();
|
|
63314
|
+
init_createproduct();
|
|
62648
63315
|
init_createreceipts();
|
|
62649
63316
|
init_createrepresentative2();
|
|
62650
63317
|
init_createreversal2();
|
|
@@ -62664,6 +63331,7 @@ var init_operations = __esm(() => {
|
|
|
62664
63331
|
init_disablecapability();
|
|
62665
63332
|
init_disablecard();
|
|
62666
63333
|
init_disablepaymentlink();
|
|
63334
|
+
init_disableproduct();
|
|
62667
63335
|
init_disconnectaccount();
|
|
62668
63336
|
init_generateendtoendkey();
|
|
62669
63337
|
init_getaccount();
|
|
@@ -62694,6 +63362,7 @@ var init_operations = __esm(() => {
|
|
|
62694
63362
|
init_getpaymentlink();
|
|
62695
63363
|
init_getpaymentlinkqrcode();
|
|
62696
63364
|
init_getpaymentmethod();
|
|
63365
|
+
init_getproduct();
|
|
62697
63366
|
init_getpublicimage();
|
|
62698
63367
|
init_getrefund();
|
|
62699
63368
|
init_getrepresentative();
|
|
@@ -62741,6 +63410,7 @@ var init_operations = __esm(() => {
|
|
|
62741
63410
|
init_listpartnerpricingagreements();
|
|
62742
63411
|
init_listpaymentlinks();
|
|
62743
63412
|
init_listpaymentmethods();
|
|
63413
|
+
init_listproducts();
|
|
62744
63414
|
init_listreceipts();
|
|
62745
63415
|
init_listrefunds();
|
|
62746
63416
|
init_listrepresentatives();
|
|
@@ -62772,6 +63442,7 @@ var init_operations = __esm(() => {
|
|
|
62772
63442
|
init_updatedisputeevidence();
|
|
62773
63443
|
init_updateissuedcard2();
|
|
62774
63444
|
init_updatepaymentlink2();
|
|
63445
|
+
init_updateproduct();
|
|
62775
63446
|
init_updaterepresentative2();
|
|
62776
63447
|
init_updateschedule();
|
|
62777
63448
|
init_updatesweepconfig();
|
|
@@ -74827,257 +75498,24 @@ you'll need to specify the \`/ping.read\` scope.`,
|
|
|
74827
75498
|
};
|
|
74828
75499
|
});
|
|
74829
75500
|
|
|
74830
|
-
// src/funcs/
|
|
74831
|
-
function
|
|
75501
|
+
// src/funcs/productsCreate.ts
|
|
75502
|
+
function productsCreate(client, request, options) {
|
|
74832
75503
|
return new APIPromise($do101(client, request, options));
|
|
74833
75504
|
}
|
|
74834
75505
|
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");
|
|
75506
|
+
const parsed = safeParse(request, (value) => CreateProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75067
75507
|
if (!parsed.ok) {
|
|
75068
75508
|
return [parsed, { status: "invalid" }];
|
|
75069
75509
|
}
|
|
75070
75510
|
const payload = parsed.value;
|
|
75071
|
-
const body = encodeJSON("body", payload.
|
|
75072
|
-
explode: true
|
|
75073
|
-
});
|
|
75511
|
+
const body = encodeJSON("body", payload.ProductRequest, { explode: true });
|
|
75074
75512
|
const pathParams = {
|
|
75075
75513
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
75076
75514
|
explode: false,
|
|
75077
75515
|
charEncoding: "percent"
|
|
75078
75516
|
})
|
|
75079
75517
|
};
|
|
75080
|
-
const path = pathToFunc("/accounts/{accountID}/
|
|
75518
|
+
const path = pathToFunc("/accounts/{accountID}/products")(pathParams);
|
|
75081
75519
|
const headers = new Headers(compactMap({
|
|
75082
75520
|
"Content-Type": "application/json",
|
|
75083
75521
|
Accept: "application/json",
|
|
@@ -75088,7 +75526,841 @@ async function $do103(client, request, options) {
|
|
|
75088
75526
|
const context = {
|
|
75089
75527
|
options: client._options,
|
|
75090
75528
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
75091
|
-
operationID: "
|
|
75529
|
+
operationID: "createProduct",
|
|
75530
|
+
oAuth2Scopes: null,
|
|
75531
|
+
resolvedSecurity: requestSecurity,
|
|
75532
|
+
securitySource: client._options.security,
|
|
75533
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
75534
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
75535
|
+
};
|
|
75536
|
+
const requestRes = client._createRequest(context, {
|
|
75537
|
+
security: requestSecurity,
|
|
75538
|
+
method: "POST",
|
|
75539
|
+
baseURL: options?.serverURL,
|
|
75540
|
+
path,
|
|
75541
|
+
headers,
|
|
75542
|
+
body,
|
|
75543
|
+
userAgent: client._options.userAgent,
|
|
75544
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
75545
|
+
}, options);
|
|
75546
|
+
if (!requestRes.ok) {
|
|
75547
|
+
return [requestRes, { status: "invalid" }];
|
|
75548
|
+
}
|
|
75549
|
+
const req = requestRes.value;
|
|
75550
|
+
const doResult = await client._do(req, {
|
|
75551
|
+
context,
|
|
75552
|
+
errorCodes: [
|
|
75553
|
+
"400",
|
|
75554
|
+
"401",
|
|
75555
|
+
"403",
|
|
75556
|
+
"404",
|
|
75557
|
+
"409",
|
|
75558
|
+
"422",
|
|
75559
|
+
"429",
|
|
75560
|
+
"4XX",
|
|
75561
|
+
"500",
|
|
75562
|
+
"504",
|
|
75563
|
+
"5XX"
|
|
75564
|
+
],
|
|
75565
|
+
retryConfig: context.retryConfig,
|
|
75566
|
+
retryCodes: context.retryCodes
|
|
75567
|
+
});
|
|
75568
|
+
if (!doResult.ok) {
|
|
75569
|
+
return [doResult, { status: "request-error", request: req }];
|
|
75570
|
+
}
|
|
75571
|
+
const response = doResult.value;
|
|
75572
|
+
const responseFields = {
|
|
75573
|
+
HttpMeta: { Response: response, Request: req }
|
|
75574
|
+
};
|
|
75575
|
+
const [result] = await match(json(201, CreateProductResponse$inboundSchema, {
|
|
75576
|
+
hdrs: true,
|
|
75577
|
+
key: "Result"
|
|
75578
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, ProductRequestValidationError$inboundSchema, {
|
|
75579
|
+
hdrs: true
|
|
75580
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
75581
|
+
if (!result.ok) {
|
|
75582
|
+
return [result, { status: "complete", request: req, response }];
|
|
75583
|
+
}
|
|
75584
|
+
return [result, { status: "complete", request: req, response }];
|
|
75585
|
+
}
|
|
75586
|
+
var init_productsCreate = __esm(() => {
|
|
75587
|
+
init_encodings();
|
|
75588
|
+
init_matchers();
|
|
75589
|
+
init_primitives();
|
|
75590
|
+
init_schemas();
|
|
75591
|
+
init_security();
|
|
75592
|
+
init_url();
|
|
75593
|
+
init_errors2();
|
|
75594
|
+
init_operations();
|
|
75595
|
+
init_async();
|
|
75596
|
+
});
|
|
75597
|
+
|
|
75598
|
+
// src/mcp-server/tools/productsCreate.ts
|
|
75599
|
+
var args101, tool$productsCreate;
|
|
75600
|
+
var init_productsCreate2 = __esm(() => {
|
|
75601
|
+
init_productsCreate();
|
|
75602
|
+
init_operations();
|
|
75603
|
+
init_tools();
|
|
75604
|
+
args101 = {
|
|
75605
|
+
request: CreateProductRequest$inboundSchema
|
|
75606
|
+
};
|
|
75607
|
+
tool$productsCreate = {
|
|
75608
|
+
name: "products-create",
|
|
75609
|
+
description: `Creates a new product for the specified account.`,
|
|
75610
|
+
args: args101,
|
|
75611
|
+
tool: async (client, args102, ctx) => {
|
|
75612
|
+
const [result, apiCall] = await productsCreate(client, args102.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75613
|
+
if (!result.ok) {
|
|
75614
|
+
return {
|
|
75615
|
+
content: [{ type: "text", text: result.error.message }],
|
|
75616
|
+
isError: true
|
|
75617
|
+
};
|
|
75618
|
+
}
|
|
75619
|
+
const value = result.value.result;
|
|
75620
|
+
return formatResult(value, apiCall);
|
|
75621
|
+
}
|
|
75622
|
+
};
|
|
75623
|
+
});
|
|
75624
|
+
|
|
75625
|
+
// src/funcs/productsDisable.ts
|
|
75626
|
+
function productsDisable(client, request, options) {
|
|
75627
|
+
return new APIPromise($do102(client, request, options));
|
|
75628
|
+
}
|
|
75629
|
+
async function $do102(client, request, options) {
|
|
75630
|
+
const parsed = safeParse(request, (value) => DisableProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75631
|
+
if (!parsed.ok) {
|
|
75632
|
+
return [parsed, { status: "invalid" }];
|
|
75633
|
+
}
|
|
75634
|
+
const payload = parsed.value;
|
|
75635
|
+
const body = null;
|
|
75636
|
+
const pathParams = {
|
|
75637
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
75638
|
+
explode: false,
|
|
75639
|
+
charEncoding: "percent"
|
|
75640
|
+
}),
|
|
75641
|
+
productID: encodeSimple("productID", payload.productID, {
|
|
75642
|
+
explode: false,
|
|
75643
|
+
charEncoding: "percent"
|
|
75644
|
+
})
|
|
75645
|
+
};
|
|
75646
|
+
const path = pathToFunc("/accounts/{accountID}/products/{productID}")(pathParams);
|
|
75647
|
+
const headers = new Headers(compactMap({
|
|
75648
|
+
Accept: "application/json",
|
|
75649
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
75650
|
+
}));
|
|
75651
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
75652
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75653
|
+
const context = {
|
|
75654
|
+
options: client._options,
|
|
75655
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
75656
|
+
operationID: "disableProduct",
|
|
75657
|
+
oAuth2Scopes: null,
|
|
75658
|
+
resolvedSecurity: requestSecurity,
|
|
75659
|
+
securitySource: client._options.security,
|
|
75660
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
75661
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
75662
|
+
};
|
|
75663
|
+
const requestRes = client._createRequest(context, {
|
|
75664
|
+
security: requestSecurity,
|
|
75665
|
+
method: "DELETE",
|
|
75666
|
+
baseURL: options?.serverURL,
|
|
75667
|
+
path,
|
|
75668
|
+
headers,
|
|
75669
|
+
body,
|
|
75670
|
+
userAgent: client._options.userAgent,
|
|
75671
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
75672
|
+
}, options);
|
|
75673
|
+
if (!requestRes.ok) {
|
|
75674
|
+
return [requestRes, { status: "invalid" }];
|
|
75675
|
+
}
|
|
75676
|
+
const req = requestRes.value;
|
|
75677
|
+
const doResult = await client._do(req, {
|
|
75678
|
+
context,
|
|
75679
|
+
errorCodes: [
|
|
75680
|
+
"400",
|
|
75681
|
+
"401",
|
|
75682
|
+
"403",
|
|
75683
|
+
"404",
|
|
75684
|
+
"409",
|
|
75685
|
+
"429",
|
|
75686
|
+
"4XX",
|
|
75687
|
+
"500",
|
|
75688
|
+
"504",
|
|
75689
|
+
"5XX"
|
|
75690
|
+
],
|
|
75691
|
+
retryConfig: context.retryConfig,
|
|
75692
|
+
retryCodes: context.retryCodes
|
|
75693
|
+
});
|
|
75694
|
+
if (!doResult.ok) {
|
|
75695
|
+
return [doResult, { status: "request-error", request: req }];
|
|
75696
|
+
}
|
|
75697
|
+
const response = doResult.value;
|
|
75698
|
+
const responseFields = {
|
|
75699
|
+
HttpMeta: { Response: response, Request: req }
|
|
75700
|
+
};
|
|
75701
|
+
const [result] = await match(nil(204, DisableProductResponse$inboundSchema.optional(), {
|
|
75702
|
+
hdrs: true
|
|
75703
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
75704
|
+
if (!result.ok) {
|
|
75705
|
+
return [result, { status: "complete", request: req, response }];
|
|
75706
|
+
}
|
|
75707
|
+
return [result, { status: "complete", request: req, response }];
|
|
75708
|
+
}
|
|
75709
|
+
var init_productsDisable = __esm(() => {
|
|
75710
|
+
init_encodings();
|
|
75711
|
+
init_matchers();
|
|
75712
|
+
init_primitives();
|
|
75713
|
+
init_schemas();
|
|
75714
|
+
init_security();
|
|
75715
|
+
init_url();
|
|
75716
|
+
init_errors2();
|
|
75717
|
+
init_operations();
|
|
75718
|
+
init_async();
|
|
75719
|
+
});
|
|
75720
|
+
|
|
75721
|
+
// src/mcp-server/tools/productsDisable.ts
|
|
75722
|
+
var args102, tool$productsDisable;
|
|
75723
|
+
var init_productsDisable2 = __esm(() => {
|
|
75724
|
+
init_productsDisable();
|
|
75725
|
+
init_operations();
|
|
75726
|
+
init_tools();
|
|
75727
|
+
args102 = {
|
|
75728
|
+
request: DisableProductRequest$inboundSchema
|
|
75729
|
+
};
|
|
75730
|
+
tool$productsDisable = {
|
|
75731
|
+
name: "products-disable",
|
|
75732
|
+
description: `Disable a product by ID.
|
|
75733
|
+
|
|
75734
|
+
The product will no longer be available, but will remain in the system for historical and reporting purposes.`,
|
|
75735
|
+
args: args102,
|
|
75736
|
+
tool: async (client, args103, ctx) => {
|
|
75737
|
+
const [result, apiCall] = await productsDisable(client, args103.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75738
|
+
if (!result.ok) {
|
|
75739
|
+
return {
|
|
75740
|
+
content: [{ type: "text", text: result.error.message }],
|
|
75741
|
+
isError: true
|
|
75742
|
+
};
|
|
75743
|
+
}
|
|
75744
|
+
return formatResult(undefined, apiCall);
|
|
75745
|
+
}
|
|
75746
|
+
};
|
|
75747
|
+
});
|
|
75748
|
+
|
|
75749
|
+
// src/funcs/productsGet.ts
|
|
75750
|
+
function productsGet(client, request, options) {
|
|
75751
|
+
return new APIPromise($do103(client, request, options));
|
|
75752
|
+
}
|
|
75753
|
+
async function $do103(client, request, options) {
|
|
75754
|
+
const parsed = safeParse(request, (value) => GetProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75755
|
+
if (!parsed.ok) {
|
|
75756
|
+
return [parsed, { status: "invalid" }];
|
|
75757
|
+
}
|
|
75758
|
+
const payload = parsed.value;
|
|
75759
|
+
const body = null;
|
|
75760
|
+
const pathParams = {
|
|
75761
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
75762
|
+
explode: false,
|
|
75763
|
+
charEncoding: "percent"
|
|
75764
|
+
}),
|
|
75765
|
+
productID: encodeSimple("productID", payload.productID, {
|
|
75766
|
+
explode: false,
|
|
75767
|
+
charEncoding: "percent"
|
|
75768
|
+
})
|
|
75769
|
+
};
|
|
75770
|
+
const path = pathToFunc("/accounts/{accountID}/products/{productID}")(pathParams);
|
|
75771
|
+
const headers = new Headers(compactMap({
|
|
75772
|
+
Accept: "application/json",
|
|
75773
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
75774
|
+
}));
|
|
75775
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
75776
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75777
|
+
const context = {
|
|
75778
|
+
options: client._options,
|
|
75779
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
75780
|
+
operationID: "getProduct",
|
|
75781
|
+
oAuth2Scopes: null,
|
|
75782
|
+
resolvedSecurity: requestSecurity,
|
|
75783
|
+
securitySource: client._options.security,
|
|
75784
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
75785
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
75786
|
+
};
|
|
75787
|
+
const requestRes = client._createRequest(context, {
|
|
75788
|
+
security: requestSecurity,
|
|
75789
|
+
method: "GET",
|
|
75790
|
+
baseURL: options?.serverURL,
|
|
75791
|
+
path,
|
|
75792
|
+
headers,
|
|
75793
|
+
body,
|
|
75794
|
+
userAgent: client._options.userAgent,
|
|
75795
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
75796
|
+
}, options);
|
|
75797
|
+
if (!requestRes.ok) {
|
|
75798
|
+
return [requestRes, { status: "invalid" }];
|
|
75799
|
+
}
|
|
75800
|
+
const req = requestRes.value;
|
|
75801
|
+
const doResult = await client._do(req, {
|
|
75802
|
+
context,
|
|
75803
|
+
errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
75804
|
+
retryConfig: context.retryConfig,
|
|
75805
|
+
retryCodes: context.retryCodes
|
|
75806
|
+
});
|
|
75807
|
+
if (!doResult.ok) {
|
|
75808
|
+
return [doResult, { status: "request-error", request: req }];
|
|
75809
|
+
}
|
|
75810
|
+
const response = doResult.value;
|
|
75811
|
+
const responseFields = {
|
|
75812
|
+
HttpMeta: { Response: response, Request: req }
|
|
75813
|
+
};
|
|
75814
|
+
const [result] = await match(json(200, GetProductResponse$inboundSchema, {
|
|
75815
|
+
hdrs: true,
|
|
75816
|
+
key: "Result"
|
|
75817
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
75818
|
+
if (!result.ok) {
|
|
75819
|
+
return [result, { status: "complete", request: req, response }];
|
|
75820
|
+
}
|
|
75821
|
+
return [result, { status: "complete", request: req, response }];
|
|
75822
|
+
}
|
|
75823
|
+
var init_productsGet = __esm(() => {
|
|
75824
|
+
init_encodings();
|
|
75825
|
+
init_matchers();
|
|
75826
|
+
init_primitives();
|
|
75827
|
+
init_schemas();
|
|
75828
|
+
init_security();
|
|
75829
|
+
init_url();
|
|
75830
|
+
init_operations();
|
|
75831
|
+
init_async();
|
|
75832
|
+
});
|
|
75833
|
+
|
|
75834
|
+
// src/mcp-server/tools/productsGet.ts
|
|
75835
|
+
var args103, tool$productsGet;
|
|
75836
|
+
var init_productsGet2 = __esm(() => {
|
|
75837
|
+
init_productsGet();
|
|
75838
|
+
init_operations();
|
|
75839
|
+
init_tools();
|
|
75840
|
+
args103 = {
|
|
75841
|
+
request: GetProductRequest$inboundSchema
|
|
75842
|
+
};
|
|
75843
|
+
tool$productsGet = {
|
|
75844
|
+
name: "products-get",
|
|
75845
|
+
description: `Retrieve a product by ID.`,
|
|
75846
|
+
args: args103,
|
|
75847
|
+
tool: async (client, args104, ctx) => {
|
|
75848
|
+
const [result, apiCall] = await productsGet(client, args104.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75849
|
+
if (!result.ok) {
|
|
75850
|
+
return {
|
|
75851
|
+
content: [{ type: "text", text: result.error.message }],
|
|
75852
|
+
isError: true
|
|
75853
|
+
};
|
|
75854
|
+
}
|
|
75855
|
+
const value = result.value.result;
|
|
75856
|
+
return formatResult(value, apiCall);
|
|
75857
|
+
}
|
|
75858
|
+
};
|
|
75859
|
+
});
|
|
75860
|
+
|
|
75861
|
+
// src/funcs/productsList.ts
|
|
75862
|
+
function productsList(client, request, options) {
|
|
75863
|
+
return new APIPromise($do104(client, request, options));
|
|
75864
|
+
}
|
|
75865
|
+
async function $do104(client, request, options) {
|
|
75866
|
+
const parsed = safeParse(request, (value) => ListProductsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75867
|
+
if (!parsed.ok) {
|
|
75868
|
+
return [parsed, { status: "invalid" }];
|
|
75869
|
+
}
|
|
75870
|
+
const payload = parsed.value;
|
|
75871
|
+
const body = null;
|
|
75872
|
+
const pathParams = {
|
|
75873
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
75874
|
+
explode: false,
|
|
75875
|
+
charEncoding: "percent"
|
|
75876
|
+
})
|
|
75877
|
+
};
|
|
75878
|
+
const path = pathToFunc("/accounts/{accountID}/products")(pathParams);
|
|
75879
|
+
const query = encodeFormQuery({
|
|
75880
|
+
count: payload.count,
|
|
75881
|
+
skip: payload.skip
|
|
75882
|
+
}, { explode: false });
|
|
75883
|
+
const headers = new Headers(compactMap({
|
|
75884
|
+
Accept: "application/json",
|
|
75885
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
75886
|
+
}));
|
|
75887
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
75888
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75889
|
+
const context = {
|
|
75890
|
+
options: client._options,
|
|
75891
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
75892
|
+
operationID: "listProducts",
|
|
75893
|
+
oAuth2Scopes: null,
|
|
75894
|
+
resolvedSecurity: requestSecurity,
|
|
75895
|
+
securitySource: client._options.security,
|
|
75896
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
75897
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
75898
|
+
};
|
|
75899
|
+
const requestRes = client._createRequest(context, {
|
|
75900
|
+
security: requestSecurity,
|
|
75901
|
+
method: "GET",
|
|
75902
|
+
baseURL: options?.serverURL,
|
|
75903
|
+
path,
|
|
75904
|
+
headers,
|
|
75905
|
+
query,
|
|
75906
|
+
body,
|
|
75907
|
+
userAgent: client._options.userAgent,
|
|
75908
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
75909
|
+
}, options);
|
|
75910
|
+
if (!requestRes.ok) {
|
|
75911
|
+
return [requestRes, { status: "invalid" }];
|
|
75912
|
+
}
|
|
75913
|
+
const req = requestRes.value;
|
|
75914
|
+
const doResult = await client._do(req, {
|
|
75915
|
+
context,
|
|
75916
|
+
errorCodes: ["401", "403", "429", "4XX", "500", "504", "5XX"],
|
|
75917
|
+
retryConfig: context.retryConfig,
|
|
75918
|
+
retryCodes: context.retryCodes
|
|
75919
|
+
});
|
|
75920
|
+
if (!doResult.ok) {
|
|
75921
|
+
return [doResult, { status: "request-error", request: req }];
|
|
75922
|
+
}
|
|
75923
|
+
const response = doResult.value;
|
|
75924
|
+
const responseFields = {
|
|
75925
|
+
HttpMeta: { Response: response, Request: req }
|
|
75926
|
+
};
|
|
75927
|
+
const [result] = await match(json(200, ListProductsResponse$inboundSchema, {
|
|
75928
|
+
hdrs: true,
|
|
75929
|
+
key: "Result"
|
|
75930
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
75931
|
+
if (!result.ok) {
|
|
75932
|
+
return [result, { status: "complete", request: req, response }];
|
|
75933
|
+
}
|
|
75934
|
+
return [result, { status: "complete", request: req, response }];
|
|
75935
|
+
}
|
|
75936
|
+
var init_productsList = __esm(() => {
|
|
75937
|
+
init_encodings();
|
|
75938
|
+
init_matchers();
|
|
75939
|
+
init_primitives();
|
|
75940
|
+
init_schemas();
|
|
75941
|
+
init_security();
|
|
75942
|
+
init_url();
|
|
75943
|
+
init_operations();
|
|
75944
|
+
init_async();
|
|
75945
|
+
});
|
|
75946
|
+
|
|
75947
|
+
// src/mcp-server/tools/productsList.ts
|
|
75948
|
+
var args104, tool$productsList;
|
|
75949
|
+
var init_productsList2 = __esm(() => {
|
|
75950
|
+
init_productsList();
|
|
75951
|
+
init_operations();
|
|
75952
|
+
init_tools();
|
|
75953
|
+
args104 = {
|
|
75954
|
+
request: ListProductsRequest$inboundSchema
|
|
75955
|
+
};
|
|
75956
|
+
tool$productsList = {
|
|
75957
|
+
name: "products-list",
|
|
75958
|
+
description: `List active (non-disabled) products for an account.`,
|
|
75959
|
+
args: args104,
|
|
75960
|
+
tool: async (client, args105, ctx) => {
|
|
75961
|
+
const [result, apiCall] = await productsList(client, args105.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75962
|
+
if (!result.ok) {
|
|
75963
|
+
return {
|
|
75964
|
+
content: [{ type: "text", text: result.error.message }],
|
|
75965
|
+
isError: true
|
|
75966
|
+
};
|
|
75967
|
+
}
|
|
75968
|
+
const value = result.value.result;
|
|
75969
|
+
return formatResult(value, apiCall);
|
|
75970
|
+
}
|
|
75971
|
+
};
|
|
75972
|
+
});
|
|
75973
|
+
|
|
75974
|
+
// src/funcs/productsUpdate.ts
|
|
75975
|
+
function productsUpdate(client, request, options) {
|
|
75976
|
+
return new APIPromise($do105(client, request, options));
|
|
75977
|
+
}
|
|
75978
|
+
async function $do105(client, request, options) {
|
|
75979
|
+
const parsed = safeParse(request, (value) => UpdateProductRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75980
|
+
if (!parsed.ok) {
|
|
75981
|
+
return [parsed, { status: "invalid" }];
|
|
75982
|
+
}
|
|
75983
|
+
const payload = parsed.value;
|
|
75984
|
+
const body = encodeJSON("body", payload.ProductRequest, { explode: true });
|
|
75985
|
+
const pathParams = {
|
|
75986
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
75987
|
+
explode: false,
|
|
75988
|
+
charEncoding: "percent"
|
|
75989
|
+
}),
|
|
75990
|
+
productID: encodeSimple("productID", payload.productID, {
|
|
75991
|
+
explode: false,
|
|
75992
|
+
charEncoding: "percent"
|
|
75993
|
+
})
|
|
75994
|
+
};
|
|
75995
|
+
const path = pathToFunc("/accounts/{accountID}/products/{productID}")(pathParams);
|
|
75996
|
+
const headers = new Headers(compactMap({
|
|
75997
|
+
"Content-Type": "application/json",
|
|
75998
|
+
Accept: "application/json",
|
|
75999
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
76000
|
+
}));
|
|
76001
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
76002
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
76003
|
+
const context = {
|
|
76004
|
+
options: client._options,
|
|
76005
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76006
|
+
operationID: "updateProduct",
|
|
76007
|
+
oAuth2Scopes: null,
|
|
76008
|
+
resolvedSecurity: requestSecurity,
|
|
76009
|
+
securitySource: client._options.security,
|
|
76010
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
76011
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
76012
|
+
};
|
|
76013
|
+
const requestRes = client._createRequest(context, {
|
|
76014
|
+
security: requestSecurity,
|
|
76015
|
+
method: "PUT",
|
|
76016
|
+
baseURL: options?.serverURL,
|
|
76017
|
+
path,
|
|
76018
|
+
headers,
|
|
76019
|
+
body,
|
|
76020
|
+
userAgent: client._options.userAgent,
|
|
76021
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
76022
|
+
}, options);
|
|
76023
|
+
if (!requestRes.ok) {
|
|
76024
|
+
return [requestRes, { status: "invalid" }];
|
|
76025
|
+
}
|
|
76026
|
+
const req = requestRes.value;
|
|
76027
|
+
const doResult = await client._do(req, {
|
|
76028
|
+
context,
|
|
76029
|
+
errorCodes: [
|
|
76030
|
+
"400",
|
|
76031
|
+
"401",
|
|
76032
|
+
"403",
|
|
76033
|
+
"404",
|
|
76034
|
+
"409",
|
|
76035
|
+
"422",
|
|
76036
|
+
"429",
|
|
76037
|
+
"4XX",
|
|
76038
|
+
"500",
|
|
76039
|
+
"504",
|
|
76040
|
+
"5XX"
|
|
76041
|
+
],
|
|
76042
|
+
retryConfig: context.retryConfig,
|
|
76043
|
+
retryCodes: context.retryCodes
|
|
76044
|
+
});
|
|
76045
|
+
if (!doResult.ok) {
|
|
76046
|
+
return [doResult, { status: "request-error", request: req }];
|
|
76047
|
+
}
|
|
76048
|
+
const response = doResult.value;
|
|
76049
|
+
const responseFields = {
|
|
76050
|
+
HttpMeta: { Response: response, Request: req }
|
|
76051
|
+
};
|
|
76052
|
+
const [result] = await match(json(200, UpdateProductResponse$inboundSchema, {
|
|
76053
|
+
hdrs: true,
|
|
76054
|
+
key: "Result"
|
|
76055
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, ProductRequestValidationError$inboundSchema, {
|
|
76056
|
+
hdrs: true
|
|
76057
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
76058
|
+
if (!result.ok) {
|
|
76059
|
+
return [result, { status: "complete", request: req, response }];
|
|
76060
|
+
}
|
|
76061
|
+
return [result, { status: "complete", request: req, response }];
|
|
76062
|
+
}
|
|
76063
|
+
var init_productsUpdate = __esm(() => {
|
|
76064
|
+
init_encodings();
|
|
76065
|
+
init_matchers();
|
|
76066
|
+
init_primitives();
|
|
76067
|
+
init_schemas();
|
|
76068
|
+
init_security();
|
|
76069
|
+
init_url();
|
|
76070
|
+
init_errors2();
|
|
76071
|
+
init_operations();
|
|
76072
|
+
init_async();
|
|
76073
|
+
});
|
|
76074
|
+
|
|
76075
|
+
// src/mcp-server/tools/productsUpdate.ts
|
|
76076
|
+
var args105, tool$productsUpdate;
|
|
76077
|
+
var init_productsUpdate2 = __esm(() => {
|
|
76078
|
+
init_productsUpdate();
|
|
76079
|
+
init_operations();
|
|
76080
|
+
init_tools();
|
|
76081
|
+
args105 = {
|
|
76082
|
+
request: UpdateProductRequest$inboundSchema
|
|
76083
|
+
};
|
|
76084
|
+
tool$productsUpdate = {
|
|
76085
|
+
name: "products-update",
|
|
76086
|
+
description: `Update a product and its options.`,
|
|
76087
|
+
args: args105,
|
|
76088
|
+
tool: async (client, args106, ctx) => {
|
|
76089
|
+
const [result, apiCall] = await productsUpdate(client, args106.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76090
|
+
if (!result.ok) {
|
|
76091
|
+
return {
|
|
76092
|
+
content: [{ type: "text", text: result.error.message }],
|
|
76093
|
+
isError: true
|
|
76094
|
+
};
|
|
76095
|
+
}
|
|
76096
|
+
const value = result.value.result;
|
|
76097
|
+
return formatResult(value, apiCall);
|
|
76098
|
+
}
|
|
76099
|
+
};
|
|
76100
|
+
});
|
|
76101
|
+
|
|
76102
|
+
// src/funcs/receiptsCreate.ts
|
|
76103
|
+
function receiptsCreate(client, request, options) {
|
|
76104
|
+
return new APIPromise($do106(client, request, options));
|
|
76105
|
+
}
|
|
76106
|
+
async function $do106(client, request, options) {
|
|
76107
|
+
const parsed = safeParse(request, (value) => arrayType(ReceiptRequest$outboundSchema).parse(value), "Input validation failed");
|
|
76108
|
+
if (!parsed.ok) {
|
|
76109
|
+
return [parsed, { status: "invalid" }];
|
|
76110
|
+
}
|
|
76111
|
+
const payload = parsed.value;
|
|
76112
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
76113
|
+
const path = pathToFunc("/receipts")();
|
|
76114
|
+
const headers = new Headers(compactMap({
|
|
76115
|
+
"Content-Type": "application/json",
|
|
76116
|
+
Accept: "application/json",
|
|
76117
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
76118
|
+
}));
|
|
76119
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
76120
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
76121
|
+
const context = {
|
|
76122
|
+
options: client._options,
|
|
76123
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76124
|
+
operationID: "createReceipts",
|
|
76125
|
+
oAuth2Scopes: null,
|
|
76126
|
+
resolvedSecurity: requestSecurity,
|
|
76127
|
+
securitySource: client._options.security,
|
|
76128
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
76129
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
76130
|
+
};
|
|
76131
|
+
const requestRes = client._createRequest(context, {
|
|
76132
|
+
security: requestSecurity,
|
|
76133
|
+
method: "POST",
|
|
76134
|
+
baseURL: options?.serverURL,
|
|
76135
|
+
path,
|
|
76136
|
+
headers,
|
|
76137
|
+
body,
|
|
76138
|
+
userAgent: client._options.userAgent,
|
|
76139
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
76140
|
+
}, options);
|
|
76141
|
+
if (!requestRes.ok) {
|
|
76142
|
+
return [requestRes, { status: "invalid" }];
|
|
76143
|
+
}
|
|
76144
|
+
const req = requestRes.value;
|
|
76145
|
+
const doResult = await client._do(req, {
|
|
76146
|
+
context,
|
|
76147
|
+
errorCodes: [
|
|
76148
|
+
"400",
|
|
76149
|
+
"401",
|
|
76150
|
+
"403",
|
|
76151
|
+
"404",
|
|
76152
|
+
"409",
|
|
76153
|
+
"422",
|
|
76154
|
+
"429",
|
|
76155
|
+
"4XX",
|
|
76156
|
+
"500",
|
|
76157
|
+
"504",
|
|
76158
|
+
"5XX"
|
|
76159
|
+
],
|
|
76160
|
+
retryConfig: context.retryConfig,
|
|
76161
|
+
retryCodes: context.retryCodes
|
|
76162
|
+
});
|
|
76163
|
+
if (!doResult.ok) {
|
|
76164
|
+
return [doResult, { status: "request-error", request: req }];
|
|
76165
|
+
}
|
|
76166
|
+
const response = doResult.value;
|
|
76167
|
+
const responseFields = {
|
|
76168
|
+
HttpMeta: { Response: response, Request: req }
|
|
76169
|
+
};
|
|
76170
|
+
const [result] = await match(json(201, CreateReceiptsResponse$inboundSchema, {
|
|
76171
|
+
hdrs: true,
|
|
76172
|
+
key: "Result"
|
|
76173
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 422, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
76174
|
+
if (!result.ok) {
|
|
76175
|
+
return [result, { status: "complete", request: req, response }];
|
|
76176
|
+
}
|
|
76177
|
+
return [result, { status: "complete", request: req, response }];
|
|
76178
|
+
}
|
|
76179
|
+
var init_receiptsCreate = __esm(() => {
|
|
76180
|
+
init_esm();
|
|
76181
|
+
init_encodings();
|
|
76182
|
+
init_matchers();
|
|
76183
|
+
init_primitives();
|
|
76184
|
+
init_schemas();
|
|
76185
|
+
init_security();
|
|
76186
|
+
init_url();
|
|
76187
|
+
init_components();
|
|
76188
|
+
init_errors2();
|
|
76189
|
+
init_operations();
|
|
76190
|
+
init_async();
|
|
76191
|
+
});
|
|
76192
|
+
|
|
76193
|
+
// src/mcp-server/tools/receiptsCreate.ts
|
|
76194
|
+
var args106, tool$receiptsCreate;
|
|
76195
|
+
var init_receiptsCreate2 = __esm(() => {
|
|
76196
|
+
init_esm();
|
|
76197
|
+
init_receiptsCreate();
|
|
76198
|
+
init_components();
|
|
76199
|
+
init_tools();
|
|
76200
|
+
args106 = {
|
|
76201
|
+
request: arrayType(ReceiptRequest$inboundSchema)
|
|
76202
|
+
};
|
|
76203
|
+
tool$receiptsCreate = {
|
|
76204
|
+
name: "receipts-create",
|
|
76205
|
+
description: ` Create receipts for transfers and scheduled transfers.
|
|
76206
|
+
|
|
76207
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76208
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
76209
|
+
args: args106,
|
|
76210
|
+
tool: async (client, args107, ctx) => {
|
|
76211
|
+
const [result, apiCall] = await receiptsCreate(client, args107.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76212
|
+
if (!result.ok) {
|
|
76213
|
+
return {
|
|
76214
|
+
content: [{ type: "text", text: result.error.message }],
|
|
76215
|
+
isError: true
|
|
76216
|
+
};
|
|
76217
|
+
}
|
|
76218
|
+
const value = result.value.result;
|
|
76219
|
+
return formatResult(value, apiCall);
|
|
76220
|
+
}
|
|
76221
|
+
};
|
|
76222
|
+
});
|
|
76223
|
+
|
|
76224
|
+
// src/funcs/receiptsList.ts
|
|
76225
|
+
function receiptsList(client, request, options) {
|
|
76226
|
+
return new APIPromise($do107(client, request, options));
|
|
76227
|
+
}
|
|
76228
|
+
async function $do107(client, request, options) {
|
|
76229
|
+
const parsed = safeParse(request, (value) => ListReceiptsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76230
|
+
if (!parsed.ok) {
|
|
76231
|
+
return [parsed, { status: "invalid" }];
|
|
76232
|
+
}
|
|
76233
|
+
const payload = parsed.value;
|
|
76234
|
+
const body = null;
|
|
76235
|
+
const path = pathToFunc("/receipts")();
|
|
76236
|
+
const query = encodeFormQuery({
|
|
76237
|
+
id: payload.id
|
|
76238
|
+
}, { explode: false });
|
|
76239
|
+
const headers = new Headers(compactMap({
|
|
76240
|
+
Accept: "application/json",
|
|
76241
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
76242
|
+
}));
|
|
76243
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
76244
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
76245
|
+
const context = {
|
|
76246
|
+
options: client._options,
|
|
76247
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76248
|
+
operationID: "listReceipts",
|
|
76249
|
+
oAuth2Scopes: null,
|
|
76250
|
+
resolvedSecurity: requestSecurity,
|
|
76251
|
+
securitySource: client._options.security,
|
|
76252
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
76253
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
76254
|
+
};
|
|
76255
|
+
const requestRes = client._createRequest(context, {
|
|
76256
|
+
security: requestSecurity,
|
|
76257
|
+
method: "GET",
|
|
76258
|
+
baseURL: options?.serverURL,
|
|
76259
|
+
path,
|
|
76260
|
+
headers,
|
|
76261
|
+
query,
|
|
76262
|
+
body,
|
|
76263
|
+
userAgent: client._options.userAgent,
|
|
76264
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
76265
|
+
}, options);
|
|
76266
|
+
if (!requestRes.ok) {
|
|
76267
|
+
return [requestRes, { status: "invalid" }];
|
|
76268
|
+
}
|
|
76269
|
+
const req = requestRes.value;
|
|
76270
|
+
const doResult = await client._do(req, {
|
|
76271
|
+
context,
|
|
76272
|
+
errorCodes: ["401", "403", "429", "4XX", "500", "504", "5XX"],
|
|
76273
|
+
retryConfig: context.retryConfig,
|
|
76274
|
+
retryCodes: context.retryCodes
|
|
76275
|
+
});
|
|
76276
|
+
if (!doResult.ok) {
|
|
76277
|
+
return [doResult, { status: "request-error", request: req }];
|
|
76278
|
+
}
|
|
76279
|
+
const response = doResult.value;
|
|
76280
|
+
const responseFields = {
|
|
76281
|
+
HttpMeta: { Response: response, Request: req }
|
|
76282
|
+
};
|
|
76283
|
+
const [result] = await match(json(200, ListReceiptsResponse$inboundSchema, {
|
|
76284
|
+
hdrs: true,
|
|
76285
|
+
key: "Result"
|
|
76286
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
76287
|
+
if (!result.ok) {
|
|
76288
|
+
return [result, { status: "complete", request: req, response }];
|
|
76289
|
+
}
|
|
76290
|
+
return [result, { status: "complete", request: req, response }];
|
|
76291
|
+
}
|
|
76292
|
+
var init_receiptsList = __esm(() => {
|
|
76293
|
+
init_encodings();
|
|
76294
|
+
init_matchers();
|
|
76295
|
+
init_primitives();
|
|
76296
|
+
init_schemas();
|
|
76297
|
+
init_security();
|
|
76298
|
+
init_url();
|
|
76299
|
+
init_operations();
|
|
76300
|
+
init_async();
|
|
76301
|
+
});
|
|
76302
|
+
|
|
76303
|
+
// src/mcp-server/tools/receiptsList.ts
|
|
76304
|
+
var args107, tool$receiptsList;
|
|
76305
|
+
var init_receiptsList2 = __esm(() => {
|
|
76306
|
+
init_receiptsList();
|
|
76307
|
+
init_operations();
|
|
76308
|
+
init_tools();
|
|
76309
|
+
args107 = {
|
|
76310
|
+
request: ListReceiptsRequest$inboundSchema
|
|
76311
|
+
};
|
|
76312
|
+
tool$receiptsList = {
|
|
76313
|
+
name: "receipts-list",
|
|
76314
|
+
description: `List receipts by transferID, scheduleID, or occurrenceID.
|
|
76315
|
+
|
|
76316
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76317
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
76318
|
+
args: args107,
|
|
76319
|
+
tool: async (client, args108, ctx) => {
|
|
76320
|
+
const [result, apiCall] = await receiptsList(client, args108.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76321
|
+
if (!result.ok) {
|
|
76322
|
+
return {
|
|
76323
|
+
content: [{ type: "text", text: result.error.message }],
|
|
76324
|
+
isError: true
|
|
76325
|
+
};
|
|
76326
|
+
}
|
|
76327
|
+
const value = result.value.result;
|
|
76328
|
+
return formatResult(value, apiCall);
|
|
76329
|
+
}
|
|
76330
|
+
};
|
|
76331
|
+
});
|
|
76332
|
+
|
|
76333
|
+
// src/funcs/representativesCreate.ts
|
|
76334
|
+
function representativesCreate(client, request, options) {
|
|
76335
|
+
return new APIPromise($do108(client, request, options));
|
|
76336
|
+
}
|
|
76337
|
+
async function $do108(client, request, options) {
|
|
76338
|
+
const parsed = safeParse(request, (value) => CreateRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76339
|
+
if (!parsed.ok) {
|
|
76340
|
+
return [parsed, { status: "invalid" }];
|
|
76341
|
+
}
|
|
76342
|
+
const payload = parsed.value;
|
|
76343
|
+
const body = encodeJSON("body", payload.CreateRepresentative, {
|
|
76344
|
+
explode: true
|
|
76345
|
+
});
|
|
76346
|
+
const pathParams = {
|
|
76347
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
76348
|
+
explode: false,
|
|
76349
|
+
charEncoding: "percent"
|
|
76350
|
+
})
|
|
76351
|
+
};
|
|
76352
|
+
const path = pathToFunc("/accounts/{accountID}/representatives")(pathParams);
|
|
76353
|
+
const headers = new Headers(compactMap({
|
|
76354
|
+
"Content-Type": "application/json",
|
|
76355
|
+
Accept: "application/json",
|
|
76356
|
+
"x-moov-version": encodeSimple("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
76357
|
+
}));
|
|
76358
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
76359
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
76360
|
+
const context = {
|
|
76361
|
+
options: client._options,
|
|
76362
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76363
|
+
operationID: "createRepresentative",
|
|
75092
76364
|
oAuth2Scopes: null,
|
|
75093
76365
|
resolvedSecurity: requestSecurity,
|
|
75094
76366
|
securitySource: client._options.security,
|
|
@@ -75158,12 +76430,12 @@ var init_representativesCreate = __esm(() => {
|
|
|
75158
76430
|
});
|
|
75159
76431
|
|
|
75160
76432
|
// src/mcp-server/tools/representativesCreate.ts
|
|
75161
|
-
var
|
|
76433
|
+
var args108, tool$representativesCreate;
|
|
75162
76434
|
var init_representativesCreate2 = __esm(() => {
|
|
75163
76435
|
init_representativesCreate();
|
|
75164
76436
|
init_operations();
|
|
75165
76437
|
init_tools();
|
|
75166
|
-
|
|
76438
|
+
args108 = {
|
|
75167
76439
|
request: CreateRepresentativeRequest$inboundSchema
|
|
75168
76440
|
};
|
|
75169
76441
|
tool$representativesCreate = {
|
|
@@ -75174,9 +76446,9 @@ Read our [business representatives guide](https://docs.moov.io/guides/accounts/r
|
|
|
75174
76446
|
|
|
75175
76447
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75176
76448
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
75177
|
-
args:
|
|
75178
|
-
tool: async (client,
|
|
75179
|
-
const [result, apiCall] = await representativesCreate(client,
|
|
76449
|
+
args: args108,
|
|
76450
|
+
tool: async (client, args109, ctx) => {
|
|
76451
|
+
const [result, apiCall] = await representativesCreate(client, args109.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75180
76452
|
if (!result.ok) {
|
|
75181
76453
|
return {
|
|
75182
76454
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75191,9 +76463,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
75191
76463
|
|
|
75192
76464
|
// src/funcs/representativesDelete.ts
|
|
75193
76465
|
function representativesDelete(client, request, options) {
|
|
75194
|
-
return new APIPromise($
|
|
76466
|
+
return new APIPromise($do109(client, request, options));
|
|
75195
76467
|
}
|
|
75196
|
-
async function $
|
|
76468
|
+
async function $do109(client, request, options) {
|
|
75197
76469
|
const parsed = safeParse(request, (value) => DeleteRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75198
76470
|
if (!parsed.ok) {
|
|
75199
76471
|
return [parsed, { status: "invalid" }];
|
|
@@ -75281,12 +76553,12 @@ var init_representativesDelete = __esm(() => {
|
|
|
75281
76553
|
});
|
|
75282
76554
|
|
|
75283
76555
|
// src/mcp-server/tools/representativesDelete.ts
|
|
75284
|
-
var
|
|
76556
|
+
var args109, tool$representativesDelete;
|
|
75285
76557
|
var init_representativesDelete2 = __esm(() => {
|
|
75286
76558
|
init_representativesDelete();
|
|
75287
76559
|
init_operations();
|
|
75288
76560
|
init_tools();
|
|
75289
|
-
|
|
76561
|
+
args109 = {
|
|
75290
76562
|
request: DeleteRepresentativeRequest$inboundSchema
|
|
75291
76563
|
};
|
|
75292
76564
|
tool$representativesDelete = {
|
|
@@ -75295,9 +76567,9 @@ var init_representativesDelete2 = __esm(() => {
|
|
|
75295
76567
|
|
|
75296
76568
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75297
76569
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
75298
|
-
args:
|
|
75299
|
-
tool: async (client,
|
|
75300
|
-
const [result, apiCall] = await representativesDelete(client,
|
|
76570
|
+
args: args109,
|
|
76571
|
+
tool: async (client, args110, ctx) => {
|
|
76572
|
+
const [result, apiCall] = await representativesDelete(client, args110.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75301
76573
|
if (!result.ok) {
|
|
75302
76574
|
return {
|
|
75303
76575
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75311,9 +76583,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
75311
76583
|
|
|
75312
76584
|
// src/funcs/representativesGet.ts
|
|
75313
76585
|
function representativesGet(client, request, options) {
|
|
75314
|
-
return new APIPromise($
|
|
76586
|
+
return new APIPromise($do110(client, request, options));
|
|
75315
76587
|
}
|
|
75316
|
-
async function $
|
|
76588
|
+
async function $do110(client, request, options) {
|
|
75317
76589
|
const parsed = safeParse(request, (value) => GetRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75318
76590
|
if (!parsed.ok) {
|
|
75319
76591
|
return [parsed, { status: "invalid" }];
|
|
@@ -75392,12 +76664,12 @@ var init_representativesGet = __esm(() => {
|
|
|
75392
76664
|
});
|
|
75393
76665
|
|
|
75394
76666
|
// src/mcp-server/tools/representativesGet.ts
|
|
75395
|
-
var
|
|
76667
|
+
var args110, tool$representativesGet;
|
|
75396
76668
|
var init_representativesGet2 = __esm(() => {
|
|
75397
76669
|
init_representativesGet();
|
|
75398
76670
|
init_operations();
|
|
75399
76671
|
init_tools();
|
|
75400
|
-
|
|
76672
|
+
args110 = {
|
|
75401
76673
|
request: GetRepresentativeRequest$inboundSchema
|
|
75402
76674
|
};
|
|
75403
76675
|
tool$representativesGet = {
|
|
@@ -75406,9 +76678,9 @@ var init_representativesGet2 = __esm(() => {
|
|
|
75406
76678
|
|
|
75407
76679
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75408
76680
|
you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.`,
|
|
75409
|
-
args:
|
|
75410
|
-
tool: async (client,
|
|
75411
|
-
const [result, apiCall] = await representativesGet(client,
|
|
76681
|
+
args: args110,
|
|
76682
|
+
tool: async (client, args111, ctx) => {
|
|
76683
|
+
const [result, apiCall] = await representativesGet(client, args111.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75412
76684
|
if (!result.ok) {
|
|
75413
76685
|
return {
|
|
75414
76686
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75423,9 +76695,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.
|
|
|
75423
76695
|
|
|
75424
76696
|
// src/funcs/representativesList.ts
|
|
75425
76697
|
function representativesList(client, request, options) {
|
|
75426
|
-
return new APIPromise($
|
|
76698
|
+
return new APIPromise($do111(client, request, options));
|
|
75427
76699
|
}
|
|
75428
|
-
async function $
|
|
76700
|
+
async function $do111(client, request, options) {
|
|
75429
76701
|
const parsed = safeParse(request, (value) => ListRepresentativesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75430
76702
|
if (!parsed.ok) {
|
|
75431
76703
|
return [parsed, { status: "invalid" }];
|
|
@@ -75503,12 +76775,12 @@ var init_representativesList = __esm(() => {
|
|
|
75503
76775
|
});
|
|
75504
76776
|
|
|
75505
76777
|
// src/mcp-server/tools/representativesList.ts
|
|
75506
|
-
var
|
|
76778
|
+
var args111, tool$representativesList;
|
|
75507
76779
|
var init_representativesList2 = __esm(() => {
|
|
75508
76780
|
init_representativesList();
|
|
75509
76781
|
init_operations();
|
|
75510
76782
|
init_tools();
|
|
75511
|
-
|
|
76783
|
+
args111 = {
|
|
75512
76784
|
request: ListRepresentativesRequest$inboundSchema
|
|
75513
76785
|
};
|
|
75514
76786
|
tool$representativesList = {
|
|
@@ -75520,9 +76792,9 @@ Read our [business representatives guide](https://docs.moov.io/guides/accounts/r
|
|
|
75520
76792
|
|
|
75521
76793
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75522
76794
|
you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.`,
|
|
75523
|
-
args:
|
|
75524
|
-
tool: async (client,
|
|
75525
|
-
const [result, apiCall] = await representativesList(client,
|
|
76795
|
+
args: args111,
|
|
76796
|
+
tool: async (client, args112, ctx) => {
|
|
76797
|
+
const [result, apiCall] = await representativesList(client, args112.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75526
76798
|
if (!result.ok) {
|
|
75527
76799
|
return {
|
|
75528
76800
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75537,9 +76809,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.read\` scope.
|
|
|
75537
76809
|
|
|
75538
76810
|
// src/funcs/representativesUpdate.ts
|
|
75539
76811
|
function representativesUpdate(client, request, options) {
|
|
75540
|
-
return new APIPromise($
|
|
76812
|
+
return new APIPromise($do112(client, request, options));
|
|
75541
76813
|
}
|
|
75542
|
-
async function $
|
|
76814
|
+
async function $do112(client, request, options) {
|
|
75543
76815
|
const parsed = safeParse(request, (value) => UpdateRepresentativeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75544
76816
|
if (!parsed.ok) {
|
|
75545
76817
|
return [parsed, { status: "invalid" }];
|
|
@@ -75633,12 +76905,12 @@ var init_representativesUpdate = __esm(() => {
|
|
|
75633
76905
|
});
|
|
75634
76906
|
|
|
75635
76907
|
// src/mcp-server/tools/representativesUpdate.ts
|
|
75636
|
-
var
|
|
76908
|
+
var args112, tool$representativesUpdate;
|
|
75637
76909
|
var init_representativesUpdate2 = __esm(() => {
|
|
75638
76910
|
init_representativesUpdate();
|
|
75639
76911
|
init_operations();
|
|
75640
76912
|
init_tools();
|
|
75641
|
-
|
|
76913
|
+
args112 = {
|
|
75642
76914
|
request: UpdateRepresentativeRequest$inboundSchema
|
|
75643
76915
|
};
|
|
75644
76916
|
tool$representativesUpdate = {
|
|
@@ -75660,9 +76932,9 @@ If you need to update information in a locked state, please contact Moov support
|
|
|
75660
76932
|
|
|
75661
76933
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75662
76934
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
75663
|
-
args:
|
|
75664
|
-
tool: async (client,
|
|
75665
|
-
const [result, apiCall] = await representativesUpdate(client,
|
|
76935
|
+
args: args112,
|
|
76936
|
+
tool: async (client, args113, ctx) => {
|
|
76937
|
+
const [result, apiCall] = await representativesUpdate(client, args113.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75666
76938
|
if (!result.ok) {
|
|
75667
76939
|
return {
|
|
75668
76940
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75677,9 +76949,9 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
75677
76949
|
|
|
75678
76950
|
// src/funcs/schedulingCancel.ts
|
|
75679
76951
|
function schedulingCancel(client, request, options) {
|
|
75680
|
-
return new APIPromise($
|
|
76952
|
+
return new APIPromise($do113(client, request, options));
|
|
75681
76953
|
}
|
|
75682
|
-
async function $
|
|
76954
|
+
async function $do113(client, request, options) {
|
|
75683
76955
|
const parsed = safeParse(request, (value) => CancelScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75684
76956
|
if (!parsed.ok) {
|
|
75685
76957
|
return [parsed, { status: "invalid" }];
|
|
@@ -75772,12 +77044,12 @@ var init_schedulingCancel = __esm(() => {
|
|
|
75772
77044
|
});
|
|
75773
77045
|
|
|
75774
77046
|
// src/mcp-server/tools/schedulingCancel.ts
|
|
75775
|
-
var
|
|
77047
|
+
var args113, tool$schedulingCancel;
|
|
75776
77048
|
var init_schedulingCancel2 = __esm(() => {
|
|
75777
77049
|
init_schedulingCancel();
|
|
75778
77050
|
init_operations();
|
|
75779
77051
|
init_tools();
|
|
75780
|
-
|
|
77052
|
+
args113 = {
|
|
75781
77053
|
request: CancelScheduleRequest$inboundSchema
|
|
75782
77054
|
};
|
|
75783
77055
|
tool$schedulingCancel = {
|
|
@@ -75786,9 +77058,9 @@ var init_schedulingCancel2 = __esm(() => {
|
|
|
75786
77058
|
|
|
75787
77059
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75788
77060
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
75789
|
-
args:
|
|
75790
|
-
tool: async (client,
|
|
75791
|
-
const [result, apiCall] = await schedulingCancel(client,
|
|
77061
|
+
args: args113,
|
|
77062
|
+
tool: async (client, args114, ctx) => {
|
|
77063
|
+
const [result, apiCall] = await schedulingCancel(client, args114.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75792
77064
|
if (!result.ok) {
|
|
75793
77065
|
return {
|
|
75794
77066
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75802,9 +77074,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
75802
77074
|
|
|
75803
77075
|
// src/funcs/schedulingCreate.ts
|
|
75804
77076
|
function schedulingCreate(client, request, options) {
|
|
75805
|
-
return new APIPromise($
|
|
77077
|
+
return new APIPromise($do114(client, request, options));
|
|
75806
77078
|
}
|
|
75807
|
-
async function $
|
|
77079
|
+
async function $do114(client, request, options) {
|
|
75808
77080
|
const parsed = safeParse(request, (value) => CreateScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75809
77081
|
if (!parsed.ok) {
|
|
75810
77082
|
return [parsed, { status: "invalid" }];
|
|
@@ -75898,12 +77170,12 @@ var init_schedulingCreate = __esm(() => {
|
|
|
75898
77170
|
});
|
|
75899
77171
|
|
|
75900
77172
|
// src/mcp-server/tools/schedulingCreate.ts
|
|
75901
|
-
var
|
|
77173
|
+
var args114, tool$schedulingCreate;
|
|
75902
77174
|
var init_schedulingCreate2 = __esm(() => {
|
|
75903
77175
|
init_schedulingCreate();
|
|
75904
77176
|
init_operations();
|
|
75905
77177
|
init_tools();
|
|
75906
|
-
|
|
77178
|
+
args114 = {
|
|
75907
77179
|
request: CreateScheduleRequest$inboundSchema
|
|
75908
77180
|
};
|
|
75909
77181
|
tool$schedulingCreate = {
|
|
@@ -75912,9 +77184,9 @@ var init_schedulingCreate2 = __esm(() => {
|
|
|
75912
77184
|
|
|
75913
77185
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
75914
77186
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
75915
|
-
args:
|
|
75916
|
-
tool: async (client,
|
|
75917
|
-
const [result, apiCall] = await schedulingCreate(client,
|
|
77187
|
+
args: args114,
|
|
77188
|
+
tool: async (client, args115, ctx) => {
|
|
77189
|
+
const [result, apiCall] = await schedulingCreate(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75918
77190
|
if (!result.ok) {
|
|
75919
77191
|
return {
|
|
75920
77192
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75929,9 +77201,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
75929
77201
|
|
|
75930
77202
|
// src/funcs/schedulingGet.ts
|
|
75931
77203
|
function schedulingGet(client, request, options) {
|
|
75932
|
-
return new APIPromise($
|
|
77204
|
+
return new APIPromise($do115(client, request, options));
|
|
75933
77205
|
}
|
|
75934
|
-
async function $
|
|
77206
|
+
async function $do115(client, request, options) {
|
|
75935
77207
|
const parsed = safeParse(request, (value) => GetSchedulesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75936
77208
|
if (!parsed.ok) {
|
|
75937
77209
|
return [parsed, { status: "invalid" }];
|
|
@@ -76013,12 +77285,12 @@ var init_schedulingGet = __esm(() => {
|
|
|
76013
77285
|
});
|
|
76014
77286
|
|
|
76015
77287
|
// src/mcp-server/tools/schedulingGet.ts
|
|
76016
|
-
var
|
|
77288
|
+
var args115, tool$schedulingGet;
|
|
76017
77289
|
var init_schedulingGet2 = __esm(() => {
|
|
76018
77290
|
init_schedulingGet();
|
|
76019
77291
|
init_operations();
|
|
76020
77292
|
init_tools();
|
|
76021
|
-
|
|
77293
|
+
args115 = {
|
|
76022
77294
|
request: GetSchedulesRequest$inboundSchema
|
|
76023
77295
|
};
|
|
76024
77296
|
tool$schedulingGet = {
|
|
@@ -76027,9 +77299,9 @@ var init_schedulingGet2 = __esm(() => {
|
|
|
76027
77299
|
|
|
76028
77300
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76029
77301
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
76030
|
-
args:
|
|
76031
|
-
tool: async (client,
|
|
76032
|
-
const [result, apiCall] = await schedulingGet(client,
|
|
77302
|
+
args: args115,
|
|
77303
|
+
tool: async (client, args116, ctx) => {
|
|
77304
|
+
const [result, apiCall] = await schedulingGet(client, args116.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76033
77305
|
if (!result.ok) {
|
|
76034
77306
|
return {
|
|
76035
77307
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76044,9 +77316,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
76044
77316
|
|
|
76045
77317
|
// src/funcs/schedulingGetOccurrance.ts
|
|
76046
77318
|
function schedulingGetOccurrance(client, request, options) {
|
|
76047
|
-
return new APIPromise($
|
|
77319
|
+
return new APIPromise($do116(client, request, options));
|
|
76048
77320
|
}
|
|
76049
|
-
async function $
|
|
77321
|
+
async function $do116(client, request, options) {
|
|
76050
77322
|
const parsed = safeParse(request, (value) => GetScheduledOccurrenceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76051
77323
|
if (!parsed.ok) {
|
|
76052
77324
|
return [parsed, { status: "invalid" }];
|
|
@@ -76129,12 +77401,12 @@ var init_schedulingGetOccurrance = __esm(() => {
|
|
|
76129
77401
|
});
|
|
76130
77402
|
|
|
76131
77403
|
// src/mcp-server/tools/schedulingGetOccurrance.ts
|
|
76132
|
-
var
|
|
77404
|
+
var args116, tool$schedulingGetOccurrance;
|
|
76133
77405
|
var init_schedulingGetOccurrance2 = __esm(() => {
|
|
76134
77406
|
init_schedulingGetOccurrance();
|
|
76135
77407
|
init_operations();
|
|
76136
77408
|
init_tools();
|
|
76137
|
-
|
|
77409
|
+
args116 = {
|
|
76138
77410
|
request: GetScheduledOccurrenceRequest$inboundSchema
|
|
76139
77411
|
};
|
|
76140
77412
|
tool$schedulingGetOccurrance = {
|
|
@@ -76143,9 +77415,9 @@ var init_schedulingGetOccurrance2 = __esm(() => {
|
|
|
76143
77415
|
|
|
76144
77416
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76145
77417
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
76146
|
-
args:
|
|
76147
|
-
tool: async (client,
|
|
76148
|
-
const [result, apiCall] = await schedulingGetOccurrance(client,
|
|
77418
|
+
args: args116,
|
|
77419
|
+
tool: async (client, args117, ctx) => {
|
|
77420
|
+
const [result, apiCall] = await schedulingGetOccurrance(client, args117.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76149
77421
|
if (!result.ok) {
|
|
76150
77422
|
return {
|
|
76151
77423
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76160,9 +77432,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
76160
77432
|
|
|
76161
77433
|
// src/funcs/schedulingList.ts
|
|
76162
77434
|
function schedulingList(client, request, options) {
|
|
76163
|
-
return new APIPromise($
|
|
77435
|
+
return new APIPromise($do117(client, request, options));
|
|
76164
77436
|
}
|
|
76165
|
-
async function $
|
|
77437
|
+
async function $do117(client, request, options) {
|
|
76166
77438
|
const parsed = safeParse(request, (value) => ListSchedulesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76167
77439
|
if (!parsed.ok) {
|
|
76168
77440
|
return [parsed, { status: "invalid" }];
|
|
@@ -76246,12 +77518,12 @@ var init_schedulingList = __esm(() => {
|
|
|
76246
77518
|
});
|
|
76247
77519
|
|
|
76248
77520
|
// src/mcp-server/tools/schedulingList.ts
|
|
76249
|
-
var
|
|
77521
|
+
var args117, tool$schedulingList;
|
|
76250
77522
|
var init_schedulingList2 = __esm(() => {
|
|
76251
77523
|
init_schedulingList();
|
|
76252
77524
|
init_operations();
|
|
76253
77525
|
init_tools();
|
|
76254
|
-
|
|
77526
|
+
args117 = {
|
|
76255
77527
|
request: ListSchedulesRequest$inboundSchema
|
|
76256
77528
|
};
|
|
76257
77529
|
tool$schedulingList = {
|
|
@@ -76260,9 +77532,9 @@ var init_schedulingList2 = __esm(() => {
|
|
|
76260
77532
|
|
|
76261
77533
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76262
77534
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
76263
|
-
args:
|
|
76264
|
-
tool: async (client,
|
|
76265
|
-
const [result, apiCall] = await schedulingList(client,
|
|
77535
|
+
args: args117,
|
|
77536
|
+
tool: async (client, args118, ctx) => {
|
|
77537
|
+
const [result, apiCall] = await schedulingList(client, args118.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76266
77538
|
if (!result.ok) {
|
|
76267
77539
|
return {
|
|
76268
77540
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76277,9 +77549,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
76277
77549
|
|
|
76278
77550
|
// src/funcs/schedulingUpdate.ts
|
|
76279
77551
|
function schedulingUpdate(client, request, options) {
|
|
76280
|
-
return new APIPromise($
|
|
77552
|
+
return new APIPromise($do118(client, request, options));
|
|
76281
77553
|
}
|
|
76282
|
-
async function $
|
|
77554
|
+
async function $do118(client, request, options) {
|
|
76283
77555
|
const parsed = safeParse(request, (value) => UpdateScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76284
77556
|
if (!parsed.ok) {
|
|
76285
77557
|
return [parsed, { status: "invalid" }];
|
|
@@ -76377,12 +77649,12 @@ var init_schedulingUpdate = __esm(() => {
|
|
|
76377
77649
|
});
|
|
76378
77650
|
|
|
76379
77651
|
// src/mcp-server/tools/schedulingUpdate.ts
|
|
76380
|
-
var
|
|
77652
|
+
var args118, tool$schedulingUpdate;
|
|
76381
77653
|
var init_schedulingUpdate2 = __esm(() => {
|
|
76382
77654
|
init_schedulingUpdate();
|
|
76383
77655
|
init_operations();
|
|
76384
77656
|
init_tools();
|
|
76385
|
-
|
|
77657
|
+
args118 = {
|
|
76386
77658
|
request: UpdateScheduleRequest$inboundSchema
|
|
76387
77659
|
};
|
|
76388
77660
|
tool$schedulingUpdate = {
|
|
@@ -76391,9 +77663,9 @@ var init_schedulingUpdate2 = __esm(() => {
|
|
|
76391
77663
|
|
|
76392
77664
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76393
77665
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
76394
|
-
args:
|
|
76395
|
-
tool: async (client,
|
|
76396
|
-
const [result, apiCall] = await schedulingUpdate(client,
|
|
77666
|
+
args: args118,
|
|
77667
|
+
tool: async (client, args119, ctx) => {
|
|
77668
|
+
const [result, apiCall] = await schedulingUpdate(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76397
77669
|
if (!result.ok) {
|
|
76398
77670
|
return {
|
|
76399
77671
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76408,9 +77680,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
76408
77680
|
|
|
76409
77681
|
// src/funcs/statementsGet.ts
|
|
76410
77682
|
function statementsGet(client, request, options) {
|
|
76411
|
-
return new APIPromise($
|
|
77683
|
+
return new APIPromise($do119(client, request, options));
|
|
76412
77684
|
}
|
|
76413
|
-
async function $
|
|
77685
|
+
async function $do119(client, request, options) {
|
|
76414
77686
|
const parsed = safeParse(request, (value) => GetStatementRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76415
77687
|
if (!parsed.ok) {
|
|
76416
77688
|
return [parsed, { status: "invalid" }];
|
|
@@ -76496,12 +77768,12 @@ var init_statementsGet = __esm(() => {
|
|
|
76496
77768
|
});
|
|
76497
77769
|
|
|
76498
77770
|
// src/mcp-server/tools/statementsGet.ts
|
|
76499
|
-
var
|
|
77771
|
+
var args119, tool$statementsGet;
|
|
76500
77772
|
var init_statementsGet2 = __esm(() => {
|
|
76501
77773
|
init_statementsGet();
|
|
76502
77774
|
init_operations();
|
|
76503
77775
|
init_tools();
|
|
76504
|
-
|
|
77776
|
+
args119 = {
|
|
76505
77777
|
request: GetStatementRequest$inboundSchema
|
|
76506
77778
|
};
|
|
76507
77779
|
tool$statementsGet = {
|
|
@@ -76512,9 +77784,9 @@ Use the \`Accept\` header to specify the format of the response. Supported forma
|
|
|
76512
77784
|
|
|
76513
77785
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76514
77786
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
76515
|
-
args:
|
|
76516
|
-
tool: async (client,
|
|
76517
|
-
const [result, apiCall] = await statementsGet(client,
|
|
77787
|
+
args: args119,
|
|
77788
|
+
tool: async (client, args120, ctx) => {
|
|
77789
|
+
const [result, apiCall] = await statementsGet(client, args120.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76518
77790
|
if (!result.ok) {
|
|
76519
77791
|
return {
|
|
76520
77792
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76529,9 +77801,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
76529
77801
|
|
|
76530
77802
|
// src/funcs/statementsList.ts
|
|
76531
77803
|
function statementsList(client, request, options) {
|
|
76532
|
-
return new APIPromise($
|
|
77804
|
+
return new APIPromise($do120(client, request, options));
|
|
76533
77805
|
}
|
|
76534
|
-
async function $
|
|
77806
|
+
async function $do120(client, request, options) {
|
|
76535
77807
|
const parsed = safeParse(request, (value) => ListStatementsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76536
77808
|
if (!parsed.ok) {
|
|
76537
77809
|
return [parsed, { status: "invalid" }];
|
|
@@ -76617,12 +77889,12 @@ var init_statementsList = __esm(() => {
|
|
|
76617
77889
|
});
|
|
76618
77890
|
|
|
76619
77891
|
// src/mcp-server/tools/statementsList.ts
|
|
76620
|
-
var
|
|
77892
|
+
var args120, tool$statementsList;
|
|
76621
77893
|
var init_statementsList2 = __esm(() => {
|
|
76622
77894
|
init_statementsList();
|
|
76623
77895
|
init_operations();
|
|
76624
77896
|
init_tools();
|
|
76625
|
-
|
|
77897
|
+
args120 = {
|
|
76626
77898
|
request: ListStatementsRequest$inboundSchema
|
|
76627
77899
|
};
|
|
76628
77900
|
tool$statementsList = {
|
|
@@ -76631,9 +77903,9 @@ var init_statementsList2 = __esm(() => {
|
|
|
76631
77903
|
|
|
76632
77904
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
76633
77905
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
76634
|
-
args:
|
|
76635
|
-
tool: async (client,
|
|
76636
|
-
const [result, apiCall] = await statementsList(client,
|
|
77906
|
+
args: args120,
|
|
77907
|
+
tool: async (client, args121, ctx) => {
|
|
77908
|
+
const [result, apiCall] = await statementsList(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76637
77909
|
if (!result.ok) {
|
|
76638
77910
|
return {
|
|
76639
77911
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76648,9 +77920,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
76648
77920
|
|
|
76649
77921
|
// src/funcs/supportCreateTicket.ts
|
|
76650
77922
|
function supportCreateTicket(client, request, options) {
|
|
76651
|
-
return new APIPromise($
|
|
77923
|
+
return new APIPromise($do121(client, request, options));
|
|
76652
77924
|
}
|
|
76653
|
-
async function $
|
|
77925
|
+
async function $do121(client, request, options) {
|
|
76654
77926
|
const parsed = safeParse(request, (value) => CreateTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76655
77927
|
if (!parsed.ok) {
|
|
76656
77928
|
return [parsed, { status: "invalid" }];
|
|
@@ -76742,12 +78014,12 @@ var init_supportCreateTicket = __esm(() => {
|
|
|
76742
78014
|
});
|
|
76743
78015
|
|
|
76744
78016
|
// src/mcp-server/tools/supportCreateTicket.ts
|
|
76745
|
-
var
|
|
78017
|
+
var args121, tool$supportCreateTicket;
|
|
76746
78018
|
var init_supportCreateTicket2 = __esm(() => {
|
|
76747
78019
|
init_supportCreateTicket();
|
|
76748
78020
|
init_operations();
|
|
76749
78021
|
init_tools();
|
|
76750
|
-
|
|
78022
|
+
args121 = {
|
|
76751
78023
|
request: CreateTicketRequest$inboundSchema
|
|
76752
78024
|
};
|
|
76753
78025
|
tool$supportCreateTicket = {
|
|
@@ -76759,9 +78031,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
|
|
|
76759
78031
|
|
|
76760
78032
|
If you're creating the ticket on behalf of another account, then you'll need to
|
|
76761
78033
|
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,
|
|
78034
|
+
args: args121,
|
|
78035
|
+
tool: async (client, args122, ctx) => {
|
|
78036
|
+
const [result, apiCall] = await supportCreateTicket(client, args122.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76765
78037
|
if (!result.ok) {
|
|
76766
78038
|
return {
|
|
76767
78039
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76776,9 +78048,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{acco
|
|
|
76776
78048
|
|
|
76777
78049
|
// src/funcs/supportGetTicket.ts
|
|
76778
78050
|
function supportGetTicket(client, request, options) {
|
|
76779
|
-
return new APIPromise($
|
|
78051
|
+
return new APIPromise($do122(client, request, options));
|
|
76780
78052
|
}
|
|
76781
|
-
async function $
|
|
78053
|
+
async function $do122(client, request, options) {
|
|
76782
78054
|
const parsed = safeParse(request, (value) => GetTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76783
78055
|
if (!parsed.ok) {
|
|
76784
78056
|
return [parsed, { status: "invalid" }];
|
|
@@ -76860,12 +78132,12 @@ var init_supportGetTicket = __esm(() => {
|
|
|
76860
78132
|
});
|
|
76861
78133
|
|
|
76862
78134
|
// src/mcp-server/tools/supportGetTicket.ts
|
|
76863
|
-
var
|
|
78135
|
+
var args122, tool$supportGetTicket;
|
|
76864
78136
|
var init_supportGetTicket2 = __esm(() => {
|
|
76865
78137
|
init_supportGetTicket();
|
|
76866
78138
|
init_operations();
|
|
76867
78139
|
init_tools();
|
|
76868
|
-
|
|
78140
|
+
args122 = {
|
|
76869
78141
|
request: GetTicketRequest$inboundSchema
|
|
76870
78142
|
};
|
|
76871
78143
|
tool$supportGetTicket = {
|
|
@@ -76877,9 +78149,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
76877
78149
|
|
|
76878
78150
|
If you're retrieving another account's ticket, then you'll need to
|
|
76879
78151
|
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,
|
|
78152
|
+
args: args122,
|
|
78153
|
+
tool: async (client, args123, ctx) => {
|
|
78154
|
+
const [result, apiCall] = await supportGetTicket(client, args123.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
76883
78155
|
if (!result.ok) {
|
|
76884
78156
|
return {
|
|
76885
78157
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -76894,9 +78166,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
76894
78166
|
|
|
76895
78167
|
// src/funcs/supportListTicketMessages.ts
|
|
76896
78168
|
function supportListTicketMessages(client, request, options) {
|
|
76897
|
-
return new APIPromise($
|
|
78169
|
+
return new APIPromise($do123(client, request, options));
|
|
76898
78170
|
}
|
|
76899
|
-
async function $
|
|
78171
|
+
async function $do123(client, request, options) {
|
|
76900
78172
|
const parsed = safeParse(request, (value) => ListTicketMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
76901
78173
|
if (!parsed.ok) {
|
|
76902
78174
|
return [parsed, { status: "invalid" }];
|
|
@@ -76978,12 +78250,12 @@ var init_supportListTicketMessages = __esm(() => {
|
|
|
76978
78250
|
});
|
|
76979
78251
|
|
|
76980
78252
|
// src/mcp-server/tools/supportListTicketMessages.ts
|
|
76981
|
-
var
|
|
78253
|
+
var args123, tool$supportListTicketMessages;
|
|
76982
78254
|
var init_supportListTicketMessages2 = __esm(() => {
|
|
76983
78255
|
init_supportListTicketMessages();
|
|
76984
78256
|
init_operations();
|
|
76985
78257
|
init_tools();
|
|
76986
|
-
|
|
78258
|
+
args123 = {
|
|
76987
78259
|
request: ListTicketMessagesRequest$inboundSchema
|
|
76988
78260
|
};
|
|
76989
78261
|
tool$supportListTicketMessages = {
|
|
@@ -76995,9 +78267,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
76995
78267
|
|
|
76996
78268
|
If you're listing another account's messages, then you'll need to
|
|
76997
78269
|
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,
|
|
78270
|
+
args: args123,
|
|
78271
|
+
tool: async (client, args124, ctx) => {
|
|
78272
|
+
const [result, apiCall] = await supportListTicketMessages(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77001
78273
|
if (!result.ok) {
|
|
77002
78274
|
return {
|
|
77003
78275
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77012,9 +78284,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
77012
78284
|
|
|
77013
78285
|
// src/funcs/supportListTickets.ts
|
|
77014
78286
|
function supportListTickets(client, request, options) {
|
|
77015
|
-
return new APIPromise($
|
|
78287
|
+
return new APIPromise($do124(client, request, options));
|
|
77016
78288
|
}
|
|
77017
|
-
async function $
|
|
78289
|
+
async function $do124(client, request, options) {
|
|
77018
78290
|
const parsed = safeParse(request, (value) => ListTicketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77019
78291
|
if (!parsed.ok) {
|
|
77020
78292
|
return [parsed, { status: "invalid" }];
|
|
@@ -77099,12 +78371,12 @@ var init_supportListTickets = __esm(() => {
|
|
|
77099
78371
|
});
|
|
77100
78372
|
|
|
77101
78373
|
// src/mcp-server/tools/supportListTickets.ts
|
|
77102
|
-
var
|
|
78374
|
+
var args124, tool$supportListTickets;
|
|
77103
78375
|
var init_supportListTickets2 = __esm(() => {
|
|
77104
78376
|
init_supportListTickets();
|
|
77105
78377
|
init_operations();
|
|
77106
78378
|
init_tools();
|
|
77107
|
-
|
|
78379
|
+
args124 = {
|
|
77108
78380
|
request: ListTicketsRequest$inboundSchema
|
|
77109
78381
|
};
|
|
77110
78382
|
tool$supportListTickets = {
|
|
@@ -77116,9 +78388,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
77116
78388
|
|
|
77117
78389
|
If you're listing another account's tickets, then you'll need to
|
|
77118
78390
|
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,
|
|
78391
|
+
args: args124,
|
|
78392
|
+
tool: async (client, args125, ctx) => {
|
|
78393
|
+
const [result, apiCall] = await supportListTickets(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77122
78394
|
if (!result.ok) {
|
|
77123
78395
|
return {
|
|
77124
78396
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77133,9 +78405,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
77133
78405
|
|
|
77134
78406
|
// src/funcs/supportUpdateTicket.ts
|
|
77135
78407
|
function supportUpdateTicket(client, request, options) {
|
|
77136
|
-
return new APIPromise($
|
|
78408
|
+
return new APIPromise($do125(client, request, options));
|
|
77137
78409
|
}
|
|
77138
|
-
async function $
|
|
78410
|
+
async function $do125(client, request, options) {
|
|
77139
78411
|
const parsed = safeParse(request, (value) => UpdateTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77140
78412
|
if (!parsed.ok) {
|
|
77141
78413
|
return [parsed, { status: "invalid" }];
|
|
@@ -77231,12 +78503,12 @@ var init_supportUpdateTicket = __esm(() => {
|
|
|
77231
78503
|
});
|
|
77232
78504
|
|
|
77233
78505
|
// src/mcp-server/tools/supportUpdateTicket.ts
|
|
77234
|
-
var
|
|
78506
|
+
var args125, tool$supportUpdateTicket;
|
|
77235
78507
|
var init_supportUpdateTicket2 = __esm(() => {
|
|
77236
78508
|
init_supportUpdateTicket();
|
|
77237
78509
|
init_operations();
|
|
77238
78510
|
init_tools();
|
|
77239
|
-
|
|
78511
|
+
args125 = {
|
|
77240
78512
|
request: UpdateTicketRequest$inboundSchema
|
|
77241
78513
|
};
|
|
77242
78514
|
tool$supportUpdateTicket = {
|
|
@@ -77248,9 +78520,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
|
|
|
77248
78520
|
|
|
77249
78521
|
If you're updating the ticket on behalf of another account, then you'll need to
|
|
77250
78522
|
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,
|
|
78523
|
+
args: args125,
|
|
78524
|
+
tool: async (client, args126, ctx) => {
|
|
78525
|
+
const [result, apiCall] = await supportUpdateTicket(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77254
78526
|
if (!result.ok) {
|
|
77255
78527
|
return {
|
|
77256
78528
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77265,9 +78537,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{acco
|
|
|
77265
78537
|
|
|
77266
78538
|
// src/funcs/sweepsCreateConfig.ts
|
|
77267
78539
|
function sweepsCreateConfig(client, request, options) {
|
|
77268
|
-
return new APIPromise($
|
|
78540
|
+
return new APIPromise($do126(client, request, options));
|
|
77269
78541
|
}
|
|
77270
|
-
async function $
|
|
78542
|
+
async function $do126(client, request, options) {
|
|
77271
78543
|
const parsed = safeParse(request, (value) => CreateSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77272
78544
|
if (!parsed.ok) {
|
|
77273
78545
|
return [parsed, { status: "invalid" }];
|
|
@@ -77359,12 +78631,12 @@ var init_sweepsCreateConfig = __esm(() => {
|
|
|
77359
78631
|
});
|
|
77360
78632
|
|
|
77361
78633
|
// src/mcp-server/tools/sweepsCreateConfig.ts
|
|
77362
|
-
var
|
|
78634
|
+
var args126, tool$sweepsCreateConfig;
|
|
77363
78635
|
var init_sweepsCreateConfig2 = __esm(() => {
|
|
77364
78636
|
init_sweepsCreateConfig();
|
|
77365
78637
|
init_operations();
|
|
77366
78638
|
init_tools();
|
|
77367
|
-
|
|
78639
|
+
args126 = {
|
|
77368
78640
|
request: CreateSweepConfigRequest$inboundSchema
|
|
77369
78641
|
};
|
|
77370
78642
|
tool$sweepsCreateConfig = {
|
|
@@ -77373,9 +78645,9 @@ var init_sweepsCreateConfig2 = __esm(() => {
|
|
|
77373
78645
|
|
|
77374
78646
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77375
78647
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
77376
|
-
args:
|
|
77377
|
-
tool: async (client,
|
|
77378
|
-
const [result, apiCall] = await sweepsCreateConfig(client,
|
|
78648
|
+
args: args126,
|
|
78649
|
+
tool: async (client, args127, ctx) => {
|
|
78650
|
+
const [result, apiCall] = await sweepsCreateConfig(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77379
78651
|
if (!result.ok) {
|
|
77380
78652
|
return {
|
|
77381
78653
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77390,9 +78662,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
77390
78662
|
|
|
77391
78663
|
// src/funcs/sweepsGet.ts
|
|
77392
78664
|
function sweepsGet(client, request, options) {
|
|
77393
|
-
return new APIPromise($
|
|
78665
|
+
return new APIPromise($do127(client, request, options));
|
|
77394
78666
|
}
|
|
77395
|
-
async function $
|
|
78667
|
+
async function $do127(client, request, options) {
|
|
77396
78668
|
const parsed = safeParse(request, (value) => GetSweepRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77397
78669
|
if (!parsed.ok) {
|
|
77398
78670
|
return [parsed, { status: "invalid" }];
|
|
@@ -77478,12 +78750,12 @@ var init_sweepsGet = __esm(() => {
|
|
|
77478
78750
|
});
|
|
77479
78751
|
|
|
77480
78752
|
// src/mcp-server/tools/sweepsGet.ts
|
|
77481
|
-
var
|
|
78753
|
+
var args127, tool$sweepsGet;
|
|
77482
78754
|
var init_sweepsGet2 = __esm(() => {
|
|
77483
78755
|
init_sweepsGet();
|
|
77484
78756
|
init_operations();
|
|
77485
78757
|
init_tools();
|
|
77486
|
-
|
|
78758
|
+
args127 = {
|
|
77487
78759
|
request: GetSweepRequest$inboundSchema
|
|
77488
78760
|
};
|
|
77489
78761
|
tool$sweepsGet = {
|
|
@@ -77492,9 +78764,9 @@ var init_sweepsGet2 = __esm(() => {
|
|
|
77492
78764
|
|
|
77493
78765
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77494
78766
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
77495
|
-
args:
|
|
77496
|
-
tool: async (client,
|
|
77497
|
-
const [result, apiCall] = await sweepsGet(client,
|
|
78767
|
+
args: args127,
|
|
78768
|
+
tool: async (client, args128, ctx) => {
|
|
78769
|
+
const [result, apiCall] = await sweepsGet(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77498
78770
|
if (!result.ok) {
|
|
77499
78771
|
return {
|
|
77500
78772
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77509,9 +78781,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
77509
78781
|
|
|
77510
78782
|
// src/funcs/sweepsGetConfig.ts
|
|
77511
78783
|
function sweepsGetConfig(client, request, options) {
|
|
77512
|
-
return new APIPromise($
|
|
78784
|
+
return new APIPromise($do128(client, request, options));
|
|
77513
78785
|
}
|
|
77514
|
-
async function $
|
|
78786
|
+
async function $do128(client, request, options) {
|
|
77515
78787
|
const parsed = safeParse(request, (value) => GetSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77516
78788
|
if (!parsed.ok) {
|
|
77517
78789
|
return [parsed, { status: "invalid" }];
|
|
@@ -77593,12 +78865,12 @@ var init_sweepsGetConfig = __esm(() => {
|
|
|
77593
78865
|
});
|
|
77594
78866
|
|
|
77595
78867
|
// src/mcp-server/tools/sweepsGetConfig.ts
|
|
77596
|
-
var
|
|
78868
|
+
var args128, tool$sweepsGetConfig;
|
|
77597
78869
|
var init_sweepsGetConfig2 = __esm(() => {
|
|
77598
78870
|
init_sweepsGetConfig();
|
|
77599
78871
|
init_operations();
|
|
77600
78872
|
init_tools();
|
|
77601
|
-
|
|
78873
|
+
args128 = {
|
|
77602
78874
|
request: GetSweepConfigRequest$inboundSchema
|
|
77603
78875
|
};
|
|
77604
78876
|
tool$sweepsGetConfig = {
|
|
@@ -77607,9 +78879,9 @@ var init_sweepsGetConfig2 = __esm(() => {
|
|
|
77607
78879
|
|
|
77608
78880
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77609
78881
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
77610
|
-
args:
|
|
77611
|
-
tool: async (client,
|
|
77612
|
-
const [result, apiCall] = await sweepsGetConfig(client,
|
|
78882
|
+
args: args128,
|
|
78883
|
+
tool: async (client, args129, ctx) => {
|
|
78884
|
+
const [result, apiCall] = await sweepsGetConfig(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77613
78885
|
if (!result.ok) {
|
|
77614
78886
|
return {
|
|
77615
78887
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77624,9 +78896,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
77624
78896
|
|
|
77625
78897
|
// src/funcs/sweepsList.ts
|
|
77626
78898
|
function sweepsList(client, request, options) {
|
|
77627
|
-
return new APIPromise($
|
|
78899
|
+
return new APIPromise($do129(client, request, options));
|
|
77628
78900
|
}
|
|
77629
|
-
async function $
|
|
78901
|
+
async function $do129(client, request, options) {
|
|
77630
78902
|
const parsed = safeParse(request, (value) => ListSweepsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77631
78903
|
if (!parsed.ok) {
|
|
77632
78904
|
return [parsed, { status: "invalid" }];
|
|
@@ -77715,12 +78987,12 @@ var init_sweepsList = __esm(() => {
|
|
|
77715
78987
|
});
|
|
77716
78988
|
|
|
77717
78989
|
// src/mcp-server/tools/sweepsList.ts
|
|
77718
|
-
var
|
|
78990
|
+
var args129, tool$sweepsList;
|
|
77719
78991
|
var init_sweepsList2 = __esm(() => {
|
|
77720
78992
|
init_sweepsList();
|
|
77721
78993
|
init_operations();
|
|
77722
78994
|
init_tools();
|
|
77723
|
-
|
|
78995
|
+
args129 = {
|
|
77724
78996
|
request: ListSweepsRequest$inboundSchema
|
|
77725
78997
|
};
|
|
77726
78998
|
tool$sweepsList = {
|
|
@@ -77729,9 +79001,9 @@ var init_sweepsList2 = __esm(() => {
|
|
|
77729
79001
|
|
|
77730
79002
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77731
79003
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
77732
|
-
args:
|
|
77733
|
-
tool: async (client,
|
|
77734
|
-
const [result, apiCall] = await sweepsList(client,
|
|
79004
|
+
args: args129,
|
|
79005
|
+
tool: async (client, args130, ctx) => {
|
|
79006
|
+
const [result, apiCall] = await sweepsList(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77735
79007
|
if (!result.ok) {
|
|
77736
79008
|
return {
|
|
77737
79009
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77746,9 +79018,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
77746
79018
|
|
|
77747
79019
|
// src/funcs/sweepsListConfigs.ts
|
|
77748
79020
|
function sweepsListConfigs(client, request, options) {
|
|
77749
|
-
return new APIPromise($
|
|
79021
|
+
return new APIPromise($do130(client, request, options));
|
|
77750
79022
|
}
|
|
77751
|
-
async function $
|
|
79023
|
+
async function $do130(client, request, options) {
|
|
77752
79024
|
const parsed = safeParse(request, (value) => ListSweepConfigsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77753
79025
|
if (!parsed.ok) {
|
|
77754
79026
|
return [parsed, { status: "invalid" }];
|
|
@@ -77826,12 +79098,12 @@ var init_sweepsListConfigs = __esm(() => {
|
|
|
77826
79098
|
});
|
|
77827
79099
|
|
|
77828
79100
|
// src/mcp-server/tools/sweepsListConfigs.ts
|
|
77829
|
-
var
|
|
79101
|
+
var args130, tool$sweepsListConfigs;
|
|
77830
79102
|
var init_sweepsListConfigs2 = __esm(() => {
|
|
77831
79103
|
init_sweepsListConfigs();
|
|
77832
79104
|
init_operations();
|
|
77833
79105
|
init_tools();
|
|
77834
|
-
|
|
79106
|
+
args130 = {
|
|
77835
79107
|
request: ListSweepConfigsRequest$inboundSchema
|
|
77836
79108
|
};
|
|
77837
79109
|
tool$sweepsListConfigs = {
|
|
@@ -77840,9 +79112,9 @@ var init_sweepsListConfigs2 = __esm(() => {
|
|
|
77840
79112
|
|
|
77841
79113
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77842
79114
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
77843
|
-
args:
|
|
77844
|
-
tool: async (client,
|
|
77845
|
-
const [result, apiCall] = await sweepsListConfigs(client,
|
|
79115
|
+
args: args130,
|
|
79116
|
+
tool: async (client, args131, ctx) => {
|
|
79117
|
+
const [result, apiCall] = await sweepsListConfigs(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77846
79118
|
if (!result.ok) {
|
|
77847
79119
|
return {
|
|
77848
79120
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77857,9 +79129,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
77857
79129
|
|
|
77858
79130
|
// src/funcs/sweepsUpdateConfig.ts
|
|
77859
79131
|
function sweepsUpdateConfig(client, request, options) {
|
|
77860
|
-
return new APIPromise($
|
|
79132
|
+
return new APIPromise($do131(client, request, options));
|
|
77861
79133
|
}
|
|
77862
|
-
async function $
|
|
79134
|
+
async function $do131(client, request, options) {
|
|
77863
79135
|
const parsed = safeParse(request, (value) => UpdateSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77864
79136
|
if (!parsed.ok) {
|
|
77865
79137
|
return [parsed, { status: "invalid" }];
|
|
@@ -77955,12 +79227,12 @@ var init_sweepsUpdateConfig = __esm(() => {
|
|
|
77955
79227
|
});
|
|
77956
79228
|
|
|
77957
79229
|
// src/mcp-server/tools/sweepsUpdateConfig.ts
|
|
77958
|
-
var
|
|
79230
|
+
var args131, tool$sweepsUpdateConfig;
|
|
77959
79231
|
var init_sweepsUpdateConfig2 = __esm(() => {
|
|
77960
79232
|
init_sweepsUpdateConfig();
|
|
77961
79233
|
init_operations();
|
|
77962
79234
|
init_tools();
|
|
77963
|
-
|
|
79235
|
+
args131 = {
|
|
77964
79236
|
request: UpdateSweepConfigRequest$inboundSchema
|
|
77965
79237
|
};
|
|
77966
79238
|
tool$sweepsUpdateConfig = {
|
|
@@ -77969,9 +79241,9 @@ var init_sweepsUpdateConfig2 = __esm(() => {
|
|
|
77969
79241
|
|
|
77970
79242
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
77971
79243
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
77972
|
-
args:
|
|
77973
|
-
tool: async (client,
|
|
77974
|
-
const [result, apiCall] = await sweepsUpdateConfig(client,
|
|
79244
|
+
args: args131,
|
|
79245
|
+
tool: async (client, args132, ctx) => {
|
|
79246
|
+
const [result, apiCall] = await sweepsUpdateConfig(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77975
79247
|
if (!result.ok) {
|
|
77976
79248
|
return {
|
|
77977
79249
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77986,9 +79258,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
77986
79258
|
|
|
77987
79259
|
// src/funcs/terminalApplicationsCreate.ts
|
|
77988
79260
|
function terminalApplicationsCreate(client, request, options) {
|
|
77989
|
-
return new APIPromise($
|
|
79261
|
+
return new APIPromise($do132(client, request, options));
|
|
77990
79262
|
}
|
|
77991
|
-
async function $
|
|
79263
|
+
async function $do132(client, request, options) {
|
|
77992
79264
|
const parsed = safeParse(request, (value) => CreateTerminalApplication$outboundSchema.parse(value), "Input validation failed");
|
|
77993
79265
|
if (!parsed.ok) {
|
|
77994
79266
|
return [parsed, { status: "invalid" }];
|
|
@@ -78077,12 +79349,12 @@ var init_terminalApplicationsCreate = __esm(() => {
|
|
|
78077
79349
|
});
|
|
78078
79350
|
|
|
78079
79351
|
// src/mcp-server/tools/terminalApplicationsCreate.ts
|
|
78080
|
-
var
|
|
79352
|
+
var args132, tool$terminalApplicationsCreate;
|
|
78081
79353
|
var init_terminalApplicationsCreate2 = __esm(() => {
|
|
78082
79354
|
init_terminalApplicationsCreate();
|
|
78083
79355
|
init_components();
|
|
78084
79356
|
init_tools();
|
|
78085
|
-
|
|
79357
|
+
args132 = {
|
|
78086
79358
|
request: CreateTerminalApplication$inboundSchema
|
|
78087
79359
|
};
|
|
78088
79360
|
tool$terminalApplicationsCreate = {
|
|
@@ -78091,9 +79363,9 @@ var init_terminalApplicationsCreate2 = __esm(() => {
|
|
|
78091
79363
|
|
|
78092
79364
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78093
79365
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
78094
|
-
args:
|
|
78095
|
-
tool: async (client,
|
|
78096
|
-
const [result, apiCall] = await terminalApplicationsCreate(client,
|
|
79366
|
+
args: args132,
|
|
79367
|
+
tool: async (client, args133, ctx) => {
|
|
79368
|
+
const [result, apiCall] = await terminalApplicationsCreate(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78097
79369
|
if (!result.ok) {
|
|
78098
79370
|
return {
|
|
78099
79371
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78108,9 +79380,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
78108
79380
|
|
|
78109
79381
|
// src/funcs/terminalApplicationsCreateVersion.ts
|
|
78110
79382
|
function terminalApplicationsCreateVersion(client, request, options) {
|
|
78111
|
-
return new APIPromise($
|
|
79383
|
+
return new APIPromise($do133(client, request, options));
|
|
78112
79384
|
}
|
|
78113
|
-
async function $
|
|
79385
|
+
async function $do133(client, request, options) {
|
|
78114
79386
|
const parsed = safeParse(request, (value) => CreateTerminalApplicationVersionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78115
79387
|
if (!parsed.ok) {
|
|
78116
79388
|
return [parsed, { status: "invalid" }];
|
|
@@ -78200,12 +79472,12 @@ var init_terminalApplicationsCreateVersion = __esm(() => {
|
|
|
78200
79472
|
});
|
|
78201
79473
|
|
|
78202
79474
|
// src/mcp-server/tools/terminalApplicationsCreateVersion.ts
|
|
78203
|
-
var
|
|
79475
|
+
var args133, tool$terminalApplicationsCreateVersion;
|
|
78204
79476
|
var init_terminalApplicationsCreateVersion2 = __esm(() => {
|
|
78205
79477
|
init_terminalApplicationsCreateVersion();
|
|
78206
79478
|
init_operations();
|
|
78207
79479
|
init_tools();
|
|
78208
|
-
|
|
79480
|
+
args133 = {
|
|
78209
79481
|
request: CreateTerminalApplicationVersionRequest$inboundSchema
|
|
78210
79482
|
};
|
|
78211
79483
|
tool$terminalApplicationsCreateVersion = {
|
|
@@ -78214,9 +79486,9 @@ var init_terminalApplicationsCreateVersion2 = __esm(() => {
|
|
|
78214
79486
|
|
|
78215
79487
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78216
79488
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
78217
|
-
args:
|
|
78218
|
-
tool: async (client,
|
|
78219
|
-
const [result, apiCall] = await terminalApplicationsCreateVersion(client,
|
|
79489
|
+
args: args133,
|
|
79490
|
+
tool: async (client, args134, ctx) => {
|
|
79491
|
+
const [result, apiCall] = await terminalApplicationsCreateVersion(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78220
79492
|
if (!result.ok) {
|
|
78221
79493
|
return {
|
|
78222
79494
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78231,9 +79503,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
78231
79503
|
|
|
78232
79504
|
// src/funcs/terminalApplicationsDelete.ts
|
|
78233
79505
|
function terminalApplicationsDelete(client, request, options) {
|
|
78234
|
-
return new APIPromise($
|
|
79506
|
+
return new APIPromise($do134(client, request, options));
|
|
78235
79507
|
}
|
|
78236
|
-
async function $
|
|
79508
|
+
async function $do134(client, request, options) {
|
|
78237
79509
|
const parsed = safeParse(request, (value) => DeleteTerminalApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78238
79510
|
if (!parsed.ok) {
|
|
78239
79511
|
return [parsed, { status: "invalid" }];
|
|
@@ -78317,12 +79589,12 @@ var init_terminalApplicationsDelete = __esm(() => {
|
|
|
78317
79589
|
});
|
|
78318
79590
|
|
|
78319
79591
|
// src/mcp-server/tools/terminalApplicationsDelete.ts
|
|
78320
|
-
var
|
|
79592
|
+
var args134, tool$terminalApplicationsDelete;
|
|
78321
79593
|
var init_terminalApplicationsDelete2 = __esm(() => {
|
|
78322
79594
|
init_terminalApplicationsDelete();
|
|
78323
79595
|
init_operations();
|
|
78324
79596
|
init_tools();
|
|
78325
|
-
|
|
79597
|
+
args134 = {
|
|
78326
79598
|
request: DeleteTerminalApplicationRequest$inboundSchema
|
|
78327
79599
|
};
|
|
78328
79600
|
tool$terminalApplicationsDelete = {
|
|
@@ -78331,9 +79603,9 @@ var init_terminalApplicationsDelete2 = __esm(() => {
|
|
|
78331
79603
|
|
|
78332
79604
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78333
79605
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
78334
|
-
args:
|
|
78335
|
-
tool: async (client,
|
|
78336
|
-
const [result, apiCall] = await terminalApplicationsDelete(client,
|
|
79606
|
+
args: args134,
|
|
79607
|
+
tool: async (client, args135, ctx) => {
|
|
79608
|
+
const [result, apiCall] = await terminalApplicationsDelete(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78337
79609
|
if (!result.ok) {
|
|
78338
79610
|
return {
|
|
78339
79611
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78347,9 +79619,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
78347
79619
|
|
|
78348
79620
|
// src/funcs/terminalApplicationsGet.ts
|
|
78349
79621
|
function terminalApplicationsGet(client, request, options) {
|
|
78350
|
-
return new APIPromise($
|
|
79622
|
+
return new APIPromise($do135(client, request, options));
|
|
78351
79623
|
}
|
|
78352
|
-
async function $
|
|
79624
|
+
async function $do135(client, request, options) {
|
|
78353
79625
|
const parsed = safeParse(request, (value) => GetTerminalApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78354
79626
|
if (!parsed.ok) {
|
|
78355
79627
|
return [parsed, { status: "invalid" }];
|
|
@@ -78424,12 +79696,12 @@ var init_terminalApplicationsGet = __esm(() => {
|
|
|
78424
79696
|
});
|
|
78425
79697
|
|
|
78426
79698
|
// src/mcp-server/tools/terminalApplicationsGet.ts
|
|
78427
|
-
var
|
|
79699
|
+
var args135, tool$terminalApplicationsGet;
|
|
78428
79700
|
var init_terminalApplicationsGet2 = __esm(() => {
|
|
78429
79701
|
init_terminalApplicationsGet();
|
|
78430
79702
|
init_operations();
|
|
78431
79703
|
init_tools();
|
|
78432
|
-
|
|
79704
|
+
args135 = {
|
|
78433
79705
|
request: GetTerminalApplicationRequest$inboundSchema
|
|
78434
79706
|
};
|
|
78435
79707
|
tool$terminalApplicationsGet = {
|
|
@@ -78438,9 +79710,9 @@ var init_terminalApplicationsGet2 = __esm(() => {
|
|
|
78438
79710
|
|
|
78439
79711
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78440
79712
|
you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
78441
|
-
args:
|
|
78442
|
-
tool: async (client,
|
|
78443
|
-
const [result, apiCall] = await terminalApplicationsGet(client,
|
|
79713
|
+
args: args135,
|
|
79714
|
+
tool: async (client, args136, ctx) => {
|
|
79715
|
+
const [result, apiCall] = await terminalApplicationsGet(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78444
79716
|
if (!result.ok) {
|
|
78445
79717
|
return {
|
|
78446
79718
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78455,9 +79727,9 @@ you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
|
78455
79727
|
|
|
78456
79728
|
// src/funcs/terminalApplicationsList.ts
|
|
78457
79729
|
function terminalApplicationsList(client, _request, options) {
|
|
78458
|
-
return new APIPromise($
|
|
79730
|
+
return new APIPromise($do136(client, _request, options));
|
|
78459
79731
|
}
|
|
78460
|
-
async function $
|
|
79732
|
+
async function $do136(client, _request, options) {
|
|
78461
79733
|
const path = pathToFunc("/terminal-applications")();
|
|
78462
79734
|
const headers = new Headers(compactMap({
|
|
78463
79735
|
Accept: "application/json",
|
|
@@ -78521,12 +79793,12 @@ var init_terminalApplicationsList = __esm(() => {
|
|
|
78521
79793
|
});
|
|
78522
79794
|
|
|
78523
79795
|
// src/mcp-server/tools/terminalApplicationsList.ts
|
|
78524
|
-
var
|
|
79796
|
+
var args136, tool$terminalApplicationsList;
|
|
78525
79797
|
var init_terminalApplicationsList2 = __esm(() => {
|
|
78526
79798
|
init_terminalApplicationsList();
|
|
78527
79799
|
init_operations();
|
|
78528
79800
|
init_tools();
|
|
78529
|
-
|
|
79801
|
+
args136 = {
|
|
78530
79802
|
request: ListTerminalApplicationsRequest$inboundSchema
|
|
78531
79803
|
};
|
|
78532
79804
|
tool$terminalApplicationsList = {
|
|
@@ -78535,9 +79807,9 @@ var init_terminalApplicationsList2 = __esm(() => {
|
|
|
78535
79807
|
|
|
78536
79808
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78537
79809
|
you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
78538
|
-
args:
|
|
78539
|
-
tool: async (client,
|
|
78540
|
-
const [result, apiCall] = await terminalApplicationsList(client,
|
|
79810
|
+
args: args136,
|
|
79811
|
+
tool: async (client, args137, ctx) => {
|
|
79812
|
+
const [result, apiCall] = await terminalApplicationsList(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78541
79813
|
if (!result.ok) {
|
|
78542
79814
|
return {
|
|
78543
79815
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78552,9 +79824,9 @@ you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
|
78552
79824
|
|
|
78553
79825
|
// src/funcs/transfersCreate.ts
|
|
78554
79826
|
function transfersCreate(client, request, options) {
|
|
78555
|
-
return new APIPromise($
|
|
79827
|
+
return new APIPromise($do137(client, request, options));
|
|
78556
79828
|
}
|
|
78557
|
-
async function $
|
|
79829
|
+
async function $do137(client, request, options) {
|
|
78558
79830
|
const parsed = safeParse(request, (value) => CreateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78559
79831
|
if (!parsed.ok) {
|
|
78560
79832
|
return [parsed, { status: "invalid" }];
|
|
@@ -78647,12 +79919,12 @@ var init_transfersCreate = __esm(() => {
|
|
|
78647
79919
|
});
|
|
78648
79920
|
|
|
78649
79921
|
// src/mcp-server/tools/transfersCreate.ts
|
|
78650
|
-
var
|
|
79922
|
+
var args137, tool$transfersCreate;
|
|
78651
79923
|
var init_transfersCreate2 = __esm(() => {
|
|
78652
79924
|
init_transfersCreate();
|
|
78653
79925
|
init_operations();
|
|
78654
79926
|
init_tools();
|
|
78655
|
-
|
|
79927
|
+
args137 = {
|
|
78656
79928
|
request: CreateTransferRequest$inboundSchema
|
|
78657
79929
|
};
|
|
78658
79930
|
tool$transfersCreate = {
|
|
@@ -78663,9 +79935,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
78663
79935
|
|
|
78664
79936
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
78665
79937
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
78666
|
-
args:
|
|
78667
|
-
tool: async (client,
|
|
78668
|
-
const [result, apiCall] = await transfersCreate(client,
|
|
79938
|
+
args: args137,
|
|
79939
|
+
tool: async (client, args138, ctx) => {
|
|
79940
|
+
const [result, apiCall] = await transfersCreate(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78669
79941
|
if (!result.ok) {
|
|
78670
79942
|
return {
|
|
78671
79943
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78680,9 +79952,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
78680
79952
|
|
|
78681
79953
|
// src/funcs/transfersCreateCancellation.ts
|
|
78682
79954
|
function transfersCreateCancellation(client, request, options) {
|
|
78683
|
-
return new APIPromise($
|
|
79955
|
+
return new APIPromise($do138(client, request, options));
|
|
78684
79956
|
}
|
|
78685
|
-
async function $
|
|
79957
|
+
async function $do138(client, request, options) {
|
|
78686
79958
|
const parsed = safeParse(request, (value) => CreateCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78687
79959
|
if (!parsed.ok) {
|
|
78688
79960
|
return [parsed, { status: "invalid" }];
|
|
@@ -78765,12 +80037,12 @@ var init_transfersCreateCancellation = __esm(() => {
|
|
|
78765
80037
|
});
|
|
78766
80038
|
|
|
78767
80039
|
// src/mcp-server/tools/transfersCreateCancellation.ts
|
|
78768
|
-
var
|
|
80040
|
+
var args138, tool$transfersCreateCancellation;
|
|
78769
80041
|
var init_transfersCreateCancellation2 = __esm(() => {
|
|
78770
80042
|
init_transfersCreateCancellation();
|
|
78771
80043
|
init_operations();
|
|
78772
80044
|
init_tools();
|
|
78773
|
-
|
|
80045
|
+
args138 = {
|
|
78774
80046
|
request: CreateCancellationRequest$inboundSchema
|
|
78775
80047
|
};
|
|
78776
80048
|
tool$transfersCreateCancellation = {
|
|
@@ -78779,9 +80051,9 @@ var init_transfersCreateCancellation2 = __esm(() => {
|
|
|
78779
80051
|
|
|
78780
80052
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
78781
80053
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
78782
|
-
args:
|
|
78783
|
-
tool: async (client,
|
|
78784
|
-
const [result, apiCall] = await transfersCreateCancellation(client,
|
|
80054
|
+
args: args138,
|
|
80055
|
+
tool: async (client, args139, ctx) => {
|
|
80056
|
+
const [result, apiCall] = await transfersCreateCancellation(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78785
80057
|
if (!result.ok) {
|
|
78786
80058
|
return {
|
|
78787
80059
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78796,9 +80068,9 @@ var init_transfersCreateCancellation2 = __esm(() => {
|
|
|
78796
80068
|
|
|
78797
80069
|
// src/funcs/transfersCreateReversal.ts
|
|
78798
80070
|
function transfersCreateReversal(client, request, options) {
|
|
78799
|
-
return new APIPromise($
|
|
80071
|
+
return new APIPromise($do139(client, request, options));
|
|
78800
80072
|
}
|
|
78801
|
-
async function $
|
|
80073
|
+
async function $do139(client, request, options) {
|
|
78802
80074
|
const parsed = safeParse(request, (value) => CreateReversalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78803
80075
|
if (!parsed.ok) {
|
|
78804
80076
|
return [parsed, { status: "invalid" }];
|
|
@@ -78897,12 +80169,12 @@ var init_transfersCreateReversal = __esm(() => {
|
|
|
78897
80169
|
});
|
|
78898
80170
|
|
|
78899
80171
|
// src/mcp-server/tools/transfersCreateReversal.ts
|
|
78900
|
-
var
|
|
80172
|
+
var args139, tool$transfersCreateReversal;
|
|
78901
80173
|
var init_transfersCreateReversal2 = __esm(() => {
|
|
78902
80174
|
init_transfersCreateReversal();
|
|
78903
80175
|
init_operations();
|
|
78904
80176
|
init_tools();
|
|
78905
|
-
|
|
80177
|
+
args139 = {
|
|
78906
80178
|
request: CreateReversalRequest$inboundSchema
|
|
78907
80179
|
};
|
|
78908
80180
|
tool$transfersCreateReversal = {
|
|
@@ -78913,9 +80185,9 @@ to learn more.
|
|
|
78913
80185
|
|
|
78914
80186
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
78915
80187
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
78916
|
-
args:
|
|
78917
|
-
tool: async (client,
|
|
78918
|
-
const [result, apiCall] = await transfersCreateReversal(client,
|
|
80188
|
+
args: args139,
|
|
80189
|
+
tool: async (client, args140, ctx) => {
|
|
80190
|
+
const [result, apiCall] = await transfersCreateReversal(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78919
80191
|
if (!result.ok) {
|
|
78920
80192
|
return {
|
|
78921
80193
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78930,9 +80202,9 @@ to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
78930
80202
|
|
|
78931
80203
|
// src/funcs/transfersGenerateOptions.ts
|
|
78932
80204
|
function transfersGenerateOptions(client, request, options) {
|
|
78933
|
-
return new APIPromise($
|
|
80205
|
+
return new APIPromise($do140(client, request, options));
|
|
78934
80206
|
}
|
|
78935
|
-
async function $
|
|
80207
|
+
async function $do140(client, request, options) {
|
|
78936
80208
|
const parsed = safeParse(request, (value) => CreateTransferOptionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78937
80209
|
if (!parsed.ok) {
|
|
78938
80210
|
return [parsed, { status: "invalid" }];
|
|
@@ -79016,12 +80288,12 @@ var init_transfersGenerateOptions = __esm(() => {
|
|
|
79016
80288
|
});
|
|
79017
80289
|
|
|
79018
80290
|
// src/mcp-server/tools/transfersGenerateOptions.ts
|
|
79019
|
-
var
|
|
80291
|
+
var args140, tool$transfersGenerateOptions;
|
|
79020
80292
|
var init_transfersGenerateOptions2 = __esm(() => {
|
|
79021
80293
|
init_transfersGenerateOptions();
|
|
79022
80294
|
init_operations();
|
|
79023
80295
|
init_tools();
|
|
79024
|
-
|
|
80296
|
+
args140 = {
|
|
79025
80297
|
request: CreateTransferOptionsRequest$inboundSchema
|
|
79026
80298
|
};
|
|
79027
80299
|
tool$transfersGenerateOptions = {
|
|
@@ -79035,9 +80307,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
79035
80307
|
|
|
79036
80308
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79037
80309
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
79038
|
-
args:
|
|
79039
|
-
tool: async (client,
|
|
79040
|
-
const [result, apiCall] = await transfersGenerateOptions(client,
|
|
80310
|
+
args: args140,
|
|
80311
|
+
tool: async (client, args141, ctx) => {
|
|
80312
|
+
const [result, apiCall] = await transfersGenerateOptions(client, args141.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79041
80313
|
if (!result.ok) {
|
|
79042
80314
|
return {
|
|
79043
80315
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79052,9 +80324,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
79052
80324
|
|
|
79053
80325
|
// src/funcs/transfersGet.ts
|
|
79054
80326
|
function transfersGet(client, request, options) {
|
|
79055
|
-
return new APIPromise($
|
|
80327
|
+
return new APIPromise($do141(client, request, options));
|
|
79056
80328
|
}
|
|
79057
|
-
async function $
|
|
80329
|
+
async function $do141(client, request, options) {
|
|
79058
80330
|
const parsed = safeParse(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79059
80331
|
if (!parsed.ok) {
|
|
79060
80332
|
return [parsed, { status: "invalid" }];
|
|
@@ -79136,12 +80408,12 @@ var init_transfersGet = __esm(() => {
|
|
|
79136
80408
|
});
|
|
79137
80409
|
|
|
79138
80410
|
// src/mcp-server/tools/transfersGet.ts
|
|
79139
|
-
var
|
|
80411
|
+
var args141, tool$transfersGet;
|
|
79140
80412
|
var init_transfersGet2 = __esm(() => {
|
|
79141
80413
|
init_transfersGet();
|
|
79142
80414
|
init_operations();
|
|
79143
80415
|
init_tools();
|
|
79144
|
-
|
|
80416
|
+
args141 = {
|
|
79145
80417
|
request: GetTransferRequest$inboundSchema
|
|
79146
80418
|
};
|
|
79147
80419
|
tool$transfersGet = {
|
|
@@ -79153,9 +80425,9 @@ to learn more.
|
|
|
79153
80425
|
|
|
79154
80426
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79155
80427
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
79156
|
-
args:
|
|
79157
|
-
tool: async (client,
|
|
79158
|
-
const [result, apiCall] = await transfersGet(client,
|
|
80428
|
+
args: args141,
|
|
80429
|
+
tool: async (client, args142, ctx) => {
|
|
80430
|
+
const [result, apiCall] = await transfersGet(client, args142.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79159
80431
|
if (!result.ok) {
|
|
79160
80432
|
return {
|
|
79161
80433
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79170,9 +80442,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
79170
80442
|
|
|
79171
80443
|
// src/funcs/transfersGetCancellation.ts
|
|
79172
80444
|
function transfersGetCancellation(client, request, options) {
|
|
79173
|
-
return new APIPromise($
|
|
80445
|
+
return new APIPromise($do142(client, request, options));
|
|
79174
80446
|
}
|
|
79175
|
-
async function $
|
|
80447
|
+
async function $do142(client, request, options) {
|
|
79176
80448
|
const parsed = safeParse(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79177
80449
|
if (!parsed.ok) {
|
|
79178
80450
|
return [parsed, { status: "invalid" }];
|
|
@@ -79258,12 +80530,12 @@ var init_transfersGetCancellation = __esm(() => {
|
|
|
79258
80530
|
});
|
|
79259
80531
|
|
|
79260
80532
|
// src/mcp-server/tools/transfersGetCancellation.ts
|
|
79261
|
-
var
|
|
80533
|
+
var args142, tool$transfersGetCancellation;
|
|
79262
80534
|
var init_transfersGetCancellation2 = __esm(() => {
|
|
79263
80535
|
init_transfersGetCancellation();
|
|
79264
80536
|
init_operations();
|
|
79265
80537
|
init_tools();
|
|
79266
|
-
|
|
80538
|
+
args142 = {
|
|
79267
80539
|
request: GetCancellationRequest$inboundSchema
|
|
79268
80540
|
};
|
|
79269
80541
|
tool$transfersGetCancellation = {
|
|
@@ -79272,9 +80544,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
79272
80544
|
|
|
79273
80545
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
79274
80546
|
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
79275
|
-
args:
|
|
79276
|
-
tool: async (client,
|
|
79277
|
-
const [result, apiCall] = await transfersGetCancellation(client,
|
|
80547
|
+
args: args142,
|
|
80548
|
+
tool: async (client, args143, ctx) => {
|
|
80549
|
+
const [result, apiCall] = await transfersGetCancellation(client, args143.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79278
80550
|
if (!result.ok) {
|
|
79279
80551
|
return {
|
|
79280
80552
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79289,9 +80561,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
79289
80561
|
|
|
79290
80562
|
// src/funcs/transfersGetRefund.ts
|
|
79291
80563
|
function transfersGetRefund(client, request, options) {
|
|
79292
|
-
return new APIPromise($
|
|
80564
|
+
return new APIPromise($do143(client, request, options));
|
|
79293
80565
|
}
|
|
79294
|
-
async function $
|
|
80566
|
+
async function $do143(client, request, options) {
|
|
79295
80567
|
const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79296
80568
|
if (!parsed.ok) {
|
|
79297
80569
|
return [parsed, { status: "invalid" }];
|
|
@@ -79377,12 +80649,12 @@ var init_transfersGetRefund = __esm(() => {
|
|
|
79377
80649
|
});
|
|
79378
80650
|
|
|
79379
80651
|
// src/mcp-server/tools/transfersGetRefund.ts
|
|
79380
|
-
var
|
|
80652
|
+
var args143, tool$transfersGetRefund;
|
|
79381
80653
|
var init_transfersGetRefund2 = __esm(() => {
|
|
79382
80654
|
init_transfersGetRefund();
|
|
79383
80655
|
init_operations();
|
|
79384
80656
|
init_tools();
|
|
79385
|
-
|
|
80657
|
+
args143 = {
|
|
79386
80658
|
request: GetRefundRequest$inboundSchema
|
|
79387
80659
|
};
|
|
79388
80660
|
tool$transfersGetRefund = {
|
|
@@ -79391,9 +80663,9 @@ var init_transfersGetRefund2 = __esm(() => {
|
|
|
79391
80663
|
|
|
79392
80664
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79393
80665
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
79394
|
-
args:
|
|
79395
|
-
tool: async (client,
|
|
79396
|
-
const [result, apiCall] = await transfersGetRefund(client,
|
|
80666
|
+
args: args143,
|
|
80667
|
+
tool: async (client, args144, ctx) => {
|
|
80668
|
+
const [result, apiCall] = await transfersGetRefund(client, args144.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79397
80669
|
if (!result.ok) {
|
|
79398
80670
|
return {
|
|
79399
80671
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79408,9 +80680,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
79408
80680
|
|
|
79409
80681
|
// src/funcs/transfersInitiateRefund.ts
|
|
79410
80682
|
function transfersInitiateRefund(client, request, options) {
|
|
79411
|
-
return new APIPromise($
|
|
80683
|
+
return new APIPromise($do144(client, request, options));
|
|
79412
80684
|
}
|
|
79413
|
-
async function $
|
|
80685
|
+
async function $do144(client, request, options) {
|
|
79414
80686
|
const parsed = safeParse(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79415
80687
|
if (!parsed.ok) {
|
|
79416
80688
|
return [parsed, { status: "invalid" }];
|
|
@@ -79502,12 +80774,12 @@ var init_transfersInitiateRefund = __esm(() => {
|
|
|
79502
80774
|
});
|
|
79503
80775
|
|
|
79504
80776
|
// src/mcp-server/tools/transfersInitiateRefund.ts
|
|
79505
|
-
var
|
|
80777
|
+
var args144, tool$transfersInitiateRefund;
|
|
79506
80778
|
var init_transfersInitiateRefund2 = __esm(() => {
|
|
79507
80779
|
init_transfersInitiateRefund();
|
|
79508
80780
|
init_operations();
|
|
79509
80781
|
init_tools();
|
|
79510
|
-
|
|
80782
|
+
args144 = {
|
|
79511
80783
|
request: InitiateRefundRequest$inboundSchema
|
|
79512
80784
|
};
|
|
79513
80785
|
tool$transfersInitiateRefund = {
|
|
@@ -79519,9 +80791,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
|
|
|
79519
80791
|
|
|
79520
80792
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79521
80793
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
79522
|
-
args:
|
|
79523
|
-
tool: async (client,
|
|
79524
|
-
const [result, apiCall] = await transfersInitiateRefund(client,
|
|
80794
|
+
args: args144,
|
|
80795
|
+
tool: async (client, args145, ctx) => {
|
|
80796
|
+
const [result, apiCall] = await transfersInitiateRefund(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79525
80797
|
if (!result.ok) {
|
|
79526
80798
|
return {
|
|
79527
80799
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79536,9 +80808,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
79536
80808
|
|
|
79537
80809
|
// src/funcs/transfersList.ts
|
|
79538
80810
|
function transfersList(client, request, options) {
|
|
79539
|
-
return new APIPromise($
|
|
80811
|
+
return new APIPromise($do145(client, request, options));
|
|
79540
80812
|
}
|
|
79541
|
-
async function $
|
|
80813
|
+
async function $do145(client, request, options) {
|
|
79542
80814
|
const parsed = safeParse(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79543
80815
|
if (!parsed.ok) {
|
|
79544
80816
|
return [parsed, { status: "invalid" }];
|
|
@@ -79634,12 +80906,12 @@ var init_transfersList = __esm(() => {
|
|
|
79634
80906
|
});
|
|
79635
80907
|
|
|
79636
80908
|
// src/mcp-server/tools/transfersList.ts
|
|
79637
|
-
var
|
|
80909
|
+
var args145, tool$transfersList;
|
|
79638
80910
|
var init_transfersList2 = __esm(() => {
|
|
79639
80911
|
init_transfersList();
|
|
79640
80912
|
init_operations();
|
|
79641
80913
|
init_tools();
|
|
79642
|
-
|
|
80914
|
+
args145 = {
|
|
79643
80915
|
request: ListTransfersRequest$inboundSchema
|
|
79644
80916
|
};
|
|
79645
80917
|
tool$transfersList = {
|
|
@@ -79655,9 +80927,9 @@ period of time. You can run multiple requests in smaller time window increments
|
|
|
79655
80927
|
|
|
79656
80928
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79657
80929
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
79658
|
-
args:
|
|
79659
|
-
tool: async (client,
|
|
79660
|
-
const [result, apiCall] = await transfersList(client,
|
|
80930
|
+
args: args145,
|
|
80931
|
+
tool: async (client, args146, ctx) => {
|
|
80932
|
+
const [result, apiCall] = await transfersList(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79661
80933
|
if (!result.ok) {
|
|
79662
80934
|
return {
|
|
79663
80935
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79672,9 +80944,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
79672
80944
|
|
|
79673
80945
|
// src/funcs/transfersListRefunds.ts
|
|
79674
80946
|
function transfersListRefunds(client, request, options) {
|
|
79675
|
-
return new APIPromise($
|
|
80947
|
+
return new APIPromise($do146(client, request, options));
|
|
79676
80948
|
}
|
|
79677
|
-
async function $
|
|
80949
|
+
async function $do146(client, request, options) {
|
|
79678
80950
|
const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79679
80951
|
if (!parsed.ok) {
|
|
79680
80952
|
return [parsed, { status: "invalid" }];
|
|
@@ -79756,12 +81028,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
79756
81028
|
});
|
|
79757
81029
|
|
|
79758
81030
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
79759
|
-
var
|
|
81031
|
+
var args146, tool$transfersListRefunds;
|
|
79760
81032
|
var init_transfersListRefunds2 = __esm(() => {
|
|
79761
81033
|
init_transfersListRefunds();
|
|
79762
81034
|
init_operations();
|
|
79763
81035
|
init_tools();
|
|
79764
|
-
|
|
81036
|
+
args146 = {
|
|
79765
81037
|
request: ListRefundsRequest$inboundSchema
|
|
79766
81038
|
};
|
|
79767
81039
|
tool$transfersListRefunds = {
|
|
@@ -79770,9 +81042,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
79770
81042
|
|
|
79771
81043
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79772
81044
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
79773
|
-
args:
|
|
79774
|
-
tool: async (client,
|
|
79775
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
81045
|
+
args: args146,
|
|
81046
|
+
tool: async (client, args147, ctx) => {
|
|
81047
|
+
const [result, apiCall] = await transfersListRefunds(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79776
81048
|
if (!result.ok) {
|
|
79777
81049
|
return {
|
|
79778
81050
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79787,9 +81059,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
79787
81059
|
|
|
79788
81060
|
// src/funcs/transfersUpdate.ts
|
|
79789
81061
|
function transfersUpdate(client, request, options) {
|
|
79790
|
-
return new APIPromise($
|
|
81062
|
+
return new APIPromise($do147(client, request, options));
|
|
79791
81063
|
}
|
|
79792
|
-
async function $
|
|
81064
|
+
async function $do147(client, request, options) {
|
|
79793
81065
|
const parsed = safeParse(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79794
81066
|
if (!parsed.ok) {
|
|
79795
81067
|
return [parsed, { status: "invalid" }];
|
|
@@ -79875,12 +81147,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
79875
81147
|
});
|
|
79876
81148
|
|
|
79877
81149
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
79878
|
-
var
|
|
81150
|
+
var args147, tool$transfersUpdate;
|
|
79879
81151
|
var init_transfersUpdate2 = __esm(() => {
|
|
79880
81152
|
init_transfersUpdate();
|
|
79881
81153
|
init_operations();
|
|
79882
81154
|
init_tools();
|
|
79883
|
-
|
|
81155
|
+
args147 = {
|
|
79884
81156
|
request: UpdateTransferRequest$inboundSchema
|
|
79885
81157
|
};
|
|
79886
81158
|
tool$transfersUpdate = {
|
|
@@ -79891,9 +81163,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
79891
81163
|
|
|
79892
81164
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
79893
81165
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
79894
|
-
args:
|
|
79895
|
-
tool: async (client,
|
|
79896
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
81166
|
+
args: args147,
|
|
81167
|
+
tool: async (client, args148, ctx) => {
|
|
81168
|
+
const [result, apiCall] = await transfersUpdate(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79897
81169
|
if (!result.ok) {
|
|
79898
81170
|
return {
|
|
79899
81171
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79908,9 +81180,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
79908
81180
|
|
|
79909
81181
|
// src/funcs/underwritingGet.ts
|
|
79910
81182
|
function underwritingGet(client, request, options) {
|
|
79911
|
-
return new APIPromise($
|
|
81183
|
+
return new APIPromise($do148(client, request, options));
|
|
79912
81184
|
}
|
|
79913
|
-
async function $
|
|
81185
|
+
async function $do148(client, request, options) {
|
|
79914
81186
|
const parsed = safeParse(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79915
81187
|
if (!parsed.ok) {
|
|
79916
81188
|
return [parsed, { status: "invalid" }];
|
|
@@ -79988,12 +81260,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
79988
81260
|
});
|
|
79989
81261
|
|
|
79990
81262
|
// src/mcp-server/tools/underwritingGet.ts
|
|
79991
|
-
var
|
|
81263
|
+
var args148, tool$underwritingGet;
|
|
79992
81264
|
var init_underwritingGet2 = __esm(() => {
|
|
79993
81265
|
init_underwritingGet();
|
|
79994
81266
|
init_operations();
|
|
79995
81267
|
init_tools();
|
|
79996
|
-
|
|
81268
|
+
args148 = {
|
|
79997
81269
|
request: GetUnderwritingRequest$inboundSchema
|
|
79998
81270
|
};
|
|
79999
81271
|
tool$underwritingGet = {
|
|
@@ -80004,9 +81276,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
80004
81276
|
|
|
80005
81277
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80006
81278
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
80007
|
-
args:
|
|
80008
|
-
tool: async (client,
|
|
80009
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
81279
|
+
args: args148,
|
|
81280
|
+
tool: async (client, args149, ctx) => {
|
|
81281
|
+
const [result, apiCall] = await underwritingGet(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80010
81282
|
if (!result.ok) {
|
|
80011
81283
|
return {
|
|
80012
81284
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80021,9 +81293,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
80021
81293
|
|
|
80022
81294
|
// src/funcs/underwritingSave.ts
|
|
80023
81295
|
function underwritingSave(client, request, options) {
|
|
80024
|
-
return new APIPromise($
|
|
81296
|
+
return new APIPromise($do149(client, request, options));
|
|
80025
81297
|
}
|
|
80026
|
-
async function $
|
|
81298
|
+
async function $do149(client, request, options) {
|
|
80027
81299
|
const parsed = safeParse(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80028
81300
|
if (!parsed.ok) {
|
|
80029
81301
|
return [parsed, { status: "invalid" }];
|
|
@@ -80119,12 +81391,12 @@ var init_underwritingSave = __esm(() => {
|
|
|
80119
81391
|
});
|
|
80120
81392
|
|
|
80121
81393
|
// src/mcp-server/tools/underwritingSave.ts
|
|
80122
|
-
var
|
|
81394
|
+
var args149, tool$underwritingSave;
|
|
80123
81395
|
var init_underwritingSave2 = __esm(() => {
|
|
80124
81396
|
init_underwritingSave();
|
|
80125
81397
|
init_operations();
|
|
80126
81398
|
init_tools();
|
|
80127
|
-
|
|
81399
|
+
args149 = {
|
|
80128
81400
|
request: SaveUnderwritingRequest$inboundSchema
|
|
80129
81401
|
};
|
|
80130
81402
|
tool$underwritingSave = {
|
|
@@ -80135,9 +81407,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
80135
81407
|
|
|
80136
81408
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80137
81409
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
80138
|
-
args:
|
|
80139
|
-
tool: async (client,
|
|
80140
|
-
const [result, apiCall] = await underwritingSave(client,
|
|
81410
|
+
args: args149,
|
|
81411
|
+
tool: async (client, args150, ctx) => {
|
|
81412
|
+
const [result, apiCall] = await underwritingSave(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80141
81413
|
if (!result.ok) {
|
|
80142
81414
|
return {
|
|
80143
81415
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80152,9 +81424,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
80152
81424
|
|
|
80153
81425
|
// src/funcs/underwritingUpsert.ts
|
|
80154
81426
|
function underwritingUpsert(client, request, options) {
|
|
80155
|
-
return new APIPromise($
|
|
81427
|
+
return new APIPromise($do150(client, request, options));
|
|
80156
81428
|
}
|
|
80157
|
-
async function $
|
|
81429
|
+
async function $do150(client, request, options) {
|
|
80158
81430
|
const parsed = safeParse(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80159
81431
|
if (!parsed.ok) {
|
|
80160
81432
|
return [parsed, { status: "invalid" }];
|
|
@@ -80250,12 +81522,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
80250
81522
|
});
|
|
80251
81523
|
|
|
80252
81524
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
80253
|
-
var
|
|
81525
|
+
var args150, tool$underwritingUpsert;
|
|
80254
81526
|
var init_underwritingUpsert2 = __esm(() => {
|
|
80255
81527
|
init_underwritingUpsert();
|
|
80256
81528
|
init_operations();
|
|
80257
81529
|
init_tools();
|
|
80258
|
-
|
|
81530
|
+
args150 = {
|
|
80259
81531
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
80260
81532
|
};
|
|
80261
81533
|
tool$underwritingUpsert = {
|
|
@@ -80266,9 +81538,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
80266
81538
|
|
|
80267
81539
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80268
81540
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
80269
|
-
args:
|
|
80270
|
-
tool: async (client,
|
|
80271
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
81541
|
+
args: args150,
|
|
81542
|
+
tool: async (client, args151, ctx) => {
|
|
81543
|
+
const [result, apiCall] = await underwritingUpsert(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80272
81544
|
if (!result.ok) {
|
|
80273
81545
|
return {
|
|
80274
81546
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80283,9 +81555,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
80283
81555
|
|
|
80284
81556
|
// src/funcs/walletsCreate.ts
|
|
80285
81557
|
function walletsCreate(client, request, options) {
|
|
80286
|
-
return new APIPromise($
|
|
81558
|
+
return new APIPromise($do151(client, request, options));
|
|
80287
81559
|
}
|
|
80288
|
-
async function $
|
|
81560
|
+
async function $do151(client, request, options) {
|
|
80289
81561
|
const parsed = safeParse(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80290
81562
|
if (!parsed.ok) {
|
|
80291
81563
|
return [parsed, { status: "invalid" }];
|
|
@@ -80379,12 +81651,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
80379
81651
|
});
|
|
80380
81652
|
|
|
80381
81653
|
// src/mcp-server/tools/walletsCreate.ts
|
|
80382
|
-
var
|
|
81654
|
+
var args151, tool$walletsCreate;
|
|
80383
81655
|
var init_walletsCreate2 = __esm(() => {
|
|
80384
81656
|
init_walletsCreate();
|
|
80385
81657
|
init_operations();
|
|
80386
81658
|
init_tools();
|
|
80387
|
-
|
|
81659
|
+
args151 = {
|
|
80388
81660
|
request: CreateWalletRequest$inboundSchema
|
|
80389
81661
|
};
|
|
80390
81662
|
tool$walletsCreate = {
|
|
@@ -80395,9 +81667,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
80395
81667
|
|
|
80396
81668
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80397
81669
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
80398
|
-
args:
|
|
80399
|
-
tool: async (client,
|
|
80400
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
81670
|
+
args: args151,
|
|
81671
|
+
tool: async (client, args152, ctx) => {
|
|
81672
|
+
const [result, apiCall] = await walletsCreate(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80401
81673
|
if (!result.ok) {
|
|
80402
81674
|
return {
|
|
80403
81675
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80412,9 +81684,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
80412
81684
|
|
|
80413
81685
|
// src/funcs/walletsGet.ts
|
|
80414
81686
|
function walletsGet(client, request, options) {
|
|
80415
|
-
return new APIPromise($
|
|
81687
|
+
return new APIPromise($do152(client, request, options));
|
|
80416
81688
|
}
|
|
80417
|
-
async function $
|
|
81689
|
+
async function $do152(client, request, options) {
|
|
80418
81690
|
const parsed = safeParse(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80419
81691
|
if (!parsed.ok) {
|
|
80420
81692
|
return [parsed, { status: "invalid" }];
|
|
@@ -80496,12 +81768,12 @@ var init_walletsGet = __esm(() => {
|
|
|
80496
81768
|
});
|
|
80497
81769
|
|
|
80498
81770
|
// src/mcp-server/tools/walletsGet.ts
|
|
80499
|
-
var
|
|
81771
|
+
var args152, tool$walletsGet;
|
|
80500
81772
|
var init_walletsGet2 = __esm(() => {
|
|
80501
81773
|
init_walletsGet();
|
|
80502
81774
|
init_operations();
|
|
80503
81775
|
init_tools();
|
|
80504
|
-
|
|
81776
|
+
args152 = {
|
|
80505
81777
|
request: GetWalletRequest$inboundSchema
|
|
80506
81778
|
};
|
|
80507
81779
|
tool$walletsGet = {
|
|
@@ -80512,9 +81784,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
80512
81784
|
|
|
80513
81785
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80514
81786
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
80515
|
-
args:
|
|
80516
|
-
tool: async (client,
|
|
80517
|
-
const [result, apiCall] = await walletsGet(client,
|
|
81787
|
+
args: args152,
|
|
81788
|
+
tool: async (client, args153, ctx) => {
|
|
81789
|
+
const [result, apiCall] = await walletsGet(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80518
81790
|
if (!result.ok) {
|
|
80519
81791
|
return {
|
|
80520
81792
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80529,9 +81801,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
80529
81801
|
|
|
80530
81802
|
// src/funcs/walletsList.ts
|
|
80531
81803
|
function walletsList(client, request, options) {
|
|
80532
|
-
return new APIPromise($
|
|
81804
|
+
return new APIPromise($do153(client, request, options));
|
|
80533
81805
|
}
|
|
80534
|
-
async function $
|
|
81806
|
+
async function $do153(client, request, options) {
|
|
80535
81807
|
const parsed = safeParse(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80536
81808
|
if (!parsed.ok) {
|
|
80537
81809
|
return [parsed, { status: "invalid" }];
|
|
@@ -80619,12 +81891,12 @@ var init_walletsList = __esm(() => {
|
|
|
80619
81891
|
});
|
|
80620
81892
|
|
|
80621
81893
|
// src/mcp-server/tools/walletsList.ts
|
|
80622
|
-
var
|
|
81894
|
+
var args153, tool$walletsList;
|
|
80623
81895
|
var init_walletsList2 = __esm(() => {
|
|
80624
81896
|
init_walletsList();
|
|
80625
81897
|
init_operations();
|
|
80626
81898
|
init_tools();
|
|
80627
|
-
|
|
81899
|
+
args153 = {
|
|
80628
81900
|
request: ListWalletsRequest$inboundSchema
|
|
80629
81901
|
};
|
|
80630
81902
|
tool$walletsList = {
|
|
@@ -80635,9 +81907,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
80635
81907
|
|
|
80636
81908
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80637
81909
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
80638
|
-
args:
|
|
80639
|
-
tool: async (client,
|
|
80640
|
-
const [result, apiCall] = await walletsList(client,
|
|
81910
|
+
args: args153,
|
|
81911
|
+
tool: async (client, args154, ctx) => {
|
|
81912
|
+
const [result, apiCall] = await walletsList(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80641
81913
|
if (!result.ok) {
|
|
80642
81914
|
return {
|
|
80643
81915
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80652,9 +81924,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
80652
81924
|
|
|
80653
81925
|
// src/funcs/walletsUpdate.ts
|
|
80654
81926
|
function walletsUpdate(client, request, options) {
|
|
80655
|
-
return new APIPromise($
|
|
81927
|
+
return new APIPromise($do154(client, request, options));
|
|
80656
81928
|
}
|
|
80657
|
-
async function $
|
|
81929
|
+
async function $do154(client, request, options) {
|
|
80658
81930
|
const parsed = safeParse(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80659
81931
|
if (!parsed.ok) {
|
|
80660
81932
|
return [parsed, { status: "invalid" }];
|
|
@@ -80752,12 +82024,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
80752
82024
|
});
|
|
80753
82025
|
|
|
80754
82026
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
80755
|
-
var
|
|
82027
|
+
var args154, tool$walletsUpdate;
|
|
80756
82028
|
var init_walletsUpdate2 = __esm(() => {
|
|
80757
82029
|
init_walletsUpdate();
|
|
80758
82030
|
init_operations();
|
|
80759
82031
|
init_tools();
|
|
80760
|
-
|
|
82032
|
+
args154 = {
|
|
80761
82033
|
request: UpdateWalletRequest$inboundSchema
|
|
80762
82034
|
};
|
|
80763
82035
|
tool$walletsUpdate = {
|
|
@@ -80768,9 +82040,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
80768
82040
|
|
|
80769
82041
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80770
82042
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
80771
|
-
args:
|
|
80772
|
-
tool: async (client,
|
|
80773
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
82043
|
+
args: args154,
|
|
82044
|
+
tool: async (client, args155, ctx) => {
|
|
82045
|
+
const [result, apiCall] = await walletsUpdate(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80774
82046
|
if (!result.ok) {
|
|
80775
82047
|
return {
|
|
80776
82048
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80785,9 +82057,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
80785
82057
|
|
|
80786
82058
|
// src/funcs/walletTransactionsGet.ts
|
|
80787
82059
|
function walletTransactionsGet(client, request, options) {
|
|
80788
|
-
return new APIPromise($
|
|
82060
|
+
return new APIPromise($do155(client, request, options));
|
|
80789
82061
|
}
|
|
80790
|
-
async function $
|
|
82062
|
+
async function $do155(client, request, options) {
|
|
80791
82063
|
const parsed = safeParse(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80792
82064
|
if (!parsed.ok) {
|
|
80793
82065
|
return [parsed, { status: "invalid" }];
|
|
@@ -80873,12 +82145,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
80873
82145
|
});
|
|
80874
82146
|
|
|
80875
82147
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
80876
|
-
var
|
|
82148
|
+
var args155, tool$walletTransactionsGet;
|
|
80877
82149
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
80878
82150
|
init_walletTransactionsGet();
|
|
80879
82151
|
init_operations();
|
|
80880
82152
|
init_tools();
|
|
80881
|
-
|
|
82153
|
+
args155 = {
|
|
80882
82154
|
request: GetWalletTransactionRequest$inboundSchema
|
|
80883
82155
|
};
|
|
80884
82156
|
tool$walletTransactionsGet = {
|
|
@@ -80889,9 +82161,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
80889
82161
|
|
|
80890
82162
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
80891
82163
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
80892
|
-
args:
|
|
80893
|
-
tool: async (client,
|
|
80894
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
82164
|
+
args: args155,
|
|
82165
|
+
tool: async (client, args156, ctx) => {
|
|
82166
|
+
const [result, apiCall] = await walletTransactionsGet(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80895
82167
|
if (!result.ok) {
|
|
80896
82168
|
return {
|
|
80897
82169
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80906,9 +82178,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
80906
82178
|
|
|
80907
82179
|
// src/funcs/walletTransactionsList.ts
|
|
80908
82180
|
function walletTransactionsList(client, request, options) {
|
|
80909
|
-
return new APIPromise($
|
|
82181
|
+
return new APIPromise($do156(client, request, options));
|
|
80910
82182
|
}
|
|
80911
|
-
async function $
|
|
82183
|
+
async function $do156(client, request, options) {
|
|
80912
82184
|
const parsed = safeParse(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80913
82185
|
if (!parsed.ok) {
|
|
80914
82186
|
return [parsed, { status: "invalid" }];
|
|
@@ -81008,12 +82280,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
81008
82280
|
});
|
|
81009
82281
|
|
|
81010
82282
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
81011
|
-
var
|
|
82283
|
+
var args156, tool$walletTransactionsList;
|
|
81012
82284
|
var init_walletTransactionsList2 = __esm(() => {
|
|
81013
82285
|
init_walletTransactionsList();
|
|
81014
82286
|
init_operations();
|
|
81015
82287
|
init_tools();
|
|
81016
|
-
|
|
82288
|
+
args156 = {
|
|
81017
82289
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
81018
82290
|
};
|
|
81019
82291
|
tool$walletTransactionsList = {
|
|
@@ -81024,9 +82296,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
81024
82296
|
|
|
81025
82297
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
81026
82298
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
81027
|
-
args:
|
|
81028
|
-
tool: async (client,
|
|
81029
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
82299
|
+
args: args156,
|
|
82300
|
+
tool: async (client, args157, ctx) => {
|
|
82301
|
+
const [result, apiCall] = await walletTransactionsList(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81030
82302
|
if (!result.ok) {
|
|
81031
82303
|
return {
|
|
81032
82304
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -81043,7 +82315,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
81043
82315
|
function createMCPServer(deps) {
|
|
81044
82316
|
const server = new McpServer({
|
|
81045
82317
|
name: "Moov",
|
|
81046
|
-
version: "0.16.
|
|
82318
|
+
version: "0.16.6"
|
|
81047
82319
|
});
|
|
81048
82320
|
const client = new MoovCore({
|
|
81049
82321
|
security: deps.security,
|
|
@@ -81129,6 +82401,11 @@ function createMCPServer(deps) {
|
|
|
81129
82401
|
tool(tool$paymentLinksGetQRCode);
|
|
81130
82402
|
tool(tool$paymentMethodsList);
|
|
81131
82403
|
tool(tool$paymentMethodsGet);
|
|
82404
|
+
tool(tool$productsList);
|
|
82405
|
+
tool(tool$productsCreate);
|
|
82406
|
+
tool(tool$productsGet);
|
|
82407
|
+
tool(tool$productsUpdate);
|
|
82408
|
+
tool(tool$productsDisable);
|
|
81132
82409
|
tool(tool$representativesCreate);
|
|
81133
82410
|
tool(tool$representativesList);
|
|
81134
82411
|
tool(tool$representativesDelete);
|
|
@@ -81316,6 +82593,11 @@ var init_server2 = __esm(() => {
|
|
|
81316
82593
|
init_paymentMethodsGet2();
|
|
81317
82594
|
init_paymentMethodsList2();
|
|
81318
82595
|
init_pingPing2();
|
|
82596
|
+
init_productsCreate2();
|
|
82597
|
+
init_productsDisable2();
|
|
82598
|
+
init_productsGet2();
|
|
82599
|
+
init_productsList2();
|
|
82600
|
+
init_productsUpdate2();
|
|
81319
82601
|
init_receiptsCreate2();
|
|
81320
82602
|
init_receiptsList2();
|
|
81321
82603
|
init_representativesCreate2();
|
|
@@ -82569,7 +83851,7 @@ var routes = rn({
|
|
|
82569
83851
|
var app = Ve(routes, {
|
|
82570
83852
|
name: "mcp",
|
|
82571
83853
|
versionInfo: {
|
|
82572
|
-
currentVersion: "0.16.
|
|
83854
|
+
currentVersion: "0.16.6"
|
|
82573
83855
|
}
|
|
82574
83856
|
});
|
|
82575
83857
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -82577,5 +83859,5 @@ export {
|
|
|
82577
83859
|
app
|
|
82578
83860
|
};
|
|
82579
83861
|
|
|
82580
|
-
//# debugId=
|
|
83862
|
+
//# debugId=62B80E575D6F87BC64756E2164756E21
|
|
82581
83863
|
//# sourceMappingURL=mcp-server.js.map
|