@polar-sh/sdk 0.32.2 → 0.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +94 -39
- package/bin/mcp-server.js.map +34 -33
- package/dist/commonjs/funcs/benefitsCreate.js +1 -1
- package/dist/commonjs/funcs/benefitsCreate.js.map +1 -1
- package/dist/commonjs/funcs/benefitsDelete.js +1 -1
- package/dist/commonjs/funcs/benefitsDelete.js.map +1 -1
- package/dist/commonjs/funcs/benefitsGet.js +1 -1
- package/dist/commonjs/funcs/benefitsGet.js.map +1 -1
- package/dist/commonjs/funcs/benefitsGrants.js +1 -1
- package/dist/commonjs/funcs/benefitsGrants.js.map +1 -1
- package/dist/commonjs/funcs/benefitsList.js +2 -1
- package/dist/commonjs/funcs/benefitsList.js.map +1 -1
- package/dist/commonjs/funcs/benefitsUpdate.js +1 -1
- package/dist/commonjs/funcs/benefitsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/checkoutLinksCreate.js +1 -1
- package/dist/commonjs/funcs/checkoutLinksCreate.js.map +1 -1
- package/dist/commonjs/funcs/checkoutLinksDelete.js +1 -1
- package/dist/commonjs/funcs/checkoutLinksDelete.js.map +1 -1
- package/dist/commonjs/funcs/checkoutLinksGet.js +1 -1
- package/dist/commonjs/funcs/checkoutLinksGet.js.map +1 -1
- package/dist/commonjs/funcs/checkoutLinksList.js +1 -1
- package/dist/commonjs/funcs/checkoutLinksList.js.map +1 -1
- package/dist/commonjs/funcs/checkoutLinksUpdate.js +1 -1
- package/dist/commonjs/funcs/checkoutLinksUpdate.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsClientConfirm.js +1 -1
- package/dist/commonjs/funcs/checkoutsClientConfirm.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsClientGet.js +1 -1
- package/dist/commonjs/funcs/checkoutsClientGet.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsClientUpdate.js +1 -1
- package/dist/commonjs/funcs/checkoutsClientUpdate.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsCreate.js +1 -1
- package/dist/commonjs/funcs/checkoutsCreate.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsGet.js +1 -1
- package/dist/commonjs/funcs/checkoutsGet.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsList.js +1 -1
- package/dist/commonjs/funcs/checkoutsList.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsUpdate.js +1 -1
- package/dist/commonjs/funcs/checkoutsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customFieldsCreate.js +1 -1
- package/dist/commonjs/funcs/customFieldsCreate.js.map +1 -1
- package/dist/commonjs/funcs/customFieldsDelete.js +1 -1
- package/dist/commonjs/funcs/customFieldsDelete.js.map +1 -1
- package/dist/commonjs/funcs/customFieldsGet.js +1 -1
- package/dist/commonjs/funcs/customFieldsGet.js.map +1 -1
- package/dist/commonjs/funcs/customFieldsList.js +1 -1
- package/dist/commonjs/funcs/customFieldsList.js.map +1 -1
- package/dist/commonjs/funcs/customFieldsUpdate.js +1 -1
- package/dist/commonjs/funcs/customFieldsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalBenefitGrantsGet.js +1 -1
- package/dist/commonjs/funcs/customerPortalBenefitGrantsGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalBenefitGrantsList.js +1 -1
- package/dist/commonjs/funcs/customerPortalBenefitGrantsList.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalBenefitGrantsUpdate.js +1 -1
- package/dist/commonjs/funcs/customerPortalBenefitGrantsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.js +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersDeletePaymentMethod.js +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersDeletePaymentMethod.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersGet.js +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersGetPaymentMethods.js +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersGetPaymentMethods.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersUpdate.js +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalDownloadablesGet.js +1 -1
- package/dist/commonjs/funcs/customerPortalDownloadablesGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalDownloadablesList.js +1 -1
- package/dist/commonjs/funcs/customerPortalDownloadablesList.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysActivate.js +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysActivate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysDeactivate.js +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysDeactivate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysGet.js +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysList.js +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysList.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysValidate.js +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysValidate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersGet.js +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersInvoice.js +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersInvoice.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersList.js +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersList.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrganizationsGet.js +1 -1
- package/dist/commonjs/funcs/customerPortalOrganizationsGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsCancel.js +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsCancel.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsGet.js +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsList.js +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsList.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsUpdate.js +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customerSessionsCreate.js +1 -1
- package/dist/commonjs/funcs/customerSessionsCreate.js.map +1 -1
- package/dist/commonjs/funcs/customersCreate.js +1 -1
- package/dist/commonjs/funcs/customersCreate.js.map +1 -1
- package/dist/commonjs/funcs/customersDelete.js +1 -1
- package/dist/commonjs/funcs/customersDelete.js.map +1 -1
- package/dist/commonjs/funcs/customersDeleteExternal.js +1 -1
- package/dist/commonjs/funcs/customersDeleteExternal.js.map +1 -1
- package/dist/commonjs/funcs/customersGet.js +1 -1
- package/dist/commonjs/funcs/customersGet.js.map +1 -1
- package/dist/commonjs/funcs/customersGetExternal.js +1 -1
- package/dist/commonjs/funcs/customersGetExternal.js.map +1 -1
- package/dist/commonjs/funcs/customersGetState.js +1 -1
- package/dist/commonjs/funcs/customersGetState.js.map +1 -1
- package/dist/commonjs/funcs/customersGetStateExternal.js +1 -1
- package/dist/commonjs/funcs/customersGetStateExternal.js.map +1 -1
- package/dist/commonjs/funcs/customersList.js +1 -1
- package/dist/commonjs/funcs/customersList.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdate.js +1 -1
- package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdateExternal.js +1 -1
- package/dist/commonjs/funcs/customersUpdateExternal.js.map +1 -1
- package/dist/commonjs/funcs/discountsCreate.js +1 -1
- package/dist/commonjs/funcs/discountsCreate.js.map +1 -1
- package/dist/commonjs/funcs/discountsDelete.js +1 -1
- package/dist/commonjs/funcs/discountsDelete.js.map +1 -1
- package/dist/commonjs/funcs/discountsGet.js +1 -1
- package/dist/commonjs/funcs/discountsGet.js.map +1 -1
- package/dist/commonjs/funcs/discountsList.js +1 -1
- package/dist/commonjs/funcs/discountsList.js.map +1 -1
- package/dist/commonjs/funcs/discountsUpdate.js +1 -1
- package/dist/commonjs/funcs/discountsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsGet.js +1 -1
- package/dist/commonjs/funcs/eventsGet.js.map +1 -1
- package/dist/commonjs/funcs/eventsIngest.js +1 -1
- package/dist/commonjs/funcs/eventsIngest.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +1 -1
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/externalOrganizationsList.js +1 -1
- package/dist/commonjs/funcs/externalOrganizationsList.js.map +1 -1
- package/dist/commonjs/funcs/filesCreate.js +1 -1
- package/dist/commonjs/funcs/filesCreate.js.map +1 -1
- package/dist/commonjs/funcs/filesDelete.js +1 -1
- package/dist/commonjs/funcs/filesDelete.js.map +1 -1
- package/dist/commonjs/funcs/filesList.js +1 -1
- package/dist/commonjs/funcs/filesList.js.map +1 -1
- package/dist/commonjs/funcs/filesUpdate.js +1 -1
- package/dist/commonjs/funcs/filesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/filesUploaded.js +1 -1
- package/dist/commonjs/funcs/filesUploaded.js.map +1 -1
- package/dist/commonjs/funcs/licenseKeysGet.js +1 -1
- package/dist/commonjs/funcs/licenseKeysGet.js.map +1 -1
- package/dist/commonjs/funcs/licenseKeysGetActivation.js +1 -1
- package/dist/commonjs/funcs/licenseKeysGetActivation.js.map +1 -1
- package/dist/commonjs/funcs/licenseKeysList.js +1 -1
- package/dist/commonjs/funcs/licenseKeysList.js.map +1 -1
- package/dist/commonjs/funcs/licenseKeysUpdate.js +1 -1
- package/dist/commonjs/funcs/licenseKeysUpdate.js.map +1 -1
- package/dist/commonjs/funcs/metersCreate.js +1 -1
- package/dist/commonjs/funcs/metersCreate.js.map +1 -1
- package/dist/commonjs/funcs/metersEvents.js +1 -1
- package/dist/commonjs/funcs/metersEvents.js.map +1 -1
- package/dist/commonjs/funcs/metersGet.js +1 -1
- package/dist/commonjs/funcs/metersGet.js.map +1 -1
- package/dist/commonjs/funcs/metersList.js +1 -1
- package/dist/commonjs/funcs/metersList.js.map +1 -1
- package/dist/commonjs/funcs/metersQuantities.js +1 -1
- package/dist/commonjs/funcs/metersQuantities.js.map +1 -1
- package/dist/commonjs/funcs/metersUpdate.js +1 -1
- package/dist/commonjs/funcs/metersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/metricsGet.js +1 -1
- package/dist/commonjs/funcs/metricsGet.js.map +1 -1
- package/dist/commonjs/funcs/metricsLimits.js +1 -1
- package/dist/commonjs/funcs/metricsLimits.js.map +1 -1
- package/dist/commonjs/funcs/oauth2Authorize.js +1 -1
- package/dist/commonjs/funcs/oauth2Authorize.js.map +1 -1
- package/dist/commonjs/funcs/oauth2ClientsCreate.js +1 -1
- package/dist/commonjs/funcs/oauth2ClientsCreate.js.map +1 -1
- package/dist/commonjs/funcs/oauth2ClientsDelete.js +1 -1
- package/dist/commonjs/funcs/oauth2ClientsDelete.js.map +1 -1
- package/dist/commonjs/funcs/oauth2ClientsGet.js +1 -1
- package/dist/commonjs/funcs/oauth2ClientsGet.js.map +1 -1
- package/dist/commonjs/funcs/oauth2ClientsList.js +1 -1
- package/dist/commonjs/funcs/oauth2ClientsList.js.map +1 -1
- package/dist/commonjs/funcs/oauth2ClientsUpdate.js +1 -1
- package/dist/commonjs/funcs/oauth2ClientsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/oauth2Introspect.js +1 -1
- package/dist/commonjs/funcs/oauth2Introspect.js.map +1 -1
- package/dist/commonjs/funcs/oauth2Revoke.js +1 -1
- package/dist/commonjs/funcs/oauth2Revoke.js.map +1 -1
- package/dist/commonjs/funcs/oauth2Token.js +1 -1
- package/dist/commonjs/funcs/oauth2Token.js.map +1 -1
- package/dist/commonjs/funcs/oauth2Userinfo.js +1 -1
- package/dist/commonjs/funcs/oauth2Userinfo.js.map +1 -1
- package/dist/commonjs/funcs/ordersGet.js +1 -1
- package/dist/commonjs/funcs/ordersGet.js.map +1 -1
- package/dist/commonjs/funcs/ordersInvoice.js +1 -1
- package/dist/commonjs/funcs/ordersInvoice.js.map +1 -1
- package/dist/commonjs/funcs/ordersList.js +1 -1
- package/dist/commonjs/funcs/ordersList.js.map +1 -1
- package/dist/commonjs/funcs/organizationsCreate.js +1 -1
- package/dist/commonjs/funcs/organizationsCreate.js.map +1 -1
- package/dist/commonjs/funcs/organizationsGet.js +1 -1
- package/dist/commonjs/funcs/organizationsGet.js.map +1 -1
- package/dist/commonjs/funcs/organizationsList.js +1 -1
- package/dist/commonjs/funcs/organizationsList.js.map +1 -1
- package/dist/commonjs/funcs/organizationsUpdate.js +1 -1
- package/dist/commonjs/funcs/organizationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/productsCreate.js +1 -1
- package/dist/commonjs/funcs/productsCreate.js.map +1 -1
- package/dist/commonjs/funcs/productsGet.js +1 -1
- package/dist/commonjs/funcs/productsGet.js.map +1 -1
- package/dist/commonjs/funcs/productsList.js +1 -1
- package/dist/commonjs/funcs/productsList.js.map +1 -1
- package/dist/commonjs/funcs/productsUpdate.js +1 -1
- package/dist/commonjs/funcs/productsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/productsUpdateBenefits.js +1 -1
- package/dist/commonjs/funcs/productsUpdateBenefits.js.map +1 -1
- package/dist/commonjs/funcs/refundsCreate.js +1 -1
- package/dist/commonjs/funcs/refundsCreate.js.map +1 -1
- package/dist/commonjs/funcs/refundsList.js +1 -1
- package/dist/commonjs/funcs/refundsList.js.map +1 -1
- package/dist/commonjs/funcs/repositoriesGet.js +1 -1
- package/dist/commonjs/funcs/repositoriesGet.js.map +1 -1
- package/dist/commonjs/funcs/repositoriesList.js +1 -1
- package/dist/commonjs/funcs/repositoriesList.js.map +1 -1
- package/dist/commonjs/funcs/repositoriesUpdate.js +1 -1
- package/dist/commonjs/funcs/repositoriesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsExport.js +1 -1
- package/dist/commonjs/funcs/subscriptionsExport.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsGet.js +1 -1
- package/dist/commonjs/funcs/subscriptionsGet.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsRevoke.js +1 -1
- package/dist/commonjs/funcs/subscriptionsRevoke.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsUpdate.js +1 -1
- package/dist/commonjs/funcs/subscriptionsUpdate.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +1 -1
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/benefitsortproperty.d.ts +34 -0
- package/dist/commonjs/models/components/benefitsortproperty.d.ts.map +1 -0
- package/dist/commonjs/models/components/benefitsortproperty.js +52 -0
- package/dist/commonjs/models/components/benefitsortproperty.js.map +1 -0
- package/dist/commonjs/models/components/checkout.d.ts +12 -9
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +8 -8
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +12 -9
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +8 -8
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +12 -9
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +8 -8
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/productcreate.d.ts +5 -4
- package/dist/commonjs/models/components/productcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productcreate.js +5 -0
- package/dist/commonjs/models/components/productcreate.js.map +1 -1
- package/dist/commonjs/models/components/productpricemeteredunitcreate.d.ts +57 -0
- package/dist/commonjs/models/components/productpricemeteredunitcreate.d.ts.map +1 -0
- package/dist/commonjs/models/components/productpricemeteredunitcreate.js +88 -0
- package/dist/commonjs/models/components/productpricemeteredunitcreate.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/operations/benefitslist.d.ts +6 -0
- package/dist/commonjs/models/operations/benefitslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/benefitslist.js +3 -0
- package/dist/commonjs/models/operations/benefitslist.js.map +1 -1
- package/dist/esm/funcs/benefitsCreate.js +1 -1
- package/dist/esm/funcs/benefitsCreate.js.map +1 -1
- package/dist/esm/funcs/benefitsDelete.js +1 -1
- package/dist/esm/funcs/benefitsDelete.js.map +1 -1
- package/dist/esm/funcs/benefitsGet.js +1 -1
- package/dist/esm/funcs/benefitsGet.js.map +1 -1
- package/dist/esm/funcs/benefitsGrants.js +1 -1
- package/dist/esm/funcs/benefitsGrants.js.map +1 -1
- package/dist/esm/funcs/benefitsList.js +2 -1
- package/dist/esm/funcs/benefitsList.js.map +1 -1
- package/dist/esm/funcs/benefitsUpdate.js +1 -1
- package/dist/esm/funcs/benefitsUpdate.js.map +1 -1
- package/dist/esm/funcs/checkoutLinksCreate.js +1 -1
- package/dist/esm/funcs/checkoutLinksCreate.js.map +1 -1
- package/dist/esm/funcs/checkoutLinksDelete.js +1 -1
- package/dist/esm/funcs/checkoutLinksDelete.js.map +1 -1
- package/dist/esm/funcs/checkoutLinksGet.js +1 -1
- package/dist/esm/funcs/checkoutLinksGet.js.map +1 -1
- package/dist/esm/funcs/checkoutLinksList.js +1 -1
- package/dist/esm/funcs/checkoutLinksList.js.map +1 -1
- package/dist/esm/funcs/checkoutLinksUpdate.js +1 -1
- package/dist/esm/funcs/checkoutLinksUpdate.js.map +1 -1
- package/dist/esm/funcs/checkoutsClientConfirm.js +1 -1
- package/dist/esm/funcs/checkoutsClientConfirm.js.map +1 -1
- package/dist/esm/funcs/checkoutsClientGet.js +1 -1
- package/dist/esm/funcs/checkoutsClientGet.js.map +1 -1
- package/dist/esm/funcs/checkoutsClientUpdate.js +1 -1
- package/dist/esm/funcs/checkoutsClientUpdate.js.map +1 -1
- package/dist/esm/funcs/checkoutsCreate.js +1 -1
- package/dist/esm/funcs/checkoutsCreate.js.map +1 -1
- package/dist/esm/funcs/checkoutsGet.js +1 -1
- package/dist/esm/funcs/checkoutsGet.js.map +1 -1
- package/dist/esm/funcs/checkoutsList.js +1 -1
- package/dist/esm/funcs/checkoutsList.js.map +1 -1
- package/dist/esm/funcs/checkoutsUpdate.js +1 -1
- package/dist/esm/funcs/checkoutsUpdate.js.map +1 -1
- package/dist/esm/funcs/customFieldsCreate.js +1 -1
- package/dist/esm/funcs/customFieldsCreate.js.map +1 -1
- package/dist/esm/funcs/customFieldsDelete.js +1 -1
- package/dist/esm/funcs/customFieldsDelete.js.map +1 -1
- package/dist/esm/funcs/customFieldsGet.js +1 -1
- package/dist/esm/funcs/customFieldsGet.js.map +1 -1
- package/dist/esm/funcs/customFieldsList.js +1 -1
- package/dist/esm/funcs/customFieldsList.js.map +1 -1
- package/dist/esm/funcs/customFieldsUpdate.js +1 -1
- package/dist/esm/funcs/customFieldsUpdate.js.map +1 -1
- package/dist/esm/funcs/customerPortalBenefitGrantsGet.js +1 -1
- package/dist/esm/funcs/customerPortalBenefitGrantsGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalBenefitGrantsList.js +1 -1
- package/dist/esm/funcs/customerPortalBenefitGrantsList.js.map +1 -1
- package/dist/esm/funcs/customerPortalBenefitGrantsUpdate.js +1 -1
- package/dist/esm/funcs/customerPortalBenefitGrantsUpdate.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js +1 -1
- package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersDeletePaymentMethod.js +1 -1
- package/dist/esm/funcs/customerPortalCustomersDeletePaymentMethod.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersGet.js +1 -1
- package/dist/esm/funcs/customerPortalCustomersGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersGetPaymentMethods.js +1 -1
- package/dist/esm/funcs/customerPortalCustomersGetPaymentMethods.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersUpdate.js +1 -1
- package/dist/esm/funcs/customerPortalCustomersUpdate.js.map +1 -1
- package/dist/esm/funcs/customerPortalDownloadablesGet.js +1 -1
- package/dist/esm/funcs/customerPortalDownloadablesGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalDownloadablesList.js +1 -1
- package/dist/esm/funcs/customerPortalDownloadablesList.js.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysActivate.js +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysActivate.js.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysDeactivate.js +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysDeactivate.js.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysGet.js +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysList.js +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysList.js.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysValidate.js +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysValidate.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrdersGet.js +1 -1
- package/dist/esm/funcs/customerPortalOrdersGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrdersInvoice.js +1 -1
- package/dist/esm/funcs/customerPortalOrdersInvoice.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrdersList.js +1 -1
- package/dist/esm/funcs/customerPortalOrdersList.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrganizationsGet.js +1 -1
- package/dist/esm/funcs/customerPortalOrganizationsGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsCancel.js +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsCancel.js.map +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsGet.js +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsList.js +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsList.js.map +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsUpdate.js +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
- package/dist/esm/funcs/customerSessionsCreate.js +1 -1
- package/dist/esm/funcs/customerSessionsCreate.js.map +1 -1
- package/dist/esm/funcs/customersCreate.js +1 -1
- package/dist/esm/funcs/customersCreate.js.map +1 -1
- package/dist/esm/funcs/customersDelete.js +1 -1
- package/dist/esm/funcs/customersDelete.js.map +1 -1
- package/dist/esm/funcs/customersDeleteExternal.js +1 -1
- package/dist/esm/funcs/customersDeleteExternal.js.map +1 -1
- package/dist/esm/funcs/customersGet.js +1 -1
- package/dist/esm/funcs/customersGet.js.map +1 -1
- package/dist/esm/funcs/customersGetExternal.js +1 -1
- package/dist/esm/funcs/customersGetExternal.js.map +1 -1
- package/dist/esm/funcs/customersGetState.js +1 -1
- package/dist/esm/funcs/customersGetState.js.map +1 -1
- package/dist/esm/funcs/customersGetStateExternal.js +1 -1
- package/dist/esm/funcs/customersGetStateExternal.js.map +1 -1
- package/dist/esm/funcs/customersList.js +1 -1
- package/dist/esm/funcs/customersList.js.map +1 -1
- package/dist/esm/funcs/customersUpdate.js +1 -1
- package/dist/esm/funcs/customersUpdate.js.map +1 -1
- package/dist/esm/funcs/customersUpdateExternal.js +1 -1
- package/dist/esm/funcs/customersUpdateExternal.js.map +1 -1
- package/dist/esm/funcs/discountsCreate.js +1 -1
- package/dist/esm/funcs/discountsCreate.js.map +1 -1
- package/dist/esm/funcs/discountsDelete.js +1 -1
- package/dist/esm/funcs/discountsDelete.js.map +1 -1
- package/dist/esm/funcs/discountsGet.js +1 -1
- package/dist/esm/funcs/discountsGet.js.map +1 -1
- package/dist/esm/funcs/discountsList.js +1 -1
- package/dist/esm/funcs/discountsList.js.map +1 -1
- package/dist/esm/funcs/discountsUpdate.js +1 -1
- package/dist/esm/funcs/discountsUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsGet.js +1 -1
- package/dist/esm/funcs/eventsGet.js.map +1 -1
- package/dist/esm/funcs/eventsIngest.js +1 -1
- package/dist/esm/funcs/eventsIngest.js.map +1 -1
- package/dist/esm/funcs/eventsList.js +1 -1
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/externalOrganizationsList.js +1 -1
- package/dist/esm/funcs/externalOrganizationsList.js.map +1 -1
- package/dist/esm/funcs/filesCreate.js +1 -1
- package/dist/esm/funcs/filesCreate.js.map +1 -1
- package/dist/esm/funcs/filesDelete.js +1 -1
- package/dist/esm/funcs/filesDelete.js.map +1 -1
- package/dist/esm/funcs/filesList.js +1 -1
- package/dist/esm/funcs/filesList.js.map +1 -1
- package/dist/esm/funcs/filesUpdate.js +1 -1
- package/dist/esm/funcs/filesUpdate.js.map +1 -1
- package/dist/esm/funcs/filesUploaded.js +1 -1
- package/dist/esm/funcs/filesUploaded.js.map +1 -1
- package/dist/esm/funcs/licenseKeysGet.js +1 -1
- package/dist/esm/funcs/licenseKeysGet.js.map +1 -1
- package/dist/esm/funcs/licenseKeysGetActivation.js +1 -1
- package/dist/esm/funcs/licenseKeysGetActivation.js.map +1 -1
- package/dist/esm/funcs/licenseKeysList.js +1 -1
- package/dist/esm/funcs/licenseKeysList.js.map +1 -1
- package/dist/esm/funcs/licenseKeysUpdate.js +1 -1
- package/dist/esm/funcs/licenseKeysUpdate.js.map +1 -1
- package/dist/esm/funcs/metersCreate.js +1 -1
- package/dist/esm/funcs/metersCreate.js.map +1 -1
- package/dist/esm/funcs/metersEvents.js +1 -1
- package/dist/esm/funcs/metersEvents.js.map +1 -1
- package/dist/esm/funcs/metersGet.js +1 -1
- package/dist/esm/funcs/metersGet.js.map +1 -1
- package/dist/esm/funcs/metersList.js +1 -1
- package/dist/esm/funcs/metersList.js.map +1 -1
- package/dist/esm/funcs/metersQuantities.js +1 -1
- package/dist/esm/funcs/metersQuantities.js.map +1 -1
- package/dist/esm/funcs/metersUpdate.js +1 -1
- package/dist/esm/funcs/metersUpdate.js.map +1 -1
- package/dist/esm/funcs/metricsGet.js +1 -1
- package/dist/esm/funcs/metricsGet.js.map +1 -1
- package/dist/esm/funcs/metricsLimits.js +1 -1
- package/dist/esm/funcs/metricsLimits.js.map +1 -1
- package/dist/esm/funcs/oauth2Authorize.js +1 -1
- package/dist/esm/funcs/oauth2Authorize.js.map +1 -1
- package/dist/esm/funcs/oauth2ClientsCreate.js +1 -1
- package/dist/esm/funcs/oauth2ClientsCreate.js.map +1 -1
- package/dist/esm/funcs/oauth2ClientsDelete.js +1 -1
- package/dist/esm/funcs/oauth2ClientsDelete.js.map +1 -1
- package/dist/esm/funcs/oauth2ClientsGet.js +1 -1
- package/dist/esm/funcs/oauth2ClientsGet.js.map +1 -1
- package/dist/esm/funcs/oauth2ClientsList.js +1 -1
- package/dist/esm/funcs/oauth2ClientsList.js.map +1 -1
- package/dist/esm/funcs/oauth2ClientsUpdate.js +1 -1
- package/dist/esm/funcs/oauth2ClientsUpdate.js.map +1 -1
- package/dist/esm/funcs/oauth2Introspect.js +1 -1
- package/dist/esm/funcs/oauth2Introspect.js.map +1 -1
- package/dist/esm/funcs/oauth2Revoke.js +1 -1
- package/dist/esm/funcs/oauth2Revoke.js.map +1 -1
- package/dist/esm/funcs/oauth2Token.js +1 -1
- package/dist/esm/funcs/oauth2Token.js.map +1 -1
- package/dist/esm/funcs/oauth2Userinfo.js +1 -1
- package/dist/esm/funcs/oauth2Userinfo.js.map +1 -1
- package/dist/esm/funcs/ordersGet.js +1 -1
- package/dist/esm/funcs/ordersGet.js.map +1 -1
- package/dist/esm/funcs/ordersInvoice.js +1 -1
- package/dist/esm/funcs/ordersInvoice.js.map +1 -1
- package/dist/esm/funcs/ordersList.js +1 -1
- package/dist/esm/funcs/ordersList.js.map +1 -1
- package/dist/esm/funcs/organizationsCreate.js +1 -1
- package/dist/esm/funcs/organizationsCreate.js.map +1 -1
- package/dist/esm/funcs/organizationsGet.js +1 -1
- package/dist/esm/funcs/organizationsGet.js.map +1 -1
- package/dist/esm/funcs/organizationsList.js +1 -1
- package/dist/esm/funcs/organizationsList.js.map +1 -1
- package/dist/esm/funcs/organizationsUpdate.js +1 -1
- package/dist/esm/funcs/organizationsUpdate.js.map +1 -1
- package/dist/esm/funcs/productsCreate.js +1 -1
- package/dist/esm/funcs/productsCreate.js.map +1 -1
- package/dist/esm/funcs/productsGet.js +1 -1
- package/dist/esm/funcs/productsGet.js.map +1 -1
- package/dist/esm/funcs/productsList.js +1 -1
- package/dist/esm/funcs/productsList.js.map +1 -1
- package/dist/esm/funcs/productsUpdate.js +1 -1
- package/dist/esm/funcs/productsUpdate.js.map +1 -1
- package/dist/esm/funcs/productsUpdateBenefits.js +1 -1
- package/dist/esm/funcs/productsUpdateBenefits.js.map +1 -1
- package/dist/esm/funcs/refundsCreate.js +1 -1
- package/dist/esm/funcs/refundsCreate.js.map +1 -1
- package/dist/esm/funcs/refundsList.js +1 -1
- package/dist/esm/funcs/refundsList.js.map +1 -1
- package/dist/esm/funcs/repositoriesGet.js +1 -1
- package/dist/esm/funcs/repositoriesGet.js.map +1 -1
- package/dist/esm/funcs/repositoriesList.js +1 -1
- package/dist/esm/funcs/repositoriesList.js.map +1 -1
- package/dist/esm/funcs/repositoriesUpdate.js +1 -1
- package/dist/esm/funcs/repositoriesUpdate.js.map +1 -1
- package/dist/esm/funcs/subscriptionsExport.js +1 -1
- package/dist/esm/funcs/subscriptionsExport.js.map +1 -1
- package/dist/esm/funcs/subscriptionsGet.js +1 -1
- package/dist/esm/funcs/subscriptionsGet.js.map +1 -1
- package/dist/esm/funcs/subscriptionsList.js +1 -1
- package/dist/esm/funcs/subscriptionsList.js.map +1 -1
- package/dist/esm/funcs/subscriptionsRevoke.js +1 -1
- package/dist/esm/funcs/subscriptionsRevoke.js.map +1 -1
- package/dist/esm/funcs/subscriptionsUpdate.js +1 -1
- package/dist/esm/funcs/subscriptionsUpdate.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +1 -1
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/benefitsortproperty.d.ts +34 -0
- package/dist/esm/models/components/benefitsortproperty.d.ts.map +1 -0
- package/dist/esm/models/components/benefitsortproperty.js +26 -0
- package/dist/esm/models/components/benefitsortproperty.js.map +1 -0
- package/dist/esm/models/components/checkout.d.ts +12 -9
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +8 -8
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +12 -9
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +8 -8
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +12 -9
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +8 -8
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/productcreate.d.ts +5 -4
- package/dist/esm/models/components/productcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productcreate.js +5 -0
- package/dist/esm/models/components/productcreate.js.map +1 -1
- package/dist/esm/models/components/productpricemeteredunitcreate.d.ts +57 -0
- package/dist/esm/models/components/productpricemeteredunitcreate.d.ts.map +1 -0
- package/dist/esm/models/components/productpricemeteredunitcreate.js +60 -0
- package/dist/esm/models/components/productpricemeteredunitcreate.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/operations/benefitslist.d.ts +6 -0
- package/dist/esm/models/operations/benefitslist.d.ts.map +1 -1
- package/dist/esm/models/operations/benefitslist.js +3 -0
- package/dist/esm/models/operations/benefitslist.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/benefitsCreate.ts +1 -1
- package/src/funcs/benefitsDelete.ts +1 -1
- package/src/funcs/benefitsGet.ts +1 -1
- package/src/funcs/benefitsGrants.ts +1 -1
- package/src/funcs/benefitsList.ts +2 -1
- package/src/funcs/benefitsUpdate.ts +1 -1
- package/src/funcs/checkoutLinksCreate.ts +1 -1
- package/src/funcs/checkoutLinksDelete.ts +1 -1
- package/src/funcs/checkoutLinksGet.ts +1 -1
- package/src/funcs/checkoutLinksList.ts +1 -1
- package/src/funcs/checkoutLinksUpdate.ts +1 -1
- package/src/funcs/checkoutsClientConfirm.ts +1 -1
- package/src/funcs/checkoutsClientGet.ts +1 -1
- package/src/funcs/checkoutsClientUpdate.ts +1 -1
- package/src/funcs/checkoutsCreate.ts +1 -1
- package/src/funcs/checkoutsGet.ts +1 -1
- package/src/funcs/checkoutsList.ts +1 -1
- package/src/funcs/checkoutsUpdate.ts +1 -1
- package/src/funcs/customFieldsCreate.ts +1 -1
- package/src/funcs/customFieldsDelete.ts +1 -1
- package/src/funcs/customFieldsGet.ts +1 -1
- package/src/funcs/customFieldsList.ts +1 -1
- package/src/funcs/customFieldsUpdate.ts +1 -1
- package/src/funcs/customerPortalBenefitGrantsGet.ts +1 -1
- package/src/funcs/customerPortalBenefitGrantsList.ts +1 -1
- package/src/funcs/customerPortalBenefitGrantsUpdate.ts +1 -1
- package/src/funcs/customerPortalCustomersAddPaymentMethod.ts +1 -1
- package/src/funcs/customerPortalCustomersDeletePaymentMethod.ts +1 -1
- package/src/funcs/customerPortalCustomersGet.ts +1 -1
- package/src/funcs/customerPortalCustomersGetPaymentMethods.ts +1 -1
- package/src/funcs/customerPortalCustomersUpdate.ts +1 -1
- package/src/funcs/customerPortalDownloadablesGet.ts +1 -1
- package/src/funcs/customerPortalDownloadablesList.ts +1 -1
- package/src/funcs/customerPortalLicenseKeysActivate.ts +1 -1
- package/src/funcs/customerPortalLicenseKeysDeactivate.ts +1 -1
- package/src/funcs/customerPortalLicenseKeysGet.ts +1 -1
- package/src/funcs/customerPortalLicenseKeysList.ts +1 -1
- package/src/funcs/customerPortalLicenseKeysValidate.ts +1 -1
- package/src/funcs/customerPortalOrdersGet.ts +1 -1
- package/src/funcs/customerPortalOrdersInvoice.ts +1 -1
- package/src/funcs/customerPortalOrdersList.ts +1 -1
- package/src/funcs/customerPortalOrganizationsGet.ts +1 -1
- package/src/funcs/customerPortalSubscriptionsCancel.ts +1 -1
- package/src/funcs/customerPortalSubscriptionsGet.ts +1 -1
- package/src/funcs/customerPortalSubscriptionsList.ts +1 -1
- package/src/funcs/customerPortalSubscriptionsUpdate.ts +1 -1
- package/src/funcs/customerSessionsCreate.ts +1 -1
- package/src/funcs/customersCreate.ts +1 -1
- package/src/funcs/customersDelete.ts +1 -1
- package/src/funcs/customersDeleteExternal.ts +1 -1
- package/src/funcs/customersGet.ts +1 -1
- package/src/funcs/customersGetExternal.ts +1 -1
- package/src/funcs/customersGetState.ts +1 -1
- package/src/funcs/customersGetStateExternal.ts +1 -1
- package/src/funcs/customersList.ts +1 -1
- package/src/funcs/customersUpdate.ts +1 -1
- package/src/funcs/customersUpdateExternal.ts +1 -1
- package/src/funcs/discountsCreate.ts +1 -1
- package/src/funcs/discountsDelete.ts +1 -1
- package/src/funcs/discountsGet.ts +1 -1
- package/src/funcs/discountsList.ts +1 -1
- package/src/funcs/discountsUpdate.ts +1 -1
- package/src/funcs/eventsGet.ts +1 -1
- package/src/funcs/eventsIngest.ts +1 -1
- package/src/funcs/eventsList.ts +1 -1
- package/src/funcs/externalOrganizationsList.ts +1 -1
- package/src/funcs/filesCreate.ts +1 -1
- package/src/funcs/filesDelete.ts +1 -1
- package/src/funcs/filesList.ts +1 -1
- package/src/funcs/filesUpdate.ts +1 -1
- package/src/funcs/filesUploaded.ts +1 -1
- package/src/funcs/licenseKeysGet.ts +1 -1
- package/src/funcs/licenseKeysGetActivation.ts +1 -1
- package/src/funcs/licenseKeysList.ts +1 -1
- package/src/funcs/licenseKeysUpdate.ts +1 -1
- package/src/funcs/metersCreate.ts +1 -1
- package/src/funcs/metersEvents.ts +1 -1
- package/src/funcs/metersGet.ts +1 -1
- package/src/funcs/metersList.ts +1 -1
- package/src/funcs/metersQuantities.ts +1 -1
- package/src/funcs/metersUpdate.ts +1 -1
- package/src/funcs/metricsGet.ts +1 -1
- package/src/funcs/metricsLimits.ts +1 -1
- package/src/funcs/oauth2Authorize.ts +1 -1
- package/src/funcs/oauth2ClientsCreate.ts +1 -1
- package/src/funcs/oauth2ClientsDelete.ts +1 -1
- package/src/funcs/oauth2ClientsGet.ts +1 -1
- package/src/funcs/oauth2ClientsList.ts +1 -1
- package/src/funcs/oauth2ClientsUpdate.ts +1 -1
- package/src/funcs/oauth2Introspect.ts +1 -1
- package/src/funcs/oauth2Revoke.ts +1 -1
- package/src/funcs/oauth2Token.ts +1 -1
- package/src/funcs/oauth2Userinfo.ts +1 -1
- package/src/funcs/ordersGet.ts +1 -1
- package/src/funcs/ordersInvoice.ts +1 -1
- package/src/funcs/ordersList.ts +1 -1
- package/src/funcs/organizationsCreate.ts +1 -1
- package/src/funcs/organizationsGet.ts +1 -1
- package/src/funcs/organizationsList.ts +1 -1
- package/src/funcs/organizationsUpdate.ts +1 -1
- package/src/funcs/productsCreate.ts +1 -1
- package/src/funcs/productsGet.ts +1 -1
- package/src/funcs/productsList.ts +1 -1
- package/src/funcs/productsUpdate.ts +1 -1
- package/src/funcs/productsUpdateBenefits.ts +1 -1
- package/src/funcs/refundsCreate.ts +1 -1
- package/src/funcs/refundsList.ts +1 -1
- package/src/funcs/repositoriesGet.ts +1 -1
- package/src/funcs/repositoriesList.ts +1 -1
- package/src/funcs/repositoriesUpdate.ts +1 -1
- package/src/funcs/subscriptionsExport.ts +1 -1
- package/src/funcs/subscriptionsGet.ts +1 -1
- package/src/funcs/subscriptionsList.ts +1 -1
- package/src/funcs/subscriptionsRevoke.ts +1 -1
- package/src/funcs/subscriptionsUpdate.ts +1 -1
- package/src/hooks/types.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/benefitsortproperty.ts +35 -0
- package/src/models/components/checkout.ts +20 -17
- package/src/models/components/checkoutpublic.ts +20 -17
- package/src/models/components/checkoutpublicconfirmed.ts +20 -17
- package/src/models/components/productcreate.ts +19 -3
- package/src/models/components/productpricemeteredunitcreate.ts +125 -0
- package/src/models/components/productupdate.ts +16 -2
- package/src/models/operations/benefitslist.ts +12 -0
package/src/hooks/types.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { WebhookRecipient } from "../types/webhooks.js";
|
|
|
10
10
|
export type HookContext = {
|
|
11
11
|
baseURL: string | URL;
|
|
12
12
|
operationID: string;
|
|
13
|
-
oAuth2Scopes
|
|
13
|
+
oAuth2Scopes: string[] | null;
|
|
14
14
|
webhookRecipient?: WebhookRecipient;
|
|
15
15
|
securitySource?: any | (() => Promise<any>);
|
|
16
16
|
retryConfig: RetryConfig;
|
package/src/lib/config.ts
CHANGED
|
@@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
60
60
|
export const SDK_METADATA = {
|
|
61
61
|
language: "typescript",
|
|
62
62
|
openapiDocVersion: "0.1.0",
|
|
63
|
-
sdkVersion: "0.32.
|
|
64
|
-
genVersion: "2.
|
|
65
|
-
userAgent: "speakeasy-sdk/typescript 0.32.
|
|
63
|
+
sdkVersion: "0.32.3",
|
|
64
|
+
genVersion: "2.562.2",
|
|
65
|
+
userAgent: "speakeasy-sdk/typescript 0.32.3 2.562.2 0.1.0 @polar-sh/sdk",
|
|
66
66
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const BenefitSortProperty = {
|
|
9
|
+
CreatedAt: "created_at",
|
|
10
|
+
MinusCreatedAt: "-created_at",
|
|
11
|
+
Description: "description",
|
|
12
|
+
MinusDescription: "-description",
|
|
13
|
+
} as const;
|
|
14
|
+
export type BenefitSortProperty = ClosedEnum<typeof BenefitSortProperty>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const BenefitSortProperty$inboundSchema: z.ZodNativeEnum<
|
|
18
|
+
typeof BenefitSortProperty
|
|
19
|
+
> = z.nativeEnum(BenefitSortProperty);
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const BenefitSortProperty$outboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof BenefitSortProperty
|
|
24
|
+
> = BenefitSortProperty$inboundSchema;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export namespace BenefitSortProperty$ {
|
|
31
|
+
/** @deprecated use `BenefitSortProperty$inboundSchema` instead. */
|
|
32
|
+
export const inboundSchema = BenefitSortProperty$inboundSchema;
|
|
33
|
+
/** @deprecated use `BenefitSortProperty$outboundSchema` instead. */
|
|
34
|
+
export const outboundSchema = BenefitSortProperty$outboundSchema;
|
|
35
|
+
}
|
|
@@ -133,23 +133,26 @@ export type Checkout = {
|
|
|
133
133
|
* When checkout is embedded, represents the Origin of the page embedding the checkout. Used as a security measure to send messages only to the embedding page.
|
|
134
134
|
*/
|
|
135
135
|
embedOrigin: string | null;
|
|
136
|
-
|
|
136
|
+
/**
|
|
137
|
+
* Amount in cents, before discounts and taxes.
|
|
138
|
+
*/
|
|
139
|
+
amount: number;
|
|
137
140
|
/**
|
|
138
141
|
* Discount amount in cents.
|
|
139
142
|
*/
|
|
140
|
-
discountAmount: number
|
|
143
|
+
discountAmount: number;
|
|
141
144
|
/**
|
|
142
145
|
* Amount in cents, after discounts but before taxes.
|
|
143
146
|
*/
|
|
144
|
-
netAmount: number
|
|
147
|
+
netAmount: number;
|
|
145
148
|
/**
|
|
146
|
-
* Sales tax amount in cents.
|
|
149
|
+
* Sales tax amount in cents. If `null`, it means there is no enough information yet to calculate it.
|
|
147
150
|
*/
|
|
148
151
|
taxAmount: number | null;
|
|
149
152
|
/**
|
|
150
153
|
* Amount in cents, after discounts and taxes.
|
|
151
154
|
*/
|
|
152
|
-
totalAmount: number
|
|
155
|
+
totalAmount: number;
|
|
153
156
|
/**
|
|
154
157
|
* Currency code of the checkout session.
|
|
155
158
|
*/
|
|
@@ -539,11 +542,11 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
539
542
|
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
540
543
|
success_url: z.string(),
|
|
541
544
|
embed_origin: z.nullable(z.string()),
|
|
542
|
-
amount: z.
|
|
543
|
-
discount_amount: z.
|
|
544
|
-
net_amount: z.
|
|
545
|
+
amount: z.number().int(),
|
|
546
|
+
discount_amount: z.number().int(),
|
|
547
|
+
net_amount: z.number().int(),
|
|
545
548
|
tax_amount: z.nullable(z.number().int()),
|
|
546
|
-
total_amount: z.
|
|
549
|
+
total_amount: z.number().int(),
|
|
547
550
|
currency: z.nullable(z.string()),
|
|
548
551
|
product_id: z.string(),
|
|
549
552
|
product_price_id: z.string(),
|
|
@@ -637,11 +640,11 @@ export type Checkout$Outbound = {
|
|
|
637
640
|
expires_at: string;
|
|
638
641
|
success_url: string;
|
|
639
642
|
embed_origin: string | null;
|
|
640
|
-
amount: number
|
|
641
|
-
discount_amount: number
|
|
642
|
-
net_amount: number
|
|
643
|
+
amount: number;
|
|
644
|
+
discount_amount: number;
|
|
645
|
+
net_amount: number;
|
|
643
646
|
tax_amount: number | null;
|
|
644
|
-
total_amount: number
|
|
647
|
+
total_amount: number;
|
|
645
648
|
currency: string | null;
|
|
646
649
|
product_id: string;
|
|
647
650
|
product_price_id: string;
|
|
@@ -702,11 +705,11 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
702
705
|
expiresAt: z.date().transform(v => v.toISOString()),
|
|
703
706
|
successUrl: z.string(),
|
|
704
707
|
embedOrigin: z.nullable(z.string()),
|
|
705
|
-
amount: z.
|
|
706
|
-
discountAmount: z.
|
|
707
|
-
netAmount: z.
|
|
708
|
+
amount: z.number().int(),
|
|
709
|
+
discountAmount: z.number().int(),
|
|
710
|
+
netAmount: z.number().int(),
|
|
708
711
|
taxAmount: z.nullable(z.number().int()),
|
|
709
|
-
totalAmount: z.
|
|
712
|
+
totalAmount: z.number().int(),
|
|
710
713
|
currency: z.nullable(z.string()),
|
|
711
714
|
productId: z.string(),
|
|
712
715
|
productPriceId: z.string(),
|
|
@@ -137,23 +137,26 @@ export type CheckoutPublic = {
|
|
|
137
137
|
* When checkout is embedded, represents the Origin of the page embedding the checkout. Used as a security measure to send messages only to the embedding page.
|
|
138
138
|
*/
|
|
139
139
|
embedOrigin: string | null;
|
|
140
|
-
|
|
140
|
+
/**
|
|
141
|
+
* Amount in cents, before discounts and taxes.
|
|
142
|
+
*/
|
|
143
|
+
amount: number;
|
|
141
144
|
/**
|
|
142
145
|
* Discount amount in cents.
|
|
143
146
|
*/
|
|
144
|
-
discountAmount: number
|
|
147
|
+
discountAmount: number;
|
|
145
148
|
/**
|
|
146
149
|
* Amount in cents, after discounts but before taxes.
|
|
147
150
|
*/
|
|
148
|
-
netAmount: number
|
|
151
|
+
netAmount: number;
|
|
149
152
|
/**
|
|
150
|
-
* Sales tax amount in cents.
|
|
153
|
+
* Sales tax amount in cents. If `null`, it means there is no enough information yet to calculate it.
|
|
151
154
|
*/
|
|
152
155
|
taxAmount: number | null;
|
|
153
156
|
/**
|
|
154
157
|
* Amount in cents, after discounts and taxes.
|
|
155
158
|
*/
|
|
156
|
-
totalAmount: number
|
|
159
|
+
totalAmount: number;
|
|
157
160
|
/**
|
|
158
161
|
* Currency code of the checkout session.
|
|
159
162
|
*/
|
|
@@ -443,11 +446,11 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
443
446
|
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
444
447
|
success_url: z.string(),
|
|
445
448
|
embed_origin: z.nullable(z.string()),
|
|
446
|
-
amount: z.
|
|
447
|
-
discount_amount: z.
|
|
448
|
-
net_amount: z.
|
|
449
|
+
amount: z.number().int(),
|
|
450
|
+
discount_amount: z.number().int(),
|
|
451
|
+
net_amount: z.number().int(),
|
|
449
452
|
tax_amount: z.nullable(z.number().int()),
|
|
450
|
-
total_amount: z.
|
|
453
|
+
total_amount: z.number().int(),
|
|
451
454
|
currency: z.nullable(z.string()),
|
|
452
455
|
product_id: z.string(),
|
|
453
456
|
product_price_id: z.string(),
|
|
@@ -533,11 +536,11 @@ export type CheckoutPublic$Outbound = {
|
|
|
533
536
|
expires_at: string;
|
|
534
537
|
success_url: string;
|
|
535
538
|
embed_origin: string | null;
|
|
536
|
-
amount: number
|
|
537
|
-
discount_amount: number
|
|
538
|
-
net_amount: number
|
|
539
|
+
amount: number;
|
|
540
|
+
discount_amount: number;
|
|
541
|
+
net_amount: number;
|
|
539
542
|
tax_amount: number | null;
|
|
540
|
-
total_amount: number
|
|
543
|
+
total_amount: number;
|
|
541
544
|
currency: string | null;
|
|
542
545
|
product_id: string;
|
|
543
546
|
product_price_id: string;
|
|
@@ -595,11 +598,11 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
595
598
|
expiresAt: z.date().transform(v => v.toISOString()),
|
|
596
599
|
successUrl: z.string(),
|
|
597
600
|
embedOrigin: z.nullable(z.string()),
|
|
598
|
-
amount: z.
|
|
599
|
-
discountAmount: z.
|
|
600
|
-
netAmount: z.
|
|
601
|
+
amount: z.number().int(),
|
|
602
|
+
discountAmount: z.number().int(),
|
|
603
|
+
netAmount: z.number().int(),
|
|
601
604
|
taxAmount: z.nullable(z.number().int()),
|
|
602
|
-
totalAmount: z.
|
|
605
|
+
totalAmount: z.number().int(),
|
|
603
606
|
currency: z.nullable(z.string()),
|
|
604
607
|
productId: z.string(),
|
|
605
608
|
productPriceId: z.string(),
|
|
@@ -141,23 +141,26 @@ export type CheckoutPublicConfirmed = {
|
|
|
141
141
|
* When checkout is embedded, represents the Origin of the page embedding the checkout. Used as a security measure to send messages only to the embedding page.
|
|
142
142
|
*/
|
|
143
143
|
embedOrigin: string | null;
|
|
144
|
-
|
|
144
|
+
/**
|
|
145
|
+
* Amount in cents, before discounts and taxes.
|
|
146
|
+
*/
|
|
147
|
+
amount: number;
|
|
145
148
|
/**
|
|
146
149
|
* Discount amount in cents.
|
|
147
150
|
*/
|
|
148
|
-
discountAmount: number
|
|
151
|
+
discountAmount: number;
|
|
149
152
|
/**
|
|
150
153
|
* Amount in cents, after discounts but before taxes.
|
|
151
154
|
*/
|
|
152
|
-
netAmount: number
|
|
155
|
+
netAmount: number;
|
|
153
156
|
/**
|
|
154
|
-
* Sales tax amount in cents.
|
|
157
|
+
* Sales tax amount in cents. If `null`, it means there is no enough information yet to calculate it.
|
|
155
158
|
*/
|
|
156
159
|
taxAmount: number | null;
|
|
157
160
|
/**
|
|
158
161
|
* Amount in cents, after discounts and taxes.
|
|
159
162
|
*/
|
|
160
|
-
totalAmount: number
|
|
163
|
+
totalAmount: number;
|
|
161
164
|
/**
|
|
162
165
|
* Currency code of the checkout session.
|
|
163
166
|
*/
|
|
@@ -459,11 +462,11 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
459
462
|
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
460
463
|
success_url: z.string(),
|
|
461
464
|
embed_origin: z.nullable(z.string()),
|
|
462
|
-
amount: z.
|
|
463
|
-
discount_amount: z.
|
|
464
|
-
net_amount: z.
|
|
465
|
+
amount: z.number().int(),
|
|
466
|
+
discount_amount: z.number().int(),
|
|
467
|
+
net_amount: z.number().int(),
|
|
465
468
|
tax_amount: z.nullable(z.number().int()),
|
|
466
|
-
total_amount: z.
|
|
469
|
+
total_amount: z.number().int(),
|
|
467
470
|
currency: z.nullable(z.string()),
|
|
468
471
|
product_id: z.string(),
|
|
469
472
|
product_price_id: z.string(),
|
|
@@ -551,11 +554,11 @@ export type CheckoutPublicConfirmed$Outbound = {
|
|
|
551
554
|
expires_at: string;
|
|
552
555
|
success_url: string;
|
|
553
556
|
embed_origin: string | null;
|
|
554
|
-
amount: number
|
|
555
|
-
discount_amount: number
|
|
556
|
-
net_amount: number
|
|
557
|
+
amount: number;
|
|
558
|
+
discount_amount: number;
|
|
559
|
+
net_amount: number;
|
|
557
560
|
tax_amount: number | null;
|
|
558
|
-
total_amount: number
|
|
561
|
+
total_amount: number;
|
|
559
562
|
currency: string | null;
|
|
560
563
|
product_id: string;
|
|
561
564
|
product_price_id: string;
|
|
@@ -614,11 +617,11 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
614
617
|
expiresAt: z.date().transform(v => v.toISOString()),
|
|
615
618
|
successUrl: z.string(),
|
|
616
619
|
embedOrigin: z.nullable(z.string()),
|
|
617
|
-
amount: z.
|
|
618
|
-
discountAmount: z.
|
|
619
|
-
netAmount: z.
|
|
620
|
+
amount: z.number().int(),
|
|
621
|
+
discountAmount: z.number().int(),
|
|
622
|
+
netAmount: z.number().int(),
|
|
620
623
|
taxAmount: z.nullable(z.number().int()),
|
|
621
|
-
totalAmount: z.
|
|
624
|
+
totalAmount: z.number().int(),
|
|
622
625
|
currency: z.nullable(z.string()),
|
|
623
626
|
productId: z.string(),
|
|
624
627
|
productPriceId: z.string(),
|
|
@@ -31,6 +31,12 @@ import {
|
|
|
31
31
|
ProductPriceFreeCreate$Outbound,
|
|
32
32
|
ProductPriceFreeCreate$outboundSchema,
|
|
33
33
|
} from "./productpricefreecreate.js";
|
|
34
|
+
import {
|
|
35
|
+
ProductPriceMeteredUnitCreate,
|
|
36
|
+
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
37
|
+
ProductPriceMeteredUnitCreate$Outbound,
|
|
38
|
+
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
39
|
+
} from "./productpricemeteredunitcreate.js";
|
|
34
40
|
import {
|
|
35
41
|
SubscriptionRecurringInterval,
|
|
36
42
|
SubscriptionRecurringInterval$inboundSchema,
|
|
@@ -42,7 +48,8 @@ export type ProductCreateMetadata = string | number | boolean;
|
|
|
42
48
|
export type ProductCreatePrices =
|
|
43
49
|
| ProductPriceFreeCreate
|
|
44
50
|
| ProductPriceFixedCreate
|
|
45
|
-
| ProductPriceCustomCreate
|
|
51
|
+
| ProductPriceCustomCreate
|
|
52
|
+
| ProductPriceMeteredUnitCreate;
|
|
46
53
|
|
|
47
54
|
/**
|
|
48
55
|
* Schema to create a product.
|
|
@@ -79,7 +86,10 @@ export type ProductCreate = {
|
|
|
79
86
|
* List of available prices for this product. Currently, only a single price is supported.
|
|
80
87
|
*/
|
|
81
88
|
prices: Array<
|
|
82
|
-
|
|
89
|
+
| ProductPriceFreeCreate
|
|
90
|
+
| ProductPriceFixedCreate
|
|
91
|
+
| ProductPriceCustomCreate
|
|
92
|
+
| ProductPriceMeteredUnitCreate
|
|
83
93
|
>;
|
|
84
94
|
/**
|
|
85
95
|
* List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
|
|
@@ -152,13 +162,15 @@ export const ProductCreatePrices$inboundSchema: z.ZodType<
|
|
|
152
162
|
ProductPriceFreeCreate$inboundSchema,
|
|
153
163
|
ProductPriceFixedCreate$inboundSchema,
|
|
154
164
|
ProductPriceCustomCreate$inboundSchema,
|
|
165
|
+
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
155
166
|
]);
|
|
156
167
|
|
|
157
168
|
/** @internal */
|
|
158
169
|
export type ProductCreatePrices$Outbound =
|
|
159
170
|
| ProductPriceFreeCreate$Outbound
|
|
160
171
|
| ProductPriceFixedCreate$Outbound
|
|
161
|
-
| ProductPriceCustomCreate$Outbound
|
|
172
|
+
| ProductPriceCustomCreate$Outbound
|
|
173
|
+
| ProductPriceMeteredUnitCreate$Outbound;
|
|
162
174
|
|
|
163
175
|
/** @internal */
|
|
164
176
|
export const ProductCreatePrices$outboundSchema: z.ZodType<
|
|
@@ -169,6 +181,7 @@ export const ProductCreatePrices$outboundSchema: z.ZodType<
|
|
|
169
181
|
ProductPriceFreeCreate$outboundSchema,
|
|
170
182
|
ProductPriceFixedCreate$outboundSchema,
|
|
171
183
|
ProductPriceCustomCreate$outboundSchema,
|
|
184
|
+
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
172
185
|
]);
|
|
173
186
|
|
|
174
187
|
/**
|
|
@@ -218,6 +231,7 @@ export const ProductCreate$inboundSchema: z.ZodType<
|
|
|
218
231
|
ProductPriceFreeCreate$inboundSchema,
|
|
219
232
|
ProductPriceFixedCreate$inboundSchema,
|
|
220
233
|
ProductPriceCustomCreate$inboundSchema,
|
|
234
|
+
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
221
235
|
]),
|
|
222
236
|
),
|
|
223
237
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
@@ -242,6 +256,7 @@ export type ProductCreate$Outbound = {
|
|
|
242
256
|
| ProductPriceFreeCreate$Outbound
|
|
243
257
|
| ProductPriceFixedCreate$Outbound
|
|
244
258
|
| ProductPriceCustomCreate$Outbound
|
|
259
|
+
| ProductPriceMeteredUnitCreate$Outbound
|
|
245
260
|
>;
|
|
246
261
|
medias?: Array<string> | null | undefined;
|
|
247
262
|
attached_custom_fields?:
|
|
@@ -266,6 +281,7 @@ export const ProductCreate$outboundSchema: z.ZodType<
|
|
|
266
281
|
ProductPriceFreeCreate$outboundSchema,
|
|
267
282
|
ProductPriceFixedCreate$outboundSchema,
|
|
268
283
|
ProductPriceCustomCreate$outboundSchema,
|
|
284
|
+
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
269
285
|
]),
|
|
270
286
|
),
|
|
271
287
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Schema to create a metered price with a fixed unit price.
|
|
13
|
+
*/
|
|
14
|
+
export type ProductPriceMeteredUnitCreate = {
|
|
15
|
+
amountType?: "metered_unit" | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The ID of the meter associated to the price.
|
|
18
|
+
*/
|
|
19
|
+
meterId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The currency. Currently, only `usd` is supported.
|
|
22
|
+
*/
|
|
23
|
+
priceCurrency?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The price per unit in cents.
|
|
26
|
+
*/
|
|
27
|
+
unitAmount: number;
|
|
28
|
+
/**
|
|
29
|
+
* The number of units included in the price. They will be deducted from the total.
|
|
30
|
+
*/
|
|
31
|
+
includedUnits: number;
|
|
32
|
+
/**
|
|
33
|
+
* Optional maximum amount in cents that can be charged, regardless of the number of units consumed.
|
|
34
|
+
*/
|
|
35
|
+
capAmount?: number | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ProductPriceMeteredUnitCreate$inboundSchema: z.ZodType<
|
|
40
|
+
ProductPriceMeteredUnitCreate,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
amount_type: z.literal("metered_unit").optional(),
|
|
45
|
+
meter_id: z.string(),
|
|
46
|
+
price_currency: z.string().default("usd"),
|
|
47
|
+
unit_amount: z.number().int(),
|
|
48
|
+
included_units: z.number().int(),
|
|
49
|
+
cap_amount: z.nullable(z.number().int()).optional(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
"amount_type": "amountType",
|
|
53
|
+
"meter_id": "meterId",
|
|
54
|
+
"price_currency": "priceCurrency",
|
|
55
|
+
"unit_amount": "unitAmount",
|
|
56
|
+
"included_units": "includedUnits",
|
|
57
|
+
"cap_amount": "capAmount",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export type ProductPriceMeteredUnitCreate$Outbound = {
|
|
63
|
+
amount_type: "metered_unit";
|
|
64
|
+
meter_id: string;
|
|
65
|
+
price_currency: string;
|
|
66
|
+
unit_amount: number;
|
|
67
|
+
included_units: number;
|
|
68
|
+
cap_amount?: number | null | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const ProductPriceMeteredUnitCreate$outboundSchema: z.ZodType<
|
|
73
|
+
ProductPriceMeteredUnitCreate$Outbound,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
ProductPriceMeteredUnitCreate
|
|
76
|
+
> = z.object({
|
|
77
|
+
amountType: z.literal("metered_unit").default("metered_unit" as const),
|
|
78
|
+
meterId: z.string(),
|
|
79
|
+
priceCurrency: z.string().default("usd"),
|
|
80
|
+
unitAmount: z.number().int(),
|
|
81
|
+
includedUnits: z.number().int(),
|
|
82
|
+
capAmount: z.nullable(z.number().int()).optional(),
|
|
83
|
+
}).transform((v) => {
|
|
84
|
+
return remap$(v, {
|
|
85
|
+
amountType: "amount_type",
|
|
86
|
+
meterId: "meter_id",
|
|
87
|
+
priceCurrency: "price_currency",
|
|
88
|
+
unitAmount: "unit_amount",
|
|
89
|
+
includedUnits: "included_units",
|
|
90
|
+
capAmount: "cap_amount",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
|
+
*/
|
|
98
|
+
export namespace ProductPriceMeteredUnitCreate$ {
|
|
99
|
+
/** @deprecated use `ProductPriceMeteredUnitCreate$inboundSchema` instead. */
|
|
100
|
+
export const inboundSchema = ProductPriceMeteredUnitCreate$inboundSchema;
|
|
101
|
+
/** @deprecated use `ProductPriceMeteredUnitCreate$outboundSchema` instead. */
|
|
102
|
+
export const outboundSchema = ProductPriceMeteredUnitCreate$outboundSchema;
|
|
103
|
+
/** @deprecated use `ProductPriceMeteredUnitCreate$Outbound` instead. */
|
|
104
|
+
export type Outbound = ProductPriceMeteredUnitCreate$Outbound;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function productPriceMeteredUnitCreateToJSON(
|
|
108
|
+
productPriceMeteredUnitCreate: ProductPriceMeteredUnitCreate,
|
|
109
|
+
): string {
|
|
110
|
+
return JSON.stringify(
|
|
111
|
+
ProductPriceMeteredUnitCreate$outboundSchema.parse(
|
|
112
|
+
productPriceMeteredUnitCreate,
|
|
113
|
+
),
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function productPriceMeteredUnitCreateFromJSON(
|
|
118
|
+
jsonString: string,
|
|
119
|
+
): SafeParseResult<ProductPriceMeteredUnitCreate, SDKValidationError> {
|
|
120
|
+
return safeParse(
|
|
121
|
+
jsonString,
|
|
122
|
+
(x) => ProductPriceMeteredUnitCreate$inboundSchema.parse(JSON.parse(x)),
|
|
123
|
+
`Failed to parse 'ProductPriceMeteredUnitCreate' from JSON`,
|
|
124
|
+
);
|
|
125
|
+
}
|
|
@@ -37,6 +37,12 @@ import {
|
|
|
37
37
|
ProductPriceFreeCreate$Outbound,
|
|
38
38
|
ProductPriceFreeCreate$outboundSchema,
|
|
39
39
|
} from "./productpricefreecreate.js";
|
|
40
|
+
import {
|
|
41
|
+
ProductPriceMeteredUnitCreate,
|
|
42
|
+
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
43
|
+
ProductPriceMeteredUnitCreate$Outbound,
|
|
44
|
+
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
45
|
+
} from "./productpricemeteredunitcreate.js";
|
|
40
46
|
import {
|
|
41
47
|
SubscriptionRecurringInterval,
|
|
42
48
|
SubscriptionRecurringInterval$inboundSchema,
|
|
@@ -49,7 +55,8 @@ export type ProductUpdatePrices =
|
|
|
49
55
|
| ExistingProductPrice
|
|
50
56
|
| ProductPriceFreeCreate
|
|
51
57
|
| ProductPriceFixedCreate
|
|
52
|
-
| ProductPriceCustomCreate
|
|
58
|
+
| ProductPriceCustomCreate
|
|
59
|
+
| ProductPriceMeteredUnitCreate;
|
|
53
60
|
|
|
54
61
|
/**
|
|
55
62
|
* Schema to update a product.
|
|
@@ -92,6 +99,7 @@ export type ProductUpdate = {
|
|
|
92
99
|
| ProductPriceFreeCreate
|
|
93
100
|
| ProductPriceFixedCreate
|
|
94
101
|
| ProductPriceCustomCreate
|
|
102
|
+
| ProductPriceMeteredUnitCreate
|
|
95
103
|
>
|
|
96
104
|
| null
|
|
97
105
|
| undefined;
|
|
@@ -160,6 +168,7 @@ export const ProductUpdatePrices$inboundSchema: z.ZodType<
|
|
|
160
168
|
ProductPriceFreeCreate$inboundSchema,
|
|
161
169
|
ProductPriceFixedCreate$inboundSchema,
|
|
162
170
|
ProductPriceCustomCreate$inboundSchema,
|
|
171
|
+
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
163
172
|
]);
|
|
164
173
|
|
|
165
174
|
/** @internal */
|
|
@@ -167,7 +176,8 @@ export type ProductUpdatePrices$Outbound =
|
|
|
167
176
|
| ExistingProductPrice$Outbound
|
|
168
177
|
| ProductPriceFreeCreate$Outbound
|
|
169
178
|
| ProductPriceFixedCreate$Outbound
|
|
170
|
-
| ProductPriceCustomCreate$Outbound
|
|
179
|
+
| ProductPriceCustomCreate$Outbound
|
|
180
|
+
| ProductPriceMeteredUnitCreate$Outbound;
|
|
171
181
|
|
|
172
182
|
/** @internal */
|
|
173
183
|
export const ProductUpdatePrices$outboundSchema: z.ZodType<
|
|
@@ -179,6 +189,7 @@ export const ProductUpdatePrices$outboundSchema: z.ZodType<
|
|
|
179
189
|
ProductPriceFreeCreate$outboundSchema,
|
|
180
190
|
ProductPriceFixedCreate$outboundSchema,
|
|
181
191
|
ProductPriceCustomCreate$outboundSchema,
|
|
192
|
+
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
182
193
|
]);
|
|
183
194
|
|
|
184
195
|
/**
|
|
@@ -232,6 +243,7 @@ export const ProductUpdate$inboundSchema: z.ZodType<
|
|
|
232
243
|
ProductPriceFreeCreate$inboundSchema,
|
|
233
244
|
ProductPriceFixedCreate$inboundSchema,
|
|
234
245
|
ProductPriceCustomCreate$inboundSchema,
|
|
246
|
+
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
235
247
|
]),
|
|
236
248
|
),
|
|
237
249
|
).optional(),
|
|
@@ -260,6 +272,7 @@ export type ProductUpdate$Outbound = {
|
|
|
260
272
|
| ProductPriceFreeCreate$Outbound
|
|
261
273
|
| ProductPriceFixedCreate$Outbound
|
|
262
274
|
| ProductPriceCustomCreate$Outbound
|
|
275
|
+
| ProductPriceMeteredUnitCreate$Outbound
|
|
263
276
|
>
|
|
264
277
|
| null
|
|
265
278
|
| undefined;
|
|
@@ -290,6 +303,7 @@ export const ProductUpdate$outboundSchema: z.ZodType<
|
|
|
290
303
|
ProductPriceFreeCreate$outboundSchema,
|
|
291
304
|
ProductPriceFixedCreate$outboundSchema,
|
|
292
305
|
ProductPriceCustomCreate$outboundSchema,
|
|
306
|
+
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
293
307
|
]),
|
|
294
308
|
),
|
|
295
309
|
).optional(),
|
|
@@ -6,6 +6,11 @@ import * as z from "zod";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import {
|
|
10
|
+
BenefitSortProperty,
|
|
11
|
+
BenefitSortProperty$inboundSchema,
|
|
12
|
+
BenefitSortProperty$outboundSchema,
|
|
13
|
+
} from "../components/benefitsortproperty.js";
|
|
9
14
|
import {
|
|
10
15
|
BenefitType,
|
|
11
16
|
BenefitType$inboundSchema,
|
|
@@ -50,6 +55,10 @@ export type BenefitsListRequest = {
|
|
|
50
55
|
* Size of a page, defaults to 10. Maximum is 100.
|
|
51
56
|
*/
|
|
52
57
|
limit?: number | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order.
|
|
60
|
+
*/
|
|
61
|
+
sorting?: Array<BenefitSortProperty> | null | undefined;
|
|
53
62
|
};
|
|
54
63
|
|
|
55
64
|
export type BenefitsListResponse = {
|
|
@@ -178,6 +187,7 @@ export const BenefitsListRequest$inboundSchema: z.ZodType<
|
|
|
178
187
|
query: z.nullable(z.string()).optional(),
|
|
179
188
|
page: z.number().int().default(1),
|
|
180
189
|
limit: z.number().int().default(10),
|
|
190
|
+
sorting: z.nullable(z.array(BenefitSortProperty$inboundSchema)).optional(),
|
|
181
191
|
}).transform((v) => {
|
|
182
192
|
return remap$(v, {
|
|
183
193
|
"organization_id": "organizationId",
|
|
@@ -192,6 +202,7 @@ export type BenefitsListRequest$Outbound = {
|
|
|
192
202
|
query?: string | null | undefined;
|
|
193
203
|
page: number;
|
|
194
204
|
limit: number;
|
|
205
|
+
sorting?: Array<string> | null | undefined;
|
|
195
206
|
};
|
|
196
207
|
|
|
197
208
|
/** @internal */
|
|
@@ -208,6 +219,7 @@ export const BenefitsListRequest$outboundSchema: z.ZodType<
|
|
|
208
219
|
query: z.nullable(z.string()).optional(),
|
|
209
220
|
page: z.number().int().default(1),
|
|
210
221
|
limit: z.number().int().default(10),
|
|
222
|
+
sorting: z.nullable(z.array(BenefitSortProperty$outboundSchema)).optional(),
|
|
211
223
|
}).transform((v) => {
|
|
212
224
|
return remap$(v, {
|
|
213
225
|
organizationId: "organization_id",
|