mollie-api-typescript 0.2.8 → 0.3.0
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 +10 -4
- package/bin/mcp-server.js +1461 -666
- package/bin/mcp-server.js.map +32 -13
- package/dist/commonjs/funcs/balanceTransfersCreate.d.ts +22 -0
- package/dist/commonjs/funcs/balanceTransfersCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/balanceTransfersCreate.js +139 -0
- package/dist/commonjs/funcs/balanceTransfersCreate.js.map +1 -0
- package/dist/commonjs/funcs/balanceTransfersGet.d.ts +19 -0
- package/dist/commonjs/funcs/balanceTransfersGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/balanceTransfersGet.js +142 -0
- package/dist/commonjs/funcs/balanceTransfersGet.js.map +1 -0
- package/dist/commonjs/funcs/balanceTransfersList.d.ts +18 -0
- package/dist/commonjs/funcs/balanceTransfersList.d.ts.map +1 -0
- package/dist/commonjs/funcs/balanceTransfersList.js +139 -0
- package/dist/commonjs/funcs/balanceTransfersList.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +7 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/balanceTransfersCreate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersCreate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersCreate.js +68 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersCreate.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersGet.js +64 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersList.js +65 -0
- package/dist/commonjs/mcp-server/tools/balanceTransfersList.js.map +1 -0
- package/dist/commonjs/models/balancetransfercategory.d.ts +52 -0
- package/dist/commonjs/models/balancetransfercategory.d.ts.map +1 -0
- package/dist/commonjs/models/balancetransfercategory.js +69 -0
- package/dist/commonjs/models/balancetransfercategory.js.map +1 -0
- package/dist/commonjs/models/balancetransfercategoryresponse.d.ts +34 -0
- package/dist/commonjs/models/balancetransfercategoryresponse.d.ts.map +1 -0
- package/dist/commonjs/models/balancetransfercategoryresponse.js +77 -0
- package/dist/commonjs/models/balancetransfercategoryresponse.js.map +1 -0
- package/dist/commonjs/models/balancetransferpartytype.d.ts +31 -0
- package/dist/commonjs/models/balancetransferpartytype.d.ts.map +1 -0
- package/dist/commonjs/models/balancetransferpartytype.js +62 -0
- package/dist/commonjs/models/balancetransferpartytype.js.map +1 -0
- package/dist/commonjs/models/balancetransferpartytyperesponse.d.ts +27 -0
- package/dist/commonjs/models/balancetransferpartytyperesponse.d.ts.map +1 -0
- package/dist/commonjs/models/balancetransferpartytyperesponse.js +70 -0
- package/dist/commonjs/models/balancetransferpartytyperesponse.js.map +1 -0
- package/dist/commonjs/models/balancetransferstatus.d.ts +29 -0
- package/dist/commonjs/models/balancetransferstatus.d.ts.map +1 -0
- package/dist/commonjs/models/balancetransferstatus.js +72 -0
- package/dist/commonjs/models/balancetransferstatus.js.map +1 -0
- package/dist/commonjs/models/balancetransferstatusreasonresponse.d.ts +35 -0
- package/dist/commonjs/models/balancetransferstatusreasonresponse.d.ts.map +1 -0
- package/dist/commonjs/models/balancetransferstatusreasonresponse.js +78 -0
- package/dist/commonjs/models/balancetransferstatusreasonresponse.js.map +1 -0
- package/dist/commonjs/models/createwebhook.d.ts +5 -0
- package/dist/commonjs/models/createwebhook.d.ts.map +1 -1
- package/dist/commonjs/models/createwebhook.js +2 -0
- package/dist/commonjs/models/createwebhook.js.map +1 -1
- package/dist/commonjs/models/entitybalancetransfer.d.ts +68 -0
- package/dist/commonjs/models/entitybalancetransfer.d.ts.map +1 -0
- package/dist/commonjs/models/entitybalancetransfer.js +84 -0
- package/dist/commonjs/models/entitybalancetransfer.js.map +1 -0
- package/dist/commonjs/models/entitybalancetransferparty.d.ts +43 -0
- package/dist/commonjs/models/entitybalancetransferparty.d.ts.map +1 -0
- package/dist/commonjs/models/entitybalancetransferparty.js +74 -0
- package/dist/commonjs/models/entitybalancetransferparty.js.map +1 -0
- package/dist/commonjs/models/entitybalancetransferpartyresponse.d.ts +43 -0
- package/dist/commonjs/models/entitybalancetransferpartyresponse.d.ts.map +1 -0
- package/dist/commonjs/models/entitybalancetransferpartyresponse.js +74 -0
- package/dist/commonjs/models/entitybalancetransferpartyresponse.js.map +1 -0
- package/dist/commonjs/models/entitybalancetransferresponse.d.ts +129 -0
- package/dist/commonjs/models/entitybalancetransferresponse.d.ts.map +1 -0
- package/dist/commonjs/models/entitybalancetransferresponse.js +126 -0
- package/dist/commonjs/models/entitybalancetransferresponse.js.map +1 -0
- package/dist/commonjs/models/entitysalesinvoice.d.ts +4 -2
- package/dist/commonjs/models/entitysalesinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/entitysalesinvoice.js.map +1 -1
- package/dist/commonjs/models/entitysalesinvoiceresponse.d.ts +4 -2
- package/dist/commonjs/models/entitysalesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/entitysalesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/entitywebhook.d.ts +5 -0
- package/dist/commonjs/models/entitywebhook.d.ts.map +1 -1
- package/dist/commonjs/models/entitywebhook.js +2 -0
- package/dist/commonjs/models/entitywebhook.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +10 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/createconnectbalancetransfer.d.ts +35 -0
- package/dist/commonjs/models/operations/createconnectbalancetransfer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createconnectbalancetransfer.js +84 -0
- package/dist/commonjs/models/operations/createconnectbalancetransfer.js.map +1 -0
- package/dist/commonjs/models/operations/getconnectbalancetransfer.d.ts +48 -0
- package/dist/commonjs/models/operations/getconnectbalancetransfer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getconnectbalancetransfer.js +82 -0
- package/dist/commonjs/models/operations/getconnectbalancetransfer.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listconnectbalancetransfers.d.ts +140 -0
- package/dist/commonjs/models/operations/listconnectbalancetransfers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listconnectbalancetransfers.js +163 -0
- package/dist/commonjs/models/operations/listconnectbalancetransfers.js.map +1 -0
- package/dist/commonjs/sdk/balancetransfers.d.ts +30 -0
- package/dist/commonjs/sdk/balancetransfers.d.ts.map +1 -0
- package/dist/commonjs/sdk/balancetransfers.js +45 -0
- package/dist/commonjs/sdk/balancetransfers.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/balanceTransfersCreate.d.ts +22 -0
- package/dist/esm/funcs/balanceTransfersCreate.d.ts.map +1 -0
- package/dist/esm/funcs/balanceTransfersCreate.js +103 -0
- package/dist/esm/funcs/balanceTransfersCreate.js.map +1 -0
- package/dist/esm/funcs/balanceTransfersGet.d.ts +19 -0
- package/dist/esm/funcs/balanceTransfersGet.d.ts.map +1 -0
- package/dist/esm/funcs/balanceTransfersGet.js +106 -0
- package/dist/esm/funcs/balanceTransfersGet.js.map +1 -0
- package/dist/esm/funcs/balanceTransfersList.d.ts +18 -0
- package/dist/esm/funcs/balanceTransfersList.d.ts.map +1 -0
- package/dist/esm/funcs/balanceTransfersList.js +103 -0
- package/dist/esm/funcs/balanceTransfersList.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +7 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/balanceTransfersCreate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/balanceTransfersCreate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/balanceTransfersCreate.js +32 -0
- package/dist/esm/mcp-server/tools/balanceTransfersCreate.js.map +1 -0
- package/dist/esm/mcp-server/tools/balanceTransfersGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/balanceTransfersGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/balanceTransfersGet.js +28 -0
- package/dist/esm/mcp-server/tools/balanceTransfersGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/balanceTransfersList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/balanceTransfersList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/balanceTransfersList.js +29 -0
- package/dist/esm/mcp-server/tools/balanceTransfersList.js.map +1 -0
- package/dist/esm/models/balancetransfercategory.d.ts +52 -0
- package/dist/esm/models/balancetransfercategory.d.ts.map +1 -0
- package/dist/esm/models/balancetransfercategory.js +33 -0
- package/dist/esm/models/balancetransfercategory.js.map +1 -0
- package/dist/esm/models/balancetransfercategoryresponse.d.ts +34 -0
- package/dist/esm/models/balancetransfercategoryresponse.d.ts.map +1 -0
- package/dist/esm/models/balancetransfercategoryresponse.js +41 -0
- package/dist/esm/models/balancetransfercategoryresponse.js.map +1 -0
- package/dist/esm/models/balancetransferpartytype.d.ts +31 -0
- package/dist/esm/models/balancetransferpartytype.d.ts.map +1 -0
- package/dist/esm/models/balancetransferpartytype.js +26 -0
- package/dist/esm/models/balancetransferpartytype.js.map +1 -0
- package/dist/esm/models/balancetransferpartytyperesponse.d.ts +27 -0
- package/dist/esm/models/balancetransferpartytyperesponse.d.ts.map +1 -0
- package/dist/esm/models/balancetransferpartytyperesponse.js +34 -0
- package/dist/esm/models/balancetransferpartytyperesponse.js.map +1 -0
- package/dist/esm/models/balancetransferstatus.d.ts +29 -0
- package/dist/esm/models/balancetransferstatus.d.ts.map +1 -0
- package/dist/esm/models/balancetransferstatus.js +36 -0
- package/dist/esm/models/balancetransferstatus.js.map +1 -0
- package/dist/esm/models/balancetransferstatusreasonresponse.d.ts +35 -0
- package/dist/esm/models/balancetransferstatusreasonresponse.d.ts.map +1 -0
- package/dist/esm/models/balancetransferstatusreasonresponse.js +42 -0
- package/dist/esm/models/balancetransferstatusreasonresponse.js.map +1 -0
- package/dist/esm/models/createwebhook.d.ts +5 -0
- package/dist/esm/models/createwebhook.d.ts.map +1 -1
- package/dist/esm/models/createwebhook.js +2 -0
- package/dist/esm/models/createwebhook.js.map +1 -1
- package/dist/esm/models/entitybalancetransfer.d.ts +68 -0
- package/dist/esm/models/entitybalancetransfer.d.ts.map +1 -0
- package/dist/esm/models/entitybalancetransfer.js +46 -0
- package/dist/esm/models/entitybalancetransfer.js.map +1 -0
- package/dist/esm/models/entitybalancetransferparty.d.ts +43 -0
- package/dist/esm/models/entitybalancetransferparty.d.ts.map +1 -0
- package/dist/esm/models/entitybalancetransferparty.js +36 -0
- package/dist/esm/models/entitybalancetransferparty.js.map +1 -0
- package/dist/esm/models/entitybalancetransferpartyresponse.d.ts +43 -0
- package/dist/esm/models/entitybalancetransferpartyresponse.d.ts.map +1 -0
- package/dist/esm/models/entitybalancetransferpartyresponse.js +36 -0
- package/dist/esm/models/entitybalancetransferpartyresponse.js.map +1 -0
- package/dist/esm/models/entitybalancetransferresponse.d.ts +129 -0
- package/dist/esm/models/entitybalancetransferresponse.d.ts.map +1 -0
- package/dist/esm/models/entitybalancetransferresponse.js +86 -0
- package/dist/esm/models/entitybalancetransferresponse.js.map +1 -0
- package/dist/esm/models/entitysalesinvoice.d.ts +4 -2
- package/dist/esm/models/entitysalesinvoice.d.ts.map +1 -1
- package/dist/esm/models/entitysalesinvoice.js.map +1 -1
- package/dist/esm/models/entitysalesinvoiceresponse.d.ts +4 -2
- package/dist/esm/models/entitysalesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/entitysalesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/entitywebhook.d.ts +5 -0
- package/dist/esm/models/entitywebhook.d.ts.map +1 -1
- package/dist/esm/models/entitywebhook.js +2 -0
- package/dist/esm/models/entitywebhook.js.map +1 -1
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/createconnectbalancetransfer.d.ts +35 -0
- package/dist/esm/models/operations/createconnectbalancetransfer.d.ts.map +1 -0
- package/dist/esm/models/operations/createconnectbalancetransfer.js +46 -0
- package/dist/esm/models/operations/createconnectbalancetransfer.js.map +1 -0
- package/dist/esm/models/operations/getconnectbalancetransfer.d.ts +48 -0
- package/dist/esm/models/operations/getconnectbalancetransfer.d.ts.map +1 -0
- package/dist/esm/models/operations/getconnectbalancetransfer.js +44 -0
- package/dist/esm/models/operations/getconnectbalancetransfer.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listconnectbalancetransfers.d.ts +140 -0
- package/dist/esm/models/operations/listconnectbalancetransfers.d.ts.map +1 -0
- package/dist/esm/models/operations/listconnectbalancetransfers.js +121 -0
- package/dist/esm/models/operations/listconnectbalancetransfers.js.map +1 -0
- package/dist/esm/sdk/balancetransfers.d.ts +30 -0
- package/dist/esm/sdk/balancetransfers.d.ts.map +1 -0
- package/dist/esm/sdk/balancetransfers.js +41 -0
- package/dist/esm/sdk/balancetransfers.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/sdks/balancetransfers/README.md +297 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/balanceTransfersCreate.ts +195 -0
- package/src/funcs/balanceTransfersGet.ts +200 -0
- package/src/funcs/balanceTransfersList.ts +196 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/balanceTransfersCreate.ts +41 -0
- package/src/mcp-server/tools/balanceTransfersGet.ts +37 -0
- package/src/mcp-server/tools/balanceTransfersList.ts +38 -0
- package/src/models/balancetransfercategory.ts +47 -0
- package/src/models/balancetransfercategoryresponse.ts +62 -0
- package/src/models/balancetransferpartytype.ts +40 -0
- package/src/models/balancetransferpartytyperesponse.ts +55 -0
- package/src/models/balancetransferstatus.ts +55 -0
- package/src/models/balancetransferstatusreasonresponse.ts +65 -0
- package/src/models/createwebhook.ts +7 -0
- package/src/models/entitybalancetransfer.ts +131 -0
- package/src/models/entitybalancetransferparty.ts +88 -0
- package/src/models/entitybalancetransferpartyresponse.ts +92 -0
- package/src/models/entitybalancetransferresponse.ts +263 -0
- package/src/models/entitysalesinvoice.ts +4 -2
- package/src/models/entitysalesinvoiceresponse.ts +4 -2
- package/src/models/entitywebhook.ts +7 -0
- package/src/models/index.ts +10 -0
- package/src/models/operations/createconnectbalancetransfer.ts +91 -0
- package/src/models/operations/getconnectbalancetransfer.ts +100 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listconnectbalancetransfers.ts +302 -0
- package/src/sdk/balancetransfers.ts +67 -0
- package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34253,7 +34253,7 @@ var init_base64 = __esm(() => {
|
|
|
34253
34253
|
|
|
34254
34254
|
// src/lib/url.ts
|
|
34255
34255
|
function pathToFunc(pathPattern, options) {
|
|
34256
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
34256
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
34257
34257
|
return function buildURLPath(params = {}) {
|
|
34258
34258
|
return pathPattern.replace(paramRE, function(_2, placeholder) {
|
|
34259
34259
|
if (!hasOwn.call(params, placeholder)) {
|
|
@@ -34295,9 +34295,9 @@ var init_config = __esm(() => {
|
|
|
34295
34295
|
SDK_METADATA = {
|
|
34296
34296
|
language: "typescript",
|
|
34297
34297
|
openapiDocVersion: "1.0.0",
|
|
34298
|
-
sdkVersion: "0.
|
|
34299
|
-
genVersion: "2.
|
|
34300
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34298
|
+
sdkVersion: "0.3.0",
|
|
34299
|
+
genVersion: "2.722.2",
|
|
34300
|
+
userAgent: "speakeasy-sdk/typescript 0.3.0 2.722.2 1.0.0 mollie-api-typescript"
|
|
34301
34301
|
};
|
|
34302
34302
|
});
|
|
34303
34303
|
|
|
@@ -35941,6 +35941,56 @@ var init_balancetransactiontype = __esm(() => {
|
|
|
35941
35941
|
})(BalanceTransactionType$ ||= {});
|
|
35942
35942
|
});
|
|
35943
35943
|
|
|
35944
|
+
// src/models/balancetransfercategory.ts
|
|
35945
|
+
var BalanceTransferCategory, BalanceTransferCategory$inboundSchema, BalanceTransferCategory$outboundSchema, BalanceTransferCategory$;
|
|
35946
|
+
var init_balancetransfercategory = __esm(() => {
|
|
35947
|
+
init_esm();
|
|
35948
|
+
BalanceTransferCategory = {
|
|
35949
|
+
InvoiceCollection: "invoice_collection",
|
|
35950
|
+
Purchase: "purchase",
|
|
35951
|
+
Chargeback: "chargeback",
|
|
35952
|
+
Refund: "refund",
|
|
35953
|
+
ServicePenalty: "service_penalty",
|
|
35954
|
+
DiscountCompensation: "discount_compensation",
|
|
35955
|
+
ManualCorrection: "manual_correction",
|
|
35956
|
+
Fee: "fee"
|
|
35957
|
+
};
|
|
35958
|
+
BalanceTransferCategory$inboundSchema = nativeEnumType(BalanceTransferCategory);
|
|
35959
|
+
BalanceTransferCategory$outboundSchema = BalanceTransferCategory$inboundSchema;
|
|
35960
|
+
((BalanceTransferCategory$) => {
|
|
35961
|
+
BalanceTransferCategory$.inboundSchema = BalanceTransferCategory$inboundSchema;
|
|
35962
|
+
BalanceTransferCategory$.outboundSchema = BalanceTransferCategory$outboundSchema;
|
|
35963
|
+
})(BalanceTransferCategory$ ||= {});
|
|
35964
|
+
});
|
|
35965
|
+
|
|
35966
|
+
// src/models/balancetransfercategoryresponse.ts
|
|
35967
|
+
var BalanceTransferCategoryResponse, BalanceTransferCategoryResponse$inboundSchema, BalanceTransferCategoryResponse$outboundSchema, BalanceTransferCategoryResponse$;
|
|
35968
|
+
var init_balancetransfercategoryresponse = __esm(() => {
|
|
35969
|
+
init_esm();
|
|
35970
|
+
BalanceTransferCategoryResponse = {
|
|
35971
|
+
InvoiceCollection: "invoice_collection",
|
|
35972
|
+
Purchase: "purchase",
|
|
35973
|
+
Chargeback: "chargeback",
|
|
35974
|
+
Refund: "refund",
|
|
35975
|
+
ServicePenalty: "service_penalty",
|
|
35976
|
+
DiscountCompensation: "discount_compensation",
|
|
35977
|
+
ManualCorrection: "manual_correction",
|
|
35978
|
+
Fee: "fee"
|
|
35979
|
+
};
|
|
35980
|
+
BalanceTransferCategoryResponse$inboundSchema = unionType([
|
|
35981
|
+
nativeEnumType(BalanceTransferCategoryResponse),
|
|
35982
|
+
stringType().transform(catchUnrecognizedEnum)
|
|
35983
|
+
]);
|
|
35984
|
+
BalanceTransferCategoryResponse$outboundSchema = unionType([
|
|
35985
|
+
nativeEnumType(BalanceTransferCategoryResponse),
|
|
35986
|
+
stringType().and(custom())
|
|
35987
|
+
]);
|
|
35988
|
+
((BalanceTransferCategoryResponse$) => {
|
|
35989
|
+
BalanceTransferCategoryResponse$.inboundSchema = BalanceTransferCategoryResponse$inboundSchema;
|
|
35990
|
+
BalanceTransferCategoryResponse$.outboundSchema = BalanceTransferCategoryResponse$outboundSchema;
|
|
35991
|
+
})(BalanceTransferCategoryResponse$ ||= {});
|
|
35992
|
+
});
|
|
35993
|
+
|
|
35944
35994
|
// src/models/balancetransferdestinationtype.ts
|
|
35945
35995
|
var BalanceTransferDestinationType, BalanceTransferDestinationType$inboundSchema, BalanceTransferDestinationType$outboundSchema, BalanceTransferDestinationType$;
|
|
35946
35996
|
var init_balancetransferdestinationtype = __esm(() => {
|
|
@@ -35990,6 +36040,94 @@ var init_balancetransferfrequency = __esm(() => {
|
|
|
35990
36040
|
})(BalanceTransferFrequency$ ||= {});
|
|
35991
36041
|
});
|
|
35992
36042
|
|
|
36043
|
+
// src/models/balancetransferpartytype.ts
|
|
36044
|
+
var BalanceTransferPartyType, BalanceTransferPartyType$inboundSchema, BalanceTransferPartyType$outboundSchema, BalanceTransferPartyType$;
|
|
36045
|
+
var init_balancetransferpartytype = __esm(() => {
|
|
36046
|
+
init_esm();
|
|
36047
|
+
BalanceTransferPartyType = {
|
|
36048
|
+
Organization: "organization"
|
|
36049
|
+
};
|
|
36050
|
+
BalanceTransferPartyType$inboundSchema = nativeEnumType(BalanceTransferPartyType);
|
|
36051
|
+
BalanceTransferPartyType$outboundSchema = BalanceTransferPartyType$inboundSchema;
|
|
36052
|
+
((BalanceTransferPartyType$) => {
|
|
36053
|
+
BalanceTransferPartyType$.inboundSchema = BalanceTransferPartyType$inboundSchema;
|
|
36054
|
+
BalanceTransferPartyType$.outboundSchema = BalanceTransferPartyType$outboundSchema;
|
|
36055
|
+
})(BalanceTransferPartyType$ ||= {});
|
|
36056
|
+
});
|
|
36057
|
+
|
|
36058
|
+
// src/models/balancetransferpartytyperesponse.ts
|
|
36059
|
+
var BalanceTransferPartyTypeResponse, BalanceTransferPartyTypeResponse$inboundSchema, BalanceTransferPartyTypeResponse$outboundSchema, BalanceTransferPartyTypeResponse$;
|
|
36060
|
+
var init_balancetransferpartytyperesponse = __esm(() => {
|
|
36061
|
+
init_esm();
|
|
36062
|
+
BalanceTransferPartyTypeResponse = {
|
|
36063
|
+
Organization: "organization"
|
|
36064
|
+
};
|
|
36065
|
+
BalanceTransferPartyTypeResponse$inboundSchema = unionType([
|
|
36066
|
+
nativeEnumType(BalanceTransferPartyTypeResponse),
|
|
36067
|
+
stringType().transform(catchUnrecognizedEnum)
|
|
36068
|
+
]);
|
|
36069
|
+
BalanceTransferPartyTypeResponse$outboundSchema = unionType([
|
|
36070
|
+
nativeEnumType(BalanceTransferPartyTypeResponse),
|
|
36071
|
+
stringType().and(custom())
|
|
36072
|
+
]);
|
|
36073
|
+
((BalanceTransferPartyTypeResponse$) => {
|
|
36074
|
+
BalanceTransferPartyTypeResponse$.inboundSchema = BalanceTransferPartyTypeResponse$inboundSchema;
|
|
36075
|
+
BalanceTransferPartyTypeResponse$.outboundSchema = BalanceTransferPartyTypeResponse$outboundSchema;
|
|
36076
|
+
})(BalanceTransferPartyTypeResponse$ ||= {});
|
|
36077
|
+
});
|
|
36078
|
+
|
|
36079
|
+
// src/models/balancetransferstatus.ts
|
|
36080
|
+
var BalanceTransferStatus, BalanceTransferStatus$inboundSchema, BalanceTransferStatus$outboundSchema, BalanceTransferStatus$;
|
|
36081
|
+
var init_balancetransferstatus = __esm(() => {
|
|
36082
|
+
init_esm();
|
|
36083
|
+
BalanceTransferStatus = {
|
|
36084
|
+
Created: "created",
|
|
36085
|
+
Failed: "failed",
|
|
36086
|
+
Succeeded: "succeeded"
|
|
36087
|
+
};
|
|
36088
|
+
BalanceTransferStatus$inboundSchema = unionType([
|
|
36089
|
+
nativeEnumType(BalanceTransferStatus),
|
|
36090
|
+
stringType().transform(catchUnrecognizedEnum)
|
|
36091
|
+
]);
|
|
36092
|
+
BalanceTransferStatus$outboundSchema = unionType([
|
|
36093
|
+
nativeEnumType(BalanceTransferStatus),
|
|
36094
|
+
stringType().and(custom())
|
|
36095
|
+
]);
|
|
36096
|
+
((BalanceTransferStatus$) => {
|
|
36097
|
+
BalanceTransferStatus$.inboundSchema = BalanceTransferStatus$inboundSchema;
|
|
36098
|
+
BalanceTransferStatus$.outboundSchema = BalanceTransferStatus$outboundSchema;
|
|
36099
|
+
})(BalanceTransferStatus$ ||= {});
|
|
36100
|
+
});
|
|
36101
|
+
|
|
36102
|
+
// src/models/balancetransferstatusreasonresponse.ts
|
|
36103
|
+
var BalanceTransferStatusReasonResponse, BalanceTransferStatusReasonResponse$inboundSchema, BalanceTransferStatusReasonResponse$outboundSchema, BalanceTransferStatusReasonResponse$;
|
|
36104
|
+
var init_balancetransferstatusreasonresponse = __esm(() => {
|
|
36105
|
+
init_esm();
|
|
36106
|
+
BalanceTransferStatusReasonResponse = {
|
|
36107
|
+
RequestCreated: "request_created",
|
|
36108
|
+
Success: "success",
|
|
36109
|
+
SourceNotAllowed: "source_not_allowed",
|
|
36110
|
+
DestinationNotAllowed: "destination_not_allowed",
|
|
36111
|
+
InsufficientFunds: "insufficient_funds",
|
|
36112
|
+
InvalidSourceBalance: "invalid_source_balance",
|
|
36113
|
+
InvalidDestinationBalance: "invalid_destination_balance",
|
|
36114
|
+
TransferRequestExpired: "transfer_request_expired",
|
|
36115
|
+
TransferLimitReached: "transfer_limit_reached"
|
|
36116
|
+
};
|
|
36117
|
+
BalanceTransferStatusReasonResponse$inboundSchema = unionType([
|
|
36118
|
+
nativeEnumType(BalanceTransferStatusReasonResponse),
|
|
36119
|
+
stringType().transform(catchUnrecognizedEnum)
|
|
36120
|
+
]);
|
|
36121
|
+
BalanceTransferStatusReasonResponse$outboundSchema = unionType([
|
|
36122
|
+
nativeEnumType(BalanceTransferStatusReasonResponse),
|
|
36123
|
+
stringType().and(custom())
|
|
36124
|
+
]);
|
|
36125
|
+
((BalanceTransferStatusReasonResponse$) => {
|
|
36126
|
+
BalanceTransferStatusReasonResponse$.inboundSchema = BalanceTransferStatusReasonResponse$inboundSchema;
|
|
36127
|
+
BalanceTransferStatusReasonResponse$.outboundSchema = BalanceTransferStatusReasonResponse$outboundSchema;
|
|
36128
|
+
})(BalanceTransferStatusReasonResponse$ ||= {});
|
|
36129
|
+
});
|
|
36130
|
+
|
|
35993
36131
|
// src/models/capabilityrequirementstatus.ts
|
|
35994
36132
|
var CapabilityRequirementStatus, CapabilityRequirementStatus$inboundSchema, CapabilityRequirementStatus$outboundSchema, CapabilityRequirementStatus$;
|
|
35995
36133
|
var init_capabilityrequirementstatus = __esm(() => {
|
|
@@ -36712,9 +36850,11 @@ var init_createwebhook = __esm(() => {
|
|
|
36712
36850
|
init_webhookeventtypes();
|
|
36713
36851
|
init_webhookstatus();
|
|
36714
36852
|
CreateWebhookLinks$inboundSchema = objectType({
|
|
36853
|
+
self: Url$inboundSchema,
|
|
36715
36854
|
documentation: Url$inboundSchema
|
|
36716
36855
|
});
|
|
36717
36856
|
CreateWebhookLinks$outboundSchema = objectType({
|
|
36857
|
+
self: Url$outboundSchema,
|
|
36718
36858
|
documentation: Url$outboundSchema
|
|
36719
36859
|
});
|
|
36720
36860
|
((CreateWebhookLinks$) => {
|
|
@@ -37881,6 +38021,135 @@ var init_entitybalancetransaction = __esm(() => {
|
|
|
37881
38021
|
})(EntityBalanceTransaction$ ||= {});
|
|
37882
38022
|
});
|
|
37883
38023
|
|
|
38024
|
+
// src/models/entitybalancetransferparty.ts
|
|
38025
|
+
var EntityBalanceTransferParty$inboundSchema, EntityBalanceTransferParty$outboundSchema, EntityBalanceTransferParty$;
|
|
38026
|
+
var init_entitybalancetransferparty = __esm(() => {
|
|
38027
|
+
init_esm();
|
|
38028
|
+
init_balancetransferpartytype();
|
|
38029
|
+
EntityBalanceTransferParty$inboundSchema = objectType({
|
|
38030
|
+
type: BalanceTransferPartyType$inboundSchema,
|
|
38031
|
+
id: stringType(),
|
|
38032
|
+
description: stringType()
|
|
38033
|
+
});
|
|
38034
|
+
EntityBalanceTransferParty$outboundSchema = objectType({
|
|
38035
|
+
type: BalanceTransferPartyType$outboundSchema,
|
|
38036
|
+
id: stringType(),
|
|
38037
|
+
description: stringType()
|
|
38038
|
+
});
|
|
38039
|
+
((EntityBalanceTransferParty$) => {
|
|
38040
|
+
EntityBalanceTransferParty$.inboundSchema = EntityBalanceTransferParty$inboundSchema;
|
|
38041
|
+
EntityBalanceTransferParty$.outboundSchema = EntityBalanceTransferParty$outboundSchema;
|
|
38042
|
+
})(EntityBalanceTransferParty$ ||= {});
|
|
38043
|
+
});
|
|
38044
|
+
|
|
38045
|
+
// src/models/entitybalancetransfer.ts
|
|
38046
|
+
var EntityBalanceTransfer$inboundSchema, EntityBalanceTransfer$outboundSchema, EntityBalanceTransfer$;
|
|
38047
|
+
var init_entitybalancetransfer = __esm(() => {
|
|
38048
|
+
init_esm();
|
|
38049
|
+
init_amount();
|
|
38050
|
+
init_balancetransfercategory();
|
|
38051
|
+
init_entitybalancetransferparty();
|
|
38052
|
+
EntityBalanceTransfer$inboundSchema = objectType({
|
|
38053
|
+
id: stringType(),
|
|
38054
|
+
amount: Amount$inboundSchema,
|
|
38055
|
+
source: EntityBalanceTransferParty$inboundSchema,
|
|
38056
|
+
destination: EntityBalanceTransferParty$inboundSchema,
|
|
38057
|
+
description: stringType(),
|
|
38058
|
+
category: BalanceTransferCategory$inboundSchema.optional(),
|
|
38059
|
+
testmode: nullableType(booleanType()).optional()
|
|
38060
|
+
});
|
|
38061
|
+
EntityBalanceTransfer$outboundSchema = objectType({
|
|
38062
|
+
id: stringType(),
|
|
38063
|
+
amount: Amount$outboundSchema,
|
|
38064
|
+
source: EntityBalanceTransferParty$outboundSchema,
|
|
38065
|
+
destination: EntityBalanceTransferParty$outboundSchema,
|
|
38066
|
+
description: stringType(),
|
|
38067
|
+
category: BalanceTransferCategory$outboundSchema.optional(),
|
|
38068
|
+
testmode: nullableType(booleanType()).optional()
|
|
38069
|
+
});
|
|
38070
|
+
((EntityBalanceTransfer$) => {
|
|
38071
|
+
EntityBalanceTransfer$.inboundSchema = EntityBalanceTransfer$inboundSchema;
|
|
38072
|
+
EntityBalanceTransfer$.outboundSchema = EntityBalanceTransfer$outboundSchema;
|
|
38073
|
+
})(EntityBalanceTransfer$ ||= {});
|
|
38074
|
+
});
|
|
38075
|
+
|
|
38076
|
+
// src/models/entitybalancetransferpartyresponse.ts
|
|
38077
|
+
var EntityBalanceTransferPartyResponse$inboundSchema, EntityBalanceTransferPartyResponse$outboundSchema, EntityBalanceTransferPartyResponse$;
|
|
38078
|
+
var init_entitybalancetransferpartyresponse = __esm(() => {
|
|
38079
|
+
init_esm();
|
|
38080
|
+
init_balancetransferpartytyperesponse();
|
|
38081
|
+
EntityBalanceTransferPartyResponse$inboundSchema = objectType({
|
|
38082
|
+
type: BalanceTransferPartyTypeResponse$inboundSchema,
|
|
38083
|
+
id: stringType(),
|
|
38084
|
+
description: stringType()
|
|
38085
|
+
});
|
|
38086
|
+
EntityBalanceTransferPartyResponse$outboundSchema = objectType({
|
|
38087
|
+
type: BalanceTransferPartyTypeResponse$outboundSchema,
|
|
38088
|
+
id: stringType(),
|
|
38089
|
+
description: stringType()
|
|
38090
|
+
});
|
|
38091
|
+
((EntityBalanceTransferPartyResponse$) => {
|
|
38092
|
+
EntityBalanceTransferPartyResponse$.inboundSchema = EntityBalanceTransferPartyResponse$inboundSchema;
|
|
38093
|
+
EntityBalanceTransferPartyResponse$.outboundSchema = EntityBalanceTransferPartyResponse$outboundSchema;
|
|
38094
|
+
})(EntityBalanceTransferPartyResponse$ ||= {});
|
|
38095
|
+
});
|
|
38096
|
+
|
|
38097
|
+
// src/models/entitybalancetransferresponse.ts
|
|
38098
|
+
var EntityBalanceTransferResponseStatusReason$inboundSchema, EntityBalanceTransferResponseStatusReason$outboundSchema, EntityBalanceTransferResponseStatusReason$, EntityBalanceTransferResponse$inboundSchema, EntityBalanceTransferResponse$outboundSchema, EntityBalanceTransferResponse$;
|
|
38099
|
+
var init_entitybalancetransferresponse = __esm(() => {
|
|
38100
|
+
init_esm();
|
|
38101
|
+
init_amount();
|
|
38102
|
+
init_balancetransfercategoryresponse();
|
|
38103
|
+
init_balancetransferstatus();
|
|
38104
|
+
init_balancetransferstatusreasonresponse();
|
|
38105
|
+
init_entitybalancetransferpartyresponse();
|
|
38106
|
+
init_mode();
|
|
38107
|
+
EntityBalanceTransferResponseStatusReason$inboundSchema = objectType({
|
|
38108
|
+
code: BalanceTransferStatusReasonResponse$inboundSchema,
|
|
38109
|
+
message: stringType()
|
|
38110
|
+
});
|
|
38111
|
+
EntityBalanceTransferResponseStatusReason$outboundSchema = objectType({
|
|
38112
|
+
code: BalanceTransferStatusReasonResponse$outboundSchema,
|
|
38113
|
+
message: stringType()
|
|
38114
|
+
});
|
|
38115
|
+
((EntityBalanceTransferResponseStatusReason$) => {
|
|
38116
|
+
EntityBalanceTransferResponseStatusReason$.inboundSchema = EntityBalanceTransferResponseStatusReason$inboundSchema;
|
|
38117
|
+
EntityBalanceTransferResponseStatusReason$.outboundSchema = EntityBalanceTransferResponseStatusReason$outboundSchema;
|
|
38118
|
+
})(EntityBalanceTransferResponseStatusReason$ ||= {});
|
|
38119
|
+
EntityBalanceTransferResponse$inboundSchema = objectType({
|
|
38120
|
+
resource: stringType(),
|
|
38121
|
+
id: stringType(),
|
|
38122
|
+
amount: Amount$inboundSchema,
|
|
38123
|
+
source: EntityBalanceTransferPartyResponse$inboundSchema,
|
|
38124
|
+
destination: EntityBalanceTransferPartyResponse$inboundSchema,
|
|
38125
|
+
description: stringType(),
|
|
38126
|
+
status: BalanceTransferStatus$inboundSchema,
|
|
38127
|
+
statusReason: lazyType(() => EntityBalanceTransferResponseStatusReason$inboundSchema),
|
|
38128
|
+
category: BalanceTransferCategoryResponse$inboundSchema.optional(),
|
|
38129
|
+
createdAt: stringType(),
|
|
38130
|
+
executedAt: nullableType(stringType()).optional(),
|
|
38131
|
+
mode: Mode$inboundSchema
|
|
38132
|
+
});
|
|
38133
|
+
EntityBalanceTransferResponse$outboundSchema = objectType({
|
|
38134
|
+
resource: stringType(),
|
|
38135
|
+
id: stringType(),
|
|
38136
|
+
amount: Amount$outboundSchema,
|
|
38137
|
+
source: EntityBalanceTransferPartyResponse$outboundSchema,
|
|
38138
|
+
destination: EntityBalanceTransferPartyResponse$outboundSchema,
|
|
38139
|
+
description: stringType(),
|
|
38140
|
+
status: BalanceTransferStatus$outboundSchema,
|
|
38141
|
+
statusReason: lazyType(() => EntityBalanceTransferResponseStatusReason$outboundSchema),
|
|
38142
|
+
category: BalanceTransferCategoryResponse$outboundSchema.optional(),
|
|
38143
|
+
createdAt: stringType(),
|
|
38144
|
+
executedAt: nullableType(stringType()).optional(),
|
|
38145
|
+
mode: Mode$outboundSchema
|
|
38146
|
+
});
|
|
38147
|
+
((EntityBalanceTransferResponse$) => {
|
|
38148
|
+
EntityBalanceTransferResponse$.inboundSchema = EntityBalanceTransferResponse$inboundSchema;
|
|
38149
|
+
EntityBalanceTransferResponse$.outboundSchema = EntityBalanceTransferResponse$outboundSchema;
|
|
38150
|
+
})(EntityBalanceTransferResponse$ ||= {});
|
|
38151
|
+
});
|
|
38152
|
+
|
|
37884
38153
|
// src/models/entitycapabilityrequirement.ts
|
|
37885
38154
|
var Dashboard$inboundSchema, Dashboard$outboundSchema, Dashboard$, EntityCapabilityRequirementLinks$inboundSchema, EntityCapabilityRequirementLinks$outboundSchema, EntityCapabilityRequirementLinks$, EntityCapabilityRequirement$inboundSchema, EntityCapabilityRequirement$outboundSchema, EntityCapabilityRequirement$;
|
|
37886
38155
|
var init_entitycapabilityrequirement = __esm(() => {
|
|
@@ -40622,9 +40891,11 @@ var init_entitywebhook = __esm(() => {
|
|
|
40622
40891
|
init_webhookeventtypes();
|
|
40623
40892
|
init_webhookstatus();
|
|
40624
40893
|
EntityWebhookLinks$inboundSchema = objectType({
|
|
40894
|
+
self: Url$inboundSchema,
|
|
40625
40895
|
documentation: Url$inboundSchema
|
|
40626
40896
|
});
|
|
40627
40897
|
EntityWebhookLinks$outboundSchema = objectType({
|
|
40898
|
+
self: Url$outboundSchema,
|
|
40628
40899
|
documentation: Url$outboundSchema
|
|
40629
40900
|
});
|
|
40630
40901
|
((EntityWebhookLinks$) => {
|
|
@@ -42985,8 +43256,14 @@ var init_models = __esm(() => {
|
|
|
42985
43256
|
init_balancereportgrouping();
|
|
42986
43257
|
init_balancestatus();
|
|
42987
43258
|
init_balancetransactiontype();
|
|
43259
|
+
init_balancetransfercategory();
|
|
43260
|
+
init_balancetransfercategoryresponse();
|
|
42988
43261
|
init_balancetransferdestinationtype();
|
|
42989
43262
|
init_balancetransferfrequency();
|
|
43263
|
+
init_balancetransferpartytype();
|
|
43264
|
+
init_balancetransferpartytyperesponse();
|
|
43265
|
+
init_balancetransferstatus();
|
|
43266
|
+
init_balancetransferstatusreasonresponse();
|
|
42990
43267
|
init_capabilityrequirementstatus();
|
|
42991
43268
|
init_capabilitystatus();
|
|
42992
43269
|
init_capabilitystatusreason();
|
|
@@ -43002,6 +43279,10 @@ var init_models = __esm(() => {
|
|
|
43002
43279
|
init_entitybalance();
|
|
43003
43280
|
init_entitybalancereport();
|
|
43004
43281
|
init_entitybalancetransaction();
|
|
43282
|
+
init_entitybalancetransfer();
|
|
43283
|
+
init_entitybalancetransferparty();
|
|
43284
|
+
init_entitybalancetransferpartyresponse();
|
|
43285
|
+
init_entitybalancetransferresponse();
|
|
43005
43286
|
init_entitycapability();
|
|
43006
43287
|
init_entitycapabilityrequirement();
|
|
43007
43288
|
init_entitycapture();
|
|
@@ -43381,6 +43662,36 @@ var init_createclientlink = __esm(() => {
|
|
|
43381
43662
|
})(CreateClientLinkRequest$ ||= {});
|
|
43382
43663
|
});
|
|
43383
43664
|
|
|
43665
|
+
// src/models/operations/createconnectbalancetransfer.ts
|
|
43666
|
+
var CreateConnectBalanceTransferRequest$inboundSchema, CreateConnectBalanceTransferRequest$outboundSchema, CreateConnectBalanceTransferRequest$;
|
|
43667
|
+
var init_createconnectbalancetransfer = __esm(() => {
|
|
43668
|
+
init_esm();
|
|
43669
|
+
init_primitives();
|
|
43670
|
+
init_models();
|
|
43671
|
+
CreateConnectBalanceTransferRequest$inboundSchema = objectType({
|
|
43672
|
+
"idempotency-key": stringType().optional(),
|
|
43673
|
+
"entity-balance-transfer": EntityBalanceTransfer$inboundSchema.optional()
|
|
43674
|
+
}).transform((v2) => {
|
|
43675
|
+
return remap(v2, {
|
|
43676
|
+
"idempotency-key": "idempotencyKey",
|
|
43677
|
+
"entity-balance-transfer": "entityBalanceTransfer"
|
|
43678
|
+
});
|
|
43679
|
+
});
|
|
43680
|
+
CreateConnectBalanceTransferRequest$outboundSchema = objectType({
|
|
43681
|
+
idempotencyKey: stringType().optional(),
|
|
43682
|
+
entityBalanceTransfer: EntityBalanceTransfer$outboundSchema.optional()
|
|
43683
|
+
}).transform((v2) => {
|
|
43684
|
+
return remap(v2, {
|
|
43685
|
+
idempotencyKey: "idempotency-key",
|
|
43686
|
+
entityBalanceTransfer: "entity-balance-transfer"
|
|
43687
|
+
});
|
|
43688
|
+
});
|
|
43689
|
+
((CreateConnectBalanceTransferRequest$) => {
|
|
43690
|
+
CreateConnectBalanceTransferRequest$.inboundSchema = CreateConnectBalanceTransferRequest$inboundSchema;
|
|
43691
|
+
CreateConnectBalanceTransferRequest$.outboundSchema = CreateConnectBalanceTransferRequest$outboundSchema;
|
|
43692
|
+
})(CreateConnectBalanceTransferRequest$ ||= {});
|
|
43693
|
+
});
|
|
43694
|
+
|
|
43384
43695
|
// src/models/operations/createcustomer.ts
|
|
43385
43696
|
var CreateCustomerRequest$inboundSchema, CreateCustomerRequest$outboundSchema, CreateCustomerRequest$;
|
|
43386
43697
|
var init_createcustomer = __esm(() => {
|
|
@@ -44191,6 +44502,35 @@ var init_getclient = __esm(() => {
|
|
|
44191
44502
|
})(GetClientResponse$ ||= {});
|
|
44192
44503
|
});
|
|
44193
44504
|
|
|
44505
|
+
// src/models/operations/getconnectbalancetransfer.ts
|
|
44506
|
+
var GetConnectBalanceTransferRequest$inboundSchema, GetConnectBalanceTransferRequest$outboundSchema, GetConnectBalanceTransferRequest$;
|
|
44507
|
+
var init_getconnectbalancetransfer = __esm(() => {
|
|
44508
|
+
init_esm();
|
|
44509
|
+
init_primitives();
|
|
44510
|
+
GetConnectBalanceTransferRequest$inboundSchema = objectType({
|
|
44511
|
+
id: stringType(),
|
|
44512
|
+
testmode: nullableType(booleanType()).optional(),
|
|
44513
|
+
"idempotency-key": stringType().optional()
|
|
44514
|
+
}).transform((v2) => {
|
|
44515
|
+
return remap(v2, {
|
|
44516
|
+
"idempotency-key": "idempotencyKey"
|
|
44517
|
+
});
|
|
44518
|
+
});
|
|
44519
|
+
GetConnectBalanceTransferRequest$outboundSchema = objectType({
|
|
44520
|
+
id: stringType(),
|
|
44521
|
+
testmode: nullableType(booleanType()).optional(),
|
|
44522
|
+
idempotencyKey: stringType().optional()
|
|
44523
|
+
}).transform((v2) => {
|
|
44524
|
+
return remap(v2, {
|
|
44525
|
+
idempotencyKey: "idempotency-key"
|
|
44526
|
+
});
|
|
44527
|
+
});
|
|
44528
|
+
((GetConnectBalanceTransferRequest$) => {
|
|
44529
|
+
GetConnectBalanceTransferRequest$.inboundSchema = GetConnectBalanceTransferRequest$inboundSchema;
|
|
44530
|
+
GetConnectBalanceTransferRequest$.outboundSchema = GetConnectBalanceTransferRequest$outboundSchema;
|
|
44531
|
+
})(GetConnectBalanceTransferRequest$ ||= {});
|
|
44532
|
+
});
|
|
44533
|
+
|
|
44194
44534
|
// src/models/operations/getcurrentorganization.ts
|
|
44195
44535
|
var GetCurrentOrganizationRequest$inboundSchema, GetCurrentOrganizationRequest$outboundSchema, GetCurrentOrganizationRequest$;
|
|
44196
44536
|
var init_getcurrentorganization = __esm(() => {
|
|
@@ -45848,6 +46188,82 @@ var init_listclients = __esm(() => {
|
|
|
45848
46188
|
})(ListClientsResponse$ ||= {});
|
|
45849
46189
|
});
|
|
45850
46190
|
|
|
46191
|
+
// src/models/operations/listconnectbalancetransfers.ts
|
|
46192
|
+
var ListConnectBalanceTransfersRequest$inboundSchema, ListConnectBalanceTransfersRequest$outboundSchema, ListConnectBalanceTransfersRequest$, ListConnectBalanceTransfersEmbedded$inboundSchema, ListConnectBalanceTransfersEmbedded$outboundSchema, ListConnectBalanceTransfersEmbedded$, ListConnectBalanceTransfersResponse$inboundSchema, ListConnectBalanceTransfersResponse$outboundSchema, ListConnectBalanceTransfersResponse$;
|
|
46193
|
+
var init_listconnectbalancetransfers = __esm(() => {
|
|
46194
|
+
init_esm();
|
|
46195
|
+
init_primitives();
|
|
46196
|
+
init_models();
|
|
46197
|
+
ListConnectBalanceTransfersRequest$inboundSchema = objectType({
|
|
46198
|
+
from: nullableType(stringType()).optional(),
|
|
46199
|
+
limit: nullableType(numberType().int()).optional(),
|
|
46200
|
+
sort: nullableType(ListSort$inboundSchema).optional(),
|
|
46201
|
+
testmode: nullableType(booleanType()).optional(),
|
|
46202
|
+
"idempotency-key": stringType().optional()
|
|
46203
|
+
}).transform((v2) => {
|
|
46204
|
+
return remap(v2, {
|
|
46205
|
+
"idempotency-key": "idempotencyKey"
|
|
46206
|
+
});
|
|
46207
|
+
});
|
|
46208
|
+
ListConnectBalanceTransfersRequest$outboundSchema = objectType({
|
|
46209
|
+
from: nullableType(stringType()).optional(),
|
|
46210
|
+
limit: nullableType(numberType().int()).optional(),
|
|
46211
|
+
sort: nullableType(ListSort$outboundSchema).optional(),
|
|
46212
|
+
testmode: nullableType(booleanType()).optional(),
|
|
46213
|
+
idempotencyKey: stringType().optional()
|
|
46214
|
+
}).transform((v2) => {
|
|
46215
|
+
return remap(v2, {
|
|
46216
|
+
idempotencyKey: "idempotency-key"
|
|
46217
|
+
});
|
|
46218
|
+
});
|
|
46219
|
+
((ListConnectBalanceTransfersRequest$) => {
|
|
46220
|
+
ListConnectBalanceTransfersRequest$.inboundSchema = ListConnectBalanceTransfersRequest$inboundSchema;
|
|
46221
|
+
ListConnectBalanceTransfersRequest$.outboundSchema = ListConnectBalanceTransfersRequest$outboundSchema;
|
|
46222
|
+
})(ListConnectBalanceTransfersRequest$ ||= {});
|
|
46223
|
+
ListConnectBalanceTransfersEmbedded$inboundSchema = objectType({
|
|
46224
|
+
connect_balance_transfers: arrayType(EntityBalanceTransferResponse$inboundSchema)
|
|
46225
|
+
}).transform((v2) => {
|
|
46226
|
+
return remap(v2, {
|
|
46227
|
+
connect_balance_transfers: "connectBalanceTransfers"
|
|
46228
|
+
});
|
|
46229
|
+
});
|
|
46230
|
+
ListConnectBalanceTransfersEmbedded$outboundSchema = objectType({
|
|
46231
|
+
connectBalanceTransfers: arrayType(EntityBalanceTransferResponse$outboundSchema)
|
|
46232
|
+
}).transform((v2) => {
|
|
46233
|
+
return remap(v2, {
|
|
46234
|
+
connectBalanceTransfers: "connect_balance_transfers"
|
|
46235
|
+
});
|
|
46236
|
+
});
|
|
46237
|
+
((ListConnectBalanceTransfersEmbedded$) => {
|
|
46238
|
+
ListConnectBalanceTransfersEmbedded$.inboundSchema = ListConnectBalanceTransfersEmbedded$inboundSchema;
|
|
46239
|
+
ListConnectBalanceTransfersEmbedded$.outboundSchema = ListConnectBalanceTransfersEmbedded$outboundSchema;
|
|
46240
|
+
})(ListConnectBalanceTransfersEmbedded$ ||= {});
|
|
46241
|
+
ListConnectBalanceTransfersResponse$inboundSchema = objectType({
|
|
46242
|
+
count: numberType().int(),
|
|
46243
|
+
_embedded: lazyType(() => ListConnectBalanceTransfersEmbedded$inboundSchema),
|
|
46244
|
+
_links: ListLinks$inboundSchema
|
|
46245
|
+
}).transform((v2) => {
|
|
46246
|
+
return remap(v2, {
|
|
46247
|
+
_embedded: "embedded",
|
|
46248
|
+
_links: "links"
|
|
46249
|
+
});
|
|
46250
|
+
});
|
|
46251
|
+
ListConnectBalanceTransfersResponse$outboundSchema = objectType({
|
|
46252
|
+
count: numberType().int(),
|
|
46253
|
+
embedded: lazyType(() => ListConnectBalanceTransfersEmbedded$outboundSchema),
|
|
46254
|
+
links: ListLinks$outboundSchema
|
|
46255
|
+
}).transform((v2) => {
|
|
46256
|
+
return remap(v2, {
|
|
46257
|
+
embedded: "_embedded",
|
|
46258
|
+
links: "_links"
|
|
46259
|
+
});
|
|
46260
|
+
});
|
|
46261
|
+
((ListConnectBalanceTransfersResponse$) => {
|
|
46262
|
+
ListConnectBalanceTransfersResponse$.inboundSchema = ListConnectBalanceTransfersResponse$inboundSchema;
|
|
46263
|
+
ListConnectBalanceTransfersResponse$.outboundSchema = ListConnectBalanceTransfersResponse$outboundSchema;
|
|
46264
|
+
})(ListConnectBalanceTransfersResponse$ ||= {});
|
|
46265
|
+
});
|
|
46266
|
+
|
|
45851
46267
|
// src/models/operations/listcustomerpayments.ts
|
|
45852
46268
|
var ListCustomerPaymentsRequest$inboundSchema, ListCustomerPaymentsRequest$outboundSchema, ListCustomerPaymentsRequest$, ListCustomerPaymentsEmbedded$inboundSchema, ListCustomerPaymentsEmbedded$outboundSchema, ListCustomerPaymentsEmbedded$, ListCustomerPaymentsResponse$inboundSchema, ListCustomerPaymentsResponse$outboundSchema, ListCustomerPaymentsResponse$;
|
|
45853
46269
|
var init_listcustomerpayments = __esm(() => {
|
|
@@ -47833,15 +48249,15 @@ var init_updatepaymentlink = __esm(() => {
|
|
|
47833
48249
|
});
|
|
47834
48250
|
|
|
47835
48251
|
// src/models/operations/updateprofile.ts
|
|
47836
|
-
var
|
|
48252
|
+
var Mode16, Mode$inboundSchema2, Mode$outboundSchema2, Mode$2, UpdateProfileRequestBody$inboundSchema, UpdateProfileRequestBody$outboundSchema, UpdateProfileRequestBody$, UpdateProfileRequest$inboundSchema, UpdateProfileRequest$outboundSchema, UpdateProfileRequest$;
|
|
47837
48253
|
var init_updateprofile = __esm(() => {
|
|
47838
48254
|
init_esm();
|
|
47839
48255
|
init_primitives();
|
|
47840
|
-
|
|
48256
|
+
Mode16 = {
|
|
47841
48257
|
Live: "live",
|
|
47842
48258
|
Test: "test"
|
|
47843
48259
|
};
|
|
47844
|
-
Mode$inboundSchema2 = nativeEnumType(
|
|
48260
|
+
Mode$inboundSchema2 = nativeEnumType(Mode16);
|
|
47845
48261
|
Mode$outboundSchema2 = Mode$inboundSchema2;
|
|
47846
48262
|
((Mode$) => {
|
|
47847
48263
|
Mode$.inboundSchema = Mode$inboundSchema2;
|
|
@@ -48052,6 +48468,7 @@ var init_operations = __esm(() => {
|
|
|
48052
48468
|
init_cancelsubscription();
|
|
48053
48469
|
init_createcapture();
|
|
48054
48470
|
init_createclientlink();
|
|
48471
|
+
init_createconnectbalancetransfer();
|
|
48055
48472
|
init_createcustomer();
|
|
48056
48473
|
init_createcustomerpayment();
|
|
48057
48474
|
init_createmandate();
|
|
@@ -48072,6 +48489,7 @@ var init_operations = __esm(() => {
|
|
|
48072
48489
|
init_getcapture();
|
|
48073
48490
|
init_getchargeback();
|
|
48074
48491
|
init_getclient();
|
|
48492
|
+
init_getconnectbalancetransfer();
|
|
48075
48493
|
init_getcurrentorganization();
|
|
48076
48494
|
init_getcurrentprofile();
|
|
48077
48495
|
init_getcustomer();
|
|
@@ -48106,6 +48524,7 @@ var init_operations = __esm(() => {
|
|
|
48106
48524
|
init_listcaptures();
|
|
48107
48525
|
init_listchargebacks();
|
|
48108
48526
|
init_listclients();
|
|
48527
|
+
init_listconnectbalancetransfers();
|
|
48109
48528
|
init_listcustomerpayments();
|
|
48110
48529
|
init_listcustomers();
|
|
48111
48530
|
init_listinvoices();
|
|
@@ -48817,19 +49236,22 @@ The results are paginated.`,
|
|
|
48817
49236
|
};
|
|
48818
49237
|
});
|
|
48819
49238
|
|
|
48820
|
-
// src/funcs/
|
|
48821
|
-
function
|
|
49239
|
+
// src/funcs/balanceTransfersCreate.ts
|
|
49240
|
+
function balanceTransfersCreate(client, request, options) {
|
|
48822
49241
|
return new APIPromise($do6(client, request, options));
|
|
48823
49242
|
}
|
|
48824
49243
|
async function $do6(client, request, options) {
|
|
48825
|
-
const parsed = safeParse(request, (value) =>
|
|
49244
|
+
const parsed = safeParse(request, (value) => CreateConnectBalanceTransferRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
48826
49245
|
if (!parsed.ok) {
|
|
48827
49246
|
return [parsed, { status: "invalid" }];
|
|
48828
49247
|
}
|
|
48829
49248
|
const payload = parsed.value;
|
|
48830
|
-
const body =
|
|
48831
|
-
|
|
49249
|
+
const body = encodeJSON("body", payload?.["entity-balance-transfer"], {
|
|
49250
|
+
explode: true
|
|
49251
|
+
});
|
|
49252
|
+
const path = pathToFunc("/connect/balance-transfers")();
|
|
48832
49253
|
const headers = new Headers(compactMap({
|
|
49254
|
+
"Content-Type": "application/json",
|
|
48833
49255
|
Accept: "application/hal+json",
|
|
48834
49256
|
"idempotency-key": encodeSimple("idempotency-key", payload?.["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
48835
49257
|
}));
|
|
@@ -48838,7 +49260,7 @@ async function $do6(client, request, options) {
|
|
|
48838
49260
|
const context = {
|
|
48839
49261
|
options: client._options,
|
|
48840
49262
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48841
|
-
operationID: "
|
|
49263
|
+
operationID: "create-connect-balance-transfer",
|
|
48842
49264
|
oAuth2Scopes: [],
|
|
48843
49265
|
resolvedSecurity: requestSecurity,
|
|
48844
49266
|
securitySource: client._options.security,
|
|
@@ -48856,7 +49278,7 @@ async function $do6(client, request, options) {
|
|
|
48856
49278
|
};
|
|
48857
49279
|
const requestRes = client._createRequest(context, {
|
|
48858
49280
|
security: requestSecurity,
|
|
48859
|
-
method: "
|
|
49281
|
+
method: "POST",
|
|
48860
49282
|
baseURL: options?.serverURL,
|
|
48861
49283
|
path,
|
|
48862
49284
|
headers,
|
|
@@ -48870,7 +49292,7 @@ async function $do6(client, request, options) {
|
|
|
48870
49292
|
const req = requestRes.value;
|
|
48871
49293
|
const doResult = await client._do(req, {
|
|
48872
49294
|
context,
|
|
48873
|
-
errorCodes: ["4XX", "5XX"],
|
|
49295
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
48874
49296
|
retryConfig: context.retryConfig,
|
|
48875
49297
|
retryCodes: context.retryCodes
|
|
48876
49298
|
});
|
|
@@ -48878,54 +49300,52 @@ async function $do6(client, request, options) {
|
|
|
48878
49300
|
return [doResult, { status: "request-error", request: req }];
|
|
48879
49301
|
}
|
|
48880
49302
|
const response = doResult.value;
|
|
48881
|
-
const
|
|
49303
|
+
const responseFields = {
|
|
49304
|
+
HttpMeta: { Response: response, Request: req }
|
|
49305
|
+
};
|
|
49306
|
+
const [result] = await match(json(201, EntityBalanceTransferResponse$inboundSchema, {
|
|
48882
49307
|
ctype: "application/hal+json"
|
|
48883
|
-
}),
|
|
49308
|
+
}), jsonErr(422, ErrorResponse$inboundSchema, {
|
|
49309
|
+
ctype: "application/hal+json"
|
|
49310
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
48884
49311
|
if (!result.ok) {
|
|
48885
49312
|
return [result, { status: "complete", request: req, response }];
|
|
48886
49313
|
}
|
|
48887
49314
|
return [result, { status: "complete", request: req, response }];
|
|
48888
49315
|
}
|
|
48889
|
-
var
|
|
49316
|
+
var init_balanceTransfersCreate = __esm(() => {
|
|
48890
49317
|
init_encodings();
|
|
48891
49318
|
init_matchers();
|
|
48892
49319
|
init_primitives();
|
|
48893
49320
|
init_schemas();
|
|
48894
49321
|
init_security();
|
|
48895
49322
|
init_url();
|
|
49323
|
+
init_errors2();
|
|
49324
|
+
init_models();
|
|
48896
49325
|
init_operations();
|
|
48897
49326
|
init_async();
|
|
48898
49327
|
});
|
|
48899
49328
|
|
|
48900
|
-
// src/mcp-server/tools/
|
|
48901
|
-
var args6, tool$
|
|
48902
|
-
var
|
|
48903
|
-
|
|
49329
|
+
// src/mcp-server/tools/balanceTransfersCreate.ts
|
|
49330
|
+
var args6, tool$balanceTransfersCreate;
|
|
49331
|
+
var init_balanceTransfersCreate2 = __esm(() => {
|
|
49332
|
+
init_balanceTransfersCreate();
|
|
48904
49333
|
init_operations();
|
|
48905
49334
|
init_tools();
|
|
48906
49335
|
args6 = {
|
|
48907
|
-
request:
|
|
49336
|
+
request: CreateConnectBalanceTransferRequest$inboundSchema.optional()
|
|
48908
49337
|
};
|
|
48909
|
-
tool$
|
|
48910
|
-
name: "
|
|
48911
|
-
description: `
|
|
48912
|
-
|
|
48913
|
-
> \uD83D\uDEA7 Beta feature
|
|
48914
|
-
>
|
|
48915
|
-
> This feature is currently in beta testing, and the final specification may still change.
|
|
48916
|
-
|
|
48917
|
-
Retrieve a list of capabilities for an organization.
|
|
49338
|
+
tool$balanceTransfersCreate = {
|
|
49339
|
+
name: "balance-transfers-create",
|
|
49340
|
+
description: `Create a Connect balance transfer
|
|
48918
49341
|
|
|
48919
|
-
This API
|
|
48920
|
-
|
|
48921
|
-
|
|
48922
|
-
|
|
48923
|
-
For payments, regardless them being at the profile level, the capability is listed at the organization level.
|
|
48924
|
-
This means that if at least one of the clients's profiles can receive payments,
|
|
48925
|
-
the payments capability is enabled, communicating that the organization can indeed receive payments.`,
|
|
49342
|
+
This API endpoint allows you to create a balance transfer from your organization's balance to a connected organization's balance, or vice versa.
|
|
49343
|
+
You can also create a balance transfer between two connected organizations.
|
|
49344
|
+
To create a balance transfer, you must be authenticated as the source organization, and the destination organization must be a connected organization
|
|
49345
|
+
that has authorized the \`balance-transfers.write\` scope for your organization.`,
|
|
48926
49346
|
args: args6,
|
|
48927
49347
|
tool: async (client, args7, ctx) => {
|
|
48928
|
-
const [result, apiCall] = await
|
|
49348
|
+
const [result, apiCall] = await balanceTransfersCreate(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48929
49349
|
if (!result.ok) {
|
|
48930
49350
|
return {
|
|
48931
49351
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48938,26 +49358,28 @@ the payments capability is enabled, communicating that the organization can inde
|
|
|
48938
49358
|
};
|
|
48939
49359
|
});
|
|
48940
49360
|
|
|
48941
|
-
// src/funcs/
|
|
48942
|
-
function
|
|
49361
|
+
// src/funcs/balanceTransfersGet.ts
|
|
49362
|
+
function balanceTransfersGet(client, request, options) {
|
|
48943
49363
|
return new APIPromise($do7(client, request, options));
|
|
48944
49364
|
}
|
|
48945
49365
|
async function $do7(client, request, options) {
|
|
48946
|
-
const parsed = safeParse(request, (value) =>
|
|
49366
|
+
const parsed = safeParse(request, (value) => GetConnectBalanceTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48947
49367
|
if (!parsed.ok) {
|
|
48948
49368
|
return [parsed, { status: "invalid" }];
|
|
48949
49369
|
}
|
|
48950
49370
|
const payload = parsed.value;
|
|
48951
|
-
const body =
|
|
49371
|
+
const body = null;
|
|
48952
49372
|
const pathParams = {
|
|
48953
|
-
|
|
49373
|
+
id: encodeSimple("id", payload.id, {
|
|
48954
49374
|
explode: false,
|
|
48955
49375
|
charEncoding: "percent"
|
|
48956
49376
|
})
|
|
48957
49377
|
};
|
|
48958
|
-
const path = pathToFunc("/
|
|
49378
|
+
const path = pathToFunc("/connect/balance-transfers/{id}")(pathParams);
|
|
49379
|
+
const query = encodeFormQuery({
|
|
49380
|
+
testmode: payload.testmode
|
|
49381
|
+
});
|
|
48959
49382
|
const headers = new Headers(compactMap({
|
|
48960
|
-
"Content-Type": "application/json",
|
|
48961
49383
|
Accept: "application/hal+json",
|
|
48962
49384
|
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
48963
49385
|
}));
|
|
@@ -48966,7 +49388,7 @@ async function $do7(client, request, options) {
|
|
|
48966
49388
|
const context = {
|
|
48967
49389
|
options: client._options,
|
|
48968
49390
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48969
|
-
operationID: "
|
|
49391
|
+
operationID: "get-connect-balance-transfer",
|
|
48970
49392
|
oAuth2Scopes: [],
|
|
48971
49393
|
resolvedSecurity: requestSecurity,
|
|
48972
49394
|
securitySource: client._options.security,
|
|
@@ -48984,10 +49406,11 @@ async function $do7(client, request, options) {
|
|
|
48984
49406
|
};
|
|
48985
49407
|
const requestRes = client._createRequest(context, {
|
|
48986
49408
|
security: requestSecurity,
|
|
48987
|
-
method: "
|
|
49409
|
+
method: "GET",
|
|
48988
49410
|
baseURL: options?.serverURL,
|
|
48989
49411
|
path,
|
|
48990
49412
|
headers,
|
|
49413
|
+
query,
|
|
48991
49414
|
body,
|
|
48992
49415
|
userAgent: client._options.userAgent,
|
|
48993
49416
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -48998,7 +49421,7 @@ async function $do7(client, request, options) {
|
|
|
48998
49421
|
const req = requestRes.value;
|
|
48999
49422
|
const doResult = await client._do(req, {
|
|
49000
49423
|
context,
|
|
49001
|
-
errorCodes: ["404", "
|
|
49424
|
+
errorCodes: ["404", "4XX", "5XX"],
|
|
49002
49425
|
retryConfig: context.retryConfig,
|
|
49003
49426
|
retryCodes: context.retryCodes
|
|
49004
49427
|
});
|
|
@@ -49009,9 +49432,9 @@ async function $do7(client, request, options) {
|
|
|
49009
49432
|
const responseFields = {
|
|
49010
49433
|
HttpMeta: { Response: response, Request: req }
|
|
49011
49434
|
};
|
|
49012
|
-
const [result] = await match(json(
|
|
49435
|
+
const [result] = await match(json(200, EntityBalanceTransferResponse$inboundSchema, {
|
|
49013
49436
|
ctype: "application/hal+json"
|
|
49014
|
-
}), jsonErr(
|
|
49437
|
+
}), jsonErr(404, ErrorResponse$inboundSchema, {
|
|
49015
49438
|
ctype: "application/hal+json"
|
|
49016
49439
|
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49017
49440
|
if (!result.ok) {
|
|
@@ -49019,7 +49442,7 @@ async function $do7(client, request, options) {
|
|
|
49019
49442
|
}
|
|
49020
49443
|
return [result, { status: "complete", request: req, response }];
|
|
49021
49444
|
}
|
|
49022
|
-
var
|
|
49445
|
+
var init_balanceTransfersGet = __esm(() => {
|
|
49023
49446
|
init_encodings();
|
|
49024
49447
|
init_matchers();
|
|
49025
49448
|
init_primitives();
|
|
@@ -49032,13 +49455,379 @@ var init_capturesCreate = __esm(() => {
|
|
|
49032
49455
|
init_async();
|
|
49033
49456
|
});
|
|
49034
49457
|
|
|
49035
|
-
// src/mcp-server/tools/
|
|
49036
|
-
var args7, tool$
|
|
49037
|
-
var
|
|
49038
|
-
|
|
49458
|
+
// src/mcp-server/tools/balanceTransfersGet.ts
|
|
49459
|
+
var args7, tool$balanceTransfersGet;
|
|
49460
|
+
var init_balanceTransfersGet2 = __esm(() => {
|
|
49461
|
+
init_balanceTransfersGet();
|
|
49039
49462
|
init_operations();
|
|
49040
49463
|
init_tools();
|
|
49041
49464
|
args7 = {
|
|
49465
|
+
request: GetConnectBalanceTransferRequest$inboundSchema
|
|
49466
|
+
};
|
|
49467
|
+
tool$balanceTransfersGet = {
|
|
49468
|
+
name: "balance-transfers-get",
|
|
49469
|
+
description: `Get a Connect balance transfer
|
|
49470
|
+
|
|
49471
|
+
Retrieve a single Connect balance transfer object by its ID.`,
|
|
49472
|
+
args: args7,
|
|
49473
|
+
tool: async (client, args8, ctx) => {
|
|
49474
|
+
const [result, apiCall] = await balanceTransfersGet(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49475
|
+
if (!result.ok) {
|
|
49476
|
+
return {
|
|
49477
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49478
|
+
isError: true
|
|
49479
|
+
};
|
|
49480
|
+
}
|
|
49481
|
+
const value = result.value;
|
|
49482
|
+
return formatResult(value, apiCall);
|
|
49483
|
+
}
|
|
49484
|
+
};
|
|
49485
|
+
});
|
|
49486
|
+
|
|
49487
|
+
// src/funcs/balanceTransfersList.ts
|
|
49488
|
+
function balanceTransfersList(client, request, options) {
|
|
49489
|
+
return new APIPromise($do8(client, request, options));
|
|
49490
|
+
}
|
|
49491
|
+
async function $do8(client, request, options) {
|
|
49492
|
+
const parsed = safeParse(request, (value) => ListConnectBalanceTransfersRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
49493
|
+
if (!parsed.ok) {
|
|
49494
|
+
return [parsed, { status: "invalid" }];
|
|
49495
|
+
}
|
|
49496
|
+
const payload = parsed.value;
|
|
49497
|
+
const body = null;
|
|
49498
|
+
const path = pathToFunc("/connect/balance-transfers")();
|
|
49499
|
+
const query = encodeFormQuery({
|
|
49500
|
+
from: payload?.from,
|
|
49501
|
+
limit: payload?.limit,
|
|
49502
|
+
sort: payload?.sort,
|
|
49503
|
+
testmode: payload?.testmode
|
|
49504
|
+
});
|
|
49505
|
+
const headers = new Headers(compactMap({
|
|
49506
|
+
Accept: "application/hal+json",
|
|
49507
|
+
"idempotency-key": encodeSimple("idempotency-key", payload?.["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
49508
|
+
}));
|
|
49509
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
49510
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49511
|
+
const context = {
|
|
49512
|
+
options: client._options,
|
|
49513
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49514
|
+
operationID: "list-connect-balance-transfers",
|
|
49515
|
+
oAuth2Scopes: [],
|
|
49516
|
+
resolvedSecurity: requestSecurity,
|
|
49517
|
+
securitySource: client._options.security,
|
|
49518
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
49519
|
+
strategy: "backoff",
|
|
49520
|
+
backoff: {
|
|
49521
|
+
initialInterval: 500,
|
|
49522
|
+
maxInterval: 60000,
|
|
49523
|
+
exponent: 1.5,
|
|
49524
|
+
maxElapsedTime: 3600000
|
|
49525
|
+
},
|
|
49526
|
+
retryConnectionErrors: true
|
|
49527
|
+
},
|
|
49528
|
+
retryCodes: options?.retryCodes || ["5xx"]
|
|
49529
|
+
};
|
|
49530
|
+
const requestRes = client._createRequest(context, {
|
|
49531
|
+
security: requestSecurity,
|
|
49532
|
+
method: "GET",
|
|
49533
|
+
baseURL: options?.serverURL,
|
|
49534
|
+
path,
|
|
49535
|
+
headers,
|
|
49536
|
+
query,
|
|
49537
|
+
body,
|
|
49538
|
+
userAgent: client._options.userAgent,
|
|
49539
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49540
|
+
}, options);
|
|
49541
|
+
if (!requestRes.ok) {
|
|
49542
|
+
return [requestRes, { status: "invalid" }];
|
|
49543
|
+
}
|
|
49544
|
+
const req = requestRes.value;
|
|
49545
|
+
const doResult = await client._do(req, {
|
|
49546
|
+
context,
|
|
49547
|
+
errorCodes: ["400", "4XX", "5XX"],
|
|
49548
|
+
retryConfig: context.retryConfig,
|
|
49549
|
+
retryCodes: context.retryCodes
|
|
49550
|
+
});
|
|
49551
|
+
if (!doResult.ok) {
|
|
49552
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49553
|
+
}
|
|
49554
|
+
const response = doResult.value;
|
|
49555
|
+
const responseFields = {
|
|
49556
|
+
HttpMeta: { Response: response, Request: req }
|
|
49557
|
+
};
|
|
49558
|
+
const [result] = await match(json(200, ListConnectBalanceTransfersResponse$inboundSchema, {
|
|
49559
|
+
ctype: "application/hal+json"
|
|
49560
|
+
}), jsonErr(400, ErrorResponse$inboundSchema, {
|
|
49561
|
+
ctype: "application/hal+json"
|
|
49562
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49563
|
+
if (!result.ok) {
|
|
49564
|
+
return [result, { status: "complete", request: req, response }];
|
|
49565
|
+
}
|
|
49566
|
+
return [result, { status: "complete", request: req, response }];
|
|
49567
|
+
}
|
|
49568
|
+
var init_balanceTransfersList = __esm(() => {
|
|
49569
|
+
init_encodings();
|
|
49570
|
+
init_matchers();
|
|
49571
|
+
init_primitives();
|
|
49572
|
+
init_schemas();
|
|
49573
|
+
init_security();
|
|
49574
|
+
init_url();
|
|
49575
|
+
init_errors2();
|
|
49576
|
+
init_operations();
|
|
49577
|
+
init_async();
|
|
49578
|
+
});
|
|
49579
|
+
|
|
49580
|
+
// src/mcp-server/tools/balanceTransfersList.ts
|
|
49581
|
+
var args8, tool$balanceTransfersList;
|
|
49582
|
+
var init_balanceTransfersList2 = __esm(() => {
|
|
49583
|
+
init_balanceTransfersList();
|
|
49584
|
+
init_operations();
|
|
49585
|
+
init_tools();
|
|
49586
|
+
args8 = {
|
|
49587
|
+
request: ListConnectBalanceTransfersRequest$inboundSchema.optional()
|
|
49588
|
+
};
|
|
49589
|
+
tool$balanceTransfersList = {
|
|
49590
|
+
name: "balance-transfers-list",
|
|
49591
|
+
description: `List all Connect balance transfers
|
|
49592
|
+
|
|
49593
|
+
Returns a paginated list of balance transfers associated with your organization. These may be a balance transfer that was received or sent from your balance, or a balance transfer that you initiated on behalf of your clients. If no balance transfers are available, the resulting array will be empty. This request should never throw an error.`,
|
|
49594
|
+
args: args8,
|
|
49595
|
+
tool: async (client, args9, ctx) => {
|
|
49596
|
+
const [result, apiCall] = await balanceTransfersList(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49597
|
+
if (!result.ok) {
|
|
49598
|
+
return {
|
|
49599
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49600
|
+
isError: true
|
|
49601
|
+
};
|
|
49602
|
+
}
|
|
49603
|
+
const value = result.value;
|
|
49604
|
+
return formatResult(value, apiCall);
|
|
49605
|
+
}
|
|
49606
|
+
};
|
|
49607
|
+
});
|
|
49608
|
+
|
|
49609
|
+
// src/funcs/capabilitiesList.ts
|
|
49610
|
+
function capabilitiesList(client, request, options) {
|
|
49611
|
+
return new APIPromise($do9(client, request, options));
|
|
49612
|
+
}
|
|
49613
|
+
async function $do9(client, request, options) {
|
|
49614
|
+
const parsed = safeParse(request, (value) => ListCapabilitiesRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
49615
|
+
if (!parsed.ok) {
|
|
49616
|
+
return [parsed, { status: "invalid" }];
|
|
49617
|
+
}
|
|
49618
|
+
const payload = parsed.value;
|
|
49619
|
+
const body = null;
|
|
49620
|
+
const path = pathToFunc("/capabilities")();
|
|
49621
|
+
const headers = new Headers(compactMap({
|
|
49622
|
+
Accept: "application/hal+json",
|
|
49623
|
+
"idempotency-key": encodeSimple("idempotency-key", payload?.["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
49624
|
+
}));
|
|
49625
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
49626
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49627
|
+
const context = {
|
|
49628
|
+
options: client._options,
|
|
49629
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49630
|
+
operationID: "list-capabilities",
|
|
49631
|
+
oAuth2Scopes: [],
|
|
49632
|
+
resolvedSecurity: requestSecurity,
|
|
49633
|
+
securitySource: client._options.security,
|
|
49634
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
49635
|
+
strategy: "backoff",
|
|
49636
|
+
backoff: {
|
|
49637
|
+
initialInterval: 500,
|
|
49638
|
+
maxInterval: 60000,
|
|
49639
|
+
exponent: 1.5,
|
|
49640
|
+
maxElapsedTime: 3600000
|
|
49641
|
+
},
|
|
49642
|
+
retryConnectionErrors: true
|
|
49643
|
+
},
|
|
49644
|
+
retryCodes: options?.retryCodes || ["5xx"]
|
|
49645
|
+
};
|
|
49646
|
+
const requestRes = client._createRequest(context, {
|
|
49647
|
+
security: requestSecurity,
|
|
49648
|
+
method: "GET",
|
|
49649
|
+
baseURL: options?.serverURL,
|
|
49650
|
+
path,
|
|
49651
|
+
headers,
|
|
49652
|
+
body,
|
|
49653
|
+
userAgent: client._options.userAgent,
|
|
49654
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49655
|
+
}, options);
|
|
49656
|
+
if (!requestRes.ok) {
|
|
49657
|
+
return [requestRes, { status: "invalid" }];
|
|
49658
|
+
}
|
|
49659
|
+
const req = requestRes.value;
|
|
49660
|
+
const doResult = await client._do(req, {
|
|
49661
|
+
context,
|
|
49662
|
+
errorCodes: ["4XX", "5XX"],
|
|
49663
|
+
retryConfig: context.retryConfig,
|
|
49664
|
+
retryCodes: context.retryCodes
|
|
49665
|
+
});
|
|
49666
|
+
if (!doResult.ok) {
|
|
49667
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49668
|
+
}
|
|
49669
|
+
const response = doResult.value;
|
|
49670
|
+
const [result] = await match(json(200, ListCapabilitiesResponse$inboundSchema, {
|
|
49671
|
+
ctype: "application/hal+json"
|
|
49672
|
+
}), fail("4XX"), fail("5XX"))(response, req);
|
|
49673
|
+
if (!result.ok) {
|
|
49674
|
+
return [result, { status: "complete", request: req, response }];
|
|
49675
|
+
}
|
|
49676
|
+
return [result, { status: "complete", request: req, response }];
|
|
49677
|
+
}
|
|
49678
|
+
var init_capabilitiesList = __esm(() => {
|
|
49679
|
+
init_encodings();
|
|
49680
|
+
init_matchers();
|
|
49681
|
+
init_primitives();
|
|
49682
|
+
init_schemas();
|
|
49683
|
+
init_security();
|
|
49684
|
+
init_url();
|
|
49685
|
+
init_operations();
|
|
49686
|
+
init_async();
|
|
49687
|
+
});
|
|
49688
|
+
|
|
49689
|
+
// src/mcp-server/tools/capabilitiesList.ts
|
|
49690
|
+
var args9, tool$capabilitiesList;
|
|
49691
|
+
var init_capabilitiesList2 = __esm(() => {
|
|
49692
|
+
init_capabilitiesList();
|
|
49693
|
+
init_operations();
|
|
49694
|
+
init_tools();
|
|
49695
|
+
args9 = {
|
|
49696
|
+
request: ListCapabilitiesRequest$inboundSchema.optional()
|
|
49697
|
+
};
|
|
49698
|
+
tool$capabilitiesList = {
|
|
49699
|
+
name: "capabilities-list",
|
|
49700
|
+
description: `List capabilities
|
|
49701
|
+
|
|
49702
|
+
> \uD83D\uDEA7 Beta feature
|
|
49703
|
+
>
|
|
49704
|
+
> This feature is currently in beta testing, and the final specification may still change.
|
|
49705
|
+
|
|
49706
|
+
Retrieve a list of capabilities for an organization.
|
|
49707
|
+
|
|
49708
|
+
This API provides detailed insights into the specific requirements and status of each client's onboarding journey.
|
|
49709
|
+
|
|
49710
|
+
Capabilities are at the organization level, indicating if the organization can perform a given capability.
|
|
49711
|
+
|
|
49712
|
+
For payments, regardless them being at the profile level, the capability is listed at the organization level.
|
|
49713
|
+
This means that if at least one of the clients's profiles can receive payments,
|
|
49714
|
+
the payments capability is enabled, communicating that the organization can indeed receive payments.`,
|
|
49715
|
+
args: args9,
|
|
49716
|
+
tool: async (client, args10, ctx) => {
|
|
49717
|
+
const [result, apiCall] = await capabilitiesList(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49718
|
+
if (!result.ok) {
|
|
49719
|
+
return {
|
|
49720
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49721
|
+
isError: true
|
|
49722
|
+
};
|
|
49723
|
+
}
|
|
49724
|
+
const value = result.value;
|
|
49725
|
+
return formatResult(value, apiCall);
|
|
49726
|
+
}
|
|
49727
|
+
};
|
|
49728
|
+
});
|
|
49729
|
+
|
|
49730
|
+
// src/funcs/capturesCreate.ts
|
|
49731
|
+
function capturesCreate(client, request, options) {
|
|
49732
|
+
return new APIPromise($do10(client, request, options));
|
|
49733
|
+
}
|
|
49734
|
+
async function $do10(client, request, options) {
|
|
49735
|
+
const parsed = safeParse(request, (value) => CreateCaptureRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49736
|
+
if (!parsed.ok) {
|
|
49737
|
+
return [parsed, { status: "invalid" }];
|
|
49738
|
+
}
|
|
49739
|
+
const payload = parsed.value;
|
|
49740
|
+
const body = encodeJSON("body", payload["entity-capture"], { explode: true });
|
|
49741
|
+
const pathParams = {
|
|
49742
|
+
paymentId: encodeSimple("paymentId", payload.paymentId, {
|
|
49743
|
+
explode: false,
|
|
49744
|
+
charEncoding: "percent"
|
|
49745
|
+
})
|
|
49746
|
+
};
|
|
49747
|
+
const path = pathToFunc("/payments/{paymentId}/captures")(pathParams);
|
|
49748
|
+
const headers = new Headers(compactMap({
|
|
49749
|
+
"Content-Type": "application/json",
|
|
49750
|
+
Accept: "application/hal+json",
|
|
49751
|
+
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
49752
|
+
}));
|
|
49753
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
49754
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49755
|
+
const context = {
|
|
49756
|
+
options: client._options,
|
|
49757
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49758
|
+
operationID: "create-capture",
|
|
49759
|
+
oAuth2Scopes: [],
|
|
49760
|
+
resolvedSecurity: requestSecurity,
|
|
49761
|
+
securitySource: client._options.security,
|
|
49762
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
49763
|
+
strategy: "backoff",
|
|
49764
|
+
backoff: {
|
|
49765
|
+
initialInterval: 500,
|
|
49766
|
+
maxInterval: 60000,
|
|
49767
|
+
exponent: 1.5,
|
|
49768
|
+
maxElapsedTime: 3600000
|
|
49769
|
+
},
|
|
49770
|
+
retryConnectionErrors: true
|
|
49771
|
+
},
|
|
49772
|
+
retryCodes: options?.retryCodes || ["5xx"]
|
|
49773
|
+
};
|
|
49774
|
+
const requestRes = client._createRequest(context, {
|
|
49775
|
+
security: requestSecurity,
|
|
49776
|
+
method: "POST",
|
|
49777
|
+
baseURL: options?.serverURL,
|
|
49778
|
+
path,
|
|
49779
|
+
headers,
|
|
49780
|
+
body,
|
|
49781
|
+
userAgent: client._options.userAgent,
|
|
49782
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49783
|
+
}, options);
|
|
49784
|
+
if (!requestRes.ok) {
|
|
49785
|
+
return [requestRes, { status: "invalid" }];
|
|
49786
|
+
}
|
|
49787
|
+
const req = requestRes.value;
|
|
49788
|
+
const doResult = await client._do(req, {
|
|
49789
|
+
context,
|
|
49790
|
+
errorCodes: ["404", "422", "4XX", "5XX"],
|
|
49791
|
+
retryConfig: context.retryConfig,
|
|
49792
|
+
retryCodes: context.retryCodes
|
|
49793
|
+
});
|
|
49794
|
+
if (!doResult.ok) {
|
|
49795
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49796
|
+
}
|
|
49797
|
+
const response = doResult.value;
|
|
49798
|
+
const responseFields = {
|
|
49799
|
+
HttpMeta: { Response: response, Request: req }
|
|
49800
|
+
};
|
|
49801
|
+
const [result] = await match(json(201, CaptureResponse$inboundSchema, {
|
|
49802
|
+
ctype: "application/hal+json"
|
|
49803
|
+
}), jsonErr([404, 422], ErrorResponse$inboundSchema, {
|
|
49804
|
+
ctype: "application/hal+json"
|
|
49805
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49806
|
+
if (!result.ok) {
|
|
49807
|
+
return [result, { status: "complete", request: req, response }];
|
|
49808
|
+
}
|
|
49809
|
+
return [result, { status: "complete", request: req, response }];
|
|
49810
|
+
}
|
|
49811
|
+
var init_capturesCreate = __esm(() => {
|
|
49812
|
+
init_encodings();
|
|
49813
|
+
init_matchers();
|
|
49814
|
+
init_primitives();
|
|
49815
|
+
init_schemas();
|
|
49816
|
+
init_security();
|
|
49817
|
+
init_url();
|
|
49818
|
+
init_errors2();
|
|
49819
|
+
init_models();
|
|
49820
|
+
init_operations();
|
|
49821
|
+
init_async();
|
|
49822
|
+
});
|
|
49823
|
+
|
|
49824
|
+
// src/mcp-server/tools/capturesCreate.ts
|
|
49825
|
+
var args10, tool$capturesCreate;
|
|
49826
|
+
var init_capturesCreate2 = __esm(() => {
|
|
49827
|
+
init_capturesCreate();
|
|
49828
|
+
init_operations();
|
|
49829
|
+
init_tools();
|
|
49830
|
+
args10 = {
|
|
49042
49831
|
request: CreateCaptureRequest$inboundSchema
|
|
49043
49832
|
};
|
|
49044
49833
|
tool$capturesCreate = {
|
|
@@ -49053,9 +49842,9 @@ and capture the amount at a later point.
|
|
|
49053
49842
|
By default, Mollie captures payments automatically. If however you
|
|
49054
49843
|
configured your payment with \`captureMode: manual\`, you can capture the payment using this endpoint after
|
|
49055
49844
|
having collected the customer's authorization.`,
|
|
49056
|
-
args:
|
|
49057
|
-
tool: async (client,
|
|
49058
|
-
const [result, apiCall] = await capturesCreate(client,
|
|
49845
|
+
args: args10,
|
|
49846
|
+
tool: async (client, args11, ctx) => {
|
|
49847
|
+
const [result, apiCall] = await capturesCreate(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49059
49848
|
if (!result.ok) {
|
|
49060
49849
|
return {
|
|
49061
49850
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49070,9 +49859,9 @@ having collected the customer's authorization.`,
|
|
|
49070
49859
|
|
|
49071
49860
|
// src/funcs/capturesGet.ts
|
|
49072
49861
|
function capturesGet(client, request, options) {
|
|
49073
|
-
return new APIPromise($
|
|
49862
|
+
return new APIPromise($do11(client, request, options));
|
|
49074
49863
|
}
|
|
49075
|
-
async function $
|
|
49864
|
+
async function $do11(client, request, options) {
|
|
49076
49865
|
const parsed = safeParse(request, (value) => GetCaptureRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49077
49866
|
if (!parsed.ok) {
|
|
49078
49867
|
return [parsed, { status: "invalid" }];
|
|
@@ -49171,12 +49960,12 @@ var init_capturesGet = __esm(() => {
|
|
|
49171
49960
|
});
|
|
49172
49961
|
|
|
49173
49962
|
// src/mcp-server/tools/capturesGet.ts
|
|
49174
|
-
var
|
|
49963
|
+
var args11, tool$capturesGet;
|
|
49175
49964
|
var init_capturesGet2 = __esm(() => {
|
|
49176
49965
|
init_capturesGet();
|
|
49177
49966
|
init_operations();
|
|
49178
49967
|
init_tools();
|
|
49179
|
-
|
|
49968
|
+
args11 = {
|
|
49180
49969
|
request: GetCaptureRequest$inboundSchema
|
|
49181
49970
|
};
|
|
49182
49971
|
tool$capturesGet = {
|
|
@@ -49185,9 +49974,9 @@ var init_capturesGet2 = __esm(() => {
|
|
|
49185
49974
|
|
|
49186
49975
|
Retrieve a single payment capture by its ID and the ID of its parent
|
|
49187
49976
|
payment.`,
|
|
49188
|
-
args:
|
|
49189
|
-
tool: async (client,
|
|
49190
|
-
const [result, apiCall] = await capturesGet(client,
|
|
49977
|
+
args: args11,
|
|
49978
|
+
tool: async (client, args12, ctx) => {
|
|
49979
|
+
const [result, apiCall] = await capturesGet(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49191
49980
|
if (!result.ok) {
|
|
49192
49981
|
return {
|
|
49193
49982
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49202,9 +49991,9 @@ payment.`,
|
|
|
49202
49991
|
|
|
49203
49992
|
// src/funcs/capturesList.ts
|
|
49204
49993
|
function capturesList(client, request, options) {
|
|
49205
|
-
return new APIPromise($
|
|
49994
|
+
return new APIPromise($do12(client, request, options));
|
|
49206
49995
|
}
|
|
49207
|
-
async function $
|
|
49996
|
+
async function $do12(client, request, options) {
|
|
49208
49997
|
const parsed = safeParse(request, (value) => ListCapturesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49209
49998
|
if (!parsed.ok) {
|
|
49210
49999
|
return [parsed, { status: "invalid" }];
|
|
@@ -49300,12 +50089,12 @@ var init_capturesList = __esm(() => {
|
|
|
49300
50089
|
});
|
|
49301
50090
|
|
|
49302
50091
|
// src/mcp-server/tools/capturesList.ts
|
|
49303
|
-
var
|
|
50092
|
+
var args12, tool$capturesList;
|
|
49304
50093
|
var init_capturesList2 = __esm(() => {
|
|
49305
50094
|
init_capturesList();
|
|
49306
50095
|
init_operations();
|
|
49307
50096
|
init_tools();
|
|
49308
|
-
|
|
50097
|
+
args12 = {
|
|
49309
50098
|
request: ListCapturesRequest$inboundSchema
|
|
49310
50099
|
};
|
|
49311
50100
|
tool$capturesList = {
|
|
@@ -49315,9 +50104,9 @@ var init_capturesList2 = __esm(() => {
|
|
|
49315
50104
|
Retrieve a list of all captures created for a specific payment.
|
|
49316
50105
|
|
|
49317
50106
|
The results are paginated.`,
|
|
49318
|
-
args:
|
|
49319
|
-
tool: async (client,
|
|
49320
|
-
const [result, apiCall] = await capturesList(client,
|
|
50107
|
+
args: args12,
|
|
50108
|
+
tool: async (client, args13, ctx) => {
|
|
50109
|
+
const [result, apiCall] = await capturesList(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49321
50110
|
if (!result.ok) {
|
|
49322
50111
|
return {
|
|
49323
50112
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49332,9 +50121,9 @@ The results are paginated.`,
|
|
|
49332
50121
|
|
|
49333
50122
|
// src/funcs/chargebacksAll.ts
|
|
49334
50123
|
function chargebacksAll(client, request, options) {
|
|
49335
|
-
return new APIPromise($
|
|
50124
|
+
return new APIPromise($do13(client, request, options));
|
|
49336
50125
|
}
|
|
49337
|
-
async function $
|
|
50126
|
+
async function $do13(client, request, options) {
|
|
49338
50127
|
const parsed = safeParse(request, (value) => ListAllChargebacksRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
49339
50128
|
if (!parsed.ok) {
|
|
49340
50129
|
return [parsed, { status: "invalid" }];
|
|
@@ -49426,12 +50215,12 @@ var init_chargebacksAll = __esm(() => {
|
|
|
49426
50215
|
});
|
|
49427
50216
|
|
|
49428
50217
|
// src/mcp-server/tools/chargebacksAll.ts
|
|
49429
|
-
var
|
|
50218
|
+
var args13, tool$chargebacksAll;
|
|
49430
50219
|
var init_chargebacksAll2 = __esm(() => {
|
|
49431
50220
|
init_chargebacksAll();
|
|
49432
50221
|
init_operations();
|
|
49433
50222
|
init_tools();
|
|
49434
|
-
|
|
50223
|
+
args13 = {
|
|
49435
50224
|
request: ListAllChargebacksRequest$inboundSchema.optional()
|
|
49436
50225
|
};
|
|
49437
50226
|
tool$chargebacksAll = {
|
|
@@ -49441,9 +50230,9 @@ var init_chargebacksAll2 = __esm(() => {
|
|
|
49441
50230
|
Retrieve all chargebacks initiated for all your payments.
|
|
49442
50231
|
|
|
49443
50232
|
The results are paginated.`,
|
|
49444
|
-
args:
|
|
49445
|
-
tool: async (client,
|
|
49446
|
-
const [result, apiCall] = await chargebacksAll(client,
|
|
50233
|
+
args: args13,
|
|
50234
|
+
tool: async (client, args14, ctx) => {
|
|
50235
|
+
const [result, apiCall] = await chargebacksAll(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49447
50236
|
if (!result.ok) {
|
|
49448
50237
|
return {
|
|
49449
50238
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49458,9 +50247,9 @@ The results are paginated.`,
|
|
|
49458
50247
|
|
|
49459
50248
|
// src/funcs/chargebacksGet.ts
|
|
49460
50249
|
function chargebacksGet(client, request, options) {
|
|
49461
|
-
return new APIPromise($
|
|
50250
|
+
return new APIPromise($do14(client, request, options));
|
|
49462
50251
|
}
|
|
49463
|
-
async function $
|
|
50252
|
+
async function $do14(client, request, options) {
|
|
49464
50253
|
const parsed = safeParse(request, (value) => GetChargebackRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49465
50254
|
if (!parsed.ok) {
|
|
49466
50255
|
return [parsed, { status: "invalid" }];
|
|
@@ -49559,12 +50348,12 @@ var init_chargebacksGet = __esm(() => {
|
|
|
49559
50348
|
});
|
|
49560
50349
|
|
|
49561
50350
|
// src/mcp-server/tools/chargebacksGet.ts
|
|
49562
|
-
var
|
|
50351
|
+
var args14, tool$chargebacksGet;
|
|
49563
50352
|
var init_chargebacksGet2 = __esm(() => {
|
|
49564
50353
|
init_chargebacksGet();
|
|
49565
50354
|
init_operations();
|
|
49566
50355
|
init_tools();
|
|
49567
|
-
|
|
50356
|
+
args14 = {
|
|
49568
50357
|
request: GetChargebackRequest$inboundSchema
|
|
49569
50358
|
};
|
|
49570
50359
|
tool$chargebacksGet = {
|
|
@@ -49572,9 +50361,9 @@ var init_chargebacksGet2 = __esm(() => {
|
|
|
49572
50361
|
description: `Get payment chargeback
|
|
49573
50362
|
|
|
49574
50363
|
Retrieve a single payment chargeback by its ID and the ID of its parent payment.`,
|
|
49575
|
-
args:
|
|
49576
|
-
tool: async (client,
|
|
49577
|
-
const [result, apiCall] = await chargebacksGet(client,
|
|
50364
|
+
args: args14,
|
|
50365
|
+
tool: async (client, args15, ctx) => {
|
|
50366
|
+
const [result, apiCall] = await chargebacksGet(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49578
50367
|
if (!result.ok) {
|
|
49579
50368
|
return {
|
|
49580
50369
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49589,9 +50378,9 @@ Retrieve a single payment chargeback by its ID and the ID of its parent payment.
|
|
|
49589
50378
|
|
|
49590
50379
|
// src/funcs/chargebacksList.ts
|
|
49591
50380
|
function chargebacksList(client, request, options) {
|
|
49592
|
-
return new APIPromise($
|
|
50381
|
+
return new APIPromise($do15(client, request, options));
|
|
49593
50382
|
}
|
|
49594
|
-
async function $
|
|
50383
|
+
async function $do15(client, request, options) {
|
|
49595
50384
|
const parsed = safeParse(request, (value) => ListChargebacksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49596
50385
|
if (!parsed.ok) {
|
|
49597
50386
|
return [parsed, { status: "invalid" }];
|
|
@@ -49687,12 +50476,12 @@ var init_chargebacksList = __esm(() => {
|
|
|
49687
50476
|
});
|
|
49688
50477
|
|
|
49689
50478
|
// src/mcp-server/tools/chargebacksList.ts
|
|
49690
|
-
var
|
|
50479
|
+
var args15, tool$chargebacksList;
|
|
49691
50480
|
var init_chargebacksList2 = __esm(() => {
|
|
49692
50481
|
init_chargebacksList();
|
|
49693
50482
|
init_operations();
|
|
49694
50483
|
init_tools();
|
|
49695
|
-
|
|
50484
|
+
args15 = {
|
|
49696
50485
|
request: ListChargebacksRequest$inboundSchema
|
|
49697
50486
|
};
|
|
49698
50487
|
tool$chargebacksList = {
|
|
@@ -49702,9 +50491,9 @@ var init_chargebacksList2 = __esm(() => {
|
|
|
49702
50491
|
Retrieve the chargebacks initiated for a specific payment.
|
|
49703
50492
|
|
|
49704
50493
|
The results are paginated.`,
|
|
49705
|
-
args:
|
|
49706
|
-
tool: async (client,
|
|
49707
|
-
const [result, apiCall] = await chargebacksList(client,
|
|
50494
|
+
args: args15,
|
|
50495
|
+
tool: async (client, args16, ctx) => {
|
|
50496
|
+
const [result, apiCall] = await chargebacksList(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49708
50497
|
if (!result.ok) {
|
|
49709
50498
|
return {
|
|
49710
50499
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49719,9 +50508,9 @@ The results are paginated.`,
|
|
|
49719
50508
|
|
|
49720
50509
|
// src/funcs/clientLinksCreate.ts
|
|
49721
50510
|
function clientLinksCreate(client, request, options) {
|
|
49722
|
-
return new APIPromise($
|
|
50511
|
+
return new APIPromise($do16(client, request, options));
|
|
49723
50512
|
}
|
|
49724
|
-
async function $
|
|
50513
|
+
async function $do16(client, request, options) {
|
|
49725
50514
|
const parsed = safeParse(request, (value) => CreateClientLinkRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
49726
50515
|
if (!parsed.ok) {
|
|
49727
50516
|
return [parsed, { status: "invalid" }];
|
|
@@ -49808,12 +50597,12 @@ var init_clientLinksCreate = __esm(() => {
|
|
|
49808
50597
|
});
|
|
49809
50598
|
|
|
49810
50599
|
// src/mcp-server/tools/clientLinksCreate.ts
|
|
49811
|
-
var
|
|
50600
|
+
var args16, tool$clientLinksCreate;
|
|
49812
50601
|
var init_clientLinksCreate2 = __esm(() => {
|
|
49813
50602
|
init_clientLinksCreate();
|
|
49814
50603
|
init_operations();
|
|
49815
50604
|
init_tools();
|
|
49816
|
-
|
|
50605
|
+
args16 = {
|
|
49817
50606
|
request: CreateClientLinkRequest$inboundSchema.optional()
|
|
49818
50607
|
};
|
|
49819
50608
|
tool$clientLinksCreate = {
|
|
@@ -49873,9 +50662,9 @@ to the URL.
|
|
|
49873
50662
|
> \uD83D\uDEA7
|
|
49874
50663
|
>
|
|
49875
50664
|
> A client link must be used within 30 days of creation. After that period, it will expire and you will need to create a new client link.`,
|
|
49876
|
-
args:
|
|
49877
|
-
tool: async (client,
|
|
49878
|
-
const [result, apiCall] = await clientLinksCreate(client,
|
|
50665
|
+
args: args16,
|
|
50666
|
+
tool: async (client, args17, ctx) => {
|
|
50667
|
+
const [result, apiCall] = await clientLinksCreate(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49879
50668
|
if (!result.ok) {
|
|
49880
50669
|
return {
|
|
49881
50670
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49890,9 +50679,9 @@ to the URL.
|
|
|
49890
50679
|
|
|
49891
50680
|
// src/funcs/clientsGet.ts
|
|
49892
50681
|
function clientsGet(client, request, options) {
|
|
49893
|
-
return new APIPromise($
|
|
50682
|
+
return new APIPromise($do17(client, request, options));
|
|
49894
50683
|
}
|
|
49895
|
-
async function $
|
|
50684
|
+
async function $do17(client, request, options) {
|
|
49896
50685
|
const parsed = safeParse(request, (value) => GetClientRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49897
50686
|
if (!parsed.ok) {
|
|
49898
50687
|
return [parsed, { status: "invalid" }];
|
|
@@ -49985,12 +50774,12 @@ var init_clientsGet = __esm(() => {
|
|
|
49985
50774
|
});
|
|
49986
50775
|
|
|
49987
50776
|
// src/mcp-server/tools/clientsGet.ts
|
|
49988
|
-
var
|
|
50777
|
+
var args17, tool$clientsGet;
|
|
49989
50778
|
var init_clientsGet2 = __esm(() => {
|
|
49990
50779
|
init_clientsGet();
|
|
49991
50780
|
init_operations();
|
|
49992
50781
|
init_tools();
|
|
49993
|
-
|
|
50782
|
+
args17 = {
|
|
49994
50783
|
request: GetClientRequest$inboundSchema
|
|
49995
50784
|
};
|
|
49996
50785
|
tool$clientsGet = {
|
|
@@ -49998,9 +50787,9 @@ var init_clientsGet2 = __esm(() => {
|
|
|
49998
50787
|
description: `Get client
|
|
49999
50788
|
|
|
50000
50789
|
Retrieve a single client by its ID.`,
|
|
50001
|
-
args:
|
|
50002
|
-
tool: async (client,
|
|
50003
|
-
const [result, apiCall] = await clientsGet(client,
|
|
50790
|
+
args: args17,
|
|
50791
|
+
tool: async (client, args18, ctx) => {
|
|
50792
|
+
const [result, apiCall] = await clientsGet(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50004
50793
|
if (!result.ok) {
|
|
50005
50794
|
return {
|
|
50006
50795
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50015,9 +50804,9 @@ Retrieve a single client by its ID.`,
|
|
|
50015
50804
|
|
|
50016
50805
|
// src/funcs/clientsList.ts
|
|
50017
50806
|
function clientsList(client, request, options) {
|
|
50018
|
-
return new APIPromise($
|
|
50807
|
+
return new APIPromise($do18(client, request, options));
|
|
50019
50808
|
}
|
|
50020
|
-
async function $
|
|
50809
|
+
async function $do18(client, request, options) {
|
|
50021
50810
|
const parsed = safeParse(request, (value) => ListClientsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
50022
50811
|
if (!parsed.ok) {
|
|
50023
50812
|
return [parsed, { status: "invalid" }];
|
|
@@ -50106,12 +50895,12 @@ var init_clientsList = __esm(() => {
|
|
|
50106
50895
|
});
|
|
50107
50896
|
|
|
50108
50897
|
// src/mcp-server/tools/clientsList.ts
|
|
50109
|
-
var
|
|
50898
|
+
var args18, tool$clientsList;
|
|
50110
50899
|
var init_clientsList2 = __esm(() => {
|
|
50111
50900
|
init_clientsList();
|
|
50112
50901
|
init_operations();
|
|
50113
50902
|
init_tools();
|
|
50114
|
-
|
|
50903
|
+
args18 = {
|
|
50115
50904
|
request: ListClientsRequest$inboundSchema.optional()
|
|
50116
50905
|
};
|
|
50117
50906
|
tool$clientsList = {
|
|
@@ -50120,10 +50909,10 @@ var init_clientsList2 = __esm(() => {
|
|
|
50120
50909
|
|
|
50121
50910
|
Retrieve a list of all clients linked to your account.
|
|
50122
50911
|
|
|
50123
|
-
The results are paginated.`,
|
|
50124
|
-
args:
|
|
50125
|
-
tool: async (client,
|
|
50126
|
-
const [result, apiCall] = await clientsList(client,
|
|
50912
|
+
The results are paginated.`,
|
|
50913
|
+
args: args18,
|
|
50914
|
+
tool: async (client, args19, ctx) => {
|
|
50915
|
+
const [result, apiCall] = await clientsList(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50127
50916
|
if (!result.ok) {
|
|
50128
50917
|
return {
|
|
50129
50918
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50138,9 +50927,9 @@ The results are paginated.`,
|
|
|
50138
50927
|
|
|
50139
50928
|
// src/funcs/customersCreate.ts
|
|
50140
50929
|
function customersCreate(client, request, options) {
|
|
50141
|
-
return new APIPromise($
|
|
50930
|
+
return new APIPromise($do19(client, request, options));
|
|
50142
50931
|
}
|
|
50143
|
-
async function $
|
|
50932
|
+
async function $do19(client, request, options) {
|
|
50144
50933
|
const parsed = safeParse(request, (value) => CreateCustomerRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
50145
50934
|
if (!parsed.ok) {
|
|
50146
50935
|
return [parsed, { status: "invalid" }];
|
|
@@ -50227,12 +51016,12 @@ var init_customersCreate = __esm(() => {
|
|
|
50227
51016
|
});
|
|
50228
51017
|
|
|
50229
51018
|
// src/mcp-server/tools/customersCreate.ts
|
|
50230
|
-
var
|
|
51019
|
+
var args19, tool$customersCreate;
|
|
50231
51020
|
var init_customersCreate2 = __esm(() => {
|
|
50232
51021
|
init_customersCreate();
|
|
50233
51022
|
init_operations();
|
|
50234
51023
|
init_tools();
|
|
50235
|
-
|
|
51024
|
+
args19 = {
|
|
50236
51025
|
request: CreateCustomerRequest$inboundSchema.optional()
|
|
50237
51026
|
};
|
|
50238
51027
|
tool$customersCreate = {
|
|
@@ -50243,9 +51032,9 @@ Creates a simple minimal representation of a customer. Payments, recurring manda
|
|
|
50243
51032
|
to this customer object, which simplifies management of recurring payments.
|
|
50244
51033
|
|
|
50245
51034
|
Once registered, customers will also appear in your Mollie dashboard.`,
|
|
50246
|
-
args:
|
|
50247
|
-
tool: async (client,
|
|
50248
|
-
const [result, apiCall] = await customersCreate(client,
|
|
51035
|
+
args: args19,
|
|
51036
|
+
tool: async (client, args20, ctx) => {
|
|
51037
|
+
const [result, apiCall] = await customersCreate(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50249
51038
|
if (!result.ok) {
|
|
50250
51039
|
return {
|
|
50251
51040
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50260,9 +51049,9 @@ Once registered, customers will also appear in your Mollie dashboard.`,
|
|
|
50260
51049
|
|
|
50261
51050
|
// src/funcs/customersCreatePayment.ts
|
|
50262
51051
|
function customersCreatePayment(client, request, options) {
|
|
50263
|
-
return new APIPromise($
|
|
51052
|
+
return new APIPromise($do20(client, request, options));
|
|
50264
51053
|
}
|
|
50265
|
-
async function $
|
|
51054
|
+
async function $do20(client, request, options) {
|
|
50266
51055
|
const parsed = safeParse(request, (value) => CreateCustomerPaymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50267
51056
|
if (!parsed.ok) {
|
|
50268
51057
|
return [parsed, { status: "invalid" }];
|
|
@@ -50357,12 +51146,12 @@ var init_customersCreatePayment = __esm(() => {
|
|
|
50357
51146
|
});
|
|
50358
51147
|
|
|
50359
51148
|
// src/mcp-server/tools/customersCreatePayment.ts
|
|
50360
|
-
var
|
|
51149
|
+
var args20, tool$customersCreatePayment;
|
|
50361
51150
|
var init_customersCreatePayment2 = __esm(() => {
|
|
50362
51151
|
init_customersCreatePayment();
|
|
50363
51152
|
init_operations();
|
|
50364
51153
|
init_tools();
|
|
50365
|
-
|
|
51154
|
+
args20 = {
|
|
50366
51155
|
request: CreateCustomerPaymentRequest$inboundSchema
|
|
50367
51156
|
};
|
|
50368
51157
|
tool$customersCreatePayment = {
|
|
@@ -50380,9 +51169,9 @@ Linking customers to payments enables you to:
|
|
|
50380
51169
|
|
|
50381
51170
|
This endpoint is effectively an alias of the [Create payment endpoint](create-payment) with the \`customerId\`
|
|
50382
51171
|
parameter predefined.`,
|
|
50383
|
-
args:
|
|
50384
|
-
tool: async (client,
|
|
50385
|
-
const [result, apiCall] = await customersCreatePayment(client,
|
|
51172
|
+
args: args20,
|
|
51173
|
+
tool: async (client, args21, ctx) => {
|
|
51174
|
+
const [result, apiCall] = await customersCreatePayment(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50386
51175
|
if (!result.ok) {
|
|
50387
51176
|
return {
|
|
50388
51177
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50397,9 +51186,9 @@ parameter predefined.`,
|
|
|
50397
51186
|
|
|
50398
51187
|
// src/funcs/customersDelete.ts
|
|
50399
51188
|
function customersDelete(client, request, options) {
|
|
50400
|
-
return new APIPromise($
|
|
51189
|
+
return new APIPromise($do21(client, request, options));
|
|
50401
51190
|
}
|
|
50402
|
-
async function $
|
|
51191
|
+
async function $do21(client, request, options) {
|
|
50403
51192
|
const parsed = safeParse(request, (value) => DeleteCustomerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50404
51193
|
if (!parsed.ok) {
|
|
50405
51194
|
return [parsed, { status: "invalid" }];
|
|
@@ -50488,12 +51277,12 @@ var init_customersDelete = __esm(() => {
|
|
|
50488
51277
|
});
|
|
50489
51278
|
|
|
50490
51279
|
// src/mcp-server/tools/customersDelete.ts
|
|
50491
|
-
var
|
|
51280
|
+
var args21, tool$customersDelete;
|
|
50492
51281
|
var init_customersDelete2 = __esm(() => {
|
|
50493
51282
|
init_customersDelete();
|
|
50494
51283
|
init_operations();
|
|
50495
51284
|
init_tools();
|
|
50496
|
-
|
|
51285
|
+
args21 = {
|
|
50497
51286
|
request: DeleteCustomerRequest$inboundSchema
|
|
50498
51287
|
};
|
|
50499
51288
|
tool$customersDelete = {
|
|
@@ -50501,9 +51290,9 @@ var init_customersDelete2 = __esm(() => {
|
|
|
50501
51290
|
description: `Delete customer
|
|
50502
51291
|
|
|
50503
51292
|
Delete a customer. All mandates and subscriptions created for this customer will be canceled as well.`,
|
|
50504
|
-
args:
|
|
50505
|
-
tool: async (client,
|
|
50506
|
-
const [result, apiCall] = await customersDelete(client,
|
|
51293
|
+
args: args21,
|
|
51294
|
+
tool: async (client, args22, ctx) => {
|
|
51295
|
+
const [result, apiCall] = await customersDelete(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50507
51296
|
if (!result.ok) {
|
|
50508
51297
|
return {
|
|
50509
51298
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50518,9 +51307,9 @@ Delete a customer. All mandates and subscriptions created for this customer will
|
|
|
50518
51307
|
|
|
50519
51308
|
// src/funcs/customersGet.ts
|
|
50520
51309
|
function customersGet(client, request, options) {
|
|
50521
|
-
return new APIPromise($
|
|
51310
|
+
return new APIPromise($do22(client, request, options));
|
|
50522
51311
|
}
|
|
50523
|
-
async function $
|
|
51312
|
+
async function $do22(client, request, options) {
|
|
50524
51313
|
const parsed = safeParse(request, (value) => GetCustomerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50525
51314
|
if (!parsed.ok) {
|
|
50526
51315
|
return [parsed, { status: "invalid" }];
|
|
@@ -50614,12 +51403,12 @@ var init_customersGet = __esm(() => {
|
|
|
50614
51403
|
});
|
|
50615
51404
|
|
|
50616
51405
|
// src/mcp-server/tools/customersGet.ts
|
|
50617
|
-
var
|
|
51406
|
+
var args22, tool$customersGet;
|
|
50618
51407
|
var init_customersGet2 = __esm(() => {
|
|
50619
51408
|
init_customersGet();
|
|
50620
51409
|
init_operations();
|
|
50621
51410
|
init_tools();
|
|
50622
|
-
|
|
51411
|
+
args22 = {
|
|
50623
51412
|
request: GetCustomerRequest$inboundSchema
|
|
50624
51413
|
};
|
|
50625
51414
|
tool$customersGet = {
|
|
@@ -50627,9 +51416,9 @@ var init_customersGet2 = __esm(() => {
|
|
|
50627
51416
|
description: `Get customer
|
|
50628
51417
|
|
|
50629
51418
|
Retrieve a single customer by its ID.`,
|
|
50630
|
-
args:
|
|
50631
|
-
tool: async (client,
|
|
50632
|
-
const [result, apiCall] = await customersGet(client,
|
|
51419
|
+
args: args22,
|
|
51420
|
+
tool: async (client, args23, ctx) => {
|
|
51421
|
+
const [result, apiCall] = await customersGet(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50633
51422
|
if (!result.ok) {
|
|
50634
51423
|
return {
|
|
50635
51424
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50644,9 +51433,9 @@ Retrieve a single customer by its ID.`,
|
|
|
50644
51433
|
|
|
50645
51434
|
// src/funcs/customersList.ts
|
|
50646
51435
|
function customersList(client, request, options) {
|
|
50647
|
-
return new APIPromise($
|
|
51436
|
+
return new APIPromise($do23(client, request, options));
|
|
50648
51437
|
}
|
|
50649
|
-
async function $
|
|
51438
|
+
async function $do23(client, request, options) {
|
|
50650
51439
|
const parsed = safeParse(request, (value) => ListCustomersRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
50651
51440
|
if (!parsed.ok) {
|
|
50652
51441
|
return [parsed, { status: "invalid" }];
|
|
@@ -50736,12 +51525,12 @@ var init_customersList = __esm(() => {
|
|
|
50736
51525
|
});
|
|
50737
51526
|
|
|
50738
51527
|
// src/mcp-server/tools/customersList.ts
|
|
50739
|
-
var
|
|
51528
|
+
var args23, tool$customersList;
|
|
50740
51529
|
var init_customersList2 = __esm(() => {
|
|
50741
51530
|
init_customersList();
|
|
50742
51531
|
init_operations();
|
|
50743
51532
|
init_tools();
|
|
50744
|
-
|
|
51533
|
+
args23 = {
|
|
50745
51534
|
request: ListCustomersRequest$inboundSchema.optional()
|
|
50746
51535
|
};
|
|
50747
51536
|
tool$customersList = {
|
|
@@ -50751,9 +51540,9 @@ var init_customersList2 = __esm(() => {
|
|
|
50751
51540
|
Retrieve a list of all customers.
|
|
50752
51541
|
|
|
50753
51542
|
The results are paginated.`,
|
|
50754
|
-
args:
|
|
50755
|
-
tool: async (client,
|
|
50756
|
-
const [result, apiCall] = await customersList(client,
|
|
51543
|
+
args: args23,
|
|
51544
|
+
tool: async (client, args24, ctx) => {
|
|
51545
|
+
const [result, apiCall] = await customersList(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50757
51546
|
if (!result.ok) {
|
|
50758
51547
|
return {
|
|
50759
51548
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50768,9 +51557,9 @@ The results are paginated.`,
|
|
|
50768
51557
|
|
|
50769
51558
|
// src/funcs/customersListPayments.ts
|
|
50770
51559
|
function customersListPayments(client, request, options) {
|
|
50771
|
-
return new APIPromise($
|
|
51560
|
+
return new APIPromise($do24(client, request, options));
|
|
50772
51561
|
}
|
|
50773
|
-
async function $
|
|
51562
|
+
async function $do24(client, request, options) {
|
|
50774
51563
|
const parsed = safeParse(request, (value) => ListCustomerPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50775
51564
|
if (!parsed.ok) {
|
|
50776
51565
|
return [parsed, { status: "invalid" }];
|
|
@@ -50867,12 +51656,12 @@ var init_customersListPayments = __esm(() => {
|
|
|
50867
51656
|
});
|
|
50868
51657
|
|
|
50869
51658
|
// src/mcp-server/tools/customersListPayments.ts
|
|
50870
|
-
var
|
|
51659
|
+
var args24, tool$customersListPayments;
|
|
50871
51660
|
var init_customersListPayments2 = __esm(() => {
|
|
50872
51661
|
init_customersListPayments();
|
|
50873
51662
|
init_operations();
|
|
50874
51663
|
init_tools();
|
|
50875
|
-
|
|
51664
|
+
args24 = {
|
|
50876
51665
|
request: ListCustomerPaymentsRequest$inboundSchema
|
|
50877
51666
|
};
|
|
50878
51667
|
tool$customersListPayments = {
|
|
@@ -50880,9 +51669,9 @@ var init_customersListPayments2 = __esm(() => {
|
|
|
50880
51669
|
description: `List customer payments
|
|
50881
51670
|
|
|
50882
51671
|
Retrieve all payments linked to the customer.`,
|
|
50883
|
-
args:
|
|
50884
|
-
tool: async (client,
|
|
50885
|
-
const [result, apiCall] = await customersListPayments(client,
|
|
51672
|
+
args: args24,
|
|
51673
|
+
tool: async (client, args25, ctx) => {
|
|
51674
|
+
const [result, apiCall] = await customersListPayments(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50886
51675
|
if (!result.ok) {
|
|
50887
51676
|
return {
|
|
50888
51677
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50897,9 +51686,9 @@ Retrieve all payments linked to the customer.`,
|
|
|
50897
51686
|
|
|
50898
51687
|
// src/funcs/customersUpdate.ts
|
|
50899
51688
|
function customersUpdate(client, request, options) {
|
|
50900
|
-
return new APIPromise($
|
|
51689
|
+
return new APIPromise($do25(client, request, options));
|
|
50901
51690
|
}
|
|
50902
|
-
async function $
|
|
51691
|
+
async function $do25(client, request, options) {
|
|
50903
51692
|
const parsed = safeParse(request, (value) => UpdateCustomerRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50904
51693
|
if (!parsed.ok) {
|
|
50905
51694
|
return [parsed, { status: "invalid" }];
|
|
@@ -50992,12 +51781,12 @@ var init_customersUpdate = __esm(() => {
|
|
|
50992
51781
|
});
|
|
50993
51782
|
|
|
50994
51783
|
// src/mcp-server/tools/customersUpdate.ts
|
|
50995
|
-
var
|
|
51784
|
+
var args25, tool$customersUpdate;
|
|
50996
51785
|
var init_customersUpdate2 = __esm(() => {
|
|
50997
51786
|
init_customersUpdate();
|
|
50998
51787
|
init_operations();
|
|
50999
51788
|
init_tools();
|
|
51000
|
-
|
|
51789
|
+
args25 = {
|
|
51001
51790
|
request: UpdateCustomerRequest$inboundSchema
|
|
51002
51791
|
};
|
|
51003
51792
|
tool$customersUpdate = {
|
|
@@ -51007,9 +51796,9 @@ var init_customersUpdate2 = __esm(() => {
|
|
|
51007
51796
|
Update an existing customer.
|
|
51008
51797
|
|
|
51009
51798
|
For an in-depth explanation of each parameter, refer to the [Create customer](create-customer) endpoint.`,
|
|
51010
|
-
args:
|
|
51011
|
-
tool: async (client,
|
|
51012
|
-
const [result, apiCall] = await customersUpdate(client,
|
|
51799
|
+
args: args25,
|
|
51800
|
+
tool: async (client, args26, ctx) => {
|
|
51801
|
+
const [result, apiCall] = await customersUpdate(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51013
51802
|
if (!result.ok) {
|
|
51014
51803
|
return {
|
|
51015
51804
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51024,9 +51813,9 @@ For an in-depth explanation of each parameter, refer to the [Create customer](cr
|
|
|
51024
51813
|
|
|
51025
51814
|
// src/funcs/delayedRoutingCreate.ts
|
|
51026
51815
|
function delayedRoutingCreate(client, request, options) {
|
|
51027
|
-
return new APIPromise($
|
|
51816
|
+
return new APIPromise($do26(client, request, options));
|
|
51028
51817
|
}
|
|
51029
|
-
async function $
|
|
51818
|
+
async function $do26(client, request, options) {
|
|
51030
51819
|
const parsed = safeParse(request, (value) => PaymentCreateRouteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51031
51820
|
if (!parsed.ok) {
|
|
51032
51821
|
return [parsed, { status: "invalid" }];
|
|
@@ -51119,12 +51908,12 @@ var init_delayedRoutingCreate = __esm(() => {
|
|
|
51119
51908
|
});
|
|
51120
51909
|
|
|
51121
51910
|
// src/mcp-server/tools/delayedRoutingCreate.ts
|
|
51122
|
-
var
|
|
51911
|
+
var args26, tool$delayedRoutingCreate;
|
|
51123
51912
|
var init_delayedRoutingCreate2 = __esm(() => {
|
|
51124
51913
|
init_delayedRoutingCreate();
|
|
51125
51914
|
init_operations();
|
|
51126
51915
|
init_tools();
|
|
51127
|
-
|
|
51916
|
+
args26 = {
|
|
51128
51917
|
request: PaymentCreateRouteRequest$inboundSchema
|
|
51129
51918
|
};
|
|
51130
51919
|
tool$delayedRoutingCreate = {
|
|
@@ -51133,9 +51922,9 @@ var init_delayedRoutingCreate2 = __esm(() => {
|
|
|
51133
51922
|
|
|
51134
51923
|
Create a route for a specific payment.
|
|
51135
51924
|
The routed amount is credited to the account of your customer.`,
|
|
51136
|
-
args:
|
|
51137
|
-
tool: async (client,
|
|
51138
|
-
const [result, apiCall] = await delayedRoutingCreate(client,
|
|
51925
|
+
args: args26,
|
|
51926
|
+
tool: async (client, args27, ctx) => {
|
|
51927
|
+
const [result, apiCall] = await delayedRoutingCreate(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51139
51928
|
if (!result.ok) {
|
|
51140
51929
|
return {
|
|
51141
51930
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51150,9 +51939,9 @@ The routed amount is credited to the account of your customer.`,
|
|
|
51150
51939
|
|
|
51151
51940
|
// src/funcs/delayedRoutingList.ts
|
|
51152
51941
|
function delayedRoutingList(client, request, options) {
|
|
51153
|
-
return new APIPromise($
|
|
51942
|
+
return new APIPromise($do27(client, request, options));
|
|
51154
51943
|
}
|
|
51155
|
-
async function $
|
|
51944
|
+
async function $do27(client, request, options) {
|
|
51156
51945
|
const parsed = safeParse(request, (value) => PaymentListRoutesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51157
51946
|
if (!parsed.ok) {
|
|
51158
51947
|
return [parsed, { status: "invalid" }];
|
|
@@ -51245,12 +52034,12 @@ var init_delayedRoutingList = __esm(() => {
|
|
|
51245
52034
|
});
|
|
51246
52035
|
|
|
51247
52036
|
// src/mcp-server/tools/delayedRoutingList.ts
|
|
51248
|
-
var
|
|
52037
|
+
var args27, tool$delayedRoutingList;
|
|
51249
52038
|
var init_delayedRoutingList2 = __esm(() => {
|
|
51250
52039
|
init_delayedRoutingList();
|
|
51251
52040
|
init_operations();
|
|
51252
52041
|
init_tools();
|
|
51253
|
-
|
|
52042
|
+
args27 = {
|
|
51254
52043
|
request: PaymentListRoutesRequest$inboundSchema
|
|
51255
52044
|
};
|
|
51256
52045
|
tool$delayedRoutingList = {
|
|
@@ -51258,9 +52047,9 @@ var init_delayedRoutingList2 = __esm(() => {
|
|
|
51258
52047
|
description: `List payment routes
|
|
51259
52048
|
|
|
51260
52049
|
Retrieve a list of all routes created for a specific payment.`,
|
|
51261
|
-
args:
|
|
51262
|
-
tool: async (client,
|
|
51263
|
-
const [result, apiCall] = await delayedRoutingList(client,
|
|
52050
|
+
args: args27,
|
|
52051
|
+
tool: async (client, args28, ctx) => {
|
|
52052
|
+
const [result, apiCall] = await delayedRoutingList(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51264
52053
|
if (!result.ok) {
|
|
51265
52054
|
return {
|
|
51266
52055
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51275,9 +52064,9 @@ Retrieve a list of all routes created for a specific payment.`,
|
|
|
51275
52064
|
|
|
51276
52065
|
// src/funcs/invoicesGet.ts
|
|
51277
52066
|
function invoicesGet(client, request, options) {
|
|
51278
|
-
return new APIPromise($
|
|
52067
|
+
return new APIPromise($do28(client, request, options));
|
|
51279
52068
|
}
|
|
51280
|
-
async function $
|
|
52069
|
+
async function $do28(client, request, options) {
|
|
51281
52070
|
const parsed = safeParse(request, (value) => GetInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51282
52071
|
if (!parsed.ok) {
|
|
51283
52072
|
return [parsed, { status: "invalid" }];
|
|
@@ -51367,12 +52156,12 @@ var init_invoicesGet = __esm(() => {
|
|
|
51367
52156
|
});
|
|
51368
52157
|
|
|
51369
52158
|
// src/mcp-server/tools/invoicesGet.ts
|
|
51370
|
-
var
|
|
52159
|
+
var args28, tool$invoicesGet;
|
|
51371
52160
|
var init_invoicesGet2 = __esm(() => {
|
|
51372
52161
|
init_invoicesGet();
|
|
51373
52162
|
init_operations();
|
|
51374
52163
|
init_tools();
|
|
51375
|
-
|
|
52164
|
+
args28 = {
|
|
51376
52165
|
request: GetInvoiceRequest$inboundSchema
|
|
51377
52166
|
};
|
|
51378
52167
|
tool$invoicesGet = {
|
|
@@ -51383,9 +52172,9 @@ Retrieve a single invoice by its ID.
|
|
|
51383
52172
|
|
|
51384
52173
|
If you want to retrieve the details of an invoice by its invoice number,
|
|
51385
52174
|
call the [List invoices](list-invoices) endpoint with the \`reference\` parameter.`,
|
|
51386
|
-
args:
|
|
51387
|
-
tool: async (client,
|
|
51388
|
-
const [result, apiCall] = await invoicesGet(client,
|
|
52175
|
+
args: args28,
|
|
52176
|
+
tool: async (client, args29, ctx) => {
|
|
52177
|
+
const [result, apiCall] = await invoicesGet(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51389
52178
|
if (!result.ok) {
|
|
51390
52179
|
return {
|
|
51391
52180
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51400,9 +52189,9 @@ call the [List invoices](list-invoices) endpoint with the \`reference\` paramete
|
|
|
51400
52189
|
|
|
51401
52190
|
// src/funcs/invoicesList.ts
|
|
51402
52191
|
function invoicesList(client, request, options) {
|
|
51403
|
-
return new APIPromise($
|
|
52192
|
+
return new APIPromise($do29(client, request, options));
|
|
51404
52193
|
}
|
|
51405
|
-
async function $
|
|
52194
|
+
async function $do29(client, request, options) {
|
|
51406
52195
|
const parsed = safeParse(request, (value) => ListInvoicesRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
51407
52196
|
if (!parsed.ok) {
|
|
51408
52197
|
return [parsed, { status: "invalid" }];
|
|
@@ -51494,12 +52283,12 @@ var init_invoicesList = __esm(() => {
|
|
|
51494
52283
|
});
|
|
51495
52284
|
|
|
51496
52285
|
// src/mcp-server/tools/invoicesList.ts
|
|
51497
|
-
var
|
|
52286
|
+
var args29, tool$invoicesList;
|
|
51498
52287
|
var init_invoicesList2 = __esm(() => {
|
|
51499
52288
|
init_invoicesList();
|
|
51500
52289
|
init_operations();
|
|
51501
52290
|
init_tools();
|
|
51502
|
-
|
|
52291
|
+
args29 = {
|
|
51503
52292
|
request: ListInvoicesRequest$inboundSchema.optional()
|
|
51504
52293
|
};
|
|
51505
52294
|
tool$invoicesList = {
|
|
@@ -51510,9 +52299,9 @@ Retrieve a list of all your invoices, optionally filtered by year or by
|
|
|
51510
52299
|
invoice reference.
|
|
51511
52300
|
|
|
51512
52301
|
The results are paginated.`,
|
|
51513
|
-
args:
|
|
51514
|
-
tool: async (client,
|
|
51515
|
-
const [result, apiCall] = await invoicesList(client,
|
|
52302
|
+
args: args29,
|
|
52303
|
+
tool: async (client, args30, ctx) => {
|
|
52304
|
+
const [result, apiCall] = await invoicesList(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51516
52305
|
if (!result.ok) {
|
|
51517
52306
|
return {
|
|
51518
52307
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51527,9 +52316,9 @@ The results are paginated.`,
|
|
|
51527
52316
|
|
|
51528
52317
|
// src/funcs/mandatesCreate.ts
|
|
51529
52318
|
function mandatesCreate(client, request, options) {
|
|
51530
|
-
return new APIPromise($
|
|
52319
|
+
return new APIPromise($do30(client, request, options));
|
|
51531
52320
|
}
|
|
51532
|
-
async function $
|
|
52321
|
+
async function $do30(client, request, options) {
|
|
51533
52322
|
const parsed = safeParse(request, (value) => CreateMandateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51534
52323
|
if (!parsed.ok) {
|
|
51535
52324
|
return [parsed, { status: "invalid" }];
|
|
@@ -51620,12 +52409,12 @@ var init_mandatesCreate = __esm(() => {
|
|
|
51620
52409
|
});
|
|
51621
52410
|
|
|
51622
52411
|
// src/mcp-server/tools/mandatesCreate.ts
|
|
51623
|
-
var
|
|
52412
|
+
var args30, tool$mandatesCreate;
|
|
51624
52413
|
var init_mandatesCreate2 = __esm(() => {
|
|
51625
52414
|
init_mandatesCreate();
|
|
51626
52415
|
init_operations();
|
|
51627
52416
|
init_tools();
|
|
51628
|
-
|
|
52417
|
+
args30 = {
|
|
51629
52418
|
request: CreateMandateRequest$inboundSchema
|
|
51630
52419
|
};
|
|
51631
52420
|
tool$mandatesCreate = {
|
|
@@ -51637,9 +52426,9 @@ account recurrently.
|
|
|
51637
52426
|
|
|
51638
52427
|
It is only possible to create mandates for IBANs and PayPal billing agreements with this endpoint. To create
|
|
51639
52428
|
mandates for cards, your customers need to perform a 'first payment' with their card.`,
|
|
51640
|
-
args:
|
|
51641
|
-
tool: async (client,
|
|
51642
|
-
const [result, apiCall] = await mandatesCreate(client,
|
|
52429
|
+
args: args30,
|
|
52430
|
+
tool: async (client, args31, ctx) => {
|
|
52431
|
+
const [result, apiCall] = await mandatesCreate(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51643
52432
|
if (!result.ok) {
|
|
51644
52433
|
return {
|
|
51645
52434
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51654,9 +52443,9 @@ mandates for cards, your customers need to perform a 'first payment' with their
|
|
|
51654
52443
|
|
|
51655
52444
|
// src/funcs/mandatesGet.ts
|
|
51656
52445
|
function mandatesGet(client, request, options) {
|
|
51657
|
-
return new APIPromise($
|
|
52446
|
+
return new APIPromise($do31(client, request, options));
|
|
51658
52447
|
}
|
|
51659
|
-
async function $
|
|
52448
|
+
async function $do31(client, request, options) {
|
|
51660
52449
|
const parsed = safeParse(request, (value) => GetMandateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51661
52450
|
if (!parsed.ok) {
|
|
51662
52451
|
return [parsed, { status: "invalid" }];
|
|
@@ -51754,12 +52543,12 @@ var init_mandatesGet = __esm(() => {
|
|
|
51754
52543
|
});
|
|
51755
52544
|
|
|
51756
52545
|
// src/mcp-server/tools/mandatesGet.ts
|
|
51757
|
-
var
|
|
52546
|
+
var args31, tool$mandatesGet;
|
|
51758
52547
|
var init_mandatesGet2 = __esm(() => {
|
|
51759
52548
|
init_mandatesGet();
|
|
51760
52549
|
init_operations();
|
|
51761
52550
|
init_tools();
|
|
51762
|
-
|
|
52551
|
+
args31 = {
|
|
51763
52552
|
request: GetMandateRequest$inboundSchema
|
|
51764
52553
|
};
|
|
51765
52554
|
tool$mandatesGet = {
|
|
@@ -51768,9 +52557,9 @@ var init_mandatesGet2 = __esm(() => {
|
|
|
51768
52557
|
|
|
51769
52558
|
Retrieve a single mandate by its ID. Depending on the type of mandate, the object will contain the customer's bank
|
|
51770
52559
|
account details, card details, or PayPal account details.`,
|
|
51771
|
-
args:
|
|
51772
|
-
tool: async (client,
|
|
51773
|
-
const [result, apiCall] = await mandatesGet(client,
|
|
52560
|
+
args: args31,
|
|
52561
|
+
tool: async (client, args32, ctx) => {
|
|
52562
|
+
const [result, apiCall] = await mandatesGet(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51774
52563
|
if (!result.ok) {
|
|
51775
52564
|
return {
|
|
51776
52565
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51785,9 +52574,9 @@ account details, card details, or PayPal account details.`,
|
|
|
51785
52574
|
|
|
51786
52575
|
// src/funcs/mandatesList.ts
|
|
51787
52576
|
function mandatesList(client, request, options) {
|
|
51788
|
-
return new APIPromise($
|
|
52577
|
+
return new APIPromise($do32(client, request, options));
|
|
51789
52578
|
}
|
|
51790
|
-
async function $
|
|
52579
|
+
async function $do32(client, request, options) {
|
|
51791
52580
|
const parsed = safeParse(request, (value) => ListMandatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51792
52581
|
if (!parsed.ok) {
|
|
51793
52582
|
return [parsed, { status: "invalid" }];
|
|
@@ -51883,12 +52672,12 @@ var init_mandatesList = __esm(() => {
|
|
|
51883
52672
|
});
|
|
51884
52673
|
|
|
51885
52674
|
// src/mcp-server/tools/mandatesList.ts
|
|
51886
|
-
var
|
|
52675
|
+
var args32, tool$mandatesList;
|
|
51887
52676
|
var init_mandatesList2 = __esm(() => {
|
|
51888
52677
|
init_mandatesList();
|
|
51889
52678
|
init_operations();
|
|
51890
52679
|
init_tools();
|
|
51891
|
-
|
|
52680
|
+
args32 = {
|
|
51892
52681
|
request: ListMandatesRequest$inboundSchema
|
|
51893
52682
|
};
|
|
51894
52683
|
tool$mandatesList = {
|
|
@@ -51898,9 +52687,9 @@ var init_mandatesList2 = __esm(() => {
|
|
|
51898
52687
|
Retrieve a list of all mandates.
|
|
51899
52688
|
|
|
51900
52689
|
The results are paginated.`,
|
|
51901
|
-
args:
|
|
51902
|
-
tool: async (client,
|
|
51903
|
-
const [result, apiCall] = await mandatesList(client,
|
|
52690
|
+
args: args32,
|
|
52691
|
+
tool: async (client, args33, ctx) => {
|
|
52692
|
+
const [result, apiCall] = await mandatesList(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51904
52693
|
if (!result.ok) {
|
|
51905
52694
|
return {
|
|
51906
52695
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51915,9 +52704,9 @@ The results are paginated.`,
|
|
|
51915
52704
|
|
|
51916
52705
|
// src/funcs/mandatesRevoke.ts
|
|
51917
52706
|
function mandatesRevoke(client, request, options) {
|
|
51918
|
-
return new APIPromise($
|
|
52707
|
+
return new APIPromise($do33(client, request, options));
|
|
51919
52708
|
}
|
|
51920
|
-
async function $
|
|
52709
|
+
async function $do33(client, request, options) {
|
|
51921
52710
|
const parsed = safeParse(request, (value) => RevokeMandateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51922
52711
|
if (!parsed.ok) {
|
|
51923
52712
|
return [parsed, { status: "invalid" }];
|
|
@@ -52010,12 +52799,12 @@ var init_mandatesRevoke = __esm(() => {
|
|
|
52010
52799
|
});
|
|
52011
52800
|
|
|
52012
52801
|
// src/mcp-server/tools/mandatesRevoke.ts
|
|
52013
|
-
var
|
|
52802
|
+
var args33, tool$mandatesRevoke;
|
|
52014
52803
|
var init_mandatesRevoke2 = __esm(() => {
|
|
52015
52804
|
init_mandatesRevoke();
|
|
52016
52805
|
init_operations();
|
|
52017
52806
|
init_tools();
|
|
52018
|
-
|
|
52807
|
+
args33 = {
|
|
52019
52808
|
request: RevokeMandateRequest$inboundSchema
|
|
52020
52809
|
};
|
|
52021
52810
|
tool$mandatesRevoke = {
|
|
@@ -52024,9 +52813,9 @@ var init_mandatesRevoke2 = __esm(() => {
|
|
|
52024
52813
|
|
|
52025
52814
|
Revoke a customer's mandate. You will no longer be able to charge the customer's bank account or card with this
|
|
52026
52815
|
mandate, and all connected subscriptions will be canceled.`,
|
|
52027
|
-
args:
|
|
52028
|
-
tool: async (client,
|
|
52029
|
-
const [result, apiCall] = await mandatesRevoke(client,
|
|
52816
|
+
args: args33,
|
|
52817
|
+
tool: async (client, args34, ctx) => {
|
|
52818
|
+
const [result, apiCall] = await mandatesRevoke(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52030
52819
|
if (!result.ok) {
|
|
52031
52820
|
return {
|
|
52032
52821
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52041,9 +52830,9 @@ mandate, and all connected subscriptions will be canceled.`,
|
|
|
52041
52830
|
|
|
52042
52831
|
// src/funcs/methodsAll.ts
|
|
52043
52832
|
function methodsAll(client, request, options) {
|
|
52044
|
-
return new APIPromise($
|
|
52833
|
+
return new APIPromise($do34(client, request, options));
|
|
52045
52834
|
}
|
|
52046
|
-
async function $
|
|
52835
|
+
async function $do34(client, request, options) {
|
|
52047
52836
|
const parsed = safeParse(request, (value) => ListAllMethodsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
52048
52837
|
if (!parsed.ok) {
|
|
52049
52838
|
return [parsed, { status: "invalid" }];
|
|
@@ -52136,12 +52925,12 @@ var init_methodsAll = __esm(() => {
|
|
|
52136
52925
|
});
|
|
52137
52926
|
|
|
52138
52927
|
// src/mcp-server/tools/methodsAll.ts
|
|
52139
|
-
var
|
|
52928
|
+
var args34, tool$methodsAll;
|
|
52140
52929
|
var init_methodsAll2 = __esm(() => {
|
|
52141
52930
|
init_methodsAll();
|
|
52142
52931
|
init_operations();
|
|
52143
52932
|
init_tools();
|
|
52144
|
-
|
|
52933
|
+
args34 = {
|
|
52145
52934
|
request: ListAllMethodsRequest$inboundSchema.optional()
|
|
52146
52935
|
};
|
|
52147
52936
|
tool$methodsAll = {
|
|
@@ -52152,9 +52941,9 @@ Retrieve all payment methods that Mollie offers, regardless of the eligibility o
|
|
|
52152
52941
|
method. The results of this endpoint are **not** paginated — unlike most other list endpoints in our API.
|
|
52153
52942
|
|
|
52154
52943
|
The list can optionally be filtered using a number of parameters described below.`,
|
|
52155
|
-
args:
|
|
52156
|
-
tool: async (client,
|
|
52157
|
-
const [result, apiCall] = await methodsAll(client,
|
|
52944
|
+
args: args34,
|
|
52945
|
+
tool: async (client, args35, ctx) => {
|
|
52946
|
+
const [result, apiCall] = await methodsAll(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52158
52947
|
if (!result.ok) {
|
|
52159
52948
|
return {
|
|
52160
52949
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52169,9 +52958,9 @@ The list can optionally be filtered using a number of parameters described below
|
|
|
52169
52958
|
|
|
52170
52959
|
// src/funcs/methodsGet.ts
|
|
52171
52960
|
function methodsGet(client, request, options) {
|
|
52172
|
-
return new APIPromise($
|
|
52961
|
+
return new APIPromise($do35(client, request, options));
|
|
52173
52962
|
}
|
|
52174
|
-
async function $
|
|
52963
|
+
async function $do35(client, request, options) {
|
|
52175
52964
|
const parsed = safeParse(request, (value) => GetMethodRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52176
52965
|
if (!parsed.ok) {
|
|
52177
52966
|
return [parsed, { status: "invalid" }];
|
|
@@ -52270,12 +53059,12 @@ var init_methodsGet = __esm(() => {
|
|
|
52270
53059
|
});
|
|
52271
53060
|
|
|
52272
53061
|
// src/mcp-server/tools/methodsGet.ts
|
|
52273
|
-
var
|
|
53062
|
+
var args35, tool$methodsGet;
|
|
52274
53063
|
var init_methodsGet2 = __esm(() => {
|
|
52275
53064
|
init_methodsGet();
|
|
52276
53065
|
init_operations();
|
|
52277
53066
|
init_tools();
|
|
52278
|
-
|
|
53067
|
+
args35 = {
|
|
52279
53068
|
request: GetMethodRequest$inboundSchema
|
|
52280
53069
|
};
|
|
52281
53070
|
tool$methodsGet = {
|
|
@@ -52294,9 +53083,9 @@ endpoint](list-methods) to retrieve all payment methods that are available.
|
|
|
52294
53083
|
|
|
52295
53084
|
Additionally, it is possible to check if wallet methods such as Apple Pay
|
|
52296
53085
|
are enabled by passing the wallet ID (\`applepay\`) as the method ID.`,
|
|
52297
|
-
args:
|
|
52298
|
-
tool: async (client,
|
|
52299
|
-
const [result, apiCall] = await methodsGet(client,
|
|
53086
|
+
args: args35,
|
|
53087
|
+
tool: async (client, args36, ctx) => {
|
|
53088
|
+
const [result, apiCall] = await methodsGet(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52300
53089
|
if (!result.ok) {
|
|
52301
53090
|
return {
|
|
52302
53091
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52311,9 +53100,9 @@ are enabled by passing the wallet ID (\`applepay\`) as the method ID.`,
|
|
|
52311
53100
|
|
|
52312
53101
|
// src/funcs/methodsList.ts
|
|
52313
53102
|
function methodsList(client, request, options) {
|
|
52314
|
-
return new APIPromise($
|
|
53103
|
+
return new APIPromise($do36(client, request, options));
|
|
52315
53104
|
}
|
|
52316
|
-
async function $
|
|
53105
|
+
async function $do36(client, request, options) {
|
|
52317
53106
|
const parsed = safeParse(request, (value) => ListMethodsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
52318
53107
|
if (!parsed.ok) {
|
|
52319
53108
|
return [parsed, { status: "invalid" }];
|
|
@@ -52410,12 +53199,12 @@ var init_methodsList = __esm(() => {
|
|
|
52410
53199
|
});
|
|
52411
53200
|
|
|
52412
53201
|
// src/mcp-server/tools/methodsList.ts
|
|
52413
|
-
var
|
|
53202
|
+
var args36, tool$methodsList;
|
|
52414
53203
|
var init_methodsList2 = __esm(() => {
|
|
52415
53204
|
init_methodsList();
|
|
52416
53205
|
init_operations();
|
|
52417
53206
|
init_tools();
|
|
52418
|
-
|
|
53207
|
+
args36 = {
|
|
52419
53208
|
request: ListMethodsRequest$inboundSchema.optional()
|
|
52420
53209
|
};
|
|
52421
53210
|
tool$methodsList = {
|
|
@@ -52438,9 +53227,9 @@ below.
|
|
|
52438
53227
|
By default, only payment methods for the Euro currency are returned. If you
|
|
52439
53228
|
wish to retrieve payment methods which exclusively support other currencies (e.g. Twint), you need to use the
|
|
52440
53229
|
\`amount\` parameters.`,
|
|
52441
|
-
args:
|
|
52442
|
-
tool: async (client,
|
|
52443
|
-
const [result, apiCall] = await methodsList(client,
|
|
53230
|
+
args: args36,
|
|
53231
|
+
tool: async (client, args37, ctx) => {
|
|
53232
|
+
const [result, apiCall] = await methodsList(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52444
53233
|
if (!result.ok) {
|
|
52445
53234
|
return {
|
|
52446
53235
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52455,9 +53244,9 @@ wish to retrieve payment methods which exclusively support other currencies (e.g
|
|
|
52455
53244
|
|
|
52456
53245
|
// src/funcs/onboardingGet.ts
|
|
52457
53246
|
function onboardingGet(client, request, options) {
|
|
52458
|
-
return new APIPromise($
|
|
53247
|
+
return new APIPromise($do37(client, request, options));
|
|
52459
53248
|
}
|
|
52460
|
-
async function $
|
|
53249
|
+
async function $do37(client, request, options) {
|
|
52461
53250
|
const parsed = safeParse(request, (value) => GetOnboardingStatusRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
52462
53251
|
if (!parsed.ok) {
|
|
52463
53252
|
return [parsed, { status: "invalid" }];
|
|
@@ -52535,12 +53324,12 @@ var init_onboardingGet = __esm(() => {
|
|
|
52535
53324
|
});
|
|
52536
53325
|
|
|
52537
53326
|
// src/mcp-server/tools/onboardingGet.ts
|
|
52538
|
-
var
|
|
53327
|
+
var args37, tool$onboardingGet;
|
|
52539
53328
|
var init_onboardingGet2 = __esm(() => {
|
|
52540
53329
|
init_onboardingGet();
|
|
52541
53330
|
init_operations();
|
|
52542
53331
|
init_tools();
|
|
52543
|
-
|
|
53332
|
+
args37 = {
|
|
52544
53333
|
request: GetOnboardingStatusRequest$inboundSchema.optional()
|
|
52545
53334
|
};
|
|
52546
53335
|
tool$onboardingGet = {
|
|
@@ -52548,9 +53337,9 @@ var init_onboardingGet2 = __esm(() => {
|
|
|
52548
53337
|
description: `Get onboarding status
|
|
52549
53338
|
|
|
52550
53339
|
Retrieve the onboarding status of the currently authenticated organization.`,
|
|
52551
|
-
args:
|
|
52552
|
-
tool: async (client,
|
|
52553
|
-
const [result, apiCall] = await onboardingGet(client,
|
|
53340
|
+
args: args37,
|
|
53341
|
+
tool: async (client, args38, ctx) => {
|
|
53342
|
+
const [result, apiCall] = await onboardingGet(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52554
53343
|
if (!result.ok) {
|
|
52555
53344
|
return {
|
|
52556
53345
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52565,9 +53354,9 @@ Retrieve the onboarding status of the currently authenticated organization.`,
|
|
|
52565
53354
|
|
|
52566
53355
|
// src/funcs/onboardingSubmit.ts
|
|
52567
53356
|
function onboardingSubmit(client, request, options) {
|
|
52568
|
-
return new APIPromise($
|
|
53357
|
+
return new APIPromise($do38(client, request, options));
|
|
52569
53358
|
}
|
|
52570
|
-
async function $
|
|
53359
|
+
async function $do38(client, request, options) {
|
|
52571
53360
|
const parsed = safeParse(request, (value) => SubmitOnboardingDataRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
52572
53361
|
if (!parsed.ok) {
|
|
52573
53362
|
return [parsed, { status: "invalid" }];
|
|
@@ -52644,12 +53433,12 @@ var init_onboardingSubmit = __esm(() => {
|
|
|
52644
53433
|
});
|
|
52645
53434
|
|
|
52646
53435
|
// src/mcp-server/tools/onboardingSubmit.ts
|
|
52647
|
-
var
|
|
53436
|
+
var args38, tool$onboardingSubmit;
|
|
52648
53437
|
var init_onboardingSubmit2 = __esm(() => {
|
|
52649
53438
|
init_onboardingSubmit();
|
|
52650
53439
|
init_operations();
|
|
52651
53440
|
init_tools();
|
|
52652
|
-
|
|
53441
|
+
args38 = {
|
|
52653
53442
|
request: SubmitOnboardingDataRequest$inboundSchema.optional()
|
|
52654
53443
|
};
|
|
52655
53444
|
tool$onboardingSubmit = {
|
|
@@ -52662,9 +53451,9 @@ onboarding process for your merchants.**
|
|
|
52662
53451
|
Submit data that will be prefilled in the merchant's onboarding. The data you submit will only be processed when the
|
|
52663
53452
|
onboarding status is \`needs-data\`.
|
|
52664
53453
|
Information that the merchant has entered in their dashboard will not be overwritten.`,
|
|
52665
|
-
args:
|
|
52666
|
-
tool: async (client,
|
|
52667
|
-
const [result, apiCall] = await onboardingSubmit(client,
|
|
53454
|
+
args: args38,
|
|
53455
|
+
tool: async (client, args39, ctx) => {
|
|
53456
|
+
const [result, apiCall] = await onboardingSubmit(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52668
53457
|
if (!result.ok) {
|
|
52669
53458
|
return {
|
|
52670
53459
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52679,9 +53468,9 @@ Information that the merchant has entered in their dashboard will not be overwri
|
|
|
52679
53468
|
|
|
52680
53469
|
// src/funcs/organizationsGet.ts
|
|
52681
53470
|
function organizationsGet(client, request, options) {
|
|
52682
|
-
return new APIPromise($
|
|
53471
|
+
return new APIPromise($do39(client, request, options));
|
|
52683
53472
|
}
|
|
52684
|
-
async function $
|
|
53473
|
+
async function $do39(client, request, options) {
|
|
52685
53474
|
const parsed = safeParse(request, (value) => GetOrganizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52686
53475
|
if (!parsed.ok) {
|
|
52687
53476
|
return [parsed, { status: "invalid" }];
|
|
@@ -52775,12 +53564,12 @@ var init_organizationsGet = __esm(() => {
|
|
|
52775
53564
|
});
|
|
52776
53565
|
|
|
52777
53566
|
// src/mcp-server/tools/organizationsGet.ts
|
|
52778
|
-
var
|
|
53567
|
+
var args39, tool$organizationsGet;
|
|
52779
53568
|
var init_organizationsGet2 = __esm(() => {
|
|
52780
53569
|
init_organizationsGet();
|
|
52781
53570
|
init_operations();
|
|
52782
53571
|
init_tools();
|
|
52783
|
-
|
|
53572
|
+
args39 = {
|
|
52784
53573
|
request: GetOrganizationRequest$inboundSchema
|
|
52785
53574
|
};
|
|
52786
53575
|
tool$organizationsGet = {
|
|
@@ -52793,9 +53582,9 @@ You can normally only retrieve the currently authenticated organization with thi
|
|
|
52793
53582
|
for OAuth apps. See also [Get current organization](get-current-organization).
|
|
52794
53583
|
|
|
52795
53584
|
If you have a *partner account*', you can retrieve organization details of connected organizations.`,
|
|
52796
|
-
args:
|
|
52797
|
-
tool: async (client,
|
|
52798
|
-
const [result, apiCall] = await organizationsGet(client,
|
|
53585
|
+
args: args39,
|
|
53586
|
+
tool: async (client, args40, ctx) => {
|
|
53587
|
+
const [result, apiCall] = await organizationsGet(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52799
53588
|
if (!result.ok) {
|
|
52800
53589
|
return {
|
|
52801
53590
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52810,9 +53599,9 @@ If you have a *partner account*', you can retrieve organization details of conne
|
|
|
52810
53599
|
|
|
52811
53600
|
// src/funcs/organizationsGetCurrent.ts
|
|
52812
53601
|
function organizationsGetCurrent(client, request, options) {
|
|
52813
|
-
return new APIPromise($
|
|
53602
|
+
return new APIPromise($do40(client, request, options));
|
|
52814
53603
|
}
|
|
52815
|
-
async function $
|
|
53604
|
+
async function $do40(client, request, options) {
|
|
52816
53605
|
const parsed = safeParse(request, (value) => GetCurrentOrganizationRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
52817
53606
|
if (!parsed.ok) {
|
|
52818
53607
|
return [parsed, { status: "invalid" }];
|
|
@@ -52890,12 +53679,12 @@ var init_organizationsGetCurrent = __esm(() => {
|
|
|
52890
53679
|
});
|
|
52891
53680
|
|
|
52892
53681
|
// src/mcp-server/tools/organizationsGetCurrent.ts
|
|
52893
|
-
var
|
|
53682
|
+
var args40, tool$organizationsGetCurrent;
|
|
52894
53683
|
var init_organizationsGetCurrent2 = __esm(() => {
|
|
52895
53684
|
init_organizationsGetCurrent();
|
|
52896
53685
|
init_operations();
|
|
52897
53686
|
init_tools();
|
|
52898
|
-
|
|
53687
|
+
args40 = {
|
|
52899
53688
|
request: GetCurrentOrganizationRequest$inboundSchema.optional()
|
|
52900
53689
|
};
|
|
52901
53690
|
tool$organizationsGetCurrent = {
|
|
@@ -52907,9 +53696,9 @@ endpoint.
|
|
|
52907
53696
|
|
|
52908
53697
|
For a complete reference of the organization object, refer to the [Get organization](get-organization) endpoint
|
|
52909
53698
|
documentation.`,
|
|
52910
|
-
args:
|
|
52911
|
-
tool: async (client,
|
|
52912
|
-
const [result, apiCall] = await organizationsGetCurrent(client,
|
|
53699
|
+
args: args40,
|
|
53700
|
+
tool: async (client, args41, ctx) => {
|
|
53701
|
+
const [result, apiCall] = await organizationsGetCurrent(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52913
53702
|
if (!result.ok) {
|
|
52914
53703
|
return {
|
|
52915
53704
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52924,9 +53713,9 @@ documentation.`,
|
|
|
52924
53713
|
|
|
52925
53714
|
// src/funcs/organizationsGetPartner.ts
|
|
52926
53715
|
function organizationsGetPartner(client, request, options) {
|
|
52927
|
-
return new APIPromise($
|
|
53716
|
+
return new APIPromise($do41(client, request, options));
|
|
52928
53717
|
}
|
|
52929
|
-
async function $
|
|
53718
|
+
async function $do41(client, request, options) {
|
|
52930
53719
|
const parsed = safeParse(request, (value) => GetPartnerStatusRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
52931
53720
|
if (!parsed.ok) {
|
|
52932
53721
|
return [parsed, { status: "invalid" }];
|
|
@@ -53003,12 +53792,12 @@ var init_organizationsGetPartner = __esm(() => {
|
|
|
53003
53792
|
});
|
|
53004
53793
|
|
|
53005
53794
|
// src/mcp-server/tools/organizationsGetPartner.ts
|
|
53006
|
-
var
|
|
53795
|
+
var args41, tool$organizationsGetPartner;
|
|
53007
53796
|
var init_organizationsGetPartner2 = __esm(() => {
|
|
53008
53797
|
init_organizationsGetPartner();
|
|
53009
53798
|
init_operations();
|
|
53010
53799
|
init_tools();
|
|
53011
|
-
|
|
53800
|
+
args41 = {
|
|
53012
53801
|
request: GetPartnerStatusRequest$inboundSchema.optional()
|
|
53013
53802
|
};
|
|
53014
53803
|
tool$organizationsGetPartner = {
|
|
@@ -53017,9 +53806,9 @@ var init_organizationsGetPartner2 = __esm(() => {
|
|
|
53017
53806
|
|
|
53018
53807
|
Retrieve partnership details about the currently authenticated organization. Only relevant for so-called *partner
|
|
53019
53808
|
accounts*.`,
|
|
53020
|
-
args:
|
|
53021
|
-
tool: async (client,
|
|
53022
|
-
const [result, apiCall] = await organizationsGetPartner(client,
|
|
53809
|
+
args: args41,
|
|
53810
|
+
tool: async (client, args42, ctx) => {
|
|
53811
|
+
const [result, apiCall] = await organizationsGetPartner(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53023
53812
|
if (!result.ok) {
|
|
53024
53813
|
return {
|
|
53025
53814
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53034,9 +53823,9 @@ accounts*.`,
|
|
|
53034
53823
|
|
|
53035
53824
|
// src/funcs/paymentLinksCreate.ts
|
|
53036
53825
|
function paymentLinksCreate(client, request, options) {
|
|
53037
|
-
return new APIPromise($
|
|
53826
|
+
return new APIPromise($do42(client, request, options));
|
|
53038
53827
|
}
|
|
53039
|
-
async function $
|
|
53828
|
+
async function $do42(client, request, options) {
|
|
53040
53829
|
const parsed = safeParse(request, (value) => CreatePaymentLinkRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
53041
53830
|
if (!parsed.ok) {
|
|
53042
53831
|
return [parsed, { status: "invalid" }];
|
|
@@ -53121,12 +53910,12 @@ var init_paymentLinksCreate = __esm(() => {
|
|
|
53121
53910
|
});
|
|
53122
53911
|
|
|
53123
53912
|
// src/mcp-server/tools/paymentLinksCreate.ts
|
|
53124
|
-
var
|
|
53913
|
+
var args42, tool$paymentLinksCreate;
|
|
53125
53914
|
var init_paymentLinksCreate2 = __esm(() => {
|
|
53126
53915
|
init_paymentLinksCreate();
|
|
53127
53916
|
init_operations();
|
|
53128
53917
|
init_tools();
|
|
53129
|
-
|
|
53918
|
+
args42 = {
|
|
53130
53919
|
request: CreatePaymentLinkRequest$inboundSchema.optional()
|
|
53131
53920
|
};
|
|
53132
53921
|
tool$paymentLinksCreate = {
|
|
@@ -53136,9 +53925,9 @@ var init_paymentLinksCreate2 = __esm(() => {
|
|
|
53136
53925
|
With the Payment links API you can generate payment links that by default, unlike regular payments, do not expire.
|
|
53137
53926
|
The payment link can be shared with your customers and will redirect them to them the payment page where they can
|
|
53138
53927
|
complete the payment. A [payment](get-payment) will only be created once the customer initiates the payment.`,
|
|
53139
|
-
args:
|
|
53140
|
-
tool: async (client,
|
|
53141
|
-
const [result, apiCall] = await paymentLinksCreate(client,
|
|
53928
|
+
args: args42,
|
|
53929
|
+
tool: async (client, args43, ctx) => {
|
|
53930
|
+
const [result, apiCall] = await paymentLinksCreate(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53142
53931
|
if (!result.ok) {
|
|
53143
53932
|
return {
|
|
53144
53933
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53153,9 +53942,9 @@ complete the payment. A [payment](get-payment) will only be created once the cus
|
|
|
53153
53942
|
|
|
53154
53943
|
// src/funcs/paymentLinksDelete.ts
|
|
53155
53944
|
function paymentLinksDelete(client, request, options) {
|
|
53156
|
-
return new APIPromise($
|
|
53945
|
+
return new APIPromise($do43(client, request, options));
|
|
53157
53946
|
}
|
|
53158
|
-
async function $
|
|
53947
|
+
async function $do43(client, request, options) {
|
|
53159
53948
|
const parsed = safeParse(request, (value) => DeletePaymentLinkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53160
53949
|
if (!parsed.ok) {
|
|
53161
53950
|
return [parsed, { status: "invalid" }];
|
|
@@ -53244,12 +54033,12 @@ var init_paymentLinksDelete = __esm(() => {
|
|
|
53244
54033
|
});
|
|
53245
54034
|
|
|
53246
54035
|
// src/mcp-server/tools/paymentLinksDelete.ts
|
|
53247
|
-
var
|
|
54036
|
+
var args43, tool$paymentLinksDelete;
|
|
53248
54037
|
var init_paymentLinksDelete2 = __esm(() => {
|
|
53249
54038
|
init_paymentLinksDelete();
|
|
53250
54039
|
init_operations();
|
|
53251
54040
|
init_tools();
|
|
53252
|
-
|
|
54041
|
+
args43 = {
|
|
53253
54042
|
request: DeletePaymentLinkRequest$inboundSchema
|
|
53254
54043
|
};
|
|
53255
54044
|
tool$paymentLinksDelete = {
|
|
@@ -53263,9 +54052,9 @@ Once deleted, the payment link will no longer show up in the API or Mollie dashb
|
|
|
53263
54052
|
|
|
53264
54053
|
To simply disable a payment link without fully deleting it, you can use the \`archived\` parameter on the
|
|
53265
54054
|
[Update payment link](update-payment-link) endpoint instead.`,
|
|
53266
|
-
args:
|
|
53267
|
-
tool: async (client,
|
|
53268
|
-
const [result, apiCall] = await paymentLinksDelete(client,
|
|
54055
|
+
args: args43,
|
|
54056
|
+
tool: async (client, args44, ctx) => {
|
|
54057
|
+
const [result, apiCall] = await paymentLinksDelete(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53269
54058
|
if (!result.ok) {
|
|
53270
54059
|
return {
|
|
53271
54060
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53280,9 +54069,9 @@ To simply disable a payment link without fully deleting it, you can use the \`ar
|
|
|
53280
54069
|
|
|
53281
54070
|
// src/funcs/paymentLinksGet.ts
|
|
53282
54071
|
function paymentLinksGet(client, request, options) {
|
|
53283
|
-
return new APIPromise($
|
|
54072
|
+
return new APIPromise($do44(client, request, options));
|
|
53284
54073
|
}
|
|
53285
|
-
async function $
|
|
54074
|
+
async function $do44(client, request, options) {
|
|
53286
54075
|
const parsed = safeParse(request, (value) => GetPaymentLinkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53287
54076
|
if (!parsed.ok) {
|
|
53288
54077
|
return [parsed, { status: "invalid" }];
|
|
@@ -53376,12 +54165,12 @@ var init_paymentLinksGet = __esm(() => {
|
|
|
53376
54165
|
});
|
|
53377
54166
|
|
|
53378
54167
|
// src/mcp-server/tools/paymentLinksGet.ts
|
|
53379
|
-
var
|
|
54168
|
+
var args44, tool$paymentLinksGet;
|
|
53380
54169
|
var init_paymentLinksGet2 = __esm(() => {
|
|
53381
54170
|
init_paymentLinksGet();
|
|
53382
54171
|
init_operations();
|
|
53383
54172
|
init_tools();
|
|
53384
|
-
|
|
54173
|
+
args44 = {
|
|
53385
54174
|
request: GetPaymentLinkRequest$inboundSchema
|
|
53386
54175
|
};
|
|
53387
54176
|
tool$paymentLinksGet = {
|
|
@@ -53389,9 +54178,9 @@ var init_paymentLinksGet2 = __esm(() => {
|
|
|
53389
54178
|
description: `Get payment link
|
|
53390
54179
|
|
|
53391
54180
|
Retrieve a single payment link by its ID.`,
|
|
53392
|
-
args:
|
|
53393
|
-
tool: async (client,
|
|
53394
|
-
const [result, apiCall] = await paymentLinksGet(client,
|
|
54181
|
+
args: args44,
|
|
54182
|
+
tool: async (client, args45, ctx) => {
|
|
54183
|
+
const [result, apiCall] = await paymentLinksGet(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53395
54184
|
if (!result.ok) {
|
|
53396
54185
|
return {
|
|
53397
54186
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53406,9 +54195,9 @@ Retrieve a single payment link by its ID.`,
|
|
|
53406
54195
|
|
|
53407
54196
|
// src/funcs/paymentLinksList.ts
|
|
53408
54197
|
function paymentLinksList(client, request, options) {
|
|
53409
|
-
return new APIPromise($
|
|
54198
|
+
return new APIPromise($do45(client, request, options));
|
|
53410
54199
|
}
|
|
53411
|
-
async function $
|
|
54200
|
+
async function $do45(client, request, options) {
|
|
53412
54201
|
const parsed = safeParse(request, (value) => ListPaymentLinksRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
53413
54202
|
if (!parsed.ok) {
|
|
53414
54203
|
return [parsed, { status: "invalid" }];
|
|
@@ -53497,12 +54286,12 @@ var init_paymentLinksList = __esm(() => {
|
|
|
53497
54286
|
});
|
|
53498
54287
|
|
|
53499
54288
|
// src/mcp-server/tools/paymentLinksList.ts
|
|
53500
|
-
var
|
|
54289
|
+
var args45, tool$paymentLinksList;
|
|
53501
54290
|
var init_paymentLinksList2 = __esm(() => {
|
|
53502
54291
|
init_paymentLinksList();
|
|
53503
54292
|
init_operations();
|
|
53504
54293
|
init_tools();
|
|
53505
|
-
|
|
54294
|
+
args45 = {
|
|
53506
54295
|
request: ListPaymentLinksRequest$inboundSchema.optional()
|
|
53507
54296
|
};
|
|
53508
54297
|
tool$paymentLinksList = {
|
|
@@ -53512,9 +54301,9 @@ var init_paymentLinksList2 = __esm(() => {
|
|
|
53512
54301
|
Retrieve a list of all payment links.
|
|
53513
54302
|
|
|
53514
54303
|
The results are paginated.`,
|
|
53515
|
-
args:
|
|
53516
|
-
tool: async (client,
|
|
53517
|
-
const [result, apiCall] = await paymentLinksList(client,
|
|
54304
|
+
args: args45,
|
|
54305
|
+
tool: async (client, args46, ctx) => {
|
|
54306
|
+
const [result, apiCall] = await paymentLinksList(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53518
54307
|
if (!result.ok) {
|
|
53519
54308
|
return {
|
|
53520
54309
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53529,9 +54318,9 @@ The results are paginated.`,
|
|
|
53529
54318
|
|
|
53530
54319
|
// src/funcs/paymentLinksListPayments.ts
|
|
53531
54320
|
function paymentLinksListPayments(client, request, options) {
|
|
53532
|
-
return new APIPromise($
|
|
54321
|
+
return new APIPromise($do46(client, request, options));
|
|
53533
54322
|
}
|
|
53534
|
-
async function $
|
|
54323
|
+
async function $do46(client, request, options) {
|
|
53535
54324
|
const parsed = safeParse(request, (value) => GetPaymentLinkPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53536
54325
|
if (!parsed.ok) {
|
|
53537
54326
|
return [parsed, { status: "invalid" }];
|
|
@@ -53627,12 +54416,12 @@ var init_paymentLinksListPayments = __esm(() => {
|
|
|
53627
54416
|
});
|
|
53628
54417
|
|
|
53629
54418
|
// src/mcp-server/tools/paymentLinksListPayments.ts
|
|
53630
|
-
var
|
|
54419
|
+
var args46, tool$paymentLinksListPayments;
|
|
53631
54420
|
var init_paymentLinksListPayments2 = __esm(() => {
|
|
53632
54421
|
init_paymentLinksListPayments();
|
|
53633
54422
|
init_operations();
|
|
53634
54423
|
init_tools();
|
|
53635
|
-
|
|
54424
|
+
args46 = {
|
|
53636
54425
|
request: GetPaymentLinkPaymentsRequest$inboundSchema
|
|
53637
54426
|
};
|
|
53638
54427
|
tool$paymentLinksListPayments = {
|
|
@@ -53642,9 +54431,9 @@ var init_paymentLinksListPayments2 = __esm(() => {
|
|
|
53642
54431
|
Retrieve the list of payments for a specific payment link.
|
|
53643
54432
|
|
|
53644
54433
|
The results are paginated.`,
|
|
53645
|
-
args:
|
|
53646
|
-
tool: async (client,
|
|
53647
|
-
const [result, apiCall] = await paymentLinksListPayments(client,
|
|
54434
|
+
args: args46,
|
|
54435
|
+
tool: async (client, args47, ctx) => {
|
|
54436
|
+
const [result, apiCall] = await paymentLinksListPayments(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53648
54437
|
if (!result.ok) {
|
|
53649
54438
|
return {
|
|
53650
54439
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53659,9 +54448,9 @@ The results are paginated.`,
|
|
|
53659
54448
|
|
|
53660
54449
|
// src/funcs/paymentLinksUpdate.ts
|
|
53661
54450
|
function paymentLinksUpdate(client, request, options) {
|
|
53662
|
-
return new APIPromise($
|
|
54451
|
+
return new APIPromise($do47(client, request, options));
|
|
53663
54452
|
}
|
|
53664
|
-
async function $
|
|
54453
|
+
async function $do47(client, request, options) {
|
|
53665
54454
|
const parsed = safeParse(request, (value) => UpdatePaymentLinkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53666
54455
|
if (!parsed.ok) {
|
|
53667
54456
|
return [parsed, { status: "invalid" }];
|
|
@@ -53752,12 +54541,12 @@ var init_paymentLinksUpdate = __esm(() => {
|
|
|
53752
54541
|
});
|
|
53753
54542
|
|
|
53754
54543
|
// src/mcp-server/tools/paymentLinksUpdate.ts
|
|
53755
|
-
var
|
|
54544
|
+
var args47, tool$paymentLinksUpdate;
|
|
53756
54545
|
var init_paymentLinksUpdate2 = __esm(() => {
|
|
53757
54546
|
init_paymentLinksUpdate();
|
|
53758
54547
|
init_operations();
|
|
53759
54548
|
init_tools();
|
|
53760
|
-
|
|
54549
|
+
args47 = {
|
|
53761
54550
|
request: UpdatePaymentLinkRequest$inboundSchema
|
|
53762
54551
|
};
|
|
53763
54552
|
tool$paymentLinksUpdate = {
|
|
@@ -53765,9 +54554,9 @@ var init_paymentLinksUpdate2 = __esm(() => {
|
|
|
53765
54554
|
description: `Update payment link
|
|
53766
54555
|
|
|
53767
54556
|
Certain details of an existing payment link can be updated.`,
|
|
53768
|
-
args:
|
|
53769
|
-
tool: async (client,
|
|
53770
|
-
const [result, apiCall] = await paymentLinksUpdate(client,
|
|
54557
|
+
args: args47,
|
|
54558
|
+
tool: async (client, args48, ctx) => {
|
|
54559
|
+
const [result, apiCall] = await paymentLinksUpdate(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53771
54560
|
if (!result.ok) {
|
|
53772
54561
|
return {
|
|
53773
54562
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53782,9 +54571,9 @@ Certain details of an existing payment link can be updated.`,
|
|
|
53782
54571
|
|
|
53783
54572
|
// src/funcs/paymentsCancel.ts
|
|
53784
54573
|
function paymentsCancel(client, request, options) {
|
|
53785
|
-
return new APIPromise($
|
|
54574
|
+
return new APIPromise($do48(client, request, options));
|
|
53786
54575
|
}
|
|
53787
|
-
async function $
|
|
54576
|
+
async function $do48(client, request, options) {
|
|
53788
54577
|
const parsed = safeParse(request, (value) => CancelPaymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53789
54578
|
if (!parsed.ok) {
|
|
53790
54579
|
return [parsed, { status: "invalid" }];
|
|
@@ -53875,12 +54664,12 @@ var init_paymentsCancel = __esm(() => {
|
|
|
53875
54664
|
});
|
|
53876
54665
|
|
|
53877
54666
|
// src/mcp-server/tools/paymentsCancel.ts
|
|
53878
|
-
var
|
|
54667
|
+
var args48, tool$paymentsCancel;
|
|
53879
54668
|
var init_paymentsCancel2 = __esm(() => {
|
|
53880
54669
|
init_paymentsCancel();
|
|
53881
54670
|
init_operations();
|
|
53882
54671
|
init_tools();
|
|
53883
|
-
|
|
54672
|
+
args48 = {
|
|
53884
54673
|
request: CancelPaymentRequest$inboundSchema
|
|
53885
54674
|
};
|
|
53886
54675
|
tool$paymentsCancel = {
|
|
@@ -53893,9 +54682,9 @@ the next business day or as long as the payment status is open.
|
|
|
53893
54682
|
Payments may also be canceled manually from the Mollie Dashboard.
|
|
53894
54683
|
|
|
53895
54684
|
The \`isCancelable\` property on the [Payment object](get-payment) will indicate if the payment can be canceled.`,
|
|
53896
|
-
args:
|
|
53897
|
-
tool: async (client,
|
|
53898
|
-
const [result, apiCall] = await paymentsCancel(client,
|
|
54685
|
+
args: args48,
|
|
54686
|
+
tool: async (client, args49, ctx) => {
|
|
54687
|
+
const [result, apiCall] = await paymentsCancel(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53899
54688
|
if (!result.ok) {
|
|
53900
54689
|
return {
|
|
53901
54690
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53910,9 +54699,9 @@ The \`isCancelable\` property on the [Payment object](get-payment) will indicate
|
|
|
53910
54699
|
|
|
53911
54700
|
// src/funcs/paymentsCreate.ts
|
|
53912
54701
|
function paymentsCreate(client, request, options) {
|
|
53913
|
-
return new APIPromise($
|
|
54702
|
+
return new APIPromise($do49(client, request, options));
|
|
53914
54703
|
}
|
|
53915
|
-
async function $
|
|
54704
|
+
async function $do49(client, request, options) {
|
|
53916
54705
|
const parsed = safeParse(request, (value) => CreatePaymentRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
53917
54706
|
if (!parsed.ok) {
|
|
53918
54707
|
return [parsed, { status: "invalid" }];
|
|
@@ -54005,12 +54794,12 @@ var init_paymentsCreate = __esm(() => {
|
|
|
54005
54794
|
});
|
|
54006
54795
|
|
|
54007
54796
|
// src/mcp-server/tools/paymentsCreate.ts
|
|
54008
|
-
var
|
|
54797
|
+
var args49, tool$paymentsCreate;
|
|
54009
54798
|
var init_paymentsCreate2 = __esm(() => {
|
|
54010
54799
|
init_paymentsCreate();
|
|
54011
54800
|
init_operations();
|
|
54012
54801
|
init_tools();
|
|
54013
|
-
|
|
54802
|
+
args49 = {
|
|
54014
54803
|
request: CreatePaymentRequest$inboundSchema.optional()
|
|
54015
54804
|
};
|
|
54016
54805
|
tool$paymentsCreate = {
|
|
@@ -54029,9 +54818,9 @@ can be found in the 'Accepting payments' guide.
|
|
|
54029
54818
|
If you specify the \`method\` parameter when creating a payment, optional
|
|
54030
54819
|
additional parameters may be available for the payment method that are not listed below. Please refer to the
|
|
54031
54820
|
guide on [method-specific parameters](extra-payment-parameters).`,
|
|
54032
|
-
args:
|
|
54033
|
-
tool: async (client,
|
|
54034
|
-
const [result, apiCall] = await paymentsCreate(client,
|
|
54821
|
+
args: args49,
|
|
54822
|
+
tool: async (client, args50, ctx) => {
|
|
54823
|
+
const [result, apiCall] = await paymentsCreate(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54035
54824
|
if (!result.ok) {
|
|
54036
54825
|
return {
|
|
54037
54826
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54046,9 +54835,9 @@ guide on [method-specific parameters](extra-payment-parameters).`,
|
|
|
54046
54835
|
|
|
54047
54836
|
// src/funcs/paymentsGet.ts
|
|
54048
54837
|
function paymentsGet(client, request, options) {
|
|
54049
|
-
return new APIPromise($
|
|
54838
|
+
return new APIPromise($do50(client, request, options));
|
|
54050
54839
|
}
|
|
54051
|
-
async function $
|
|
54840
|
+
async function $do50(client, request, options) {
|
|
54052
54841
|
const parsed = safeParse(request, (value) => GetPaymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54053
54842
|
if (!parsed.ok) {
|
|
54054
54843
|
return [parsed, { status: "invalid" }];
|
|
@@ -54144,12 +54933,12 @@ var init_paymentsGet = __esm(() => {
|
|
|
54144
54933
|
});
|
|
54145
54934
|
|
|
54146
54935
|
// src/mcp-server/tools/paymentsGet.ts
|
|
54147
|
-
var
|
|
54936
|
+
var args50, tool$paymentsGet;
|
|
54148
54937
|
var init_paymentsGet2 = __esm(() => {
|
|
54149
54938
|
init_paymentsGet();
|
|
54150
54939
|
init_operations();
|
|
54151
54940
|
init_tools();
|
|
54152
|
-
|
|
54941
|
+
args50 = {
|
|
54153
54942
|
request: GetPaymentRequest$inboundSchema
|
|
54154
54943
|
};
|
|
54155
54944
|
tool$paymentsGet = {
|
|
@@ -54157,9 +54946,9 @@ var init_paymentsGet2 = __esm(() => {
|
|
|
54157
54946
|
description: `Get payment
|
|
54158
54947
|
|
|
54159
54948
|
Retrieve a single payment object by its payment ID.`,
|
|
54160
|
-
args:
|
|
54161
|
-
tool: async (client,
|
|
54162
|
-
const [result, apiCall] = await paymentsGet(client,
|
|
54949
|
+
args: args50,
|
|
54950
|
+
tool: async (client, args51, ctx) => {
|
|
54951
|
+
const [result, apiCall] = await paymentsGet(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54163
54952
|
if (!result.ok) {
|
|
54164
54953
|
return {
|
|
54165
54954
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54174,9 +54963,9 @@ Retrieve a single payment object by its payment ID.`,
|
|
|
54174
54963
|
|
|
54175
54964
|
// src/funcs/paymentsList.ts
|
|
54176
54965
|
function paymentsList(client, request, options) {
|
|
54177
|
-
return new APIPromise($
|
|
54966
|
+
return new APIPromise($do51(client, request, options));
|
|
54178
54967
|
}
|
|
54179
|
-
async function $
|
|
54968
|
+
async function $do51(client, request, options) {
|
|
54180
54969
|
const parsed = safeParse(request, (value) => ListPaymentsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
54181
54970
|
if (!parsed.ok) {
|
|
54182
54971
|
return [parsed, { status: "invalid" }];
|
|
@@ -54267,12 +55056,12 @@ var init_paymentsList = __esm(() => {
|
|
|
54267
55056
|
});
|
|
54268
55057
|
|
|
54269
55058
|
// src/mcp-server/tools/paymentsList.ts
|
|
54270
|
-
var
|
|
55059
|
+
var args51, tool$paymentsList;
|
|
54271
55060
|
var init_paymentsList2 = __esm(() => {
|
|
54272
55061
|
init_paymentsList();
|
|
54273
55062
|
init_operations();
|
|
54274
55063
|
init_tools();
|
|
54275
|
-
|
|
55064
|
+
args51 = {
|
|
54276
55065
|
request: ListPaymentsRequest$inboundSchema.optional()
|
|
54277
55066
|
};
|
|
54278
55067
|
tool$paymentsList = {
|
|
@@ -54282,9 +55071,9 @@ var init_paymentsList2 = __esm(() => {
|
|
|
54282
55071
|
Retrieve all payments created with the current website profile.
|
|
54283
55072
|
|
|
54284
55073
|
The results are paginated.`,
|
|
54285
|
-
args:
|
|
54286
|
-
tool: async (client,
|
|
54287
|
-
const [result, apiCall] = await paymentsList(client,
|
|
55074
|
+
args: args51,
|
|
55075
|
+
tool: async (client, args52, ctx) => {
|
|
55076
|
+
const [result, apiCall] = await paymentsList(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54288
55077
|
if (!result.ok) {
|
|
54289
55078
|
return {
|
|
54290
55079
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54299,9 +55088,9 @@ The results are paginated.`,
|
|
|
54299
55088
|
|
|
54300
55089
|
// src/funcs/paymentsReleaseAuthorization.ts
|
|
54301
55090
|
function paymentsReleaseAuthorization(client, request, options) {
|
|
54302
|
-
return new APIPromise($
|
|
55091
|
+
return new APIPromise($do52(client, request, options));
|
|
54303
55092
|
}
|
|
54304
|
-
async function $
|
|
55093
|
+
async function $do52(client, request, options) {
|
|
54305
55094
|
const parsed = safeParse(request, (value) => ReleaseAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54306
55095
|
if (!parsed.ok) {
|
|
54307
55096
|
return [parsed, { status: "invalid" }];
|
|
@@ -54390,12 +55179,12 @@ var init_paymentsReleaseAuthorization = __esm(() => {
|
|
|
54390
55179
|
});
|
|
54391
55180
|
|
|
54392
55181
|
// src/mcp-server/tools/paymentsReleaseAuthorization.ts
|
|
54393
|
-
var
|
|
55182
|
+
var args52, tool$paymentsReleaseAuthorization;
|
|
54394
55183
|
var init_paymentsReleaseAuthorization2 = __esm(() => {
|
|
54395
55184
|
init_paymentsReleaseAuthorization();
|
|
54396
55185
|
init_operations();
|
|
54397
55186
|
init_tools();
|
|
54398
|
-
|
|
55187
|
+
args52 = {
|
|
54399
55188
|
request: ReleaseAuthorizationRequest$inboundSchema
|
|
54400
55189
|
};
|
|
54401
55190
|
tool$paymentsReleaseAuthorization = {
|
|
@@ -54410,9 +55199,9 @@ the issuing bank if and when the hold will be released.
|
|
|
54410
55199
|
|
|
54411
55200
|
If the request does succeed, the payment status will change to \`canceled\` for payments without captures.
|
|
54412
55201
|
If there is a successful capture, the payment will transition to \`paid\`.`,
|
|
54413
|
-
args:
|
|
54414
|
-
tool: async (client,
|
|
54415
|
-
const [result, apiCall] = await paymentsReleaseAuthorization(client,
|
|
55202
|
+
args: args52,
|
|
55203
|
+
tool: async (client, args53, ctx) => {
|
|
55204
|
+
const [result, apiCall] = await paymentsReleaseAuthorization(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54416
55205
|
if (!result.ok) {
|
|
54417
55206
|
return {
|
|
54418
55207
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54427,9 +55216,9 @@ If there is a successful capture, the payment will transition to \`paid\`.`,
|
|
|
54427
55216
|
|
|
54428
55217
|
// src/funcs/paymentsUpdate.ts
|
|
54429
55218
|
function paymentsUpdate(client, request, options) {
|
|
54430
|
-
return new APIPromise($
|
|
55219
|
+
return new APIPromise($do53(client, request, options));
|
|
54431
55220
|
}
|
|
54432
|
-
async function $
|
|
55221
|
+
async function $do53(client, request, options) {
|
|
54433
55222
|
const parsed = safeParse(request, (value) => UpdatePaymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54434
55223
|
if (!parsed.ok) {
|
|
54435
55224
|
return [parsed, { status: "invalid" }];
|
|
@@ -54520,12 +55309,12 @@ var init_paymentsUpdate = __esm(() => {
|
|
|
54520
55309
|
});
|
|
54521
55310
|
|
|
54522
55311
|
// src/mcp-server/tools/paymentsUpdate.ts
|
|
54523
|
-
var
|
|
55312
|
+
var args53, tool$paymentsUpdate;
|
|
54524
55313
|
var init_paymentsUpdate2 = __esm(() => {
|
|
54525
55314
|
init_paymentsUpdate();
|
|
54526
55315
|
init_operations();
|
|
54527
55316
|
init_tools();
|
|
54528
|
-
|
|
55317
|
+
args53 = {
|
|
54529
55318
|
request: UpdatePaymentRequest$inboundSchema
|
|
54530
55319
|
};
|
|
54531
55320
|
tool$paymentsUpdate = {
|
|
@@ -54535,9 +55324,9 @@ var init_paymentsUpdate2 = __esm(() => {
|
|
|
54535
55324
|
Certain details of an existing payment can be updated.
|
|
54536
55325
|
|
|
54537
55326
|
Updating the payment details will not result in a webhook call.`,
|
|
54538
|
-
args:
|
|
54539
|
-
tool: async (client,
|
|
54540
|
-
const [result, apiCall] = await paymentsUpdate(client,
|
|
55327
|
+
args: args53,
|
|
55328
|
+
tool: async (client, args54, ctx) => {
|
|
55329
|
+
const [result, apiCall] = await paymentsUpdate(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54541
55330
|
if (!result.ok) {
|
|
54542
55331
|
return {
|
|
54543
55332
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54552,9 +55341,9 @@ Updating the payment details will not result in a webhook call.`,
|
|
|
54552
55341
|
|
|
54553
55342
|
// src/funcs/permissionsGet.ts
|
|
54554
55343
|
function permissionsGet(client, request, options) {
|
|
54555
|
-
return new APIPromise($
|
|
55344
|
+
return new APIPromise($do54(client, request, options));
|
|
54556
55345
|
}
|
|
54557
|
-
async function $
|
|
55346
|
+
async function $do54(client, request, options) {
|
|
54558
55347
|
const parsed = safeParse(request, (value) => GetPermissionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54559
55348
|
if (!parsed.ok) {
|
|
54560
55349
|
return [parsed, { status: "invalid" }];
|
|
@@ -54648,12 +55437,12 @@ var init_permissionsGet = __esm(() => {
|
|
|
54648
55437
|
});
|
|
54649
55438
|
|
|
54650
55439
|
// src/mcp-server/tools/permissionsGet.ts
|
|
54651
|
-
var
|
|
55440
|
+
var args54, tool$permissionsGet;
|
|
54652
55441
|
var init_permissionsGet2 = __esm(() => {
|
|
54653
55442
|
init_permissionsGet();
|
|
54654
55443
|
init_operations();
|
|
54655
55444
|
init_tools();
|
|
54656
|
-
|
|
55445
|
+
args54 = {
|
|
54657
55446
|
request: GetPermissionRequest$inboundSchema
|
|
54658
55447
|
};
|
|
54659
55448
|
tool$permissionsGet = {
|
|
@@ -54661,9 +55450,9 @@ var init_permissionsGet2 = __esm(() => {
|
|
|
54661
55450
|
description: `Get permission
|
|
54662
55451
|
|
|
54663
55452
|
Retrieve a single permission by its ID, and see if the permission is granted to the current access token.`,
|
|
54664
|
-
args:
|
|
54665
|
-
tool: async (client,
|
|
54666
|
-
const [result, apiCall] = await permissionsGet(client,
|
|
55453
|
+
args: args54,
|
|
55454
|
+
tool: async (client, args55, ctx) => {
|
|
55455
|
+
const [result, apiCall] = await permissionsGet(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54667
55456
|
if (!result.ok) {
|
|
54668
55457
|
return {
|
|
54669
55458
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54678,9 +55467,9 @@ Retrieve a single permission by its ID, and see if the permission is granted to
|
|
|
54678
55467
|
|
|
54679
55468
|
// src/funcs/permissionsList.ts
|
|
54680
55469
|
function permissionsList(client, request, options) {
|
|
54681
|
-
return new APIPromise($
|
|
55470
|
+
return new APIPromise($do55(client, request, options));
|
|
54682
55471
|
}
|
|
54683
|
-
async function $
|
|
55472
|
+
async function $do55(client, request, options) {
|
|
54684
55473
|
const parsed = safeParse(request, (value) => ListPermissionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
54685
55474
|
if (!parsed.ok) {
|
|
54686
55475
|
return [parsed, { status: "invalid" }];
|
|
@@ -54763,12 +55552,12 @@ var init_permissionsList = __esm(() => {
|
|
|
54763
55552
|
});
|
|
54764
55553
|
|
|
54765
55554
|
// src/mcp-server/tools/permissionsList.ts
|
|
54766
|
-
var
|
|
55555
|
+
var args55, tool$permissionsList;
|
|
54767
55556
|
var init_permissionsList2 = __esm(() => {
|
|
54768
55557
|
init_permissionsList();
|
|
54769
55558
|
init_operations();
|
|
54770
55559
|
init_tools();
|
|
54771
|
-
|
|
55560
|
+
args55 = {
|
|
54772
55561
|
request: ListPermissionsRequest$inboundSchema.optional()
|
|
54773
55562
|
};
|
|
54774
55563
|
tool$permissionsList = {
|
|
@@ -54778,9 +55567,9 @@ var init_permissionsList2 = __esm(() => {
|
|
|
54778
55567
|
Retrieve a list of all permissions available to the current access token.
|
|
54779
55568
|
|
|
54780
55569
|
The results are **not** paginated.`,
|
|
54781
|
-
args:
|
|
54782
|
-
tool: async (client,
|
|
54783
|
-
const [result, apiCall] = await permissionsList(client,
|
|
55570
|
+
args: args55,
|
|
55571
|
+
tool: async (client, args56, ctx) => {
|
|
55572
|
+
const [result, apiCall] = await permissionsList(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54784
55573
|
if (!result.ok) {
|
|
54785
55574
|
return {
|
|
54786
55575
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54795,9 +55584,9 @@ The results are **not** paginated.`,
|
|
|
54795
55584
|
|
|
54796
55585
|
// src/funcs/profilesCreate.ts
|
|
54797
55586
|
function profilesCreate(client, request, options) {
|
|
54798
|
-
return new APIPromise($
|
|
55587
|
+
return new APIPromise($do56(client, request, options));
|
|
54799
55588
|
}
|
|
54800
|
-
async function $
|
|
55589
|
+
async function $do56(client, request, options) {
|
|
54801
55590
|
const parsed = safeParse(request, (value) => CreateProfileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54802
55591
|
if (!parsed.ok) {
|
|
54803
55592
|
return [parsed, { status: "invalid" }];
|
|
@@ -54882,12 +55671,12 @@ var init_profilesCreate = __esm(() => {
|
|
|
54882
55671
|
});
|
|
54883
55672
|
|
|
54884
55673
|
// src/mcp-server/tools/profilesCreate.ts
|
|
54885
|
-
var
|
|
55674
|
+
var args56, tool$profilesCreate;
|
|
54886
55675
|
var init_profilesCreate2 = __esm(() => {
|
|
54887
55676
|
init_profilesCreate();
|
|
54888
55677
|
init_operations();
|
|
54889
55678
|
init_tools();
|
|
54890
|
-
|
|
55679
|
+
args56 = {
|
|
54891
55680
|
request: CreateProfileRequest$inboundSchema
|
|
54892
55681
|
};
|
|
54893
55682
|
tool$profilesCreate = {
|
|
@@ -54898,9 +55687,9 @@ Create a profile to process payments on.
|
|
|
54898
55687
|
|
|
54899
55688
|
Profiles are required for payment processing. Normally they are created via the Mollie dashboard. Alternatively, you
|
|
54900
55689
|
can use this endpoint to automate profile creation.`,
|
|
54901
|
-
args:
|
|
54902
|
-
tool: async (client,
|
|
54903
|
-
const [result, apiCall] = await profilesCreate(client,
|
|
55690
|
+
args: args56,
|
|
55691
|
+
tool: async (client, args57, ctx) => {
|
|
55692
|
+
const [result, apiCall] = await profilesCreate(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54904
55693
|
if (!result.ok) {
|
|
54905
55694
|
return {
|
|
54906
55695
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54915,9 +55704,9 @@ can use this endpoint to automate profile creation.`,
|
|
|
54915
55704
|
|
|
54916
55705
|
// src/funcs/profilesDelete.ts
|
|
54917
55706
|
function profilesDelete(client, request, options) {
|
|
54918
|
-
return new APIPromise($
|
|
55707
|
+
return new APIPromise($do57(client, request, options));
|
|
54919
55708
|
}
|
|
54920
|
-
async function $
|
|
55709
|
+
async function $do57(client, request, options) {
|
|
54921
55710
|
const parsed = safeParse(request, (value) => DeleteProfileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54922
55711
|
if (!parsed.ok) {
|
|
54923
55712
|
return [parsed, { status: "invalid" }];
|
|
@@ -55005,12 +55794,12 @@ var init_profilesDelete = __esm(() => {
|
|
|
55005
55794
|
});
|
|
55006
55795
|
|
|
55007
55796
|
// src/mcp-server/tools/profilesDelete.ts
|
|
55008
|
-
var
|
|
55797
|
+
var args57, tool$profilesDelete;
|
|
55009
55798
|
var init_profilesDelete2 = __esm(() => {
|
|
55010
55799
|
init_profilesDelete();
|
|
55011
55800
|
init_operations();
|
|
55012
55801
|
init_tools();
|
|
55013
|
-
|
|
55802
|
+
args57 = {
|
|
55014
55803
|
request: DeleteProfileRequest$inboundSchema
|
|
55015
55804
|
};
|
|
55016
55805
|
tool$profilesDelete = {
|
|
@@ -55018,9 +55807,9 @@ var init_profilesDelete2 = __esm(() => {
|
|
|
55018
55807
|
description: `Delete profile
|
|
55019
55808
|
|
|
55020
55809
|
Delete a profile. A deleted profile and its related credentials can no longer be used for accepting payments.`,
|
|
55021
|
-
args:
|
|
55022
|
-
tool: async (client,
|
|
55023
|
-
const [result, apiCall] = await profilesDelete(client,
|
|
55810
|
+
args: args57,
|
|
55811
|
+
tool: async (client, args58, ctx) => {
|
|
55812
|
+
const [result, apiCall] = await profilesDelete(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55024
55813
|
if (!result.ok) {
|
|
55025
55814
|
return {
|
|
55026
55815
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55035,9 +55824,9 @@ Delete a profile. A deleted profile and its related credentials can no longer be
|
|
|
55035
55824
|
|
|
55036
55825
|
// src/funcs/profilesGet.ts
|
|
55037
55826
|
function profilesGet(client, request, options) {
|
|
55038
|
-
return new APIPromise($
|
|
55827
|
+
return new APIPromise($do58(client, request, options));
|
|
55039
55828
|
}
|
|
55040
|
-
async function $
|
|
55829
|
+
async function $do58(client, request, options) {
|
|
55041
55830
|
const parsed = safeParse(request, (value) => GetProfileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55042
55831
|
if (!parsed.ok) {
|
|
55043
55832
|
return [parsed, { status: "invalid" }];
|
|
@@ -55131,12 +55920,12 @@ var init_profilesGet = __esm(() => {
|
|
|
55131
55920
|
});
|
|
55132
55921
|
|
|
55133
55922
|
// src/mcp-server/tools/profilesGet.ts
|
|
55134
|
-
var
|
|
55923
|
+
var args58, tool$profilesGet;
|
|
55135
55924
|
var init_profilesGet2 = __esm(() => {
|
|
55136
55925
|
init_profilesGet();
|
|
55137
55926
|
init_operations();
|
|
55138
55927
|
init_tools();
|
|
55139
|
-
|
|
55928
|
+
args58 = {
|
|
55140
55929
|
request: GetProfileRequest$inboundSchema
|
|
55141
55930
|
};
|
|
55142
55931
|
tool$profilesGet = {
|
|
@@ -55144,9 +55933,9 @@ var init_profilesGet2 = __esm(() => {
|
|
|
55144
55933
|
description: `Get profile
|
|
55145
55934
|
|
|
55146
55935
|
Retrieve a single profile by its ID.`,
|
|
55147
|
-
args:
|
|
55148
|
-
tool: async (client,
|
|
55149
|
-
const [result, apiCall] = await profilesGet(client,
|
|
55936
|
+
args: args58,
|
|
55937
|
+
tool: async (client, args59, ctx) => {
|
|
55938
|
+
const [result, apiCall] = await profilesGet(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55150
55939
|
if (!result.ok) {
|
|
55151
55940
|
return {
|
|
55152
55941
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55161,9 +55950,9 @@ Retrieve a single profile by its ID.`,
|
|
|
55161
55950
|
|
|
55162
55951
|
// src/funcs/profilesGetCurrent.ts
|
|
55163
55952
|
function profilesGetCurrent(client, request, options) {
|
|
55164
|
-
return new APIPromise($
|
|
55953
|
+
return new APIPromise($do59(client, request, options));
|
|
55165
55954
|
}
|
|
55166
|
-
async function $
|
|
55955
|
+
async function $do59(client, request, options) {
|
|
55167
55956
|
const parsed = safeParse(request, (value) => GetCurrentProfileRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
55168
55957
|
if (!parsed.ok) {
|
|
55169
55958
|
return [parsed, { status: "invalid" }];
|
|
@@ -55241,12 +56030,12 @@ var init_profilesGetCurrent = __esm(() => {
|
|
|
55241
56030
|
});
|
|
55242
56031
|
|
|
55243
56032
|
// src/mcp-server/tools/profilesGetCurrent.ts
|
|
55244
|
-
var
|
|
56033
|
+
var args59, tool$profilesGetCurrent;
|
|
55245
56034
|
var init_profilesGetCurrent2 = __esm(() => {
|
|
55246
56035
|
init_profilesGetCurrent();
|
|
55247
56036
|
init_operations();
|
|
55248
56037
|
init_tools();
|
|
55249
|
-
|
|
56038
|
+
args59 = {
|
|
55250
56039
|
request: GetCurrentProfileRequest$inboundSchema.optional()
|
|
55251
56040
|
};
|
|
55252
56041
|
tool$profilesGetCurrent = {
|
|
@@ -55258,9 +56047,9 @@ endpoint.
|
|
|
55258
56047
|
|
|
55259
56048
|
For a complete reference of the profile object, refer to the [Get profile](get-profile) endpoint
|
|
55260
56049
|
documentation.`,
|
|
55261
|
-
args:
|
|
55262
|
-
tool: async (client,
|
|
55263
|
-
const [result, apiCall] = await profilesGetCurrent(client,
|
|
56050
|
+
args: args59,
|
|
56051
|
+
tool: async (client, args60, ctx) => {
|
|
56052
|
+
const [result, apiCall] = await profilesGetCurrent(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55264
56053
|
if (!result.ok) {
|
|
55265
56054
|
return {
|
|
55266
56055
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55275,9 +56064,9 @@ documentation.`,
|
|
|
55275
56064
|
|
|
55276
56065
|
// src/funcs/profilesList.ts
|
|
55277
56066
|
function profilesList(client, request, options) {
|
|
55278
|
-
return new APIPromise($
|
|
56067
|
+
return new APIPromise($do60(client, request, options));
|
|
55279
56068
|
}
|
|
55280
|
-
async function $
|
|
56069
|
+
async function $do60(client, request, options) {
|
|
55281
56070
|
const parsed = safeParse(request, (value) => ListProfilesRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
55282
56071
|
if (!parsed.ok) {
|
|
55283
56072
|
return [parsed, { status: "invalid" }];
|
|
@@ -55365,12 +56154,12 @@ var init_profilesList = __esm(() => {
|
|
|
55365
56154
|
});
|
|
55366
56155
|
|
|
55367
56156
|
// src/mcp-server/tools/profilesList.ts
|
|
55368
|
-
var
|
|
56157
|
+
var args60, tool$profilesList;
|
|
55369
56158
|
var init_profilesList2 = __esm(() => {
|
|
55370
56159
|
init_profilesList();
|
|
55371
56160
|
init_operations();
|
|
55372
56161
|
init_tools();
|
|
55373
|
-
|
|
56162
|
+
args60 = {
|
|
55374
56163
|
request: ListProfilesRequest$inboundSchema.optional()
|
|
55375
56164
|
};
|
|
55376
56165
|
tool$profilesList = {
|
|
@@ -55380,9 +56169,9 @@ var init_profilesList2 = __esm(() => {
|
|
|
55380
56169
|
Retrieve a list of all of your profiles.
|
|
55381
56170
|
|
|
55382
56171
|
The results are paginated.`,
|
|
55383
|
-
args:
|
|
55384
|
-
tool: async (client,
|
|
55385
|
-
const [result, apiCall] = await profilesList(client,
|
|
56172
|
+
args: args60,
|
|
56173
|
+
tool: async (client, args61, ctx) => {
|
|
56174
|
+
const [result, apiCall] = await profilesList(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55386
56175
|
if (!result.ok) {
|
|
55387
56176
|
return {
|
|
55388
56177
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55397,9 +56186,9 @@ The results are paginated.`,
|
|
|
55397
56186
|
|
|
55398
56187
|
// src/funcs/profilesUpdate.ts
|
|
55399
56188
|
function profilesUpdate(client, request, options) {
|
|
55400
|
-
return new APIPromise($
|
|
56189
|
+
return new APIPromise($do61(client, request, options));
|
|
55401
56190
|
}
|
|
55402
|
-
async function $
|
|
56191
|
+
async function $do61(client, request, options) {
|
|
55403
56192
|
const parsed = safeParse(request, (value) => UpdateProfileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55404
56193
|
if (!parsed.ok) {
|
|
55405
56194
|
return [parsed, { status: "invalid" }];
|
|
@@ -55490,12 +56279,12 @@ var init_profilesUpdate = __esm(() => {
|
|
|
55490
56279
|
});
|
|
55491
56280
|
|
|
55492
56281
|
// src/mcp-server/tools/profilesUpdate.ts
|
|
55493
|
-
var
|
|
56282
|
+
var args61, tool$profilesUpdate;
|
|
55494
56283
|
var init_profilesUpdate2 = __esm(() => {
|
|
55495
56284
|
init_profilesUpdate();
|
|
55496
56285
|
init_operations();
|
|
55497
56286
|
init_tools();
|
|
55498
|
-
|
|
56287
|
+
args61 = {
|
|
55499
56288
|
request: UpdateProfileRequest$inboundSchema
|
|
55500
56289
|
};
|
|
55501
56290
|
tool$profilesUpdate = {
|
|
@@ -55506,9 +56295,9 @@ Update an existing profile.
|
|
|
55506
56295
|
|
|
55507
56296
|
Profiles are required for payment processing. Normally they are created and updated via the Mollie dashboard.
|
|
55508
56297
|
Alternatively, you can use this endpoint to automate profile management.`,
|
|
55509
|
-
args:
|
|
55510
|
-
tool: async (client,
|
|
55511
|
-
const [result, apiCall] = await profilesUpdate(client,
|
|
56298
|
+
args: args61,
|
|
56299
|
+
tool: async (client, args62, ctx) => {
|
|
56300
|
+
const [result, apiCall] = await profilesUpdate(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55512
56301
|
if (!result.ok) {
|
|
55513
56302
|
return {
|
|
55514
56303
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55523,9 +56312,9 @@ Alternatively, you can use this endpoint to automate profile management.`,
|
|
|
55523
56312
|
|
|
55524
56313
|
// src/funcs/refundsAll.ts
|
|
55525
56314
|
function refundsAll(client, request, options) {
|
|
55526
|
-
return new APIPromise($
|
|
56315
|
+
return new APIPromise($do62(client, request, options));
|
|
55527
56316
|
}
|
|
55528
|
-
async function $
|
|
56317
|
+
async function $do62(client, request, options) {
|
|
55529
56318
|
const parsed = safeParse(request, (value) => ListAllRefundsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
55530
56319
|
if (!parsed.ok) {
|
|
55531
56320
|
return [parsed, { status: "invalid" }];
|
|
@@ -55617,12 +56406,12 @@ var init_refundsAll = __esm(() => {
|
|
|
55617
56406
|
});
|
|
55618
56407
|
|
|
55619
56408
|
// src/mcp-server/tools/refundsAll.ts
|
|
55620
|
-
var
|
|
56409
|
+
var args62, tool$refundsAll;
|
|
55621
56410
|
var init_refundsAll2 = __esm(() => {
|
|
55622
56411
|
init_refundsAll();
|
|
55623
56412
|
init_operations();
|
|
55624
56413
|
init_tools();
|
|
55625
|
-
|
|
56414
|
+
args62 = {
|
|
55626
56415
|
request: ListAllRefundsRequest$inboundSchema.optional()
|
|
55627
56416
|
};
|
|
55628
56417
|
tool$refundsAll = {
|
|
@@ -55632,9 +56421,9 @@ var init_refundsAll2 = __esm(() => {
|
|
|
55632
56421
|
Retrieve a list of all of your refunds.
|
|
55633
56422
|
|
|
55634
56423
|
The results are paginated.`,
|
|
55635
|
-
args:
|
|
55636
|
-
tool: async (client,
|
|
55637
|
-
const [result, apiCall] = await refundsAll(client,
|
|
56424
|
+
args: args62,
|
|
56425
|
+
tool: async (client, args63, ctx) => {
|
|
56426
|
+
const [result, apiCall] = await refundsAll(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55638
56427
|
if (!result.ok) {
|
|
55639
56428
|
return {
|
|
55640
56429
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55649,9 +56438,9 @@ The results are paginated.`,
|
|
|
55649
56438
|
|
|
55650
56439
|
// src/funcs/refundsCancel.ts
|
|
55651
56440
|
function refundsCancel(client, request, options) {
|
|
55652
|
-
return new APIPromise($
|
|
56441
|
+
return new APIPromise($do63(client, request, options));
|
|
55653
56442
|
}
|
|
55654
|
-
async function $
|
|
56443
|
+
async function $do63(client, request, options) {
|
|
55655
56444
|
const parsed = safeParse(request, (value) => CancelRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55656
56445
|
if (!parsed.ok) {
|
|
55657
56446
|
return [parsed, { status: "invalid" }];
|
|
@@ -55747,12 +56536,12 @@ var init_refundsCancel = __esm(() => {
|
|
|
55747
56536
|
});
|
|
55748
56537
|
|
|
55749
56538
|
// src/mcp-server/tools/refundsCancel.ts
|
|
55750
|
-
var
|
|
56539
|
+
var args63, tool$refundsCancel;
|
|
55751
56540
|
var init_refundsCancel2 = __esm(() => {
|
|
55752
56541
|
init_refundsCancel();
|
|
55753
56542
|
init_operations();
|
|
55754
56543
|
init_tools();
|
|
55755
|
-
|
|
56544
|
+
args63 = {
|
|
55756
56545
|
request: CancelRefundRequest$inboundSchema
|
|
55757
56546
|
};
|
|
55758
56547
|
tool$refundsCancel = {
|
|
@@ -55764,9 +56553,9 @@ Mollie Dashboard, or by using this endpoint.
|
|
|
55764
56553
|
|
|
55765
56554
|
A refund can only be canceled while its \`status\` field is either \`queued\` or \`pending\`. See the
|
|
55766
56555
|
[Get refund endpoint](get-refund) for more information.`,
|
|
55767
|
-
args:
|
|
55768
|
-
tool: async (client,
|
|
55769
|
-
const [result, apiCall] = await refundsCancel(client,
|
|
56556
|
+
args: args63,
|
|
56557
|
+
tool: async (client, args64, ctx) => {
|
|
56558
|
+
const [result, apiCall] = await refundsCancel(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55770
56559
|
if (!result.ok) {
|
|
55771
56560
|
return {
|
|
55772
56561
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55781,9 +56570,9 @@ A refund can only be canceled while its \`status\` field is either \`queued\` or
|
|
|
55781
56570
|
|
|
55782
56571
|
// src/funcs/refundsCreate.ts
|
|
55783
56572
|
function refundsCreate(client, request, options) {
|
|
55784
|
-
return new APIPromise($
|
|
56573
|
+
return new APIPromise($do64(client, request, options));
|
|
55785
56574
|
}
|
|
55786
|
-
async function $
|
|
56575
|
+
async function $do64(client, request, options) {
|
|
55787
56576
|
const parsed = safeParse(request, (value) => CreateRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55788
56577
|
if (!parsed.ok) {
|
|
55789
56578
|
return [parsed, { status: "invalid" }];
|
|
@@ -55874,12 +56663,12 @@ var init_refundsCreate = __esm(() => {
|
|
|
55874
56663
|
});
|
|
55875
56664
|
|
|
55876
56665
|
// src/mcp-server/tools/refundsCreate.ts
|
|
55877
|
-
var
|
|
56666
|
+
var args64, tool$refundsCreate;
|
|
55878
56667
|
var init_refundsCreate2 = __esm(() => {
|
|
55879
56668
|
init_refundsCreate();
|
|
55880
56669
|
init_operations();
|
|
55881
56670
|
init_tools();
|
|
55882
|
-
|
|
56671
|
+
args64 = {
|
|
55883
56672
|
request: CreateRefundRequest$inboundSchema
|
|
55884
56673
|
};
|
|
55885
56674
|
tool$refundsCreate = {
|
|
@@ -55888,9 +56677,9 @@ var init_refundsCreate2 = __esm(() => {
|
|
|
55888
56677
|
|
|
55889
56678
|
Creates a refund for a specific payment. The refunded amount is credited to your customer usually either via a bank
|
|
55890
56679
|
transfer or by refunding the amount to your customer's credit card.`,
|
|
55891
|
-
args:
|
|
55892
|
-
tool: async (client,
|
|
55893
|
-
const [result, apiCall] = await refundsCreate(client,
|
|
56680
|
+
args: args64,
|
|
56681
|
+
tool: async (client, args65, ctx) => {
|
|
56682
|
+
const [result, apiCall] = await refundsCreate(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55894
56683
|
if (!result.ok) {
|
|
55895
56684
|
return {
|
|
55896
56685
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55905,9 +56694,9 @@ transfer or by refunding the amount to your customer's credit card.`,
|
|
|
55905
56694
|
|
|
55906
56695
|
// src/funcs/refundsGet.ts
|
|
55907
56696
|
function refundsGet(client, request, options) {
|
|
55908
|
-
return new APIPromise($
|
|
56697
|
+
return new APIPromise($do65(client, request, options));
|
|
55909
56698
|
}
|
|
55910
|
-
async function $
|
|
56699
|
+
async function $do65(client, request, options) {
|
|
55911
56700
|
const parsed = safeParse(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55912
56701
|
if (!parsed.ok) {
|
|
55913
56702
|
return [parsed, { status: "invalid" }];
|
|
@@ -56006,12 +56795,12 @@ var init_refundsGet = __esm(() => {
|
|
|
56006
56795
|
});
|
|
56007
56796
|
|
|
56008
56797
|
// src/mcp-server/tools/refundsGet.ts
|
|
56009
|
-
var
|
|
56798
|
+
var args65, tool$refundsGet;
|
|
56010
56799
|
var init_refundsGet2 = __esm(() => {
|
|
56011
56800
|
init_refundsGet();
|
|
56012
56801
|
init_operations();
|
|
56013
56802
|
init_tools();
|
|
56014
|
-
|
|
56803
|
+
args65 = {
|
|
56015
56804
|
request: GetRefundRequest$inboundSchema
|
|
56016
56805
|
};
|
|
56017
56806
|
tool$refundsGet = {
|
|
@@ -56019,9 +56808,9 @@ var init_refundsGet2 = __esm(() => {
|
|
|
56019
56808
|
description: `Get payment refund
|
|
56020
56809
|
|
|
56021
56810
|
Retrieve a single payment refund by its ID and the ID of its parent payment.`,
|
|
56022
|
-
args:
|
|
56023
|
-
tool: async (client,
|
|
56024
|
-
const [result, apiCall] = await refundsGet(client,
|
|
56811
|
+
args: args65,
|
|
56812
|
+
tool: async (client, args66, ctx) => {
|
|
56813
|
+
const [result, apiCall] = await refundsGet(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56025
56814
|
if (!result.ok) {
|
|
56026
56815
|
return {
|
|
56027
56816
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56036,9 +56825,9 @@ Retrieve a single payment refund by its ID and the ID of its parent payment.`,
|
|
|
56036
56825
|
|
|
56037
56826
|
// src/funcs/refundsList.ts
|
|
56038
56827
|
function refundsList(client, request, options) {
|
|
56039
|
-
return new APIPromise($
|
|
56828
|
+
return new APIPromise($do66(client, request, options));
|
|
56040
56829
|
}
|
|
56041
|
-
async function $
|
|
56830
|
+
async function $do66(client, request, options) {
|
|
56042
56831
|
const parsed = safeParse(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56043
56832
|
if (!parsed.ok) {
|
|
56044
56833
|
return [parsed, { status: "invalid" }];
|
|
@@ -56134,12 +56923,12 @@ var init_refundsList = __esm(() => {
|
|
|
56134
56923
|
});
|
|
56135
56924
|
|
|
56136
56925
|
// src/mcp-server/tools/refundsList.ts
|
|
56137
|
-
var
|
|
56926
|
+
var args66, tool$refundsList;
|
|
56138
56927
|
var init_refundsList2 = __esm(() => {
|
|
56139
56928
|
init_refundsList();
|
|
56140
56929
|
init_operations();
|
|
56141
56930
|
init_tools();
|
|
56142
|
-
|
|
56931
|
+
args66 = {
|
|
56143
56932
|
request: ListRefundsRequest$inboundSchema
|
|
56144
56933
|
};
|
|
56145
56934
|
tool$refundsList = {
|
|
@@ -56149,9 +56938,9 @@ var init_refundsList2 = __esm(() => {
|
|
|
56149
56938
|
Retrieve a list of all refunds created for a specific payment.
|
|
56150
56939
|
|
|
56151
56940
|
The results are paginated.`,
|
|
56152
|
-
args:
|
|
56153
|
-
tool: async (client,
|
|
56154
|
-
const [result, apiCall] = await refundsList(client,
|
|
56941
|
+
args: args66,
|
|
56942
|
+
tool: async (client, args67, ctx) => {
|
|
56943
|
+
const [result, apiCall] = await refundsList(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56155
56944
|
if (!result.ok) {
|
|
56156
56945
|
return {
|
|
56157
56946
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56166,9 +56955,9 @@ The results are paginated.`,
|
|
|
56166
56955
|
|
|
56167
56956
|
// src/funcs/salesInvoicesCreate.ts
|
|
56168
56957
|
function salesInvoicesCreate(client, request, options) {
|
|
56169
|
-
return new APIPromise($
|
|
56958
|
+
return new APIPromise($do67(client, request, options));
|
|
56170
56959
|
}
|
|
56171
|
-
async function $
|
|
56960
|
+
async function $do67(client, request, options) {
|
|
56172
56961
|
const parsed = safeParse(request, (value) => CreateSalesInvoiceRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
56173
56962
|
if (!parsed.ok) {
|
|
56174
56963
|
return [parsed, { status: "invalid" }];
|
|
@@ -56255,12 +57044,12 @@ var init_salesInvoicesCreate = __esm(() => {
|
|
|
56255
57044
|
});
|
|
56256
57045
|
|
|
56257
57046
|
// src/mcp-server/tools/salesInvoicesCreate.ts
|
|
56258
|
-
var
|
|
57047
|
+
var args67, tool$salesInvoicesCreate;
|
|
56259
57048
|
var init_salesInvoicesCreate2 = __esm(() => {
|
|
56260
57049
|
init_salesInvoicesCreate();
|
|
56261
57050
|
init_operations();
|
|
56262
57051
|
init_tools();
|
|
56263
|
-
|
|
57052
|
+
args67 = {
|
|
56264
57053
|
request: CreateSalesInvoiceRequest$inboundSchema.optional()
|
|
56265
57054
|
};
|
|
56266
57055
|
tool$salesInvoicesCreate = {
|
|
@@ -56272,9 +57061,9 @@ var init_salesInvoicesCreate2 = __esm(() => {
|
|
|
56272
57061
|
> This feature is currently in beta testing, and the final specification may still change.
|
|
56273
57062
|
|
|
56274
57063
|
With the Sales Invoice API you can generate sales invoices to send to your customers.`,
|
|
56275
|
-
args:
|
|
56276
|
-
tool: async (client,
|
|
56277
|
-
const [result, apiCall] = await salesInvoicesCreate(client,
|
|
57064
|
+
args: args67,
|
|
57065
|
+
tool: async (client, args68, ctx) => {
|
|
57066
|
+
const [result, apiCall] = await salesInvoicesCreate(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56278
57067
|
if (!result.ok) {
|
|
56279
57068
|
return {
|
|
56280
57069
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56289,9 +57078,9 @@ With the Sales Invoice API you can generate sales invoices to send to your custo
|
|
|
56289
57078
|
|
|
56290
57079
|
// src/funcs/salesInvoicesDelete.ts
|
|
56291
57080
|
function salesInvoicesDelete(client, request, options) {
|
|
56292
|
-
return new APIPromise($
|
|
57081
|
+
return new APIPromise($do68(client, request, options));
|
|
56293
57082
|
}
|
|
56294
|
-
async function $
|
|
57083
|
+
async function $do68(client, request, options) {
|
|
56295
57084
|
const parsed = safeParse(request, (value) => DeleteSalesInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56296
57085
|
if (!parsed.ok) {
|
|
56297
57086
|
return [parsed, { status: "invalid" }];
|
|
@@ -56382,12 +57171,12 @@ var init_salesInvoicesDelete = __esm(() => {
|
|
|
56382
57171
|
});
|
|
56383
57172
|
|
|
56384
57173
|
// src/mcp-server/tools/salesInvoicesDelete.ts
|
|
56385
|
-
var
|
|
57174
|
+
var args68, tool$salesInvoicesDelete;
|
|
56386
57175
|
var init_salesInvoicesDelete2 = __esm(() => {
|
|
56387
57176
|
init_salesInvoicesDelete();
|
|
56388
57177
|
init_operations();
|
|
56389
57178
|
init_tools();
|
|
56390
|
-
|
|
57179
|
+
args68 = {
|
|
56391
57180
|
request: DeleteSalesInvoiceRequest$inboundSchema
|
|
56392
57181
|
};
|
|
56393
57182
|
tool$salesInvoicesDelete = {
|
|
@@ -56400,9 +57189,9 @@ var init_salesInvoicesDelete2 = __esm(() => {
|
|
|
56400
57189
|
|
|
56401
57190
|
Sales invoices which are in status \`draft\` can be deleted. For all other statuses, please use the
|
|
56402
57191
|
[Update sales invoice](update-sales-invoice) endpoint instead.`,
|
|
56403
|
-
args:
|
|
56404
|
-
tool: async (client,
|
|
56405
|
-
const [result, apiCall] = await salesInvoicesDelete(client,
|
|
57192
|
+
args: args68,
|
|
57193
|
+
tool: async (client, args69, ctx) => {
|
|
57194
|
+
const [result, apiCall] = await salesInvoicesDelete(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56406
57195
|
if (!result.ok) {
|
|
56407
57196
|
return {
|
|
56408
57197
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56417,9 +57206,9 @@ Sales invoices which are in status \`draft\` can be deleted. For all other statu
|
|
|
56417
57206
|
|
|
56418
57207
|
// src/funcs/salesInvoicesGet.ts
|
|
56419
57208
|
function salesInvoicesGet(client, request, options) {
|
|
56420
|
-
return new APIPromise($
|
|
57209
|
+
return new APIPromise($do69(client, request, options));
|
|
56421
57210
|
}
|
|
56422
|
-
async function $
|
|
57211
|
+
async function $do69(client, request, options) {
|
|
56423
57212
|
const parsed = safeParse(request, (value) => GetSalesInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56424
57213
|
if (!parsed.ok) {
|
|
56425
57214
|
return [parsed, { status: "invalid" }];
|
|
@@ -56513,12 +57302,12 @@ var init_salesInvoicesGet = __esm(() => {
|
|
|
56513
57302
|
});
|
|
56514
57303
|
|
|
56515
57304
|
// src/mcp-server/tools/salesInvoicesGet.ts
|
|
56516
|
-
var
|
|
57305
|
+
var args69, tool$salesInvoicesGet;
|
|
56517
57306
|
var init_salesInvoicesGet2 = __esm(() => {
|
|
56518
57307
|
init_salesInvoicesGet();
|
|
56519
57308
|
init_operations();
|
|
56520
57309
|
init_tools();
|
|
56521
|
-
|
|
57310
|
+
args69 = {
|
|
56522
57311
|
request: GetSalesInvoiceRequest$inboundSchema
|
|
56523
57312
|
};
|
|
56524
57313
|
tool$salesInvoicesGet = {
|
|
@@ -56530,9 +57319,9 @@ var init_salesInvoicesGet2 = __esm(() => {
|
|
|
56530
57319
|
> This feature is currently in beta testing, and the final specification may still change.
|
|
56531
57320
|
|
|
56532
57321
|
Retrieve a single sales invoice by its ID.`,
|
|
56533
|
-
args:
|
|
56534
|
-
tool: async (client,
|
|
56535
|
-
const [result, apiCall] = await salesInvoicesGet(client,
|
|
57322
|
+
args: args69,
|
|
57323
|
+
tool: async (client, args70, ctx) => {
|
|
57324
|
+
const [result, apiCall] = await salesInvoicesGet(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56536
57325
|
if (!result.ok) {
|
|
56537
57326
|
return {
|
|
56538
57327
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56547,9 +57336,9 @@ Retrieve a single sales invoice by its ID.`,
|
|
|
56547
57336
|
|
|
56548
57337
|
// src/funcs/salesInvoicesList.ts
|
|
56549
57338
|
function salesInvoicesList(client, request, options) {
|
|
56550
|
-
return new APIPromise($
|
|
57339
|
+
return new APIPromise($do70(client, request, options));
|
|
56551
57340
|
}
|
|
56552
|
-
async function $
|
|
57341
|
+
async function $do70(client, request, options) {
|
|
56553
57342
|
const parsed = safeParse(request, (value) => ListSalesInvoicesRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
56554
57343
|
if (!parsed.ok) {
|
|
56555
57344
|
return [parsed, { status: "invalid" }];
|
|
@@ -56638,12 +57427,12 @@ var init_salesInvoicesList = __esm(() => {
|
|
|
56638
57427
|
});
|
|
56639
57428
|
|
|
56640
57429
|
// src/mcp-server/tools/salesInvoicesList.ts
|
|
56641
|
-
var
|
|
57430
|
+
var args70, tool$salesInvoicesList;
|
|
56642
57431
|
var init_salesInvoicesList2 = __esm(() => {
|
|
56643
57432
|
init_salesInvoicesList();
|
|
56644
57433
|
init_operations();
|
|
56645
57434
|
init_tools();
|
|
56646
|
-
|
|
57435
|
+
args70 = {
|
|
56647
57436
|
request: ListSalesInvoicesRequest$inboundSchema.optional()
|
|
56648
57437
|
};
|
|
56649
57438
|
tool$salesInvoicesList = {
|
|
@@ -56657,9 +57446,9 @@ var init_salesInvoicesList2 = __esm(() => {
|
|
|
56657
57446
|
Retrieve a list of all sales invoices created through the API.
|
|
56658
57447
|
|
|
56659
57448
|
The results are paginated.`,
|
|
56660
|
-
args:
|
|
56661
|
-
tool: async (client,
|
|
56662
|
-
const [result, apiCall] = await salesInvoicesList(client,
|
|
57449
|
+
args: args70,
|
|
57450
|
+
tool: async (client, args71, ctx) => {
|
|
57451
|
+
const [result, apiCall] = await salesInvoicesList(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56663
57452
|
if (!result.ok) {
|
|
56664
57453
|
return {
|
|
56665
57454
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56674,9 +57463,9 @@ The results are paginated.`,
|
|
|
56674
57463
|
|
|
56675
57464
|
// src/funcs/salesInvoicesUpdate.ts
|
|
56676
57465
|
function salesInvoicesUpdate(client, request, options) {
|
|
56677
|
-
return new APIPromise($
|
|
57466
|
+
return new APIPromise($do71(client, request, options));
|
|
56678
57467
|
}
|
|
56679
|
-
async function $
|
|
57468
|
+
async function $do71(client, request, options) {
|
|
56680
57469
|
const parsed = safeParse(request, (value) => UpdateSalesInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56681
57470
|
if (!parsed.ok) {
|
|
56682
57471
|
return [parsed, { status: "invalid" }];
|
|
@@ -56769,12 +57558,12 @@ var init_salesInvoicesUpdate = __esm(() => {
|
|
|
56769
57558
|
});
|
|
56770
57559
|
|
|
56771
57560
|
// src/mcp-server/tools/salesInvoicesUpdate.ts
|
|
56772
|
-
var
|
|
57561
|
+
var args71, tool$salesInvoicesUpdate;
|
|
56773
57562
|
var init_salesInvoicesUpdate2 = __esm(() => {
|
|
56774
57563
|
init_salesInvoicesUpdate();
|
|
56775
57564
|
init_operations();
|
|
56776
57565
|
init_tools();
|
|
56777
|
-
|
|
57566
|
+
args71 = {
|
|
56778
57567
|
request: UpdateSalesInvoiceRequest$inboundSchema
|
|
56779
57568
|
};
|
|
56780
57569
|
tool$salesInvoicesUpdate = {
|
|
@@ -56788,9 +57577,9 @@ var init_salesInvoicesUpdate2 = __esm(() => {
|
|
|
56788
57577
|
Certain details of an existing sales invoice can be updated. For \`draft\` it is all values listed below, but for
|
|
56789
57578
|
statuses \`paid\` and \`issued\` there are certain additional requirements (\`paymentDetails\` and \`emailDetails\`,
|
|
56790
57579
|
respectively).`,
|
|
56791
|
-
args:
|
|
56792
|
-
tool: async (client,
|
|
56793
|
-
const [result, apiCall] = await salesInvoicesUpdate(client,
|
|
57580
|
+
args: args71,
|
|
57581
|
+
tool: async (client, args72, ctx) => {
|
|
57582
|
+
const [result, apiCall] = await salesInvoicesUpdate(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56794
57583
|
if (!result.ok) {
|
|
56795
57584
|
return {
|
|
56796
57585
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56805,9 +57594,9 @@ respectively).`,
|
|
|
56805
57594
|
|
|
56806
57595
|
// src/funcs/settlementsGet.ts
|
|
56807
57596
|
function settlementsGet(client, request, options) {
|
|
56808
|
-
return new APIPromise($
|
|
57597
|
+
return new APIPromise($do72(client, request, options));
|
|
56809
57598
|
}
|
|
56810
|
-
async function $
|
|
57599
|
+
async function $do72(client, request, options) {
|
|
56811
57600
|
const parsed = safeParse(request, (value) => GetSettlementRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56812
57601
|
if (!parsed.ok) {
|
|
56813
57602
|
return [parsed, { status: "invalid" }];
|
|
@@ -56897,12 +57686,12 @@ var init_settlementsGet = __esm(() => {
|
|
|
56897
57686
|
});
|
|
56898
57687
|
|
|
56899
57688
|
// src/mcp-server/tools/settlementsGet.ts
|
|
56900
|
-
var
|
|
57689
|
+
var args72, tool$settlementsGet;
|
|
56901
57690
|
var init_settlementsGet2 = __esm(() => {
|
|
56902
57691
|
init_settlementsGet();
|
|
56903
57692
|
init_operations();
|
|
56904
57693
|
init_tools();
|
|
56905
|
-
|
|
57694
|
+
args72 = {
|
|
56906
57695
|
request: GetSettlementRequest$inboundSchema
|
|
56907
57696
|
};
|
|
56908
57697
|
tool$settlementsGet = {
|
|
@@ -56921,9 +57710,9 @@ settlement and the previous one.
|
|
|
56921
57710
|
|
|
56922
57711
|
For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
|
|
56923
57712
|
[balance transactions](list-balance-transactions) endpoint.`,
|
|
56924
|
-
args:
|
|
56925
|
-
tool: async (client,
|
|
56926
|
-
const [result, apiCall] = await settlementsGet(client,
|
|
57713
|
+
args: args72,
|
|
57714
|
+
tool: async (client, args73, ctx) => {
|
|
57715
|
+
const [result, apiCall] = await settlementsGet(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56927
57716
|
if (!result.ok) {
|
|
56928
57717
|
return {
|
|
56929
57718
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56938,9 +57727,9 @@ For more accurate bookkeeping, refer to the [balance report](get-balance-report)
|
|
|
56938
57727
|
|
|
56939
57728
|
// src/funcs/settlementsGetNext.ts
|
|
56940
57729
|
function settlementsGetNext(client, request, options) {
|
|
56941
|
-
return new APIPromise($
|
|
57730
|
+
return new APIPromise($do73(client, request, options));
|
|
56942
57731
|
}
|
|
56943
|
-
async function $
|
|
57732
|
+
async function $do73(client, request, options) {
|
|
56944
57733
|
const parsed = safeParse(request, (value) => GetNextSettlementRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
56945
57734
|
if (!parsed.ok) {
|
|
56946
57735
|
return [parsed, { status: "invalid" }];
|
|
@@ -57018,12 +57807,12 @@ var init_settlementsGetNext = __esm(() => {
|
|
|
57018
57807
|
});
|
|
57019
57808
|
|
|
57020
57809
|
// src/mcp-server/tools/settlementsGetNext.ts
|
|
57021
|
-
var
|
|
57810
|
+
var args73, tool$settlementsGetNext;
|
|
57022
57811
|
var init_settlementsGetNext2 = __esm(() => {
|
|
57023
57812
|
init_settlementsGetNext();
|
|
57024
57813
|
init_operations();
|
|
57025
57814
|
init_tools();
|
|
57026
|
-
|
|
57815
|
+
args73 = {
|
|
57027
57816
|
request: GetNextSettlementRequest$inboundSchema.optional()
|
|
57028
57817
|
};
|
|
57029
57818
|
tool$settlementsGetNext = {
|
|
@@ -57037,9 +57826,9 @@ documentation.
|
|
|
57037
57826
|
|
|
57038
57827
|
For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
|
|
57039
57828
|
[balance transactions](list-balance-transactions) endpoint.`,
|
|
57040
|
-
args:
|
|
57041
|
-
tool: async (client,
|
|
57042
|
-
const [result, apiCall] = await settlementsGetNext(client,
|
|
57829
|
+
args: args73,
|
|
57830
|
+
tool: async (client, args74, ctx) => {
|
|
57831
|
+
const [result, apiCall] = await settlementsGetNext(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57043
57832
|
if (!result.ok) {
|
|
57044
57833
|
return {
|
|
57045
57834
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57054,9 +57843,9 @@ For more accurate bookkeeping, refer to the [balance report](get-balance-report)
|
|
|
57054
57843
|
|
|
57055
57844
|
// src/funcs/settlementsGetOpen.ts
|
|
57056
57845
|
function settlementsGetOpen(client, request, options) {
|
|
57057
|
-
return new APIPromise($
|
|
57846
|
+
return new APIPromise($do74(client, request, options));
|
|
57058
57847
|
}
|
|
57059
|
-
async function $
|
|
57848
|
+
async function $do74(client, request, options) {
|
|
57060
57849
|
const parsed = safeParse(request, (value) => GetOpenSettlementRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57061
57850
|
if (!parsed.ok) {
|
|
57062
57851
|
return [parsed, { status: "invalid" }];
|
|
@@ -57134,12 +57923,12 @@ var init_settlementsGetOpen = __esm(() => {
|
|
|
57134
57923
|
});
|
|
57135
57924
|
|
|
57136
57925
|
// src/mcp-server/tools/settlementsGetOpen.ts
|
|
57137
|
-
var
|
|
57926
|
+
var args74, tool$settlementsGetOpen;
|
|
57138
57927
|
var init_settlementsGetOpen2 = __esm(() => {
|
|
57139
57928
|
init_settlementsGetOpen();
|
|
57140
57929
|
init_operations();
|
|
57141
57930
|
init_tools();
|
|
57142
|
-
|
|
57931
|
+
args74 = {
|
|
57143
57932
|
request: GetOpenSettlementRequest$inboundSchema.optional()
|
|
57144
57933
|
};
|
|
57145
57934
|
tool$settlementsGetOpen = {
|
|
@@ -57154,9 +57943,9 @@ documentation.
|
|
|
57154
57943
|
|
|
57155
57944
|
For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
|
|
57156
57945
|
[balance transactions](list-balance-transactions) endpoint.`,
|
|
57157
|
-
args:
|
|
57158
|
-
tool: async (client,
|
|
57159
|
-
const [result, apiCall] = await settlementsGetOpen(client,
|
|
57946
|
+
args: args74,
|
|
57947
|
+
tool: async (client, args75, ctx) => {
|
|
57948
|
+
const [result, apiCall] = await settlementsGetOpen(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57160
57949
|
if (!result.ok) {
|
|
57161
57950
|
return {
|
|
57162
57951
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57171,9 +57960,9 @@ For more accurate bookkeeping, refer to the [balance report](get-balance-report)
|
|
|
57171
57960
|
|
|
57172
57961
|
// src/funcs/settlementsList.ts
|
|
57173
57962
|
function settlementsList(client, request, options) {
|
|
57174
|
-
return new APIPromise($
|
|
57963
|
+
return new APIPromise($do75(client, request, options));
|
|
57175
57964
|
}
|
|
57176
|
-
async function $
|
|
57965
|
+
async function $do75(client, request, options) {
|
|
57177
57966
|
const parsed = safeParse(request, (value) => ListSettlementsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57178
57967
|
if (!parsed.ok) {
|
|
57179
57968
|
return [parsed, { status: "invalid" }];
|
|
@@ -57265,12 +58054,12 @@ var init_settlementsList = __esm(() => {
|
|
|
57265
58054
|
});
|
|
57266
58055
|
|
|
57267
58056
|
// src/mcp-server/tools/settlementsList.ts
|
|
57268
|
-
var
|
|
58057
|
+
var args75, tool$settlementsList;
|
|
57269
58058
|
var init_settlementsList2 = __esm(() => {
|
|
57270
58059
|
init_settlementsList();
|
|
57271
58060
|
init_operations();
|
|
57272
58061
|
init_tools();
|
|
57273
|
-
|
|
58062
|
+
args75 = {
|
|
57274
58063
|
request: ListSettlementsRequest$inboundSchema.optional()
|
|
57275
58064
|
};
|
|
57276
58065
|
tool$settlementsList = {
|
|
@@ -57280,9 +58069,9 @@ var init_settlementsList2 = __esm(() => {
|
|
|
57280
58069
|
Retrieve a list of all your settlements.
|
|
57281
58070
|
|
|
57282
58071
|
The results are paginated.`,
|
|
57283
|
-
args:
|
|
57284
|
-
tool: async (client,
|
|
57285
|
-
const [result, apiCall] = await settlementsList(client,
|
|
58072
|
+
args: args75,
|
|
58073
|
+
tool: async (client, args76, ctx) => {
|
|
58074
|
+
const [result, apiCall] = await settlementsList(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57286
58075
|
if (!result.ok) {
|
|
57287
58076
|
return {
|
|
57288
58077
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57297,9 +58086,9 @@ The results are paginated.`,
|
|
|
57297
58086
|
|
|
57298
58087
|
// src/funcs/settlementsListCaptures.ts
|
|
57299
58088
|
function settlementsListCaptures(client, request, options) {
|
|
57300
|
-
return new APIPromise($
|
|
58089
|
+
return new APIPromise($do76(client, request, options));
|
|
57301
58090
|
}
|
|
57302
|
-
async function $
|
|
58091
|
+
async function $do76(client, request, options) {
|
|
57303
58092
|
const parsed = safeParse(request, (value) => ListSettlementCapturesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
57304
58093
|
if (!parsed.ok) {
|
|
57305
58094
|
return [parsed, { status: "invalid" }];
|
|
@@ -57395,12 +58184,12 @@ var init_settlementsListCaptures = __esm(() => {
|
|
|
57395
58184
|
});
|
|
57396
58185
|
|
|
57397
58186
|
// src/mcp-server/tools/settlementsListCaptures.ts
|
|
57398
|
-
var
|
|
58187
|
+
var args76, tool$settlementsListCaptures;
|
|
57399
58188
|
var init_settlementsListCaptures2 = __esm(() => {
|
|
57400
58189
|
init_settlementsListCaptures();
|
|
57401
58190
|
init_operations();
|
|
57402
58191
|
init_tools();
|
|
57403
|
-
|
|
58192
|
+
args76 = {
|
|
57404
58193
|
request: ListSettlementCapturesRequest$inboundSchema
|
|
57405
58194
|
};
|
|
57406
58195
|
tool$settlementsListCaptures = {
|
|
@@ -57410,9 +58199,9 @@ var init_settlementsListCaptures2 = __esm(() => {
|
|
|
57410
58199
|
Retrieve all captures included in the given settlement.
|
|
57411
58200
|
|
|
57412
58201
|
The response is in the same format as the response of the [List captures endpoint](list-captures).`,
|
|
57413
|
-
args:
|
|
57414
|
-
tool: async (client,
|
|
57415
|
-
const [result, apiCall] = await settlementsListCaptures(client,
|
|
58202
|
+
args: args76,
|
|
58203
|
+
tool: async (client, args77, ctx) => {
|
|
58204
|
+
const [result, apiCall] = await settlementsListCaptures(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57416
58205
|
if (!result.ok) {
|
|
57417
58206
|
return {
|
|
57418
58207
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57427,9 +58216,9 @@ The response is in the same format as the response of the [List captures endpoin
|
|
|
57427
58216
|
|
|
57428
58217
|
// src/funcs/settlementsListChargebacks.ts
|
|
57429
58218
|
function settlementsListChargebacks(client, request, options) {
|
|
57430
|
-
return new APIPromise($
|
|
58219
|
+
return new APIPromise($do77(client, request, options));
|
|
57431
58220
|
}
|
|
57432
|
-
async function $
|
|
58221
|
+
async function $do77(client, request, options) {
|
|
57433
58222
|
const parsed = safeParse(request, (value) => ListSettlementChargebacksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
57434
58223
|
if (!parsed.ok) {
|
|
57435
58224
|
return [parsed, { status: "invalid" }];
|
|
@@ -57525,12 +58314,12 @@ var init_settlementsListChargebacks = __esm(() => {
|
|
|
57525
58314
|
});
|
|
57526
58315
|
|
|
57527
58316
|
// src/mcp-server/tools/settlementsListChargebacks.ts
|
|
57528
|
-
var
|
|
58317
|
+
var args77, tool$settlementsListChargebacks;
|
|
57529
58318
|
var init_settlementsListChargebacks2 = __esm(() => {
|
|
57530
58319
|
init_settlementsListChargebacks();
|
|
57531
58320
|
init_operations();
|
|
57532
58321
|
init_tools();
|
|
57533
|
-
|
|
58322
|
+
args77 = {
|
|
57534
58323
|
request: ListSettlementChargebacksRequest$inboundSchema
|
|
57535
58324
|
};
|
|
57536
58325
|
tool$settlementsListChargebacks = {
|
|
@@ -57540,9 +58329,9 @@ var init_settlementsListChargebacks2 = __esm(() => {
|
|
|
57540
58329
|
Retrieve all chargebacks 'deducted' from the given settlement.
|
|
57541
58330
|
|
|
57542
58331
|
The response is in the same format as the response of the [List chargebacks endpoint](list-chargebacks).`,
|
|
57543
|
-
args:
|
|
57544
|
-
tool: async (client,
|
|
57545
|
-
const [result, apiCall] = await settlementsListChargebacks(client,
|
|
58332
|
+
args: args77,
|
|
58333
|
+
tool: async (client, args78, ctx) => {
|
|
58334
|
+
const [result, apiCall] = await settlementsListChargebacks(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57546
58335
|
if (!result.ok) {
|
|
57547
58336
|
return {
|
|
57548
58337
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57557,9 +58346,9 @@ The response is in the same format as the response of the [List chargebacks endp
|
|
|
57557
58346
|
|
|
57558
58347
|
// src/funcs/settlementsListPayments.ts
|
|
57559
58348
|
function settlementsListPayments(client, request, options) {
|
|
57560
|
-
return new APIPromise($
|
|
58349
|
+
return new APIPromise($do78(client, request, options));
|
|
57561
58350
|
}
|
|
57562
|
-
async function $
|
|
58351
|
+
async function $do78(client, request, options) {
|
|
57563
58352
|
const parsed = safeParse(request, (value) => ListSettlementPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
57564
58353
|
if (!parsed.ok) {
|
|
57565
58354
|
return [parsed, { status: "invalid" }];
|
|
@@ -57656,12 +58445,12 @@ var init_settlementsListPayments = __esm(() => {
|
|
|
57656
58445
|
});
|
|
57657
58446
|
|
|
57658
58447
|
// src/mcp-server/tools/settlementsListPayments.ts
|
|
57659
|
-
var
|
|
58448
|
+
var args78, tool$settlementsListPayments;
|
|
57660
58449
|
var init_settlementsListPayments2 = __esm(() => {
|
|
57661
58450
|
init_settlementsListPayments();
|
|
57662
58451
|
init_operations();
|
|
57663
58452
|
init_tools();
|
|
57664
|
-
|
|
58453
|
+
args78 = {
|
|
57665
58454
|
request: ListSettlementPaymentsRequest$inboundSchema
|
|
57666
58455
|
};
|
|
57667
58456
|
tool$settlementsListPayments = {
|
|
@@ -57674,9 +58463,9 @@ The response is in the same format as the response of the [List payments endpoin
|
|
|
57674
58463
|
|
|
57675
58464
|
For capture-based payment methods such as Klarna, the payments are not listed here. Refer to the
|
|
57676
58465
|
[List captures endpoint](list-captures) endpoint instead.`,
|
|
57677
|
-
args:
|
|
57678
|
-
tool: async (client,
|
|
57679
|
-
const [result, apiCall] = await settlementsListPayments(client,
|
|
58466
|
+
args: args78,
|
|
58467
|
+
tool: async (client, args79, ctx) => {
|
|
58468
|
+
const [result, apiCall] = await settlementsListPayments(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57680
58469
|
if (!result.ok) {
|
|
57681
58470
|
return {
|
|
57682
58471
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57691,9 +58480,9 @@ For capture-based payment methods such as Klarna, the payments are not listed he
|
|
|
57691
58480
|
|
|
57692
58481
|
// src/funcs/settlementsListRefunds.ts
|
|
57693
58482
|
function settlementsListRefunds(client, request, options) {
|
|
57694
|
-
return new APIPromise($
|
|
58483
|
+
return new APIPromise($do79(client, request, options));
|
|
57695
58484
|
}
|
|
57696
|
-
async function $
|
|
58485
|
+
async function $do79(client, request, options) {
|
|
57697
58486
|
const parsed = safeParse(request, (value) => ListSettlementRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
57698
58487
|
if (!parsed.ok) {
|
|
57699
58488
|
return [parsed, { status: "invalid" }];
|
|
@@ -57789,12 +58578,12 @@ var init_settlementsListRefunds = __esm(() => {
|
|
|
57789
58578
|
});
|
|
57790
58579
|
|
|
57791
58580
|
// src/mcp-server/tools/settlementsListRefunds.ts
|
|
57792
|
-
var
|
|
58581
|
+
var args79, tool$settlementsListRefunds;
|
|
57793
58582
|
var init_settlementsListRefunds2 = __esm(() => {
|
|
57794
58583
|
init_settlementsListRefunds();
|
|
57795
58584
|
init_operations();
|
|
57796
58585
|
init_tools();
|
|
57797
|
-
|
|
58586
|
+
args79 = {
|
|
57798
58587
|
request: ListSettlementRefundsRequest$inboundSchema
|
|
57799
58588
|
};
|
|
57800
58589
|
tool$settlementsListRefunds = {
|
|
@@ -57804,9 +58593,9 @@ var init_settlementsListRefunds2 = __esm(() => {
|
|
|
57804
58593
|
Retrieve all refunds 'deducted' from the given settlement.
|
|
57805
58594
|
|
|
57806
58595
|
The response is in the same format as the response of the [List refunds endpoint](list-refunds).`,
|
|
57807
|
-
args:
|
|
57808
|
-
tool: async (client,
|
|
57809
|
-
const [result, apiCall] = await settlementsListRefunds(client,
|
|
58596
|
+
args: args79,
|
|
58597
|
+
tool: async (client, args80, ctx) => {
|
|
58598
|
+
const [result, apiCall] = await settlementsListRefunds(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57810
58599
|
if (!result.ok) {
|
|
57811
58600
|
return {
|
|
57812
58601
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57821,9 +58610,9 @@ The response is in the same format as the response of the [List refunds endpoint
|
|
|
57821
58610
|
|
|
57822
58611
|
// src/funcs/subscriptionsAll.ts
|
|
57823
58612
|
function subscriptionsAll(client, request, options) {
|
|
57824
|
-
return new APIPromise($
|
|
58613
|
+
return new APIPromise($do80(client, request, options));
|
|
57825
58614
|
}
|
|
57826
|
-
async function $
|
|
58615
|
+
async function $do80(client, request, options) {
|
|
57827
58616
|
const parsed = safeParse(request, (value) => ListAllSubscriptionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57828
58617
|
if (!parsed.ok) {
|
|
57829
58618
|
return [parsed, { status: "invalid" }];
|
|
@@ -57913,12 +58702,12 @@ var init_subscriptionsAll = __esm(() => {
|
|
|
57913
58702
|
});
|
|
57914
58703
|
|
|
57915
58704
|
// src/mcp-server/tools/subscriptionsAll.ts
|
|
57916
|
-
var
|
|
58705
|
+
var args80, tool$subscriptionsAll;
|
|
57917
58706
|
var init_subscriptionsAll2 = __esm(() => {
|
|
57918
58707
|
init_subscriptionsAll();
|
|
57919
58708
|
init_operations();
|
|
57920
58709
|
init_tools();
|
|
57921
|
-
|
|
58710
|
+
args80 = {
|
|
57922
58711
|
request: ListAllSubscriptionsRequest$inboundSchema.optional()
|
|
57923
58712
|
};
|
|
57924
58713
|
tool$subscriptionsAll = {
|
|
@@ -57928,9 +58717,9 @@ var init_subscriptionsAll2 = __esm(() => {
|
|
|
57928
58717
|
Retrieve all subscriptions initiated across all your customers.
|
|
57929
58718
|
|
|
57930
58719
|
The results are paginated.`,
|
|
57931
|
-
args:
|
|
57932
|
-
tool: async (client,
|
|
57933
|
-
const [result, apiCall] = await subscriptionsAll(client,
|
|
58720
|
+
args: args80,
|
|
58721
|
+
tool: async (client, args81, ctx) => {
|
|
58722
|
+
const [result, apiCall] = await subscriptionsAll(client, args81.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57934
58723
|
if (!result.ok) {
|
|
57935
58724
|
return {
|
|
57936
58725
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57945,9 +58734,9 @@ The results are paginated.`,
|
|
|
57945
58734
|
|
|
57946
58735
|
// src/funcs/subscriptionsCancel.ts
|
|
57947
58736
|
function subscriptionsCancel(client, request, options) {
|
|
57948
|
-
return new APIPromise($
|
|
58737
|
+
return new APIPromise($do81(client, request, options));
|
|
57949
58738
|
}
|
|
57950
|
-
async function $
|
|
58739
|
+
async function $do81(client, request, options) {
|
|
57951
58740
|
const parsed = safeParse(request, (value) => CancelSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
57952
58741
|
if (!parsed.ok) {
|
|
57953
58742
|
return [parsed, { status: "invalid" }];
|
|
@@ -58042,12 +58831,12 @@ var init_subscriptionsCancel = __esm(() => {
|
|
|
58042
58831
|
});
|
|
58043
58832
|
|
|
58044
58833
|
// src/mcp-server/tools/subscriptionsCancel.ts
|
|
58045
|
-
var
|
|
58834
|
+
var args81, tool$subscriptionsCancel;
|
|
58046
58835
|
var init_subscriptionsCancel2 = __esm(() => {
|
|
58047
58836
|
init_subscriptionsCancel();
|
|
58048
58837
|
init_operations();
|
|
58049
58838
|
init_tools();
|
|
58050
|
-
|
|
58839
|
+
args81 = {
|
|
58051
58840
|
request: CancelSubscriptionRequest$inboundSchema
|
|
58052
58841
|
};
|
|
58053
58842
|
tool$subscriptionsCancel = {
|
|
@@ -58055,9 +58844,9 @@ var init_subscriptionsCancel2 = __esm(() => {
|
|
|
58055
58844
|
description: `Cancel subscription
|
|
58056
58845
|
|
|
58057
58846
|
Cancel an existing subscription. Canceling a subscription has no effect on the mandates of the customer.`,
|
|
58058
|
-
args:
|
|
58059
|
-
tool: async (client,
|
|
58060
|
-
const [result, apiCall] = await subscriptionsCancel(client,
|
|
58847
|
+
args: args81,
|
|
58848
|
+
tool: async (client, args82, ctx) => {
|
|
58849
|
+
const [result, apiCall] = await subscriptionsCancel(client, args82.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58061
58850
|
if (!result.ok) {
|
|
58062
58851
|
return {
|
|
58063
58852
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58072,9 +58861,9 @@ Cancel an existing subscription. Canceling a subscription has no effect on the m
|
|
|
58072
58861
|
|
|
58073
58862
|
// src/funcs/subscriptionsCreate.ts
|
|
58074
58863
|
function subscriptionsCreate(client, request, options) {
|
|
58075
|
-
return new APIPromise($
|
|
58864
|
+
return new APIPromise($do82(client, request, options));
|
|
58076
58865
|
}
|
|
58077
|
-
async function $
|
|
58866
|
+
async function $do82(client, request, options) {
|
|
58078
58867
|
const parsed = safeParse(request, (value) => CreateSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58079
58868
|
if (!parsed.ok) {
|
|
58080
58869
|
return [parsed, { status: "invalid" }];
|
|
@@ -58167,12 +58956,12 @@ var init_subscriptionsCreate = __esm(() => {
|
|
|
58167
58956
|
});
|
|
58168
58957
|
|
|
58169
58958
|
// src/mcp-server/tools/subscriptionsCreate.ts
|
|
58170
|
-
var
|
|
58959
|
+
var args82, tool$subscriptionsCreate;
|
|
58171
58960
|
var init_subscriptionsCreate2 = __esm(() => {
|
|
58172
58961
|
init_subscriptionsCreate();
|
|
58173
58962
|
init_operations();
|
|
58174
58963
|
init_tools();
|
|
58175
|
-
|
|
58964
|
+
args82 = {
|
|
58176
58965
|
request: CreateSubscriptionRequest$inboundSchema
|
|
58177
58966
|
};
|
|
58178
58967
|
tool$subscriptionsCreate = {
|
|
@@ -58198,9 +58987,9 @@ Your customer will be charged €20 every day, for five consecutive days.
|
|
|
58198
58987
|
\`amount[currency]="EUR"\` \`amount[value]="10.00"\` \`interval="1 month"\`
|
|
58199
58988
|
\`startDate="2018-04-30"\`
|
|
58200
58989
|
Your customer will be charged €10 on the last day of each month, starting in April 2018.`,
|
|
58201
|
-
args:
|
|
58202
|
-
tool: async (client,
|
|
58203
|
-
const [result, apiCall] = await subscriptionsCreate(client,
|
|
58990
|
+
args: args82,
|
|
58991
|
+
tool: async (client, args83, ctx) => {
|
|
58992
|
+
const [result, apiCall] = await subscriptionsCreate(client, args83.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58204
58993
|
if (!result.ok) {
|
|
58205
58994
|
return {
|
|
58206
58995
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58215,9 +59004,9 @@ Your customer will be charged €10 on the last day of each month, starting in A
|
|
|
58215
59004
|
|
|
58216
59005
|
// src/funcs/subscriptionsGet.ts
|
|
58217
59006
|
function subscriptionsGet(client, request, options) {
|
|
58218
|
-
return new APIPromise($
|
|
59007
|
+
return new APIPromise($do83(client, request, options));
|
|
58219
59008
|
}
|
|
58220
|
-
async function $
|
|
59009
|
+
async function $do83(client, request, options) {
|
|
58221
59010
|
const parsed = safeParse(request, (value) => GetSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58222
59011
|
if (!parsed.ok) {
|
|
58223
59012
|
return [parsed, { status: "invalid" }];
|
|
@@ -58315,12 +59104,12 @@ var init_subscriptionsGet = __esm(() => {
|
|
|
58315
59104
|
});
|
|
58316
59105
|
|
|
58317
59106
|
// src/mcp-server/tools/subscriptionsGet.ts
|
|
58318
|
-
var
|
|
59107
|
+
var args83, tool$subscriptionsGet;
|
|
58319
59108
|
var init_subscriptionsGet2 = __esm(() => {
|
|
58320
59109
|
init_subscriptionsGet();
|
|
58321
59110
|
init_operations();
|
|
58322
59111
|
init_tools();
|
|
58323
|
-
|
|
59112
|
+
args83 = {
|
|
58324
59113
|
request: GetSubscriptionRequest$inboundSchema
|
|
58325
59114
|
};
|
|
58326
59115
|
tool$subscriptionsGet = {
|
|
@@ -58328,9 +59117,9 @@ var init_subscriptionsGet2 = __esm(() => {
|
|
|
58328
59117
|
description: `Get subscription
|
|
58329
59118
|
|
|
58330
59119
|
Retrieve a single subscription by its ID and the ID of its parent customer.`,
|
|
58331
|
-
args:
|
|
58332
|
-
tool: async (client,
|
|
58333
|
-
const [result, apiCall] = await subscriptionsGet(client,
|
|
59120
|
+
args: args83,
|
|
59121
|
+
tool: async (client, args84, ctx) => {
|
|
59122
|
+
const [result, apiCall] = await subscriptionsGet(client, args84.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58334
59123
|
if (!result.ok) {
|
|
58335
59124
|
return {
|
|
58336
59125
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58345,9 +59134,9 @@ Retrieve a single subscription by its ID and the ID of its parent customer.`,
|
|
|
58345
59134
|
|
|
58346
59135
|
// src/funcs/subscriptionsList.ts
|
|
58347
59136
|
function subscriptionsList(client, request, options) {
|
|
58348
|
-
return new APIPromise($
|
|
59137
|
+
return new APIPromise($do84(client, request, options));
|
|
58349
59138
|
}
|
|
58350
|
-
async function $
|
|
59139
|
+
async function $do84(client, request, options) {
|
|
58351
59140
|
const parsed = safeParse(request, (value) => ListSubscriptionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58352
59141
|
if (!parsed.ok) {
|
|
58353
59142
|
return [parsed, { status: "invalid" }];
|
|
@@ -58443,12 +59232,12 @@ var init_subscriptionsList = __esm(() => {
|
|
|
58443
59232
|
});
|
|
58444
59233
|
|
|
58445
59234
|
// src/mcp-server/tools/subscriptionsList.ts
|
|
58446
|
-
var
|
|
59235
|
+
var args84, tool$subscriptionsList;
|
|
58447
59236
|
var init_subscriptionsList2 = __esm(() => {
|
|
58448
59237
|
init_subscriptionsList();
|
|
58449
59238
|
init_operations();
|
|
58450
59239
|
init_tools();
|
|
58451
|
-
|
|
59240
|
+
args84 = {
|
|
58452
59241
|
request: ListSubscriptionsRequest$inboundSchema
|
|
58453
59242
|
};
|
|
58454
59243
|
tool$subscriptionsList = {
|
|
@@ -58458,9 +59247,9 @@ var init_subscriptionsList2 = __esm(() => {
|
|
|
58458
59247
|
Retrieve all subscriptions of a customer.
|
|
58459
59248
|
|
|
58460
59249
|
The results are paginated.`,
|
|
58461
|
-
args:
|
|
58462
|
-
tool: async (client,
|
|
58463
|
-
const [result, apiCall] = await subscriptionsList(client,
|
|
59250
|
+
args: args84,
|
|
59251
|
+
tool: async (client, args85, ctx) => {
|
|
59252
|
+
const [result, apiCall] = await subscriptionsList(client, args85.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58464
59253
|
if (!result.ok) {
|
|
58465
59254
|
return {
|
|
58466
59255
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58475,9 +59264,9 @@ The results are paginated.`,
|
|
|
58475
59264
|
|
|
58476
59265
|
// src/funcs/subscriptionsListPayments.ts
|
|
58477
59266
|
function subscriptionsListPayments(client, request, options) {
|
|
58478
|
-
return new APIPromise($
|
|
59267
|
+
return new APIPromise($do85(client, request, options));
|
|
58479
59268
|
}
|
|
58480
|
-
async function $
|
|
59269
|
+
async function $do85(client, request, options) {
|
|
58481
59270
|
const parsed = safeParse(request, (value) => ListSubscriptionPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58482
59271
|
if (!parsed.ok) {
|
|
58483
59272
|
return [parsed, { status: "invalid" }];
|
|
@@ -58578,12 +59367,12 @@ var init_subscriptionsListPayments = __esm(() => {
|
|
|
58578
59367
|
});
|
|
58579
59368
|
|
|
58580
59369
|
// src/mcp-server/tools/subscriptionsListPayments.ts
|
|
58581
|
-
var
|
|
59370
|
+
var args85, tool$subscriptionsListPayments;
|
|
58582
59371
|
var init_subscriptionsListPayments2 = __esm(() => {
|
|
58583
59372
|
init_subscriptionsListPayments();
|
|
58584
59373
|
init_operations();
|
|
58585
59374
|
init_tools();
|
|
58586
|
-
|
|
59375
|
+
args85 = {
|
|
58587
59376
|
request: ListSubscriptionPaymentsRequest$inboundSchema
|
|
58588
59377
|
};
|
|
58589
59378
|
tool$subscriptionsListPayments = {
|
|
@@ -58593,9 +59382,9 @@ var init_subscriptionsListPayments2 = __esm(() => {
|
|
|
58593
59382
|
Retrieve all payments of a specific subscription.
|
|
58594
59383
|
|
|
58595
59384
|
The results are paginated.`,
|
|
58596
|
-
args:
|
|
58597
|
-
tool: async (client,
|
|
58598
|
-
const [result, apiCall] = await subscriptionsListPayments(client,
|
|
59385
|
+
args: args85,
|
|
59386
|
+
tool: async (client, args86, ctx) => {
|
|
59387
|
+
const [result, apiCall] = await subscriptionsListPayments(client, args86.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58599
59388
|
if (!result.ok) {
|
|
58600
59389
|
return {
|
|
58601
59390
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58610,9 +59399,9 @@ The results are paginated.`,
|
|
|
58610
59399
|
|
|
58611
59400
|
// src/funcs/subscriptionsUpdate.ts
|
|
58612
59401
|
function subscriptionsUpdate(client, request, options) {
|
|
58613
|
-
return new APIPromise($
|
|
59402
|
+
return new APIPromise($do86(client, request, options));
|
|
58614
59403
|
}
|
|
58615
|
-
async function $
|
|
59404
|
+
async function $do86(client, request, options) {
|
|
58616
59405
|
const parsed = safeParse(request, (value) => UpdateSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58617
59406
|
if (!parsed.ok) {
|
|
58618
59407
|
return [parsed, { status: "invalid" }];
|
|
@@ -58707,12 +59496,12 @@ var init_subscriptionsUpdate = __esm(() => {
|
|
|
58707
59496
|
});
|
|
58708
59497
|
|
|
58709
59498
|
// src/mcp-server/tools/subscriptionsUpdate.ts
|
|
58710
|
-
var
|
|
59499
|
+
var args86, tool$subscriptionsUpdate;
|
|
58711
59500
|
var init_subscriptionsUpdate2 = __esm(() => {
|
|
58712
59501
|
init_subscriptionsUpdate();
|
|
58713
59502
|
init_operations();
|
|
58714
59503
|
init_tools();
|
|
58715
|
-
|
|
59504
|
+
args86 = {
|
|
58716
59505
|
request: UpdateSubscriptionRequest$inboundSchema
|
|
58717
59506
|
};
|
|
58718
59507
|
tool$subscriptionsUpdate = {
|
|
@@ -58724,9 +59513,9 @@ Update an existing subscription.
|
|
|
58724
59513
|
Canceled subscriptions cannot be updated.
|
|
58725
59514
|
|
|
58726
59515
|
For an in-depth explanation of each parameter, refer to the [Create subscription](create-subscription) endpoint.`,
|
|
58727
|
-
args:
|
|
58728
|
-
tool: async (client,
|
|
58729
|
-
const [result, apiCall] = await subscriptionsUpdate(client,
|
|
59516
|
+
args: args86,
|
|
59517
|
+
tool: async (client, args87, ctx) => {
|
|
59518
|
+
const [result, apiCall] = await subscriptionsUpdate(client, args87.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58730
59519
|
if (!result.ok) {
|
|
58731
59520
|
return {
|
|
58732
59521
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58741,9 +59530,9 @@ For an in-depth explanation of each parameter, refer to the [Create subscription
|
|
|
58741
59530
|
|
|
58742
59531
|
// src/funcs/terminalsGet.ts
|
|
58743
59532
|
function terminalsGet(client, request, options) {
|
|
58744
|
-
return new APIPromise($
|
|
59533
|
+
return new APIPromise($do87(client, request, options));
|
|
58745
59534
|
}
|
|
58746
|
-
async function $
|
|
59535
|
+
async function $do87(client, request, options) {
|
|
58747
59536
|
const parsed = safeParse(request, (value) => GetTerminalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58748
59537
|
if (!parsed.ok) {
|
|
58749
59538
|
return [parsed, { status: "invalid" }];
|
|
@@ -58837,12 +59626,12 @@ var init_terminalsGet = __esm(() => {
|
|
|
58837
59626
|
});
|
|
58838
59627
|
|
|
58839
59628
|
// src/mcp-server/tools/terminalsGet.ts
|
|
58840
|
-
var
|
|
59629
|
+
var args87, tool$terminalsGet;
|
|
58841
59630
|
var init_terminalsGet2 = __esm(() => {
|
|
58842
59631
|
init_terminalsGet();
|
|
58843
59632
|
init_operations();
|
|
58844
59633
|
init_tools();
|
|
58845
|
-
|
|
59634
|
+
args87 = {
|
|
58846
59635
|
request: GetTerminalRequest$inboundSchema
|
|
58847
59636
|
};
|
|
58848
59637
|
tool$terminalsGet = {
|
|
@@ -58850,9 +59639,9 @@ var init_terminalsGet2 = __esm(() => {
|
|
|
58850
59639
|
description: `Get terminal
|
|
58851
59640
|
|
|
58852
59641
|
Retrieve a single terminal by its ID.`,
|
|
58853
|
-
args:
|
|
58854
|
-
tool: async (client,
|
|
58855
|
-
const [result, apiCall] = await terminalsGet(client,
|
|
59642
|
+
args: args87,
|
|
59643
|
+
tool: async (client, args88, ctx) => {
|
|
59644
|
+
const [result, apiCall] = await terminalsGet(client, args88.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58856
59645
|
if (!result.ok) {
|
|
58857
59646
|
return {
|
|
58858
59647
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58867,9 +59656,9 @@ Retrieve a single terminal by its ID.`,
|
|
|
58867
59656
|
|
|
58868
59657
|
// src/funcs/terminalsList.ts
|
|
58869
59658
|
function terminalsList(client, request, options) {
|
|
58870
|
-
return new APIPromise($
|
|
59659
|
+
return new APIPromise($do88(client, request, options));
|
|
58871
59660
|
}
|
|
58872
|
-
async function $
|
|
59661
|
+
async function $do88(client, request, options) {
|
|
58873
59662
|
const parsed = safeParse(request, (value) => ListTerminalsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
58874
59663
|
if (!parsed.ok) {
|
|
58875
59664
|
return [parsed, { status: "invalid" }];
|
|
@@ -58959,12 +59748,12 @@ var init_terminalsList = __esm(() => {
|
|
|
58959
59748
|
});
|
|
58960
59749
|
|
|
58961
59750
|
// src/mcp-server/tools/terminalsList.ts
|
|
58962
|
-
var
|
|
59751
|
+
var args88, tool$terminalsList;
|
|
58963
59752
|
var init_terminalsList2 = __esm(() => {
|
|
58964
59753
|
init_terminalsList();
|
|
58965
59754
|
init_operations();
|
|
58966
59755
|
init_tools();
|
|
58967
|
-
|
|
59756
|
+
args88 = {
|
|
58968
59757
|
request: ListTerminalsRequest$inboundSchema.optional()
|
|
58969
59758
|
};
|
|
58970
59759
|
tool$terminalsList = {
|
|
@@ -58974,9 +59763,9 @@ var init_terminalsList2 = __esm(() => {
|
|
|
58974
59763
|
Retrieve a list of all physical point-of-sale devices.
|
|
58975
59764
|
|
|
58976
59765
|
The results are paginated.`,
|
|
58977
|
-
args:
|
|
58978
|
-
tool: async (client,
|
|
58979
|
-
const [result, apiCall] = await terminalsList(client,
|
|
59766
|
+
args: args88,
|
|
59767
|
+
tool: async (client, args89, ctx) => {
|
|
59768
|
+
const [result, apiCall] = await terminalsList(client, args89.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58980
59769
|
if (!result.ok) {
|
|
58981
59770
|
return {
|
|
58982
59771
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58991,9 +59780,9 @@ The results are paginated.`,
|
|
|
58991
59780
|
|
|
58992
59781
|
// src/funcs/walletsRequestApplePaySession.ts
|
|
58993
59782
|
function walletsRequestApplePaySession(client, request, options) {
|
|
58994
|
-
return new APIPromise($
|
|
59783
|
+
return new APIPromise($do89(client, request, options));
|
|
58995
59784
|
}
|
|
58996
|
-
async function $
|
|
59785
|
+
async function $do89(client, request, options) {
|
|
58997
59786
|
const parsed = safeParse(request, (value) => RequestApplePayPaymentSessionRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
58998
59787
|
if (!parsed.ok) {
|
|
58999
59788
|
return [parsed, { status: "invalid" }];
|
|
@@ -59076,12 +59865,12 @@ var init_walletsRequestApplePaySession = __esm(() => {
|
|
|
59076
59865
|
});
|
|
59077
59866
|
|
|
59078
59867
|
// src/mcp-server/tools/walletsRequestApplePaySession.ts
|
|
59079
|
-
var
|
|
59868
|
+
var args89, tool$walletsRequestApplePaySession;
|
|
59080
59869
|
var init_walletsRequestApplePaySession2 = __esm(() => {
|
|
59081
59870
|
init_walletsRequestApplePaySession();
|
|
59082
59871
|
init_operations();
|
|
59083
59872
|
init_tools();
|
|
59084
|
-
|
|
59873
|
+
args89 = {
|
|
59085
59874
|
request: RequestApplePayPaymentSessionRequest$inboundSchema.optional()
|
|
59086
59875
|
};
|
|
59087
59876
|
tool$walletsRequestApplePaySession = {
|
|
@@ -59107,9 +59896,9 @@ expire after five minutes.
|
|
|
59107
59896
|
Payment sessions cannot be requested directly from the browser. The request must be sent from your server. For the
|
|
59108
59897
|
full documentation, see the official
|
|
59109
59898
|
[Apple Pay JS API](https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_js_api) documentation.`,
|
|
59110
|
-
args:
|
|
59111
|
-
tool: async (client,
|
|
59112
|
-
const [result, apiCall] = await walletsRequestApplePaySession(client,
|
|
59899
|
+
args: args89,
|
|
59900
|
+
tool: async (client, args90, ctx) => {
|
|
59901
|
+
const [result, apiCall] = await walletsRequestApplePaySession(client, args90.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59113
59902
|
if (!result.ok) {
|
|
59114
59903
|
return {
|
|
59115
59904
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59124,9 +59913,9 @@ full documentation, see the official
|
|
|
59124
59913
|
|
|
59125
59914
|
// src/funcs/webhookEventsGet.ts
|
|
59126
59915
|
function webhookEventsGet(client, request, options) {
|
|
59127
|
-
return new APIPromise($
|
|
59916
|
+
return new APIPromise($do90(client, request, options));
|
|
59128
59917
|
}
|
|
59129
|
-
async function $
|
|
59918
|
+
async function $do90(client, request, options) {
|
|
59130
59919
|
const parsed = safeParse(request, (value) => GetWebhookEventRequest$outboundSchema.parse(value), "Input validation failed");
|
|
59131
59920
|
if (!parsed.ok) {
|
|
59132
59921
|
return [parsed, { status: "invalid" }];
|
|
@@ -59220,12 +60009,12 @@ var init_webhookEventsGet = __esm(() => {
|
|
|
59220
60009
|
});
|
|
59221
60010
|
|
|
59222
60011
|
// src/mcp-server/tools/webhookEventsGet.ts
|
|
59223
|
-
var
|
|
60012
|
+
var args90, tool$webhookEventsGet;
|
|
59224
60013
|
var init_webhookEventsGet2 = __esm(() => {
|
|
59225
60014
|
init_webhookEventsGet();
|
|
59226
60015
|
init_operations();
|
|
59227
60016
|
init_tools();
|
|
59228
|
-
|
|
60017
|
+
args90 = {
|
|
59229
60018
|
request: GetWebhookEventRequest$inboundSchema
|
|
59230
60019
|
};
|
|
59231
60020
|
tool$webhookEventsGet = {
|
|
@@ -59233,9 +60022,9 @@ var init_webhookEventsGet2 = __esm(() => {
|
|
|
59233
60022
|
description: `Get a Webhook Event
|
|
59234
60023
|
|
|
59235
60024
|
Retrieve a single webhook event object by its event ID.`,
|
|
59236
|
-
args:
|
|
59237
|
-
tool: async (client,
|
|
59238
|
-
const [result, apiCall] = await webhookEventsGet(client,
|
|
60025
|
+
args: args90,
|
|
60026
|
+
tool: async (client, args91, ctx) => {
|
|
60027
|
+
const [result, apiCall] = await webhookEventsGet(client, args91.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59239
60028
|
if (!result.ok) {
|
|
59240
60029
|
return {
|
|
59241
60030
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59250,9 +60039,9 @@ Retrieve a single webhook event object by its event ID.`,
|
|
|
59250
60039
|
|
|
59251
60040
|
// src/funcs/webhooksCreate.ts
|
|
59252
60041
|
function webhooksCreate(client, request, options) {
|
|
59253
|
-
return new APIPromise($
|
|
60042
|
+
return new APIPromise($do91(client, request, options));
|
|
59254
60043
|
}
|
|
59255
|
-
async function $
|
|
60044
|
+
async function $do91(client, request, options) {
|
|
59256
60045
|
const parsed = safeParse(request, (value) => CreateWebhookRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
59257
60046
|
if (!parsed.ok) {
|
|
59258
60047
|
return [parsed, { status: "invalid" }];
|
|
@@ -59337,12 +60126,12 @@ var init_webhooksCreate = __esm(() => {
|
|
|
59337
60126
|
});
|
|
59338
60127
|
|
|
59339
60128
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
59340
|
-
var
|
|
60129
|
+
var args91, tool$webhooksCreate;
|
|
59341
60130
|
var init_webhooksCreate2 = __esm(() => {
|
|
59342
60131
|
init_webhooksCreate();
|
|
59343
60132
|
init_operations();
|
|
59344
60133
|
init_tools();
|
|
59345
|
-
|
|
60134
|
+
args91 = {
|
|
59346
60135
|
request: CreateWebhookRequest$inboundSchema.optional()
|
|
59347
60136
|
};
|
|
59348
60137
|
tool$webhooksCreate = {
|
|
@@ -59350,9 +60139,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
59350
60139
|
description: `Create a webhook
|
|
59351
60140
|
|
|
59352
60141
|
A webhook must have a name, an url and a list of event types. You can also create webhooks in the webhooks settings section of the Dashboard.`,
|
|
59353
|
-
args:
|
|
59354
|
-
tool: async (client,
|
|
59355
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
60142
|
+
args: args91,
|
|
60143
|
+
tool: async (client, args92, ctx) => {
|
|
60144
|
+
const [result, apiCall] = await webhooksCreate(client, args92.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59356
60145
|
if (!result.ok) {
|
|
59357
60146
|
return {
|
|
59358
60147
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59367,9 +60156,9 @@ A webhook must have a name, an url and a list of event types. You can also creat
|
|
|
59367
60156
|
|
|
59368
60157
|
// src/funcs/webhooksDelete.ts
|
|
59369
60158
|
function webhooksDelete(client, request, options) {
|
|
59370
|
-
return new APIPromise($
|
|
60159
|
+
return new APIPromise($do92(client, request, options));
|
|
59371
60160
|
}
|
|
59372
|
-
async function $
|
|
60161
|
+
async function $do92(client, request, options) {
|
|
59373
60162
|
const parsed = safeParse(request, (value) => DeleteWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
59374
60163
|
if (!parsed.ok) {
|
|
59375
60164
|
return [parsed, { status: "invalid" }];
|
|
@@ -59458,12 +60247,12 @@ var init_webhooksDelete = __esm(() => {
|
|
|
59458
60247
|
});
|
|
59459
60248
|
|
|
59460
60249
|
// src/mcp-server/tools/webhooksDelete.ts
|
|
59461
|
-
var
|
|
60250
|
+
var args92, tool$webhooksDelete;
|
|
59462
60251
|
var init_webhooksDelete2 = __esm(() => {
|
|
59463
60252
|
init_webhooksDelete();
|
|
59464
60253
|
init_operations();
|
|
59465
60254
|
init_tools();
|
|
59466
|
-
|
|
60255
|
+
args92 = {
|
|
59467
60256
|
request: DeleteWebhookRequest$inboundSchema
|
|
59468
60257
|
};
|
|
59469
60258
|
tool$webhooksDelete = {
|
|
@@ -59471,9 +60260,9 @@ var init_webhooksDelete2 = __esm(() => {
|
|
|
59471
60260
|
description: `Delete a webhook
|
|
59472
60261
|
|
|
59473
60262
|
Delete a single webhook object by its webhook ID.`,
|
|
59474
|
-
args:
|
|
59475
|
-
tool: async (client,
|
|
59476
|
-
const [result, apiCall] = await webhooksDelete(client,
|
|
60263
|
+
args: args92,
|
|
60264
|
+
tool: async (client, args93, ctx) => {
|
|
60265
|
+
const [result, apiCall] = await webhooksDelete(client, args93.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59477
60266
|
if (!result.ok) {
|
|
59478
60267
|
return {
|
|
59479
60268
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59488,9 +60277,9 @@ Delete a single webhook object by its webhook ID.`,
|
|
|
59488
60277
|
|
|
59489
60278
|
// src/funcs/webhooksGet.ts
|
|
59490
60279
|
function webhooksGet(client, request, options) {
|
|
59491
|
-
return new APIPromise($
|
|
60280
|
+
return new APIPromise($do93(client, request, options));
|
|
59492
60281
|
}
|
|
59493
|
-
async function $
|
|
60282
|
+
async function $do93(client, request, options) {
|
|
59494
60283
|
const parsed = safeParse(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
59495
60284
|
if (!parsed.ok) {
|
|
59496
60285
|
return [parsed, { status: "invalid" }];
|
|
@@ -59584,12 +60373,12 @@ var init_webhooksGet = __esm(() => {
|
|
|
59584
60373
|
});
|
|
59585
60374
|
|
|
59586
60375
|
// src/mcp-server/tools/webhooksGet.ts
|
|
59587
|
-
var
|
|
60376
|
+
var args93, tool$webhooksGet;
|
|
59588
60377
|
var init_webhooksGet2 = __esm(() => {
|
|
59589
60378
|
init_webhooksGet();
|
|
59590
60379
|
init_operations();
|
|
59591
60380
|
init_tools();
|
|
59592
|
-
|
|
60381
|
+
args93 = {
|
|
59593
60382
|
request: GetWebhookRequest$inboundSchema
|
|
59594
60383
|
};
|
|
59595
60384
|
tool$webhooksGet = {
|
|
@@ -59597,9 +60386,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
59597
60386
|
description: `Get a webhook
|
|
59598
60387
|
|
|
59599
60388
|
Retrieve a single webhook object by its ID.`,
|
|
59600
|
-
args:
|
|
59601
|
-
tool: async (client,
|
|
59602
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
60389
|
+
args: args93,
|
|
60390
|
+
tool: async (client, args94, ctx) => {
|
|
60391
|
+
const [result, apiCall] = await webhooksGet(client, args94.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59603
60392
|
if (!result.ok) {
|
|
59604
60393
|
return {
|
|
59605
60394
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59614,9 +60403,9 @@ Retrieve a single webhook object by its ID.`,
|
|
|
59614
60403
|
|
|
59615
60404
|
// src/funcs/webhooksList.ts
|
|
59616
60405
|
function webhooksList(client, request, options) {
|
|
59617
|
-
return new APIPromise($
|
|
60406
|
+
return new APIPromise($do94(client, request, options));
|
|
59618
60407
|
}
|
|
59619
|
-
async function $
|
|
60408
|
+
async function $do94(client, request, options) {
|
|
59620
60409
|
const parsed = safeParse(request, (value) => ListWebhooksRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
59621
60410
|
if (!parsed.ok) {
|
|
59622
60411
|
return [parsed, { status: "invalid" }];
|
|
@@ -59707,12 +60496,12 @@ var init_webhooksList = __esm(() => {
|
|
|
59707
60496
|
});
|
|
59708
60497
|
|
|
59709
60498
|
// src/mcp-server/tools/webhooksList.ts
|
|
59710
|
-
var
|
|
60499
|
+
var args94, tool$webhooksList;
|
|
59711
60500
|
var init_webhooksList2 = __esm(() => {
|
|
59712
60501
|
init_webhooksList();
|
|
59713
60502
|
init_operations();
|
|
59714
60503
|
init_tools();
|
|
59715
|
-
|
|
60504
|
+
args94 = {
|
|
59716
60505
|
request: ListWebhooksRequest$inboundSchema.optional()
|
|
59717
60506
|
};
|
|
59718
60507
|
tool$webhooksList = {
|
|
@@ -59720,9 +60509,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
59720
60509
|
description: `List all webhooks
|
|
59721
60510
|
|
|
59722
60511
|
Returns a paginated list of your webhooks. If no webhook endpoints are available, the resulting array will be empty. This request should never throw an error.`,
|
|
59723
|
-
args:
|
|
59724
|
-
tool: async (client,
|
|
59725
|
-
const [result, apiCall] = await webhooksList(client,
|
|
60512
|
+
args: args94,
|
|
60513
|
+
tool: async (client, args95, ctx) => {
|
|
60514
|
+
const [result, apiCall] = await webhooksList(client, args95.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59726
60515
|
if (!result.ok) {
|
|
59727
60516
|
return {
|
|
59728
60517
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59737,9 +60526,9 @@ Returns a paginated list of your webhooks. If no webhook endpoints are available
|
|
|
59737
60526
|
|
|
59738
60527
|
// src/funcs/webhooksTest.ts
|
|
59739
60528
|
function webhooksTest(client, request, options) {
|
|
59740
|
-
return new APIPromise($
|
|
60529
|
+
return new APIPromise($do95(client, request, options));
|
|
59741
60530
|
}
|
|
59742
|
-
async function $
|
|
60531
|
+
async function $do95(client, request, options) {
|
|
59743
60532
|
const parsed = safeParse(request, (value) => TestWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
59744
60533
|
if (!parsed.ok) {
|
|
59745
60534
|
return [parsed, { status: "invalid" }];
|
|
@@ -59828,12 +60617,12 @@ var init_webhooksTest = __esm(() => {
|
|
|
59828
60617
|
});
|
|
59829
60618
|
|
|
59830
60619
|
// src/mcp-server/tools/webhooksTest.ts
|
|
59831
|
-
var
|
|
60620
|
+
var args95, tool$webhooksTest;
|
|
59832
60621
|
var init_webhooksTest2 = __esm(() => {
|
|
59833
60622
|
init_webhooksTest();
|
|
59834
60623
|
init_operations();
|
|
59835
60624
|
init_tools();
|
|
59836
|
-
|
|
60625
|
+
args95 = {
|
|
59837
60626
|
request: TestWebhookRequest$inboundSchema
|
|
59838
60627
|
};
|
|
59839
60628
|
tool$webhooksTest = {
|
|
@@ -59841,9 +60630,9 @@ var init_webhooksTest2 = __esm(() => {
|
|
|
59841
60630
|
description: `Test a webhook
|
|
59842
60631
|
|
|
59843
60632
|
Sends a test event to the webhook to verify the endpoint is working as expected.`,
|
|
59844
|
-
args:
|
|
59845
|
-
tool: async (client,
|
|
59846
|
-
const [result, apiCall] = await webhooksTest(client,
|
|
60633
|
+
args: args95,
|
|
60634
|
+
tool: async (client, args96, ctx) => {
|
|
60635
|
+
const [result, apiCall] = await webhooksTest(client, args96.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59847
60636
|
if (!result.ok) {
|
|
59848
60637
|
return {
|
|
59849
60638
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59858,9 +60647,9 @@ Sends a test event to the webhook to verify the endpoint is working as expected.
|
|
|
59858
60647
|
|
|
59859
60648
|
// src/funcs/webhooksUpdate.ts
|
|
59860
60649
|
function webhooksUpdate(client, request, options) {
|
|
59861
|
-
return new APIPromise($
|
|
60650
|
+
return new APIPromise($do96(client, request, options));
|
|
59862
60651
|
}
|
|
59863
|
-
async function $
|
|
60652
|
+
async function $do96(client, request, options) {
|
|
59864
60653
|
const parsed = safeParse(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
59865
60654
|
if (!parsed.ok) {
|
|
59866
60655
|
return [parsed, { status: "invalid" }];
|
|
@@ -59951,12 +60740,12 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
59951
60740
|
});
|
|
59952
60741
|
|
|
59953
60742
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
59954
|
-
var
|
|
60743
|
+
var args96, tool$webhooksUpdate;
|
|
59955
60744
|
var init_webhooksUpdate2 = __esm(() => {
|
|
59956
60745
|
init_webhooksUpdate();
|
|
59957
60746
|
init_operations();
|
|
59958
60747
|
init_tools();
|
|
59959
|
-
|
|
60748
|
+
args96 = {
|
|
59960
60749
|
request: UpdateWebhookRequest$inboundSchema
|
|
59961
60750
|
};
|
|
59962
60751
|
tool$webhooksUpdate = {
|
|
@@ -59964,9 +60753,9 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
59964
60753
|
description: `Update a webhook
|
|
59965
60754
|
|
|
59966
60755
|
Updates the webhook. You may edit the name, url and the list of subscribed event types.`,
|
|
59967
|
-
args:
|
|
59968
|
-
tool: async (client,
|
|
59969
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
60756
|
+
args: args96,
|
|
60757
|
+
tool: async (client, args97, ctx) => {
|
|
60758
|
+
const [result, apiCall] = await webhooksUpdate(client, args97.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59970
60759
|
if (!result.ok) {
|
|
59971
60760
|
return {
|
|
59972
60761
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59983,7 +60772,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
|
|
|
59983
60772
|
function createMCPServer(deps) {
|
|
59984
60773
|
const server = new McpServer({
|
|
59985
60774
|
name: "Client",
|
|
59986
|
-
version: "0.
|
|
60775
|
+
version: "0.3.0"
|
|
59987
60776
|
});
|
|
59988
60777
|
const client = new ClientCore({
|
|
59989
60778
|
security: deps.security,
|
|
@@ -60036,6 +60825,9 @@ function createMCPServer(deps) {
|
|
|
60036
60825
|
tool(tool$webhooksDelete);
|
|
60037
60826
|
tool(tool$webhooksTest);
|
|
60038
60827
|
tool(tool$webhookEventsGet);
|
|
60828
|
+
tool(tool$balanceTransfersCreate);
|
|
60829
|
+
tool(tool$balanceTransfersList);
|
|
60830
|
+
tool(tool$balanceTransfersGet);
|
|
60039
60831
|
tool(tool$paymentsCreate);
|
|
60040
60832
|
tool(tool$paymentsList);
|
|
60041
60833
|
tool(tool$paymentsGet);
|
|
@@ -60102,6 +60894,9 @@ var init_server2 = __esm(() => {
|
|
|
60102
60894
|
init_balancesGetReport2();
|
|
60103
60895
|
init_balancesList2();
|
|
60104
60896
|
init_balancesListTransactions2();
|
|
60897
|
+
init_balanceTransfersCreate2();
|
|
60898
|
+
init_balanceTransfersGet2();
|
|
60899
|
+
init_balanceTransfersList2();
|
|
60105
60900
|
init_capabilitiesList2();
|
|
60106
60901
|
init_capturesCreate2();
|
|
60107
60902
|
init_capturesGet2();
|
|
@@ -61372,7 +62167,7 @@ var routes = an({
|
|
|
61372
62167
|
var app = He(routes, {
|
|
61373
62168
|
name: "mcp",
|
|
61374
62169
|
versionInfo: {
|
|
61375
|
-
currentVersion: "0.
|
|
62170
|
+
currentVersion: "0.3.0"
|
|
61376
62171
|
}
|
|
61377
62172
|
});
|
|
61378
62173
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -61380,5 +62175,5 @@ export {
|
|
|
61380
62175
|
app
|
|
61381
62176
|
};
|
|
61382
62177
|
|
|
61383
|
-
//# debugId=
|
|
62178
|
+
//# debugId=73678A33F322389864756E2164756E21
|
|
61384
62179
|
//# sourceMappingURL=mcp-server.js.map
|