@polar-sh/sdk 0.35.2 → 0.35.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -23
- package/bin/mcp-server.js +1078 -811
- package/bin/mcp-server.js.map +20 -14
- 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/checkout.d.ts +5 -0
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +2 -0
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutconfirmstripe.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutconfirmstripe.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutconfirmstripe.js +2 -0
- package/dist/commonjs/models/components/checkoutconfirmstripe.js.map +1 -1
- package/dist/commonjs/models/components/checkoutcreate.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutcreate.js +2 -0
- package/dist/commonjs/models/components/checkoutcreate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +2 -0
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +2 -0
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.js +2 -0
- package/dist/commonjs/models/components/checkoutupdate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutupdatepublic.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutupdatepublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutupdatepublic.js +2 -0
- package/dist/commonjs/models/components/checkoutupdatepublic.js.map +1 -1
- 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/components/organizationfeaturesettings.d.ts +5 -0
- package/dist/commonjs/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationfeaturesettings.js +4 -0
- package/dist/commonjs/models/components/organizationfeaturesettings.js.map +1 -1
- package/dist/commonjs/models/components/productcreateonetime.d.ts +5 -4
- package/dist/commonjs/models/components/productcreateonetime.d.ts.map +1 -1
- package/dist/commonjs/models/components/productcreateonetime.js +5 -0
- package/dist/commonjs/models/components/productcreateonetime.js.map +1 -1
- package/dist/commonjs/models/components/productcreaterecurring.d.ts +5 -4
- package/dist/commonjs/models/components/productcreaterecurring.d.ts.map +1 -1
- package/dist/commonjs/models/components/productcreaterecurring.js +5 -0
- package/dist/commonjs/models/components/productcreaterecurring.js.map +1 -1
- package/dist/commonjs/models/components/productprice.d.ts +5 -0
- package/dist/commonjs/models/components/productprice.d.ts.map +1 -1
- package/dist/commonjs/models/components/productprice.js +7 -0
- package/dist/commonjs/models/components/productprice.js.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbased.d.ts +76 -0
- package/dist/commonjs/models/components/productpriceseatbased.d.ts.map +1 -0
- package/dist/commonjs/models/components/productpriceseatbased.js +112 -0
- package/dist/commonjs/models/components/productpriceseatbased.js.map +1 -0
- package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts +42 -0
- package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts.map +1 -0
- package/dist/commonjs/models/components/productpriceseatbasedcreate.js +86 -0
- package/dist/commonjs/models/components/productpriceseatbasedcreate.js.map +1 -0
- package/dist/commonjs/models/components/productupdate.d.ts +5 -4
- package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productupdate.js +5 -0
- package/dist/commonjs/models/components/productupdate.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/checkout.d.ts +5 -0
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +2 -0
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutconfirmstripe.d.ts +5 -0
- package/dist/esm/models/components/checkoutconfirmstripe.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutconfirmstripe.js +2 -0
- package/dist/esm/models/components/checkoutconfirmstripe.js.map +1 -1
- package/dist/esm/models/components/checkoutcreate.d.ts +5 -0
- package/dist/esm/models/components/checkoutcreate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutcreate.js +2 -0
- package/dist/esm/models/components/checkoutcreate.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +5 -0
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +2 -0
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +5 -0
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +2 -0
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/checkoutupdate.d.ts +5 -0
- package/dist/esm/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutupdate.js +2 -0
- package/dist/esm/models/components/checkoutupdate.js.map +1 -1
- package/dist/esm/models/components/checkoutupdatepublic.d.ts +5 -0
- package/dist/esm/models/components/checkoutupdatepublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutupdatepublic.js +2 -0
- package/dist/esm/models/components/checkoutupdatepublic.js.map +1 -1
- 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/components/organizationfeaturesettings.d.ts +5 -0
- package/dist/esm/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/dist/esm/models/components/organizationfeaturesettings.js +4 -0
- package/dist/esm/models/components/organizationfeaturesettings.js.map +1 -1
- package/dist/esm/models/components/productcreateonetime.d.ts +5 -4
- package/dist/esm/models/components/productcreateonetime.d.ts.map +1 -1
- package/dist/esm/models/components/productcreateonetime.js +5 -0
- package/dist/esm/models/components/productcreateonetime.js.map +1 -1
- package/dist/esm/models/components/productcreaterecurring.d.ts +5 -4
- package/dist/esm/models/components/productcreaterecurring.d.ts.map +1 -1
- package/dist/esm/models/components/productcreaterecurring.js +5 -0
- package/dist/esm/models/components/productcreaterecurring.js.map +1 -1
- package/dist/esm/models/components/productprice.d.ts +5 -0
- package/dist/esm/models/components/productprice.d.ts.map +1 -1
- package/dist/esm/models/components/productprice.js +7 -0
- package/dist/esm/models/components/productprice.js.map +1 -1
- package/dist/esm/models/components/productpriceseatbased.d.ts +76 -0
- package/dist/esm/models/components/productpriceseatbased.d.ts.map +1 -0
- package/dist/esm/models/components/productpriceseatbased.js +74 -0
- package/dist/esm/models/components/productpriceseatbased.js.map +1 -0
- package/dist/esm/models/components/productpriceseatbasedcreate.d.ts +42 -0
- package/dist/esm/models/components/productpriceseatbasedcreate.d.ts.map +1 -0
- package/dist/esm/models/components/productpriceseatbasedcreate.js +48 -0
- package/dist/esm/models/components/productpriceseatbasedcreate.js.map +1 -0
- package/dist/esm/models/components/productupdate.d.ts +5 -4
- package/dist/esm/models/components/productupdate.d.ts.map +1 -1
- package/dist/esm/models/components/productupdate.js +5 -0
- package/dist/esm/models/components/productupdate.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/checkout.ts +7 -0
- package/src/models/components/checkoutconfirmstripe.ts +7 -0
- package/src/models/components/checkoutcreate.ts +7 -0
- package/src/models/components/checkoutpublic.ts +7 -0
- package/src/models/components/checkoutpublicconfirmed.ts +7 -0
- package/src/models/components/checkoutupdate.ts +7 -0
- package/src/models/components/checkoutupdatepublic.ts +7 -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/components/organizationfeaturesettings.ts +9 -0
- package/src/models/components/productcreateonetime.ts +14 -0
- package/src/models/components/productcreaterecurring.ts +14 -0
- package/src/models/components/productprice.ts +18 -0
- package/src/models/components/productpriceseatbased.ts +164 -0
- package/src/models/components/productpriceseatbasedcreate.ts +98 -0
- package/src/models/components/productupdate.ts +14 -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.4",
|
|
4041
|
+
genVersion: "2.716.16",
|
|
4042
|
+
userAgent: "speakeasy-sdk/typescript 0.35.4 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;
|
|
@@ -37673,222 +37673,369 @@ async function $do5(client, request, options) {
|
|
|
37673
37673
|
const responseFields = {
|
|
37674
37674
|
HttpMeta: { Response: response, Request: req }
|
|
37675
37675
|
};
|
|
37676
|
-
const [result] = await match(nil(204, voidType()), jsonErr(404, ResourceNotFound$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37676
|
+
const [result] = await match(nil(204, voidType()), jsonErr(404, ResourceNotFound$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37677
|
+
if (!result.ok) {
|
|
37678
|
+
return [result, { status: "complete", request: req, response }];
|
|
37679
|
+
}
|
|
37680
|
+
return [result, { status: "complete", request: req, response }];
|
|
37681
|
+
}
|
|
37682
|
+
var init_customersDeleteExternal = __esm(() => {
|
|
37683
|
+
init_zod();
|
|
37684
|
+
init_encodings();
|
|
37685
|
+
init_matchers();
|
|
37686
|
+
init_primitives();
|
|
37687
|
+
init_schemas();
|
|
37688
|
+
init_security();
|
|
37689
|
+
init_url();
|
|
37690
|
+
init_httpvalidationerror();
|
|
37691
|
+
init_resourcenotfound();
|
|
37692
|
+
init_customersdeleteexternal();
|
|
37693
|
+
init_async();
|
|
37694
|
+
});
|
|
37695
|
+
|
|
37696
|
+
// src/mcp-server/tools/customersDeleteExternal.ts
|
|
37697
|
+
var args5, tool$customersDeleteExternal;
|
|
37698
|
+
var init_customersDeleteExternal2 = __esm(() => {
|
|
37699
|
+
init_customersDeleteExternal();
|
|
37700
|
+
init_customersdeleteexternal();
|
|
37701
|
+
init_tools();
|
|
37702
|
+
args5 = {
|
|
37703
|
+
request: CustomersDeleteExternalRequest$inboundSchema
|
|
37704
|
+
};
|
|
37705
|
+
tool$customersDeleteExternal = {
|
|
37706
|
+
name: "customers-delete-external",
|
|
37707
|
+
description: `Delete Customer by External ID
|
|
37708
|
+
|
|
37709
|
+
Delete a customer by external ID.
|
|
37710
|
+
|
|
37711
|
+
Immediately cancels any active subscriptions and revokes any active benefits.
|
|
37712
|
+
|
|
37713
|
+
**Scopes**: \`customers:write\``,
|
|
37714
|
+
scopes: ["write", "customers"],
|
|
37715
|
+
args: args5,
|
|
37716
|
+
tool: async (client, args6, ctx) => {
|
|
37717
|
+
const [result, apiCall] = await customersDeleteExternal(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
37718
|
+
if (!result.ok) {
|
|
37719
|
+
return {
|
|
37720
|
+
content: [{ type: "text", text: result.error.message }],
|
|
37721
|
+
isError: true
|
|
37722
|
+
};
|
|
37723
|
+
}
|
|
37724
|
+
return formatResult(undefined, apiCall);
|
|
37725
|
+
}
|
|
37726
|
+
};
|
|
37727
|
+
});
|
|
37728
|
+
|
|
37729
|
+
// src/models/operations/customersexport.ts
|
|
37730
|
+
var CustomersExportQueryParamOrganizationId$inboundSchema, CustomersExportQueryParamOrganizationId$outboundSchema, CustomersExportQueryParamOrganizationId$, CustomersExportRequest$inboundSchema, CustomersExportRequest$outboundSchema, CustomersExportRequest$;
|
|
37731
|
+
var init_customersexport = __esm(() => {
|
|
37732
|
+
init_zod();
|
|
37733
|
+
init_primitives();
|
|
37734
|
+
CustomersExportQueryParamOrganizationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
37735
|
+
CustomersExportQueryParamOrganizationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
37736
|
+
((CustomersExportQueryParamOrganizationId$) => {
|
|
37737
|
+
CustomersExportQueryParamOrganizationId$.inboundSchema = CustomersExportQueryParamOrganizationId$inboundSchema;
|
|
37738
|
+
CustomersExportQueryParamOrganizationId$.outboundSchema = CustomersExportQueryParamOrganizationId$outboundSchema;
|
|
37739
|
+
})(CustomersExportQueryParamOrganizationId$ ||= {});
|
|
37740
|
+
CustomersExportRequest$inboundSchema = objectType({
|
|
37741
|
+
organization_id: nullableType(unionType([stringType(), arrayType(stringType())])).optional()
|
|
37742
|
+
}).transform((v2) => {
|
|
37743
|
+
return remap(v2, {
|
|
37744
|
+
organization_id: "organizationId"
|
|
37745
|
+
});
|
|
37746
|
+
});
|
|
37747
|
+
CustomersExportRequest$outboundSchema = objectType({
|
|
37748
|
+
organizationId: nullableType(unionType([stringType(), arrayType(stringType())])).optional()
|
|
37749
|
+
}).transform((v2) => {
|
|
37750
|
+
return remap(v2, {
|
|
37751
|
+
organizationId: "organization_id"
|
|
37752
|
+
});
|
|
37753
|
+
});
|
|
37754
|
+
((CustomersExportRequest$) => {
|
|
37755
|
+
CustomersExportRequest$.inboundSchema = CustomersExportRequest$inboundSchema;
|
|
37756
|
+
CustomersExportRequest$.outboundSchema = CustomersExportRequest$outboundSchema;
|
|
37757
|
+
})(CustomersExportRequest$ ||= {});
|
|
37758
|
+
});
|
|
37759
|
+
|
|
37760
|
+
// src/funcs/customersExport.ts
|
|
37761
|
+
function customersExport(client, request, options) {
|
|
37762
|
+
return new APIPromise($do6(client, request, options));
|
|
37763
|
+
}
|
|
37764
|
+
async function $do6(client, request, options) {
|
|
37765
|
+
const parsed = safeParse(request, (value) => CustomersExportRequest$outboundSchema.parse(value), "Input validation failed");
|
|
37766
|
+
if (!parsed.ok) {
|
|
37767
|
+
return [parsed, { status: "invalid" }];
|
|
37768
|
+
}
|
|
37769
|
+
const payload = parsed.value;
|
|
37770
|
+
const body = null;
|
|
37771
|
+
const path = pathToFunc("/v1/customers/export")();
|
|
37772
|
+
const query = encodeFormQuery({
|
|
37773
|
+
organization_id: payload.organization_id
|
|
37774
|
+
});
|
|
37775
|
+
const headers = new Headers(compactMap({
|
|
37776
|
+
Accept: "application/json"
|
|
37777
|
+
}));
|
|
37778
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
37779
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
37780
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37781
|
+
const context = {
|
|
37782
|
+
options: client._options,
|
|
37783
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
37784
|
+
operationID: "customers:export",
|
|
37785
|
+
oAuth2Scopes: [],
|
|
37786
|
+
resolvedSecurity: requestSecurity,
|
|
37787
|
+
securitySource: client._options.accessToken,
|
|
37788
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
37789
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
37790
|
+
};
|
|
37791
|
+
const requestRes = client._createRequest(context, {
|
|
37792
|
+
security: requestSecurity,
|
|
37793
|
+
method: "GET",
|
|
37794
|
+
baseURL: options?.serverURL,
|
|
37795
|
+
path,
|
|
37796
|
+
headers,
|
|
37797
|
+
query,
|
|
37798
|
+
body,
|
|
37799
|
+
userAgent: client._options.userAgent,
|
|
37800
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
37801
|
+
}, options);
|
|
37802
|
+
if (!requestRes.ok) {
|
|
37803
|
+
return [requestRes, { status: "invalid" }];
|
|
37804
|
+
}
|
|
37805
|
+
const req = requestRes.value;
|
|
37806
|
+
const doResult = await client._do(req, {
|
|
37807
|
+
context,
|
|
37808
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
37809
|
+
retryConfig: context.retryConfig,
|
|
37810
|
+
retryCodes: context.retryCodes
|
|
37811
|
+
});
|
|
37812
|
+
if (!doResult.ok) {
|
|
37813
|
+
return [doResult, { status: "request-error", request: req }];
|
|
37814
|
+
}
|
|
37815
|
+
const response = doResult.value;
|
|
37816
|
+
const responseFields = {
|
|
37817
|
+
HttpMeta: { Response: response, Request: req }
|
|
37818
|
+
};
|
|
37819
|
+
const [result] = await match(json(200, anyType()), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37820
|
+
if (!result.ok) {
|
|
37821
|
+
return [result, { status: "complete", request: req, response }];
|
|
37822
|
+
}
|
|
37823
|
+
return [result, { status: "complete", request: req, response }];
|
|
37824
|
+
}
|
|
37825
|
+
var init_customersExport = __esm(() => {
|
|
37826
|
+
init_zod();
|
|
37827
|
+
init_encodings();
|
|
37828
|
+
init_matchers();
|
|
37829
|
+
init_primitives();
|
|
37830
|
+
init_schemas();
|
|
37831
|
+
init_security();
|
|
37832
|
+
init_url();
|
|
37833
|
+
init_httpvalidationerror();
|
|
37834
|
+
init_customersexport();
|
|
37835
|
+
init_async();
|
|
37836
|
+
});
|
|
37837
|
+
|
|
37838
|
+
// src/mcp-server/tools/customersExport.ts
|
|
37839
|
+
var args6, tool$customersExport;
|
|
37840
|
+
var init_customersExport2 = __esm(() => {
|
|
37841
|
+
init_customersExport();
|
|
37842
|
+
init_customersexport();
|
|
37843
|
+
init_tools();
|
|
37844
|
+
args6 = {
|
|
37845
|
+
request: CustomersExportRequest$inboundSchema
|
|
37846
|
+
};
|
|
37847
|
+
tool$customersExport = {
|
|
37848
|
+
name: "customers-export",
|
|
37849
|
+
description: `Export Customers
|
|
37850
|
+
|
|
37851
|
+
Export customers as a CSV file.
|
|
37852
|
+
|
|
37853
|
+
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
37854
|
+
scopes: ["read", "customers"],
|
|
37855
|
+
args: args6,
|
|
37856
|
+
tool: async (client, args7, ctx) => {
|
|
37857
|
+
const [result, apiCall] = await customersExport(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
37858
|
+
if (!result.ok) {
|
|
37859
|
+
return {
|
|
37860
|
+
content: [{ type: "text", text: result.error.message }],
|
|
37861
|
+
isError: true
|
|
37862
|
+
};
|
|
37863
|
+
}
|
|
37864
|
+
const value = result.value;
|
|
37865
|
+
return formatResult(value, apiCall);
|
|
37866
|
+
}
|
|
37867
|
+
};
|
|
37868
|
+
});
|
|
37869
|
+
|
|
37870
|
+
// src/models/operations/customersget.ts
|
|
37871
|
+
var CustomersGetRequest$inboundSchema, CustomersGetRequest$outboundSchema, CustomersGetRequest$;
|
|
37872
|
+
var init_customersget = __esm(() => {
|
|
37873
|
+
init_zod();
|
|
37874
|
+
CustomersGetRequest$inboundSchema = objectType({
|
|
37875
|
+
id: stringType()
|
|
37876
|
+
});
|
|
37877
|
+
CustomersGetRequest$outboundSchema = objectType({
|
|
37878
|
+
id: stringType()
|
|
37879
|
+
});
|
|
37880
|
+
((CustomersGetRequest$) => {
|
|
37881
|
+
CustomersGetRequest$.inboundSchema = CustomersGetRequest$inboundSchema;
|
|
37882
|
+
CustomersGetRequest$.outboundSchema = CustomersGetRequest$outboundSchema;
|
|
37883
|
+
})(CustomersGetRequest$ ||= {});
|
|
37884
|
+
});
|
|
37885
|
+
|
|
37886
|
+
// src/funcs/customersGet.ts
|
|
37887
|
+
function customersGet(client, request, options) {
|
|
37888
|
+
return new APIPromise($do7(client, request, options));
|
|
37889
|
+
}
|
|
37890
|
+
async function $do7(client, request, options) {
|
|
37891
|
+
const parsed = safeParse(request, (value) => CustomersGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
37892
|
+
if (!parsed.ok) {
|
|
37893
|
+
return [parsed, { status: "invalid" }];
|
|
37894
|
+
}
|
|
37895
|
+
const payload = parsed.value;
|
|
37896
|
+
const body = null;
|
|
37897
|
+
const pathParams = {
|
|
37898
|
+
id: encodeSimple("id", payload.id, {
|
|
37899
|
+
explode: false,
|
|
37900
|
+
charEncoding: "percent"
|
|
37901
|
+
})
|
|
37902
|
+
};
|
|
37903
|
+
const path = pathToFunc("/v1/customers/{id}")(pathParams);
|
|
37904
|
+
const headers = new Headers(compactMap({
|
|
37905
|
+
Accept: "application/json"
|
|
37906
|
+
}));
|
|
37907
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
37908
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
37909
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37910
|
+
const context = {
|
|
37911
|
+
options: client._options,
|
|
37912
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
37913
|
+
operationID: "customers:get",
|
|
37914
|
+
oAuth2Scopes: [],
|
|
37915
|
+
resolvedSecurity: requestSecurity,
|
|
37916
|
+
securitySource: client._options.accessToken,
|
|
37917
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
37918
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
37919
|
+
};
|
|
37920
|
+
const requestRes = client._createRequest(context, {
|
|
37921
|
+
security: requestSecurity,
|
|
37922
|
+
method: "GET",
|
|
37923
|
+
baseURL: options?.serverURL,
|
|
37924
|
+
path,
|
|
37925
|
+
headers,
|
|
37926
|
+
body,
|
|
37927
|
+
userAgent: client._options.userAgent,
|
|
37928
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
37929
|
+
}, options);
|
|
37930
|
+
if (!requestRes.ok) {
|
|
37931
|
+
return [requestRes, { status: "invalid" }];
|
|
37932
|
+
}
|
|
37933
|
+
const req = requestRes.value;
|
|
37934
|
+
const doResult = await client._do(req, {
|
|
37935
|
+
context,
|
|
37936
|
+
errorCodes: ["404", "422", "4XX", "5XX"],
|
|
37937
|
+
retryConfig: context.retryConfig,
|
|
37938
|
+
retryCodes: context.retryCodes
|
|
37939
|
+
});
|
|
37940
|
+
if (!doResult.ok) {
|
|
37941
|
+
return [doResult, { status: "request-error", request: req }];
|
|
37942
|
+
}
|
|
37943
|
+
const response = doResult.value;
|
|
37944
|
+
const responseFields = {
|
|
37945
|
+
HttpMeta: { Response: response, Request: req }
|
|
37946
|
+
};
|
|
37947
|
+
const [result] = await match(json(200, Customer$inboundSchema), jsonErr(404, ResourceNotFound$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37677
37948
|
if (!result.ok) {
|
|
37678
37949
|
return [result, { status: "complete", request: req, response }];
|
|
37679
37950
|
}
|
|
37680
37951
|
return [result, { status: "complete", request: req, response }];
|
|
37681
37952
|
}
|
|
37682
|
-
var
|
|
37683
|
-
init_zod();
|
|
37953
|
+
var init_customersGet = __esm(() => {
|
|
37684
37954
|
init_encodings();
|
|
37685
37955
|
init_matchers();
|
|
37686
37956
|
init_primitives();
|
|
37687
37957
|
init_schemas();
|
|
37688
37958
|
init_security();
|
|
37689
37959
|
init_url();
|
|
37960
|
+
init_customer();
|
|
37690
37961
|
init_httpvalidationerror();
|
|
37691
37962
|
init_resourcenotfound();
|
|
37692
|
-
|
|
37963
|
+
init_customersget();
|
|
37693
37964
|
init_async();
|
|
37694
37965
|
});
|
|
37695
37966
|
|
|
37696
|
-
// src/mcp-server/tools/
|
|
37697
|
-
var
|
|
37698
|
-
var
|
|
37699
|
-
|
|
37700
|
-
|
|
37967
|
+
// src/mcp-server/tools/customersGet.ts
|
|
37968
|
+
var args7, tool$customersGet;
|
|
37969
|
+
var init_customersGet2 = __esm(() => {
|
|
37970
|
+
init_customersGet();
|
|
37971
|
+
init_customersget();
|
|
37701
37972
|
init_tools();
|
|
37702
|
-
|
|
37703
|
-
request:
|
|
37973
|
+
args7 = {
|
|
37974
|
+
request: CustomersGetRequest$inboundSchema
|
|
37704
37975
|
};
|
|
37705
|
-
tool$
|
|
37706
|
-
name: "customers-
|
|
37707
|
-
description: `
|
|
37708
|
-
|
|
37709
|
-
Delete a customer by external ID.
|
|
37976
|
+
tool$customersGet = {
|
|
37977
|
+
name: "customers-get",
|
|
37978
|
+
description: `Get Customer
|
|
37710
37979
|
|
|
37711
|
-
|
|
37980
|
+
Get a customer by ID.
|
|
37712
37981
|
|
|
37713
|
-
**Scopes**: \`customers:write\``,
|
|
37714
|
-
scopes: ["
|
|
37715
|
-
args:
|
|
37716
|
-
tool: async (client,
|
|
37717
|
-
const [result, apiCall] = await
|
|
37982
|
+
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
37983
|
+
scopes: ["read", "customers"],
|
|
37984
|
+
args: args7,
|
|
37985
|
+
tool: async (client, args8, ctx) => {
|
|
37986
|
+
const [result, apiCall] = await customersGet(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
37718
37987
|
if (!result.ok) {
|
|
37719
37988
|
return {
|
|
37720
37989
|
content: [{ type: "text", text: result.error.message }],
|
|
37721
37990
|
isError: true
|
|
37722
37991
|
};
|
|
37723
37992
|
}
|
|
37724
|
-
|
|
37993
|
+
const value = result.value;
|
|
37994
|
+
return formatResult(value, apiCall);
|
|
37725
37995
|
}
|
|
37726
37996
|
};
|
|
37727
37997
|
});
|
|
37728
37998
|
|
|
37729
|
-
// src/models/
|
|
37730
|
-
var
|
|
37731
|
-
var
|
|
37999
|
+
// src/models/components/customerbalance.ts
|
|
38000
|
+
var CustomerBalance$inboundSchema, CustomerBalance$outboundSchema, CustomerBalance$;
|
|
38001
|
+
var init_customerbalance = __esm(() => {
|
|
37732
38002
|
init_zod();
|
|
37733
|
-
|
|
37734
|
-
|
|
37735
|
-
|
|
37736
|
-
((CustomersExportQueryParamOrganizationId$) => {
|
|
37737
|
-
CustomersExportQueryParamOrganizationId$.inboundSchema = CustomersExportQueryParamOrganizationId$inboundSchema;
|
|
37738
|
-
CustomersExportQueryParamOrganizationId$.outboundSchema = CustomersExportQueryParamOrganizationId$outboundSchema;
|
|
37739
|
-
})(CustomersExportQueryParamOrganizationId$ ||= {});
|
|
37740
|
-
CustomersExportRequest$inboundSchema = objectType({
|
|
37741
|
-
organization_id: nullableType(unionType([stringType(), arrayType(stringType())])).optional()
|
|
37742
|
-
}).transform((v2) => {
|
|
37743
|
-
return remap(v2, {
|
|
37744
|
-
organization_id: "organizationId"
|
|
37745
|
-
});
|
|
37746
|
-
});
|
|
37747
|
-
CustomersExportRequest$outboundSchema = objectType({
|
|
37748
|
-
organizationId: nullableType(unionType([stringType(), arrayType(stringType())])).optional()
|
|
37749
|
-
}).transform((v2) => {
|
|
37750
|
-
return remap(v2, {
|
|
37751
|
-
organizationId: "organization_id"
|
|
37752
|
-
});
|
|
38003
|
+
CustomerBalance$inboundSchema = objectType({
|
|
38004
|
+
balance: numberType().int(),
|
|
38005
|
+
currency: stringType()
|
|
37753
38006
|
});
|
|
37754
|
-
|
|
37755
|
-
|
|
37756
|
-
|
|
37757
|
-
})(CustomersExportRequest$ ||= {});
|
|
37758
|
-
});
|
|
37759
|
-
|
|
37760
|
-
// src/funcs/customersExport.ts
|
|
37761
|
-
function customersExport(client, request, options) {
|
|
37762
|
-
return new APIPromise($do6(client, request, options));
|
|
37763
|
-
}
|
|
37764
|
-
async function $do6(client, request, options) {
|
|
37765
|
-
const parsed = safeParse(request, (value) => CustomersExportRequest$outboundSchema.parse(value), "Input validation failed");
|
|
37766
|
-
if (!parsed.ok) {
|
|
37767
|
-
return [parsed, { status: "invalid" }];
|
|
37768
|
-
}
|
|
37769
|
-
const payload = parsed.value;
|
|
37770
|
-
const body = null;
|
|
37771
|
-
const path = pathToFunc("/v1/customers/export")();
|
|
37772
|
-
const query = encodeFormQuery({
|
|
37773
|
-
organization_id: payload.organization_id
|
|
38007
|
+
CustomerBalance$outboundSchema = objectType({
|
|
38008
|
+
balance: numberType().int(),
|
|
38009
|
+
currency: stringType()
|
|
37774
38010
|
});
|
|
37775
|
-
|
|
37776
|
-
|
|
37777
|
-
|
|
37778
|
-
|
|
37779
|
-
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
37780
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37781
|
-
const context = {
|
|
37782
|
-
options: client._options,
|
|
37783
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
37784
|
-
operationID: "customers:export",
|
|
37785
|
-
oAuth2Scopes: [],
|
|
37786
|
-
resolvedSecurity: requestSecurity,
|
|
37787
|
-
securitySource: client._options.accessToken,
|
|
37788
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
37789
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
37790
|
-
};
|
|
37791
|
-
const requestRes = client._createRequest(context, {
|
|
37792
|
-
security: requestSecurity,
|
|
37793
|
-
method: "GET",
|
|
37794
|
-
baseURL: options?.serverURL,
|
|
37795
|
-
path,
|
|
37796
|
-
headers,
|
|
37797
|
-
query,
|
|
37798
|
-
body,
|
|
37799
|
-
userAgent: client._options.userAgent,
|
|
37800
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
37801
|
-
}, options);
|
|
37802
|
-
if (!requestRes.ok) {
|
|
37803
|
-
return [requestRes, { status: "invalid" }];
|
|
37804
|
-
}
|
|
37805
|
-
const req = requestRes.value;
|
|
37806
|
-
const doResult = await client._do(req, {
|
|
37807
|
-
context,
|
|
37808
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
37809
|
-
retryConfig: context.retryConfig,
|
|
37810
|
-
retryCodes: context.retryCodes
|
|
37811
|
-
});
|
|
37812
|
-
if (!doResult.ok) {
|
|
37813
|
-
return [doResult, { status: "request-error", request: req }];
|
|
37814
|
-
}
|
|
37815
|
-
const response = doResult.value;
|
|
37816
|
-
const responseFields = {
|
|
37817
|
-
HttpMeta: { Response: response, Request: req }
|
|
37818
|
-
};
|
|
37819
|
-
const [result] = await match(json(200, anyType()), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37820
|
-
if (!result.ok) {
|
|
37821
|
-
return [result, { status: "complete", request: req, response }];
|
|
37822
|
-
}
|
|
37823
|
-
return [result, { status: "complete", request: req, response }];
|
|
37824
|
-
}
|
|
37825
|
-
var init_customersExport = __esm(() => {
|
|
37826
|
-
init_zod();
|
|
37827
|
-
init_encodings();
|
|
37828
|
-
init_matchers();
|
|
37829
|
-
init_primitives();
|
|
37830
|
-
init_schemas();
|
|
37831
|
-
init_security();
|
|
37832
|
-
init_url();
|
|
37833
|
-
init_httpvalidationerror();
|
|
37834
|
-
init_customersexport();
|
|
37835
|
-
init_async();
|
|
38011
|
+
((CustomerBalance$) => {
|
|
38012
|
+
CustomerBalance$.inboundSchema = CustomerBalance$inboundSchema;
|
|
38013
|
+
CustomerBalance$.outboundSchema = CustomerBalance$outboundSchema;
|
|
38014
|
+
})(CustomerBalance$ ||= {});
|
|
37836
38015
|
});
|
|
37837
38016
|
|
|
37838
|
-
// src/
|
|
37839
|
-
var
|
|
37840
|
-
var
|
|
37841
|
-
init_customersExport();
|
|
37842
|
-
init_customersexport();
|
|
37843
|
-
init_tools();
|
|
37844
|
-
args6 = {
|
|
37845
|
-
request: CustomersExportRequest$inboundSchema
|
|
37846
|
-
};
|
|
37847
|
-
tool$customersExport = {
|
|
37848
|
-
name: "customers-export",
|
|
37849
|
-
description: `Export Customers
|
|
37850
|
-
|
|
37851
|
-
Export customers as a CSV file.
|
|
37852
|
-
|
|
37853
|
-
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
37854
|
-
scopes: ["read", "customers"],
|
|
37855
|
-
args: args6,
|
|
37856
|
-
tool: async (client, args7, ctx) => {
|
|
37857
|
-
const [result, apiCall] = await customersExport(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
37858
|
-
if (!result.ok) {
|
|
37859
|
-
return {
|
|
37860
|
-
content: [{ type: "text", text: result.error.message }],
|
|
37861
|
-
isError: true
|
|
37862
|
-
};
|
|
37863
|
-
}
|
|
37864
|
-
const value = result.value;
|
|
37865
|
-
return formatResult(value, apiCall);
|
|
37866
|
-
}
|
|
37867
|
-
};
|
|
37868
|
-
});
|
|
37869
|
-
|
|
37870
|
-
// src/models/operations/customersget.ts
|
|
37871
|
-
var CustomersGetRequest$inboundSchema, CustomersGetRequest$outboundSchema, CustomersGetRequest$;
|
|
37872
|
-
var init_customersget = __esm(() => {
|
|
38017
|
+
// src/models/operations/customersgetbalance.ts
|
|
38018
|
+
var CustomersGetBalanceRequest$inboundSchema, CustomersGetBalanceRequest$outboundSchema, CustomersGetBalanceRequest$;
|
|
38019
|
+
var init_customersgetbalance = __esm(() => {
|
|
37873
38020
|
init_zod();
|
|
37874
|
-
|
|
38021
|
+
CustomersGetBalanceRequest$inboundSchema = objectType({
|
|
37875
38022
|
id: stringType()
|
|
37876
38023
|
});
|
|
37877
|
-
|
|
38024
|
+
CustomersGetBalanceRequest$outboundSchema = objectType({
|
|
37878
38025
|
id: stringType()
|
|
37879
38026
|
});
|
|
37880
|
-
((
|
|
37881
|
-
|
|
37882
|
-
|
|
37883
|
-
})(
|
|
38027
|
+
((CustomersGetBalanceRequest$) => {
|
|
38028
|
+
CustomersGetBalanceRequest$.inboundSchema = CustomersGetBalanceRequest$inboundSchema;
|
|
38029
|
+
CustomersGetBalanceRequest$.outboundSchema = CustomersGetBalanceRequest$outboundSchema;
|
|
38030
|
+
})(CustomersGetBalanceRequest$ ||= {});
|
|
37884
38031
|
});
|
|
37885
38032
|
|
|
37886
|
-
// src/funcs/
|
|
37887
|
-
function
|
|
37888
|
-
return new APIPromise($
|
|
38033
|
+
// src/funcs/customersGetBalance.ts
|
|
38034
|
+
function customersGetBalance(client, request, options) {
|
|
38035
|
+
return new APIPromise($do8(client, request, options));
|
|
37889
38036
|
}
|
|
37890
|
-
async function $
|
|
37891
|
-
const parsed = safeParse(request, (value) =>
|
|
38037
|
+
async function $do8(client, request, options) {
|
|
38038
|
+
const parsed = safeParse(request, (value) => CustomersGetBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
37892
38039
|
if (!parsed.ok) {
|
|
37893
38040
|
return [parsed, { status: "invalid" }];
|
|
37894
38041
|
}
|
|
@@ -37900,7 +38047,7 @@ async function $do7(client, request, options) {
|
|
|
37900
38047
|
charEncoding: "percent"
|
|
37901
38048
|
})
|
|
37902
38049
|
};
|
|
37903
|
-
const path = pathToFunc("/v1/customers/{id}")(pathParams);
|
|
38050
|
+
const path = pathToFunc("/v1/customers/{id}/balance")(pathParams);
|
|
37904
38051
|
const headers = new Headers(compactMap({
|
|
37905
38052
|
Accept: "application/json"
|
|
37906
38053
|
}));
|
|
@@ -37910,7 +38057,7 @@ async function $do7(client, request, options) {
|
|
|
37910
38057
|
const context = {
|
|
37911
38058
|
options: client._options,
|
|
37912
38059
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
37913
|
-
operationID: "customers:
|
|
38060
|
+
operationID: "customers:get_balance",
|
|
37914
38061
|
oAuth2Scopes: [],
|
|
37915
38062
|
resolvedSecurity: requestSecurity,
|
|
37916
38063
|
securitySource: client._options.accessToken,
|
|
@@ -37944,46 +38091,46 @@ async function $do7(client, request, options) {
|
|
|
37944
38091
|
const responseFields = {
|
|
37945
38092
|
HttpMeta: { Response: response, Request: req }
|
|
37946
38093
|
};
|
|
37947
|
-
const [result] = await match(json(200,
|
|
38094
|
+
const [result] = await match(json(200, CustomerBalance$inboundSchema), jsonErr(404, ResourceNotFound$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
37948
38095
|
if (!result.ok) {
|
|
37949
38096
|
return [result, { status: "complete", request: req, response }];
|
|
37950
38097
|
}
|
|
37951
38098
|
return [result, { status: "complete", request: req, response }];
|
|
37952
38099
|
}
|
|
37953
|
-
var
|
|
38100
|
+
var init_customersGetBalance = __esm(() => {
|
|
37954
38101
|
init_encodings();
|
|
37955
38102
|
init_matchers();
|
|
37956
38103
|
init_primitives();
|
|
37957
38104
|
init_schemas();
|
|
37958
38105
|
init_security();
|
|
37959
38106
|
init_url();
|
|
37960
|
-
|
|
38107
|
+
init_customerbalance();
|
|
37961
38108
|
init_httpvalidationerror();
|
|
37962
38109
|
init_resourcenotfound();
|
|
37963
|
-
|
|
38110
|
+
init_customersgetbalance();
|
|
37964
38111
|
init_async();
|
|
37965
38112
|
});
|
|
37966
38113
|
|
|
37967
|
-
// src/mcp-server/tools/
|
|
37968
|
-
var
|
|
37969
|
-
var
|
|
37970
|
-
|
|
37971
|
-
|
|
38114
|
+
// src/mcp-server/tools/customersGetBalance.ts
|
|
38115
|
+
var args8, tool$customersGetBalance;
|
|
38116
|
+
var init_customersGetBalance2 = __esm(() => {
|
|
38117
|
+
init_customersGetBalance();
|
|
38118
|
+
init_customersgetbalance();
|
|
37972
38119
|
init_tools();
|
|
37973
|
-
|
|
37974
|
-
request:
|
|
38120
|
+
args8 = {
|
|
38121
|
+
request: CustomersGetBalanceRequest$inboundSchema
|
|
37975
38122
|
};
|
|
37976
|
-
tool$
|
|
37977
|
-
name: "customers-get",
|
|
37978
|
-
description: `Get Customer
|
|
38123
|
+
tool$customersGetBalance = {
|
|
38124
|
+
name: "customers-get-balance",
|
|
38125
|
+
description: `Get Customer Balance
|
|
37979
38126
|
|
|
37980
|
-
Get
|
|
38127
|
+
Get customer balance information.
|
|
37981
38128
|
|
|
37982
38129
|
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
37983
38130
|
scopes: ["read", "customers"],
|
|
37984
|
-
args:
|
|
37985
|
-
tool: async (client,
|
|
37986
|
-
const [result, apiCall] = await
|
|
38131
|
+
args: args8,
|
|
38132
|
+
tool: async (client, args9, ctx) => {
|
|
38133
|
+
const [result, apiCall] = await customersGetBalance(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
37987
38134
|
if (!result.ok) {
|
|
37988
38135
|
return {
|
|
37989
38136
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -38023,9 +38170,9 @@ var init_customersgetexternal = __esm(() => {
|
|
|
38023
38170
|
|
|
38024
38171
|
// src/funcs/customersGetExternal.ts
|
|
38025
38172
|
function customersGetExternal(client, request, options) {
|
|
38026
|
-
return new APIPromise($
|
|
38173
|
+
return new APIPromise($do9(client, request, options));
|
|
38027
38174
|
}
|
|
38028
|
-
async function $
|
|
38175
|
+
async function $do9(client, request, options) {
|
|
38029
38176
|
const parsed = safeParse(request, (value) => CustomersGetExternalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
38030
38177
|
if (!parsed.ok) {
|
|
38031
38178
|
return [parsed, { status: "invalid" }];
|
|
@@ -38103,12 +38250,12 @@ var init_customersGetExternal = __esm(() => {
|
|
|
38103
38250
|
});
|
|
38104
38251
|
|
|
38105
38252
|
// src/mcp-server/tools/customersGetExternal.ts
|
|
38106
|
-
var
|
|
38253
|
+
var args9, tool$customersGetExternal;
|
|
38107
38254
|
var init_customersGetExternal2 = __esm(() => {
|
|
38108
38255
|
init_customersGetExternal();
|
|
38109
38256
|
init_customersgetexternal();
|
|
38110
38257
|
init_tools();
|
|
38111
|
-
|
|
38258
|
+
args9 = {
|
|
38112
38259
|
request: CustomersGetExternalRequest$inboundSchema
|
|
38113
38260
|
};
|
|
38114
38261
|
tool$customersGetExternal = {
|
|
@@ -38119,9 +38266,9 @@ Get a customer by external ID.
|
|
|
38119
38266
|
|
|
38120
38267
|
**Scopes**: \`customers:read\` \`customers:write\``,
|
|
38121
38268
|
scopes: ["read", "customers"],
|
|
38122
|
-
args:
|
|
38123
|
-
tool: async (client,
|
|
38124
|
-
const [result, apiCall] = await customersGetExternal(client,
|
|
38269
|
+
args: args9,
|
|
38270
|
+
tool: async (client, args10, ctx) => {
|
|
38271
|
+
const [result, apiCall] = await customersGetExternal(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
38125
38272
|
if (!result.ok) {
|
|
38126
38273
|
return {
|
|
38127
38274
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -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 }],
|
|
@@ -45311,6 +45462,65 @@ var init_productpricemeteredunit = __esm(() => {
|
|
|
45311
45462
|
})(ProductPriceMeteredUnit$ ||= {});
|
|
45312
45463
|
});
|
|
45313
45464
|
|
|
45465
|
+
// src/models/components/productpriceseatbased.ts
|
|
45466
|
+
var ProductPriceSeatBased$inboundSchema, ProductPriceSeatBased$outboundSchema, ProductPriceSeatBased$;
|
|
45467
|
+
var init_productpriceseatbased = __esm(() => {
|
|
45468
|
+
init_zod();
|
|
45469
|
+
init_primitives();
|
|
45470
|
+
init_productpricetype();
|
|
45471
|
+
init_subscriptionrecurringinterval();
|
|
45472
|
+
ProductPriceSeatBased$inboundSchema = objectType({
|
|
45473
|
+
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
45474
|
+
modified_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
|
|
45475
|
+
id: stringType(),
|
|
45476
|
+
amount_type: literalType("seat_based"),
|
|
45477
|
+
is_archived: booleanType(),
|
|
45478
|
+
product_id: stringType(),
|
|
45479
|
+
type: ProductPriceType$inboundSchema,
|
|
45480
|
+
recurring_interval: nullableType(SubscriptionRecurringInterval$inboundSchema),
|
|
45481
|
+
price_currency: stringType(),
|
|
45482
|
+
price_per_seat: numberType().int()
|
|
45483
|
+
}).transform((v2) => {
|
|
45484
|
+
return remap(v2, {
|
|
45485
|
+
created_at: "createdAt",
|
|
45486
|
+
modified_at: "modifiedAt",
|
|
45487
|
+
amount_type: "amountType",
|
|
45488
|
+
is_archived: "isArchived",
|
|
45489
|
+
product_id: "productId",
|
|
45490
|
+
recurring_interval: "recurringInterval",
|
|
45491
|
+
price_currency: "priceCurrency",
|
|
45492
|
+
price_per_seat: "pricePerSeat"
|
|
45493
|
+
});
|
|
45494
|
+
});
|
|
45495
|
+
ProductPriceSeatBased$outboundSchema = objectType({
|
|
45496
|
+
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
45497
|
+
modifiedAt: nullableType(dateType().transform((v2) => v2.toISOString())),
|
|
45498
|
+
id: stringType(),
|
|
45499
|
+
amountType: literalType("seat_based"),
|
|
45500
|
+
isArchived: booleanType(),
|
|
45501
|
+
productId: stringType(),
|
|
45502
|
+
type: ProductPriceType$outboundSchema,
|
|
45503
|
+
recurringInterval: nullableType(SubscriptionRecurringInterval$outboundSchema),
|
|
45504
|
+
priceCurrency: stringType(),
|
|
45505
|
+
pricePerSeat: numberType().int()
|
|
45506
|
+
}).transform((v2) => {
|
|
45507
|
+
return remap(v2, {
|
|
45508
|
+
createdAt: "created_at",
|
|
45509
|
+
modifiedAt: "modified_at",
|
|
45510
|
+
amountType: "amount_type",
|
|
45511
|
+
isArchived: "is_archived",
|
|
45512
|
+
productId: "product_id",
|
|
45513
|
+
recurringInterval: "recurring_interval",
|
|
45514
|
+
priceCurrency: "price_currency",
|
|
45515
|
+
pricePerSeat: "price_per_seat"
|
|
45516
|
+
});
|
|
45517
|
+
});
|
|
45518
|
+
((ProductPriceSeatBased$) => {
|
|
45519
|
+
ProductPriceSeatBased$.inboundSchema = ProductPriceSeatBased$inboundSchema;
|
|
45520
|
+
ProductPriceSeatBased$.outboundSchema = ProductPriceSeatBased$outboundSchema;
|
|
45521
|
+
})(ProductPriceSeatBased$ ||= {});
|
|
45522
|
+
});
|
|
45523
|
+
|
|
45314
45524
|
// src/models/components/productprice.ts
|
|
45315
45525
|
var ProductPrice$inboundSchema, ProductPrice$outboundSchema, ProductPrice$;
|
|
45316
45526
|
var init_productprice = __esm(() => {
|
|
@@ -45319,6 +45529,7 @@ var init_productprice = __esm(() => {
|
|
|
45319
45529
|
init_productpricefixed();
|
|
45320
45530
|
init_productpricefree();
|
|
45321
45531
|
init_productpricemeteredunit();
|
|
45532
|
+
init_productpriceseatbased();
|
|
45322
45533
|
ProductPrice$inboundSchema = unionType([
|
|
45323
45534
|
ProductPriceMeteredUnit$inboundSchema.and(objectType({ amount_type: literalType("metered_unit") }).transform((v2) => ({
|
|
45324
45535
|
amountType: v2.amount_type
|
|
@@ -45329,6 +45540,9 @@ var init_productprice = __esm(() => {
|
|
|
45329
45540
|
ProductPriceFixed$inboundSchema.and(objectType({ amount_type: literalType("fixed") }).transform((v2) => ({
|
|
45330
45541
|
amountType: v2.amount_type
|
|
45331
45542
|
}))),
|
|
45543
|
+
ProductPriceSeatBased$inboundSchema.and(objectType({ amount_type: literalType("seat_based") }).transform((v2) => ({
|
|
45544
|
+
amountType: v2.amount_type
|
|
45545
|
+
}))),
|
|
45332
45546
|
ProductPriceFree$inboundSchema.and(objectType({ amount_type: literalType("free") }).transform((v2) => ({
|
|
45333
45547
|
amountType: v2.amount_type
|
|
45334
45548
|
})))
|
|
@@ -45343,6 +45557,9 @@ var init_productprice = __esm(() => {
|
|
|
45343
45557
|
ProductPriceFixed$outboundSchema.and(objectType({ amountType: literalType("fixed") }).transform((v2) => ({
|
|
45344
45558
|
amount_type: v2.amountType
|
|
45345
45559
|
}))),
|
|
45560
|
+
ProductPriceSeatBased$outboundSchema.and(objectType({ amountType: literalType("seat_based") }).transform((v2) => ({
|
|
45561
|
+
amount_type: v2.amountType
|
|
45562
|
+
}))),
|
|
45346
45563
|
ProductPriceFree$outboundSchema.and(objectType({ amountType: literalType("free") }).transform((v2) => ({
|
|
45347
45564
|
amount_type: v2.amountType
|
|
45348
45565
|
})))
|
|
@@ -45628,6 +45845,39 @@ var init_productpricemeteredunitcreate = __esm(() => {
|
|
|
45628
45845
|
})(ProductPriceMeteredUnitCreate$ ||= {});
|
|
45629
45846
|
});
|
|
45630
45847
|
|
|
45848
|
+
// src/models/components/productpriceseatbasedcreate.ts
|
|
45849
|
+
var ProductPriceSeatBasedCreate$inboundSchema, ProductPriceSeatBasedCreate$outboundSchema, ProductPriceSeatBasedCreate$;
|
|
45850
|
+
var init_productpriceseatbasedcreate = __esm(() => {
|
|
45851
|
+
init_zod();
|
|
45852
|
+
init_primitives();
|
|
45853
|
+
ProductPriceSeatBasedCreate$inboundSchema = objectType({
|
|
45854
|
+
amount_type: literalType("seat_based"),
|
|
45855
|
+
price_currency: stringType().default("usd"),
|
|
45856
|
+
price_per_seat: numberType().int()
|
|
45857
|
+
}).transform((v2) => {
|
|
45858
|
+
return remap(v2, {
|
|
45859
|
+
amount_type: "amountType",
|
|
45860
|
+
price_currency: "priceCurrency",
|
|
45861
|
+
price_per_seat: "pricePerSeat"
|
|
45862
|
+
});
|
|
45863
|
+
});
|
|
45864
|
+
ProductPriceSeatBasedCreate$outboundSchema = objectType({
|
|
45865
|
+
amountType: literalType("seat_based"),
|
|
45866
|
+
priceCurrency: stringType().default("usd"),
|
|
45867
|
+
pricePerSeat: numberType().int()
|
|
45868
|
+
}).transform((v2) => {
|
|
45869
|
+
return remap(v2, {
|
|
45870
|
+
amountType: "amount_type",
|
|
45871
|
+
priceCurrency: "price_currency",
|
|
45872
|
+
pricePerSeat: "price_per_seat"
|
|
45873
|
+
});
|
|
45874
|
+
});
|
|
45875
|
+
((ProductPriceSeatBasedCreate$) => {
|
|
45876
|
+
ProductPriceSeatBasedCreate$.inboundSchema = ProductPriceSeatBasedCreate$inboundSchema;
|
|
45877
|
+
ProductPriceSeatBasedCreate$.outboundSchema = ProductPriceSeatBasedCreate$outboundSchema;
|
|
45878
|
+
})(ProductPriceSeatBasedCreate$ ||= {});
|
|
45879
|
+
});
|
|
45880
|
+
|
|
45631
45881
|
// src/models/components/productcreateonetime.ts
|
|
45632
45882
|
var ProductCreateOneTimeMetadata$inboundSchema, ProductCreateOneTimeMetadata$outboundSchema, ProductCreateOneTimeMetadata$, ProductCreateOneTimePrices$inboundSchema, ProductCreateOneTimePrices$outboundSchema, ProductCreateOneTimePrices$, ProductCreateOneTime$inboundSchema, ProductCreateOneTime$outboundSchema, ProductCreateOneTime$;
|
|
45633
45883
|
var init_productcreateonetime = __esm(() => {
|
|
@@ -45638,6 +45888,7 @@ var init_productcreateonetime = __esm(() => {
|
|
|
45638
45888
|
init_productpricefixedcreate();
|
|
45639
45889
|
init_productpricefreecreate();
|
|
45640
45890
|
init_productpricemeteredunitcreate();
|
|
45891
|
+
init_productpriceseatbasedcreate();
|
|
45641
45892
|
ProductCreateOneTimeMetadata$inboundSchema = unionType([stringType(), numberType().int(), numberType(), booleanType()]);
|
|
45642
45893
|
ProductCreateOneTimeMetadata$outboundSchema = unionType([stringType(), numberType().int(), numberType(), booleanType()]);
|
|
45643
45894
|
((ProductCreateOneTimeMetadata$) => {
|
|
@@ -45647,12 +45898,14 @@ var init_productcreateonetime = __esm(() => {
|
|
|
45647
45898
|
ProductCreateOneTimePrices$inboundSchema = unionType([
|
|
45648
45899
|
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
45649
45900
|
ProductPriceFixedCreate$inboundSchema,
|
|
45901
|
+
ProductPriceSeatBasedCreate$inboundSchema,
|
|
45650
45902
|
ProductPriceCustomCreate$inboundSchema,
|
|
45651
45903
|
ProductPriceFreeCreate$inboundSchema
|
|
45652
45904
|
]);
|
|
45653
45905
|
ProductCreateOneTimePrices$outboundSchema = unionType([
|
|
45654
45906
|
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
45655
45907
|
ProductPriceFixedCreate$outboundSchema,
|
|
45908
|
+
ProductPriceSeatBasedCreate$outboundSchema,
|
|
45656
45909
|
ProductPriceCustomCreate$outboundSchema,
|
|
45657
45910
|
ProductPriceFreeCreate$outboundSchema
|
|
45658
45911
|
]);
|
|
@@ -45667,6 +45920,7 @@ var init_productcreateonetime = __esm(() => {
|
|
|
45667
45920
|
prices: arrayType(unionType([
|
|
45668
45921
|
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
45669
45922
|
ProductPriceFixedCreate$inboundSchema,
|
|
45923
|
+
ProductPriceSeatBasedCreate$inboundSchema,
|
|
45670
45924
|
ProductPriceCustomCreate$inboundSchema,
|
|
45671
45925
|
ProductPriceFreeCreate$inboundSchema
|
|
45672
45926
|
])),
|
|
@@ -45688,6 +45942,7 @@ var init_productcreateonetime = __esm(() => {
|
|
|
45688
45942
|
prices: arrayType(unionType([
|
|
45689
45943
|
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
45690
45944
|
ProductPriceFixedCreate$outboundSchema,
|
|
45945
|
+
ProductPriceSeatBasedCreate$outboundSchema,
|
|
45691
45946
|
ProductPriceCustomCreate$outboundSchema,
|
|
45692
45947
|
ProductPriceFreeCreate$outboundSchema
|
|
45693
45948
|
])),
|
|
@@ -45718,6 +45973,7 @@ var init_productcreaterecurring = __esm(() => {
|
|
|
45718
45973
|
init_productpricefixedcreate();
|
|
45719
45974
|
init_productpricefreecreate();
|
|
45720
45975
|
init_productpricemeteredunitcreate();
|
|
45976
|
+
init_productpriceseatbasedcreate();
|
|
45721
45977
|
init_subscriptionrecurringinterval();
|
|
45722
45978
|
init_trialinterval();
|
|
45723
45979
|
ProductCreateRecurringMetadata$inboundSchema = unionType([stringType(), numberType().int(), numberType(), booleanType()]);
|
|
@@ -45729,12 +45985,14 @@ var init_productcreaterecurring = __esm(() => {
|
|
|
45729
45985
|
ProductCreateRecurringPrices$inboundSchema = unionType([
|
|
45730
45986
|
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
45731
45987
|
ProductPriceFixedCreate$inboundSchema,
|
|
45988
|
+
ProductPriceSeatBasedCreate$inboundSchema,
|
|
45732
45989
|
ProductPriceCustomCreate$inboundSchema,
|
|
45733
45990
|
ProductPriceFreeCreate$inboundSchema
|
|
45734
45991
|
]);
|
|
45735
45992
|
ProductCreateRecurringPrices$outboundSchema = unionType([
|
|
45736
45993
|
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
45737
45994
|
ProductPriceFixedCreate$outboundSchema,
|
|
45995
|
+
ProductPriceSeatBasedCreate$outboundSchema,
|
|
45738
45996
|
ProductPriceCustomCreate$outboundSchema,
|
|
45739
45997
|
ProductPriceFreeCreate$outboundSchema
|
|
45740
45998
|
]);
|
|
@@ -45749,6 +46007,7 @@ var init_productcreaterecurring = __esm(() => {
|
|
|
45749
46007
|
prices: arrayType(unionType([
|
|
45750
46008
|
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
45751
46009
|
ProductPriceFixedCreate$inboundSchema,
|
|
46010
|
+
ProductPriceSeatBasedCreate$inboundSchema,
|
|
45752
46011
|
ProductPriceCustomCreate$inboundSchema,
|
|
45753
46012
|
ProductPriceFreeCreate$inboundSchema
|
|
45754
46013
|
])),
|
|
@@ -45774,6 +46033,7 @@ var init_productcreaterecurring = __esm(() => {
|
|
|
45774
46033
|
prices: arrayType(unionType([
|
|
45775
46034
|
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
45776
46035
|
ProductPriceFixedCreate$outboundSchema,
|
|
46036
|
+
ProductPriceSeatBasedCreate$outboundSchema,
|
|
45777
46037
|
ProductPriceCustomCreate$outboundSchema,
|
|
45778
46038
|
ProductPriceFreeCreate$outboundSchema
|
|
45779
46039
|
])),
|
|
@@ -45820,9 +46080,9 @@ var init_productcreate = __esm(() => {
|
|
|
45820
46080
|
|
|
45821
46081
|
// src/funcs/productsCreate.ts
|
|
45822
46082
|
function productsCreate(client, request, options) {
|
|
45823
|
-
return new APIPromise($
|
|
46083
|
+
return new APIPromise($do24(client, request, options));
|
|
45824
46084
|
}
|
|
45825
|
-
async function $
|
|
46085
|
+
async function $do24(client, request, options) {
|
|
45826
46086
|
const parsed = safeParse(request, (value) => ProductCreate$outboundSchema.parse(value), "Input validation failed");
|
|
45827
46087
|
if (!parsed.ok) {
|
|
45828
46088
|
return [parsed, { status: "invalid" }];
|
|
@@ -45894,12 +46154,12 @@ var init_productsCreate = __esm(() => {
|
|
|
45894
46154
|
});
|
|
45895
46155
|
|
|
45896
46156
|
// src/mcp-server/tools/productsCreate.ts
|
|
45897
|
-
var
|
|
46157
|
+
var args23, tool$productsCreate;
|
|
45898
46158
|
var init_productsCreate2 = __esm(() => {
|
|
45899
46159
|
init_productsCreate();
|
|
45900
46160
|
init_productcreate();
|
|
45901
46161
|
init_tools();
|
|
45902
|
-
|
|
46162
|
+
args23 = {
|
|
45903
46163
|
request: ProductCreate$inboundSchema
|
|
45904
46164
|
};
|
|
45905
46165
|
tool$productsCreate = {
|
|
@@ -45910,9 +46170,9 @@ Create a product.
|
|
|
45910
46170
|
|
|
45911
46171
|
**Scopes**: \`products:write\``,
|
|
45912
46172
|
scopes: ["write", "products"],
|
|
45913
|
-
args:
|
|
45914
|
-
tool: async (client,
|
|
45915
|
-
const [result, apiCall] = await productsCreate(client,
|
|
46173
|
+
args: args23,
|
|
46174
|
+
tool: async (client, args24, ctx) => {
|
|
46175
|
+
const [result, apiCall] = await productsCreate(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45916
46176
|
if (!result.ok) {
|
|
45917
46177
|
return {
|
|
45918
46178
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45943,9 +46203,9 @@ var init_productsget = __esm(() => {
|
|
|
45943
46203
|
|
|
45944
46204
|
// src/funcs/productsGet.ts
|
|
45945
46205
|
function productsGet(client, request, options) {
|
|
45946
|
-
return new APIPromise($
|
|
46206
|
+
return new APIPromise($do25(client, request, options));
|
|
45947
46207
|
}
|
|
45948
|
-
async function $
|
|
46208
|
+
async function $do25(client, request, options) {
|
|
45949
46209
|
const parsed = safeParse(request, (value) => ProductsGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45950
46210
|
if (!parsed.ok) {
|
|
45951
46211
|
return [parsed, { status: "invalid" }];
|
|
@@ -46023,12 +46283,12 @@ var init_productsGet = __esm(() => {
|
|
|
46023
46283
|
});
|
|
46024
46284
|
|
|
46025
46285
|
// src/mcp-server/tools/productsGet.ts
|
|
46026
|
-
var
|
|
46286
|
+
var args24, tool$productsGet;
|
|
46027
46287
|
var init_productsGet2 = __esm(() => {
|
|
46028
46288
|
init_productsGet();
|
|
46029
46289
|
init_productsget();
|
|
46030
46290
|
init_tools();
|
|
46031
|
-
|
|
46291
|
+
args24 = {
|
|
46032
46292
|
request: ProductsGetRequest$inboundSchema
|
|
46033
46293
|
};
|
|
46034
46294
|
tool$productsGet = {
|
|
@@ -46039,9 +46299,9 @@ Get a product by ID.
|
|
|
46039
46299
|
|
|
46040
46300
|
**Scopes**: \`products:read\` \`products:write\``,
|
|
46041
46301
|
scopes: ["read", "products"],
|
|
46042
|
-
args:
|
|
46043
|
-
tool: async (client,
|
|
46044
|
-
const [result, apiCall] = await productsGet(client,
|
|
46302
|
+
args: args24,
|
|
46303
|
+
tool: async (client, args25, ctx) => {
|
|
46304
|
+
const [result, apiCall] = await productsGet(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46045
46305
|
if (!result.ok) {
|
|
46046
46306
|
return {
|
|
46047
46307
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46186,9 +46446,9 @@ var init_productslist = __esm(() => {
|
|
|
46186
46446
|
|
|
46187
46447
|
// src/funcs/productsList.ts
|
|
46188
46448
|
function productsList(client, request, options) {
|
|
46189
|
-
return new APIPromise($
|
|
46449
|
+
return new APIPromise($do26(client, request, options));
|
|
46190
46450
|
}
|
|
46191
|
-
async function $
|
|
46451
|
+
async function $do26(client, request, options) {
|
|
46192
46452
|
const parsed = safeParse(request, (value) => ProductsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46193
46453
|
if (!parsed.ok) {
|
|
46194
46454
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46306,12 +46566,12 @@ var init_productsList = __esm(() => {
|
|
|
46306
46566
|
});
|
|
46307
46567
|
|
|
46308
46568
|
// src/mcp-server/tools/productsList.ts
|
|
46309
|
-
var
|
|
46569
|
+
var args25, tool$productsList;
|
|
46310
46570
|
var init_productsList2 = __esm(() => {
|
|
46311
46571
|
init_productsList();
|
|
46312
46572
|
init_productslist();
|
|
46313
46573
|
init_tools();
|
|
46314
|
-
|
|
46574
|
+
args25 = {
|
|
46315
46575
|
request: ProductsListRequest$inboundSchema
|
|
46316
46576
|
};
|
|
46317
46577
|
tool$productsList = {
|
|
@@ -46322,9 +46582,9 @@ List products.
|
|
|
46322
46582
|
|
|
46323
46583
|
**Scopes**: \`products:read\` \`products:write\``,
|
|
46324
46584
|
scopes: ["read", "products"],
|
|
46325
|
-
args:
|
|
46326
|
-
tool: async (client,
|
|
46327
|
-
const [result, apiCall] = await productsList(client,
|
|
46585
|
+
args: args25,
|
|
46586
|
+
tool: async (client, args26, ctx) => {
|
|
46587
|
+
const [result, apiCall] = await productsList(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46328
46588
|
if (!result.ok) {
|
|
46329
46589
|
return {
|
|
46330
46590
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46405,6 +46665,7 @@ var init_productupdate = __esm(() => {
|
|
|
46405
46665
|
init_productpricefixedcreate();
|
|
46406
46666
|
init_productpricefreecreate();
|
|
46407
46667
|
init_productpricemeteredunitcreate();
|
|
46668
|
+
init_productpriceseatbasedcreate();
|
|
46408
46669
|
init_subscriptionrecurringinterval();
|
|
46409
46670
|
init_trialinterval();
|
|
46410
46671
|
ProductUpdateMetadata$inboundSchema = unionType([stringType(), numberType().int(), numberType(), booleanType()]);
|
|
@@ -46416,6 +46677,7 @@ var init_productupdate = __esm(() => {
|
|
|
46416
46677
|
ProductUpdatePrices$inboundSchema = unionType([
|
|
46417
46678
|
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
46418
46679
|
ProductPriceFixedCreate$inboundSchema,
|
|
46680
|
+
ProductPriceSeatBasedCreate$inboundSchema,
|
|
46419
46681
|
ExistingProductPrice$inboundSchema,
|
|
46420
46682
|
ProductPriceCustomCreate$inboundSchema,
|
|
46421
46683
|
ProductPriceFreeCreate$inboundSchema
|
|
@@ -46423,6 +46685,7 @@ var init_productupdate = __esm(() => {
|
|
|
46423
46685
|
ProductUpdatePrices$outboundSchema = unionType([
|
|
46424
46686
|
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
46425
46687
|
ProductPriceFixedCreate$outboundSchema,
|
|
46688
|
+
ProductPriceSeatBasedCreate$outboundSchema,
|
|
46426
46689
|
ExistingProductPrice$outboundSchema,
|
|
46427
46690
|
ProductPriceCustomCreate$outboundSchema,
|
|
46428
46691
|
ProductPriceFreeCreate$outboundSchema
|
|
@@ -46442,6 +46705,7 @@ var init_productupdate = __esm(() => {
|
|
|
46442
46705
|
prices: nullableType(arrayType(unionType([
|
|
46443
46706
|
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
46444
46707
|
ProductPriceFixedCreate$inboundSchema,
|
|
46708
|
+
ProductPriceSeatBasedCreate$inboundSchema,
|
|
46445
46709
|
ExistingProductPrice$inboundSchema,
|
|
46446
46710
|
ProductPriceCustomCreate$inboundSchema,
|
|
46447
46711
|
ProductPriceFreeCreate$inboundSchema
|
|
@@ -46468,6 +46732,7 @@ var init_productupdate = __esm(() => {
|
|
|
46468
46732
|
prices: nullableType(arrayType(unionType([
|
|
46469
46733
|
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
46470
46734
|
ProductPriceFixedCreate$outboundSchema,
|
|
46735
|
+
ProductPriceSeatBasedCreate$outboundSchema,
|
|
46471
46736
|
ExistingProductPrice$outboundSchema,
|
|
46472
46737
|
ProductPriceCustomCreate$outboundSchema,
|
|
46473
46738
|
ProductPriceFreeCreate$outboundSchema
|
|
@@ -46519,9 +46784,9 @@ var init_productsupdate = __esm(() => {
|
|
|
46519
46784
|
|
|
46520
46785
|
// src/funcs/productsUpdate.ts
|
|
46521
46786
|
function productsUpdate(client, request, options) {
|
|
46522
|
-
return new APIPromise($
|
|
46787
|
+
return new APIPromise($do27(client, request, options));
|
|
46523
46788
|
}
|
|
46524
|
-
async function $
|
|
46789
|
+
async function $do27(client, request, options) {
|
|
46525
46790
|
const parsed = safeParse(request, (value) => ProductsUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46526
46791
|
if (!parsed.ok) {
|
|
46527
46792
|
return [parsed, { status: "invalid" }];
|
|
@@ -46601,12 +46866,12 @@ var init_productsUpdate = __esm(() => {
|
|
|
46601
46866
|
});
|
|
46602
46867
|
|
|
46603
46868
|
// src/mcp-server/tools/productsUpdate.ts
|
|
46604
|
-
var
|
|
46869
|
+
var args26, tool$productsUpdate;
|
|
46605
46870
|
var init_productsUpdate2 = __esm(() => {
|
|
46606
46871
|
init_productsUpdate();
|
|
46607
46872
|
init_productsupdate();
|
|
46608
46873
|
init_tools();
|
|
46609
|
-
|
|
46874
|
+
args26 = {
|
|
46610
46875
|
request: ProductsUpdateRequest$inboundSchema
|
|
46611
46876
|
};
|
|
46612
46877
|
tool$productsUpdate = {
|
|
@@ -46617,9 +46882,9 @@ Update a product.
|
|
|
46617
46882
|
|
|
46618
46883
|
**Scopes**: \`products:write\``,
|
|
46619
46884
|
scopes: ["write", "products"],
|
|
46620
|
-
args:
|
|
46621
|
-
tool: async (client,
|
|
46622
|
-
const [result, apiCall] = await productsUpdate(client,
|
|
46885
|
+
args: args26,
|
|
46886
|
+
tool: async (client, args27, ctx) => {
|
|
46887
|
+
const [result, apiCall] = await productsUpdate(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46623
46888
|
if (!result.ok) {
|
|
46624
46889
|
return {
|
|
46625
46890
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46678,9 +46943,9 @@ var init_productsupdatebenefits = __esm(() => {
|
|
|
46678
46943
|
|
|
46679
46944
|
// src/funcs/productsUpdateBenefits.ts
|
|
46680
46945
|
function productsUpdateBenefits(client, request, options) {
|
|
46681
|
-
return new APIPromise($
|
|
46946
|
+
return new APIPromise($do28(client, request, options));
|
|
46682
46947
|
}
|
|
46683
|
-
async function $
|
|
46948
|
+
async function $do28(client, request, options) {
|
|
46684
46949
|
const parsed = safeParse(request, (value) => ProductsUpdateBenefitsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46685
46950
|
if (!parsed.ok) {
|
|
46686
46951
|
return [parsed, { status: "invalid" }];
|
|
@@ -46762,12 +47027,12 @@ var init_productsUpdateBenefits = __esm(() => {
|
|
|
46762
47027
|
});
|
|
46763
47028
|
|
|
46764
47029
|
// src/mcp-server/tools/productsUpdateBenefits.ts
|
|
46765
|
-
var
|
|
47030
|
+
var args27, tool$productsUpdateBenefits;
|
|
46766
47031
|
var init_productsUpdateBenefits2 = __esm(() => {
|
|
46767
47032
|
init_productsUpdateBenefits();
|
|
46768
47033
|
init_productsupdatebenefits();
|
|
46769
47034
|
init_tools();
|
|
46770
|
-
|
|
47035
|
+
args27 = {
|
|
46771
47036
|
request: ProductsUpdateBenefitsRequest$inboundSchema
|
|
46772
47037
|
};
|
|
46773
47038
|
tool$productsUpdateBenefits = {
|
|
@@ -46778,9 +47043,9 @@ Update benefits granted by a product.
|
|
|
46778
47043
|
|
|
46779
47044
|
**Scopes**: \`products:write\``,
|
|
46780
47045
|
scopes: ["write", "products"],
|
|
46781
|
-
args:
|
|
46782
|
-
tool: async (client,
|
|
46783
|
-
const [result, apiCall] = await productsUpdateBenefits(client,
|
|
47046
|
+
args: args27,
|
|
47047
|
+
tool: async (client, args28, ctx) => {
|
|
47048
|
+
const [result, apiCall] = await productsUpdateBenefits(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46784
47049
|
if (!result.ok) {
|
|
46785
47050
|
return {
|
|
46786
47051
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46826,9 +47091,9 @@ var init_subscriptionsexport = __esm(() => {
|
|
|
46826
47091
|
|
|
46827
47092
|
// src/funcs/subscriptionsExport.ts
|
|
46828
47093
|
function subscriptionsExport(client, request, options) {
|
|
46829
|
-
return new APIPromise($
|
|
47094
|
+
return new APIPromise($do29(client, request, options));
|
|
46830
47095
|
}
|
|
46831
|
-
async function $
|
|
47096
|
+
async function $do29(client, request, options) {
|
|
46832
47097
|
const parsed = safeParse(request, (value) => SubscriptionsExportRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46833
47098
|
if (!parsed.ok) {
|
|
46834
47099
|
return [parsed, { status: "invalid" }];
|
|
@@ -46903,12 +47168,12 @@ var init_subscriptionsExport = __esm(() => {
|
|
|
46903
47168
|
});
|
|
46904
47169
|
|
|
46905
47170
|
// src/mcp-server/tools/subscriptionsExport.ts
|
|
46906
|
-
var
|
|
47171
|
+
var args28, tool$subscriptionsExport;
|
|
46907
47172
|
var init_subscriptionsExport2 = __esm(() => {
|
|
46908
47173
|
init_subscriptionsExport();
|
|
46909
47174
|
init_subscriptionsexport();
|
|
46910
47175
|
init_tools();
|
|
46911
|
-
|
|
47176
|
+
args28 = {
|
|
46912
47177
|
request: SubscriptionsExportRequest$inboundSchema
|
|
46913
47178
|
};
|
|
46914
47179
|
tool$subscriptionsExport = {
|
|
@@ -46919,9 +47184,9 @@ Export subscriptions as a CSV file.
|
|
|
46919
47184
|
|
|
46920
47185
|
**Scopes**: \`subscriptions:read\` \`subscriptions:write\``,
|
|
46921
47186
|
scopes: ["read", "subscriptions"],
|
|
46922
|
-
args:
|
|
46923
|
-
tool: async (client,
|
|
46924
|
-
const [result, apiCall] = await subscriptionsExport(client,
|
|
47187
|
+
args: args28,
|
|
47188
|
+
tool: async (client, args29, ctx) => {
|
|
47189
|
+
const [result, apiCall] = await subscriptionsExport(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46925
47190
|
if (!result.ok) {
|
|
46926
47191
|
return {
|
|
46927
47192
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47284,9 +47549,9 @@ var init_subscriptionsget = __esm(() => {
|
|
|
47284
47549
|
|
|
47285
47550
|
// src/funcs/subscriptionsGet.ts
|
|
47286
47551
|
function subscriptionsGet(client, request, options) {
|
|
47287
|
-
return new APIPromise($
|
|
47552
|
+
return new APIPromise($do30(client, request, options));
|
|
47288
47553
|
}
|
|
47289
|
-
async function $
|
|
47554
|
+
async function $do30(client, request, options) {
|
|
47290
47555
|
const parsed = safeParse(request, (value) => SubscriptionsGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47291
47556
|
if (!parsed.ok) {
|
|
47292
47557
|
return [parsed, { status: "invalid" }];
|
|
@@ -47364,12 +47629,12 @@ var init_subscriptionsGet = __esm(() => {
|
|
|
47364
47629
|
});
|
|
47365
47630
|
|
|
47366
47631
|
// src/mcp-server/tools/subscriptionsGet.ts
|
|
47367
|
-
var
|
|
47632
|
+
var args29, tool$subscriptionsGet;
|
|
47368
47633
|
var init_subscriptionsGet2 = __esm(() => {
|
|
47369
47634
|
init_subscriptionsGet();
|
|
47370
47635
|
init_subscriptionsget();
|
|
47371
47636
|
init_tools();
|
|
47372
|
-
|
|
47637
|
+
args29 = {
|
|
47373
47638
|
request: SubscriptionsGetRequest$inboundSchema
|
|
47374
47639
|
};
|
|
47375
47640
|
tool$subscriptionsGet = {
|
|
@@ -47380,9 +47645,9 @@ Get a subscription by ID.
|
|
|
47380
47645
|
|
|
47381
47646
|
**Scopes**: \`subscriptions:read\` \`subscriptions:write\``,
|
|
47382
47647
|
scopes: ["read", "subscriptions"],
|
|
47383
|
-
args:
|
|
47384
|
-
tool: async (client,
|
|
47385
|
-
const [result, apiCall] = await subscriptionsGet(client,
|
|
47648
|
+
args: args29,
|
|
47649
|
+
tool: async (client, args30, ctx) => {
|
|
47650
|
+
const [result, apiCall] = await subscriptionsGet(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47386
47651
|
if (!result.ok) {
|
|
47387
47652
|
return {
|
|
47388
47653
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47547,9 +47812,9 @@ var init_subscriptionslist2 = __esm(() => {
|
|
|
47547
47812
|
|
|
47548
47813
|
// src/funcs/subscriptionsList.ts
|
|
47549
47814
|
function subscriptionsList(client, request, options) {
|
|
47550
|
-
return new APIPromise($
|
|
47815
|
+
return new APIPromise($do31(client, request, options));
|
|
47551
47816
|
}
|
|
47552
|
-
async function $
|
|
47817
|
+
async function $do31(client, request, options) {
|
|
47553
47818
|
const parsed = safeParse(request, (value) => SubscriptionsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47554
47819
|
if (!parsed.ok) {
|
|
47555
47820
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47667,12 +47932,12 @@ var init_subscriptionsList = __esm(() => {
|
|
|
47667
47932
|
});
|
|
47668
47933
|
|
|
47669
47934
|
// src/mcp-server/tools/subscriptionsList.ts
|
|
47670
|
-
var
|
|
47935
|
+
var args30, tool$subscriptionsList;
|
|
47671
47936
|
var init_subscriptionsList2 = __esm(() => {
|
|
47672
47937
|
init_subscriptionsList();
|
|
47673
47938
|
init_subscriptionslist2();
|
|
47674
47939
|
init_tools();
|
|
47675
|
-
|
|
47940
|
+
args30 = {
|
|
47676
47941
|
request: SubscriptionsListRequest$inboundSchema
|
|
47677
47942
|
};
|
|
47678
47943
|
tool$subscriptionsList = {
|
|
@@ -47683,9 +47948,9 @@ List subscriptions.
|
|
|
47683
47948
|
|
|
47684
47949
|
**Scopes**: \`subscriptions:read\` \`subscriptions:write\``,
|
|
47685
47950
|
scopes: ["read", "subscriptions"],
|
|
47686
|
-
args:
|
|
47687
|
-
tool: async (client,
|
|
47688
|
-
const [result, apiCall] = await subscriptionsList(client,
|
|
47951
|
+
args: args30,
|
|
47952
|
+
tool: async (client, args31, ctx) => {
|
|
47953
|
+
const [result, apiCall] = await subscriptionsList(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47689
47954
|
if (!result.ok) {
|
|
47690
47955
|
return {
|
|
47691
47956
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47798,9 +48063,9 @@ var init_subscriptionsrevoke = __esm(() => {
|
|
|
47798
48063
|
|
|
47799
48064
|
// src/funcs/subscriptionsRevoke.ts
|
|
47800
48065
|
function subscriptionsRevoke(client, request, options) {
|
|
47801
|
-
return new APIPromise($
|
|
48066
|
+
return new APIPromise($do32(client, request, options));
|
|
47802
48067
|
}
|
|
47803
|
-
async function $
|
|
48068
|
+
async function $do32(client, request, options) {
|
|
47804
48069
|
const parsed = safeParse(request, (value) => SubscriptionsRevokeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47805
48070
|
if (!parsed.ok) {
|
|
47806
48071
|
return [parsed, { status: "invalid" }];
|
|
@@ -47880,12 +48145,12 @@ var init_subscriptionsRevoke = __esm(() => {
|
|
|
47880
48145
|
});
|
|
47881
48146
|
|
|
47882
48147
|
// src/mcp-server/tools/subscriptionsRevoke.ts
|
|
47883
|
-
var
|
|
48148
|
+
var args31, tool$subscriptionsRevoke;
|
|
47884
48149
|
var init_subscriptionsRevoke2 = __esm(() => {
|
|
47885
48150
|
init_subscriptionsRevoke();
|
|
47886
48151
|
init_subscriptionsrevoke();
|
|
47887
48152
|
init_tools();
|
|
47888
|
-
|
|
48153
|
+
args31 = {
|
|
47889
48154
|
request: SubscriptionsRevokeRequest$inboundSchema
|
|
47890
48155
|
};
|
|
47891
48156
|
tool$subscriptionsRevoke = {
|
|
@@ -47896,9 +48161,9 @@ Revoke a subscription, i.e cancel immediately.
|
|
|
47896
48161
|
|
|
47897
48162
|
**Scopes**: \`subscriptions:write\``,
|
|
47898
48163
|
scopes: ["write", "subscriptions"],
|
|
47899
|
-
args:
|
|
47900
|
-
tool: async (client,
|
|
47901
|
-
const [result, apiCall] = await subscriptionsRevoke(client,
|
|
48164
|
+
args: args31,
|
|
48165
|
+
tool: async (client, args32, ctx) => {
|
|
48166
|
+
const [result, apiCall] = await subscriptionsRevoke(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47902
48167
|
if (!result.ok) {
|
|
47903
48168
|
return {
|
|
47904
48169
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48132,9 +48397,9 @@ var init_subscriptionsupdate = __esm(() => {
|
|
|
48132
48397
|
|
|
48133
48398
|
// src/funcs/subscriptionsUpdate.ts
|
|
48134
48399
|
function subscriptionsUpdate(client, request, options) {
|
|
48135
|
-
return new APIPromise($
|
|
48400
|
+
return new APIPromise($do33(client, request, options));
|
|
48136
48401
|
}
|
|
48137
|
-
async function $
|
|
48402
|
+
async function $do33(client, request, options) {
|
|
48138
48403
|
const parsed = safeParse(request, (value) => SubscriptionsUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48139
48404
|
if (!parsed.ok) {
|
|
48140
48405
|
return [parsed, { status: "invalid" }];
|
|
@@ -48217,12 +48482,12 @@ var init_subscriptionsUpdate = __esm(() => {
|
|
|
48217
48482
|
});
|
|
48218
48483
|
|
|
48219
48484
|
// src/mcp-server/tools/subscriptionsUpdate.ts
|
|
48220
|
-
var
|
|
48485
|
+
var args32, tool$subscriptionsUpdate;
|
|
48221
48486
|
var init_subscriptionsUpdate2 = __esm(() => {
|
|
48222
48487
|
init_subscriptionsUpdate();
|
|
48223
48488
|
init_subscriptionsupdate();
|
|
48224
48489
|
init_tools();
|
|
48225
|
-
|
|
48490
|
+
args32 = {
|
|
48226
48491
|
request: SubscriptionsUpdateRequest$inboundSchema
|
|
48227
48492
|
};
|
|
48228
48493
|
tool$subscriptionsUpdate = {
|
|
@@ -48233,9 +48498,9 @@ Update a subscription.
|
|
|
48233
48498
|
|
|
48234
48499
|
**Scopes**: \`subscriptions:write\``,
|
|
48235
48500
|
scopes: ["write", "subscriptions"],
|
|
48236
|
-
args:
|
|
48237
|
-
tool: async (client,
|
|
48238
|
-
const [result, apiCall] = await subscriptionsUpdate(client,
|
|
48501
|
+
args: args32,
|
|
48502
|
+
tool: async (client, args33, ctx) => {
|
|
48503
|
+
const [result, apiCall] = await subscriptionsUpdate(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48239
48504
|
if (!result.ok) {
|
|
48240
48505
|
return {
|
|
48241
48506
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48252,7 +48517,7 @@ Update a subscription.
|
|
|
48252
48517
|
function createMCPServer(deps) {
|
|
48253
48518
|
const server = new McpServer({
|
|
48254
48519
|
name: "Polar",
|
|
48255
|
-
version: "0.35.
|
|
48520
|
+
version: "0.35.4"
|
|
48256
48521
|
});
|
|
48257
48522
|
const client = new PolarCore({
|
|
48258
48523
|
accessToken: deps.accessToken,
|
|
@@ -48294,6 +48559,7 @@ function createMCPServer(deps) {
|
|
|
48294
48559
|
tool(tool$customersDeleteExternal);
|
|
48295
48560
|
tool(tool$customersGetState);
|
|
48296
48561
|
tool(tool$customersGetStateExternal);
|
|
48562
|
+
tool(tool$customersGetBalance);
|
|
48297
48563
|
tool(tool$customerMetersList);
|
|
48298
48564
|
tool(tool$customerMetersGet);
|
|
48299
48565
|
tool(tool$paymentsList);
|
|
@@ -48312,6 +48578,7 @@ var init_server2 = __esm(() => {
|
|
|
48312
48578
|
init_customersDeleteExternal2();
|
|
48313
48579
|
init_customersExport2();
|
|
48314
48580
|
init_customersGet2();
|
|
48581
|
+
init_customersGetBalance2();
|
|
48315
48582
|
init_customersGetExternal2();
|
|
48316
48583
|
init_customersGetState2();
|
|
48317
48584
|
init_customersGetStateExternal2();
|
|
@@ -49539,7 +49806,7 @@ var routes = rn({
|
|
|
49539
49806
|
var app = Ve(routes, {
|
|
49540
49807
|
name: "mcp",
|
|
49541
49808
|
versionInfo: {
|
|
49542
|
-
currentVersion: "0.35.
|
|
49809
|
+
currentVersion: "0.35.4"
|
|
49543
49810
|
}
|
|
49544
49811
|
});
|
|
49545
49812
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -49547,5 +49814,5 @@ export {
|
|
|
49547
49814
|
app
|
|
49548
49815
|
};
|
|
49549
49816
|
|
|
49550
|
-
//# debugId=
|
|
49817
|
+
//# debugId=C4998DE008545A0A64756E2164756E21
|
|
49551
49818
|
//# sourceMappingURL=mcp-server.js.map
|