mollie-api-typescript 1.2.2 → 1.2.4
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/FUNCTIONS.md +1 -1
- package/README.md +14 -7
- package/bin/mcp-server.js +742 -258
- package/bin/mcp-server.js.map +25 -14
- package/dist/commonjs/funcs/capabilitiesList.d.ts +3 -0
- package/dist/commonjs/funcs/capabilitiesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/capabilitiesList.js +3 -0
- package/dist/commonjs/funcs/capabilitiesList.js.map +1 -1
- package/dist/commonjs/funcs/sessionsCreate.d.ts +23 -0
- package/dist/commonjs/funcs/sessionsCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/sessionsCreate.js +139 -0
- package/dist/commonjs/funcs/sessionsCreate.js.map +1 -0
- package/dist/commonjs/funcs/sessionsGet.d.ts +22 -0
- package/dist/commonjs/funcs/sessionsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/sessionsGet.js +136 -0
- package/dist/commonjs/funcs/sessionsGet.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- 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 +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/capabilitiesList.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/capabilitiesList.js +3 -0
- package/dist/commonjs/mcp-server/tools/capabilitiesList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/sessionsCreate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/sessionsCreate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/sessionsCreate.js +68 -0
- package/dist/commonjs/mcp-server/tools/sessionsCreate.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/sessionsGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/sessionsGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/sessionsGet.js +68 -0
- package/dist/commonjs/mcp-server/tools/sessionsGet.js.map +1 -0
- package/dist/commonjs/models/entitybalancetransaction.d.ts +8 -8
- package/dist/commonjs/models/entitybalancetransaction.d.ts.map +1 -1
- package/dist/commonjs/models/entitybalancetransaction.js +11 -11
- package/dist/commonjs/models/entitybalancetransaction.js.map +1 -1
- package/dist/commonjs/models/entitycapabilityrequirement.d.ts +2 -1
- package/dist/commonjs/models/entitycapabilityrequirement.d.ts.map +1 -1
- package/dist/commonjs/models/entitycapabilityrequirement.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +6 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +6 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/createsession.d.ts +23 -0
- package/dist/commonjs/models/operations/createsession.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createsession.js +72 -0
- package/dist/commonjs/models/operations/createsession.js.map +1 -0
- package/dist/commonjs/models/operations/getmethod.d.ts +1 -1
- package/dist/commonjs/models/operations/getmethod.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmethod.js +2 -2
- package/dist/commonjs/models/operations/getmethod.js.map +1 -1
- package/dist/commonjs/models/operations/getsession.d.ts +25 -0
- package/dist/commonjs/models/operations/getsession.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getsession.js +69 -0
- package/dist/commonjs/models/operations/getsession.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/sessionlineitem.d.ts +84 -0
- package/dist/commonjs/models/sessionlineitem.d.ts.map +1 -0
- package/dist/commonjs/models/sessionlineitem.js +82 -0
- package/dist/commonjs/models/sessionlineitem.js.map +1 -0
- package/dist/commonjs/models/sessionlineitemresponse.d.ts +84 -0
- package/dist/commonjs/models/sessionlineitemresponse.d.ts.map +1 -0
- package/dist/commonjs/models/sessionlineitemresponse.js +82 -0
- package/dist/commonjs/models/sessionlineitemresponse.js.map +1 -0
- package/dist/commonjs/models/sessionrequest.d.ts +119 -0
- package/dist/commonjs/models/sessionrequest.d.ts.map +1 -0
- package/dist/commonjs/models/sessionrequest.js +100 -0
- package/dist/commonjs/models/sessionrequest.js.map +1 -0
- package/dist/commonjs/models/sessionresponse.d.ts +181 -0
- package/dist/commonjs/models/sessionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/sessionresponse.js +152 -0
- package/dist/commonjs/models/sessionresponse.js.map +1 -0
- package/dist/commonjs/models/sessionsequencetype.d.ts +12 -0
- package/dist/commonjs/models/sessionsequencetype.d.ts.map +1 -0
- package/dist/commonjs/models/sessionsequencetype.js +49 -0
- package/dist/commonjs/models/sessionsequencetype.js.map +1 -0
- package/dist/commonjs/models/sessionsequencetyperesponse.d.ts +12 -0
- package/dist/commonjs/models/sessionsequencetyperesponse.d.ts.map +1 -0
- package/dist/commonjs/models/sessionsequencetyperesponse.js +49 -0
- package/dist/commonjs/models/sessionsequencetyperesponse.js.map +1 -0
- package/dist/commonjs/sdk/capabilities.d.ts +3 -0
- package/dist/commonjs/sdk/capabilities.d.ts.map +1 -1
- package/dist/commonjs/sdk/capabilities.js +3 -0
- package/dist/commonjs/sdk/capabilities.js.map +1 -1
- 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/commonjs/sdk/sessions.d.ts +28 -0
- package/dist/commonjs/sdk/sessions.d.ts.map +1 -0
- package/dist/commonjs/sdk/sessions.js +40 -0
- package/dist/commonjs/sdk/sessions.js.map +1 -0
- package/dist/esm/funcs/capabilitiesList.d.ts +3 -0
- package/dist/esm/funcs/capabilitiesList.d.ts.map +1 -1
- package/dist/esm/funcs/capabilitiesList.js +3 -0
- package/dist/esm/funcs/capabilitiesList.js.map +1 -1
- package/dist/esm/funcs/sessionsCreate.d.ts +23 -0
- package/dist/esm/funcs/sessionsCreate.d.ts.map +1 -0
- package/dist/esm/funcs/sessionsCreate.js +103 -0
- package/dist/esm/funcs/sessionsCreate.js.map +1 -0
- package/dist/esm/funcs/sessionsGet.d.ts +22 -0
- package/dist/esm/funcs/sessionsGet.d.ts.map +1 -0
- package/dist/esm/funcs/sessionsGet.js +100 -0
- package/dist/esm/funcs/sessionsGet.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- 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 +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/capabilitiesList.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/capabilitiesList.js +3 -0
- package/dist/esm/mcp-server/tools/capabilitiesList.js.map +1 -1
- package/dist/esm/mcp-server/tools/sessionsCreate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/sessionsCreate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/sessionsCreate.js +32 -0
- package/dist/esm/mcp-server/tools/sessionsCreate.js.map +1 -0
- package/dist/esm/mcp-server/tools/sessionsGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/sessionsGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/sessionsGet.js +32 -0
- package/dist/esm/mcp-server/tools/sessionsGet.js.map +1 -0
- package/dist/esm/models/entitybalancetransaction.d.ts +8 -8
- package/dist/esm/models/entitybalancetransaction.d.ts.map +1 -1
- package/dist/esm/models/entitybalancetransaction.js +8 -8
- package/dist/esm/models/entitybalancetransaction.js.map +1 -1
- package/dist/esm/models/entitycapabilityrequirement.d.ts +2 -1
- package/dist/esm/models/entitycapabilityrequirement.d.ts.map +1 -1
- package/dist/esm/models/entitycapabilityrequirement.js.map +1 -1
- package/dist/esm/models/index.d.ts +6 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +6 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/createsession.d.ts +23 -0
- package/dist/esm/models/operations/createsession.d.ts.map +1 -0
- package/dist/esm/models/operations/createsession.js +34 -0
- package/dist/esm/models/operations/createsession.js.map +1 -0
- package/dist/esm/models/operations/getmethod.d.ts +1 -1
- package/dist/esm/models/operations/getmethod.d.ts.map +1 -1
- package/dist/esm/models/operations/getmethod.js +2 -2
- package/dist/esm/models/operations/getmethod.js.map +1 -1
- package/dist/esm/models/operations/getsession.d.ts +25 -0
- package/dist/esm/models/operations/getsession.d.ts.map +1 -0
- package/dist/esm/models/operations/getsession.js +31 -0
- package/dist/esm/models/operations/getsession.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/sessionlineitem.d.ts +84 -0
- package/dist/esm/models/sessionlineitem.d.ts.map +1 -0
- package/dist/esm/models/sessionlineitem.js +44 -0
- package/dist/esm/models/sessionlineitem.js.map +1 -0
- package/dist/esm/models/sessionlineitemresponse.d.ts +84 -0
- package/dist/esm/models/sessionlineitemresponse.d.ts.map +1 -0
- package/dist/esm/models/sessionlineitemresponse.js +44 -0
- package/dist/esm/models/sessionlineitemresponse.js.map +1 -0
- package/dist/esm/models/sessionrequest.d.ts +119 -0
- package/dist/esm/models/sessionrequest.d.ts.map +1 -0
- package/dist/esm/models/sessionrequest.js +60 -0
- package/dist/esm/models/sessionrequest.js.map +1 -0
- package/dist/esm/models/sessionresponse.d.ts +181 -0
- package/dist/esm/models/sessionresponse.d.ts.map +1 -0
- package/dist/esm/models/sessionresponse.js +110 -0
- package/dist/esm/models/sessionresponse.js.map +1 -0
- package/dist/esm/models/sessionsequencetype.d.ts +12 -0
- package/dist/esm/models/sessionsequencetype.d.ts.map +1 -0
- package/dist/esm/models/sessionsequencetype.js +13 -0
- package/dist/esm/models/sessionsequencetype.js.map +1 -0
- package/dist/esm/models/sessionsequencetyperesponse.d.ts +12 -0
- package/dist/esm/models/sessionsequencetyperesponse.d.ts.map +1 -0
- package/dist/esm/models/sessionsequencetyperesponse.js +13 -0
- package/dist/esm/models/sessionsequencetyperesponse.js.map +1 -0
- package/dist/esm/sdk/capabilities.d.ts +3 -0
- package/dist/esm/sdk/capabilities.d.ts.map +1 -1
- package/dist/esm/sdk/capabilities.js +3 -0
- package/dist/esm/sdk/capabilities.js.map +1 -1
- 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/dist/esm/sdk/sessions.d.ts +28 -0
- package/dist/esm/sdk/sessions.d.ts.map +1 -0
- package/dist/esm/sdk/sessions.js +36 -0
- package/dist/esm/sdk/sessions.js.map +1 -0
- package/examples/balancesList.example.ts +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/capabilitiesList.ts +3 -0
- package/src/funcs/sessionsCreate.ts +195 -0
- package/src/funcs/sessionsGet.ts +187 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/capabilitiesList.ts +3 -0
- package/src/mcp-server/tools/sessionsCreate.ts +41 -0
- package/src/mcp-server/tools/sessionsGet.ts +41 -0
- package/src/models/entitybalancetransaction.ts +33 -20
- package/src/models/entitycapabilityrequirement.ts +2 -1
- package/src/models/index.ts +6 -1
- package/src/models/operations/createsession.ts +70 -0
- package/src/models/operations/getmethod.ts +3 -3
- package/src/models/operations/getsession.ts +70 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/sessionlineitem.ts +147 -0
- package/src/models/sessionlineitemresponse.ts +149 -0
- package/src/models/sessionrequest.ts +216 -0
- package/src/models/sessionresponse.ts +347 -0
- package/src/models/sessionsequencetype.ts +21 -0
- package/src/models/sessionsequencetyperesponse.ts +28 -0
- package/src/sdk/capabilities.ts +3 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/sessions.ts +54 -0
- package/dist/commonjs/models/methodid.d.ts +0 -65
- package/dist/commonjs/models/methodid.d.ts.map +0 -1
- package/dist/commonjs/models/methodid.js +0 -91
- package/dist/commonjs/models/methodid.js.map +0 -1
- package/dist/esm/models/methodid.d.ts +0 -65
- package/dist/esm/models/methodid.d.ts.map +0 -1
- package/dist/esm/models/methodid.js +0 -55
- package/dist/esm/models/methodid.js.map +0 -1
- package/src/models/methodid.ts +0 -79
package/bin/mcp-server.js
CHANGED
|
@@ -52869,9 +52869,9 @@ var init_config = __esm(() => {
|
|
|
52869
52869
|
SDK_METADATA = {
|
|
52870
52870
|
language: "typescript",
|
|
52871
52871
|
openapiDocVersion: "1.0.0",
|
|
52872
|
-
sdkVersion: "1.2.
|
|
52873
|
-
genVersion: "2.
|
|
52874
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
52872
|
+
sdkVersion: "1.2.4",
|
|
52873
|
+
genVersion: "2.856.1",
|
|
52874
|
+
userAgent: "speakeasy-sdk/typescript 1.2.4 2.856.1 1.0.0 mollie-api-typescript"
|
|
52875
52875
|
};
|
|
52876
52876
|
});
|
|
52877
52877
|
|
|
@@ -55983,7 +55983,7 @@ var init_entitybalancereport = __esm(() => {
|
|
|
55983
55983
|
});
|
|
55984
55984
|
|
|
55985
55985
|
// src/models/entitybalancetransaction.ts
|
|
55986
|
-
var DeductionDetails$inboundSchema, DeductionDetails$outboundSchema,
|
|
55986
|
+
var DeductionDetails$inboundSchema, DeductionDetails$outboundSchema, EntityBalanceTransactionPayment$inboundSchema, EntityBalanceTransactionPayment$outboundSchema, Capture$inboundSchema, Capture$outboundSchema, CaptureCommision$inboundSchema, CaptureCommision$outboundSchema, CaptureRollingReserveRelease$inboundSchema, CaptureRollingReserveRelease$outboundSchema, UnauthorizedDirectDebit$inboundSchema, UnauthorizedDirectDebit$outboundSchema, FailedPayment$inboundSchema, FailedPayment$outboundSchema, Refund$inboundSchema, Refund$outboundSchema, RefundCompensation$inboundSchema, RefundCompensation$outboundSchema, ReturnedRefund$inboundSchema, ReturnedRefund$outboundSchema, ReturnedRefundCompensation$inboundSchema, ReturnedRefundCompensation$outboundSchema, Chargeback$inboundSchema, Chargeback$outboundSchema, ChargebackReversal$inboundSchema, ChargebackReversal$outboundSchema, ChargebackCompensation$inboundSchema, ChargebackCompensation$outboundSchema, ReversedChargebackCompensation$inboundSchema, ReversedChargebackCompensation$outboundSchema, OutgoingTransfer$inboundSchema, OutgoingTransfer$outboundSchema, CanceledOutgoingTransfer$inboundSchema, CanceledOutgoingTransfer$outboundSchema, ReturnedTransfer$inboundSchema, ReturnedTransfer$outboundSchema, InvoiceCompensation$inboundSchema, InvoiceCompensation$outboundSchema, EntityBalanceTransactionApplicationFee$inboundSchema, EntityBalanceTransactionApplicationFee$outboundSchema, SplitPayment$inboundSchema, SplitPayment$outboundSchema, PlatformPaymentRefund$inboundSchema, PlatformPaymentRefund$outboundSchema, ReturnedPlatformPaymentRefund$inboundSchema, ReturnedPlatformPaymentRefund$outboundSchema, PlatformPaymentChargeback$inboundSchema, PlatformPaymentChargeback$outboundSchema, ReversedPlatformPaymentChargeback$inboundSchema, ReversedPlatformPaymentChargeback$outboundSchema, PaymentCommission$inboundSchema, PaymentCommission$outboundSchema, ReimbursementFee$inboundSchema, ReimbursementFee$outboundSchema, FailedPaymentFee$inboundSchema, FailedPaymentFee$outboundSchema, PaymentFee$inboundSchema, PaymentFee$outboundSchema, ManagedFee$inboundSchema, ManagedFee$outboundSchema, ReturnedManagedFee$inboundSchema, ReturnedManagedFee$outboundSchema, PostPaymentSplitPayment$inboundSchema, PostPaymentSplitPayment$outboundSchema, Context$inboundSchema, Context$outboundSchema, EntityBalanceTransaction$inboundSchema, EntityBalanceTransaction$outboundSchema;
|
|
55987
55987
|
var init_entitybalancetransaction = __esm(() => {
|
|
55988
55988
|
init_esm();
|
|
55989
55989
|
init_primitives();
|
|
@@ -56002,11 +56002,11 @@ var init_entitybalancetransaction = __esm(() => {
|
|
|
56002
56002
|
repayments: nullableType(AmountNullable$outboundSchema).optional(),
|
|
56003
56003
|
reservations: nullableType(AmountNullable$outboundSchema).optional()
|
|
56004
56004
|
});
|
|
56005
|
-
|
|
56005
|
+
EntityBalanceTransactionPayment$inboundSchema = objectType({
|
|
56006
56006
|
paymentId: stringType().optional(),
|
|
56007
56007
|
paymentDescription: stringType().optional()
|
|
56008
56008
|
});
|
|
56009
|
-
|
|
56009
|
+
EntityBalanceTransactionPayment$outboundSchema = objectType({
|
|
56010
56010
|
paymentId: stringType().optional(),
|
|
56011
56011
|
paymentDescription: stringType().optional()
|
|
56012
56012
|
});
|
|
@@ -56313,7 +56313,7 @@ var init_entitybalancetransaction = __esm(() => {
|
|
|
56313
56313
|
paymentId: stringType().optional()
|
|
56314
56314
|
});
|
|
56315
56315
|
Context$inboundSchema = objectType({
|
|
56316
|
-
payment: nullableType(lazyType(() =>
|
|
56316
|
+
payment: nullableType(lazyType(() => EntityBalanceTransactionPayment$inboundSchema)).optional(),
|
|
56317
56317
|
capture: nullableType(lazyType(() => Capture$inboundSchema)).optional(),
|
|
56318
56318
|
"capture-commision": nullableType(lazyType(() => CaptureCommision$inboundSchema)).optional(),
|
|
56319
56319
|
"capture-rolling-reserve-release": nullableType(lazyType(() => CaptureRollingReserveRelease$inboundSchema)).optional(),
|
|
@@ -56376,7 +56376,7 @@ var init_entitybalancetransaction = __esm(() => {
|
|
|
56376
56376
|
});
|
|
56377
56377
|
});
|
|
56378
56378
|
Context$outboundSchema = objectType({
|
|
56379
|
-
payment: nullableType(lazyType(() =>
|
|
56379
|
+
payment: nullableType(lazyType(() => EntityBalanceTransactionPayment$outboundSchema)).optional(),
|
|
56380
56380
|
capture: nullableType(lazyType(() => Capture$outboundSchema)).optional(),
|
|
56381
56381
|
captureCommision: nullableType(lazyType(() => CaptureCommision$outboundSchema)).optional(),
|
|
56382
56382
|
captureRollingReserveRelease: nullableType(lazyType(() => CaptureRollingReserveRelease$outboundSchema)).optional(),
|
|
@@ -61079,49 +61079,6 @@ var init_methodenum = __esm(() => {
|
|
|
61079
61079
|
MethodEnum$outboundSchema = MethodEnum$inboundSchema;
|
|
61080
61080
|
});
|
|
61081
61081
|
|
|
61082
|
-
// src/models/methodid.ts
|
|
61083
|
-
var MethodId, MethodId$inboundSchema, MethodId$outboundSchema;
|
|
61084
|
-
var init_methodid = __esm(() => {
|
|
61085
|
-
init_enums();
|
|
61086
|
-
MethodId = {
|
|
61087
|
-
Alma: "alma",
|
|
61088
|
-
Applepay: "applepay",
|
|
61089
|
-
Bacs: "bacs",
|
|
61090
|
-
Bancomatpay: "bancomatpay",
|
|
61091
|
-
Bancontact: "bancontact",
|
|
61092
|
-
Banktransfer: "banktransfer",
|
|
61093
|
-
Belfius: "belfius",
|
|
61094
|
-
Billie: "billie",
|
|
61095
|
-
Bizum: "bizum",
|
|
61096
|
-
Blik: "blik",
|
|
61097
|
-
Creditcard: "creditcard",
|
|
61098
|
-
Directdebit: "directdebit",
|
|
61099
|
-
Eps: "eps",
|
|
61100
|
-
Giftcard: "giftcard",
|
|
61101
|
-
Ideal: "ideal",
|
|
61102
|
-
In3: "in3",
|
|
61103
|
-
Kbc: "kbc",
|
|
61104
|
-
Klarna: "klarna",
|
|
61105
|
-
Mbway: "mbway",
|
|
61106
|
-
Mobilepay: "mobilepay",
|
|
61107
|
-
Multibanco: "multibanco",
|
|
61108
|
-
Mybank: "mybank",
|
|
61109
|
-
Paybybank: "paybybank",
|
|
61110
|
-
Paypal: "paypal",
|
|
61111
|
-
Paysafecard: "paysafecard",
|
|
61112
|
-
Przelewy24: "przelewy24",
|
|
61113
|
-
Riverty: "riverty",
|
|
61114
|
-
Satispay: "satispay",
|
|
61115
|
-
Swish: "swish",
|
|
61116
|
-
Trustly: "trustly",
|
|
61117
|
-
Twint: "twint",
|
|
61118
|
-
Vipps: "vipps",
|
|
61119
|
-
Voucher: "voucher"
|
|
61120
|
-
};
|
|
61121
|
-
MethodId$inboundSchema = inboundSchema(MethodId);
|
|
61122
|
-
MethodId$outboundSchema = outboundSchema(MethodId);
|
|
61123
|
-
});
|
|
61124
|
-
|
|
61125
61082
|
// src/models/methodincludewalletsparameter.ts
|
|
61126
61083
|
var MethodIncludeWalletsParameter, MethodIncludeWalletsParameter$inboundSchema, MethodIncludeWalletsParameter$outboundSchema;
|
|
61127
61084
|
var init_methodincludewalletsparameter = __esm(() => {
|
|
@@ -62537,6 +62494,227 @@ var init_security2 = __esm(() => {
|
|
|
62537
62494
|
});
|
|
62538
62495
|
});
|
|
62539
62496
|
|
|
62497
|
+
// src/models/sessionlineitem.ts
|
|
62498
|
+
var SessionLineItem$inboundSchema, SessionLineItem$outboundSchema;
|
|
62499
|
+
var init_sessionlineitem = __esm(() => {
|
|
62500
|
+
init_esm();
|
|
62501
|
+
init_amount();
|
|
62502
|
+
init_paymentlinetyperesponse();
|
|
62503
|
+
SessionLineItem$inboundSchema = objectType({
|
|
62504
|
+
type: PaymentLineTypeResponse$inboundSchema.optional(),
|
|
62505
|
+
description: stringType(),
|
|
62506
|
+
quantity: numberType().int(),
|
|
62507
|
+
quantityUnit: stringType().optional(),
|
|
62508
|
+
unitPrice: Amount$inboundSchema,
|
|
62509
|
+
discountAmount: Amount$inboundSchema.optional(),
|
|
62510
|
+
totalAmount: Amount$inboundSchema,
|
|
62511
|
+
vatRate: stringType().optional(),
|
|
62512
|
+
vatAmount: Amount$inboundSchema.optional(),
|
|
62513
|
+
sku: stringType().optional(),
|
|
62514
|
+
imageUrl: stringType().optional(),
|
|
62515
|
+
productUrl: stringType().optional()
|
|
62516
|
+
});
|
|
62517
|
+
SessionLineItem$outboundSchema = objectType({
|
|
62518
|
+
type: PaymentLineTypeResponse$outboundSchema.optional(),
|
|
62519
|
+
description: stringType(),
|
|
62520
|
+
quantity: numberType().int(),
|
|
62521
|
+
quantityUnit: stringType().optional(),
|
|
62522
|
+
unitPrice: Amount$outboundSchema,
|
|
62523
|
+
discountAmount: Amount$outboundSchema.optional(),
|
|
62524
|
+
totalAmount: Amount$outboundSchema,
|
|
62525
|
+
vatRate: stringType().optional(),
|
|
62526
|
+
vatAmount: Amount$outboundSchema.optional(),
|
|
62527
|
+
sku: stringType().optional(),
|
|
62528
|
+
imageUrl: stringType().optional(),
|
|
62529
|
+
productUrl: stringType().optional()
|
|
62530
|
+
});
|
|
62531
|
+
});
|
|
62532
|
+
|
|
62533
|
+
// src/models/sessionlineitemresponse.ts
|
|
62534
|
+
var SessionLineItemResponse$inboundSchema, SessionLineItemResponse$outboundSchema;
|
|
62535
|
+
var init_sessionlineitemresponse = __esm(() => {
|
|
62536
|
+
init_esm();
|
|
62537
|
+
init_amount();
|
|
62538
|
+
init_paymentlinetyperesponse();
|
|
62539
|
+
SessionLineItemResponse$inboundSchema = objectType({
|
|
62540
|
+
type: PaymentLineTypeResponse$inboundSchema.optional(),
|
|
62541
|
+
description: stringType(),
|
|
62542
|
+
quantity: numberType().int(),
|
|
62543
|
+
quantityUnit: stringType().optional(),
|
|
62544
|
+
unitPrice: Amount$inboundSchema,
|
|
62545
|
+
discountAmount: Amount$inboundSchema.optional(),
|
|
62546
|
+
totalAmount: Amount$inboundSchema,
|
|
62547
|
+
vatRate: stringType().optional(),
|
|
62548
|
+
vatAmount: Amount$inboundSchema.optional(),
|
|
62549
|
+
sku: stringType().optional(),
|
|
62550
|
+
imageUrl: stringType().optional(),
|
|
62551
|
+
productUrl: stringType().optional()
|
|
62552
|
+
});
|
|
62553
|
+
SessionLineItemResponse$outboundSchema = objectType({
|
|
62554
|
+
type: PaymentLineTypeResponse$outboundSchema.optional(),
|
|
62555
|
+
description: stringType(),
|
|
62556
|
+
quantity: numberType().int(),
|
|
62557
|
+
quantityUnit: stringType().optional(),
|
|
62558
|
+
unitPrice: Amount$outboundSchema,
|
|
62559
|
+
discountAmount: Amount$outboundSchema.optional(),
|
|
62560
|
+
totalAmount: Amount$outboundSchema,
|
|
62561
|
+
vatRate: stringType().optional(),
|
|
62562
|
+
vatAmount: Amount$outboundSchema.optional(),
|
|
62563
|
+
sku: stringType().optional(),
|
|
62564
|
+
imageUrl: stringType().optional(),
|
|
62565
|
+
productUrl: stringType().optional()
|
|
62566
|
+
});
|
|
62567
|
+
});
|
|
62568
|
+
|
|
62569
|
+
// src/models/sessionsequencetype.ts
|
|
62570
|
+
var SessionSequenceType, SessionSequenceType$inboundSchema, SessionSequenceType$outboundSchema;
|
|
62571
|
+
var init_sessionsequencetype = __esm(() => {
|
|
62572
|
+
init_esm();
|
|
62573
|
+
SessionSequenceType = {
|
|
62574
|
+
Oneoff: "oneoff",
|
|
62575
|
+
First: "first"
|
|
62576
|
+
};
|
|
62577
|
+
SessionSequenceType$inboundSchema = nativeEnumType(SessionSequenceType);
|
|
62578
|
+
SessionSequenceType$outboundSchema = SessionSequenceType$inboundSchema;
|
|
62579
|
+
});
|
|
62580
|
+
|
|
62581
|
+
// src/models/sessionrequest.ts
|
|
62582
|
+
var SessionRequestPayment$inboundSchema, SessionRequestPayment$outboundSchema, SessionRequest$inboundSchema, SessionRequest$outboundSchema;
|
|
62583
|
+
var init_sessionrequest = __esm(() => {
|
|
62584
|
+
init_esm();
|
|
62585
|
+
init_amount();
|
|
62586
|
+
init_paymentaddress();
|
|
62587
|
+
init_sessionlineitem();
|
|
62588
|
+
init_sessionsequencetype();
|
|
62589
|
+
SessionRequestPayment$inboundSchema = objectType({
|
|
62590
|
+
webhookUrl: stringType().optional()
|
|
62591
|
+
});
|
|
62592
|
+
SessionRequestPayment$outboundSchema = objectType({
|
|
62593
|
+
webhookUrl: stringType().optional()
|
|
62594
|
+
});
|
|
62595
|
+
SessionRequest$inboundSchema = objectType({
|
|
62596
|
+
amount: Amount$inboundSchema,
|
|
62597
|
+
description: stringType(),
|
|
62598
|
+
lines: arrayType(SessionLineItem$inboundSchema),
|
|
62599
|
+
redirectUrl: stringType(),
|
|
62600
|
+
billingAddress: PaymentAddress$inboundSchema.optional(),
|
|
62601
|
+
shippingAddress: PaymentAddress$inboundSchema.optional(),
|
|
62602
|
+
customerId: stringType().optional(),
|
|
62603
|
+
sequenceType: SessionSequenceType$inboundSchema.optional(),
|
|
62604
|
+
metadata: recordType(anyType()).optional(),
|
|
62605
|
+
payment: lazyType(() => SessionRequestPayment$inboundSchema).optional(),
|
|
62606
|
+
profileId: stringType().optional(),
|
|
62607
|
+
testmode: nullableType(booleanType()).optional()
|
|
62608
|
+
});
|
|
62609
|
+
SessionRequest$outboundSchema = objectType({
|
|
62610
|
+
amount: Amount$outboundSchema,
|
|
62611
|
+
description: stringType(),
|
|
62612
|
+
lines: arrayType(SessionLineItem$outboundSchema),
|
|
62613
|
+
redirectUrl: stringType(),
|
|
62614
|
+
billingAddress: PaymentAddress$outboundSchema.optional(),
|
|
62615
|
+
shippingAddress: PaymentAddress$outboundSchema.optional(),
|
|
62616
|
+
customerId: stringType().optional(),
|
|
62617
|
+
sequenceType: SessionSequenceType$outboundSchema.optional(),
|
|
62618
|
+
metadata: recordType(anyType()).optional(),
|
|
62619
|
+
payment: lazyType(() => SessionRequestPayment$outboundSchema).optional(),
|
|
62620
|
+
profileId: stringType().optional(),
|
|
62621
|
+
testmode: nullableType(booleanType()).optional()
|
|
62622
|
+
});
|
|
62623
|
+
});
|
|
62624
|
+
|
|
62625
|
+
// src/models/sessionsequencetyperesponse.ts
|
|
62626
|
+
var SessionSequenceTypeResponse, SessionSequenceTypeResponse$inboundSchema, SessionSequenceTypeResponse$outboundSchema;
|
|
62627
|
+
var init_sessionsequencetyperesponse = __esm(() => {
|
|
62628
|
+
init_enums();
|
|
62629
|
+
SessionSequenceTypeResponse = {
|
|
62630
|
+
Oneoff: "oneoff",
|
|
62631
|
+
First: "first"
|
|
62632
|
+
};
|
|
62633
|
+
SessionSequenceTypeResponse$inboundSchema = inboundSchema(SessionSequenceTypeResponse);
|
|
62634
|
+
SessionSequenceTypeResponse$outboundSchema = outboundSchema(SessionSequenceTypeResponse);
|
|
62635
|
+
});
|
|
62636
|
+
|
|
62637
|
+
// src/models/sessionresponse.ts
|
|
62638
|
+
var SessionResponseStatus, SessionResponseStatus$inboundSchema, SessionResponseStatus$outboundSchema, SessionResponsePayment$inboundSchema, SessionResponsePayment$outboundSchema, SessionResponseLinks$inboundSchema, SessionResponseLinks$outboundSchema, SessionResponse$inboundSchema, SessionResponse$outboundSchema;
|
|
62639
|
+
var init_sessionresponse = __esm(() => {
|
|
62640
|
+
init_esm();
|
|
62641
|
+
init_primitives();
|
|
62642
|
+
init_enums();
|
|
62643
|
+
init_amount();
|
|
62644
|
+
init_mode();
|
|
62645
|
+
init_paymentaddress();
|
|
62646
|
+
init_sessionlineitemresponse();
|
|
62647
|
+
init_sessionsequencetyperesponse();
|
|
62648
|
+
init_url2();
|
|
62649
|
+
SessionResponseStatus = {
|
|
62650
|
+
Open: "open",
|
|
62651
|
+
Completed: "completed",
|
|
62652
|
+
Expired: "expired"
|
|
62653
|
+
};
|
|
62654
|
+
SessionResponseStatus$inboundSchema = inboundSchema(SessionResponseStatus);
|
|
62655
|
+
SessionResponseStatus$outboundSchema = outboundSchema(SessionResponseStatus);
|
|
62656
|
+
SessionResponsePayment$inboundSchema = objectType({
|
|
62657
|
+
webhookUrl: stringType().optional()
|
|
62658
|
+
});
|
|
62659
|
+
SessionResponsePayment$outboundSchema = objectType({
|
|
62660
|
+
webhookUrl: stringType().optional()
|
|
62661
|
+
});
|
|
62662
|
+
SessionResponseLinks$inboundSchema = objectType({
|
|
62663
|
+
self: Url$inboundSchema
|
|
62664
|
+
});
|
|
62665
|
+
SessionResponseLinks$outboundSchema = objectType({
|
|
62666
|
+
self: Url$outboundSchema
|
|
62667
|
+
});
|
|
62668
|
+
SessionResponse$inboundSchema = objectType({
|
|
62669
|
+
resource: stringType(),
|
|
62670
|
+
id: stringType(),
|
|
62671
|
+
mode: Mode$inboundSchema,
|
|
62672
|
+
clientAccessToken: stringType(),
|
|
62673
|
+
status: SessionResponseStatus$inboundSchema,
|
|
62674
|
+
amount: Amount$inboundSchema,
|
|
62675
|
+
description: stringType(),
|
|
62676
|
+
lines: arrayType(SessionLineItemResponse$inboundSchema),
|
|
62677
|
+
redirectUrl: stringType(),
|
|
62678
|
+
billingAddress: PaymentAddress$inboundSchema.optional(),
|
|
62679
|
+
shippingAddress: PaymentAddress$inboundSchema.optional(),
|
|
62680
|
+
customerId: stringType().optional(),
|
|
62681
|
+
sequenceType: SessionSequenceTypeResponse$inboundSchema.optional(),
|
|
62682
|
+
metadata: recordType(anyType()).optional(),
|
|
62683
|
+
payment: lazyType(() => SessionResponsePayment$inboundSchema).optional(),
|
|
62684
|
+
profileId: stringType(),
|
|
62685
|
+
createdAt: stringType(),
|
|
62686
|
+
_links: lazyType(() => SessionResponseLinks$inboundSchema)
|
|
62687
|
+
}).transform((v2) => {
|
|
62688
|
+
return remap(v2, {
|
|
62689
|
+
_links: "links"
|
|
62690
|
+
});
|
|
62691
|
+
});
|
|
62692
|
+
SessionResponse$outboundSchema = objectType({
|
|
62693
|
+
resource: stringType(),
|
|
62694
|
+
id: stringType(),
|
|
62695
|
+
mode: Mode$outboundSchema,
|
|
62696
|
+
clientAccessToken: stringType(),
|
|
62697
|
+
status: SessionResponseStatus$outboundSchema,
|
|
62698
|
+
amount: Amount$outboundSchema,
|
|
62699
|
+
description: stringType(),
|
|
62700
|
+
lines: arrayType(SessionLineItemResponse$outboundSchema),
|
|
62701
|
+
redirectUrl: stringType(),
|
|
62702
|
+
billingAddress: PaymentAddress$outboundSchema.optional(),
|
|
62703
|
+
shippingAddress: PaymentAddress$outboundSchema.optional(),
|
|
62704
|
+
customerId: stringType().optional(),
|
|
62705
|
+
sequenceType: SessionSequenceTypeResponse$outboundSchema.optional(),
|
|
62706
|
+
metadata: recordType(anyType()).optional(),
|
|
62707
|
+
payment: lazyType(() => SessionResponsePayment$outboundSchema).optional(),
|
|
62708
|
+
profileId: stringType(),
|
|
62709
|
+
createdAt: stringType(),
|
|
62710
|
+
links: lazyType(() => SessionResponseLinks$outboundSchema)
|
|
62711
|
+
}).transform((v2) => {
|
|
62712
|
+
return remap(v2, {
|
|
62713
|
+
links: "_links"
|
|
62714
|
+
});
|
|
62715
|
+
});
|
|
62716
|
+
});
|
|
62717
|
+
|
|
62540
62718
|
// src/models/sorting.ts
|
|
62541
62719
|
var Sorting, Sorting$inboundSchema, Sorting$outboundSchema;
|
|
62542
62720
|
var init_sorting = __esm(() => {
|
|
@@ -62795,7 +62973,6 @@ var init_models = __esm(() => {
|
|
|
62795
62973
|
init_mandateresponse();
|
|
62796
62974
|
init_metadata();
|
|
62797
62975
|
init_methodenum();
|
|
62798
|
-
init_methodid();
|
|
62799
62976
|
init_methodincludewalletsparameter();
|
|
62800
62977
|
init_methodresourceparameter();
|
|
62801
62978
|
init_methodresponse();
|
|
@@ -62868,6 +63045,12 @@ var init_models = __esm(() => {
|
|
|
62868
63045
|
init_security2();
|
|
62869
63046
|
init_sequencetype();
|
|
62870
63047
|
init_sequencetyperesponse();
|
|
63048
|
+
init_sessionlineitem();
|
|
63049
|
+
init_sessionlineitemresponse();
|
|
63050
|
+
init_sessionrequest();
|
|
63051
|
+
init_sessionresponse();
|
|
63052
|
+
init_sessionsequencetype();
|
|
63053
|
+
init_sessionsequencetyperesponse();
|
|
62871
63054
|
init_sorting();
|
|
62872
63055
|
init_statusreason();
|
|
62873
63056
|
init_subgroup();
|
|
@@ -63394,6 +63577,32 @@ var init_createsalesinvoice = __esm(() => {
|
|
|
63394
63577
|
});
|
|
63395
63578
|
});
|
|
63396
63579
|
|
|
63580
|
+
// src/models/operations/createsession.ts
|
|
63581
|
+
var CreateSessionRequest$inboundSchema, CreateSessionRequest$outboundSchema;
|
|
63582
|
+
var init_createsession = __esm(() => {
|
|
63583
|
+
init_esm();
|
|
63584
|
+
init_primitives();
|
|
63585
|
+
init_models();
|
|
63586
|
+
CreateSessionRequest$inboundSchema = objectType({
|
|
63587
|
+
"idempotency-key": stringType().optional(),
|
|
63588
|
+
"session-request": SessionRequest$inboundSchema.optional()
|
|
63589
|
+
}).transform((v2) => {
|
|
63590
|
+
return remap(v2, {
|
|
63591
|
+
"idempotency-key": "idempotencyKey",
|
|
63592
|
+
"session-request": "sessionRequest"
|
|
63593
|
+
});
|
|
63594
|
+
});
|
|
63595
|
+
CreateSessionRequest$outboundSchema = objectType({
|
|
63596
|
+
idempotencyKey: stringType().optional(),
|
|
63597
|
+
sessionRequest: SessionRequest$outboundSchema.optional()
|
|
63598
|
+
}).transform((v2) => {
|
|
63599
|
+
return remap(v2, {
|
|
63600
|
+
idempotencyKey: "idempotency-key",
|
|
63601
|
+
sessionRequest: "session-request"
|
|
63602
|
+
});
|
|
63603
|
+
});
|
|
63604
|
+
});
|
|
63605
|
+
|
|
63397
63606
|
// src/models/operations/createsubscription.ts
|
|
63398
63607
|
var CreateSubscriptionRequest$inboundSchema, CreateSubscriptionRequest$outboundSchema;
|
|
63399
63608
|
var init_createsubscription = __esm(() => {
|
|
@@ -64069,7 +64278,7 @@ var init_getmethod = __esm(() => {
|
|
|
64069
64278
|
testmode: booleanType().optional()
|
|
64070
64279
|
});
|
|
64071
64280
|
GetMethodRequest$inboundSchema = objectType({
|
|
64072
|
-
methodId: nullableType(
|
|
64281
|
+
methodId: nullableType(MethodEnum$inboundSchema),
|
|
64073
64282
|
locale: nullableType(Locale$inboundSchema).optional(),
|
|
64074
64283
|
currency: stringType().optional(),
|
|
64075
64284
|
profileId: stringType().optional(),
|
|
@@ -64083,7 +64292,7 @@ var init_getmethod = __esm(() => {
|
|
|
64083
64292
|
});
|
|
64084
64293
|
});
|
|
64085
64294
|
GetMethodRequest$outboundSchema = objectType({
|
|
64086
|
-
methodId: nullableType(
|
|
64295
|
+
methodId: nullableType(MethodEnum$outboundSchema),
|
|
64087
64296
|
locale: nullableType(Locale$outboundSchema).optional(),
|
|
64088
64297
|
currency: stringType().optional(),
|
|
64089
64298
|
profileId: stringType().optional(),
|
|
@@ -64562,6 +64771,29 @@ var init_getsalesinvoice = __esm(() => {
|
|
|
64562
64771
|
});
|
|
64563
64772
|
});
|
|
64564
64773
|
|
|
64774
|
+
// src/models/operations/getsession.ts
|
|
64775
|
+
var GetSessionRequest$inboundSchema, GetSessionRequest$outboundSchema;
|
|
64776
|
+
var init_getsession = __esm(() => {
|
|
64777
|
+
init_esm();
|
|
64778
|
+
init_primitives();
|
|
64779
|
+
GetSessionRequest$inboundSchema = objectType({
|
|
64780
|
+
sessionId: stringType(),
|
|
64781
|
+
"idempotency-key": stringType().optional()
|
|
64782
|
+
}).transform((v2) => {
|
|
64783
|
+
return remap(v2, {
|
|
64784
|
+
"idempotency-key": "idempotencyKey"
|
|
64785
|
+
});
|
|
64786
|
+
});
|
|
64787
|
+
GetSessionRequest$outboundSchema = objectType({
|
|
64788
|
+
sessionId: stringType(),
|
|
64789
|
+
idempotencyKey: stringType().optional()
|
|
64790
|
+
}).transform((v2) => {
|
|
64791
|
+
return remap(v2, {
|
|
64792
|
+
idempotencyKey: "idempotency-key"
|
|
64793
|
+
});
|
|
64794
|
+
});
|
|
64795
|
+
});
|
|
64796
|
+
|
|
64565
64797
|
// src/models/operations/getsettlement.ts
|
|
64566
64798
|
var GetSettlementRequest$inboundSchema, GetSettlementRequest$outboundSchema;
|
|
64567
64799
|
var init_getsettlement = __esm(() => {
|
|
@@ -67837,6 +68069,7 @@ var init_operations = __esm(() => {
|
|
|
67837
68069
|
init_createprofile();
|
|
67838
68070
|
init_createrefund();
|
|
67839
68071
|
init_createsalesinvoice();
|
|
68072
|
+
init_createsession();
|
|
67840
68073
|
init_createsubscription();
|
|
67841
68074
|
init_createwebhook2();
|
|
67842
68075
|
init_deletecustomer();
|
|
@@ -67869,6 +68102,7 @@ var init_operations = __esm(() => {
|
|
|
67869
68102
|
init_getprofile();
|
|
67870
68103
|
init_getrefund();
|
|
67871
68104
|
init_getsalesinvoice();
|
|
68105
|
+
init_getsession();
|
|
67872
68106
|
init_getsettlement();
|
|
67873
68107
|
init_getsubscription();
|
|
67874
68108
|
init_getterminal();
|
|
@@ -69185,6 +69419,9 @@ Retrieve a list of capabilities for an organization.
|
|
|
69185
69419
|
This API provides detailed insights into the specific requirements and status of each client's onboarding journey.
|
|
69186
69420
|
|
|
69187
69421
|
Capabilities are at the organization level, indicating if the organization can perform a given capability.
|
|
69422
|
+
Capabilities may have requirements, which provide more information on what is needed to use this capability.
|
|
69423
|
+
Requirements may have a due date, which indicates the date by which the requirement should be fulfilled.
|
|
69424
|
+
If a requirement is past due, the capability is disabled until the requirement is fulfilled.
|
|
69188
69425
|
|
|
69189
69426
|
For payments, regardless them being at the profile level, the capability is listed at the organization level.
|
|
69190
69427
|
This means that if at least one of the clients's profiles can receive payments,
|
|
@@ -77627,34 +77864,31 @@ respectively).`,
|
|
|
77627
77864
|
};
|
|
77628
77865
|
});
|
|
77629
77866
|
|
|
77630
|
-
// src/funcs/
|
|
77631
|
-
function
|
|
77867
|
+
// src/funcs/sessionsCreate.ts
|
|
77868
|
+
function sessionsCreate(client, request, options) {
|
|
77632
77869
|
return new APIPromise($do73(client, request, options));
|
|
77633
77870
|
}
|
|
77634
77871
|
async function $do73(client, request, options) {
|
|
77635
|
-
const parsed = safeParse4(request, (value) =>
|
|
77872
|
+
const parsed = safeParse4(request, (value) => CreateSessionRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77636
77873
|
if (!parsed.ok) {
|
|
77637
77874
|
return [parsed, { status: "invalid" }];
|
|
77638
77875
|
}
|
|
77639
77876
|
const payload = parsed.value;
|
|
77640
|
-
const body =
|
|
77641
|
-
|
|
77642
|
-
|
|
77643
|
-
|
|
77644
|
-
charEncoding: "percent"
|
|
77645
|
-
})
|
|
77646
|
-
};
|
|
77647
|
-
const path = pathToFunc("/settlements/{settlementId}")(pathParams);
|
|
77877
|
+
const body = encodeJSON("body", payload?.["session-request"], {
|
|
77878
|
+
explode: true
|
|
77879
|
+
});
|
|
77880
|
+
const path = pathToFunc("/sessions")();
|
|
77648
77881
|
const headers = new Headers(compactMap({
|
|
77882
|
+
"Content-Type": "application/json",
|
|
77649
77883
|
Accept: "application/hal+json",
|
|
77650
|
-
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
77884
|
+
"idempotency-key": encodeSimple("idempotency-key", payload?.["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
77651
77885
|
}));
|
|
77652
77886
|
const securityInput = await extractSecurity(client._options.security);
|
|
77653
77887
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
77654
77888
|
const context = {
|
|
77655
77889
|
options: client._options,
|
|
77656
77890
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
77657
|
-
operationID: "
|
|
77891
|
+
operationID: "create-session",
|
|
77658
77892
|
oAuth2Scopes: null,
|
|
77659
77893
|
resolvedSecurity: requestSecurity,
|
|
77660
77894
|
securitySource: client._options.security,
|
|
@@ -77672,7 +77906,7 @@ async function $do73(client, request, options) {
|
|
|
77672
77906
|
};
|
|
77673
77907
|
const requestRes = client._createRequest(context, {
|
|
77674
77908
|
security: requestSecurity,
|
|
77675
|
-
method: "
|
|
77909
|
+
method: "POST",
|
|
77676
77910
|
baseURL: options?.serverURL,
|
|
77677
77911
|
path,
|
|
77678
77912
|
headers,
|
|
@@ -77686,7 +77920,7 @@ async function $do73(client, request, options) {
|
|
|
77686
77920
|
const req = requestRes.value;
|
|
77687
77921
|
const doResult = await client._do(req, {
|
|
77688
77922
|
context,
|
|
77689
|
-
errorCodes: ["
|
|
77923
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
77690
77924
|
retryConfig: context.retryConfig,
|
|
77691
77925
|
retryCodes: context.retryCodes
|
|
77692
77926
|
});
|
|
@@ -77697,9 +77931,9 @@ async function $do73(client, request, options) {
|
|
|
77697
77931
|
const responseFields = {
|
|
77698
77932
|
HttpMeta: { Response: response, Request: req }
|
|
77699
77933
|
};
|
|
77700
|
-
const [result] = await match(json(
|
|
77934
|
+
const [result] = await match(json(201, SessionResponse$inboundSchema, {
|
|
77701
77935
|
ctype: "application/hal+json"
|
|
77702
|
-
}), jsonErr(
|
|
77936
|
+
}), jsonErr(422, ErrorResponse$inboundSchema, {
|
|
77703
77937
|
ctype: "application/hal+json"
|
|
77704
77938
|
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
77705
77939
|
if (!result.ok) {
|
|
@@ -77707,7 +77941,7 @@ async function $do73(client, request, options) {
|
|
|
77707
77941
|
}
|
|
77708
77942
|
return [result, { status: "complete", request: req, response }];
|
|
77709
77943
|
}
|
|
77710
|
-
var
|
|
77944
|
+
var init_sessionsCreate = __esm(() => {
|
|
77711
77945
|
init_encodings();
|
|
77712
77946
|
init_matchers();
|
|
77713
77947
|
init_primitives();
|
|
@@ -77720,23 +77954,269 @@ var init_settlementsGet = __esm(() => {
|
|
|
77720
77954
|
init_async();
|
|
77721
77955
|
});
|
|
77722
77956
|
|
|
77723
|
-
// src/mcp-server/tools/
|
|
77724
|
-
var args73, tool$
|
|
77725
|
-
var
|
|
77726
|
-
|
|
77957
|
+
// src/mcp-server/tools/sessionsCreate.ts
|
|
77958
|
+
var args73, tool$sessionsCreate;
|
|
77959
|
+
var init_sessionsCreate2 = __esm(() => {
|
|
77960
|
+
init_sessionsCreate();
|
|
77727
77961
|
init_operations();
|
|
77728
77962
|
init_tools();
|
|
77729
77963
|
args73 = {
|
|
77730
|
-
request:
|
|
77964
|
+
request: CreateSessionRequest$inboundSchema.optional()
|
|
77731
77965
|
};
|
|
77732
|
-
tool$
|
|
77733
|
-
name: "
|
|
77734
|
-
description: `
|
|
77735
|
-
|
|
77736
|
-
Retrieve a single settlement by its ID.
|
|
77966
|
+
tool$sessionsCreate = {
|
|
77967
|
+
name: "sessions-create",
|
|
77968
|
+
description: `Create session
|
|
77737
77969
|
|
|
77738
|
-
|
|
77739
|
-
|
|
77970
|
+
> \uD83D\uDEA7 Beta feature
|
|
77971
|
+
>
|
|
77972
|
+
> This feature is currently in private beta, and the final specification may still change.
|
|
77973
|
+
|
|
77974
|
+
Create a session to start a checkout process with Mollie Components.`,
|
|
77975
|
+
args: args73,
|
|
77976
|
+
tool: async (client, args74, ctx) => {
|
|
77977
|
+
const [result, apiCall] = await sessionsCreate(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77978
|
+
if (!result.ok) {
|
|
77979
|
+
return {
|
|
77980
|
+
content: [{ type: "text", text: result.error.message }],
|
|
77981
|
+
isError: true
|
|
77982
|
+
};
|
|
77983
|
+
}
|
|
77984
|
+
const value = result.value;
|
|
77985
|
+
return formatResult(value, apiCall);
|
|
77986
|
+
}
|
|
77987
|
+
};
|
|
77988
|
+
});
|
|
77989
|
+
|
|
77990
|
+
// src/funcs/sessionsGet.ts
|
|
77991
|
+
function sessionsGet(client, request, options) {
|
|
77992
|
+
return new APIPromise($do74(client, request, options));
|
|
77993
|
+
}
|
|
77994
|
+
async function $do74(client, request, options) {
|
|
77995
|
+
const parsed = safeParse4(request, (value) => GetSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
77996
|
+
if (!parsed.ok) {
|
|
77997
|
+
return [parsed, { status: "invalid" }];
|
|
77998
|
+
}
|
|
77999
|
+
const payload = parsed.value;
|
|
78000
|
+
const body = null;
|
|
78001
|
+
const pathParams = {
|
|
78002
|
+
sessionId: encodeSimple("sessionId", payload.sessionId, {
|
|
78003
|
+
explode: false,
|
|
78004
|
+
charEncoding: "percent"
|
|
78005
|
+
})
|
|
78006
|
+
};
|
|
78007
|
+
const path = pathToFunc("/sessions/{sessionId}")(pathParams);
|
|
78008
|
+
const headers = new Headers(compactMap({
|
|
78009
|
+
Accept: "application/hal+json",
|
|
78010
|
+
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
78011
|
+
}));
|
|
78012
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
78013
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78014
|
+
const context = {
|
|
78015
|
+
options: client._options,
|
|
78016
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
78017
|
+
operationID: "get-session",
|
|
78018
|
+
oAuth2Scopes: null,
|
|
78019
|
+
resolvedSecurity: requestSecurity,
|
|
78020
|
+
securitySource: client._options.security,
|
|
78021
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
78022
|
+
strategy: "backoff",
|
|
78023
|
+
backoff: {
|
|
78024
|
+
initialInterval: 500,
|
|
78025
|
+
maxInterval: 5000,
|
|
78026
|
+
exponent: 2,
|
|
78027
|
+
maxElapsedTime: 7500
|
|
78028
|
+
},
|
|
78029
|
+
retryConnectionErrors: true
|
|
78030
|
+
},
|
|
78031
|
+
retryCodes: options?.retryCodes || ["5xx"]
|
|
78032
|
+
};
|
|
78033
|
+
const requestRes = client._createRequest(context, {
|
|
78034
|
+
security: requestSecurity,
|
|
78035
|
+
method: "GET",
|
|
78036
|
+
baseURL: options?.serverURL,
|
|
78037
|
+
path,
|
|
78038
|
+
headers,
|
|
78039
|
+
body,
|
|
78040
|
+
userAgent: client._options.userAgent,
|
|
78041
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
78042
|
+
}, options);
|
|
78043
|
+
if (!requestRes.ok) {
|
|
78044
|
+
return [requestRes, { status: "invalid" }];
|
|
78045
|
+
}
|
|
78046
|
+
const req = requestRes.value;
|
|
78047
|
+
const doResult = await client._do(req, {
|
|
78048
|
+
context,
|
|
78049
|
+
errorCodes: ["4XX", "5XX"],
|
|
78050
|
+
retryConfig: context.retryConfig,
|
|
78051
|
+
retryCodes: context.retryCodes
|
|
78052
|
+
});
|
|
78053
|
+
if (!doResult.ok) {
|
|
78054
|
+
return [doResult, { status: "request-error", request: req }];
|
|
78055
|
+
}
|
|
78056
|
+
const response = doResult.value;
|
|
78057
|
+
const [result] = await match(json(200, SessionResponse$inboundSchema, {
|
|
78058
|
+
ctype: "application/hal+json"
|
|
78059
|
+
}), fail("4XX"), fail("5XX"))(response, req);
|
|
78060
|
+
if (!result.ok) {
|
|
78061
|
+
return [result, { status: "complete", request: req, response }];
|
|
78062
|
+
}
|
|
78063
|
+
return [result, { status: "complete", request: req, response }];
|
|
78064
|
+
}
|
|
78065
|
+
var init_sessionsGet = __esm(() => {
|
|
78066
|
+
init_encodings();
|
|
78067
|
+
init_matchers();
|
|
78068
|
+
init_primitives();
|
|
78069
|
+
init_schemas4();
|
|
78070
|
+
init_security();
|
|
78071
|
+
init_url();
|
|
78072
|
+
init_models();
|
|
78073
|
+
init_operations();
|
|
78074
|
+
init_async();
|
|
78075
|
+
});
|
|
78076
|
+
|
|
78077
|
+
// src/mcp-server/tools/sessionsGet.ts
|
|
78078
|
+
var args74, tool$sessionsGet;
|
|
78079
|
+
var init_sessionsGet2 = __esm(() => {
|
|
78080
|
+
init_sessionsGet();
|
|
78081
|
+
init_operations();
|
|
78082
|
+
init_tools();
|
|
78083
|
+
args74 = {
|
|
78084
|
+
request: GetSessionRequest$inboundSchema
|
|
78085
|
+
};
|
|
78086
|
+
tool$sessionsGet = {
|
|
78087
|
+
name: "sessions-get",
|
|
78088
|
+
description: `Get session
|
|
78089
|
+
|
|
78090
|
+
> \uD83D\uDEA7 Beta feature
|
|
78091
|
+
>
|
|
78092
|
+
> This feature is currently in private beta, and the final specification may still change.
|
|
78093
|
+
|
|
78094
|
+
Retrieve a session to view its details and status to inform your customers about the checkout process.`,
|
|
78095
|
+
args: args74,
|
|
78096
|
+
tool: async (client, args75, ctx) => {
|
|
78097
|
+
const [result, apiCall] = await sessionsGet(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78098
|
+
if (!result.ok) {
|
|
78099
|
+
return {
|
|
78100
|
+
content: [{ type: "text", text: result.error.message }],
|
|
78101
|
+
isError: true
|
|
78102
|
+
};
|
|
78103
|
+
}
|
|
78104
|
+
const value = result.value;
|
|
78105
|
+
return formatResult(value, apiCall);
|
|
78106
|
+
}
|
|
78107
|
+
};
|
|
78108
|
+
});
|
|
78109
|
+
|
|
78110
|
+
// src/funcs/settlementsGet.ts
|
|
78111
|
+
function settlementsGet(client, request, options) {
|
|
78112
|
+
return new APIPromise($do75(client, request, options));
|
|
78113
|
+
}
|
|
78114
|
+
async function $do75(client, request, options) {
|
|
78115
|
+
const parsed = safeParse4(request, (value) => GetSettlementRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78116
|
+
if (!parsed.ok) {
|
|
78117
|
+
return [parsed, { status: "invalid" }];
|
|
78118
|
+
}
|
|
78119
|
+
const payload = parsed.value;
|
|
78120
|
+
const body = null;
|
|
78121
|
+
const pathParams = {
|
|
78122
|
+
settlementId: encodeSimple("settlementId", payload.settlementId, {
|
|
78123
|
+
explode: false,
|
|
78124
|
+
charEncoding: "percent"
|
|
78125
|
+
})
|
|
78126
|
+
};
|
|
78127
|
+
const path = pathToFunc("/settlements/{settlementId}")(pathParams);
|
|
78128
|
+
const headers = new Headers(compactMap({
|
|
78129
|
+
Accept: "application/hal+json",
|
|
78130
|
+
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
78131
|
+
}));
|
|
78132
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
78133
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78134
|
+
const context = {
|
|
78135
|
+
options: client._options,
|
|
78136
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
78137
|
+
operationID: "get-settlement",
|
|
78138
|
+
oAuth2Scopes: null,
|
|
78139
|
+
resolvedSecurity: requestSecurity,
|
|
78140
|
+
securitySource: client._options.security,
|
|
78141
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
78142
|
+
strategy: "backoff",
|
|
78143
|
+
backoff: {
|
|
78144
|
+
initialInterval: 500,
|
|
78145
|
+
maxInterval: 5000,
|
|
78146
|
+
exponent: 2,
|
|
78147
|
+
maxElapsedTime: 7500
|
|
78148
|
+
},
|
|
78149
|
+
retryConnectionErrors: true
|
|
78150
|
+
},
|
|
78151
|
+
retryCodes: options?.retryCodes || ["5xx"]
|
|
78152
|
+
};
|
|
78153
|
+
const requestRes = client._createRequest(context, {
|
|
78154
|
+
security: requestSecurity,
|
|
78155
|
+
method: "GET",
|
|
78156
|
+
baseURL: options?.serverURL,
|
|
78157
|
+
path,
|
|
78158
|
+
headers,
|
|
78159
|
+
body,
|
|
78160
|
+
userAgent: client._options.userAgent,
|
|
78161
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
78162
|
+
}, options);
|
|
78163
|
+
if (!requestRes.ok) {
|
|
78164
|
+
return [requestRes, { status: "invalid" }];
|
|
78165
|
+
}
|
|
78166
|
+
const req = requestRes.value;
|
|
78167
|
+
const doResult = await client._do(req, {
|
|
78168
|
+
context,
|
|
78169
|
+
errorCodes: ["404", "4XX", "5XX"],
|
|
78170
|
+
retryConfig: context.retryConfig,
|
|
78171
|
+
retryCodes: context.retryCodes
|
|
78172
|
+
});
|
|
78173
|
+
if (!doResult.ok) {
|
|
78174
|
+
return [doResult, { status: "request-error", request: req }];
|
|
78175
|
+
}
|
|
78176
|
+
const response = doResult.value;
|
|
78177
|
+
const responseFields = {
|
|
78178
|
+
HttpMeta: { Response: response, Request: req }
|
|
78179
|
+
};
|
|
78180
|
+
const [result] = await match(json(200, EntitySettlement$inboundSchema, {
|
|
78181
|
+
ctype: "application/hal+json"
|
|
78182
|
+
}), jsonErr(404, ErrorResponse$inboundSchema, {
|
|
78183
|
+
ctype: "application/hal+json"
|
|
78184
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
78185
|
+
if (!result.ok) {
|
|
78186
|
+
return [result, { status: "complete", request: req, response }];
|
|
78187
|
+
}
|
|
78188
|
+
return [result, { status: "complete", request: req, response }];
|
|
78189
|
+
}
|
|
78190
|
+
var init_settlementsGet = __esm(() => {
|
|
78191
|
+
init_encodings();
|
|
78192
|
+
init_matchers();
|
|
78193
|
+
init_primitives();
|
|
78194
|
+
init_schemas4();
|
|
78195
|
+
init_security();
|
|
78196
|
+
init_url();
|
|
78197
|
+
init_errors4();
|
|
78198
|
+
init_models();
|
|
78199
|
+
init_operations();
|
|
78200
|
+
init_async();
|
|
78201
|
+
});
|
|
78202
|
+
|
|
78203
|
+
// src/mcp-server/tools/settlementsGet.ts
|
|
78204
|
+
var args75, tool$settlementsGet;
|
|
78205
|
+
var init_settlementsGet2 = __esm(() => {
|
|
78206
|
+
init_settlementsGet();
|
|
78207
|
+
init_operations();
|
|
78208
|
+
init_tools();
|
|
78209
|
+
args75 = {
|
|
78210
|
+
request: GetSettlementRequest$inboundSchema
|
|
78211
|
+
};
|
|
78212
|
+
tool$settlementsGet = {
|
|
78213
|
+
name: "settlements-get",
|
|
78214
|
+
description: `Get settlement
|
|
78215
|
+
|
|
78216
|
+
Retrieve a single settlement by its ID.
|
|
78217
|
+
|
|
78218
|
+
To lookup settlements by their bank reference, replace the ID in the URL by
|
|
78219
|
+
a reference. For example: \`1234567.2404.03\`.
|
|
77740
78220
|
|
|
77741
78221
|
A settlement represents a transfer of your balance funds to your external bank account.
|
|
77742
78222
|
|
|
@@ -77745,9 +78225,9 @@ settlement and the previous one.
|
|
|
77745
78225
|
|
|
77746
78226
|
For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
|
|
77747
78227
|
[balance transactions](list-balance-transactions) endpoint.`,
|
|
77748
|
-
args:
|
|
77749
|
-
tool: async (client,
|
|
77750
|
-
const [result, apiCall] = await settlementsGet(client,
|
|
78228
|
+
args: args75,
|
|
78229
|
+
tool: async (client, args76, ctx) => {
|
|
78230
|
+
const [result, apiCall] = await settlementsGet(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77751
78231
|
if (!result.ok) {
|
|
77752
78232
|
return {
|
|
77753
78233
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77762,9 +78242,9 @@ For more accurate bookkeeping, refer to the [balance report](get-balance-report)
|
|
|
77762
78242
|
|
|
77763
78243
|
// src/funcs/settlementsGetNext.ts
|
|
77764
78244
|
function settlementsGetNext(client, request, options) {
|
|
77765
|
-
return new APIPromise($
|
|
78245
|
+
return new APIPromise($do76(client, request, options));
|
|
77766
78246
|
}
|
|
77767
|
-
async function $
|
|
78247
|
+
async function $do76(client, request, options) {
|
|
77768
78248
|
const parsed = safeParse4(request, (value) => GetNextSettlementRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77769
78249
|
if (!parsed.ok) {
|
|
77770
78250
|
return [parsed, { status: "invalid" }];
|
|
@@ -77842,12 +78322,12 @@ var init_settlementsGetNext = __esm(() => {
|
|
|
77842
78322
|
});
|
|
77843
78323
|
|
|
77844
78324
|
// src/mcp-server/tools/settlementsGetNext.ts
|
|
77845
|
-
var
|
|
78325
|
+
var args76, tool$settlementsGetNext;
|
|
77846
78326
|
var init_settlementsGetNext2 = __esm(() => {
|
|
77847
78327
|
init_settlementsGetNext();
|
|
77848
78328
|
init_operations();
|
|
77849
78329
|
init_tools();
|
|
77850
|
-
|
|
78330
|
+
args76 = {
|
|
77851
78331
|
request: GetNextSettlementRequest$inboundSchema.optional()
|
|
77852
78332
|
};
|
|
77853
78333
|
tool$settlementsGetNext = {
|
|
@@ -77861,9 +78341,9 @@ documentation.
|
|
|
77861
78341
|
|
|
77862
78342
|
For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
|
|
77863
78343
|
[balance transactions](list-balance-transactions) endpoint.`,
|
|
77864
|
-
args:
|
|
77865
|
-
tool: async (client,
|
|
77866
|
-
const [result, apiCall] = await settlementsGetNext(client,
|
|
78344
|
+
args: args76,
|
|
78345
|
+
tool: async (client, args77, ctx) => {
|
|
78346
|
+
const [result, apiCall] = await settlementsGetNext(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77867
78347
|
if (!result.ok) {
|
|
77868
78348
|
return {
|
|
77869
78349
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77878,9 +78358,9 @@ For more accurate bookkeeping, refer to the [balance report](get-balance-report)
|
|
|
77878
78358
|
|
|
77879
78359
|
// src/funcs/settlementsGetOpen.ts
|
|
77880
78360
|
function settlementsGetOpen(client, request, options) {
|
|
77881
|
-
return new APIPromise($
|
|
78361
|
+
return new APIPromise($do77(client, request, options));
|
|
77882
78362
|
}
|
|
77883
|
-
async function $
|
|
78363
|
+
async function $do77(client, request, options) {
|
|
77884
78364
|
const parsed = safeParse4(request, (value) => GetOpenSettlementRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
77885
78365
|
if (!parsed.ok) {
|
|
77886
78366
|
return [parsed, { status: "invalid" }];
|
|
@@ -77958,12 +78438,12 @@ var init_settlementsGetOpen = __esm(() => {
|
|
|
77958
78438
|
});
|
|
77959
78439
|
|
|
77960
78440
|
// src/mcp-server/tools/settlementsGetOpen.ts
|
|
77961
|
-
var
|
|
78441
|
+
var args77, tool$settlementsGetOpen;
|
|
77962
78442
|
var init_settlementsGetOpen2 = __esm(() => {
|
|
77963
78443
|
init_settlementsGetOpen();
|
|
77964
78444
|
init_operations();
|
|
77965
78445
|
init_tools();
|
|
77966
|
-
|
|
78446
|
+
args77 = {
|
|
77967
78447
|
request: GetOpenSettlementRequest$inboundSchema.optional()
|
|
77968
78448
|
};
|
|
77969
78449
|
tool$settlementsGetOpen = {
|
|
@@ -77978,9 +78458,9 @@ documentation.
|
|
|
77978
78458
|
|
|
77979
78459
|
For more accurate bookkeeping, refer to the [balance report](get-balance-report) endpoint or the
|
|
77980
78460
|
[balance transactions](list-balance-transactions) endpoint.`,
|
|
77981
|
-
args:
|
|
77982
|
-
tool: async (client,
|
|
77983
|
-
const [result, apiCall] = await settlementsGetOpen(client,
|
|
78461
|
+
args: args77,
|
|
78462
|
+
tool: async (client, args78, ctx) => {
|
|
78463
|
+
const [result, apiCall] = await settlementsGetOpen(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
77984
78464
|
if (!result.ok) {
|
|
77985
78465
|
return {
|
|
77986
78466
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -77995,9 +78475,9 @@ For more accurate bookkeeping, refer to the [balance report](get-balance-report)
|
|
|
77995
78475
|
|
|
77996
78476
|
// src/funcs/settlementsList.ts
|
|
77997
78477
|
function settlementsList(client, request, options) {
|
|
77998
|
-
return new APIPromise($
|
|
78478
|
+
return new APIPromise($do78(client, request, options));
|
|
77999
78479
|
}
|
|
78000
|
-
async function $
|
|
78480
|
+
async function $do78(client, request, options) {
|
|
78001
78481
|
const parsed = safeParse4(request, (value) => ListSettlementsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
78002
78482
|
if (!parsed.ok) {
|
|
78003
78483
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78118,12 +78598,12 @@ var init_settlementsList = __esm(() => {
|
|
|
78118
78598
|
});
|
|
78119
78599
|
|
|
78120
78600
|
// src/mcp-server/tools/settlementsList.ts
|
|
78121
|
-
var
|
|
78601
|
+
var args78, tool$settlementsList;
|
|
78122
78602
|
var init_settlementsList2 = __esm(() => {
|
|
78123
78603
|
init_settlementsList();
|
|
78124
78604
|
init_operations();
|
|
78125
78605
|
init_tools();
|
|
78126
|
-
|
|
78606
|
+
args78 = {
|
|
78127
78607
|
request: ListSettlementsRequest$inboundSchema.optional()
|
|
78128
78608
|
};
|
|
78129
78609
|
tool$settlementsList = {
|
|
@@ -78133,9 +78613,9 @@ var init_settlementsList2 = __esm(() => {
|
|
|
78133
78613
|
Retrieve a list of all your settlements.
|
|
78134
78614
|
|
|
78135
78615
|
The results are paginated.`,
|
|
78136
|
-
args:
|
|
78137
|
-
tool: async (client,
|
|
78138
|
-
const [result, apiCall] = await settlementsList(client,
|
|
78616
|
+
args: args78,
|
|
78617
|
+
tool: async (client, args79, ctx) => {
|
|
78618
|
+
const [result, apiCall] = await settlementsList(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78139
78619
|
if (!result.ok) {
|
|
78140
78620
|
return {
|
|
78141
78621
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78150,9 +78630,9 @@ The results are paginated.`,
|
|
|
78150
78630
|
|
|
78151
78631
|
// src/funcs/settlementsListCaptures.ts
|
|
78152
78632
|
function settlementsListCaptures(client, request, options) {
|
|
78153
|
-
return new APIPromise($
|
|
78633
|
+
return new APIPromise($do79(client, request, options));
|
|
78154
78634
|
}
|
|
78155
|
-
async function $
|
|
78635
|
+
async function $do79(client, request, options) {
|
|
78156
78636
|
const parsed = safeParse4(request, (value) => ListSettlementCapturesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78157
78637
|
if (!parsed.ok) {
|
|
78158
78638
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78277,12 +78757,12 @@ var init_settlementsListCaptures = __esm(() => {
|
|
|
78277
78757
|
});
|
|
78278
78758
|
|
|
78279
78759
|
// src/mcp-server/tools/settlementsListCaptures.ts
|
|
78280
|
-
var
|
|
78760
|
+
var args79, tool$settlementsListCaptures;
|
|
78281
78761
|
var init_settlementsListCaptures2 = __esm(() => {
|
|
78282
78762
|
init_settlementsListCaptures();
|
|
78283
78763
|
init_operations();
|
|
78284
78764
|
init_tools();
|
|
78285
|
-
|
|
78765
|
+
args79 = {
|
|
78286
78766
|
request: ListSettlementCapturesRequest$inboundSchema
|
|
78287
78767
|
};
|
|
78288
78768
|
tool$settlementsListCaptures = {
|
|
@@ -78292,9 +78772,9 @@ var init_settlementsListCaptures2 = __esm(() => {
|
|
|
78292
78772
|
Retrieve all captures included in the given settlement.
|
|
78293
78773
|
|
|
78294
78774
|
The response is in the same format as the response of the [List captures endpoint](list-captures).`,
|
|
78295
|
-
args:
|
|
78296
|
-
tool: async (client,
|
|
78297
|
-
const [result, apiCall] = await settlementsListCaptures(client,
|
|
78775
|
+
args: args79,
|
|
78776
|
+
tool: async (client, args80, ctx) => {
|
|
78777
|
+
const [result, apiCall] = await settlementsListCaptures(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78298
78778
|
if (!result.ok) {
|
|
78299
78779
|
return {
|
|
78300
78780
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78309,9 +78789,9 @@ The response is in the same format as the response of the [List captures endpoin
|
|
|
78309
78789
|
|
|
78310
78790
|
// src/funcs/settlementsListChargebacks.ts
|
|
78311
78791
|
function settlementsListChargebacks(client, request, options) {
|
|
78312
|
-
return new APIPromise($
|
|
78792
|
+
return new APIPromise($do80(client, request, options));
|
|
78313
78793
|
}
|
|
78314
|
-
async function $
|
|
78794
|
+
async function $do80(client, request, options) {
|
|
78315
78795
|
const parsed = safeParse4(request, (value) => ListSettlementChargebacksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78316
78796
|
if (!parsed.ok) {
|
|
78317
78797
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78436,12 +78916,12 @@ var init_settlementsListChargebacks = __esm(() => {
|
|
|
78436
78916
|
});
|
|
78437
78917
|
|
|
78438
78918
|
// src/mcp-server/tools/settlementsListChargebacks.ts
|
|
78439
|
-
var
|
|
78919
|
+
var args80, tool$settlementsListChargebacks;
|
|
78440
78920
|
var init_settlementsListChargebacks2 = __esm(() => {
|
|
78441
78921
|
init_settlementsListChargebacks();
|
|
78442
78922
|
init_operations();
|
|
78443
78923
|
init_tools();
|
|
78444
|
-
|
|
78924
|
+
args80 = {
|
|
78445
78925
|
request: ListSettlementChargebacksRequest$inboundSchema
|
|
78446
78926
|
};
|
|
78447
78927
|
tool$settlementsListChargebacks = {
|
|
@@ -78451,9 +78931,9 @@ var init_settlementsListChargebacks2 = __esm(() => {
|
|
|
78451
78931
|
Retrieve all chargebacks 'deducted' from the given settlement.
|
|
78452
78932
|
|
|
78453
78933
|
The response is in the same format as the response of the [List chargebacks endpoint](list-chargebacks).`,
|
|
78454
|
-
args:
|
|
78455
|
-
tool: async (client,
|
|
78456
|
-
const [result, apiCall] = await settlementsListChargebacks(client,
|
|
78934
|
+
args: args80,
|
|
78935
|
+
tool: async (client, args81, ctx) => {
|
|
78936
|
+
const [result, apiCall] = await settlementsListChargebacks(client, args81.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78457
78937
|
if (!result.ok) {
|
|
78458
78938
|
return {
|
|
78459
78939
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78468,9 +78948,9 @@ The response is in the same format as the response of the [List chargebacks endp
|
|
|
78468
78948
|
|
|
78469
78949
|
// src/funcs/settlementsListPayments.ts
|
|
78470
78950
|
function settlementsListPayments(client, request, options) {
|
|
78471
|
-
return new APIPromise($
|
|
78951
|
+
return new APIPromise($do81(client, request, options));
|
|
78472
78952
|
}
|
|
78473
|
-
async function $
|
|
78953
|
+
async function $do81(client, request, options) {
|
|
78474
78954
|
const parsed = safeParse4(request, (value) => ListSettlementPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78475
78955
|
if (!parsed.ok) {
|
|
78476
78956
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78596,12 +79076,12 @@ var init_settlementsListPayments = __esm(() => {
|
|
|
78596
79076
|
});
|
|
78597
79077
|
|
|
78598
79078
|
// src/mcp-server/tools/settlementsListPayments.ts
|
|
78599
|
-
var
|
|
79079
|
+
var args81, tool$settlementsListPayments;
|
|
78600
79080
|
var init_settlementsListPayments2 = __esm(() => {
|
|
78601
79081
|
init_settlementsListPayments();
|
|
78602
79082
|
init_operations();
|
|
78603
79083
|
init_tools();
|
|
78604
|
-
|
|
79084
|
+
args81 = {
|
|
78605
79085
|
request: ListSettlementPaymentsRequest$inboundSchema
|
|
78606
79086
|
};
|
|
78607
79087
|
tool$settlementsListPayments = {
|
|
@@ -78614,9 +79094,9 @@ The response is in the same format as the response of the [List payments endpoin
|
|
|
78614
79094
|
|
|
78615
79095
|
For capture-based payment methods such as Klarna, the payments are not listed here. Refer to the
|
|
78616
79096
|
[List captures endpoint](list-captures) endpoint instead.`,
|
|
78617
|
-
args:
|
|
78618
|
-
tool: async (client,
|
|
78619
|
-
const [result, apiCall] = await settlementsListPayments(client,
|
|
79097
|
+
args: args81,
|
|
79098
|
+
tool: async (client, args82, ctx) => {
|
|
79099
|
+
const [result, apiCall] = await settlementsListPayments(client, args82.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78620
79100
|
if (!result.ok) {
|
|
78621
79101
|
return {
|
|
78622
79102
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78631,9 +79111,9 @@ For capture-based payment methods such as Klarna, the payments are not listed he
|
|
|
78631
79111
|
|
|
78632
79112
|
// src/funcs/settlementsListRefunds.ts
|
|
78633
79113
|
function settlementsListRefunds(client, request, options) {
|
|
78634
|
-
return new APIPromise($
|
|
79114
|
+
return new APIPromise($do82(client, request, options));
|
|
78635
79115
|
}
|
|
78636
|
-
async function $
|
|
79116
|
+
async function $do82(client, request, options) {
|
|
78637
79117
|
const parsed = safeParse4(request, (value) => ListSettlementRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78638
79118
|
if (!parsed.ok) {
|
|
78639
79119
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78758,12 +79238,12 @@ var init_settlementsListRefunds = __esm(() => {
|
|
|
78758
79238
|
});
|
|
78759
79239
|
|
|
78760
79240
|
// src/mcp-server/tools/settlementsListRefunds.ts
|
|
78761
|
-
var
|
|
79241
|
+
var args82, tool$settlementsListRefunds;
|
|
78762
79242
|
var init_settlementsListRefunds2 = __esm(() => {
|
|
78763
79243
|
init_settlementsListRefunds();
|
|
78764
79244
|
init_operations();
|
|
78765
79245
|
init_tools();
|
|
78766
|
-
|
|
79246
|
+
args82 = {
|
|
78767
79247
|
request: ListSettlementRefundsRequest$inboundSchema
|
|
78768
79248
|
};
|
|
78769
79249
|
tool$settlementsListRefunds = {
|
|
@@ -78773,9 +79253,9 @@ var init_settlementsListRefunds2 = __esm(() => {
|
|
|
78773
79253
|
Retrieve all refunds 'deducted' from the given settlement.
|
|
78774
79254
|
|
|
78775
79255
|
The response is in the same format as the response of the [List refunds endpoint](list-refunds).`,
|
|
78776
|
-
args:
|
|
78777
|
-
tool: async (client,
|
|
78778
|
-
const [result, apiCall] = await settlementsListRefunds(client,
|
|
79256
|
+
args: args82,
|
|
79257
|
+
tool: async (client, args83, ctx) => {
|
|
79258
|
+
const [result, apiCall] = await settlementsListRefunds(client, args83.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78779
79259
|
if (!result.ok) {
|
|
78780
79260
|
return {
|
|
78781
79261
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78790,9 +79270,9 @@ The response is in the same format as the response of the [List refunds endpoint
|
|
|
78790
79270
|
|
|
78791
79271
|
// src/funcs/subscriptionsAll.ts
|
|
78792
79272
|
function subscriptionsAll(client, request, options) {
|
|
78793
|
-
return new APIPromise($
|
|
79273
|
+
return new APIPromise($do83(client, request, options));
|
|
78794
79274
|
}
|
|
78795
|
-
async function $
|
|
79275
|
+
async function $do83(client, request, options) {
|
|
78796
79276
|
const parsed = safeParse4(request, (value) => ListAllSubscriptionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
78797
79277
|
if (!parsed.ok) {
|
|
78798
79278
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -78911,12 +79391,12 @@ var init_subscriptionsAll = __esm(() => {
|
|
|
78911
79391
|
});
|
|
78912
79392
|
|
|
78913
79393
|
// src/mcp-server/tools/subscriptionsAll.ts
|
|
78914
|
-
var
|
|
79394
|
+
var args83, tool$subscriptionsAll;
|
|
78915
79395
|
var init_subscriptionsAll2 = __esm(() => {
|
|
78916
79396
|
init_subscriptionsAll();
|
|
78917
79397
|
init_operations();
|
|
78918
79398
|
init_tools();
|
|
78919
|
-
|
|
79399
|
+
args83 = {
|
|
78920
79400
|
request: ListAllSubscriptionsRequest$inboundSchema.optional()
|
|
78921
79401
|
};
|
|
78922
79402
|
tool$subscriptionsAll = {
|
|
@@ -78926,9 +79406,9 @@ var init_subscriptionsAll2 = __esm(() => {
|
|
|
78926
79406
|
Retrieve all subscriptions initiated across all your customers.
|
|
78927
79407
|
|
|
78928
79408
|
The results are paginated.`,
|
|
78929
|
-
args:
|
|
78930
|
-
tool: async (client,
|
|
78931
|
-
const [result, apiCall] = await subscriptionsAll(client,
|
|
79409
|
+
args: args83,
|
|
79410
|
+
tool: async (client, args84, ctx) => {
|
|
79411
|
+
const [result, apiCall] = await subscriptionsAll(client, args84.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
78932
79412
|
if (!result.ok) {
|
|
78933
79413
|
return {
|
|
78934
79414
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -78943,9 +79423,9 @@ The results are paginated.`,
|
|
|
78943
79423
|
|
|
78944
79424
|
// src/funcs/subscriptionsCancel.ts
|
|
78945
79425
|
function subscriptionsCancel(client, request, options) {
|
|
78946
|
-
return new APIPromise($
|
|
79426
|
+
return new APIPromise($do84(client, request, options));
|
|
78947
79427
|
}
|
|
78948
|
-
async function $
|
|
79428
|
+
async function $do84(client, request, options) {
|
|
78949
79429
|
const parsed = safeParse4(request, (value) => CancelSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
78950
79430
|
if (!parsed.ok) {
|
|
78951
79431
|
return [parsed, { status: "invalid" }];
|
|
@@ -79040,12 +79520,12 @@ var init_subscriptionsCancel = __esm(() => {
|
|
|
79040
79520
|
});
|
|
79041
79521
|
|
|
79042
79522
|
// src/mcp-server/tools/subscriptionsCancel.ts
|
|
79043
|
-
var
|
|
79523
|
+
var args84, tool$subscriptionsCancel;
|
|
79044
79524
|
var init_subscriptionsCancel2 = __esm(() => {
|
|
79045
79525
|
init_subscriptionsCancel();
|
|
79046
79526
|
init_operations();
|
|
79047
79527
|
init_tools();
|
|
79048
|
-
|
|
79528
|
+
args84 = {
|
|
79049
79529
|
request: CancelSubscriptionRequest$inboundSchema
|
|
79050
79530
|
};
|
|
79051
79531
|
tool$subscriptionsCancel = {
|
|
@@ -79053,9 +79533,9 @@ var init_subscriptionsCancel2 = __esm(() => {
|
|
|
79053
79533
|
description: `Cancel subscription
|
|
79054
79534
|
|
|
79055
79535
|
Cancel an existing subscription. Canceling a subscription has no effect on the mandates of the customer.`,
|
|
79056
|
-
args:
|
|
79057
|
-
tool: async (client,
|
|
79058
|
-
const [result, apiCall] = await subscriptionsCancel(client,
|
|
79536
|
+
args: args84,
|
|
79537
|
+
tool: async (client, args85, ctx) => {
|
|
79538
|
+
const [result, apiCall] = await subscriptionsCancel(client, args85.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79059
79539
|
if (!result.ok) {
|
|
79060
79540
|
return {
|
|
79061
79541
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79070,9 +79550,9 @@ Cancel an existing subscription. Canceling a subscription has no effect on the m
|
|
|
79070
79550
|
|
|
79071
79551
|
// src/funcs/subscriptionsCreate.ts
|
|
79072
79552
|
function subscriptionsCreate(client, request, options) {
|
|
79073
|
-
return new APIPromise($
|
|
79553
|
+
return new APIPromise($do85(client, request, options));
|
|
79074
79554
|
}
|
|
79075
|
-
async function $
|
|
79555
|
+
async function $do85(client, request, options) {
|
|
79076
79556
|
const parsed = safeParse4(request, (value) => CreateSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79077
79557
|
if (!parsed.ok) {
|
|
79078
79558
|
return [parsed, { status: "invalid" }];
|
|
@@ -79165,12 +79645,12 @@ var init_subscriptionsCreate = __esm(() => {
|
|
|
79165
79645
|
});
|
|
79166
79646
|
|
|
79167
79647
|
// src/mcp-server/tools/subscriptionsCreate.ts
|
|
79168
|
-
var
|
|
79648
|
+
var args85, tool$subscriptionsCreate;
|
|
79169
79649
|
var init_subscriptionsCreate2 = __esm(() => {
|
|
79170
79650
|
init_subscriptionsCreate();
|
|
79171
79651
|
init_operations();
|
|
79172
79652
|
init_tools();
|
|
79173
|
-
|
|
79653
|
+
args85 = {
|
|
79174
79654
|
request: CreateSubscriptionRequest$inboundSchema
|
|
79175
79655
|
};
|
|
79176
79656
|
tool$subscriptionsCreate = {
|
|
@@ -79196,9 +79676,9 @@ Your customer will be charged €20 every day, for five consecutive days.
|
|
|
79196
79676
|
\`amount[currency]="EUR"\` \`amount[value]="10.00"\` \`interval="1 month"\`
|
|
79197
79677
|
\`startDate="2018-04-30"\`
|
|
79198
79678
|
Your customer will be charged €10 on the last day of each month, starting in April 2018.`,
|
|
79199
|
-
args:
|
|
79200
|
-
tool: async (client,
|
|
79201
|
-
const [result, apiCall] = await subscriptionsCreate(client,
|
|
79679
|
+
args: args85,
|
|
79680
|
+
tool: async (client, args86, ctx) => {
|
|
79681
|
+
const [result, apiCall] = await subscriptionsCreate(client, args86.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79202
79682
|
if (!result.ok) {
|
|
79203
79683
|
return {
|
|
79204
79684
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79213,9 +79693,9 @@ Your customer will be charged €10 on the last day of each month, starting in A
|
|
|
79213
79693
|
|
|
79214
79694
|
// src/funcs/subscriptionsGet.ts
|
|
79215
79695
|
function subscriptionsGet(client, request, options) {
|
|
79216
|
-
return new APIPromise($
|
|
79696
|
+
return new APIPromise($do86(client, request, options));
|
|
79217
79697
|
}
|
|
79218
|
-
async function $
|
|
79698
|
+
async function $do86(client, request, options) {
|
|
79219
79699
|
const parsed = safeParse4(request, (value) => GetSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79220
79700
|
if (!parsed.ok) {
|
|
79221
79701
|
return [parsed, { status: "invalid" }];
|
|
@@ -79313,12 +79793,12 @@ var init_subscriptionsGet = __esm(() => {
|
|
|
79313
79793
|
});
|
|
79314
79794
|
|
|
79315
79795
|
// src/mcp-server/tools/subscriptionsGet.ts
|
|
79316
|
-
var
|
|
79796
|
+
var args86, tool$subscriptionsGet;
|
|
79317
79797
|
var init_subscriptionsGet2 = __esm(() => {
|
|
79318
79798
|
init_subscriptionsGet();
|
|
79319
79799
|
init_operations();
|
|
79320
79800
|
init_tools();
|
|
79321
|
-
|
|
79801
|
+
args86 = {
|
|
79322
79802
|
request: GetSubscriptionRequest$inboundSchema
|
|
79323
79803
|
};
|
|
79324
79804
|
tool$subscriptionsGet = {
|
|
@@ -79326,9 +79806,9 @@ var init_subscriptionsGet2 = __esm(() => {
|
|
|
79326
79806
|
description: `Get subscription
|
|
79327
79807
|
|
|
79328
79808
|
Retrieve a single subscription by its ID and the ID of its parent customer.`,
|
|
79329
|
-
args:
|
|
79330
|
-
tool: async (client,
|
|
79331
|
-
const [result, apiCall] = await subscriptionsGet(client,
|
|
79809
|
+
args: args86,
|
|
79810
|
+
tool: async (client, args87, ctx) => {
|
|
79811
|
+
const [result, apiCall] = await subscriptionsGet(client, args87.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79332
79812
|
if (!result.ok) {
|
|
79333
79813
|
return {
|
|
79334
79814
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79343,9 +79823,9 @@ Retrieve a single subscription by its ID and the ID of its parent customer.`,
|
|
|
79343
79823
|
|
|
79344
79824
|
// src/funcs/subscriptionsList.ts
|
|
79345
79825
|
function subscriptionsList(client, request, options) {
|
|
79346
|
-
return new APIPromise($
|
|
79826
|
+
return new APIPromise($do87(client, request, options));
|
|
79347
79827
|
}
|
|
79348
|
-
async function $
|
|
79828
|
+
async function $do87(client, request, options) {
|
|
79349
79829
|
const parsed = safeParse4(request, (value) => ListSubscriptionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79350
79830
|
if (!parsed.ok) {
|
|
79351
79831
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -79470,12 +79950,12 @@ var init_subscriptionsList = __esm(() => {
|
|
|
79470
79950
|
});
|
|
79471
79951
|
|
|
79472
79952
|
// src/mcp-server/tools/subscriptionsList.ts
|
|
79473
|
-
var
|
|
79953
|
+
var args87, tool$subscriptionsList;
|
|
79474
79954
|
var init_subscriptionsList2 = __esm(() => {
|
|
79475
79955
|
init_subscriptionsList();
|
|
79476
79956
|
init_operations();
|
|
79477
79957
|
init_tools();
|
|
79478
|
-
|
|
79958
|
+
args87 = {
|
|
79479
79959
|
request: ListSubscriptionsRequest$inboundSchema
|
|
79480
79960
|
};
|
|
79481
79961
|
tool$subscriptionsList = {
|
|
@@ -79485,9 +79965,9 @@ var init_subscriptionsList2 = __esm(() => {
|
|
|
79485
79965
|
Retrieve all subscriptions of a customer.
|
|
79486
79966
|
|
|
79487
79967
|
The results are paginated.`,
|
|
79488
|
-
args:
|
|
79489
|
-
tool: async (client,
|
|
79490
|
-
const [result, apiCall] = await subscriptionsList(client,
|
|
79968
|
+
args: args87,
|
|
79969
|
+
tool: async (client, args88, ctx) => {
|
|
79970
|
+
const [result, apiCall] = await subscriptionsList(client, args88.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79491
79971
|
if (!result.ok) {
|
|
79492
79972
|
return {
|
|
79493
79973
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79502,9 +79982,9 @@ The results are paginated.`,
|
|
|
79502
79982
|
|
|
79503
79983
|
// src/funcs/subscriptionsListPayments.ts
|
|
79504
79984
|
function subscriptionsListPayments(client, request, options) {
|
|
79505
|
-
return new APIPromise($
|
|
79985
|
+
return new APIPromise($do88(client, request, options));
|
|
79506
79986
|
}
|
|
79507
|
-
async function $
|
|
79987
|
+
async function $do88(client, request, options) {
|
|
79508
79988
|
const parsed = safeParse4(request, (value) => ListSubscriptionPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79509
79989
|
if (!parsed.ok) {
|
|
79510
79990
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -79634,12 +80114,12 @@ var init_subscriptionsListPayments = __esm(() => {
|
|
|
79634
80114
|
});
|
|
79635
80115
|
|
|
79636
80116
|
// src/mcp-server/tools/subscriptionsListPayments.ts
|
|
79637
|
-
var
|
|
80117
|
+
var args88, tool$subscriptionsListPayments;
|
|
79638
80118
|
var init_subscriptionsListPayments2 = __esm(() => {
|
|
79639
80119
|
init_subscriptionsListPayments();
|
|
79640
80120
|
init_operations();
|
|
79641
80121
|
init_tools();
|
|
79642
|
-
|
|
80122
|
+
args88 = {
|
|
79643
80123
|
request: ListSubscriptionPaymentsRequest$inboundSchema
|
|
79644
80124
|
};
|
|
79645
80125
|
tool$subscriptionsListPayments = {
|
|
@@ -79649,9 +80129,9 @@ var init_subscriptionsListPayments2 = __esm(() => {
|
|
|
79649
80129
|
Retrieve all payments of a specific subscription.
|
|
79650
80130
|
|
|
79651
80131
|
The results are paginated.`,
|
|
79652
|
-
args:
|
|
79653
|
-
tool: async (client,
|
|
79654
|
-
const [result, apiCall] = await subscriptionsListPayments(client,
|
|
80132
|
+
args: args88,
|
|
80133
|
+
tool: async (client, args89, ctx) => {
|
|
80134
|
+
const [result, apiCall] = await subscriptionsListPayments(client, args89.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79655
80135
|
if (!result.ok) {
|
|
79656
80136
|
return {
|
|
79657
80137
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79666,9 +80146,9 @@ The results are paginated.`,
|
|
|
79666
80146
|
|
|
79667
80147
|
// src/funcs/subscriptionsUpdate.ts
|
|
79668
80148
|
function subscriptionsUpdate(client, request, options) {
|
|
79669
|
-
return new APIPromise($
|
|
80149
|
+
return new APIPromise($do89(client, request, options));
|
|
79670
80150
|
}
|
|
79671
|
-
async function $
|
|
80151
|
+
async function $do89(client, request, options) {
|
|
79672
80152
|
const parsed = safeParse4(request, (value) => UpdateSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79673
80153
|
if (!parsed.ok) {
|
|
79674
80154
|
return [parsed, { status: "invalid" }];
|
|
@@ -79763,12 +80243,12 @@ var init_subscriptionsUpdate = __esm(() => {
|
|
|
79763
80243
|
});
|
|
79764
80244
|
|
|
79765
80245
|
// src/mcp-server/tools/subscriptionsUpdate.ts
|
|
79766
|
-
var
|
|
80246
|
+
var args89, tool$subscriptionsUpdate;
|
|
79767
80247
|
var init_subscriptionsUpdate2 = __esm(() => {
|
|
79768
80248
|
init_subscriptionsUpdate();
|
|
79769
80249
|
init_operations();
|
|
79770
80250
|
init_tools();
|
|
79771
|
-
|
|
80251
|
+
args89 = {
|
|
79772
80252
|
request: UpdateSubscriptionRequest$inboundSchema
|
|
79773
80253
|
};
|
|
79774
80254
|
tool$subscriptionsUpdate = {
|
|
@@ -79780,9 +80260,9 @@ Update an existing subscription.
|
|
|
79780
80260
|
Canceled subscriptions cannot be updated.
|
|
79781
80261
|
|
|
79782
80262
|
For an in-depth explanation of each parameter, refer to the [Create subscription](create-subscription) endpoint.`,
|
|
79783
|
-
args:
|
|
79784
|
-
tool: async (client,
|
|
79785
|
-
const [result, apiCall] = await subscriptionsUpdate(client,
|
|
80263
|
+
args: args89,
|
|
80264
|
+
tool: async (client, args90, ctx) => {
|
|
80265
|
+
const [result, apiCall] = await subscriptionsUpdate(client, args90.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79786
80266
|
if (!result.ok) {
|
|
79787
80267
|
return {
|
|
79788
80268
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79797,9 +80277,9 @@ For an in-depth explanation of each parameter, refer to the [Create subscription
|
|
|
79797
80277
|
|
|
79798
80278
|
// src/funcs/terminalsGet.ts
|
|
79799
80279
|
function terminalsGet(client, request, options) {
|
|
79800
|
-
return new APIPromise($
|
|
80280
|
+
return new APIPromise($do90(client, request, options));
|
|
79801
80281
|
}
|
|
79802
|
-
async function $
|
|
80282
|
+
async function $do90(client, request, options) {
|
|
79803
80283
|
const parsed = safeParse4(request, (value) => GetTerminalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
79804
80284
|
if (!parsed.ok) {
|
|
79805
80285
|
return [parsed, { status: "invalid" }];
|
|
@@ -79893,12 +80373,12 @@ var init_terminalsGet = __esm(() => {
|
|
|
79893
80373
|
});
|
|
79894
80374
|
|
|
79895
80375
|
// src/mcp-server/tools/terminalsGet.ts
|
|
79896
|
-
var
|
|
80376
|
+
var args90, tool$terminalsGet;
|
|
79897
80377
|
var init_terminalsGet2 = __esm(() => {
|
|
79898
80378
|
init_terminalsGet();
|
|
79899
80379
|
init_operations();
|
|
79900
80380
|
init_tools();
|
|
79901
|
-
|
|
80381
|
+
args90 = {
|
|
79902
80382
|
request: GetTerminalRequest$inboundSchema
|
|
79903
80383
|
};
|
|
79904
80384
|
tool$terminalsGet = {
|
|
@@ -79906,9 +80386,9 @@ var init_terminalsGet2 = __esm(() => {
|
|
|
79906
80386
|
description: `Get terminal
|
|
79907
80387
|
|
|
79908
80388
|
Retrieve a single terminal by its ID.`,
|
|
79909
|
-
args:
|
|
79910
|
-
tool: async (client,
|
|
79911
|
-
const [result, apiCall] = await terminalsGet(client,
|
|
80389
|
+
args: args90,
|
|
80390
|
+
tool: async (client, args91, ctx) => {
|
|
80391
|
+
const [result, apiCall] = await terminalsGet(client, args91.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
79912
80392
|
if (!result.ok) {
|
|
79913
80393
|
return {
|
|
79914
80394
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -79923,9 +80403,9 @@ Retrieve a single terminal by its ID.`,
|
|
|
79923
80403
|
|
|
79924
80404
|
// src/funcs/terminalsList.ts
|
|
79925
80405
|
function terminalsList(client, request, options) {
|
|
79926
|
-
return new APIPromise($
|
|
80406
|
+
return new APIPromise($do91(client, request, options));
|
|
79927
80407
|
}
|
|
79928
|
-
async function $
|
|
80408
|
+
async function $do91(client, request, options) {
|
|
79929
80409
|
const parsed = safeParse4(request, (value) => ListTerminalsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
79930
80410
|
if (!parsed.ok) {
|
|
79931
80411
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -80044,12 +80524,12 @@ var init_terminalsList = __esm(() => {
|
|
|
80044
80524
|
});
|
|
80045
80525
|
|
|
80046
80526
|
// src/mcp-server/tools/terminalsList.ts
|
|
80047
|
-
var
|
|
80527
|
+
var args91, tool$terminalsList;
|
|
80048
80528
|
var init_terminalsList2 = __esm(() => {
|
|
80049
80529
|
init_terminalsList();
|
|
80050
80530
|
init_operations();
|
|
80051
80531
|
init_tools();
|
|
80052
|
-
|
|
80532
|
+
args91 = {
|
|
80053
80533
|
request: ListTerminalsRequest$inboundSchema.optional()
|
|
80054
80534
|
};
|
|
80055
80535
|
tool$terminalsList = {
|
|
@@ -80059,9 +80539,9 @@ var init_terminalsList2 = __esm(() => {
|
|
|
80059
80539
|
Retrieve a list of all physical point-of-sale devices.
|
|
80060
80540
|
|
|
80061
80541
|
The results are paginated.`,
|
|
80062
|
-
args:
|
|
80063
|
-
tool: async (client,
|
|
80064
|
-
const [result, apiCall] = await terminalsList(client,
|
|
80542
|
+
args: args91,
|
|
80543
|
+
tool: async (client, args92, ctx) => {
|
|
80544
|
+
const [result, apiCall] = await terminalsList(client, args92.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80065
80545
|
if (!result.ok) {
|
|
80066
80546
|
return {
|
|
80067
80547
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80076,9 +80556,9 @@ The results are paginated.`,
|
|
|
80076
80556
|
|
|
80077
80557
|
// src/funcs/walletsRequestApplePaySession.ts
|
|
80078
80558
|
function walletsRequestApplePaySession(client, request, options) {
|
|
80079
|
-
return new APIPromise($
|
|
80559
|
+
return new APIPromise($do92(client, request, options));
|
|
80080
80560
|
}
|
|
80081
|
-
async function $
|
|
80561
|
+
async function $do92(client, request, options) {
|
|
80082
80562
|
const parsed = safeParse4(request, (value) => RequestApplePayPaymentSessionRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
80083
80563
|
if (!parsed.ok) {
|
|
80084
80564
|
return [parsed, { status: "invalid" }];
|
|
@@ -80161,12 +80641,12 @@ var init_walletsRequestApplePaySession = __esm(() => {
|
|
|
80161
80641
|
});
|
|
80162
80642
|
|
|
80163
80643
|
// src/mcp-server/tools/walletsRequestApplePaySession.ts
|
|
80164
|
-
var
|
|
80644
|
+
var args92, tool$walletsRequestApplePaySession;
|
|
80165
80645
|
var init_walletsRequestApplePaySession2 = __esm(() => {
|
|
80166
80646
|
init_walletsRequestApplePaySession();
|
|
80167
80647
|
init_operations();
|
|
80168
80648
|
init_tools();
|
|
80169
|
-
|
|
80649
|
+
args92 = {
|
|
80170
80650
|
request: RequestApplePayPaymentSessionRequest$inboundSchema.optional()
|
|
80171
80651
|
};
|
|
80172
80652
|
tool$walletsRequestApplePaySession = {
|
|
@@ -80192,9 +80672,9 @@ expire after five minutes.
|
|
|
80192
80672
|
Payment sessions cannot be requested directly from the browser. The request must be sent from your server. For the
|
|
80193
80673
|
full documentation, see the official
|
|
80194
80674
|
[Apple Pay JS API](https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_js_api) documentation.`,
|
|
80195
|
-
args:
|
|
80196
|
-
tool: async (client,
|
|
80197
|
-
const [result, apiCall] = await walletsRequestApplePaySession(client,
|
|
80675
|
+
args: args92,
|
|
80676
|
+
tool: async (client, args93, ctx) => {
|
|
80677
|
+
const [result, apiCall] = await walletsRequestApplePaySession(client, args93.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80198
80678
|
if (!result.ok) {
|
|
80199
80679
|
return {
|
|
80200
80680
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80209,9 +80689,9 @@ full documentation, see the official
|
|
|
80209
80689
|
|
|
80210
80690
|
// src/funcs/webhookEventsGet.ts
|
|
80211
80691
|
function webhookEventsGet(client, request, options) {
|
|
80212
|
-
return new APIPromise($
|
|
80692
|
+
return new APIPromise($do93(client, request, options));
|
|
80213
80693
|
}
|
|
80214
|
-
async function $
|
|
80694
|
+
async function $do93(client, request, options) {
|
|
80215
80695
|
const parsed = safeParse4(request, (value) => GetWebhookEventRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80216
80696
|
if (!parsed.ok) {
|
|
80217
80697
|
return [parsed, { status: "invalid" }];
|
|
@@ -80305,12 +80785,12 @@ var init_webhookEventsGet = __esm(() => {
|
|
|
80305
80785
|
});
|
|
80306
80786
|
|
|
80307
80787
|
// src/mcp-server/tools/webhookEventsGet.ts
|
|
80308
|
-
var
|
|
80788
|
+
var args93, tool$webhookEventsGet;
|
|
80309
80789
|
var init_webhookEventsGet2 = __esm(() => {
|
|
80310
80790
|
init_webhookEventsGet();
|
|
80311
80791
|
init_operations();
|
|
80312
80792
|
init_tools();
|
|
80313
|
-
|
|
80793
|
+
args93 = {
|
|
80314
80794
|
request: GetWebhookEventRequest$inboundSchema
|
|
80315
80795
|
};
|
|
80316
80796
|
tool$webhookEventsGet = {
|
|
@@ -80318,9 +80798,9 @@ var init_webhookEventsGet2 = __esm(() => {
|
|
|
80318
80798
|
description: `Get a Webhook Event
|
|
80319
80799
|
|
|
80320
80800
|
Retrieve a single webhook event object by its event ID.`,
|
|
80321
|
-
args:
|
|
80322
|
-
tool: async (client,
|
|
80323
|
-
const [result, apiCall] = await webhookEventsGet(client,
|
|
80801
|
+
args: args93,
|
|
80802
|
+
tool: async (client, args94, ctx) => {
|
|
80803
|
+
const [result, apiCall] = await webhookEventsGet(client, args94.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80324
80804
|
if (!result.ok) {
|
|
80325
80805
|
return {
|
|
80326
80806
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80335,9 +80815,9 @@ Retrieve a single webhook event object by its event ID.`,
|
|
|
80335
80815
|
|
|
80336
80816
|
// src/funcs/webhooksCreate.ts
|
|
80337
80817
|
function webhooksCreate(client, request, options) {
|
|
80338
|
-
return new APIPromise($
|
|
80818
|
+
return new APIPromise($do94(client, request, options));
|
|
80339
80819
|
}
|
|
80340
|
-
async function $
|
|
80820
|
+
async function $do94(client, request, options) {
|
|
80341
80821
|
const parsed = safeParse4(request, (value) => CreateWebhookRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
80342
80822
|
if (!parsed.ok) {
|
|
80343
80823
|
return [parsed, { status: "invalid" }];
|
|
@@ -80422,12 +80902,12 @@ var init_webhooksCreate = __esm(() => {
|
|
|
80422
80902
|
});
|
|
80423
80903
|
|
|
80424
80904
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
80425
|
-
var
|
|
80905
|
+
var args94, tool$webhooksCreate;
|
|
80426
80906
|
var init_webhooksCreate2 = __esm(() => {
|
|
80427
80907
|
init_webhooksCreate();
|
|
80428
80908
|
init_operations();
|
|
80429
80909
|
init_tools();
|
|
80430
|
-
|
|
80910
|
+
args94 = {
|
|
80431
80911
|
request: CreateWebhookRequest$inboundSchema.optional()
|
|
80432
80912
|
};
|
|
80433
80913
|
tool$webhooksCreate = {
|
|
@@ -80435,9 +80915,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
80435
80915
|
description: `Create a webhook
|
|
80436
80916
|
|
|
80437
80917
|
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.`,
|
|
80438
|
-
args:
|
|
80439
|
-
tool: async (client,
|
|
80440
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
80918
|
+
args: args94,
|
|
80919
|
+
tool: async (client, args95, ctx) => {
|
|
80920
|
+
const [result, apiCall] = await webhooksCreate(client, args95.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80441
80921
|
if (!result.ok) {
|
|
80442
80922
|
return {
|
|
80443
80923
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80452,9 +80932,9 @@ A webhook must have a name, an url and a list of event types. You can also creat
|
|
|
80452
80932
|
|
|
80453
80933
|
// src/funcs/webhooksDelete.ts
|
|
80454
80934
|
function webhooksDelete(client, request, options) {
|
|
80455
|
-
return new APIPromise($
|
|
80935
|
+
return new APIPromise($do95(client, request, options));
|
|
80456
80936
|
}
|
|
80457
|
-
async function $
|
|
80937
|
+
async function $do95(client, request, options) {
|
|
80458
80938
|
const parsed = safeParse4(request, (value) => DeleteWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80459
80939
|
if (!parsed.ok) {
|
|
80460
80940
|
return [parsed, { status: "invalid" }];
|
|
@@ -80543,12 +81023,12 @@ var init_webhooksDelete = __esm(() => {
|
|
|
80543
81023
|
});
|
|
80544
81024
|
|
|
80545
81025
|
// src/mcp-server/tools/webhooksDelete.ts
|
|
80546
|
-
var
|
|
81026
|
+
var args95, tool$webhooksDelete;
|
|
80547
81027
|
var init_webhooksDelete2 = __esm(() => {
|
|
80548
81028
|
init_webhooksDelete();
|
|
80549
81029
|
init_operations();
|
|
80550
81030
|
init_tools();
|
|
80551
|
-
|
|
81031
|
+
args95 = {
|
|
80552
81032
|
request: DeleteWebhookRequest$inboundSchema
|
|
80553
81033
|
};
|
|
80554
81034
|
tool$webhooksDelete = {
|
|
@@ -80556,9 +81036,9 @@ var init_webhooksDelete2 = __esm(() => {
|
|
|
80556
81036
|
description: `Delete a webhook
|
|
80557
81037
|
|
|
80558
81038
|
Delete a single webhook object by its webhook ID.`,
|
|
80559
|
-
args:
|
|
80560
|
-
tool: async (client,
|
|
80561
|
-
const [result, apiCall] = await webhooksDelete(client,
|
|
81039
|
+
args: args95,
|
|
81040
|
+
tool: async (client, args96, ctx) => {
|
|
81041
|
+
const [result, apiCall] = await webhooksDelete(client, args96.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80562
81042
|
if (!result.ok) {
|
|
80563
81043
|
return {
|
|
80564
81044
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80572,9 +81052,9 @@ Delete a single webhook object by its webhook ID.`,
|
|
|
80572
81052
|
|
|
80573
81053
|
// src/funcs/webhooksGet.ts
|
|
80574
81054
|
function webhooksGet(client, request, options) {
|
|
80575
|
-
return new APIPromise($
|
|
81055
|
+
return new APIPromise($do96(client, request, options));
|
|
80576
81056
|
}
|
|
80577
|
-
async function $
|
|
81057
|
+
async function $do96(client, request, options) {
|
|
80578
81058
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80579
81059
|
if (!parsed.ok) {
|
|
80580
81060
|
return [parsed, { status: "invalid" }];
|
|
@@ -80668,12 +81148,12 @@ var init_webhooksGet = __esm(() => {
|
|
|
80668
81148
|
});
|
|
80669
81149
|
|
|
80670
81150
|
// src/mcp-server/tools/webhooksGet.ts
|
|
80671
|
-
var
|
|
81151
|
+
var args96, tool$webhooksGet;
|
|
80672
81152
|
var init_webhooksGet2 = __esm(() => {
|
|
80673
81153
|
init_webhooksGet();
|
|
80674
81154
|
init_operations();
|
|
80675
81155
|
init_tools();
|
|
80676
|
-
|
|
81156
|
+
args96 = {
|
|
80677
81157
|
request: GetWebhookRequest$inboundSchema
|
|
80678
81158
|
};
|
|
80679
81159
|
tool$webhooksGet = {
|
|
@@ -80681,9 +81161,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
80681
81161
|
description: `Get a webhook
|
|
80682
81162
|
|
|
80683
81163
|
Retrieve a single webhook object by its ID.`,
|
|
80684
|
-
args:
|
|
80685
|
-
tool: async (client,
|
|
80686
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
81164
|
+
args: args96,
|
|
81165
|
+
tool: async (client, args97, ctx) => {
|
|
81166
|
+
const [result, apiCall] = await webhooksGet(client, args97.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80687
81167
|
if (!result.ok) {
|
|
80688
81168
|
return {
|
|
80689
81169
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80698,9 +81178,9 @@ Retrieve a single webhook object by its ID.`,
|
|
|
80698
81178
|
|
|
80699
81179
|
// src/funcs/webhooksList.ts
|
|
80700
81180
|
function webhooksList(client, request, options) {
|
|
80701
|
-
return new APIPromise($
|
|
81181
|
+
return new APIPromise($do97(client, request, options));
|
|
80702
81182
|
}
|
|
80703
|
-
async function $
|
|
81183
|
+
async function $do97(client, request, options) {
|
|
80704
81184
|
const parsed = safeParse4(request, (value) => ListWebhooksRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
80705
81185
|
if (!parsed.ok) {
|
|
80706
81186
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -80820,12 +81300,12 @@ var init_webhooksList = __esm(() => {
|
|
|
80820
81300
|
});
|
|
80821
81301
|
|
|
80822
81302
|
// src/mcp-server/tools/webhooksList.ts
|
|
80823
|
-
var
|
|
81303
|
+
var args97, tool$webhooksList;
|
|
80824
81304
|
var init_webhooksList2 = __esm(() => {
|
|
80825
81305
|
init_webhooksList();
|
|
80826
81306
|
init_operations();
|
|
80827
81307
|
init_tools();
|
|
80828
|
-
|
|
81308
|
+
args97 = {
|
|
80829
81309
|
request: ListWebhooksRequest$inboundSchema.optional()
|
|
80830
81310
|
};
|
|
80831
81311
|
tool$webhooksList = {
|
|
@@ -80833,9 +81313,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
80833
81313
|
description: `List all webhooks
|
|
80834
81314
|
|
|
80835
81315
|
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.`,
|
|
80836
|
-
args:
|
|
80837
|
-
tool: async (client,
|
|
80838
|
-
const [result, apiCall] = await webhooksList(client,
|
|
81316
|
+
args: args97,
|
|
81317
|
+
tool: async (client, args98, ctx) => {
|
|
81318
|
+
const [result, apiCall] = await webhooksList(client, args98.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80839
81319
|
if (!result.ok) {
|
|
80840
81320
|
return {
|
|
80841
81321
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80850,9 +81330,9 @@ Returns a paginated list of your webhooks. If no webhook endpoints are available
|
|
|
80850
81330
|
|
|
80851
81331
|
// src/funcs/webhooksTest.ts
|
|
80852
81332
|
function webhooksTest(client, request, options) {
|
|
80853
|
-
return new APIPromise($
|
|
81333
|
+
return new APIPromise($do98(client, request, options));
|
|
80854
81334
|
}
|
|
80855
|
-
async function $
|
|
81335
|
+
async function $do98(client, request, options) {
|
|
80856
81336
|
const parsed = safeParse4(request, (value) => TestWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80857
81337
|
if (!parsed.ok) {
|
|
80858
81338
|
return [parsed, { status: "invalid" }];
|
|
@@ -80941,12 +81421,12 @@ var init_webhooksTest = __esm(() => {
|
|
|
80941
81421
|
});
|
|
80942
81422
|
|
|
80943
81423
|
// src/mcp-server/tools/webhooksTest.ts
|
|
80944
|
-
var
|
|
81424
|
+
var args98, tool$webhooksTest;
|
|
80945
81425
|
var init_webhooksTest2 = __esm(() => {
|
|
80946
81426
|
init_webhooksTest();
|
|
80947
81427
|
init_operations();
|
|
80948
81428
|
init_tools();
|
|
80949
|
-
|
|
81429
|
+
args98 = {
|
|
80950
81430
|
request: TestWebhookRequest$inboundSchema
|
|
80951
81431
|
};
|
|
80952
81432
|
tool$webhooksTest = {
|
|
@@ -80954,9 +81434,9 @@ var init_webhooksTest2 = __esm(() => {
|
|
|
80954
81434
|
description: `Test a webhook
|
|
80955
81435
|
|
|
80956
81436
|
Sends a test event to the webhook to verify the endpoint is working as expected.`,
|
|
80957
|
-
args:
|
|
80958
|
-
tool: async (client,
|
|
80959
|
-
const [result, apiCall] = await webhooksTest(client,
|
|
81437
|
+
args: args98,
|
|
81438
|
+
tool: async (client, args99, ctx) => {
|
|
81439
|
+
const [result, apiCall] = await webhooksTest(client, args99.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
80960
81440
|
if (!result.ok) {
|
|
80961
81441
|
return {
|
|
80962
81442
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -80970,9 +81450,9 @@ Sends a test event to the webhook to verify the endpoint is working as expected.
|
|
|
80970
81450
|
|
|
80971
81451
|
// src/funcs/webhooksUpdate.ts
|
|
80972
81452
|
function webhooksUpdate(client, request, options) {
|
|
80973
|
-
return new APIPromise($
|
|
81453
|
+
return new APIPromise($do99(client, request, options));
|
|
80974
81454
|
}
|
|
80975
|
-
async function $
|
|
81455
|
+
async function $do99(client, request, options) {
|
|
80976
81456
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
80977
81457
|
if (!parsed.ok) {
|
|
80978
81458
|
return [parsed, { status: "invalid" }];
|
|
@@ -81063,12 +81543,12 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
81063
81543
|
});
|
|
81064
81544
|
|
|
81065
81545
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
81066
|
-
var
|
|
81546
|
+
var args99, tool$webhooksUpdate;
|
|
81067
81547
|
var init_webhooksUpdate2 = __esm(() => {
|
|
81068
81548
|
init_webhooksUpdate();
|
|
81069
81549
|
init_operations();
|
|
81070
81550
|
init_tools();
|
|
81071
|
-
|
|
81551
|
+
args99 = {
|
|
81072
81552
|
request: UpdateWebhookRequest$inboundSchema
|
|
81073
81553
|
};
|
|
81074
81554
|
tool$webhooksUpdate = {
|
|
@@ -81076,9 +81556,9 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
81076
81556
|
description: `Update a webhook
|
|
81077
81557
|
|
|
81078
81558
|
Updates the webhook. You may edit the name, url and the list of subscribed event types.`,
|
|
81079
|
-
args:
|
|
81080
|
-
tool: async (client,
|
|
81081
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
81559
|
+
args: args99,
|
|
81560
|
+
tool: async (client, args100, ctx) => {
|
|
81561
|
+
const [result, apiCall] = await webhooksUpdate(client, args100.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
81082
81562
|
if (!result.ok) {
|
|
81083
81563
|
return {
|
|
81084
81564
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -81095,7 +81575,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
|
|
|
81095
81575
|
function createMCPServer(deps) {
|
|
81096
81576
|
const server = new McpServer({
|
|
81097
81577
|
name: "Client",
|
|
81098
|
-
version: "1.2.
|
|
81578
|
+
version: "1.2.4"
|
|
81099
81579
|
});
|
|
81100
81580
|
const client = new ClientCore({
|
|
81101
81581
|
security: deps.security,
|
|
@@ -81160,6 +81640,8 @@ function createMCPServer(deps) {
|
|
|
81160
81640
|
tool(tool$paymentsUpdate);
|
|
81161
81641
|
tool(tool$paymentsCancel);
|
|
81162
81642
|
tool(tool$paymentsReleaseAuthorization);
|
|
81643
|
+
tool(tool$sessionsCreate);
|
|
81644
|
+
tool(tool$sessionsGet);
|
|
81163
81645
|
tool(tool$methodsList);
|
|
81164
81646
|
tool(tool$methodsAll);
|
|
81165
81647
|
tool(tool$methodsGet);
|
|
@@ -81288,6 +81770,8 @@ var init_server2 = __esm(() => {
|
|
|
81288
81770
|
init_salesInvoicesGet2();
|
|
81289
81771
|
init_salesInvoicesList2();
|
|
81290
81772
|
init_salesInvoicesUpdate2();
|
|
81773
|
+
init_sessionsCreate2();
|
|
81774
|
+
init_sessionsGet2();
|
|
81291
81775
|
init_settlementsGet2();
|
|
81292
81776
|
init_settlementsGetNext2();
|
|
81293
81777
|
init_settlementsGetOpen2();
|
|
@@ -82525,7 +83009,7 @@ var routes = an({
|
|
|
82525
83009
|
var app = He(routes, {
|
|
82526
83010
|
name: "mcp",
|
|
82527
83011
|
versionInfo: {
|
|
82528
|
-
currentVersion: "1.2.
|
|
83012
|
+
currentVersion: "1.2.4"
|
|
82529
83013
|
}
|
|
82530
83014
|
});
|
|
82531
83015
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -82533,5 +83017,5 @@ export {
|
|
|
82533
83017
|
app
|
|
82534
83018
|
};
|
|
82535
83019
|
|
|
82536
|
-
//# debugId=
|
|
83020
|
+
//# debugId=66E862CE640C6AED64756E2164756E21
|
|
82537
83021
|
//# sourceMappingURL=mcp-server.js.map
|