@polar-sh/sdk 0.35.1 → 0.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -23
- package/bin/mcp-server.js +806 -635
- package/bin/mcp-server.js.map +15 -11
- package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.d.ts +2 -2
- package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.d.ts.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.js +2 -2
- package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts +23 -0
- package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts.map +1 -0
- package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.js +126 -0
- package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.js.map +1 -0
- package/dist/commonjs/funcs/customersGetBalance.d.ts +22 -0
- package/dist/commonjs/funcs/customersGetBalance.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersGetBalance.js +127 -0
- package/dist/commonjs/funcs/customersGetBalance.js.map +1 -0
- package/dist/commonjs/funcs/metersQuantities.js +1 -0
- package/dist/commonjs/funcs/metersQuantities.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/customersGetBalance.d.ts +7 -0
- package/dist/commonjs/mcp-server/tools/customersGetBalance.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/customersGetBalance.js +34 -0
- package/dist/commonjs/mcp-server/tools/customersGetBalance.js.map +1 -0
- package/dist/commonjs/models/components/address.d.ts +664 -664
- package/dist/commonjs/models/components/address.js +221 -221
- package/dist/commonjs/models/components/addressinput.d.ts +650 -650
- package/dist/commonjs/models/components/addressinput.js +216 -216
- package/dist/commonjs/models/components/aggregationfunction.d.ts +40 -0
- package/dist/commonjs/models/components/aggregationfunction.d.ts.map +1 -0
- package/dist/commonjs/models/components/aggregationfunction.js +64 -0
- package/dist/commonjs/models/components/aggregationfunction.js.map +1 -0
- package/dist/commonjs/models/components/customerbalance.d.ts +40 -0
- package/dist/commonjs/models/components/customerbalance.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerbalance.js +71 -0
- package/dist/commonjs/models/components/customerbalance.js.map +1 -0
- package/dist/commonjs/models/components/customerorder.d.ts +5 -0
- package/dist/commonjs/models/components/customerorder.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerorder.js +4 -0
- package/dist/commonjs/models/components/customerorder.js.map +1 -1
- package/dist/commonjs/models/components/customerpaymentmethodconfirm.d.ts +31 -0
- package/dist/commonjs/models/components/customerpaymentmethodconfirm.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodconfirm.js +82 -0
- package/dist/commonjs/models/components/customerpaymentmethodconfirm.js.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts +31 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.js +80 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.js.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.d.ts +35 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.js +81 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.js.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.d.ts +32 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.js +81 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.js.map +1 -0
- package/dist/commonjs/models/components/customerstatesubscription.d.ts +38 -2
- package/dist/commonjs/models/components/customerstatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerstatesubscription.js +30 -3
- package/dist/commonjs/models/components/customerstatesubscription.js.map +1 -1
- package/dist/commonjs/models/components/customersubscription.d.ts +5 -0
- package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersubscription.js +4 -0
- package/dist/commonjs/models/components/customersubscription.js.map +1 -1
- package/dist/commonjs/models/components/order.d.ts +5 -0
- package/dist/commonjs/models/components/order.d.ts.map +1 -1
- package/dist/commonjs/models/components/order.js +4 -0
- package/dist/commonjs/models/components/order.js.map +1 -1
- package/dist/commonjs/models/errors/customernotready.d.ts +39 -0
- package/dist/commonjs/models/errors/customernotready.d.ts.map +1 -0
- package/dist/commonjs/models/errors/customernotready.js +88 -0
- package/dist/commonjs/models/errors/customernotready.js.map +1 -0
- package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts +29 -0
- package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.js +78 -0
- package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.js.map +1 -0
- package/dist/commonjs/models/operations/customersgetbalance.d.ts +32 -0
- package/dist/commonjs/models/operations/customersgetbalance.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customersgetbalance.js +69 -0
- package/dist/commonjs/models/operations/customersgetbalance.js.map +1 -0
- package/dist/commonjs/models/operations/metersquantities.d.ts +6 -0
- package/dist/commonjs/models/operations/metersquantities.d.ts.map +1 -1
- package/dist/commonjs/models/operations/metersquantities.js +7 -0
- package/dist/commonjs/models/operations/metersquantities.js.map +1 -1
- package/dist/commonjs/sdk/customers.d.ts +11 -0
- package/dist/commonjs/sdk/customers.d.ts.map +1 -1
- package/dist/commonjs/sdk/customers.js +12 -0
- package/dist/commonjs/sdk/customers.js.map +1 -1
- package/dist/commonjs/sdk/polarcustomers.d.ts +13 -2
- package/dist/commonjs/sdk/polarcustomers.d.ts.map +1 -1
- package/dist/commonjs/sdk/polarcustomers.js +12 -0
- package/dist/commonjs/sdk/polarcustomers.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.d.ts +2 -2
- package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.d.ts.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js +2 -2
- package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts +23 -0
- package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts.map +1 -0
- package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.js +90 -0
- package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.js.map +1 -0
- package/dist/esm/funcs/customersGetBalance.d.ts +22 -0
- package/dist/esm/funcs/customersGetBalance.d.ts.map +1 -0
- package/dist/esm/funcs/customersGetBalance.js +91 -0
- package/dist/esm/funcs/customersGetBalance.js.map +1 -0
- package/dist/esm/funcs/metersQuantities.js +1 -0
- package/dist/esm/funcs/metersQuantities.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/customersGetBalance.d.ts +7 -0
- package/dist/esm/mcp-server/tools/customersGetBalance.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/customersGetBalance.js +31 -0
- package/dist/esm/mcp-server/tools/customersGetBalance.js.map +1 -0
- package/dist/esm/models/components/address.d.ts +664 -664
- package/dist/esm/models/components/address.js +221 -221
- package/dist/esm/models/components/addressinput.d.ts +650 -650
- package/dist/esm/models/components/addressinput.js +216 -216
- package/dist/esm/models/components/aggregationfunction.d.ts +40 -0
- package/dist/esm/models/components/aggregationfunction.d.ts.map +1 -0
- package/dist/esm/models/components/aggregationfunction.js +28 -0
- package/dist/esm/models/components/aggregationfunction.js.map +1 -0
- package/dist/esm/models/components/customerbalance.d.ts +40 -0
- package/dist/esm/models/components/customerbalance.d.ts.map +1 -0
- package/dist/esm/models/components/customerbalance.js +33 -0
- package/dist/esm/models/components/customerbalance.js.map +1 -0
- package/dist/esm/models/components/customerorder.d.ts +5 -0
- package/dist/esm/models/components/customerorder.d.ts.map +1 -1
- package/dist/esm/models/components/customerorder.js +4 -0
- package/dist/esm/models/components/customerorder.js.map +1 -1
- package/dist/esm/models/components/customerpaymentmethodconfirm.d.ts +31 -0
- package/dist/esm/models/components/customerpaymentmethodconfirm.d.ts.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodconfirm.js +44 -0
- package/dist/esm/models/components/customerpaymentmethodconfirm.js.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts +31 -0
- package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.js +42 -0
- package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.js.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreateresponse.d.ts +35 -0
- package/dist/esm/models/components/customerpaymentmethodcreateresponse.d.ts.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreateresponse.js +43 -0
- package/dist/esm/models/components/customerpaymentmethodcreateresponse.js.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.d.ts +32 -0
- package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.d.ts.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.js +43 -0
- package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.js.map +1 -0
- package/dist/esm/models/components/customerstatesubscription.d.ts +38 -2
- package/dist/esm/models/components/customerstatesubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customerstatesubscription.js +29 -2
- package/dist/esm/models/components/customerstatesubscription.js.map +1 -1
- package/dist/esm/models/components/customersubscription.d.ts +5 -0
- package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customersubscription.js +4 -0
- package/dist/esm/models/components/customersubscription.js.map +1 -1
- package/dist/esm/models/components/order.d.ts +5 -0
- package/dist/esm/models/components/order.d.ts.map +1 -1
- package/dist/esm/models/components/order.js +4 -0
- package/dist/esm/models/components/order.js.map +1 -1
- package/dist/esm/models/errors/customernotready.d.ts +39 -0
- package/dist/esm/models/errors/customernotready.d.ts.map +1 -0
- package/dist/esm/models/errors/customernotready.js +51 -0
- package/dist/esm/models/errors/customernotready.js.map +1 -0
- package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts +29 -0
- package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts.map +1 -0
- package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.js +40 -0
- package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.js.map +1 -0
- package/dist/esm/models/operations/customersgetbalance.d.ts +32 -0
- package/dist/esm/models/operations/customersgetbalance.d.ts.map +1 -0
- package/dist/esm/models/operations/customersgetbalance.js +31 -0
- package/dist/esm/models/operations/customersgetbalance.js.map +1 -0
- package/dist/esm/models/operations/metersquantities.d.ts +6 -0
- package/dist/esm/models/operations/metersquantities.d.ts.map +1 -1
- package/dist/esm/models/operations/metersquantities.js +7 -0
- package/dist/esm/models/operations/metersquantities.js.map +1 -1
- package/dist/esm/sdk/customers.d.ts +11 -0
- package/dist/esm/sdk/customers.d.ts.map +1 -1
- package/dist/esm/sdk/customers.js +12 -0
- package/dist/esm/sdk/customers.js.map +1 -1
- package/dist/esm/sdk/polarcustomers.d.ts +13 -2
- package/dist/esm/sdk/polarcustomers.d.ts.map +1 -1
- package/dist/esm/sdk/polarcustomers.js +12 -0
- package/dist/esm/sdk/polarcustomers.js.map +1 -1
- package/docs/sdks/customers/README.md +78 -0
- package/docs/sdks/polarcustomers/README.md +82 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/customerPortalCustomersAddPaymentMethod.ts +8 -8
- package/src/funcs/customerPortalCustomersConfirmPaymentMethod.ts +201 -0
- package/src/funcs/customersGetBalance.ts +195 -0
- package/src/funcs/metersQuantities.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/customersGetBalance.ts +40 -0
- package/src/models/components/address.ts +221 -221
- package/src/models/components/addressinput.ts +216 -216
- package/src/models/components/aggregationfunction.ts +37 -0
- package/src/models/components/customerbalance.ts +77 -0
- package/src/models/components/customerorder.ts +9 -0
- package/src/models/components/customerpaymentmethodconfirm.ts +83 -0
- package/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts +93 -0
- package/src/models/components/customerpaymentmethodcreateresponse.ts +107 -0
- package/src/models/components/customerpaymentmethodcreatesucceededresponse.ts +98 -0
- package/src/models/components/customerstatesubscription.ts +56 -4
- package/src/models/components/customersubscription.ts +9 -0
- package/src/models/components/order.ts +9 -0
- package/src/models/errors/customernotready.ts +85 -0
- package/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts +89 -0
- package/src/models/operations/customersgetbalance.ts +69 -0
- package/src/models/operations/metersquantities.ts +16 -0
- package/src/sdk/customers.ts +22 -0
- package/src/sdk/polarcustomers.ts +26 -2
package/bin/mcp-server.js
CHANGED
|
@@ -3997,7 +3997,7 @@ var init_zod = __esm(() => {
|
|
|
3997
3997
|
|
|
3998
3998
|
// src/lib/url.ts
|
|
3999
3999
|
function pathToFunc(pathPattern, options) {
|
|
4000
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
4000
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
4001
4001
|
return function buildURLPath(params = {}) {
|
|
4002
4002
|
return pathPattern.replace(paramRE, function(_2, placeholder) {
|
|
4003
4003
|
if (!hasOwn.call(params, placeholder)) {
|
|
@@ -4037,9 +4037,9 @@ var init_config = __esm(() => {
|
|
|
4037
4037
|
SDK_METADATA = {
|
|
4038
4038
|
language: "typescript",
|
|
4039
4039
|
openapiDocVersion: "0.1.0",
|
|
4040
|
-
sdkVersion: "0.35.
|
|
4041
|
-
genVersion: "2.
|
|
4042
|
-
userAgent: "speakeasy-sdk/typescript 0.35.
|
|
4040
|
+
sdkVersion: "0.35.3",
|
|
4041
|
+
genVersion: "2.716.16",
|
|
4042
|
+
userAgent: "speakeasy-sdk/typescript 0.35.3 2.716.16 0.1.0 @polar-sh/sdk"
|
|
4043
4043
|
};
|
|
4044
4044
|
});
|
|
4045
4045
|
|
|
@@ -35612,255 +35612,255 @@ var init_address = __esm(() => {
|
|
|
35612
35612
|
init_zod();
|
|
35613
35613
|
init_primitives();
|
|
35614
35614
|
CountryAlpha2 = {
|
|
35615
|
-
|
|
35616
|
-
|
|
35617
|
-
|
|
35618
|
-
|
|
35619
|
-
|
|
35620
|
-
Pk: "PK",
|
|
35621
|
-
Ne: "NE",
|
|
35622
|
-
Tj: "TJ",
|
|
35623
|
-
Ws: "WS",
|
|
35615
|
+
Ad: "AD",
|
|
35616
|
+
Ae: "AE",
|
|
35617
|
+
Af: "AF",
|
|
35618
|
+
Ag: "AG",
|
|
35619
|
+
Ai: "AI",
|
|
35624
35620
|
Al: "AL",
|
|
35625
|
-
|
|
35626
|
-
|
|
35627
|
-
|
|
35628
|
-
|
|
35629
|
-
|
|
35630
|
-
Vc: "VC",
|
|
35631
|
-
La: "LA",
|
|
35632
|
-
Cl: "CL",
|
|
35633
|
-
Ee: "EE",
|
|
35634
|
-
Fi: "FI",
|
|
35635
|
-
Pt: "PT",
|
|
35636
|
-
Lc: "LC",
|
|
35637
|
-
By: "BY",
|
|
35638
|
-
Co: "CO",
|
|
35639
|
-
Tt: "TT",
|
|
35640
|
-
Mf: "MF",
|
|
35641
|
-
De: "DE",
|
|
35642
|
-
Iq: "IQ",
|
|
35621
|
+
Am: "AM",
|
|
35622
|
+
Ao: "AO",
|
|
35623
|
+
Aq: "AQ",
|
|
35624
|
+
Ar: "AR",
|
|
35625
|
+
As: "AS",
|
|
35643
35626
|
At: "AT",
|
|
35644
|
-
|
|
35645
|
-
|
|
35646
|
-
|
|
35647
|
-
|
|
35648
|
-
|
|
35649
|
-
Ng: "NG",
|
|
35650
|
-
Br: "BR",
|
|
35651
|
-
Ph: "PH",
|
|
35652
|
-
Tm: "TM",
|
|
35653
|
-
Va: "VA",
|
|
35654
|
-
Ga: "GA",
|
|
35627
|
+
Au: "AU",
|
|
35628
|
+
Aw: "AW",
|
|
35629
|
+
Ax: "AX",
|
|
35630
|
+
Az: "AZ",
|
|
35631
|
+
Ba: "BA",
|
|
35655
35632
|
Bb: "BB",
|
|
35656
|
-
|
|
35657
|
-
|
|
35658
|
-
|
|
35659
|
-
|
|
35660
|
-
|
|
35661
|
-
|
|
35662
|
-
|
|
35663
|
-
|
|
35664
|
-
|
|
35665
|
-
|
|
35666
|
-
|
|
35667
|
-
|
|
35668
|
-
|
|
35669
|
-
|
|
35670
|
-
|
|
35671
|
-
|
|
35672
|
-
|
|
35673
|
-
|
|
35633
|
+
Bd: "BD",
|
|
35634
|
+
Be: "BE",
|
|
35635
|
+
Bf: "BF",
|
|
35636
|
+
Bg: "BG",
|
|
35637
|
+
Bh: "BH",
|
|
35638
|
+
Bi: "BI",
|
|
35639
|
+
Bj: "BJ",
|
|
35640
|
+
Bl: "BL",
|
|
35641
|
+
Bm: "BM",
|
|
35642
|
+
Bn: "BN",
|
|
35643
|
+
Bo: "BO",
|
|
35644
|
+
Bq: "BQ",
|
|
35645
|
+
Br: "BR",
|
|
35646
|
+
Bs: "BS",
|
|
35647
|
+
Bt: "BT",
|
|
35648
|
+
Bv: "BV",
|
|
35649
|
+
Bw: "BW",
|
|
35650
|
+
By: "BY",
|
|
35674
35651
|
Bz: "BZ",
|
|
35675
|
-
|
|
35676
|
-
Yt: "YT",
|
|
35677
|
-
Ie: "IE",
|
|
35678
|
-
Um: "UM",
|
|
35679
|
-
Gu: "GU",
|
|
35680
|
-
Jo: "JO",
|
|
35652
|
+
Ca: "CA",
|
|
35681
35653
|
Cc: "CC",
|
|
35682
|
-
|
|
35683
|
-
|
|
35684
|
-
|
|
35654
|
+
Cd: "CD",
|
|
35655
|
+
Cf: "CF",
|
|
35656
|
+
Cg: "CG",
|
|
35657
|
+
Ch: "CH",
|
|
35658
|
+
Ci: "CI",
|
|
35659
|
+
Ck: "CK",
|
|
35660
|
+
Cl: "CL",
|
|
35661
|
+
Cm: "CM",
|
|
35662
|
+
Cn: "CN",
|
|
35663
|
+
Co: "CO",
|
|
35685
35664
|
Cr: "CR",
|
|
35686
|
-
|
|
35687
|
-
|
|
35688
|
-
|
|
35689
|
-
|
|
35690
|
-
Im: "IM",
|
|
35691
|
-
Za: "ZA",
|
|
35692
|
-
Tf: "TF",
|
|
35693
|
-
Bd: "BD",
|
|
35694
|
-
Mx: "MX",
|
|
35665
|
+
Cu: "CU",
|
|
35666
|
+
Cv: "CV",
|
|
35667
|
+
Cw: "CW",
|
|
35668
|
+
Cx: "CX",
|
|
35695
35669
|
Cy: "CY",
|
|
35696
|
-
Vu: "VU",
|
|
35697
|
-
Mp: "MP",
|
|
35698
|
-
Mz: "MZ",
|
|
35699
|
-
Mu: "MU",
|
|
35700
|
-
Lk: "LK",
|
|
35701
|
-
Bo: "BO",
|
|
35702
|
-
Sa: "SA",
|
|
35703
|
-
Bn: "BN",
|
|
35704
|
-
Sl: "SL",
|
|
35705
|
-
Lr: "LR",
|
|
35706
35670
|
Cz: "CZ",
|
|
35671
|
+
De: "DE",
|
|
35672
|
+
Dj: "DJ",
|
|
35673
|
+
Dk: "DK",
|
|
35674
|
+
Dm: "DM",
|
|
35675
|
+
Do: "DO",
|
|
35676
|
+
Dz: "DZ",
|
|
35677
|
+
Ec: "EC",
|
|
35678
|
+
Ee: "EE",
|
|
35679
|
+
Eg: "EG",
|
|
35680
|
+
Eh: "EH",
|
|
35681
|
+
Er: "ER",
|
|
35682
|
+
Es: "ES",
|
|
35707
35683
|
Et: "ET",
|
|
35708
|
-
|
|
35709
|
-
Tk: "TK",
|
|
35710
|
-
Io: "IO",
|
|
35711
|
-
Sm: "SM",
|
|
35712
|
-
Pw: "PW",
|
|
35713
|
-
Kn: "KN",
|
|
35714
|
-
Cv: "CV",
|
|
35715
|
-
To: "TO",
|
|
35716
|
-
Tw: "TW",
|
|
35717
|
-
Nr: "NR",
|
|
35718
|
-
Ma: "MA",
|
|
35719
|
-
Gr: "GR",
|
|
35720
|
-
Bh: "BH",
|
|
35721
|
-
Kp: "KP",
|
|
35722
|
-
Th: "TH",
|
|
35723
|
-
Jm: "JM",
|
|
35724
|
-
Vn: "VN",
|
|
35725
|
-
Ch: "CH",
|
|
35726
|
-
Pl: "PL",
|
|
35727
|
-
Me: "ME",
|
|
35728
|
-
Fo: "FO",
|
|
35684
|
+
Fi: "FI",
|
|
35729
35685
|
Fj: "FJ",
|
|
35730
|
-
Ve: "VE",
|
|
35731
|
-
Gw: "GW",
|
|
35732
|
-
Ck: "CK",
|
|
35733
|
-
Dm: "DM",
|
|
35734
|
-
Gy: "GY",
|
|
35735
|
-
Dk: "DK",
|
|
35736
|
-
Pf: "PF",
|
|
35737
|
-
Sk: "SK",
|
|
35738
|
-
Rw: "RW",
|
|
35739
|
-
Bt: "BT",
|
|
35740
|
-
Ye: "YE",
|
|
35741
|
-
Ss: "SS",
|
|
35742
|
-
Lb: "LB",
|
|
35743
35686
|
Fk: "FK",
|
|
35687
|
+
Fm: "FM",
|
|
35688
|
+
Fo: "FO",
|
|
35689
|
+
Fr: "FR",
|
|
35690
|
+
Ga: "GA",
|
|
35691
|
+
Gb: "GB",
|
|
35692
|
+
Gd: "GD",
|
|
35693
|
+
Ge: "GE",
|
|
35694
|
+
Gf: "GF",
|
|
35695
|
+
Gg: "GG",
|
|
35696
|
+
Gh: "GH",
|
|
35697
|
+
Gi: "GI",
|
|
35698
|
+
Gl: "GL",
|
|
35699
|
+
Gm: "GM",
|
|
35744
35700
|
Gn: "GN",
|
|
35745
|
-
|
|
35746
|
-
|
|
35747
|
-
|
|
35748
|
-
|
|
35701
|
+
Gp: "GP",
|
|
35702
|
+
Gq: "GQ",
|
|
35703
|
+
Gr: "GR",
|
|
35704
|
+
Gs: "GS",
|
|
35705
|
+
Gt: "GT",
|
|
35706
|
+
Gu: "GU",
|
|
35707
|
+
Gw: "GW",
|
|
35708
|
+
Gy: "GY",
|
|
35709
|
+
Hk: "HK",
|
|
35749
35710
|
Hm: "HM",
|
|
35750
|
-
|
|
35751
|
-
|
|
35752
|
-
|
|
35753
|
-
|
|
35754
|
-
|
|
35755
|
-
|
|
35756
|
-
|
|
35711
|
+
Hn: "HN",
|
|
35712
|
+
Hr: "HR",
|
|
35713
|
+
Ht: "HT",
|
|
35714
|
+
Hu: "HU",
|
|
35715
|
+
Id: "ID",
|
|
35716
|
+
Ie: "IE",
|
|
35717
|
+
Il: "IL",
|
|
35718
|
+
Im: "IM",
|
|
35719
|
+
In: "IN",
|
|
35720
|
+
Io: "IO",
|
|
35721
|
+
Iq: "IQ",
|
|
35722
|
+
Ir: "IR",
|
|
35723
|
+
Is: "IS",
|
|
35757
35724
|
It: "IT",
|
|
35758
|
-
|
|
35759
|
-
|
|
35760
|
-
|
|
35761
|
-
|
|
35762
|
-
Ua: "UA",
|
|
35763
|
-
Gi: "GI",
|
|
35725
|
+
Je: "JE",
|
|
35726
|
+
Jm: "JM",
|
|
35727
|
+
Jo: "JO",
|
|
35728
|
+
Jp: "JP",
|
|
35764
35729
|
Ke: "KE",
|
|
35765
|
-
|
|
35766
|
-
Fm: "FM",
|
|
35767
|
-
Bm: "BM",
|
|
35768
|
-
Gb: "GB",
|
|
35769
|
-
Rs: "RS",
|
|
35770
|
-
Tr: "TR",
|
|
35771
|
-
Mc: "MC",
|
|
35772
|
-
Ci: "CI",
|
|
35773
|
-
Tv: "TV",
|
|
35730
|
+
Kg: "KG",
|
|
35774
35731
|
Kh: "KH",
|
|
35775
|
-
|
|
35776
|
-
|
|
35777
|
-
|
|
35778
|
-
|
|
35779
|
-
|
|
35780
|
-
|
|
35781
|
-
|
|
35782
|
-
|
|
35783
|
-
|
|
35784
|
-
|
|
35785
|
-
|
|
35786
|
-
Bs: "BS",
|
|
35787
|
-
Hn: "HN",
|
|
35732
|
+
Ki: "KI",
|
|
35733
|
+
Km: "KM",
|
|
35734
|
+
Kn: "KN",
|
|
35735
|
+
Kp: "KP",
|
|
35736
|
+
Kr: "KR",
|
|
35737
|
+
Kw: "KW",
|
|
35738
|
+
Ky: "KY",
|
|
35739
|
+
Kz: "KZ",
|
|
35740
|
+
La: "LA",
|
|
35741
|
+
Lb: "LB",
|
|
35742
|
+
Lc: "LC",
|
|
35788
35743
|
Li: "LI",
|
|
35789
|
-
|
|
35790
|
-
|
|
35791
|
-
|
|
35792
|
-
|
|
35793
|
-
|
|
35794
|
-
|
|
35795
|
-
Ba: "BA",
|
|
35744
|
+
Lk: "LK",
|
|
35745
|
+
Lr: "LR",
|
|
35746
|
+
Ls: "LS",
|
|
35747
|
+
Lt: "LT",
|
|
35748
|
+
Lu: "LU",
|
|
35749
|
+
Lv: "LV",
|
|
35796
35750
|
Ly: "LY",
|
|
35751
|
+
Ma: "MA",
|
|
35752
|
+
Mc: "MC",
|
|
35753
|
+
Md: "MD",
|
|
35754
|
+
Me: "ME",
|
|
35755
|
+
Mf: "MF",
|
|
35756
|
+
Mg: "MG",
|
|
35757
|
+
Mh: "MH",
|
|
35758
|
+
Mk: "MK",
|
|
35797
35759
|
Ml: "ML",
|
|
35760
|
+
Mm: "MM",
|
|
35761
|
+
Mn: "MN",
|
|
35762
|
+
Mo: "MO",
|
|
35763
|
+
Mp: "MP",
|
|
35764
|
+
Mq: "MQ",
|
|
35765
|
+
Mr: "MR",
|
|
35766
|
+
Ms: "MS",
|
|
35767
|
+
Mt: "MT",
|
|
35768
|
+
Mu: "MU",
|
|
35769
|
+
Mv: "MV",
|
|
35770
|
+
Mw: "MW",
|
|
35771
|
+
Mx: "MX",
|
|
35772
|
+
My: "MY",
|
|
35773
|
+
Mz: "MZ",
|
|
35774
|
+
Na: "NA",
|
|
35775
|
+
Nc: "NC",
|
|
35776
|
+
Ne: "NE",
|
|
35798
35777
|
Nf: "NF",
|
|
35799
|
-
|
|
35800
|
-
|
|
35801
|
-
|
|
35778
|
+
Ng: "NG",
|
|
35779
|
+
Ni: "NI",
|
|
35780
|
+
Nl: "NL",
|
|
35781
|
+
No: "NO",
|
|
35782
|
+
Np: "NP",
|
|
35783
|
+
Nr: "NR",
|
|
35784
|
+
Nu: "NU",
|
|
35785
|
+
Nz: "NZ",
|
|
35786
|
+
Om: "OM",
|
|
35787
|
+
Pa: "PA",
|
|
35802
35788
|
Pe: "PE",
|
|
35803
|
-
|
|
35804
|
-
|
|
35805
|
-
|
|
35806
|
-
|
|
35789
|
+
Pf: "PF",
|
|
35790
|
+
Pg: "PG",
|
|
35791
|
+
Ph: "PH",
|
|
35792
|
+
Pk: "PK",
|
|
35793
|
+
Pl: "PL",
|
|
35794
|
+
Pm: "PM",
|
|
35795
|
+
Pn: "PN",
|
|
35796
|
+
Pr: "PR",
|
|
35797
|
+
Ps: "PS",
|
|
35798
|
+
Pt: "PT",
|
|
35799
|
+
Pw: "PW",
|
|
35807
35800
|
Py: "PY",
|
|
35808
|
-
|
|
35809
|
-
|
|
35810
|
-
Hr: "HR",
|
|
35811
|
-
Kr: "KR",
|
|
35812
|
-
Au: "AU",
|
|
35813
|
-
Tc: "TC",
|
|
35814
|
-
Mv: "MV",
|
|
35815
|
-
Mt: "MT",
|
|
35816
|
-
Nz: "NZ",
|
|
35817
|
-
Jp: "JP",
|
|
35818
|
-
Lt: "LT",
|
|
35819
|
-
Cm: "CM",
|
|
35820
|
-
Ag: "AG",
|
|
35801
|
+
Qa: "QA",
|
|
35802
|
+
Re: "RE",
|
|
35821
35803
|
Ro: "RO",
|
|
35822
|
-
|
|
35823
|
-
|
|
35824
|
-
|
|
35804
|
+
Rs: "RS",
|
|
35805
|
+
Ru: "RU",
|
|
35806
|
+
Rw: "RW",
|
|
35807
|
+
Sa: "SA",
|
|
35808
|
+
Sb: "SB",
|
|
35809
|
+
Sc: "SC",
|
|
35810
|
+
Sd: "SD",
|
|
35825
35811
|
Se: "SE",
|
|
35826
|
-
|
|
35827
|
-
|
|
35828
|
-
|
|
35829
|
-
Pg: "PG",
|
|
35830
|
-
Wf: "WF",
|
|
35831
|
-
Gq: "GQ",
|
|
35832
|
-
Bj: "BJ",
|
|
35833
|
-
Gg: "GG",
|
|
35834
|
-
Mr: "MR",
|
|
35835
|
-
Is: "IS",
|
|
35836
|
-
Bi: "BI",
|
|
35837
|
-
Gm: "GM",
|
|
35838
|
-
Er: "ER",
|
|
35839
|
-
Ky: "KY",
|
|
35840
|
-
Gf: "GF",
|
|
35841
|
-
Ge: "GE",
|
|
35812
|
+
Sg: "SG",
|
|
35813
|
+
Sh: "SH",
|
|
35814
|
+
Si: "SI",
|
|
35842
35815
|
Sj: "SJ",
|
|
35843
|
-
|
|
35844
|
-
|
|
35845
|
-
|
|
35846
|
-
|
|
35816
|
+
Sk: "SK",
|
|
35817
|
+
Sl: "SL",
|
|
35818
|
+
Sm: "SM",
|
|
35819
|
+
Sn: "SN",
|
|
35847
35820
|
So: "SO",
|
|
35821
|
+
Sr: "SR",
|
|
35822
|
+
Ss: "SS",
|
|
35823
|
+
St: "ST",
|
|
35824
|
+
Sv: "SV",
|
|
35825
|
+
Sx: "SX",
|
|
35826
|
+
Sy: "SY",
|
|
35848
35827
|
Sz: "SZ",
|
|
35849
|
-
|
|
35850
|
-
|
|
35828
|
+
Tc: "TC",
|
|
35829
|
+
Td: "TD",
|
|
35830
|
+
Tf: "TF",
|
|
35831
|
+
Tg: "TG",
|
|
35832
|
+
Th: "TH",
|
|
35833
|
+
Tj: "TJ",
|
|
35834
|
+
Tk: "TK",
|
|
35851
35835
|
Tl: "TL",
|
|
35852
|
-
|
|
35853
|
-
|
|
35854
|
-
|
|
35855
|
-
|
|
35856
|
-
|
|
35857
|
-
|
|
35858
|
-
|
|
35859
|
-
|
|
35860
|
-
|
|
35861
|
-
|
|
35862
|
-
|
|
35863
|
-
|
|
35836
|
+
Tm: "TM",
|
|
35837
|
+
Tn: "TN",
|
|
35838
|
+
To: "TO",
|
|
35839
|
+
Tr: "TR",
|
|
35840
|
+
Tt: "TT",
|
|
35841
|
+
Tv: "TV",
|
|
35842
|
+
Tw: "TW",
|
|
35843
|
+
Tz: "TZ",
|
|
35844
|
+
Ua: "UA",
|
|
35845
|
+
Ug: "UG",
|
|
35846
|
+
Um: "UM",
|
|
35847
|
+
Us: "US",
|
|
35848
|
+
Uy: "UY",
|
|
35849
|
+
Uz: "UZ",
|
|
35850
|
+
Va: "VA",
|
|
35851
|
+
Vc: "VC",
|
|
35852
|
+
Ve: "VE",
|
|
35853
|
+
Vg: "VG",
|
|
35854
|
+
Vi: "VI",
|
|
35855
|
+
Vn: "VN",
|
|
35856
|
+
Vu: "VU",
|
|
35857
|
+
Wf: "WF",
|
|
35858
|
+
Ws: "WS",
|
|
35859
|
+
Ye: "YE",
|
|
35860
|
+
Yt: "YT",
|
|
35861
|
+
Za: "ZA",
|
|
35862
|
+
Zm: "ZM",
|
|
35863
|
+
Zw: "ZW"
|
|
35864
35864
|
};
|
|
35865
35865
|
CountryAlpha2$inboundSchema = nativeEnumType(CountryAlpha2);
|
|
35866
35866
|
CountryAlpha2$outboundSchema = CountryAlpha2$inboundSchema;
|
|
@@ -37002,250 +37002,250 @@ var init_addressinput = __esm(() => {
|
|
|
37002
37002
|
init_zod();
|
|
37003
37003
|
init_primitives();
|
|
37004
37004
|
CountryAlpha2Input = {
|
|
37005
|
-
|
|
37006
|
-
|
|
37007
|
-
|
|
37008
|
-
|
|
37009
|
-
|
|
37010
|
-
Pk: "PK",
|
|
37011
|
-
Ne: "NE",
|
|
37012
|
-
Tj: "TJ",
|
|
37013
|
-
Ws: "WS",
|
|
37005
|
+
Ad: "AD",
|
|
37006
|
+
Ae: "AE",
|
|
37007
|
+
Af: "AF",
|
|
37008
|
+
Ag: "AG",
|
|
37009
|
+
Ai: "AI",
|
|
37014
37010
|
Al: "AL",
|
|
37015
|
-
|
|
37016
|
-
|
|
37017
|
-
|
|
37018
|
-
|
|
37019
|
-
|
|
37020
|
-
Vc: "VC",
|
|
37021
|
-
La: "LA",
|
|
37022
|
-
Cl: "CL",
|
|
37023
|
-
Ee: "EE",
|
|
37024
|
-
Fi: "FI",
|
|
37025
|
-
Pt: "PT",
|
|
37026
|
-
Lc: "LC",
|
|
37027
|
-
By: "BY",
|
|
37028
|
-
Co: "CO",
|
|
37029
|
-
Tt: "TT",
|
|
37030
|
-
Mf: "MF",
|
|
37031
|
-
De: "DE",
|
|
37032
|
-
Iq: "IQ",
|
|
37011
|
+
Am: "AM",
|
|
37012
|
+
Ao: "AO",
|
|
37013
|
+
Aq: "AQ",
|
|
37014
|
+
Ar: "AR",
|
|
37015
|
+
As: "AS",
|
|
37033
37016
|
At: "AT",
|
|
37034
|
-
|
|
37035
|
-
|
|
37036
|
-
|
|
37037
|
-
|
|
37038
|
-
|
|
37039
|
-
Ng: "NG",
|
|
37040
|
-
Br: "BR",
|
|
37041
|
-
Ph: "PH",
|
|
37042
|
-
Tm: "TM",
|
|
37043
|
-
Va: "VA",
|
|
37044
|
-
Ga: "GA",
|
|
37017
|
+
Au: "AU",
|
|
37018
|
+
Aw: "AW",
|
|
37019
|
+
Ax: "AX",
|
|
37020
|
+
Az: "AZ",
|
|
37021
|
+
Ba: "BA",
|
|
37045
37022
|
Bb: "BB",
|
|
37046
|
-
|
|
37047
|
-
|
|
37048
|
-
|
|
37049
|
-
|
|
37050
|
-
|
|
37051
|
-
|
|
37052
|
-
|
|
37053
|
-
|
|
37054
|
-
|
|
37055
|
-
|
|
37056
|
-
|
|
37057
|
-
|
|
37058
|
-
|
|
37059
|
-
|
|
37060
|
-
|
|
37061
|
-
|
|
37062
|
-
|
|
37063
|
-
|
|
37023
|
+
Bd: "BD",
|
|
37024
|
+
Be: "BE",
|
|
37025
|
+
Bf: "BF",
|
|
37026
|
+
Bg: "BG",
|
|
37027
|
+
Bh: "BH",
|
|
37028
|
+
Bi: "BI",
|
|
37029
|
+
Bj: "BJ",
|
|
37030
|
+
Bl: "BL",
|
|
37031
|
+
Bm: "BM",
|
|
37032
|
+
Bn: "BN",
|
|
37033
|
+
Bo: "BO",
|
|
37034
|
+
Bq: "BQ",
|
|
37035
|
+
Br: "BR",
|
|
37036
|
+
Bs: "BS",
|
|
37037
|
+
Bt: "BT",
|
|
37038
|
+
Bv: "BV",
|
|
37039
|
+
Bw: "BW",
|
|
37040
|
+
By: "BY",
|
|
37064
37041
|
Bz: "BZ",
|
|
37065
|
-
|
|
37066
|
-
Yt: "YT",
|
|
37067
|
-
Ie: "IE",
|
|
37068
|
-
Um: "UM",
|
|
37069
|
-
Gu: "GU",
|
|
37070
|
-
Jo: "JO",
|
|
37042
|
+
Ca: "CA",
|
|
37071
37043
|
Cc: "CC",
|
|
37072
|
-
|
|
37073
|
-
|
|
37074
|
-
|
|
37044
|
+
Cd: "CD",
|
|
37045
|
+
Cf: "CF",
|
|
37046
|
+
Cg: "CG",
|
|
37047
|
+
Ch: "CH",
|
|
37048
|
+
Ci: "CI",
|
|
37049
|
+
Ck: "CK",
|
|
37050
|
+
Cl: "CL",
|
|
37051
|
+
Cm: "CM",
|
|
37052
|
+
Cn: "CN",
|
|
37053
|
+
Co: "CO",
|
|
37075
37054
|
Cr: "CR",
|
|
37076
|
-
|
|
37077
|
-
|
|
37078
|
-
|
|
37079
|
-
Ec: "EC",
|
|
37080
|
-
Im: "IM",
|
|
37081
|
-
Za: "ZA",
|
|
37082
|
-
Tf: "TF",
|
|
37083
|
-
Bd: "BD",
|
|
37084
|
-
Mx: "MX",
|
|
37055
|
+
Cv: "CV",
|
|
37056
|
+
Cw: "CW",
|
|
37057
|
+
Cx: "CX",
|
|
37085
37058
|
Cy: "CY",
|
|
37086
|
-
Vu: "VU",
|
|
37087
|
-
Mp: "MP",
|
|
37088
|
-
Mz: "MZ",
|
|
37089
|
-
Mu: "MU",
|
|
37090
|
-
Lk: "LK",
|
|
37091
|
-
Bo: "BO",
|
|
37092
|
-
Sa: "SA",
|
|
37093
|
-
Bn: "BN",
|
|
37094
|
-
Sl: "SL",
|
|
37095
|
-
Lr: "LR",
|
|
37096
37059
|
Cz: "CZ",
|
|
37060
|
+
De: "DE",
|
|
37061
|
+
Dj: "DJ",
|
|
37062
|
+
Dk: "DK",
|
|
37063
|
+
Dm: "DM",
|
|
37064
|
+
Do: "DO",
|
|
37065
|
+
Dz: "DZ",
|
|
37066
|
+
Ec: "EC",
|
|
37067
|
+
Ee: "EE",
|
|
37068
|
+
Eg: "EG",
|
|
37069
|
+
Eh: "EH",
|
|
37070
|
+
Er: "ER",
|
|
37071
|
+
Es: "ES",
|
|
37097
37072
|
Et: "ET",
|
|
37098
|
-
|
|
37099
|
-
Tk: "TK",
|
|
37100
|
-
Io: "IO",
|
|
37101
|
-
Sm: "SM",
|
|
37102
|
-
Pw: "PW",
|
|
37103
|
-
Kn: "KN",
|
|
37104
|
-
Cv: "CV",
|
|
37105
|
-
To: "TO",
|
|
37106
|
-
Tw: "TW",
|
|
37107
|
-
Nr: "NR",
|
|
37108
|
-
Ma: "MA",
|
|
37109
|
-
Gr: "GR",
|
|
37110
|
-
Bh: "BH",
|
|
37111
|
-
Th: "TH",
|
|
37112
|
-
Jm: "JM",
|
|
37113
|
-
Vn: "VN",
|
|
37114
|
-
Ch: "CH",
|
|
37115
|
-
Pl: "PL",
|
|
37116
|
-
Me: "ME",
|
|
37117
|
-
Fo: "FO",
|
|
37073
|
+
Fi: "FI",
|
|
37118
37074
|
Fj: "FJ",
|
|
37119
|
-
Ve: "VE",
|
|
37120
|
-
Gw: "GW",
|
|
37121
|
-
Ck: "CK",
|
|
37122
|
-
Dm: "DM",
|
|
37123
|
-
Gy: "GY",
|
|
37124
|
-
Dk: "DK",
|
|
37125
|
-
Pf: "PF",
|
|
37126
|
-
Sk: "SK",
|
|
37127
|
-
Rw: "RW",
|
|
37128
|
-
Bt: "BT",
|
|
37129
|
-
Ye: "YE",
|
|
37130
|
-
Ss: "SS",
|
|
37131
|
-
Lb: "LB",
|
|
37132
37075
|
Fk: "FK",
|
|
37076
|
+
Fm: "FM",
|
|
37077
|
+
Fo: "FO",
|
|
37078
|
+
Fr: "FR",
|
|
37079
|
+
Ga: "GA",
|
|
37080
|
+
Gb: "GB",
|
|
37081
|
+
Gd: "GD",
|
|
37082
|
+
Ge: "GE",
|
|
37083
|
+
Gf: "GF",
|
|
37084
|
+
Gg: "GG",
|
|
37085
|
+
Gh: "GH",
|
|
37086
|
+
Gi: "GI",
|
|
37087
|
+
Gl: "GL",
|
|
37088
|
+
Gm: "GM",
|
|
37133
37089
|
Gn: "GN",
|
|
37134
|
-
|
|
37135
|
-
|
|
37136
|
-
|
|
37137
|
-
|
|
37090
|
+
Gp: "GP",
|
|
37091
|
+
Gq: "GQ",
|
|
37092
|
+
Gr: "GR",
|
|
37093
|
+
Gs: "GS",
|
|
37094
|
+
Gt: "GT",
|
|
37095
|
+
Gu: "GU",
|
|
37096
|
+
Gw: "GW",
|
|
37097
|
+
Gy: "GY",
|
|
37098
|
+
Hk: "HK",
|
|
37138
37099
|
Hm: "HM",
|
|
37139
|
-
|
|
37140
|
-
|
|
37141
|
-
|
|
37142
|
-
|
|
37143
|
-
|
|
37144
|
-
|
|
37100
|
+
Hn: "HN",
|
|
37101
|
+
Hr: "HR",
|
|
37102
|
+
Ht: "HT",
|
|
37103
|
+
Hu: "HU",
|
|
37104
|
+
Id: "ID",
|
|
37105
|
+
Ie: "IE",
|
|
37106
|
+
Il: "IL",
|
|
37107
|
+
Im: "IM",
|
|
37108
|
+
In: "IN",
|
|
37109
|
+
Io: "IO",
|
|
37110
|
+
Iq: "IQ",
|
|
37111
|
+
Is: "IS",
|
|
37145
37112
|
It: "IT",
|
|
37146
|
-
|
|
37147
|
-
|
|
37148
|
-
|
|
37149
|
-
|
|
37150
|
-
Ua: "UA",
|
|
37151
|
-
Gi: "GI",
|
|
37113
|
+
Je: "JE",
|
|
37114
|
+
Jm: "JM",
|
|
37115
|
+
Jo: "JO",
|
|
37116
|
+
Jp: "JP",
|
|
37152
37117
|
Ke: "KE",
|
|
37153
|
-
|
|
37154
|
-
Fm: "FM",
|
|
37155
|
-
Bm: "BM",
|
|
37156
|
-
Gb: "GB",
|
|
37157
|
-
Rs: "RS",
|
|
37158
|
-
Tr: "TR",
|
|
37159
|
-
Mc: "MC",
|
|
37160
|
-
Ci: "CI",
|
|
37161
|
-
Tv: "TV",
|
|
37118
|
+
Kg: "KG",
|
|
37162
37119
|
Kh: "KH",
|
|
37163
|
-
|
|
37164
|
-
|
|
37165
|
-
|
|
37166
|
-
|
|
37167
|
-
|
|
37168
|
-
|
|
37169
|
-
|
|
37170
|
-
|
|
37171
|
-
|
|
37172
|
-
|
|
37173
|
-
Bs: "BS",
|
|
37174
|
-
Hn: "HN",
|
|
37120
|
+
Ki: "KI",
|
|
37121
|
+
Km: "KM",
|
|
37122
|
+
Kn: "KN",
|
|
37123
|
+
Kr: "KR",
|
|
37124
|
+
Kw: "KW",
|
|
37125
|
+
Ky: "KY",
|
|
37126
|
+
Kz: "KZ",
|
|
37127
|
+
La: "LA",
|
|
37128
|
+
Lb: "LB",
|
|
37129
|
+
Lc: "LC",
|
|
37175
37130
|
Li: "LI",
|
|
37176
|
-
|
|
37177
|
-
|
|
37178
|
-
|
|
37179
|
-
|
|
37180
|
-
|
|
37181
|
-
|
|
37182
|
-
Ba: "BA",
|
|
37131
|
+
Lk: "LK",
|
|
37132
|
+
Lr: "LR",
|
|
37133
|
+
Ls: "LS",
|
|
37134
|
+
Lt: "LT",
|
|
37135
|
+
Lu: "LU",
|
|
37136
|
+
Lv: "LV",
|
|
37183
37137
|
Ly: "LY",
|
|
37138
|
+
Ma: "MA",
|
|
37139
|
+
Mc: "MC",
|
|
37140
|
+
Md: "MD",
|
|
37141
|
+
Me: "ME",
|
|
37142
|
+
Mf: "MF",
|
|
37143
|
+
Mg: "MG",
|
|
37144
|
+
Mh: "MH",
|
|
37145
|
+
Mk: "MK",
|
|
37184
37146
|
Ml: "ML",
|
|
37147
|
+
Mm: "MM",
|
|
37148
|
+
Mn: "MN",
|
|
37149
|
+
Mo: "MO",
|
|
37150
|
+
Mp: "MP",
|
|
37151
|
+
Mq: "MQ",
|
|
37152
|
+
Mr: "MR",
|
|
37153
|
+
Ms: "MS",
|
|
37154
|
+
Mt: "MT",
|
|
37155
|
+
Mu: "MU",
|
|
37156
|
+
Mv: "MV",
|
|
37157
|
+
Mw: "MW",
|
|
37158
|
+
Mx: "MX",
|
|
37159
|
+
My: "MY",
|
|
37160
|
+
Mz: "MZ",
|
|
37161
|
+
Na: "NA",
|
|
37162
|
+
Nc: "NC",
|
|
37163
|
+
Ne: "NE",
|
|
37185
37164
|
Nf: "NF",
|
|
37186
|
-
|
|
37187
|
-
|
|
37188
|
-
|
|
37165
|
+
Ng: "NG",
|
|
37166
|
+
Ni: "NI",
|
|
37167
|
+
Nl: "NL",
|
|
37168
|
+
No: "NO",
|
|
37169
|
+
Np: "NP",
|
|
37170
|
+
Nr: "NR",
|
|
37171
|
+
Nu: "NU",
|
|
37172
|
+
Nz: "NZ",
|
|
37173
|
+
Om: "OM",
|
|
37174
|
+
Pa: "PA",
|
|
37189
37175
|
Pe: "PE",
|
|
37190
|
-
|
|
37191
|
-
|
|
37192
|
-
|
|
37193
|
-
|
|
37176
|
+
Pf: "PF",
|
|
37177
|
+
Pg: "PG",
|
|
37178
|
+
Ph: "PH",
|
|
37179
|
+
Pk: "PK",
|
|
37180
|
+
Pl: "PL",
|
|
37181
|
+
Pm: "PM",
|
|
37182
|
+
Pn: "PN",
|
|
37183
|
+
Pr: "PR",
|
|
37184
|
+
Ps: "PS",
|
|
37185
|
+
Pt: "PT",
|
|
37186
|
+
Pw: "PW",
|
|
37194
37187
|
Py: "PY",
|
|
37195
|
-
|
|
37196
|
-
|
|
37197
|
-
Kr: "KR",
|
|
37198
|
-
Au: "AU",
|
|
37199
|
-
Tc: "TC",
|
|
37200
|
-
Mv: "MV",
|
|
37201
|
-
Mt: "MT",
|
|
37202
|
-
Nz: "NZ",
|
|
37203
|
-
Jp: "JP",
|
|
37204
|
-
Lt: "LT",
|
|
37205
|
-
Cm: "CM",
|
|
37206
|
-
Ag: "AG",
|
|
37188
|
+
Qa: "QA",
|
|
37189
|
+
Re: "RE",
|
|
37207
37190
|
Ro: "RO",
|
|
37208
|
-
|
|
37209
|
-
|
|
37210
|
-
|
|
37191
|
+
Rs: "RS",
|
|
37192
|
+
Rw: "RW",
|
|
37193
|
+
Sa: "SA",
|
|
37194
|
+
Sb: "SB",
|
|
37195
|
+
Sc: "SC",
|
|
37196
|
+
Sd: "SD",
|
|
37211
37197
|
Se: "SE",
|
|
37212
|
-
|
|
37213
|
-
|
|
37214
|
-
|
|
37215
|
-
Wf: "WF",
|
|
37216
|
-
Gq: "GQ",
|
|
37217
|
-
Bj: "BJ",
|
|
37218
|
-
Gg: "GG",
|
|
37219
|
-
Mr: "MR",
|
|
37220
|
-
Is: "IS",
|
|
37221
|
-
Bi: "BI",
|
|
37222
|
-
Gm: "GM",
|
|
37223
|
-
Er: "ER",
|
|
37224
|
-
Ky: "KY",
|
|
37225
|
-
Gf: "GF",
|
|
37226
|
-
Ge: "GE",
|
|
37198
|
+
Sg: "SG",
|
|
37199
|
+
Sh: "SH",
|
|
37200
|
+
Si: "SI",
|
|
37227
37201
|
Sj: "SJ",
|
|
37228
|
-
|
|
37229
|
-
|
|
37230
|
-
|
|
37231
|
-
|
|
37202
|
+
Sk: "SK",
|
|
37203
|
+
Sl: "SL",
|
|
37204
|
+
Sm: "SM",
|
|
37205
|
+
Sn: "SN",
|
|
37232
37206
|
So: "SO",
|
|
37207
|
+
Sr: "SR",
|
|
37208
|
+
Ss: "SS",
|
|
37209
|
+
St: "ST",
|
|
37210
|
+
Sv: "SV",
|
|
37211
|
+
Sx: "SX",
|
|
37233
37212
|
Sz: "SZ",
|
|
37234
|
-
|
|
37235
|
-
|
|
37213
|
+
Tc: "TC",
|
|
37214
|
+
Td: "TD",
|
|
37215
|
+
Tf: "TF",
|
|
37216
|
+
Tg: "TG",
|
|
37217
|
+
Th: "TH",
|
|
37218
|
+
Tj: "TJ",
|
|
37219
|
+
Tk: "TK",
|
|
37236
37220
|
Tl: "TL",
|
|
37237
|
-
|
|
37238
|
-
|
|
37239
|
-
|
|
37240
|
-
|
|
37241
|
-
|
|
37242
|
-
|
|
37243
|
-
|
|
37244
|
-
|
|
37245
|
-
|
|
37246
|
-
|
|
37247
|
-
|
|
37248
|
-
|
|
37221
|
+
Tm: "TM",
|
|
37222
|
+
Tn: "TN",
|
|
37223
|
+
To: "TO",
|
|
37224
|
+
Tr: "TR",
|
|
37225
|
+
Tt: "TT",
|
|
37226
|
+
Tv: "TV",
|
|
37227
|
+
Tw: "TW",
|
|
37228
|
+
Tz: "TZ",
|
|
37229
|
+
Ua: "UA",
|
|
37230
|
+
Ug: "UG",
|
|
37231
|
+
Um: "UM",
|
|
37232
|
+
Us: "US",
|
|
37233
|
+
Uy: "UY",
|
|
37234
|
+
Uz: "UZ",
|
|
37235
|
+
Va: "VA",
|
|
37236
|
+
Vc: "VC",
|
|
37237
|
+
Ve: "VE",
|
|
37238
|
+
Vg: "VG",
|
|
37239
|
+
Vi: "VI",
|
|
37240
|
+
Vn: "VN",
|
|
37241
|
+
Vu: "VU",
|
|
37242
|
+
Wf: "WF",
|
|
37243
|
+
Ws: "WS",
|
|
37244
|
+
Ye: "YE",
|
|
37245
|
+
Yt: "YT",
|
|
37246
|
+
Za: "ZA",
|
|
37247
|
+
Zm: "ZM",
|
|
37248
|
+
Zw: "ZW"
|
|
37249
37249
|
};
|
|
37250
37250
|
CountryAlpha2Input$inboundSchema = nativeEnumType(CountryAlpha2Input);
|
|
37251
37251
|
CountryAlpha2Input$outboundSchema = CountryAlpha2Input$inboundSchema;
|
|
@@ -37944,46 +37944,193 @@ async function $do7(client, request, options) {
|
|
|
37944
37944
|
const responseFields = {
|
|
37945
37945
|
HttpMeta: { Response: response, Request: req }
|
|
37946
37946
|
};
|
|
37947
|
-
const [result] = await match(json(200, Customer$inboundSchema), jsonErr(404, ResourceNotFound$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37947
|
+
const [result] = await match(json(200, Customer$inboundSchema), jsonErr(404, ResourceNotFound$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37948
|
+
if (!result.ok) {
|
|
37949
|
+
return [result, { status: "complete", request: req, response }];
|
|
37950
|
+
}
|
|
37951
|
+
return [result, { status: "complete", request: req, response }];
|
|
37952
|
+
}
|
|
37953
|
+
var init_customersGet = __esm(() => {
|
|
37954
|
+
init_encodings();
|
|
37955
|
+
init_matchers();
|
|
37956
|
+
init_primitives();
|
|
37957
|
+
init_schemas();
|
|
37958
|
+
init_security();
|
|
37959
|
+
init_url();
|
|
37960
|
+
init_customer();
|
|
37961
|
+
init_httpvalidationerror();
|
|
37962
|
+
init_resourcenotfound();
|
|
37963
|
+
init_customersget();
|
|
37964
|
+
init_async();
|
|
37965
|
+
});
|
|
37966
|
+
|
|
37967
|
+
// src/mcp-server/tools/customersGet.ts
|
|
37968
|
+
var args7, tool$customersGet;
|
|
37969
|
+
var init_customersGet2 = __esm(() => {
|
|
37970
|
+
init_customersGet();
|
|
37971
|
+
init_customersget();
|
|
37972
|
+
init_tools();
|
|
37973
|
+
args7 = {
|
|
37974
|
+
request: CustomersGetRequest$inboundSchema
|
|
37975
|
+
};
|
|
37976
|
+
tool$customersGet = {
|
|
37977
|
+
name: "customers-get",
|
|
37978
|
+
description: `Get Customer
|
|
37979
|
+
|
|
37980
|
+
Get a customer by ID.
|
|
37981
|
+
|
|
37982
|
+
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
37983
|
+
scopes: ["read", "customers"],
|
|
37984
|
+
args: args7,
|
|
37985
|
+
tool: async (client, args8, ctx) => {
|
|
37986
|
+
const [result, apiCall] = await customersGet(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
37987
|
+
if (!result.ok) {
|
|
37988
|
+
return {
|
|
37989
|
+
content: [{ type: "text", text: result.error.message }],
|
|
37990
|
+
isError: true
|
|
37991
|
+
};
|
|
37992
|
+
}
|
|
37993
|
+
const value = result.value;
|
|
37994
|
+
return formatResult(value, apiCall);
|
|
37995
|
+
}
|
|
37996
|
+
};
|
|
37997
|
+
});
|
|
37998
|
+
|
|
37999
|
+
// src/models/components/customerbalance.ts
|
|
38000
|
+
var CustomerBalance$inboundSchema, CustomerBalance$outboundSchema, CustomerBalance$;
|
|
38001
|
+
var init_customerbalance = __esm(() => {
|
|
38002
|
+
init_zod();
|
|
38003
|
+
CustomerBalance$inboundSchema = objectType({
|
|
38004
|
+
balance: numberType().int(),
|
|
38005
|
+
currency: stringType()
|
|
38006
|
+
});
|
|
38007
|
+
CustomerBalance$outboundSchema = objectType({
|
|
38008
|
+
balance: numberType().int(),
|
|
38009
|
+
currency: stringType()
|
|
38010
|
+
});
|
|
38011
|
+
((CustomerBalance$) => {
|
|
38012
|
+
CustomerBalance$.inboundSchema = CustomerBalance$inboundSchema;
|
|
38013
|
+
CustomerBalance$.outboundSchema = CustomerBalance$outboundSchema;
|
|
38014
|
+
})(CustomerBalance$ ||= {});
|
|
38015
|
+
});
|
|
38016
|
+
|
|
38017
|
+
// src/models/operations/customersgetbalance.ts
|
|
38018
|
+
var CustomersGetBalanceRequest$inboundSchema, CustomersGetBalanceRequest$outboundSchema, CustomersGetBalanceRequest$;
|
|
38019
|
+
var init_customersgetbalance = __esm(() => {
|
|
38020
|
+
init_zod();
|
|
38021
|
+
CustomersGetBalanceRequest$inboundSchema = objectType({
|
|
38022
|
+
id: stringType()
|
|
38023
|
+
});
|
|
38024
|
+
CustomersGetBalanceRequest$outboundSchema = objectType({
|
|
38025
|
+
id: stringType()
|
|
38026
|
+
});
|
|
38027
|
+
((CustomersGetBalanceRequest$) => {
|
|
38028
|
+
CustomersGetBalanceRequest$.inboundSchema = CustomersGetBalanceRequest$inboundSchema;
|
|
38029
|
+
CustomersGetBalanceRequest$.outboundSchema = CustomersGetBalanceRequest$outboundSchema;
|
|
38030
|
+
})(CustomersGetBalanceRequest$ ||= {});
|
|
38031
|
+
});
|
|
38032
|
+
|
|
38033
|
+
// src/funcs/customersGetBalance.ts
|
|
38034
|
+
function customersGetBalance(client, request, options) {
|
|
38035
|
+
return new APIPromise($do8(client, request, options));
|
|
38036
|
+
}
|
|
38037
|
+
async function $do8(client, request, options) {
|
|
38038
|
+
const parsed = safeParse(request, (value) => CustomersGetBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
38039
|
+
if (!parsed.ok) {
|
|
38040
|
+
return [parsed, { status: "invalid" }];
|
|
38041
|
+
}
|
|
38042
|
+
const payload = parsed.value;
|
|
38043
|
+
const body = null;
|
|
38044
|
+
const pathParams = {
|
|
38045
|
+
id: encodeSimple("id", payload.id, {
|
|
38046
|
+
explode: false,
|
|
38047
|
+
charEncoding: "percent"
|
|
38048
|
+
})
|
|
38049
|
+
};
|
|
38050
|
+
const path = pathToFunc("/v1/customers/{id}/balance")(pathParams);
|
|
38051
|
+
const headers = new Headers(compactMap({
|
|
38052
|
+
Accept: "application/json"
|
|
38053
|
+
}));
|
|
38054
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
38055
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
38056
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
38057
|
+
const context = {
|
|
38058
|
+
options: client._options,
|
|
38059
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
38060
|
+
operationID: "customers:get_balance",
|
|
38061
|
+
oAuth2Scopes: [],
|
|
38062
|
+
resolvedSecurity: requestSecurity,
|
|
38063
|
+
securitySource: client._options.accessToken,
|
|
38064
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
38065
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
38066
|
+
};
|
|
38067
|
+
const requestRes = client._createRequest(context, {
|
|
38068
|
+
security: requestSecurity,
|
|
38069
|
+
method: "GET",
|
|
38070
|
+
baseURL: options?.serverURL,
|
|
38071
|
+
path,
|
|
38072
|
+
headers,
|
|
38073
|
+
body,
|
|
38074
|
+
userAgent: client._options.userAgent,
|
|
38075
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
38076
|
+
}, options);
|
|
38077
|
+
if (!requestRes.ok) {
|
|
38078
|
+
return [requestRes, { status: "invalid" }];
|
|
38079
|
+
}
|
|
38080
|
+
const req = requestRes.value;
|
|
38081
|
+
const doResult = await client._do(req, {
|
|
38082
|
+
context,
|
|
38083
|
+
errorCodes: ["404", "422", "4XX", "5XX"],
|
|
38084
|
+
retryConfig: context.retryConfig,
|
|
38085
|
+
retryCodes: context.retryCodes
|
|
38086
|
+
});
|
|
38087
|
+
if (!doResult.ok) {
|
|
38088
|
+
return [doResult, { status: "request-error", request: req }];
|
|
38089
|
+
}
|
|
38090
|
+
const response = doResult.value;
|
|
38091
|
+
const responseFields = {
|
|
38092
|
+
HttpMeta: { Response: response, Request: req }
|
|
38093
|
+
};
|
|
38094
|
+
const [result] = await match(json(200, CustomerBalance$inboundSchema), jsonErr(404, ResourceNotFound$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37948
38095
|
if (!result.ok) {
|
|
37949
38096
|
return [result, { status: "complete", request: req, response }];
|
|
37950
38097
|
}
|
|
37951
38098
|
return [result, { status: "complete", request: req, response }];
|
|
37952
38099
|
}
|
|
37953
|
-
var
|
|
38100
|
+
var init_customersGetBalance = __esm(() => {
|
|
37954
38101
|
init_encodings();
|
|
37955
38102
|
init_matchers();
|
|
37956
38103
|
init_primitives();
|
|
37957
38104
|
init_schemas();
|
|
37958
38105
|
init_security();
|
|
37959
38106
|
init_url();
|
|
37960
|
-
|
|
38107
|
+
init_customerbalance();
|
|
37961
38108
|
init_httpvalidationerror();
|
|
37962
38109
|
init_resourcenotfound();
|
|
37963
|
-
|
|
38110
|
+
init_customersgetbalance();
|
|
37964
38111
|
init_async();
|
|
37965
38112
|
});
|
|
37966
38113
|
|
|
37967
|
-
// src/mcp-server/tools/
|
|
37968
|
-
var
|
|
37969
|
-
var
|
|
37970
|
-
|
|
37971
|
-
|
|
38114
|
+
// src/mcp-server/tools/customersGetBalance.ts
|
|
38115
|
+
var args8, tool$customersGetBalance;
|
|
38116
|
+
var init_customersGetBalance2 = __esm(() => {
|
|
38117
|
+
init_customersGetBalance();
|
|
38118
|
+
init_customersgetbalance();
|
|
37972
38119
|
init_tools();
|
|
37973
|
-
|
|
37974
|
-
request:
|
|
38120
|
+
args8 = {
|
|
38121
|
+
request: CustomersGetBalanceRequest$inboundSchema
|
|
37975
38122
|
};
|
|
37976
|
-
tool$
|
|
37977
|
-
name: "customers-get",
|
|
37978
|
-
description: `Get Customer
|
|
38123
|
+
tool$customersGetBalance = {
|
|
38124
|
+
name: "customers-get-balance",
|
|
38125
|
+
description: `Get Customer Balance
|
|
37979
38126
|
|
|
37980
|
-
Get
|
|
38127
|
+
Get customer balance information.
|
|
37981
38128
|
|
|
37982
38129
|
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
37983
38130
|
scopes: ["read", "customers"],
|
|
37984
|
-
args:
|
|
37985
|
-
tool: async (client,
|
|
37986
|
-
const [result, apiCall] = await
|
|
38131
|
+
args: args8,
|
|
38132
|
+
tool: async (client, args9, ctx) => {
|
|
38133
|
+
const [result, apiCall] = await customersGetBalance(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
37987
38134
|
if (!result.ok) {
|
|
37988
38135
|
return {
|
|
37989
38136
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -38023,9 +38170,9 @@ var init_customersgetexternal = __esm(() => {
|
|
|
38023
38170
|
|
|
38024
38171
|
// src/funcs/customersGetExternal.ts
|
|
38025
38172
|
function customersGetExternal(client, request, options) {
|
|
38026
|
-
return new APIPromise($
|
|
38173
|
+
return new APIPromise($do9(client, request, options));
|
|
38027
38174
|
}
|
|
38028
|
-
async function $
|
|
38175
|
+
async function $do9(client, request, options) {
|
|
38029
38176
|
const parsed = safeParse(request, (value) => CustomersGetExternalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
38030
38177
|
if (!parsed.ok) {
|
|
38031
38178
|
return [parsed, { status: "invalid" }];
|
|
@@ -38103,12 +38250,12 @@ var init_customersGetExternal = __esm(() => {
|
|
|
38103
38250
|
});
|
|
38104
38251
|
|
|
38105
38252
|
// src/mcp-server/tools/customersGetExternal.ts
|
|
38106
|
-
var
|
|
38253
|
+
var args9, tool$customersGetExternal;
|
|
38107
38254
|
var init_customersGetExternal2 = __esm(() => {
|
|
38108
38255
|
init_customersGetExternal();
|
|
38109
38256
|
init_customersgetexternal();
|
|
38110
38257
|
init_tools();
|
|
38111
|
-
|
|
38258
|
+
args9 = {
|
|
38112
38259
|
request: CustomersGetExternalRequest$inboundSchema
|
|
38113
38260
|
};
|
|
38114
38261
|
tool$customersGetExternal = {
|
|
@@ -38119,9 +38266,9 @@ Get a customer by external ID.
|
|
|
38119
38266
|
|
|
38120
38267
|
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
38121
38268
|
scopes: ["read", "customers"],
|
|
38122
|
-
args:
|
|
38123
|
-
tool: async (client,
|
|
38124
|
-
const [result, apiCall] = await customersGetExternal(client,
|
|
38269
|
+
args: args9,
|
|
38270
|
+
tool: async (client, args10, ctx) => {
|
|
38271
|
+
const [result, apiCall] = await customersGetExternal(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
38125
38272
|
if (!result.ok) {
|
|
38126
38273
|
return {
|
|
38127
38274
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -38500,12 +38647,16 @@ var init_subscriptionrecurringinterval = __esm(() => {
|
|
|
38500
38647
|
});
|
|
38501
38648
|
|
|
38502
38649
|
// src/models/components/customerstatesubscription.ts
|
|
38503
|
-
var CustomerStateSubscriptionCustomFieldData$inboundSchema, CustomerStateSubscriptionCustomFieldData$outboundSchema, CustomerStateSubscriptionCustomFieldData$, CustomerStateSubscriptionMetadata$inboundSchema, CustomerStateSubscriptionMetadata$outboundSchema, CustomerStateSubscriptionMetadata$, CustomerStateSubscription$inboundSchema, CustomerStateSubscription$outboundSchema, CustomerStateSubscription$;
|
|
38650
|
+
var CustomerStateSubscriptionStatus, CustomerStateSubscriptionCustomFieldData$inboundSchema, CustomerStateSubscriptionCustomFieldData$outboundSchema, CustomerStateSubscriptionCustomFieldData$, CustomerStateSubscriptionMetadata$inboundSchema, CustomerStateSubscriptionMetadata$outboundSchema, CustomerStateSubscriptionMetadata$, CustomerStateSubscriptionStatus$inboundSchema, CustomerStateSubscriptionStatus$outboundSchema, CustomerStateSubscriptionStatus$, CustomerStateSubscription$inboundSchema, CustomerStateSubscription$outboundSchema, CustomerStateSubscription$;
|
|
38504
38651
|
var init_customerstatesubscription = __esm(() => {
|
|
38505
38652
|
init_zod();
|
|
38506
38653
|
init_primitives();
|
|
38507
38654
|
init_customerstatesubscriptionmeter();
|
|
38508
38655
|
init_subscriptionrecurringinterval();
|
|
38656
|
+
CustomerStateSubscriptionStatus = {
|
|
38657
|
+
Active: "active",
|
|
38658
|
+
Trialing: "trialing"
|
|
38659
|
+
};
|
|
38509
38660
|
CustomerStateSubscriptionCustomFieldData$inboundSchema = unionType([
|
|
38510
38661
|
stringType(),
|
|
38511
38662
|
numberType().int(),
|
|
@@ -38528,6 +38679,12 @@ var init_customerstatesubscription = __esm(() => {
|
|
|
38528
38679
|
CustomerStateSubscriptionMetadata$.inboundSchema = CustomerStateSubscriptionMetadata$inboundSchema;
|
|
38529
38680
|
CustomerStateSubscriptionMetadata$.outboundSchema = CustomerStateSubscriptionMetadata$outboundSchema;
|
|
38530
38681
|
})(CustomerStateSubscriptionMetadata$ ||= {});
|
|
38682
|
+
CustomerStateSubscriptionStatus$inboundSchema = nativeEnumType(CustomerStateSubscriptionStatus);
|
|
38683
|
+
CustomerStateSubscriptionStatus$outboundSchema = CustomerStateSubscriptionStatus$inboundSchema;
|
|
38684
|
+
((CustomerStateSubscriptionStatus$) => {
|
|
38685
|
+
CustomerStateSubscriptionStatus$.inboundSchema = CustomerStateSubscriptionStatus$inboundSchema;
|
|
38686
|
+
CustomerStateSubscriptionStatus$.outboundSchema = CustomerStateSubscriptionStatus$outboundSchema;
|
|
38687
|
+
})(CustomerStateSubscriptionStatus$ ||= {});
|
|
38531
38688
|
CustomerStateSubscription$inboundSchema = objectType({
|
|
38532
38689
|
id: stringType(),
|
|
38533
38690
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
@@ -38539,12 +38696,14 @@ var init_customerstatesubscription = __esm(() => {
|
|
|
38539
38696
|
stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
38540
38697
|
]))).optional(),
|
|
38541
38698
|
metadata: recordType(unionType([stringType(), numberType().int(), numberType(), booleanType()])),
|
|
38542
|
-
status:
|
|
38699
|
+
status: CustomerStateSubscriptionStatus$inboundSchema,
|
|
38543
38700
|
amount: numberType().int(),
|
|
38544
38701
|
currency: stringType(),
|
|
38545
38702
|
recurring_interval: SubscriptionRecurringInterval$inboundSchema,
|
|
38546
38703
|
current_period_start: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
38547
38704
|
current_period_end: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
38705
|
+
trial_start: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
38706
|
+
trial_end: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
38548
38707
|
cancel_at_period_end: booleanType(),
|
|
38549
38708
|
canceled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
38550
38709
|
started_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
@@ -38560,6 +38719,8 @@ var init_customerstatesubscription = __esm(() => {
|
|
|
38560
38719
|
recurring_interval: "recurringInterval",
|
|
38561
38720
|
current_period_start: "currentPeriodStart",
|
|
38562
38721
|
current_period_end: "currentPeriodEnd",
|
|
38722
|
+
trial_start: "trialStart",
|
|
38723
|
+
trial_end: "trialEnd",
|
|
38563
38724
|
cancel_at_period_end: "cancelAtPeriodEnd",
|
|
38564
38725
|
canceled_at: "canceledAt",
|
|
38565
38726
|
started_at: "startedAt",
|
|
@@ -38579,12 +38740,14 @@ var init_customerstatesubscription = __esm(() => {
|
|
|
38579
38740
|
dateType().transform((v2) => v2.toISOString())
|
|
38580
38741
|
]))).optional(),
|
|
38581
38742
|
metadata: recordType(unionType([stringType(), numberType().int(), numberType(), booleanType()])),
|
|
38582
|
-
status:
|
|
38743
|
+
status: CustomerStateSubscriptionStatus$outboundSchema,
|
|
38583
38744
|
amount: numberType().int(),
|
|
38584
38745
|
currency: stringType(),
|
|
38585
38746
|
recurringInterval: SubscriptionRecurringInterval$outboundSchema,
|
|
38586
38747
|
currentPeriodStart: dateType().transform((v2) => v2.toISOString()),
|
|
38587
38748
|
currentPeriodEnd: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
38749
|
+
trialStart: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
38750
|
+
trialEnd: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
38588
38751
|
cancelAtPeriodEnd: booleanType(),
|
|
38589
38752
|
canceledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
38590
38753
|
startedAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
@@ -38600,6 +38763,8 @@ var init_customerstatesubscription = __esm(() => {
|
|
|
38600
38763
|
recurringInterval: "recurring_interval",
|
|
38601
38764
|
currentPeriodStart: "current_period_start",
|
|
38602
38765
|
currentPeriodEnd: "current_period_end",
|
|
38766
|
+
trialStart: "trial_start",
|
|
38767
|
+
trialEnd: "trial_end",
|
|
38603
38768
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
38604
38769
|
canceledAt: "canceled_at",
|
|
38605
38770
|
startedAt: "started_at",
|
|
@@ -38726,9 +38891,9 @@ var init_customersgetstate = __esm(() => {
|
|
|
38726
38891
|
|
|
38727
38892
|
// src/funcs/customersGetState.ts
|
|
38728
38893
|
function customersGetState(client, request, options) {
|
|
38729
|
-
return new APIPromise($
|
|
38894
|
+
return new APIPromise($do10(client, request, options));
|
|
38730
38895
|
}
|
|
38731
|
-
async function $
|
|
38896
|
+
async function $do10(client, request, options) {
|
|
38732
38897
|
const parsed = safeParse(request, (value) => CustomersGetStateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
38733
38898
|
if (!parsed.ok) {
|
|
38734
38899
|
return [parsed, { status: "invalid" }];
|
|
@@ -38806,12 +38971,12 @@ var init_customersGetState = __esm(() => {
|
|
|
38806
38971
|
});
|
|
38807
38972
|
|
|
38808
38973
|
// src/mcp-server/tools/customersGetState.ts
|
|
38809
|
-
var
|
|
38974
|
+
var args10, tool$customersGetState;
|
|
38810
38975
|
var init_customersGetState2 = __esm(() => {
|
|
38811
38976
|
init_customersGetState();
|
|
38812
38977
|
init_customersgetstate();
|
|
38813
38978
|
init_tools();
|
|
38814
|
-
|
|
38979
|
+
args10 = {
|
|
38815
38980
|
request: CustomersGetStateRequest$inboundSchema
|
|
38816
38981
|
};
|
|
38817
38982
|
tool$customersGetState = {
|
|
@@ -38828,9 +38993,9 @@ of a customer's status.
|
|
|
38828
38993
|
|
|
38829
38994
|
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
38830
38995
|
scopes: ["read", "customers"],
|
|
38831
|
-
args:
|
|
38832
|
-
tool: async (client,
|
|
38833
|
-
const [result, apiCall] = await customersGetState(client,
|
|
38996
|
+
args: args10,
|
|
38997
|
+
tool: async (client, args11, ctx) => {
|
|
38998
|
+
const [result, apiCall] = await customersGetState(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
38834
38999
|
if (!result.ok) {
|
|
38835
39000
|
return {
|
|
38836
39001
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -38870,9 +39035,9 @@ var init_customersgetstateexternal = __esm(() => {
|
|
|
38870
39035
|
|
|
38871
39036
|
// src/funcs/customersGetStateExternal.ts
|
|
38872
39037
|
function customersGetStateExternal(client, request, options) {
|
|
38873
|
-
return new APIPromise($
|
|
39038
|
+
return new APIPromise($do11(client, request, options));
|
|
38874
39039
|
}
|
|
38875
|
-
async function $
|
|
39040
|
+
async function $do11(client, request, options) {
|
|
38876
39041
|
const parsed = safeParse(request, (value) => CustomersGetStateExternalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
38877
39042
|
if (!parsed.ok) {
|
|
38878
39043
|
return [parsed, { status: "invalid" }];
|
|
@@ -38950,12 +39115,12 @@ var init_customersGetStateExternal = __esm(() => {
|
|
|
38950
39115
|
});
|
|
38951
39116
|
|
|
38952
39117
|
// src/mcp-server/tools/customersGetStateExternal.ts
|
|
38953
|
-
var
|
|
39118
|
+
var args11, tool$customersGetStateExternal;
|
|
38954
39119
|
var init_customersGetStateExternal2 = __esm(() => {
|
|
38955
39120
|
init_customersGetStateExternal();
|
|
38956
39121
|
init_customersgetstateexternal();
|
|
38957
39122
|
init_tools();
|
|
38958
|
-
|
|
39123
|
+
args11 = {
|
|
38959
39124
|
request: CustomersGetStateExternalRequest$inboundSchema
|
|
38960
39125
|
};
|
|
38961
39126
|
tool$customersGetStateExternal = {
|
|
@@ -38972,9 +39137,9 @@ of a customer's status.
|
|
|
38972
39137
|
|
|
38973
39138
|
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
38974
39139
|
scopes: ["read", "customers"],
|
|
38975
|
-
args:
|
|
38976
|
-
tool: async (client,
|
|
38977
|
-
const [result, apiCall] = await customersGetStateExternal(client,
|
|
39140
|
+
args: args11,
|
|
39141
|
+
tool: async (client, args12, ctx) => {
|
|
39142
|
+
const [result, apiCall] = await customersGetStateExternal(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
38978
39143
|
if (!result.ok) {
|
|
38979
39144
|
return {
|
|
38980
39145
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39119,9 +39284,9 @@ var init_customerslist = __esm(() => {
|
|
|
39119
39284
|
|
|
39120
39285
|
// src/funcs/customersList.ts
|
|
39121
39286
|
function customersList(client, request, options) {
|
|
39122
|
-
return new APIPromise($
|
|
39287
|
+
return new APIPromise($do12(client, request, options));
|
|
39123
39288
|
}
|
|
39124
|
-
async function $
|
|
39289
|
+
async function $do12(client, request, options) {
|
|
39125
39290
|
const parsed = safeParse(request, (value) => CustomersListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39126
39291
|
if (!parsed.ok) {
|
|
39127
39292
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -39236,12 +39401,12 @@ var init_customersList = __esm(() => {
|
|
|
39236
39401
|
});
|
|
39237
39402
|
|
|
39238
39403
|
// src/mcp-server/tools/customersList.ts
|
|
39239
|
-
var
|
|
39404
|
+
var args12, tool$customersList;
|
|
39240
39405
|
var init_customersList2 = __esm(() => {
|
|
39241
39406
|
init_customersList();
|
|
39242
39407
|
init_customerslist();
|
|
39243
39408
|
init_tools();
|
|
39244
|
-
|
|
39409
|
+
args12 = {
|
|
39245
39410
|
request: CustomersListRequest$inboundSchema
|
|
39246
39411
|
};
|
|
39247
39412
|
tool$customersList = {
|
|
@@ -39252,9 +39417,9 @@ List customers.
|
|
|
39252
39417
|
|
|
39253
39418
|
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
39254
39419
|
scopes: ["read", "customers"],
|
|
39255
|
-
args:
|
|
39256
|
-
tool: async (client,
|
|
39257
|
-
const [result, apiCall] = await customersList(client,
|
|
39420
|
+
args: args12,
|
|
39421
|
+
tool: async (client, args13, ctx) => {
|
|
39422
|
+
const [result, apiCall] = await customersList(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
39258
39423
|
if (!result.ok) {
|
|
39259
39424
|
return {
|
|
39260
39425
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39350,9 +39515,9 @@ var init_customersupdate = __esm(() => {
|
|
|
39350
39515
|
|
|
39351
39516
|
// src/funcs/customersUpdate.ts
|
|
39352
39517
|
function customersUpdate(client, request, options) {
|
|
39353
|
-
return new APIPromise($
|
|
39518
|
+
return new APIPromise($do13(client, request, options));
|
|
39354
39519
|
}
|
|
39355
|
-
async function $
|
|
39520
|
+
async function $do13(client, request, options) {
|
|
39356
39521
|
const parsed = safeParse(request, (value) => CustomersUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39357
39522
|
if (!parsed.ok) {
|
|
39358
39523
|
return [parsed, { status: "invalid" }];
|
|
@@ -39431,12 +39596,12 @@ var init_customersUpdate = __esm(() => {
|
|
|
39431
39596
|
});
|
|
39432
39597
|
|
|
39433
39598
|
// src/mcp-server/tools/customersUpdate.ts
|
|
39434
|
-
var
|
|
39599
|
+
var args13, tool$customersUpdate;
|
|
39435
39600
|
var init_customersUpdate2 = __esm(() => {
|
|
39436
39601
|
init_customersUpdate();
|
|
39437
39602
|
init_customersupdate();
|
|
39438
39603
|
init_tools();
|
|
39439
|
-
|
|
39604
|
+
args13 = {
|
|
39440
39605
|
request: CustomersUpdateRequest$inboundSchema
|
|
39441
39606
|
};
|
|
39442
39607
|
tool$customersUpdate = {
|
|
@@ -39447,9 +39612,9 @@ Update a customer.
|
|
|
39447
39612
|
|
|
39448
39613
|
**Scopes**: \`customers:write\``,
|
|
39449
39614
|
scopes: ["write", "customers"],
|
|
39450
|
-
args:
|
|
39451
|
-
tool: async (client,
|
|
39452
|
-
const [result, apiCall] = await customersUpdate(client,
|
|
39615
|
+
args: args13,
|
|
39616
|
+
tool: async (client, args14, ctx) => {
|
|
39617
|
+
const [result, apiCall] = await customersUpdate(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
39453
39618
|
if (!result.ok) {
|
|
39454
39619
|
return {
|
|
39455
39620
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39543,9 +39708,9 @@ var init_customersupdateexternal = __esm(() => {
|
|
|
39543
39708
|
|
|
39544
39709
|
// src/funcs/customersUpdateExternal.ts
|
|
39545
39710
|
function customersUpdateExternal(client, request, options) {
|
|
39546
|
-
return new APIPromise($
|
|
39711
|
+
return new APIPromise($do14(client, request, options));
|
|
39547
39712
|
}
|
|
39548
|
-
async function $
|
|
39713
|
+
async function $do14(client, request, options) {
|
|
39549
39714
|
const parsed = safeParse(request, (value) => CustomersUpdateExternalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39550
39715
|
if (!parsed.ok) {
|
|
39551
39716
|
return [parsed, { status: "invalid" }];
|
|
@@ -39626,12 +39791,12 @@ var init_customersUpdateExternal = __esm(() => {
|
|
|
39626
39791
|
});
|
|
39627
39792
|
|
|
39628
39793
|
// src/mcp-server/tools/customersUpdateExternal.ts
|
|
39629
|
-
var
|
|
39794
|
+
var args14, tool$customersUpdateExternal;
|
|
39630
39795
|
var init_customersUpdateExternal2 = __esm(() => {
|
|
39631
39796
|
init_customersUpdateExternal();
|
|
39632
39797
|
init_customersupdateexternal();
|
|
39633
39798
|
init_tools();
|
|
39634
|
-
|
|
39799
|
+
args14 = {
|
|
39635
39800
|
request: CustomersUpdateExternalRequest$inboundSchema
|
|
39636
39801
|
};
|
|
39637
39802
|
tool$customersUpdateExternal = {
|
|
@@ -39642,9 +39807,9 @@ Update a customer by external ID.
|
|
|
39642
39807
|
|
|
39643
39808
|
**Scopes**: \`customers:write\``,
|
|
39644
39809
|
scopes: ["write", "customers"],
|
|
39645
|
-
args:
|
|
39646
|
-
tool: async (client,
|
|
39647
|
-
const [result, apiCall] = await customersUpdateExternal(client,
|
|
39810
|
+
args: args14,
|
|
39811
|
+
tool: async (client, args15, ctx) => {
|
|
39812
|
+
const [result, apiCall] = await customersUpdateExternal(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
39648
39813
|
if (!result.ok) {
|
|
39649
39814
|
return {
|
|
39650
39815
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -40693,9 +40858,9 @@ var init_metricsget = __esm(() => {
|
|
|
40693
40858
|
|
|
40694
40859
|
// src/funcs/metricsGet.ts
|
|
40695
40860
|
function metricsGet(client, request, options) {
|
|
40696
|
-
return new APIPromise($
|
|
40861
|
+
return new APIPromise($do15(client, request, options));
|
|
40697
40862
|
}
|
|
40698
|
-
async function $
|
|
40863
|
+
async function $do15(client, request, options) {
|
|
40699
40864
|
const parsed = safeParse(request, (value) => MetricsGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40700
40865
|
if (!parsed.ok) {
|
|
40701
40866
|
return [parsed, { status: "invalid" }];
|
|
@@ -40777,12 +40942,12 @@ var init_metricsGet = __esm(() => {
|
|
|
40777
40942
|
});
|
|
40778
40943
|
|
|
40779
40944
|
// src/mcp-server/tools/metricsGet.ts
|
|
40780
|
-
var
|
|
40945
|
+
var args15, tool$metricsGet;
|
|
40781
40946
|
var init_metricsGet2 = __esm(() => {
|
|
40782
40947
|
init_metricsGet();
|
|
40783
40948
|
init_metricsget();
|
|
40784
40949
|
init_tools();
|
|
40785
|
-
|
|
40950
|
+
args15 = {
|
|
40786
40951
|
request: MetricsGetRequest$inboundSchema
|
|
40787
40952
|
};
|
|
40788
40953
|
tool$metricsGet = {
|
|
@@ -40795,9 +40960,9 @@ Currency values are output in cents.
|
|
|
40795
40960
|
|
|
40796
40961
|
**Scopes**: \`metrics:read\``,
|
|
40797
40962
|
scopes: ["read", "metrics"],
|
|
40798
|
-
args:
|
|
40799
|
-
tool: async (client,
|
|
40800
|
-
const [result, apiCall] = await metricsGet(client,
|
|
40963
|
+
args: args15,
|
|
40964
|
+
tool: async (client, args16, ctx) => {
|
|
40965
|
+
const [result, apiCall] = await metricsGet(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
40801
40966
|
if (!result.ok) {
|
|
40802
40967
|
return {
|
|
40803
40968
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -40891,9 +41056,9 @@ var init_metricslimits = __esm(() => {
|
|
|
40891
41056
|
|
|
40892
41057
|
// src/funcs/metricsLimits.ts
|
|
40893
41058
|
function metricsLimits(client, options) {
|
|
40894
|
-
return new APIPromise($
|
|
41059
|
+
return new APIPromise($do16(client, options));
|
|
40895
41060
|
}
|
|
40896
|
-
async function $
|
|
41061
|
+
async function $do16(client, options) {
|
|
40897
41062
|
const path = pathToFunc("/v1/metrics/limits")();
|
|
40898
41063
|
const headers = new Headers(compactMap({
|
|
40899
41064
|
Accept: "application/json"
|
|
@@ -41137,9 +41302,9 @@ var init_ordersgenerateinvoice2 = __esm(() => {
|
|
|
41137
41302
|
|
|
41138
41303
|
// src/funcs/ordersGenerateInvoice.ts
|
|
41139
41304
|
function ordersGenerateInvoice(client, request, options) {
|
|
41140
|
-
return new APIPromise($
|
|
41305
|
+
return new APIPromise($do17(client, request, options));
|
|
41141
41306
|
}
|
|
41142
|
-
async function $
|
|
41307
|
+
async function $do17(client, request, options) {
|
|
41143
41308
|
const parsed = safeParse(request, (value) => OrdersGenerateInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41144
41309
|
if (!parsed.ok) {
|
|
41145
41310
|
return [parsed, { status: "invalid" }];
|
|
@@ -41217,12 +41382,12 @@ var init_ordersGenerateInvoice = __esm(() => {
|
|
|
41217
41382
|
});
|
|
41218
41383
|
|
|
41219
41384
|
// src/mcp-server/tools/ordersGenerateInvoice.ts
|
|
41220
|
-
var
|
|
41385
|
+
var args16, tool$ordersGenerateInvoice;
|
|
41221
41386
|
var init_ordersGenerateInvoice2 = __esm(() => {
|
|
41222
41387
|
init_ordersGenerateInvoice();
|
|
41223
41388
|
init_ordersgenerateinvoice2();
|
|
41224
41389
|
init_tools();
|
|
41225
|
-
|
|
41390
|
+
args16 = {
|
|
41226
41391
|
request: OrdersGenerateInvoiceRequest$inboundSchema
|
|
41227
41392
|
};
|
|
41228
41393
|
tool$ordersGenerateInvoice = {
|
|
@@ -41233,9 +41398,9 @@ Trigger generation of an order's invoice.
|
|
|
41233
41398
|
|
|
41234
41399
|
**Scopes**: \`orders:read\``,
|
|
41235
41400
|
scopes: ["write", "orders"],
|
|
41236
|
-
args:
|
|
41237
|
-
tool: async (client,
|
|
41238
|
-
const [result, apiCall] = await ordersGenerateInvoice(client,
|
|
41401
|
+
args: args16,
|
|
41402
|
+
tool: async (client, args17, ctx) => {
|
|
41403
|
+
const [result, apiCall] = await ordersGenerateInvoice(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41239
41404
|
if (!result.ok) {
|
|
41240
41405
|
return {
|
|
41241
41406
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42055,6 +42220,7 @@ var init_order = __esm(() => {
|
|
|
42055
42220
|
billing_reason: OrderBillingReason$inboundSchema,
|
|
42056
42221
|
billing_name: nullableType(stringType()),
|
|
42057
42222
|
billing_address: nullableType(Address$inboundSchema),
|
|
42223
|
+
invoice_number: stringType(),
|
|
42058
42224
|
is_invoice_generated: booleanType(),
|
|
42059
42225
|
customer_id: stringType(),
|
|
42060
42226
|
product_id: stringType(),
|
|
@@ -42094,6 +42260,7 @@ var init_order = __esm(() => {
|
|
|
42094
42260
|
billing_reason: "billingReason",
|
|
42095
42261
|
billing_name: "billingName",
|
|
42096
42262
|
billing_address: "billingAddress",
|
|
42263
|
+
invoice_number: "invoiceNumber",
|
|
42097
42264
|
is_invoice_generated: "isInvoiceGenerated",
|
|
42098
42265
|
customer_id: "customerId",
|
|
42099
42266
|
product_id: "productId",
|
|
@@ -42122,6 +42289,7 @@ var init_order = __esm(() => {
|
|
|
42122
42289
|
billingReason: OrderBillingReason$outboundSchema,
|
|
42123
42290
|
billingName: nullableType(stringType()),
|
|
42124
42291
|
billingAddress: nullableType(Address$outboundSchema),
|
|
42292
|
+
invoiceNumber: stringType(),
|
|
42125
42293
|
isInvoiceGenerated: booleanType(),
|
|
42126
42294
|
customerId: stringType(),
|
|
42127
42295
|
productId: stringType(),
|
|
@@ -42161,6 +42329,7 @@ var init_order = __esm(() => {
|
|
|
42161
42329
|
billingReason: "billing_reason",
|
|
42162
42330
|
billingName: "billing_name",
|
|
42163
42331
|
billingAddress: "billing_address",
|
|
42332
|
+
invoiceNumber: "invoice_number",
|
|
42164
42333
|
isInvoiceGenerated: "is_invoice_generated",
|
|
42165
42334
|
customerId: "customer_id",
|
|
42166
42335
|
productId: "product_id",
|
|
@@ -42195,9 +42364,9 @@ var init_ordersget = __esm(() => {
|
|
|
42195
42364
|
|
|
42196
42365
|
// src/funcs/ordersGet.ts
|
|
42197
42366
|
function ordersGet(client, request, options) {
|
|
42198
|
-
return new APIPromise($
|
|
42367
|
+
return new APIPromise($do18(client, request, options));
|
|
42199
42368
|
}
|
|
42200
|
-
async function $
|
|
42369
|
+
async function $do18(client, request, options) {
|
|
42201
42370
|
const parsed = safeParse(request, (value) => OrdersGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42202
42371
|
if (!parsed.ok) {
|
|
42203
42372
|
return [parsed, { status: "invalid" }];
|
|
@@ -42275,12 +42444,12 @@ var init_ordersGet = __esm(() => {
|
|
|
42275
42444
|
});
|
|
42276
42445
|
|
|
42277
42446
|
// src/mcp-server/tools/ordersGet.ts
|
|
42278
|
-
var
|
|
42447
|
+
var args17, tool$ordersGet;
|
|
42279
42448
|
var init_ordersGet2 = __esm(() => {
|
|
42280
42449
|
init_ordersGet();
|
|
42281
42450
|
init_ordersget();
|
|
42282
42451
|
init_tools();
|
|
42283
|
-
|
|
42452
|
+
args17 = {
|
|
42284
42453
|
request: OrdersGetRequest$inboundSchema
|
|
42285
42454
|
};
|
|
42286
42455
|
tool$ordersGet = {
|
|
@@ -42291,9 +42460,9 @@ Get an order by ID.
|
|
|
42291
42460
|
|
|
42292
42461
|
**Scopes**: \`orders:read\``,
|
|
42293
42462
|
scopes: ["read", "orders"],
|
|
42294
|
-
args:
|
|
42295
|
-
tool: async (client,
|
|
42296
|
-
const [result, apiCall] = await ordersGet(client,
|
|
42463
|
+
args: args17,
|
|
42464
|
+
tool: async (client, args18, ctx) => {
|
|
42465
|
+
const [result, apiCall] = await ordersGet(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42297
42466
|
if (!result.ok) {
|
|
42298
42467
|
return {
|
|
42299
42468
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42340,9 +42509,9 @@ var init_ordersinvoice = __esm(() => {
|
|
|
42340
42509
|
|
|
42341
42510
|
// src/funcs/ordersInvoice.ts
|
|
42342
42511
|
function ordersInvoice(client, request, options) {
|
|
42343
|
-
return new APIPromise($
|
|
42512
|
+
return new APIPromise($do19(client, request, options));
|
|
42344
42513
|
}
|
|
42345
|
-
async function $
|
|
42514
|
+
async function $do19(client, request, options) {
|
|
42346
42515
|
const parsed = safeParse(request, (value) => OrdersInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42347
42516
|
if (!parsed.ok) {
|
|
42348
42517
|
return [parsed, { status: "invalid" }];
|
|
@@ -42420,12 +42589,12 @@ var init_ordersInvoice = __esm(() => {
|
|
|
42420
42589
|
});
|
|
42421
42590
|
|
|
42422
42591
|
// src/mcp-server/tools/ordersInvoice.ts
|
|
42423
|
-
var
|
|
42592
|
+
var args18, tool$ordersInvoice;
|
|
42424
42593
|
var init_ordersInvoice2 = __esm(() => {
|
|
42425
42594
|
init_ordersInvoice();
|
|
42426
42595
|
init_ordersinvoice();
|
|
42427
42596
|
init_tools();
|
|
42428
|
-
|
|
42597
|
+
args18 = {
|
|
42429
42598
|
request: OrdersInvoiceRequest$inboundSchema
|
|
42430
42599
|
};
|
|
42431
42600
|
tool$ordersInvoice = {
|
|
@@ -42436,9 +42605,9 @@ Get an order's invoice data.
|
|
|
42436
42605
|
|
|
42437
42606
|
**Scopes**: \`orders:read\``,
|
|
42438
42607
|
scopes: ["read", "orders"],
|
|
42439
|
-
args:
|
|
42440
|
-
tool: async (client,
|
|
42441
|
-
const [result, apiCall] = await ordersInvoice(client,
|
|
42608
|
+
args: args18,
|
|
42609
|
+
tool: async (client, args19, ctx) => {
|
|
42610
|
+
const [result, apiCall] = await ordersInvoice(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42442
42611
|
if (!result.ok) {
|
|
42443
42612
|
return {
|
|
42444
42613
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42628,9 +42797,9 @@ var init_orderslist = __esm(() => {
|
|
|
42628
42797
|
|
|
42629
42798
|
// src/funcs/ordersList.ts
|
|
42630
42799
|
function ordersList(client, request, options) {
|
|
42631
|
-
return new APIPromise($
|
|
42800
|
+
return new APIPromise($do20(client, request, options));
|
|
42632
42801
|
}
|
|
42633
|
-
async function $
|
|
42802
|
+
async function $do20(client, request, options) {
|
|
42634
42803
|
const parsed = safeParse(request, (value) => OrdersListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42635
42804
|
if (!parsed.ok) {
|
|
42636
42805
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -42748,12 +42917,12 @@ var init_ordersList = __esm(() => {
|
|
|
42748
42917
|
});
|
|
42749
42918
|
|
|
42750
42919
|
// src/mcp-server/tools/ordersList.ts
|
|
42751
|
-
var
|
|
42920
|
+
var args19, tool$ordersList;
|
|
42752
42921
|
var init_ordersList2 = __esm(() => {
|
|
42753
42922
|
init_ordersList();
|
|
42754
42923
|
init_orderslist();
|
|
42755
42924
|
init_tools();
|
|
42756
|
-
|
|
42925
|
+
args19 = {
|
|
42757
42926
|
request: OrdersListRequest$inboundSchema
|
|
42758
42927
|
};
|
|
42759
42928
|
tool$ordersList = {
|
|
@@ -42764,9 +42933,9 @@ List orders.
|
|
|
42764
42933
|
|
|
42765
42934
|
**Scopes**: \`orders:read\``,
|
|
42766
42935
|
scopes: ["read", "orders"],
|
|
42767
|
-
args:
|
|
42768
|
-
tool: async (client,
|
|
42769
|
-
const [result, apiCall] = await ordersList(client,
|
|
42936
|
+
args: args19,
|
|
42937
|
+
tool: async (client, args20, ctx) => {
|
|
42938
|
+
const [result, apiCall] = await ordersList(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42770
42939
|
if (!result.ok) {
|
|
42771
42940
|
return {
|
|
42772
42941
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42839,9 +43008,9 @@ var init_ordersupdate = __esm(() => {
|
|
|
42839
43008
|
|
|
42840
43009
|
// src/funcs/ordersUpdate.ts
|
|
42841
43010
|
function ordersUpdate(client, request, options) {
|
|
42842
|
-
return new APIPromise($
|
|
43011
|
+
return new APIPromise($do21(client, request, options));
|
|
42843
43012
|
}
|
|
42844
|
-
async function $
|
|
43013
|
+
async function $do21(client, request, options) {
|
|
42845
43014
|
const parsed = safeParse(request, (value) => OrdersUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42846
43015
|
if (!parsed.ok) {
|
|
42847
43016
|
return [parsed, { status: "invalid" }];
|
|
@@ -42920,12 +43089,12 @@ var init_ordersUpdate = __esm(() => {
|
|
|
42920
43089
|
});
|
|
42921
43090
|
|
|
42922
43091
|
// src/mcp-server/tools/ordersUpdate.ts
|
|
42923
|
-
var
|
|
43092
|
+
var args20, tool$ordersUpdate;
|
|
42924
43093
|
var init_ordersUpdate2 = __esm(() => {
|
|
42925
43094
|
init_ordersUpdate();
|
|
42926
43095
|
init_ordersupdate();
|
|
42927
43096
|
init_tools();
|
|
42928
|
-
|
|
43097
|
+
args20 = {
|
|
42929
43098
|
request: OrdersUpdateRequest$inboundSchema
|
|
42930
43099
|
};
|
|
42931
43100
|
tool$ordersUpdate = {
|
|
@@ -42936,9 +43105,9 @@ Update an order.
|
|
|
42936
43105
|
|
|
42937
43106
|
**Scopes**: \`orders:write\``,
|
|
42938
43107
|
scopes: ["write", "orders"],
|
|
42939
|
-
args:
|
|
42940
|
-
tool: async (client,
|
|
42941
|
-
const [result, apiCall] = await ordersUpdate(client,
|
|
43108
|
+
args: args20,
|
|
43109
|
+
tool: async (client, args21, ctx) => {
|
|
43110
|
+
const [result, apiCall] = await ordersUpdate(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42942
43111
|
if (!result.ok) {
|
|
42943
43112
|
return {
|
|
42944
43113
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43172,9 +43341,9 @@ var init_paymentsget = __esm(() => {
|
|
|
43172
43341
|
|
|
43173
43342
|
// src/funcs/paymentsGet.ts
|
|
43174
43343
|
function paymentsGet(client, request, options) {
|
|
43175
|
-
return new APIPromise($
|
|
43344
|
+
return new APIPromise($do22(client, request, options));
|
|
43176
43345
|
}
|
|
43177
|
-
async function $
|
|
43346
|
+
async function $do22(client, request, options) {
|
|
43178
43347
|
const parsed = safeParse(request, (value) => PaymentsGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43179
43348
|
if (!parsed.ok) {
|
|
43180
43349
|
return [parsed, { status: "invalid" }];
|
|
@@ -43252,12 +43421,12 @@ var init_paymentsGet = __esm(() => {
|
|
|
43252
43421
|
});
|
|
43253
43422
|
|
|
43254
43423
|
// src/mcp-server/tools/paymentsGet.ts
|
|
43255
|
-
var
|
|
43424
|
+
var args21, tool$paymentsGet;
|
|
43256
43425
|
var init_paymentsGet2 = __esm(() => {
|
|
43257
43426
|
init_paymentsGet();
|
|
43258
43427
|
init_paymentsget();
|
|
43259
43428
|
init_tools();
|
|
43260
|
-
|
|
43429
|
+
args21 = {
|
|
43261
43430
|
request: PaymentsGetRequest$inboundSchema
|
|
43262
43431
|
};
|
|
43263
43432
|
tool$paymentsGet = {
|
|
@@ -43268,9 +43437,9 @@ Get a payment by ID.
|
|
|
43268
43437
|
|
|
43269
43438
|
**Scopes**: \`payments:read\``,
|
|
43270
43439
|
scopes: ["read", "payments"],
|
|
43271
|
-
args:
|
|
43272
|
-
tool: async (client,
|
|
43273
|
-
const [result, apiCall] = await paymentsGet(client,
|
|
43440
|
+
args: args21,
|
|
43441
|
+
tool: async (client, args22, ctx) => {
|
|
43442
|
+
const [result, apiCall] = await paymentsGet(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43274
43443
|
if (!result.ok) {
|
|
43275
43444
|
return {
|
|
43276
43445
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43443,9 +43612,9 @@ var init_paymentslist = __esm(() => {
|
|
|
43443
43612
|
|
|
43444
43613
|
// src/funcs/paymentsList.ts
|
|
43445
43614
|
function paymentsList(client, request, options) {
|
|
43446
|
-
return new APIPromise($
|
|
43615
|
+
return new APIPromise($do23(client, request, options));
|
|
43447
43616
|
}
|
|
43448
|
-
async function $
|
|
43617
|
+
async function $do23(client, request, options) {
|
|
43449
43618
|
const parsed = safeParse(request, (value) => PaymentsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43450
43619
|
if (!parsed.ok) {
|
|
43451
43620
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -43561,12 +43730,12 @@ var init_paymentsList = __esm(() => {
|
|
|
43561
43730
|
});
|
|
43562
43731
|
|
|
43563
43732
|
// src/mcp-server/tools/paymentsList.ts
|
|
43564
|
-
var
|
|
43733
|
+
var args22, tool$paymentsList;
|
|
43565
43734
|
var init_paymentsList2 = __esm(() => {
|
|
43566
43735
|
init_paymentsList();
|
|
43567
43736
|
init_paymentslist();
|
|
43568
43737
|
init_tools();
|
|
43569
|
-
|
|
43738
|
+
args22 = {
|
|
43570
43739
|
request: PaymentsListRequest$inboundSchema
|
|
43571
43740
|
};
|
|
43572
43741
|
tool$paymentsList = {
|
|
@@ -43577,9 +43746,9 @@ List payments.
|
|
|
43577
43746
|
|
|
43578
43747
|
**Scopes**: \`payments:read\``,
|
|
43579
43748
|
scopes: ["read", "payments"],
|
|
43580
|
-
args:
|
|
43581
|
-
tool: async (client,
|
|
43582
|
-
const [result, apiCall] = await paymentsList(client,
|
|
43749
|
+
args: args22,
|
|
43750
|
+
tool: async (client, args23, ctx) => {
|
|
43751
|
+
const [result, apiCall] = await paymentsList(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43583
43752
|
if (!result.ok) {
|
|
43584
43753
|
return {
|
|
43585
43754
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45802,9 +45971,9 @@ var init_productcreate = __esm(() => {
|
|
|
45802
45971
|
|
|
45803
45972
|
// src/funcs/productsCreate.ts
|
|
45804
45973
|
function productsCreate(client, request, options) {
|
|
45805
|
-
return new APIPromise($
|
|
45974
|
+
return new APIPromise($do24(client, request, options));
|
|
45806
45975
|
}
|
|
45807
|
-
async function $
|
|
45976
|
+
async function $do24(client, request, options) {
|
|
45808
45977
|
const parsed = safeParse(request, (value) => ProductCreate$outboundSchema.parse(value), "Input validation failed");
|
|
45809
45978
|
if (!parsed.ok) {
|
|
45810
45979
|
return [parsed, { status: "invalid" }];
|
|
@@ -45876,12 +46045,12 @@ var init_productsCreate = __esm(() => {
|
|
|
45876
46045
|
});
|
|
45877
46046
|
|
|
45878
46047
|
// src/mcp-server/tools/productsCreate.ts
|
|
45879
|
-
var
|
|
46048
|
+
var args23, tool$productsCreate;
|
|
45880
46049
|
var init_productsCreate2 = __esm(() => {
|
|
45881
46050
|
init_productsCreate();
|
|
45882
46051
|
init_productcreate();
|
|
45883
46052
|
init_tools();
|
|
45884
|
-
|
|
46053
|
+
args23 = {
|
|
45885
46054
|
request: ProductCreate$inboundSchema
|
|
45886
46055
|
};
|
|
45887
46056
|
tool$productsCreate = {
|
|
@@ -45892,9 +46061,9 @@ Create a product.
|
|
|
45892
46061
|
|
|
45893
46062
|
**Scopes**: \`products:write\``,
|
|
45894
46063
|
scopes: ["write", "products"],
|
|
45895
|
-
args:
|
|
45896
|
-
tool: async (client,
|
|
45897
|
-
const [result, apiCall] = await productsCreate(client,
|
|
46064
|
+
args: args23,
|
|
46065
|
+
tool: async (client, args24, ctx) => {
|
|
46066
|
+
const [result, apiCall] = await productsCreate(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45898
46067
|
if (!result.ok) {
|
|
45899
46068
|
return {
|
|
45900
46069
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45925,9 +46094,9 @@ var init_productsget = __esm(() => {
|
|
|
45925
46094
|
|
|
45926
46095
|
// src/funcs/productsGet.ts
|
|
45927
46096
|
function productsGet(client, request, options) {
|
|
45928
|
-
return new APIPromise($
|
|
46097
|
+
return new APIPromise($do25(client, request, options));
|
|
45929
46098
|
}
|
|
45930
|
-
async function $
|
|
46099
|
+
async function $do25(client, request, options) {
|
|
45931
46100
|
const parsed = safeParse(request, (value) => ProductsGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45932
46101
|
if (!parsed.ok) {
|
|
45933
46102
|
return [parsed, { status: "invalid" }];
|
|
@@ -46005,12 +46174,12 @@ var init_productsGet = __esm(() => {
|
|
|
46005
46174
|
});
|
|
46006
46175
|
|
|
46007
46176
|
// src/mcp-server/tools/productsGet.ts
|
|
46008
|
-
var
|
|
46177
|
+
var args24, tool$productsGet;
|
|
46009
46178
|
var init_productsGet2 = __esm(() => {
|
|
46010
46179
|
init_productsGet();
|
|
46011
46180
|
init_productsget();
|
|
46012
46181
|
init_tools();
|
|
46013
|
-
|
|
46182
|
+
args24 = {
|
|
46014
46183
|
request: ProductsGetRequest$inboundSchema
|
|
46015
46184
|
};
|
|
46016
46185
|
tool$productsGet = {
|
|
@@ -46021,9 +46190,9 @@ Get a product by ID.
|
|
|
46021
46190
|
|
|
46022
46191
|
**Scopes**: \`products:read\` \`products:write\``,
|
|
46023
46192
|
scopes: ["read", "products"],
|
|
46024
|
-
args:
|
|
46025
|
-
tool: async (client,
|
|
46026
|
-
const [result, apiCall] = await productsGet(client,
|
|
46193
|
+
args: args24,
|
|
46194
|
+
tool: async (client, args25, ctx) => {
|
|
46195
|
+
const [result, apiCall] = await productsGet(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46027
46196
|
if (!result.ok) {
|
|
46028
46197
|
return {
|
|
46029
46198
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46168,9 +46337,9 @@ var init_productslist = __esm(() => {
|
|
|
46168
46337
|
|
|
46169
46338
|
// src/funcs/productsList.ts
|
|
46170
46339
|
function productsList(client, request, options) {
|
|
46171
|
-
return new APIPromise($
|
|
46340
|
+
return new APIPromise($do26(client, request, options));
|
|
46172
46341
|
}
|
|
46173
|
-
async function $
|
|
46342
|
+
async function $do26(client, request, options) {
|
|
46174
46343
|
const parsed = safeParse(request, (value) => ProductsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46175
46344
|
if (!parsed.ok) {
|
|
46176
46345
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46288,12 +46457,12 @@ var init_productsList = __esm(() => {
|
|
|
46288
46457
|
});
|
|
46289
46458
|
|
|
46290
46459
|
// src/mcp-server/tools/productsList.ts
|
|
46291
|
-
var
|
|
46460
|
+
var args25, tool$productsList;
|
|
46292
46461
|
var init_productsList2 = __esm(() => {
|
|
46293
46462
|
init_productsList();
|
|
46294
46463
|
init_productslist();
|
|
46295
46464
|
init_tools();
|
|
46296
|
-
|
|
46465
|
+
args25 = {
|
|
46297
46466
|
request: ProductsListRequest$inboundSchema
|
|
46298
46467
|
};
|
|
46299
46468
|
tool$productsList = {
|
|
@@ -46304,9 +46473,9 @@ List products.
|
|
|
46304
46473
|
|
|
46305
46474
|
**Scopes**: \`products:read\` \`products:write\``,
|
|
46306
46475
|
scopes: ["read", "products"],
|
|
46307
|
-
args:
|
|
46308
|
-
tool: async (client,
|
|
46309
|
-
const [result, apiCall] = await productsList(client,
|
|
46476
|
+
args: args25,
|
|
46477
|
+
tool: async (client, args26, ctx) => {
|
|
46478
|
+
const [result, apiCall] = await productsList(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46310
46479
|
if (!result.ok) {
|
|
46311
46480
|
return {
|
|
46312
46481
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46501,9 +46670,9 @@ var init_productsupdate = __esm(() => {
|
|
|
46501
46670
|
|
|
46502
46671
|
// src/funcs/productsUpdate.ts
|
|
46503
46672
|
function productsUpdate(client, request, options) {
|
|
46504
|
-
return new APIPromise($
|
|
46673
|
+
return new APIPromise($do27(client, request, options));
|
|
46505
46674
|
}
|
|
46506
|
-
async function $
|
|
46675
|
+
async function $do27(client, request, options) {
|
|
46507
46676
|
const parsed = safeParse(request, (value) => ProductsUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46508
46677
|
if (!parsed.ok) {
|
|
46509
46678
|
return [parsed, { status: "invalid" }];
|
|
@@ -46583,12 +46752,12 @@ var init_productsUpdate = __esm(() => {
|
|
|
46583
46752
|
});
|
|
46584
46753
|
|
|
46585
46754
|
// src/mcp-server/tools/productsUpdate.ts
|
|
46586
|
-
var
|
|
46755
|
+
var args26, tool$productsUpdate;
|
|
46587
46756
|
var init_productsUpdate2 = __esm(() => {
|
|
46588
46757
|
init_productsUpdate();
|
|
46589
46758
|
init_productsupdate();
|
|
46590
46759
|
init_tools();
|
|
46591
|
-
|
|
46760
|
+
args26 = {
|
|
46592
46761
|
request: ProductsUpdateRequest$inboundSchema
|
|
46593
46762
|
};
|
|
46594
46763
|
tool$productsUpdate = {
|
|
@@ -46599,9 +46768,9 @@ Update a product.
|
|
|
46599
46768
|
|
|
46600
46769
|
**Scopes**: \`products:write\``,
|
|
46601
46770
|
scopes: ["write", "products"],
|
|
46602
|
-
args:
|
|
46603
|
-
tool: async (client,
|
|
46604
|
-
const [result, apiCall] = await productsUpdate(client,
|
|
46771
|
+
args: args26,
|
|
46772
|
+
tool: async (client, args27, ctx) => {
|
|
46773
|
+
const [result, apiCall] = await productsUpdate(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46605
46774
|
if (!result.ok) {
|
|
46606
46775
|
return {
|
|
46607
46776
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46660,9 +46829,9 @@ var init_productsupdatebenefits = __esm(() => {
|
|
|
46660
46829
|
|
|
46661
46830
|
// src/funcs/productsUpdateBenefits.ts
|
|
46662
46831
|
function productsUpdateBenefits(client, request, options) {
|
|
46663
|
-
return new APIPromise($
|
|
46832
|
+
return new APIPromise($do28(client, request, options));
|
|
46664
46833
|
}
|
|
46665
|
-
async function $
|
|
46834
|
+
async function $do28(client, request, options) {
|
|
46666
46835
|
const parsed = safeParse(request, (value) => ProductsUpdateBenefitsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46667
46836
|
if (!parsed.ok) {
|
|
46668
46837
|
return [parsed, { status: "invalid" }];
|
|
@@ -46744,12 +46913,12 @@ var init_productsUpdateBenefits = __esm(() => {
|
|
|
46744
46913
|
});
|
|
46745
46914
|
|
|
46746
46915
|
// src/mcp-server/tools/productsUpdateBenefits.ts
|
|
46747
|
-
var
|
|
46916
|
+
var args27, tool$productsUpdateBenefits;
|
|
46748
46917
|
var init_productsUpdateBenefits2 = __esm(() => {
|
|
46749
46918
|
init_productsUpdateBenefits();
|
|
46750
46919
|
init_productsupdatebenefits();
|
|
46751
46920
|
init_tools();
|
|
46752
|
-
|
|
46921
|
+
args27 = {
|
|
46753
46922
|
request: ProductsUpdateBenefitsRequest$inboundSchema
|
|
46754
46923
|
};
|
|
46755
46924
|
tool$productsUpdateBenefits = {
|
|
@@ -46760,9 +46929,9 @@ Update benefits granted by a product.
|
|
|
46760
46929
|
|
|
46761
46930
|
**Scopes**: \`products:write\``,
|
|
46762
46931
|
scopes: ["write", "products"],
|
|
46763
|
-
args:
|
|
46764
|
-
tool: async (client,
|
|
46765
|
-
const [result, apiCall] = await productsUpdateBenefits(client,
|
|
46932
|
+
args: args27,
|
|
46933
|
+
tool: async (client, args28, ctx) => {
|
|
46934
|
+
const [result, apiCall] = await productsUpdateBenefits(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46766
46935
|
if (!result.ok) {
|
|
46767
46936
|
return {
|
|
46768
46937
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46808,9 +46977,9 @@ var init_subscriptionsexport = __esm(() => {
|
|
|
46808
46977
|
|
|
46809
46978
|
// src/funcs/subscriptionsExport.ts
|
|
46810
46979
|
function subscriptionsExport(client, request, options) {
|
|
46811
|
-
return new APIPromise($
|
|
46980
|
+
return new APIPromise($do29(client, request, options));
|
|
46812
46981
|
}
|
|
46813
|
-
async function $
|
|
46982
|
+
async function $do29(client, request, options) {
|
|
46814
46983
|
const parsed = safeParse(request, (value) => SubscriptionsExportRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46815
46984
|
if (!parsed.ok) {
|
|
46816
46985
|
return [parsed, { status: "invalid" }];
|
|
@@ -46885,12 +47054,12 @@ var init_subscriptionsExport = __esm(() => {
|
|
|
46885
47054
|
});
|
|
46886
47055
|
|
|
46887
47056
|
// src/mcp-server/tools/subscriptionsExport.ts
|
|
46888
|
-
var
|
|
47057
|
+
var args28, tool$subscriptionsExport;
|
|
46889
47058
|
var init_subscriptionsExport2 = __esm(() => {
|
|
46890
47059
|
init_subscriptionsExport();
|
|
46891
47060
|
init_subscriptionsexport();
|
|
46892
47061
|
init_tools();
|
|
46893
|
-
|
|
47062
|
+
args28 = {
|
|
46894
47063
|
request: SubscriptionsExportRequest$inboundSchema
|
|
46895
47064
|
};
|
|
46896
47065
|
tool$subscriptionsExport = {
|
|
@@ -46901,9 +47070,9 @@ Export subscriptions as a CSV file.
|
|
|
46901
47070
|
|
|
46902
47071
|
**Scopes**: \`subscriptions:read\` \`subscriptions:write\``,
|
|
46903
47072
|
scopes: ["read", "subscriptions"],
|
|
46904
|
-
args:
|
|
46905
|
-
tool: async (client,
|
|
46906
|
-
const [result, apiCall] = await subscriptionsExport(client,
|
|
47073
|
+
args: args28,
|
|
47074
|
+
tool: async (client, args29, ctx) => {
|
|
47075
|
+
const [result, apiCall] = await subscriptionsExport(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46907
47076
|
if (!result.ok) {
|
|
46908
47077
|
return {
|
|
46909
47078
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47266,9 +47435,9 @@ var init_subscriptionsget = __esm(() => {
|
|
|
47266
47435
|
|
|
47267
47436
|
// src/funcs/subscriptionsGet.ts
|
|
47268
47437
|
function subscriptionsGet(client, request, options) {
|
|
47269
|
-
return new APIPromise($
|
|
47438
|
+
return new APIPromise($do30(client, request, options));
|
|
47270
47439
|
}
|
|
47271
|
-
async function $
|
|
47440
|
+
async function $do30(client, request, options) {
|
|
47272
47441
|
const parsed = safeParse(request, (value) => SubscriptionsGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47273
47442
|
if (!parsed.ok) {
|
|
47274
47443
|
return [parsed, { status: "invalid" }];
|
|
@@ -47346,12 +47515,12 @@ var init_subscriptionsGet = __esm(() => {
|
|
|
47346
47515
|
});
|
|
47347
47516
|
|
|
47348
47517
|
// src/mcp-server/tools/subscriptionsGet.ts
|
|
47349
|
-
var
|
|
47518
|
+
var args29, tool$subscriptionsGet;
|
|
47350
47519
|
var init_subscriptionsGet2 = __esm(() => {
|
|
47351
47520
|
init_subscriptionsGet();
|
|
47352
47521
|
init_subscriptionsget();
|
|
47353
47522
|
init_tools();
|
|
47354
|
-
|
|
47523
|
+
args29 = {
|
|
47355
47524
|
request: SubscriptionsGetRequest$inboundSchema
|
|
47356
47525
|
};
|
|
47357
47526
|
tool$subscriptionsGet = {
|
|
@@ -47362,9 +47531,9 @@ Get a subscription by ID.
|
|
|
47362
47531
|
|
|
47363
47532
|
**Scopes**: \`subscriptions:read\` \`subscriptions:write\``,
|
|
47364
47533
|
scopes: ["read", "subscriptions"],
|
|
47365
|
-
args:
|
|
47366
|
-
tool: async (client,
|
|
47367
|
-
const [result, apiCall] = await subscriptionsGet(client,
|
|
47534
|
+
args: args29,
|
|
47535
|
+
tool: async (client, args30, ctx) => {
|
|
47536
|
+
const [result, apiCall] = await subscriptionsGet(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47368
47537
|
if (!result.ok) {
|
|
47369
47538
|
return {
|
|
47370
47539
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47529,9 +47698,9 @@ var init_subscriptionslist2 = __esm(() => {
|
|
|
47529
47698
|
|
|
47530
47699
|
// src/funcs/subscriptionsList.ts
|
|
47531
47700
|
function subscriptionsList(client, request, options) {
|
|
47532
|
-
return new APIPromise($
|
|
47701
|
+
return new APIPromise($do31(client, request, options));
|
|
47533
47702
|
}
|
|
47534
|
-
async function $
|
|
47703
|
+
async function $do31(client, request, options) {
|
|
47535
47704
|
const parsed = safeParse(request, (value) => SubscriptionsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47536
47705
|
if (!parsed.ok) {
|
|
47537
47706
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47649,12 +47818,12 @@ var init_subscriptionsList = __esm(() => {
|
|
|
47649
47818
|
});
|
|
47650
47819
|
|
|
47651
47820
|
// src/mcp-server/tools/subscriptionsList.ts
|
|
47652
|
-
var
|
|
47821
|
+
var args30, tool$subscriptionsList;
|
|
47653
47822
|
var init_subscriptionsList2 = __esm(() => {
|
|
47654
47823
|
init_subscriptionsList();
|
|
47655
47824
|
init_subscriptionslist2();
|
|
47656
47825
|
init_tools();
|
|
47657
|
-
|
|
47826
|
+
args30 = {
|
|
47658
47827
|
request: SubscriptionsListRequest$inboundSchema
|
|
47659
47828
|
};
|
|
47660
47829
|
tool$subscriptionsList = {
|
|
@@ -47665,9 +47834,9 @@ List subscriptions.
|
|
|
47665
47834
|
|
|
47666
47835
|
**Scopes**: \`subscriptions:read\` \`subscriptions:write\``,
|
|
47667
47836
|
scopes: ["read", "subscriptions"],
|
|
47668
|
-
args:
|
|
47669
|
-
tool: async (client,
|
|
47670
|
-
const [result, apiCall] = await subscriptionsList(client,
|
|
47837
|
+
args: args30,
|
|
47838
|
+
tool: async (client, args31, ctx) => {
|
|
47839
|
+
const [result, apiCall] = await subscriptionsList(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47671
47840
|
if (!result.ok) {
|
|
47672
47841
|
return {
|
|
47673
47842
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47780,9 +47949,9 @@ var init_subscriptionsrevoke = __esm(() => {
|
|
|
47780
47949
|
|
|
47781
47950
|
// src/funcs/subscriptionsRevoke.ts
|
|
47782
47951
|
function subscriptionsRevoke(client, request, options) {
|
|
47783
|
-
return new APIPromise($
|
|
47952
|
+
return new APIPromise($do32(client, request, options));
|
|
47784
47953
|
}
|
|
47785
|
-
async function $
|
|
47954
|
+
async function $do32(client, request, options) {
|
|
47786
47955
|
const parsed = safeParse(request, (value) => SubscriptionsRevokeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47787
47956
|
if (!parsed.ok) {
|
|
47788
47957
|
return [parsed, { status: "invalid" }];
|
|
@@ -47862,12 +48031,12 @@ var init_subscriptionsRevoke = __esm(() => {
|
|
|
47862
48031
|
});
|
|
47863
48032
|
|
|
47864
48033
|
// src/mcp-server/tools/subscriptionsRevoke.ts
|
|
47865
|
-
var
|
|
48034
|
+
var args31, tool$subscriptionsRevoke;
|
|
47866
48035
|
var init_subscriptionsRevoke2 = __esm(() => {
|
|
47867
48036
|
init_subscriptionsRevoke();
|
|
47868
48037
|
init_subscriptionsrevoke();
|
|
47869
48038
|
init_tools();
|
|
47870
|
-
|
|
48039
|
+
args31 = {
|
|
47871
48040
|
request: SubscriptionsRevokeRequest$inboundSchema
|
|
47872
48041
|
};
|
|
47873
48042
|
tool$subscriptionsRevoke = {
|
|
@@ -47878,9 +48047,9 @@ Revoke a subscription, i.e cancel immediately.
|
|
|
47878
48047
|
|
|
47879
48048
|
**Scopes**: \`subscriptions:write\``,
|
|
47880
48049
|
scopes: ["write", "subscriptions"],
|
|
47881
|
-
args:
|
|
47882
|
-
tool: async (client,
|
|
47883
|
-
const [result, apiCall] = await subscriptionsRevoke(client,
|
|
48050
|
+
args: args31,
|
|
48051
|
+
tool: async (client, args32, ctx) => {
|
|
48052
|
+
const [result, apiCall] = await subscriptionsRevoke(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47884
48053
|
if (!result.ok) {
|
|
47885
48054
|
return {
|
|
47886
48055
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48114,9 +48283,9 @@ var init_subscriptionsupdate = __esm(() => {
|
|
|
48114
48283
|
|
|
48115
48284
|
// src/funcs/subscriptionsUpdate.ts
|
|
48116
48285
|
function subscriptionsUpdate(client, request, options) {
|
|
48117
|
-
return new APIPromise($
|
|
48286
|
+
return new APIPromise($do33(client, request, options));
|
|
48118
48287
|
}
|
|
48119
|
-
async function $
|
|
48288
|
+
async function $do33(client, request, options) {
|
|
48120
48289
|
const parsed = safeParse(request, (value) => SubscriptionsUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48121
48290
|
if (!parsed.ok) {
|
|
48122
48291
|
return [parsed, { status: "invalid" }];
|
|
@@ -48199,12 +48368,12 @@ var init_subscriptionsUpdate = __esm(() => {
|
|
|
48199
48368
|
});
|
|
48200
48369
|
|
|
48201
48370
|
// src/mcp-server/tools/subscriptionsUpdate.ts
|
|
48202
|
-
var
|
|
48371
|
+
var args32, tool$subscriptionsUpdate;
|
|
48203
48372
|
var init_subscriptionsUpdate2 = __esm(() => {
|
|
48204
48373
|
init_subscriptionsUpdate();
|
|
48205
48374
|
init_subscriptionsupdate();
|
|
48206
48375
|
init_tools();
|
|
48207
|
-
|
|
48376
|
+
args32 = {
|
|
48208
48377
|
request: SubscriptionsUpdateRequest$inboundSchema
|
|
48209
48378
|
};
|
|
48210
48379
|
tool$subscriptionsUpdate = {
|
|
@@ -48215,9 +48384,9 @@ Update a subscription.
|
|
|
48215
48384
|
|
|
48216
48385
|
**Scopes**: \`subscriptions:write\``,
|
|
48217
48386
|
scopes: ["write", "subscriptions"],
|
|
48218
|
-
args:
|
|
48219
|
-
tool: async (client,
|
|
48220
|
-
const [result, apiCall] = await subscriptionsUpdate(client,
|
|
48387
|
+
args: args32,
|
|
48388
|
+
tool: async (client, args33, ctx) => {
|
|
48389
|
+
const [result, apiCall] = await subscriptionsUpdate(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48221
48390
|
if (!result.ok) {
|
|
48222
48391
|
return {
|
|
48223
48392
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48234,7 +48403,7 @@ Update a subscription.
|
|
|
48234
48403
|
function createMCPServer(deps) {
|
|
48235
48404
|
const server = new McpServer({
|
|
48236
48405
|
name: "Polar",
|
|
48237
|
-
version: "0.35.
|
|
48406
|
+
version: "0.35.3"
|
|
48238
48407
|
});
|
|
48239
48408
|
const client = new PolarCore({
|
|
48240
48409
|
accessToken: deps.accessToken,
|
|
@@ -48276,6 +48445,7 @@ function createMCPServer(deps) {
|
|
|
48276
48445
|
tool(tool$customersDeleteExternal);
|
|
48277
48446
|
tool(tool$customersGetState);
|
|
48278
48447
|
tool(tool$customersGetStateExternal);
|
|
48448
|
+
tool(tool$customersGetBalance);
|
|
48279
48449
|
tool(tool$customerMetersList);
|
|
48280
48450
|
tool(tool$customerMetersGet);
|
|
48281
48451
|
tool(tool$paymentsList);
|
|
@@ -48294,6 +48464,7 @@ var init_server2 = __esm(() => {
|
|
|
48294
48464
|
init_customersDeleteExternal2();
|
|
48295
48465
|
init_customersExport2();
|
|
48296
48466
|
init_customersGet2();
|
|
48467
|
+
init_customersGetBalance2();
|
|
48297
48468
|
init_customersGetExternal2();
|
|
48298
48469
|
init_customersGetState2();
|
|
48299
48470
|
init_customersGetStateExternal2();
|
|
@@ -49521,7 +49692,7 @@ var routes = rn({
|
|
|
49521
49692
|
var app = Ve(routes, {
|
|
49522
49693
|
name: "mcp",
|
|
49523
49694
|
versionInfo: {
|
|
49524
|
-
currentVersion: "0.35.
|
|
49695
|
+
currentVersion: "0.35.3"
|
|
49525
49696
|
}
|
|
49526
49697
|
});
|
|
49527
49698
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -49529,5 +49700,5 @@ export {
|
|
|
49529
49700
|
app
|
|
49530
49701
|
};
|
|
49531
49702
|
|
|
49532
|
-
//# debugId=
|
|
49703
|
+
//# debugId=AD1DCAD0528A36F764756E2164756E21
|
|
49533
49704
|
//# sourceMappingURL=mcp-server.js.map
|