@polar-sh/sdk 0.35.2 → 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 +771 -618
- package/bin/mcp-server.js.map +14 -10
- 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 +669 -669
- package/dist/commonjs/models/components/address.js +223 -223
- package/dist/commonjs/models/components/addressinput.d.ts +652 -652
- package/dist/commonjs/models/components/addressinput.js +218 -218
- 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/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 +669 -669
- package/dist/esm/models/components/address.js +223 -223
- package/dist/esm/models/components/addressinput.d.ts +652 -652
- package/dist/esm/models/components/addressinput.js +218 -218
- 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/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 +223 -223
- package/src/models/components/addressinput.ts +218 -218
- 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/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
|
-
Ms: "MS",
|
|
35617
|
-
Ph: "PH",
|
|
35618
|
-
Gw: "GW",
|
|
35619
|
-
Tf: "TF",
|
|
35620
|
-
Jm: "JM",
|
|
35621
|
-
Ly: "LY",
|
|
35622
|
-
Tw: "TW",
|
|
35623
|
-
Gy: "GY",
|
|
35624
|
-
Um: "UM",
|
|
35625
|
-
Er: "ER",
|
|
35626
|
-
Mv: "MV",
|
|
35627
|
-
At: "AT",
|
|
35628
|
-
In: "IN",
|
|
35629
|
-
Sd: "SD",
|
|
35630
|
-
Vc: "VC",
|
|
35631
|
-
Cu: "CU",
|
|
35632
|
-
Us: "US",
|
|
35633
|
-
Aq: "AQ",
|
|
35615
|
+
Ad: "AD",
|
|
35634
35616
|
Ae: "AE",
|
|
35635
|
-
|
|
35636
|
-
|
|
35637
|
-
|
|
35638
|
-
|
|
35639
|
-
|
|
35640
|
-
|
|
35641
|
-
|
|
35642
|
-
|
|
35643
|
-
Tn: "TN",
|
|
35644
|
-
Bm: "BM",
|
|
35645
|
-
Ht: "HT",
|
|
35646
|
-
Je: "JE",
|
|
35647
|
-
Lc: "LC",
|
|
35648
|
-
Cy: "CY",
|
|
35649
|
-
Lv: "LV",
|
|
35650
|
-
Ml: "ML",
|
|
35651
|
-
Dz: "DZ",
|
|
35652
|
-
Ps: "PS",
|
|
35653
|
-
Ve: "VE",
|
|
35654
|
-
Bh: "BH",
|
|
35655
|
-
Et: "ET",
|
|
35656
|
-
By: "BY",
|
|
35657
|
-
Mp: "MP",
|
|
35658
|
-
Bo: "BO",
|
|
35659
|
-
Sh: "SH",
|
|
35660
|
-
Ru: "RU",
|
|
35661
|
-
Kw: "KW",
|
|
35662
|
-
Sg: "SG",
|
|
35663
|
-
Mx: "MX",
|
|
35664
|
-
Pa: "PA",
|
|
35665
|
-
Zm: "ZM",
|
|
35666
|
-
To: "TO",
|
|
35667
|
-
Kn: "KN",
|
|
35668
|
-
Pt: "PT",
|
|
35669
|
-
Ws: "WS",
|
|
35670
|
-
Bs: "BS",
|
|
35671
|
-
Sy: "SY",
|
|
35672
|
-
Za: "ZA",
|
|
35673
|
-
Mo: "MO",
|
|
35674
|
-
Ie: "IE",
|
|
35675
|
-
Br: "BR",
|
|
35617
|
+
Af: "AF",
|
|
35618
|
+
Ag: "AG",
|
|
35619
|
+
Ai: "AI",
|
|
35620
|
+
Al: "AL",
|
|
35621
|
+
Am: "AM",
|
|
35622
|
+
Ao: "AO",
|
|
35623
|
+
Aq: "AQ",
|
|
35624
|
+
Ar: "AR",
|
|
35676
35625
|
As: "AS",
|
|
35677
|
-
|
|
35678
|
-
|
|
35679
|
-
|
|
35626
|
+
At: "AT",
|
|
35627
|
+
Au: "AU",
|
|
35628
|
+
Aw: "AW",
|
|
35629
|
+
Ax: "AX",
|
|
35630
|
+
Az: "AZ",
|
|
35631
|
+
Ba: "BA",
|
|
35680
35632
|
Bb: "BB",
|
|
35681
|
-
|
|
35682
|
-
Tv: "TV",
|
|
35683
|
-
Gh: "GH",
|
|
35684
|
-
Tz: "TZ",
|
|
35685
|
-
Kz: "KZ",
|
|
35686
|
-
Sx: "SX",
|
|
35687
|
-
Cx: "CX",
|
|
35688
|
-
Mm: "MM",
|
|
35689
|
-
Pk: "PK",
|
|
35690
|
-
Na: "NA",
|
|
35633
|
+
Bd: "BD",
|
|
35691
35634
|
Be: "BE",
|
|
35692
|
-
|
|
35693
|
-
Lr: "LR",
|
|
35694
|
-
Ua: "UA",
|
|
35695
|
-
Me: "ME",
|
|
35696
|
-
Mw: "MW",
|
|
35697
|
-
Vn: "VN",
|
|
35698
|
-
Lu: "LU",
|
|
35699
|
-
Mu: "MU",
|
|
35700
|
-
Is: "IS",
|
|
35701
|
-
Nu: "NU",
|
|
35702
|
-
Pm: "PM",
|
|
35703
|
-
Bw: "BW",
|
|
35704
|
-
Td: "TD",
|
|
35705
|
-
Yt: "YT",
|
|
35706
|
-
Fo: "FO",
|
|
35707
|
-
Tr: "TR",
|
|
35708
|
-
Rw: "RW",
|
|
35709
|
-
Ir: "IR",
|
|
35710
|
-
Id: "ID",
|
|
35711
|
-
No: "NO",
|
|
35712
|
-
Ck: "CK",
|
|
35713
|
-
Ss: "SS",
|
|
35714
|
-
De: "DE",
|
|
35715
|
-
Mk: "MK",
|
|
35716
|
-
La: "LA",
|
|
35717
|
-
Ee: "EE",
|
|
35718
|
-
Mn: "MN",
|
|
35719
|
-
Gi: "GI",
|
|
35720
|
-
Vu: "VU",
|
|
35721
|
-
Ro: "RO",
|
|
35722
|
-
Ao: "AO",
|
|
35723
|
-
Ar: "AR",
|
|
35724
|
-
Tk: "TK",
|
|
35725
|
-
Uy: "UY",
|
|
35726
|
-
Kh: "KH",
|
|
35635
|
+
Bf: "BF",
|
|
35727
35636
|
Bg: "BG",
|
|
35728
|
-
|
|
35729
|
-
|
|
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",
|
|
35651
|
+
Bz: "BZ",
|
|
35652
|
+
Ca: "CA",
|
|
35730
35653
|
Cc: "CC",
|
|
35731
35654
|
Cd: "CD",
|
|
35732
|
-
|
|
35655
|
+
Cf: "CF",
|
|
35656
|
+
Cg: "CG",
|
|
35657
|
+
Ch: "CH",
|
|
35658
|
+
Ci: "CI",
|
|
35659
|
+
Ck: "CK",
|
|
35733
35660
|
Cl: "CL",
|
|
35734
|
-
Gu: "GU",
|
|
35735
|
-
Il: "IL",
|
|
35736
|
-
Kr: "KR",
|
|
35737
|
-
Pe: "PE",
|
|
35738
|
-
Sn: "SN",
|
|
35739
|
-
Sm: "SM",
|
|
35740
|
-
Nl: "NL",
|
|
35741
|
-
Sk: "SK",
|
|
35742
|
-
Hm: "HM",
|
|
35743
|
-
Mq: "MQ",
|
|
35744
|
-
Mr: "MR",
|
|
35745
|
-
It: "IT",
|
|
35746
35661
|
Cm: "CM",
|
|
35747
|
-
|
|
35748
|
-
|
|
35662
|
+
Cn: "CN",
|
|
35663
|
+
Co: "CO",
|
|
35664
|
+
Cr: "CR",
|
|
35665
|
+
Cu: "CU",
|
|
35666
|
+
Cv: "CV",
|
|
35667
|
+
Cw: "CW",
|
|
35668
|
+
Cx: "CX",
|
|
35669
|
+
Cy: "CY",
|
|
35670
|
+
Cz: "CZ",
|
|
35671
|
+
De: "DE",
|
|
35672
|
+
Dj: "DJ",
|
|
35749
35673
|
Dk: "DK",
|
|
35750
|
-
|
|
35751
|
-
|
|
35752
|
-
|
|
35753
|
-
|
|
35754
|
-
|
|
35755
|
-
Tg: "TG",
|
|
35756
|
-
Pw: "PW",
|
|
35757
|
-
Ye: "YE",
|
|
35758
|
-
Iq: "IQ",
|
|
35759
|
-
Ma: "MA",
|
|
35760
|
-
Cg: "CG",
|
|
35761
|
-
Mf: "MF",
|
|
35762
|
-
St: "ST",
|
|
35763
|
-
Bi: "BI",
|
|
35674
|
+
Dm: "DM",
|
|
35675
|
+
Do: "DO",
|
|
35676
|
+
Dz: "DZ",
|
|
35677
|
+
Ec: "EC",
|
|
35678
|
+
Ee: "EE",
|
|
35764
35679
|
Eg: "EG",
|
|
35765
|
-
Ax: "AX",
|
|
35766
|
-
Gm: "GM",
|
|
35767
|
-
Gr: "GR",
|
|
35768
|
-
Az: "AZ",
|
|
35769
35680
|
Eh: "EH",
|
|
35681
|
+
Er: "ER",
|
|
35682
|
+
Es: "ES",
|
|
35683
|
+
Et: "ET",
|
|
35684
|
+
Fi: "FI",
|
|
35685
|
+
Fj: "FJ",
|
|
35686
|
+
Fk: "FK",
|
|
35687
|
+
Fm: "FM",
|
|
35688
|
+
Fo: "FO",
|
|
35689
|
+
Fr: "FR",
|
|
35690
|
+
Ga: "GA",
|
|
35691
|
+
Gb: "GB",
|
|
35692
|
+
Gd: "GD",
|
|
35770
35693
|
Ge: "GE",
|
|
35771
|
-
Gt: "GT",
|
|
35772
|
-
Cf: "CF",
|
|
35773
|
-
Ng: "NG",
|
|
35774
|
-
Kg: "KG",
|
|
35775
|
-
Ag: "AG",
|
|
35776
|
-
Kp: "KP",
|
|
35777
|
-
Ai: "AI",
|
|
35778
|
-
Dj: "DJ",
|
|
35779
|
-
Sr: "SR",
|
|
35780
|
-
Np: "NP",
|
|
35781
|
-
Hu: "HU",
|
|
35782
|
-
Io: "IO",
|
|
35783
|
-
Mc: "MC",
|
|
35784
35694
|
Gf: "GF",
|
|
35785
|
-
Sj: "SJ",
|
|
35786
|
-
Hr: "HR",
|
|
35787
|
-
Bj: "BJ",
|
|
35788
|
-
Fm: "FM",
|
|
35789
|
-
Bl: "BL",
|
|
35790
|
-
Ls: "LS",
|
|
35791
|
-
Mg: "MG",
|
|
35792
|
-
Sc: "SC",
|
|
35793
|
-
Vg: "VG",
|
|
35794
|
-
Ci: "CI",
|
|
35795
35695
|
Gg: "GG",
|
|
35796
|
-
|
|
35797
|
-
|
|
35696
|
+
Gh: "GH",
|
|
35697
|
+
Gi: "GI",
|
|
35698
|
+
Gl: "GL",
|
|
35699
|
+
Gm: "GM",
|
|
35700
|
+
Gn: "GN",
|
|
35798
35701
|
Gp: "GP",
|
|
35799
|
-
|
|
35800
|
-
|
|
35801
|
-
Fr: "FR",
|
|
35702
|
+
Gq: "GQ",
|
|
35703
|
+
Gr: "GR",
|
|
35802
35704
|
Gs: "GS",
|
|
35803
|
-
|
|
35804
|
-
|
|
35805
|
-
|
|
35806
|
-
|
|
35807
|
-
|
|
35808
|
-
|
|
35809
|
-
|
|
35810
|
-
|
|
35811
|
-
|
|
35812
|
-
|
|
35813
|
-
|
|
35705
|
+
Gt: "GT",
|
|
35706
|
+
Gu: "GU",
|
|
35707
|
+
Gw: "GW",
|
|
35708
|
+
Gy: "GY",
|
|
35709
|
+
Hk: "HK",
|
|
35710
|
+
Hm: "HM",
|
|
35711
|
+
Hn: "HN",
|
|
35712
|
+
Hr: "HR",
|
|
35713
|
+
Ht: "HT",
|
|
35714
|
+
Hu: "HU",
|
|
35715
|
+
Id: "ID",
|
|
35716
|
+
Ie: "IE",
|
|
35717
|
+
Il: "IL",
|
|
35814
35718
|
Im: "IM",
|
|
35719
|
+
In: "IN",
|
|
35720
|
+
Io: "IO",
|
|
35721
|
+
Iq: "IQ",
|
|
35722
|
+
Ir: "IR",
|
|
35723
|
+
Is: "IS",
|
|
35724
|
+
It: "IT",
|
|
35725
|
+
Je: "JE",
|
|
35726
|
+
Jm: "JM",
|
|
35727
|
+
Jo: "JO",
|
|
35815
35728
|
Jp: "JP",
|
|
35816
|
-
|
|
35817
|
-
|
|
35818
|
-
|
|
35819
|
-
Ga: "GA",
|
|
35820
|
-
Nc: "NC",
|
|
35821
|
-
Bv: "BV",
|
|
35822
|
-
Fk: "FK",
|
|
35823
|
-
Af: "AF",
|
|
35729
|
+
Ke: "KE",
|
|
35730
|
+
Kg: "KG",
|
|
35731
|
+
Kh: "KH",
|
|
35824
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",
|
|
35743
|
+
Li: "LI",
|
|
35744
|
+
Lk: "LK",
|
|
35745
|
+
Lr: "LR",
|
|
35746
|
+
Ls: "LS",
|
|
35747
|
+
Lt: "LT",
|
|
35748
|
+
Lu: "LU",
|
|
35749
|
+
Lv: "LV",
|
|
35750
|
+
Ly: "LY",
|
|
35751
|
+
Ma: "MA",
|
|
35752
|
+
Mc: "MC",
|
|
35825
35753
|
Md: "MD",
|
|
35826
|
-
|
|
35827
|
-
|
|
35828
|
-
|
|
35829
|
-
|
|
35830
|
-
|
|
35831
|
-
|
|
35832
|
-
|
|
35833
|
-
|
|
35754
|
+
Me: "ME",
|
|
35755
|
+
Mf: "MF",
|
|
35756
|
+
Mg: "MG",
|
|
35757
|
+
Mh: "MH",
|
|
35758
|
+
Mk: "MK",
|
|
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",
|
|
35834
35776
|
Ne: "NE",
|
|
35835
|
-
|
|
35836
|
-
|
|
35837
|
-
|
|
35838
|
-
|
|
35839
|
-
|
|
35840
|
-
|
|
35841
|
-
|
|
35842
|
-
|
|
35843
|
-
|
|
35777
|
+
Nf: "NF",
|
|
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",
|
|
35788
|
+
Pe: "PE",
|
|
35789
|
+
Pf: "PF",
|
|
35844
35790
|
Pg: "PG",
|
|
35845
|
-
|
|
35846
|
-
|
|
35847
|
-
|
|
35791
|
+
Ph: "PH",
|
|
35792
|
+
Pk: "PK",
|
|
35793
|
+
Pl: "PL",
|
|
35794
|
+
Pm: "PM",
|
|
35848
35795
|
Pn: "PN",
|
|
35796
|
+
Pr: "PR",
|
|
35797
|
+
Ps: "PS",
|
|
35798
|
+
Pt: "PT",
|
|
35799
|
+
Pw: "PW",
|
|
35800
|
+
Py: "PY",
|
|
35801
|
+
Qa: "QA",
|
|
35802
|
+
Re: "RE",
|
|
35803
|
+
Ro: "RO",
|
|
35804
|
+
Rs: "RS",
|
|
35805
|
+
Ru: "RU",
|
|
35806
|
+
Rw: "RW",
|
|
35849
35807
|
Sa: "SA",
|
|
35850
|
-
|
|
35808
|
+
Sb: "SB",
|
|
35809
|
+
Sc: "SC",
|
|
35810
|
+
Sd: "SD",
|
|
35811
|
+
Se: "SE",
|
|
35812
|
+
Sg: "SG",
|
|
35813
|
+
Sh: "SH",
|
|
35814
|
+
Si: "SI",
|
|
35815
|
+
Sj: "SJ",
|
|
35816
|
+
Sk: "SK",
|
|
35817
|
+
Sl: "SL",
|
|
35818
|
+
Sm: "SM",
|
|
35819
|
+
Sn: "SN",
|
|
35820
|
+
So: "SO",
|
|
35821
|
+
Sr: "SR",
|
|
35822
|
+
Ss: "SS",
|
|
35823
|
+
St: "ST",
|
|
35824
|
+
Sv: "SV",
|
|
35825
|
+
Sx: "SX",
|
|
35826
|
+
Sy: "SY",
|
|
35827
|
+
Sz: "SZ",
|
|
35828
|
+
Tc: "TC",
|
|
35829
|
+
Td: "TD",
|
|
35830
|
+
Tf: "TF",
|
|
35831
|
+
Tg: "TG",
|
|
35832
|
+
Th: "TH",
|
|
35833
|
+
Tj: "TJ",
|
|
35834
|
+
Tk: "TK",
|
|
35835
|
+
Tl: "TL",
|
|
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",
|
|
35851
35850
|
Va: "VA",
|
|
35852
|
-
|
|
35853
|
-
|
|
35854
|
-
|
|
35855
|
-
|
|
35856
|
-
|
|
35857
|
-
|
|
35858
|
-
|
|
35859
|
-
|
|
35860
|
-
|
|
35861
|
-
|
|
35862
|
-
|
|
35863
|
-
|
|
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
|
-
Ms: "MS",
|
|
37007
|
-
Ph: "PH",
|
|
37008
|
-
Gw: "GW",
|
|
37009
|
-
Tf: "TF",
|
|
37010
|
-
Jm: "JM",
|
|
37011
|
-
Ly: "LY",
|
|
37012
|
-
Tw: "TW",
|
|
37013
|
-
Gy: "GY",
|
|
37014
|
-
Um: "UM",
|
|
37015
|
-
Er: "ER",
|
|
37016
|
-
Mv: "MV",
|
|
37017
|
-
At: "AT",
|
|
37018
|
-
In: "IN",
|
|
37019
|
-
Sd: "SD",
|
|
37020
|
-
Vc: "VC",
|
|
37021
|
-
Us: "US",
|
|
37022
|
-
Aq: "AQ",
|
|
37005
|
+
Ad: "AD",
|
|
37023
37006
|
Ae: "AE",
|
|
37024
|
-
|
|
37025
|
-
|
|
37026
|
-
|
|
37027
|
-
|
|
37028
|
-
|
|
37029
|
-
|
|
37030
|
-
|
|
37031
|
-
|
|
37032
|
-
Tn: "TN",
|
|
37033
|
-
Bm: "BM",
|
|
37034
|
-
Ht: "HT",
|
|
37035
|
-
Je: "JE",
|
|
37036
|
-
Lc: "LC",
|
|
37037
|
-
Cy: "CY",
|
|
37038
|
-
Lv: "LV",
|
|
37039
|
-
Ml: "ML",
|
|
37040
|
-
Dz: "DZ",
|
|
37041
|
-
Ps: "PS",
|
|
37042
|
-
Ve: "VE",
|
|
37043
|
-
Bh: "BH",
|
|
37044
|
-
Et: "ET",
|
|
37045
|
-
By: "BY",
|
|
37046
|
-
Mp: "MP",
|
|
37047
|
-
Bo: "BO",
|
|
37048
|
-
Sh: "SH",
|
|
37049
|
-
Kw: "KW",
|
|
37050
|
-
Sg: "SG",
|
|
37051
|
-
Mx: "MX",
|
|
37052
|
-
Pa: "PA",
|
|
37053
|
-
Zm: "ZM",
|
|
37054
|
-
To: "TO",
|
|
37055
|
-
Kn: "KN",
|
|
37056
|
-
Pt: "PT",
|
|
37057
|
-
Ws: "WS",
|
|
37058
|
-
Bs: "BS",
|
|
37059
|
-
Za: "ZA",
|
|
37060
|
-
Mo: "MO",
|
|
37061
|
-
Ie: "IE",
|
|
37062
|
-
Br: "BR",
|
|
37007
|
+
Af: "AF",
|
|
37008
|
+
Ag: "AG",
|
|
37009
|
+
Ai: "AI",
|
|
37010
|
+
Al: "AL",
|
|
37011
|
+
Am: "AM",
|
|
37012
|
+
Ao: "AO",
|
|
37013
|
+
Aq: "AQ",
|
|
37014
|
+
Ar: "AR",
|
|
37063
37015
|
As: "AS",
|
|
37064
|
-
|
|
37065
|
-
|
|
37066
|
-
|
|
37016
|
+
At: "AT",
|
|
37017
|
+
Au: "AU",
|
|
37018
|
+
Aw: "AW",
|
|
37019
|
+
Ax: "AX",
|
|
37020
|
+
Az: "AZ",
|
|
37021
|
+
Ba: "BA",
|
|
37067
37022
|
Bb: "BB",
|
|
37068
|
-
|
|
37069
|
-
Tv: "TV",
|
|
37070
|
-
Gh: "GH",
|
|
37071
|
-
Tz: "TZ",
|
|
37072
|
-
Kz: "KZ",
|
|
37073
|
-
Sx: "SX",
|
|
37074
|
-
Cx: "CX",
|
|
37075
|
-
Mm: "MM",
|
|
37076
|
-
Pk: "PK",
|
|
37077
|
-
Na: "NA",
|
|
37023
|
+
Bd: "BD",
|
|
37078
37024
|
Be: "BE",
|
|
37079
|
-
|
|
37080
|
-
Lr: "LR",
|
|
37081
|
-
Ua: "UA",
|
|
37082
|
-
Me: "ME",
|
|
37083
|
-
Mw: "MW",
|
|
37084
|
-
Vn: "VN",
|
|
37085
|
-
Lu: "LU",
|
|
37086
|
-
Mu: "MU",
|
|
37087
|
-
Is: "IS",
|
|
37088
|
-
Nu: "NU",
|
|
37089
|
-
Pm: "PM",
|
|
37090
|
-
Bw: "BW",
|
|
37091
|
-
Td: "TD",
|
|
37092
|
-
Yt: "YT",
|
|
37093
|
-
Fo: "FO",
|
|
37094
|
-
Tr: "TR",
|
|
37095
|
-
Rw: "RW",
|
|
37096
|
-
Id: "ID",
|
|
37097
|
-
No: "NO",
|
|
37098
|
-
Ck: "CK",
|
|
37099
|
-
Ss: "SS",
|
|
37100
|
-
De: "DE",
|
|
37101
|
-
Mk: "MK",
|
|
37102
|
-
La: "LA",
|
|
37103
|
-
Ee: "EE",
|
|
37104
|
-
Mn: "MN",
|
|
37105
|
-
Gi: "GI",
|
|
37106
|
-
Vu: "VU",
|
|
37107
|
-
Ro: "RO",
|
|
37108
|
-
Ao: "AO",
|
|
37109
|
-
Ar: "AR",
|
|
37110
|
-
Tk: "TK",
|
|
37111
|
-
Uy: "UY",
|
|
37112
|
-
Kh: "KH",
|
|
37025
|
+
Bf: "BF",
|
|
37113
37026
|
Bg: "BG",
|
|
37114
|
-
|
|
37115
|
-
|
|
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",
|
|
37041
|
+
Bz: "BZ",
|
|
37042
|
+
Ca: "CA",
|
|
37116
37043
|
Cc: "CC",
|
|
37117
37044
|
Cd: "CD",
|
|
37118
|
-
|
|
37045
|
+
Cf: "CF",
|
|
37046
|
+
Cg: "CG",
|
|
37047
|
+
Ch: "CH",
|
|
37048
|
+
Ci: "CI",
|
|
37049
|
+
Ck: "CK",
|
|
37119
37050
|
Cl: "CL",
|
|
37120
|
-
Gu: "GU",
|
|
37121
|
-
Il: "IL",
|
|
37122
|
-
Kr: "KR",
|
|
37123
|
-
Pe: "PE",
|
|
37124
|
-
Sn: "SN",
|
|
37125
|
-
Sm: "SM",
|
|
37126
|
-
Nl: "NL",
|
|
37127
|
-
Sk: "SK",
|
|
37128
|
-
Hm: "HM",
|
|
37129
|
-
Mq: "MQ",
|
|
37130
|
-
Mr: "MR",
|
|
37131
|
-
It: "IT",
|
|
37132
37051
|
Cm: "CM",
|
|
37133
|
-
|
|
37134
|
-
|
|
37052
|
+
Cn: "CN",
|
|
37053
|
+
Co: "CO",
|
|
37054
|
+
Cr: "CR",
|
|
37055
|
+
Cv: "CV",
|
|
37056
|
+
Cw: "CW",
|
|
37057
|
+
Cx: "CX",
|
|
37058
|
+
Cy: "CY",
|
|
37059
|
+
Cz: "CZ",
|
|
37060
|
+
De: "DE",
|
|
37061
|
+
Dj: "DJ",
|
|
37135
37062
|
Dk: "DK",
|
|
37136
|
-
|
|
37137
|
-
|
|
37138
|
-
|
|
37139
|
-
|
|
37140
|
-
|
|
37141
|
-
Tg: "TG",
|
|
37142
|
-
Pw: "PW",
|
|
37143
|
-
Ye: "YE",
|
|
37144
|
-
Iq: "IQ",
|
|
37145
|
-
Ma: "MA",
|
|
37146
|
-
Cg: "CG",
|
|
37147
|
-
Mf: "MF",
|
|
37148
|
-
St: "ST",
|
|
37149
|
-
Bi: "BI",
|
|
37063
|
+
Dm: "DM",
|
|
37064
|
+
Do: "DO",
|
|
37065
|
+
Dz: "DZ",
|
|
37066
|
+
Ec: "EC",
|
|
37067
|
+
Ee: "EE",
|
|
37150
37068
|
Eg: "EG",
|
|
37151
|
-
Ax: "AX",
|
|
37152
|
-
Gm: "GM",
|
|
37153
|
-
Gr: "GR",
|
|
37154
|
-
Az: "AZ",
|
|
37155
37069
|
Eh: "EH",
|
|
37070
|
+
Er: "ER",
|
|
37071
|
+
Es: "ES",
|
|
37072
|
+
Et: "ET",
|
|
37073
|
+
Fi: "FI",
|
|
37074
|
+
Fj: "FJ",
|
|
37075
|
+
Fk: "FK",
|
|
37076
|
+
Fm: "FM",
|
|
37077
|
+
Fo: "FO",
|
|
37078
|
+
Fr: "FR",
|
|
37079
|
+
Ga: "GA",
|
|
37080
|
+
Gb: "GB",
|
|
37081
|
+
Gd: "GD",
|
|
37156
37082
|
Ge: "GE",
|
|
37157
|
-
Gt: "GT",
|
|
37158
|
-
Cf: "CF",
|
|
37159
|
-
Ng: "NG",
|
|
37160
|
-
Kg: "KG",
|
|
37161
|
-
Ag: "AG",
|
|
37162
|
-
Ai: "AI",
|
|
37163
|
-
Dj: "DJ",
|
|
37164
|
-
Sr: "SR",
|
|
37165
|
-
Np: "NP",
|
|
37166
|
-
Hu: "HU",
|
|
37167
|
-
Io: "IO",
|
|
37168
|
-
Mc: "MC",
|
|
37169
37083
|
Gf: "GF",
|
|
37170
|
-
Sj: "SJ",
|
|
37171
|
-
Hr: "HR",
|
|
37172
|
-
Bj: "BJ",
|
|
37173
|
-
Fm: "FM",
|
|
37174
|
-
Bl: "BL",
|
|
37175
|
-
Ls: "LS",
|
|
37176
|
-
Mg: "MG",
|
|
37177
|
-
Sc: "SC",
|
|
37178
|
-
Vg: "VG",
|
|
37179
|
-
Ci: "CI",
|
|
37180
37084
|
Gg: "GG",
|
|
37181
|
-
|
|
37182
|
-
|
|
37085
|
+
Gh: "GH",
|
|
37086
|
+
Gi: "GI",
|
|
37087
|
+
Gl: "GL",
|
|
37088
|
+
Gm: "GM",
|
|
37089
|
+
Gn: "GN",
|
|
37183
37090
|
Gp: "GP",
|
|
37184
|
-
|
|
37185
|
-
|
|
37186
|
-
Fr: "FR",
|
|
37091
|
+
Gq: "GQ",
|
|
37092
|
+
Gr: "GR",
|
|
37187
37093
|
Gs: "GS",
|
|
37188
|
-
|
|
37189
|
-
|
|
37190
|
-
|
|
37191
|
-
|
|
37192
|
-
|
|
37193
|
-
|
|
37194
|
-
|
|
37195
|
-
|
|
37196
|
-
|
|
37197
|
-
|
|
37198
|
-
|
|
37094
|
+
Gt: "GT",
|
|
37095
|
+
Gu: "GU",
|
|
37096
|
+
Gw: "GW",
|
|
37097
|
+
Gy: "GY",
|
|
37098
|
+
Hk: "HK",
|
|
37099
|
+
Hm: "HM",
|
|
37100
|
+
Hn: "HN",
|
|
37101
|
+
Hr: "HR",
|
|
37102
|
+
Ht: "HT",
|
|
37103
|
+
Hu: "HU",
|
|
37104
|
+
Id: "ID",
|
|
37105
|
+
Ie: "IE",
|
|
37106
|
+
Il: "IL",
|
|
37199
37107
|
Im: "IM",
|
|
37108
|
+
In: "IN",
|
|
37109
|
+
Io: "IO",
|
|
37110
|
+
Iq: "IQ",
|
|
37111
|
+
Is: "IS",
|
|
37112
|
+
It: "IT",
|
|
37113
|
+
Je: "JE",
|
|
37114
|
+
Jm: "JM",
|
|
37115
|
+
Jo: "JO",
|
|
37200
37116
|
Jp: "JP",
|
|
37201
|
-
|
|
37202
|
-
|
|
37203
|
-
|
|
37204
|
-
Ga: "GA",
|
|
37205
|
-
Nc: "NC",
|
|
37206
|
-
Bv: "BV",
|
|
37207
|
-
Fk: "FK",
|
|
37208
|
-
Af: "AF",
|
|
37117
|
+
Ke: "KE",
|
|
37118
|
+
Kg: "KG",
|
|
37119
|
+
Kh: "KH",
|
|
37209
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",
|
|
37130
|
+
Li: "LI",
|
|
37131
|
+
Lk: "LK",
|
|
37132
|
+
Lr: "LR",
|
|
37133
|
+
Ls: "LS",
|
|
37134
|
+
Lt: "LT",
|
|
37135
|
+
Lu: "LU",
|
|
37136
|
+
Lv: "LV",
|
|
37137
|
+
Ly: "LY",
|
|
37138
|
+
Ma: "MA",
|
|
37139
|
+
Mc: "MC",
|
|
37210
37140
|
Md: "MD",
|
|
37211
|
-
|
|
37212
|
-
|
|
37213
|
-
|
|
37214
|
-
|
|
37215
|
-
|
|
37216
|
-
|
|
37217
|
-
|
|
37218
|
-
|
|
37141
|
+
Me: "ME",
|
|
37142
|
+
Mf: "MF",
|
|
37143
|
+
Mg: "MG",
|
|
37144
|
+
Mh: "MH",
|
|
37145
|
+
Mk: "MK",
|
|
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",
|
|
37219
37163
|
Ne: "NE",
|
|
37220
|
-
|
|
37221
|
-
|
|
37222
|
-
|
|
37223
|
-
|
|
37224
|
-
|
|
37225
|
-
|
|
37226
|
-
|
|
37227
|
-
|
|
37228
|
-
|
|
37164
|
+
Nf: "NF",
|
|
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",
|
|
37175
|
+
Pe: "PE",
|
|
37176
|
+
Pf: "PF",
|
|
37229
37177
|
Pg: "PG",
|
|
37230
|
-
|
|
37231
|
-
|
|
37232
|
-
|
|
37178
|
+
Ph: "PH",
|
|
37179
|
+
Pk: "PK",
|
|
37180
|
+
Pl: "PL",
|
|
37181
|
+
Pm: "PM",
|
|
37233
37182
|
Pn: "PN",
|
|
37183
|
+
Pr: "PR",
|
|
37184
|
+
Ps: "PS",
|
|
37185
|
+
Pt: "PT",
|
|
37186
|
+
Pw: "PW",
|
|
37187
|
+
Py: "PY",
|
|
37188
|
+
Qa: "QA",
|
|
37189
|
+
Re: "RE",
|
|
37190
|
+
Ro: "RO",
|
|
37191
|
+
Rs: "RS",
|
|
37192
|
+
Rw: "RW",
|
|
37234
37193
|
Sa: "SA",
|
|
37235
|
-
|
|
37194
|
+
Sb: "SB",
|
|
37195
|
+
Sc: "SC",
|
|
37196
|
+
Sd: "SD",
|
|
37197
|
+
Se: "SE",
|
|
37198
|
+
Sg: "SG",
|
|
37199
|
+
Sh: "SH",
|
|
37200
|
+
Si: "SI",
|
|
37201
|
+
Sj: "SJ",
|
|
37202
|
+
Sk: "SK",
|
|
37203
|
+
Sl: "SL",
|
|
37204
|
+
Sm: "SM",
|
|
37205
|
+
Sn: "SN",
|
|
37206
|
+
So: "SO",
|
|
37207
|
+
Sr: "SR",
|
|
37208
|
+
Ss: "SS",
|
|
37209
|
+
St: "ST",
|
|
37210
|
+
Sv: "SV",
|
|
37211
|
+
Sx: "SX",
|
|
37212
|
+
Sz: "SZ",
|
|
37213
|
+
Tc: "TC",
|
|
37214
|
+
Td: "TD",
|
|
37215
|
+
Tf: "TF",
|
|
37216
|
+
Tg: "TG",
|
|
37217
|
+
Th: "TH",
|
|
37218
|
+
Tj: "TJ",
|
|
37219
|
+
Tk: "TK",
|
|
37220
|
+
Tl: "TL",
|
|
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",
|
|
37236
37235
|
Va: "VA",
|
|
37237
|
-
|
|
37238
|
-
|
|
37239
|
-
|
|
37240
|
-
|
|
37241
|
-
|
|
37242
|
-
|
|
37243
|
-
|
|
37244
|
-
|
|
37245
|
-
|
|
37246
|
-
|
|
37247
|
-
|
|
37248
|
-
|
|
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;
|
|
@@ -37996,6 +37996,153 @@ Get a customer by ID.
|
|
|
37996
37996
|
};
|
|
37997
37997
|
});
|
|
37998
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 });
|
|
38095
|
+
if (!result.ok) {
|
|
38096
|
+
return [result, { status: "complete", request: req, response }];
|
|
38097
|
+
}
|
|
38098
|
+
return [result, { status: "complete", request: req, response }];
|
|
38099
|
+
}
|
|
38100
|
+
var init_customersGetBalance = __esm(() => {
|
|
38101
|
+
init_encodings();
|
|
38102
|
+
init_matchers();
|
|
38103
|
+
init_primitives();
|
|
38104
|
+
init_schemas();
|
|
38105
|
+
init_security();
|
|
38106
|
+
init_url();
|
|
38107
|
+
init_customerbalance();
|
|
38108
|
+
init_httpvalidationerror();
|
|
38109
|
+
init_resourcenotfound();
|
|
38110
|
+
init_customersgetbalance();
|
|
38111
|
+
init_async();
|
|
38112
|
+
});
|
|
38113
|
+
|
|
38114
|
+
// src/mcp-server/tools/customersGetBalance.ts
|
|
38115
|
+
var args8, tool$customersGetBalance;
|
|
38116
|
+
var init_customersGetBalance2 = __esm(() => {
|
|
38117
|
+
init_customersGetBalance();
|
|
38118
|
+
init_customersgetbalance();
|
|
38119
|
+
init_tools();
|
|
38120
|
+
args8 = {
|
|
38121
|
+
request: CustomersGetBalanceRequest$inboundSchema
|
|
38122
|
+
};
|
|
38123
|
+
tool$customersGetBalance = {
|
|
38124
|
+
name: "customers-get-balance",
|
|
38125
|
+
description: `Get Customer Balance
|
|
38126
|
+
|
|
38127
|
+
Get customer balance information.
|
|
38128
|
+
|
|
38129
|
+
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
38130
|
+
scopes: ["read", "customers"],
|
|
38131
|
+
args: args8,
|
|
38132
|
+
tool: async (client, args9, ctx) => {
|
|
38133
|
+
const [result, apiCall] = await customersGetBalance(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
38134
|
+
if (!result.ok) {
|
|
38135
|
+
return {
|
|
38136
|
+
content: [{ type: "text", text: result.error.message }],
|
|
38137
|
+
isError: true
|
|
38138
|
+
};
|
|
38139
|
+
}
|
|
38140
|
+
const value = result.value;
|
|
38141
|
+
return formatResult(value, apiCall);
|
|
38142
|
+
}
|
|
38143
|
+
};
|
|
38144
|
+
});
|
|
38145
|
+
|
|
37999
38146
|
// src/models/operations/customersgetexternal.ts
|
|
38000
38147
|
var CustomersGetExternalRequest$inboundSchema, CustomersGetExternalRequest$outboundSchema, CustomersGetExternalRequest$;
|
|
38001
38148
|
var init_customersgetexternal = __esm(() => {
|
|
@@ -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 }],
|
|
@@ -38744,9 +38891,9 @@ var init_customersgetstate = __esm(() => {
|
|
|
38744
38891
|
|
|
38745
38892
|
// src/funcs/customersGetState.ts
|
|
38746
38893
|
function customersGetState(client, request, options) {
|
|
38747
|
-
return new APIPromise($
|
|
38894
|
+
return new APIPromise($do10(client, request, options));
|
|
38748
38895
|
}
|
|
38749
|
-
async function $
|
|
38896
|
+
async function $do10(client, request, options) {
|
|
38750
38897
|
const parsed = safeParse(request, (value) => CustomersGetStateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
38751
38898
|
if (!parsed.ok) {
|
|
38752
38899
|
return [parsed, { status: "invalid" }];
|
|
@@ -38824,12 +38971,12 @@ var init_customersGetState = __esm(() => {
|
|
|
38824
38971
|
});
|
|
38825
38972
|
|
|
38826
38973
|
// src/mcp-server/tools/customersGetState.ts
|
|
38827
|
-
var
|
|
38974
|
+
var args10, tool$customersGetState;
|
|
38828
38975
|
var init_customersGetState2 = __esm(() => {
|
|
38829
38976
|
init_customersGetState();
|
|
38830
38977
|
init_customersgetstate();
|
|
38831
38978
|
init_tools();
|
|
38832
|
-
|
|
38979
|
+
args10 = {
|
|
38833
38980
|
request: CustomersGetStateRequest$inboundSchema
|
|
38834
38981
|
};
|
|
38835
38982
|
tool$customersGetState = {
|
|
@@ -38846,9 +38993,9 @@ of a customer's status.
|
|
|
38846
38993
|
|
|
38847
38994
|
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
38848
38995
|
scopes: ["read", "customers"],
|
|
38849
|
-
args:
|
|
38850
|
-
tool: async (client,
|
|
38851
|
-
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();
|
|
38852
38999
|
if (!result.ok) {
|
|
38853
39000
|
return {
|
|
38854
39001
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -38888,9 +39035,9 @@ var init_customersgetstateexternal = __esm(() => {
|
|
|
38888
39035
|
|
|
38889
39036
|
// src/funcs/customersGetStateExternal.ts
|
|
38890
39037
|
function customersGetStateExternal(client, request, options) {
|
|
38891
|
-
return new APIPromise($
|
|
39038
|
+
return new APIPromise($do11(client, request, options));
|
|
38892
39039
|
}
|
|
38893
|
-
async function $
|
|
39040
|
+
async function $do11(client, request, options) {
|
|
38894
39041
|
const parsed = safeParse(request, (value) => CustomersGetStateExternalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
38895
39042
|
if (!parsed.ok) {
|
|
38896
39043
|
return [parsed, { status: "invalid" }];
|
|
@@ -38968,12 +39115,12 @@ var init_customersGetStateExternal = __esm(() => {
|
|
|
38968
39115
|
});
|
|
38969
39116
|
|
|
38970
39117
|
// src/mcp-server/tools/customersGetStateExternal.ts
|
|
38971
|
-
var
|
|
39118
|
+
var args11, tool$customersGetStateExternal;
|
|
38972
39119
|
var init_customersGetStateExternal2 = __esm(() => {
|
|
38973
39120
|
init_customersGetStateExternal();
|
|
38974
39121
|
init_customersgetstateexternal();
|
|
38975
39122
|
init_tools();
|
|
38976
|
-
|
|
39123
|
+
args11 = {
|
|
38977
39124
|
request: CustomersGetStateExternalRequest$inboundSchema
|
|
38978
39125
|
};
|
|
38979
39126
|
tool$customersGetStateExternal = {
|
|
@@ -38990,9 +39137,9 @@ of a customer's status.
|
|
|
38990
39137
|
|
|
38991
39138
|
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
38992
39139
|
scopes: ["read", "customers"],
|
|
38993
|
-
args:
|
|
38994
|
-
tool: async (client,
|
|
38995
|
-
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();
|
|
38996
39143
|
if (!result.ok) {
|
|
38997
39144
|
return {
|
|
38998
39145
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39137,9 +39284,9 @@ var init_customerslist = __esm(() => {
|
|
|
39137
39284
|
|
|
39138
39285
|
// src/funcs/customersList.ts
|
|
39139
39286
|
function customersList(client, request, options) {
|
|
39140
|
-
return new APIPromise($
|
|
39287
|
+
return new APIPromise($do12(client, request, options));
|
|
39141
39288
|
}
|
|
39142
|
-
async function $
|
|
39289
|
+
async function $do12(client, request, options) {
|
|
39143
39290
|
const parsed = safeParse(request, (value) => CustomersListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39144
39291
|
if (!parsed.ok) {
|
|
39145
39292
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -39254,12 +39401,12 @@ var init_customersList = __esm(() => {
|
|
|
39254
39401
|
});
|
|
39255
39402
|
|
|
39256
39403
|
// src/mcp-server/tools/customersList.ts
|
|
39257
|
-
var
|
|
39404
|
+
var args12, tool$customersList;
|
|
39258
39405
|
var init_customersList2 = __esm(() => {
|
|
39259
39406
|
init_customersList();
|
|
39260
39407
|
init_customerslist();
|
|
39261
39408
|
init_tools();
|
|
39262
|
-
|
|
39409
|
+
args12 = {
|
|
39263
39410
|
request: CustomersListRequest$inboundSchema
|
|
39264
39411
|
};
|
|
39265
39412
|
tool$customersList = {
|
|
@@ -39270,9 +39417,9 @@ List customers.
|
|
|
39270
39417
|
|
|
39271
39418
|
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
39272
39419
|
scopes: ["read", "customers"],
|
|
39273
|
-
args:
|
|
39274
|
-
tool: async (client,
|
|
39275
|
-
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();
|
|
39276
39423
|
if (!result.ok) {
|
|
39277
39424
|
return {
|
|
39278
39425
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39368,9 +39515,9 @@ var init_customersupdate = __esm(() => {
|
|
|
39368
39515
|
|
|
39369
39516
|
// src/funcs/customersUpdate.ts
|
|
39370
39517
|
function customersUpdate(client, request, options) {
|
|
39371
|
-
return new APIPromise($
|
|
39518
|
+
return new APIPromise($do13(client, request, options));
|
|
39372
39519
|
}
|
|
39373
|
-
async function $
|
|
39520
|
+
async function $do13(client, request, options) {
|
|
39374
39521
|
const parsed = safeParse(request, (value) => CustomersUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39375
39522
|
if (!parsed.ok) {
|
|
39376
39523
|
return [parsed, { status: "invalid" }];
|
|
@@ -39449,12 +39596,12 @@ var init_customersUpdate = __esm(() => {
|
|
|
39449
39596
|
});
|
|
39450
39597
|
|
|
39451
39598
|
// src/mcp-server/tools/customersUpdate.ts
|
|
39452
|
-
var
|
|
39599
|
+
var args13, tool$customersUpdate;
|
|
39453
39600
|
var init_customersUpdate2 = __esm(() => {
|
|
39454
39601
|
init_customersUpdate();
|
|
39455
39602
|
init_customersupdate();
|
|
39456
39603
|
init_tools();
|
|
39457
|
-
|
|
39604
|
+
args13 = {
|
|
39458
39605
|
request: CustomersUpdateRequest$inboundSchema
|
|
39459
39606
|
};
|
|
39460
39607
|
tool$customersUpdate = {
|
|
@@ -39465,9 +39612,9 @@ Update a customer.
|
|
|
39465
39612
|
|
|
39466
39613
|
**Scopes**: \`customers:write\``,
|
|
39467
39614
|
scopes: ["write", "customers"],
|
|
39468
|
-
args:
|
|
39469
|
-
tool: async (client,
|
|
39470
|
-
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();
|
|
39471
39618
|
if (!result.ok) {
|
|
39472
39619
|
return {
|
|
39473
39620
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39561,9 +39708,9 @@ var init_customersupdateexternal = __esm(() => {
|
|
|
39561
39708
|
|
|
39562
39709
|
// src/funcs/customersUpdateExternal.ts
|
|
39563
39710
|
function customersUpdateExternal(client, request, options) {
|
|
39564
|
-
return new APIPromise($
|
|
39711
|
+
return new APIPromise($do14(client, request, options));
|
|
39565
39712
|
}
|
|
39566
|
-
async function $
|
|
39713
|
+
async function $do14(client, request, options) {
|
|
39567
39714
|
const parsed = safeParse(request, (value) => CustomersUpdateExternalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39568
39715
|
if (!parsed.ok) {
|
|
39569
39716
|
return [parsed, { status: "invalid" }];
|
|
@@ -39644,12 +39791,12 @@ var init_customersUpdateExternal = __esm(() => {
|
|
|
39644
39791
|
});
|
|
39645
39792
|
|
|
39646
39793
|
// src/mcp-server/tools/customersUpdateExternal.ts
|
|
39647
|
-
var
|
|
39794
|
+
var args14, tool$customersUpdateExternal;
|
|
39648
39795
|
var init_customersUpdateExternal2 = __esm(() => {
|
|
39649
39796
|
init_customersUpdateExternal();
|
|
39650
39797
|
init_customersupdateexternal();
|
|
39651
39798
|
init_tools();
|
|
39652
|
-
|
|
39799
|
+
args14 = {
|
|
39653
39800
|
request: CustomersUpdateExternalRequest$inboundSchema
|
|
39654
39801
|
};
|
|
39655
39802
|
tool$customersUpdateExternal = {
|
|
@@ -39660,9 +39807,9 @@ Update a customer by external ID.
|
|
|
39660
39807
|
|
|
39661
39808
|
**Scopes**: \`customers:write\``,
|
|
39662
39809
|
scopes: ["write", "customers"],
|
|
39663
|
-
args:
|
|
39664
|
-
tool: async (client,
|
|
39665
|
-
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();
|
|
39666
39813
|
if (!result.ok) {
|
|
39667
39814
|
return {
|
|
39668
39815
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -40711,9 +40858,9 @@ var init_metricsget = __esm(() => {
|
|
|
40711
40858
|
|
|
40712
40859
|
// src/funcs/metricsGet.ts
|
|
40713
40860
|
function metricsGet(client, request, options) {
|
|
40714
|
-
return new APIPromise($
|
|
40861
|
+
return new APIPromise($do15(client, request, options));
|
|
40715
40862
|
}
|
|
40716
|
-
async function $
|
|
40863
|
+
async function $do15(client, request, options) {
|
|
40717
40864
|
const parsed = safeParse(request, (value) => MetricsGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40718
40865
|
if (!parsed.ok) {
|
|
40719
40866
|
return [parsed, { status: "invalid" }];
|
|
@@ -40795,12 +40942,12 @@ var init_metricsGet = __esm(() => {
|
|
|
40795
40942
|
});
|
|
40796
40943
|
|
|
40797
40944
|
// src/mcp-server/tools/metricsGet.ts
|
|
40798
|
-
var
|
|
40945
|
+
var args15, tool$metricsGet;
|
|
40799
40946
|
var init_metricsGet2 = __esm(() => {
|
|
40800
40947
|
init_metricsGet();
|
|
40801
40948
|
init_metricsget();
|
|
40802
40949
|
init_tools();
|
|
40803
|
-
|
|
40950
|
+
args15 = {
|
|
40804
40951
|
request: MetricsGetRequest$inboundSchema
|
|
40805
40952
|
};
|
|
40806
40953
|
tool$metricsGet = {
|
|
@@ -40813,9 +40960,9 @@ Currency values are output in cents.
|
|
|
40813
40960
|
|
|
40814
40961
|
**Scopes**: \`metrics:read\``,
|
|
40815
40962
|
scopes: ["read", "metrics"],
|
|
40816
|
-
args:
|
|
40817
|
-
tool: async (client,
|
|
40818
|
-
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();
|
|
40819
40966
|
if (!result.ok) {
|
|
40820
40967
|
return {
|
|
40821
40968
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -40909,9 +41056,9 @@ var init_metricslimits = __esm(() => {
|
|
|
40909
41056
|
|
|
40910
41057
|
// src/funcs/metricsLimits.ts
|
|
40911
41058
|
function metricsLimits(client, options) {
|
|
40912
|
-
return new APIPromise($
|
|
41059
|
+
return new APIPromise($do16(client, options));
|
|
40913
41060
|
}
|
|
40914
|
-
async function $
|
|
41061
|
+
async function $do16(client, options) {
|
|
40915
41062
|
const path = pathToFunc("/v1/metrics/limits")();
|
|
40916
41063
|
const headers = new Headers(compactMap({
|
|
40917
41064
|
Accept: "application/json"
|
|
@@ -41155,9 +41302,9 @@ var init_ordersgenerateinvoice2 = __esm(() => {
|
|
|
41155
41302
|
|
|
41156
41303
|
// src/funcs/ordersGenerateInvoice.ts
|
|
41157
41304
|
function ordersGenerateInvoice(client, request, options) {
|
|
41158
|
-
return new APIPromise($
|
|
41305
|
+
return new APIPromise($do17(client, request, options));
|
|
41159
41306
|
}
|
|
41160
|
-
async function $
|
|
41307
|
+
async function $do17(client, request, options) {
|
|
41161
41308
|
const parsed = safeParse(request, (value) => OrdersGenerateInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41162
41309
|
if (!parsed.ok) {
|
|
41163
41310
|
return [parsed, { status: "invalid" }];
|
|
@@ -41235,12 +41382,12 @@ var init_ordersGenerateInvoice = __esm(() => {
|
|
|
41235
41382
|
});
|
|
41236
41383
|
|
|
41237
41384
|
// src/mcp-server/tools/ordersGenerateInvoice.ts
|
|
41238
|
-
var
|
|
41385
|
+
var args16, tool$ordersGenerateInvoice;
|
|
41239
41386
|
var init_ordersGenerateInvoice2 = __esm(() => {
|
|
41240
41387
|
init_ordersGenerateInvoice();
|
|
41241
41388
|
init_ordersgenerateinvoice2();
|
|
41242
41389
|
init_tools();
|
|
41243
|
-
|
|
41390
|
+
args16 = {
|
|
41244
41391
|
request: OrdersGenerateInvoiceRequest$inboundSchema
|
|
41245
41392
|
};
|
|
41246
41393
|
tool$ordersGenerateInvoice = {
|
|
@@ -41251,9 +41398,9 @@ Trigger generation of an order's invoice.
|
|
|
41251
41398
|
|
|
41252
41399
|
**Scopes**: \`orders:read\``,
|
|
41253
41400
|
scopes: ["write", "orders"],
|
|
41254
|
-
args:
|
|
41255
|
-
tool: async (client,
|
|
41256
|
-
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();
|
|
41257
41404
|
if (!result.ok) {
|
|
41258
41405
|
return {
|
|
41259
41406
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42073,6 +42220,7 @@ var init_order = __esm(() => {
|
|
|
42073
42220
|
billing_reason: OrderBillingReason$inboundSchema,
|
|
42074
42221
|
billing_name: nullableType(stringType()),
|
|
42075
42222
|
billing_address: nullableType(Address$inboundSchema),
|
|
42223
|
+
invoice_number: stringType(),
|
|
42076
42224
|
is_invoice_generated: booleanType(),
|
|
42077
42225
|
customer_id: stringType(),
|
|
42078
42226
|
product_id: stringType(),
|
|
@@ -42112,6 +42260,7 @@ var init_order = __esm(() => {
|
|
|
42112
42260
|
billing_reason: "billingReason",
|
|
42113
42261
|
billing_name: "billingName",
|
|
42114
42262
|
billing_address: "billingAddress",
|
|
42263
|
+
invoice_number: "invoiceNumber",
|
|
42115
42264
|
is_invoice_generated: "isInvoiceGenerated",
|
|
42116
42265
|
customer_id: "customerId",
|
|
42117
42266
|
product_id: "productId",
|
|
@@ -42140,6 +42289,7 @@ var init_order = __esm(() => {
|
|
|
42140
42289
|
billingReason: OrderBillingReason$outboundSchema,
|
|
42141
42290
|
billingName: nullableType(stringType()),
|
|
42142
42291
|
billingAddress: nullableType(Address$outboundSchema),
|
|
42292
|
+
invoiceNumber: stringType(),
|
|
42143
42293
|
isInvoiceGenerated: booleanType(),
|
|
42144
42294
|
customerId: stringType(),
|
|
42145
42295
|
productId: stringType(),
|
|
@@ -42179,6 +42329,7 @@ var init_order = __esm(() => {
|
|
|
42179
42329
|
billingReason: "billing_reason",
|
|
42180
42330
|
billingName: "billing_name",
|
|
42181
42331
|
billingAddress: "billing_address",
|
|
42332
|
+
invoiceNumber: "invoice_number",
|
|
42182
42333
|
isInvoiceGenerated: "is_invoice_generated",
|
|
42183
42334
|
customerId: "customer_id",
|
|
42184
42335
|
productId: "product_id",
|
|
@@ -42213,9 +42364,9 @@ var init_ordersget = __esm(() => {
|
|
|
42213
42364
|
|
|
42214
42365
|
// src/funcs/ordersGet.ts
|
|
42215
42366
|
function ordersGet(client, request, options) {
|
|
42216
|
-
return new APIPromise($
|
|
42367
|
+
return new APIPromise($do18(client, request, options));
|
|
42217
42368
|
}
|
|
42218
|
-
async function $
|
|
42369
|
+
async function $do18(client, request, options) {
|
|
42219
42370
|
const parsed = safeParse(request, (value) => OrdersGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42220
42371
|
if (!parsed.ok) {
|
|
42221
42372
|
return [parsed, { status: "invalid" }];
|
|
@@ -42293,12 +42444,12 @@ var init_ordersGet = __esm(() => {
|
|
|
42293
42444
|
});
|
|
42294
42445
|
|
|
42295
42446
|
// src/mcp-server/tools/ordersGet.ts
|
|
42296
|
-
var
|
|
42447
|
+
var args17, tool$ordersGet;
|
|
42297
42448
|
var init_ordersGet2 = __esm(() => {
|
|
42298
42449
|
init_ordersGet();
|
|
42299
42450
|
init_ordersget();
|
|
42300
42451
|
init_tools();
|
|
42301
|
-
|
|
42452
|
+
args17 = {
|
|
42302
42453
|
request: OrdersGetRequest$inboundSchema
|
|
42303
42454
|
};
|
|
42304
42455
|
tool$ordersGet = {
|
|
@@ -42309,9 +42460,9 @@ Get an order by ID.
|
|
|
42309
42460
|
|
|
42310
42461
|
**Scopes**: \`orders:read\``,
|
|
42311
42462
|
scopes: ["read", "orders"],
|
|
42312
|
-
args:
|
|
42313
|
-
tool: async (client,
|
|
42314
|
-
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();
|
|
42315
42466
|
if (!result.ok) {
|
|
42316
42467
|
return {
|
|
42317
42468
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42358,9 +42509,9 @@ var init_ordersinvoice = __esm(() => {
|
|
|
42358
42509
|
|
|
42359
42510
|
// src/funcs/ordersInvoice.ts
|
|
42360
42511
|
function ordersInvoice(client, request, options) {
|
|
42361
|
-
return new APIPromise($
|
|
42512
|
+
return new APIPromise($do19(client, request, options));
|
|
42362
42513
|
}
|
|
42363
|
-
async function $
|
|
42514
|
+
async function $do19(client, request, options) {
|
|
42364
42515
|
const parsed = safeParse(request, (value) => OrdersInvoiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42365
42516
|
if (!parsed.ok) {
|
|
42366
42517
|
return [parsed, { status: "invalid" }];
|
|
@@ -42438,12 +42589,12 @@ var init_ordersInvoice = __esm(() => {
|
|
|
42438
42589
|
});
|
|
42439
42590
|
|
|
42440
42591
|
// src/mcp-server/tools/ordersInvoice.ts
|
|
42441
|
-
var
|
|
42592
|
+
var args18, tool$ordersInvoice;
|
|
42442
42593
|
var init_ordersInvoice2 = __esm(() => {
|
|
42443
42594
|
init_ordersInvoice();
|
|
42444
42595
|
init_ordersinvoice();
|
|
42445
42596
|
init_tools();
|
|
42446
|
-
|
|
42597
|
+
args18 = {
|
|
42447
42598
|
request: OrdersInvoiceRequest$inboundSchema
|
|
42448
42599
|
};
|
|
42449
42600
|
tool$ordersInvoice = {
|
|
@@ -42454,9 +42605,9 @@ Get an order's invoice data.
|
|
|
42454
42605
|
|
|
42455
42606
|
**Scopes**: \`orders:read\``,
|
|
42456
42607
|
scopes: ["read", "orders"],
|
|
42457
|
-
args:
|
|
42458
|
-
tool: async (client,
|
|
42459
|
-
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();
|
|
42460
42611
|
if (!result.ok) {
|
|
42461
42612
|
return {
|
|
42462
42613
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42646,9 +42797,9 @@ var init_orderslist = __esm(() => {
|
|
|
42646
42797
|
|
|
42647
42798
|
// src/funcs/ordersList.ts
|
|
42648
42799
|
function ordersList(client, request, options) {
|
|
42649
|
-
return new APIPromise($
|
|
42800
|
+
return new APIPromise($do20(client, request, options));
|
|
42650
42801
|
}
|
|
42651
|
-
async function $
|
|
42802
|
+
async function $do20(client, request, options) {
|
|
42652
42803
|
const parsed = safeParse(request, (value) => OrdersListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42653
42804
|
if (!parsed.ok) {
|
|
42654
42805
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -42766,12 +42917,12 @@ var init_ordersList = __esm(() => {
|
|
|
42766
42917
|
});
|
|
42767
42918
|
|
|
42768
42919
|
// src/mcp-server/tools/ordersList.ts
|
|
42769
|
-
var
|
|
42920
|
+
var args19, tool$ordersList;
|
|
42770
42921
|
var init_ordersList2 = __esm(() => {
|
|
42771
42922
|
init_ordersList();
|
|
42772
42923
|
init_orderslist();
|
|
42773
42924
|
init_tools();
|
|
42774
|
-
|
|
42925
|
+
args19 = {
|
|
42775
42926
|
request: OrdersListRequest$inboundSchema
|
|
42776
42927
|
};
|
|
42777
42928
|
tool$ordersList = {
|
|
@@ -42782,9 +42933,9 @@ List orders.
|
|
|
42782
42933
|
|
|
42783
42934
|
**Scopes**: \`orders:read\``,
|
|
42784
42935
|
scopes: ["read", "orders"],
|
|
42785
|
-
args:
|
|
42786
|
-
tool: async (client,
|
|
42787
|
-
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();
|
|
42788
42939
|
if (!result.ok) {
|
|
42789
42940
|
return {
|
|
42790
42941
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42857,9 +43008,9 @@ var init_ordersupdate = __esm(() => {
|
|
|
42857
43008
|
|
|
42858
43009
|
// src/funcs/ordersUpdate.ts
|
|
42859
43010
|
function ordersUpdate(client, request, options) {
|
|
42860
|
-
return new APIPromise($
|
|
43011
|
+
return new APIPromise($do21(client, request, options));
|
|
42861
43012
|
}
|
|
42862
|
-
async function $
|
|
43013
|
+
async function $do21(client, request, options) {
|
|
42863
43014
|
const parsed = safeParse(request, (value) => OrdersUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42864
43015
|
if (!parsed.ok) {
|
|
42865
43016
|
return [parsed, { status: "invalid" }];
|
|
@@ -42938,12 +43089,12 @@ var init_ordersUpdate = __esm(() => {
|
|
|
42938
43089
|
});
|
|
42939
43090
|
|
|
42940
43091
|
// src/mcp-server/tools/ordersUpdate.ts
|
|
42941
|
-
var
|
|
43092
|
+
var args20, tool$ordersUpdate;
|
|
42942
43093
|
var init_ordersUpdate2 = __esm(() => {
|
|
42943
43094
|
init_ordersUpdate();
|
|
42944
43095
|
init_ordersupdate();
|
|
42945
43096
|
init_tools();
|
|
42946
|
-
|
|
43097
|
+
args20 = {
|
|
42947
43098
|
request: OrdersUpdateRequest$inboundSchema
|
|
42948
43099
|
};
|
|
42949
43100
|
tool$ordersUpdate = {
|
|
@@ -42954,9 +43105,9 @@ Update an order.
|
|
|
42954
43105
|
|
|
42955
43106
|
**Scopes**: \`orders:write\``,
|
|
42956
43107
|
scopes: ["write", "orders"],
|
|
42957
|
-
args:
|
|
42958
|
-
tool: async (client,
|
|
42959
|
-
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();
|
|
42960
43111
|
if (!result.ok) {
|
|
42961
43112
|
return {
|
|
42962
43113
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43190,9 +43341,9 @@ var init_paymentsget = __esm(() => {
|
|
|
43190
43341
|
|
|
43191
43342
|
// src/funcs/paymentsGet.ts
|
|
43192
43343
|
function paymentsGet(client, request, options) {
|
|
43193
|
-
return new APIPromise($
|
|
43344
|
+
return new APIPromise($do22(client, request, options));
|
|
43194
43345
|
}
|
|
43195
|
-
async function $
|
|
43346
|
+
async function $do22(client, request, options) {
|
|
43196
43347
|
const parsed = safeParse(request, (value) => PaymentsGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43197
43348
|
if (!parsed.ok) {
|
|
43198
43349
|
return [parsed, { status: "invalid" }];
|
|
@@ -43270,12 +43421,12 @@ var init_paymentsGet = __esm(() => {
|
|
|
43270
43421
|
});
|
|
43271
43422
|
|
|
43272
43423
|
// src/mcp-server/tools/paymentsGet.ts
|
|
43273
|
-
var
|
|
43424
|
+
var args21, tool$paymentsGet;
|
|
43274
43425
|
var init_paymentsGet2 = __esm(() => {
|
|
43275
43426
|
init_paymentsGet();
|
|
43276
43427
|
init_paymentsget();
|
|
43277
43428
|
init_tools();
|
|
43278
|
-
|
|
43429
|
+
args21 = {
|
|
43279
43430
|
request: PaymentsGetRequest$inboundSchema
|
|
43280
43431
|
};
|
|
43281
43432
|
tool$paymentsGet = {
|
|
@@ -43286,9 +43437,9 @@ Get a payment by ID.
|
|
|
43286
43437
|
|
|
43287
43438
|
**Scopes**: \`payments:read\``,
|
|
43288
43439
|
scopes: ["read", "payments"],
|
|
43289
|
-
args:
|
|
43290
|
-
tool: async (client,
|
|
43291
|
-
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();
|
|
43292
43443
|
if (!result.ok) {
|
|
43293
43444
|
return {
|
|
43294
43445
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43461,9 +43612,9 @@ var init_paymentslist = __esm(() => {
|
|
|
43461
43612
|
|
|
43462
43613
|
// src/funcs/paymentsList.ts
|
|
43463
43614
|
function paymentsList(client, request, options) {
|
|
43464
|
-
return new APIPromise($
|
|
43615
|
+
return new APIPromise($do23(client, request, options));
|
|
43465
43616
|
}
|
|
43466
|
-
async function $
|
|
43617
|
+
async function $do23(client, request, options) {
|
|
43467
43618
|
const parsed = safeParse(request, (value) => PaymentsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43468
43619
|
if (!parsed.ok) {
|
|
43469
43620
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -43579,12 +43730,12 @@ var init_paymentsList = __esm(() => {
|
|
|
43579
43730
|
});
|
|
43580
43731
|
|
|
43581
43732
|
// src/mcp-server/tools/paymentsList.ts
|
|
43582
|
-
var
|
|
43733
|
+
var args22, tool$paymentsList;
|
|
43583
43734
|
var init_paymentsList2 = __esm(() => {
|
|
43584
43735
|
init_paymentsList();
|
|
43585
43736
|
init_paymentslist();
|
|
43586
43737
|
init_tools();
|
|
43587
|
-
|
|
43738
|
+
args22 = {
|
|
43588
43739
|
request: PaymentsListRequest$inboundSchema
|
|
43589
43740
|
};
|
|
43590
43741
|
tool$paymentsList = {
|
|
@@ -43595,9 +43746,9 @@ List payments.
|
|
|
43595
43746
|
|
|
43596
43747
|
**Scopes**: \`payments:read\``,
|
|
43597
43748
|
scopes: ["read", "payments"],
|
|
43598
|
-
args:
|
|
43599
|
-
tool: async (client,
|
|
43600
|
-
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();
|
|
43601
43752
|
if (!result.ok) {
|
|
43602
43753
|
return {
|
|
43603
43754
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45820,9 +45971,9 @@ var init_productcreate = __esm(() => {
|
|
|
45820
45971
|
|
|
45821
45972
|
// src/funcs/productsCreate.ts
|
|
45822
45973
|
function productsCreate(client, request, options) {
|
|
45823
|
-
return new APIPromise($
|
|
45974
|
+
return new APIPromise($do24(client, request, options));
|
|
45824
45975
|
}
|
|
45825
|
-
async function $
|
|
45976
|
+
async function $do24(client, request, options) {
|
|
45826
45977
|
const parsed = safeParse(request, (value) => ProductCreate$outboundSchema.parse(value), "Input validation failed");
|
|
45827
45978
|
if (!parsed.ok) {
|
|
45828
45979
|
return [parsed, { status: "invalid" }];
|
|
@@ -45894,12 +46045,12 @@ var init_productsCreate = __esm(() => {
|
|
|
45894
46045
|
});
|
|
45895
46046
|
|
|
45896
46047
|
// src/mcp-server/tools/productsCreate.ts
|
|
45897
|
-
var
|
|
46048
|
+
var args23, tool$productsCreate;
|
|
45898
46049
|
var init_productsCreate2 = __esm(() => {
|
|
45899
46050
|
init_productsCreate();
|
|
45900
46051
|
init_productcreate();
|
|
45901
46052
|
init_tools();
|
|
45902
|
-
|
|
46053
|
+
args23 = {
|
|
45903
46054
|
request: ProductCreate$inboundSchema
|
|
45904
46055
|
};
|
|
45905
46056
|
tool$productsCreate = {
|
|
@@ -45910,9 +46061,9 @@ Create a product.
|
|
|
45910
46061
|
|
|
45911
46062
|
**Scopes**: \`products:write\``,
|
|
45912
46063
|
scopes: ["write", "products"],
|
|
45913
|
-
args:
|
|
45914
|
-
tool: async (client,
|
|
45915
|
-
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();
|
|
45916
46067
|
if (!result.ok) {
|
|
45917
46068
|
return {
|
|
45918
46069
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45943,9 +46094,9 @@ var init_productsget = __esm(() => {
|
|
|
45943
46094
|
|
|
45944
46095
|
// src/funcs/productsGet.ts
|
|
45945
46096
|
function productsGet(client, request, options) {
|
|
45946
|
-
return new APIPromise($
|
|
46097
|
+
return new APIPromise($do25(client, request, options));
|
|
45947
46098
|
}
|
|
45948
|
-
async function $
|
|
46099
|
+
async function $do25(client, request, options) {
|
|
45949
46100
|
const parsed = safeParse(request, (value) => ProductsGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45950
46101
|
if (!parsed.ok) {
|
|
45951
46102
|
return [parsed, { status: "invalid" }];
|
|
@@ -46023,12 +46174,12 @@ var init_productsGet = __esm(() => {
|
|
|
46023
46174
|
});
|
|
46024
46175
|
|
|
46025
46176
|
// src/mcp-server/tools/productsGet.ts
|
|
46026
|
-
var
|
|
46177
|
+
var args24, tool$productsGet;
|
|
46027
46178
|
var init_productsGet2 = __esm(() => {
|
|
46028
46179
|
init_productsGet();
|
|
46029
46180
|
init_productsget();
|
|
46030
46181
|
init_tools();
|
|
46031
|
-
|
|
46182
|
+
args24 = {
|
|
46032
46183
|
request: ProductsGetRequest$inboundSchema
|
|
46033
46184
|
};
|
|
46034
46185
|
tool$productsGet = {
|
|
@@ -46039,9 +46190,9 @@ Get a product by ID.
|
|
|
46039
46190
|
|
|
46040
46191
|
**Scopes**: \`products:read\` \`products:write\``,
|
|
46041
46192
|
scopes: ["read", "products"],
|
|
46042
|
-
args:
|
|
46043
|
-
tool: async (client,
|
|
46044
|
-
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();
|
|
46045
46196
|
if (!result.ok) {
|
|
46046
46197
|
return {
|
|
46047
46198
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46186,9 +46337,9 @@ var init_productslist = __esm(() => {
|
|
|
46186
46337
|
|
|
46187
46338
|
// src/funcs/productsList.ts
|
|
46188
46339
|
function productsList(client, request, options) {
|
|
46189
|
-
return new APIPromise($
|
|
46340
|
+
return new APIPromise($do26(client, request, options));
|
|
46190
46341
|
}
|
|
46191
|
-
async function $
|
|
46342
|
+
async function $do26(client, request, options) {
|
|
46192
46343
|
const parsed = safeParse(request, (value) => ProductsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46193
46344
|
if (!parsed.ok) {
|
|
46194
46345
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46306,12 +46457,12 @@ var init_productsList = __esm(() => {
|
|
|
46306
46457
|
});
|
|
46307
46458
|
|
|
46308
46459
|
// src/mcp-server/tools/productsList.ts
|
|
46309
|
-
var
|
|
46460
|
+
var args25, tool$productsList;
|
|
46310
46461
|
var init_productsList2 = __esm(() => {
|
|
46311
46462
|
init_productsList();
|
|
46312
46463
|
init_productslist();
|
|
46313
46464
|
init_tools();
|
|
46314
|
-
|
|
46465
|
+
args25 = {
|
|
46315
46466
|
request: ProductsListRequest$inboundSchema
|
|
46316
46467
|
};
|
|
46317
46468
|
tool$productsList = {
|
|
@@ -46322,9 +46473,9 @@ List products.
|
|
|
46322
46473
|
|
|
46323
46474
|
**Scopes**: \`products:read\` \`products:write\``,
|
|
46324
46475
|
scopes: ["read", "products"],
|
|
46325
|
-
args:
|
|
46326
|
-
tool: async (client,
|
|
46327
|
-
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();
|
|
46328
46479
|
if (!result.ok) {
|
|
46329
46480
|
return {
|
|
46330
46481
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46519,9 +46670,9 @@ var init_productsupdate = __esm(() => {
|
|
|
46519
46670
|
|
|
46520
46671
|
// src/funcs/productsUpdate.ts
|
|
46521
46672
|
function productsUpdate(client, request, options) {
|
|
46522
|
-
return new APIPromise($
|
|
46673
|
+
return new APIPromise($do27(client, request, options));
|
|
46523
46674
|
}
|
|
46524
|
-
async function $
|
|
46675
|
+
async function $do27(client, request, options) {
|
|
46525
46676
|
const parsed = safeParse(request, (value) => ProductsUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46526
46677
|
if (!parsed.ok) {
|
|
46527
46678
|
return [parsed, { status: "invalid" }];
|
|
@@ -46601,12 +46752,12 @@ var init_productsUpdate = __esm(() => {
|
|
|
46601
46752
|
});
|
|
46602
46753
|
|
|
46603
46754
|
// src/mcp-server/tools/productsUpdate.ts
|
|
46604
|
-
var
|
|
46755
|
+
var args26, tool$productsUpdate;
|
|
46605
46756
|
var init_productsUpdate2 = __esm(() => {
|
|
46606
46757
|
init_productsUpdate();
|
|
46607
46758
|
init_productsupdate();
|
|
46608
46759
|
init_tools();
|
|
46609
|
-
|
|
46760
|
+
args26 = {
|
|
46610
46761
|
request: ProductsUpdateRequest$inboundSchema
|
|
46611
46762
|
};
|
|
46612
46763
|
tool$productsUpdate = {
|
|
@@ -46617,9 +46768,9 @@ Update a product.
|
|
|
46617
46768
|
|
|
46618
46769
|
**Scopes**: \`products:write\``,
|
|
46619
46770
|
scopes: ["write", "products"],
|
|
46620
|
-
args:
|
|
46621
|
-
tool: async (client,
|
|
46622
|
-
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();
|
|
46623
46774
|
if (!result.ok) {
|
|
46624
46775
|
return {
|
|
46625
46776
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46678,9 +46829,9 @@ var init_productsupdatebenefits = __esm(() => {
|
|
|
46678
46829
|
|
|
46679
46830
|
// src/funcs/productsUpdateBenefits.ts
|
|
46680
46831
|
function productsUpdateBenefits(client, request, options) {
|
|
46681
|
-
return new APIPromise($
|
|
46832
|
+
return new APIPromise($do28(client, request, options));
|
|
46682
46833
|
}
|
|
46683
|
-
async function $
|
|
46834
|
+
async function $do28(client, request, options) {
|
|
46684
46835
|
const parsed = safeParse(request, (value) => ProductsUpdateBenefitsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46685
46836
|
if (!parsed.ok) {
|
|
46686
46837
|
return [parsed, { status: "invalid" }];
|
|
@@ -46762,12 +46913,12 @@ var init_productsUpdateBenefits = __esm(() => {
|
|
|
46762
46913
|
});
|
|
46763
46914
|
|
|
46764
46915
|
// src/mcp-server/tools/productsUpdateBenefits.ts
|
|
46765
|
-
var
|
|
46916
|
+
var args27, tool$productsUpdateBenefits;
|
|
46766
46917
|
var init_productsUpdateBenefits2 = __esm(() => {
|
|
46767
46918
|
init_productsUpdateBenefits();
|
|
46768
46919
|
init_productsupdatebenefits();
|
|
46769
46920
|
init_tools();
|
|
46770
|
-
|
|
46921
|
+
args27 = {
|
|
46771
46922
|
request: ProductsUpdateBenefitsRequest$inboundSchema
|
|
46772
46923
|
};
|
|
46773
46924
|
tool$productsUpdateBenefits = {
|
|
@@ -46778,9 +46929,9 @@ Update benefits granted by a product.
|
|
|
46778
46929
|
|
|
46779
46930
|
**Scopes**: \`products:write\``,
|
|
46780
46931
|
scopes: ["write", "products"],
|
|
46781
|
-
args:
|
|
46782
|
-
tool: async (client,
|
|
46783
|
-
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();
|
|
46784
46935
|
if (!result.ok) {
|
|
46785
46936
|
return {
|
|
46786
46937
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46826,9 +46977,9 @@ var init_subscriptionsexport = __esm(() => {
|
|
|
46826
46977
|
|
|
46827
46978
|
// src/funcs/subscriptionsExport.ts
|
|
46828
46979
|
function subscriptionsExport(client, request, options) {
|
|
46829
|
-
return new APIPromise($
|
|
46980
|
+
return new APIPromise($do29(client, request, options));
|
|
46830
46981
|
}
|
|
46831
|
-
async function $
|
|
46982
|
+
async function $do29(client, request, options) {
|
|
46832
46983
|
const parsed = safeParse(request, (value) => SubscriptionsExportRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46833
46984
|
if (!parsed.ok) {
|
|
46834
46985
|
return [parsed, { status: "invalid" }];
|
|
@@ -46903,12 +47054,12 @@ var init_subscriptionsExport = __esm(() => {
|
|
|
46903
47054
|
});
|
|
46904
47055
|
|
|
46905
47056
|
// src/mcp-server/tools/subscriptionsExport.ts
|
|
46906
|
-
var
|
|
47057
|
+
var args28, tool$subscriptionsExport;
|
|
46907
47058
|
var init_subscriptionsExport2 = __esm(() => {
|
|
46908
47059
|
init_subscriptionsExport();
|
|
46909
47060
|
init_subscriptionsexport();
|
|
46910
47061
|
init_tools();
|
|
46911
|
-
|
|
47062
|
+
args28 = {
|
|
46912
47063
|
request: SubscriptionsExportRequest$inboundSchema
|
|
46913
47064
|
};
|
|
46914
47065
|
tool$subscriptionsExport = {
|
|
@@ -46919,9 +47070,9 @@ Export subscriptions as a CSV file.
|
|
|
46919
47070
|
|
|
46920
47071
|
**Scopes**: \`subscriptions:read\` \`subscriptions:write\``,
|
|
46921
47072
|
scopes: ["read", "subscriptions"],
|
|
46922
|
-
args:
|
|
46923
|
-
tool: async (client,
|
|
46924
|
-
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();
|
|
46925
47076
|
if (!result.ok) {
|
|
46926
47077
|
return {
|
|
46927
47078
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47284,9 +47435,9 @@ var init_subscriptionsget = __esm(() => {
|
|
|
47284
47435
|
|
|
47285
47436
|
// src/funcs/subscriptionsGet.ts
|
|
47286
47437
|
function subscriptionsGet(client, request, options) {
|
|
47287
|
-
return new APIPromise($
|
|
47438
|
+
return new APIPromise($do30(client, request, options));
|
|
47288
47439
|
}
|
|
47289
|
-
async function $
|
|
47440
|
+
async function $do30(client, request, options) {
|
|
47290
47441
|
const parsed = safeParse(request, (value) => SubscriptionsGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47291
47442
|
if (!parsed.ok) {
|
|
47292
47443
|
return [parsed, { status: "invalid" }];
|
|
@@ -47364,12 +47515,12 @@ var init_subscriptionsGet = __esm(() => {
|
|
|
47364
47515
|
});
|
|
47365
47516
|
|
|
47366
47517
|
// src/mcp-server/tools/subscriptionsGet.ts
|
|
47367
|
-
var
|
|
47518
|
+
var args29, tool$subscriptionsGet;
|
|
47368
47519
|
var init_subscriptionsGet2 = __esm(() => {
|
|
47369
47520
|
init_subscriptionsGet();
|
|
47370
47521
|
init_subscriptionsget();
|
|
47371
47522
|
init_tools();
|
|
47372
|
-
|
|
47523
|
+
args29 = {
|
|
47373
47524
|
request: SubscriptionsGetRequest$inboundSchema
|
|
47374
47525
|
};
|
|
47375
47526
|
tool$subscriptionsGet = {
|
|
@@ -47380,9 +47531,9 @@ Get a subscription by ID.
|
|
|
47380
47531
|
|
|
47381
47532
|
**Scopes**: \`subscriptions:read\` \`subscriptions:write\``,
|
|
47382
47533
|
scopes: ["read", "subscriptions"],
|
|
47383
|
-
args:
|
|
47384
|
-
tool: async (client,
|
|
47385
|
-
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();
|
|
47386
47537
|
if (!result.ok) {
|
|
47387
47538
|
return {
|
|
47388
47539
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47547,9 +47698,9 @@ var init_subscriptionslist2 = __esm(() => {
|
|
|
47547
47698
|
|
|
47548
47699
|
// src/funcs/subscriptionsList.ts
|
|
47549
47700
|
function subscriptionsList(client, request, options) {
|
|
47550
|
-
return new APIPromise($
|
|
47701
|
+
return new APIPromise($do31(client, request, options));
|
|
47551
47702
|
}
|
|
47552
|
-
async function $
|
|
47703
|
+
async function $do31(client, request, options) {
|
|
47553
47704
|
const parsed = safeParse(request, (value) => SubscriptionsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47554
47705
|
if (!parsed.ok) {
|
|
47555
47706
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47667,12 +47818,12 @@ var init_subscriptionsList = __esm(() => {
|
|
|
47667
47818
|
});
|
|
47668
47819
|
|
|
47669
47820
|
// src/mcp-server/tools/subscriptionsList.ts
|
|
47670
|
-
var
|
|
47821
|
+
var args30, tool$subscriptionsList;
|
|
47671
47822
|
var init_subscriptionsList2 = __esm(() => {
|
|
47672
47823
|
init_subscriptionsList();
|
|
47673
47824
|
init_subscriptionslist2();
|
|
47674
47825
|
init_tools();
|
|
47675
|
-
|
|
47826
|
+
args30 = {
|
|
47676
47827
|
request: SubscriptionsListRequest$inboundSchema
|
|
47677
47828
|
};
|
|
47678
47829
|
tool$subscriptionsList = {
|
|
@@ -47683,9 +47834,9 @@ List subscriptions.
|
|
|
47683
47834
|
|
|
47684
47835
|
**Scopes**: \`subscriptions:read\` \`subscriptions:write\``,
|
|
47685
47836
|
scopes: ["read", "subscriptions"],
|
|
47686
|
-
args:
|
|
47687
|
-
tool: async (client,
|
|
47688
|
-
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();
|
|
47689
47840
|
if (!result.ok) {
|
|
47690
47841
|
return {
|
|
47691
47842
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47798,9 +47949,9 @@ var init_subscriptionsrevoke = __esm(() => {
|
|
|
47798
47949
|
|
|
47799
47950
|
// src/funcs/subscriptionsRevoke.ts
|
|
47800
47951
|
function subscriptionsRevoke(client, request, options) {
|
|
47801
|
-
return new APIPromise($
|
|
47952
|
+
return new APIPromise($do32(client, request, options));
|
|
47802
47953
|
}
|
|
47803
|
-
async function $
|
|
47954
|
+
async function $do32(client, request, options) {
|
|
47804
47955
|
const parsed = safeParse(request, (value) => SubscriptionsRevokeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47805
47956
|
if (!parsed.ok) {
|
|
47806
47957
|
return [parsed, { status: "invalid" }];
|
|
@@ -47880,12 +48031,12 @@ var init_subscriptionsRevoke = __esm(() => {
|
|
|
47880
48031
|
});
|
|
47881
48032
|
|
|
47882
48033
|
// src/mcp-server/tools/subscriptionsRevoke.ts
|
|
47883
|
-
var
|
|
48034
|
+
var args31, tool$subscriptionsRevoke;
|
|
47884
48035
|
var init_subscriptionsRevoke2 = __esm(() => {
|
|
47885
48036
|
init_subscriptionsRevoke();
|
|
47886
48037
|
init_subscriptionsrevoke();
|
|
47887
48038
|
init_tools();
|
|
47888
|
-
|
|
48039
|
+
args31 = {
|
|
47889
48040
|
request: SubscriptionsRevokeRequest$inboundSchema
|
|
47890
48041
|
};
|
|
47891
48042
|
tool$subscriptionsRevoke = {
|
|
@@ -47896,9 +48047,9 @@ Revoke a subscription, i.e cancel immediately.
|
|
|
47896
48047
|
|
|
47897
48048
|
**Scopes**: \`subscriptions:write\``,
|
|
47898
48049
|
scopes: ["write", "subscriptions"],
|
|
47899
|
-
args:
|
|
47900
|
-
tool: async (client,
|
|
47901
|
-
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();
|
|
47902
48053
|
if (!result.ok) {
|
|
47903
48054
|
return {
|
|
47904
48055
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48132,9 +48283,9 @@ var init_subscriptionsupdate = __esm(() => {
|
|
|
48132
48283
|
|
|
48133
48284
|
// src/funcs/subscriptionsUpdate.ts
|
|
48134
48285
|
function subscriptionsUpdate(client, request, options) {
|
|
48135
|
-
return new APIPromise($
|
|
48286
|
+
return new APIPromise($do33(client, request, options));
|
|
48136
48287
|
}
|
|
48137
|
-
async function $
|
|
48288
|
+
async function $do33(client, request, options) {
|
|
48138
48289
|
const parsed = safeParse(request, (value) => SubscriptionsUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48139
48290
|
if (!parsed.ok) {
|
|
48140
48291
|
return [parsed, { status: "invalid" }];
|
|
@@ -48217,12 +48368,12 @@ var init_subscriptionsUpdate = __esm(() => {
|
|
|
48217
48368
|
});
|
|
48218
48369
|
|
|
48219
48370
|
// src/mcp-server/tools/subscriptionsUpdate.ts
|
|
48220
|
-
var
|
|
48371
|
+
var args32, tool$subscriptionsUpdate;
|
|
48221
48372
|
var init_subscriptionsUpdate2 = __esm(() => {
|
|
48222
48373
|
init_subscriptionsUpdate();
|
|
48223
48374
|
init_subscriptionsupdate();
|
|
48224
48375
|
init_tools();
|
|
48225
|
-
|
|
48376
|
+
args32 = {
|
|
48226
48377
|
request: SubscriptionsUpdateRequest$inboundSchema
|
|
48227
48378
|
};
|
|
48228
48379
|
tool$subscriptionsUpdate = {
|
|
@@ -48233,9 +48384,9 @@ Update a subscription.
|
|
|
48233
48384
|
|
|
48234
48385
|
**Scopes**: \`subscriptions:write\``,
|
|
48235
48386
|
scopes: ["write", "subscriptions"],
|
|
48236
|
-
args:
|
|
48237
|
-
tool: async (client,
|
|
48238
|
-
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();
|
|
48239
48390
|
if (!result.ok) {
|
|
48240
48391
|
return {
|
|
48241
48392
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48252,7 +48403,7 @@ Update a subscription.
|
|
|
48252
48403
|
function createMCPServer(deps) {
|
|
48253
48404
|
const server = new McpServer({
|
|
48254
48405
|
name: "Polar",
|
|
48255
|
-
version: "0.35.
|
|
48406
|
+
version: "0.35.3"
|
|
48256
48407
|
});
|
|
48257
48408
|
const client = new PolarCore({
|
|
48258
48409
|
accessToken: deps.accessToken,
|
|
@@ -48294,6 +48445,7 @@ function createMCPServer(deps) {
|
|
|
48294
48445
|
tool(tool$customersDeleteExternal);
|
|
48295
48446
|
tool(tool$customersGetState);
|
|
48296
48447
|
tool(tool$customersGetStateExternal);
|
|
48448
|
+
tool(tool$customersGetBalance);
|
|
48297
48449
|
tool(tool$customerMetersList);
|
|
48298
48450
|
tool(tool$customerMetersGet);
|
|
48299
48451
|
tool(tool$paymentsList);
|
|
@@ -48312,6 +48464,7 @@ var init_server2 = __esm(() => {
|
|
|
48312
48464
|
init_customersDeleteExternal2();
|
|
48313
48465
|
init_customersExport2();
|
|
48314
48466
|
init_customersGet2();
|
|
48467
|
+
init_customersGetBalance2();
|
|
48315
48468
|
init_customersGetExternal2();
|
|
48316
48469
|
init_customersGetState2();
|
|
48317
48470
|
init_customersGetStateExternal2();
|
|
@@ -49539,7 +49692,7 @@ var routes = rn({
|
|
|
49539
49692
|
var app = Ve(routes, {
|
|
49540
49693
|
name: "mcp",
|
|
49541
49694
|
versionInfo: {
|
|
49542
|
-
currentVersion: "0.35.
|
|
49695
|
+
currentVersion: "0.35.3"
|
|
49543
49696
|
}
|
|
49544
49697
|
});
|
|
49545
49698
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -49547,5 +49700,5 @@ export {
|
|
|
49547
49700
|
app
|
|
49548
49701
|
};
|
|
49549
49702
|
|
|
49550
|
-
//# debugId=
|
|
49703
|
+
//# debugId=AD1DCAD0528A36F764756E2164756E21
|
|
49551
49704
|
//# sourceMappingURL=mcp-server.js.map
|