@polar-sh/sdk 0.35.4 → 0.36.1
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 +43 -23
- package/RUNTIMES.md +6 -6
- package/bin/mcp-server.js +107 -51
- package/bin/mcp-server.js.map +44 -42
- package/dist/commonjs/funcs/benefitGrantsList.js +1 -1
- package/dist/commonjs/funcs/benefitGrantsList.js.map +1 -1
- 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 +1 -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/customerMetersGet.js +1 -1
- package/dist/commonjs/funcs/customerMetersGet.js.map +1 -1
- package/dist/commonjs/funcs/customerMetersList.js +1 -1
- package/dist/commonjs/funcs/customerMetersList.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/customerPortalLicenseKeysValidate.js +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysValidate.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/customerPortalSeatsAssignSeat.d.ts +20 -0
- package/dist/commonjs/funcs/customerPortalSeatsAssignSeat.d.ts.map +1 -0
- package/dist/commonjs/funcs/customerPortalSeatsAssignSeat.js +123 -0
- package/dist/commonjs/funcs/customerPortalSeatsAssignSeat.js.map +1 -0
- package/dist/commonjs/funcs/customerPortalSeatsListClaimedSubscriptions.d.ts +20 -0
- package/dist/commonjs/funcs/customerPortalSeatsListClaimedSubscriptions.d.ts.map +1 -0
- package/dist/commonjs/funcs/customerPortalSeatsListClaimedSubscriptions.js +111 -0
- package/dist/commonjs/funcs/customerPortalSeatsListClaimedSubscriptions.js.map +1 -0
- package/dist/commonjs/funcs/customerPortalSeatsListSeats.d.ts +19 -0
- package/dist/commonjs/funcs/customerPortalSeatsListSeats.d.ts.map +1 -0
- package/dist/commonjs/funcs/customerPortalSeatsListSeats.js +126 -0
- package/dist/commonjs/funcs/customerPortalSeatsListSeats.js.map +1 -0
- package/dist/commonjs/funcs/customerPortalSeatsResendInvitation.d.ts +19 -0
- package/dist/commonjs/funcs/customerPortalSeatsResendInvitation.d.ts.map +1 -0
- package/dist/commonjs/funcs/customerPortalSeatsResendInvitation.js +128 -0
- package/dist/commonjs/funcs/customerPortalSeatsResendInvitation.js.map +1 -0
- package/dist/commonjs/funcs/customerPortalSeatsRevokeSeat.d.ts +19 -0
- package/dist/commonjs/funcs/customerPortalSeatsRevokeSeat.d.ts.map +1 -0
- package/dist/commonjs/funcs/customerPortalSeatsRevokeSeat.js +128 -0
- package/dist/commonjs/funcs/customerPortalSeatsRevokeSeat.js.map +1 -0
- 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/customersExport.js +1 -1
- package/dist/commonjs/funcs/customersExport.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/customersGetBalance.js +1 -1
- package/dist/commonjs/funcs/customersGetBalance.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/eventsListNames.js +1 -1
- package/dist/commonjs/funcs/eventsListNames.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/licenseKeysActivate.js +1 -1
- package/dist/commonjs/funcs/licenseKeysActivate.js.map +1 -1
- package/dist/commonjs/funcs/licenseKeysDeactivate.js +1 -1
- package/dist/commonjs/funcs/licenseKeysDeactivate.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/licenseKeysValidate.js +1 -1
- package/dist/commonjs/funcs/licenseKeysValidate.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/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.d.ts +18 -0
- package/dist/commonjs/funcs/oauth2ClientsCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/oauth2ClientsCreate.js +119 -0
- package/dist/commonjs/funcs/oauth2ClientsCreate.js.map +1 -0
- package/dist/commonjs/funcs/oauth2ClientsDelete.d.ts +18 -0
- package/dist/commonjs/funcs/oauth2ClientsDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/oauth2ClientsDelete.js +124 -0
- package/dist/commonjs/funcs/oauth2ClientsDelete.js.map +1 -0
- package/dist/commonjs/funcs/oauth2ClientsGet.d.ts +18 -0
- package/dist/commonjs/funcs/oauth2ClientsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/oauth2ClientsGet.js +124 -0
- package/dist/commonjs/funcs/oauth2ClientsGet.js.map +1 -0
- package/dist/commonjs/funcs/oauth2ClientsUpdate.d.ts +18 -0
- package/dist/commonjs/funcs/oauth2ClientsUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/oauth2ClientsUpdate.js +127 -0
- package/dist/commonjs/funcs/oauth2ClientsUpdate.js.map +1 -0
- 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/ordersGenerateInvoice.js +1 -1
- package/dist/commonjs/funcs/ordersGenerateInvoice.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/ordersUpdate.js +1 -1
- package/dist/commonjs/funcs/ordersUpdate.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/paymentsGet.js +1 -1
- package/dist/commonjs/funcs/paymentsGet.js.map +1 -1
- package/dist/commonjs/funcs/paymentsList.js +1 -1
- package/dist/commonjs/funcs/paymentsList.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/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/funcs/webhooksCreateWebhookEndpoint.js +1 -1
- package/dist/commonjs/funcs/webhooksCreateWebhookEndpoint.js.map +1 -1
- package/dist/commonjs/funcs/webhooksDeleteWebhookEndpoint.js +1 -1
- package/dist/commonjs/funcs/webhooksDeleteWebhookEndpoint.js.map +1 -1
- package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.js +1 -1
- package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
- package/dist/commonjs/funcs/webhooksListWebhookDeliveries.js +1 -1
- package/dist/commonjs/funcs/webhooksListWebhookDeliveries.js.map +1 -1
- package/dist/commonjs/funcs/webhooksListWebhookEndpoints.js +1 -1
- package/dist/commonjs/funcs/webhooksListWebhookEndpoints.js.map +1 -1
- package/dist/commonjs/funcs/webhooksRedeliverWebhookEvent.js +1 -1
- package/dist/commonjs/funcs/webhooksRedeliverWebhookEvent.js.map +1 -1
- package/dist/commonjs/funcs/webhooksResetWebhookEndpointSecret.js +1 -1
- package/dist/commonjs/funcs/webhooksResetWebhookEndpointSecret.js.map +1 -1
- package/dist/commonjs/funcs/webhooksUpdateWebhookEndpoint.js +1 -1
- package/dist/commonjs/funcs/webhooksUpdateWebhookEndpoint.js.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/checkout.d.ts +5 -0
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +4 -0
- package/dist/commonjs/models/components/checkout.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 +4 -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 +4 -0
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/customerorder.d.ts +8 -3
- package/dist/commonjs/models/components/customerorder.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerorder.js +8 -4
- package/dist/commonjs/models/components/customerorder.js.map +1 -1
- package/dist/commonjs/models/components/customerseat.d.ts +84 -0
- package/dist/commonjs/models/components/customerseat.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerseat.js +116 -0
- package/dist/commonjs/models/components/customerseat.js.map +1 -0
- package/dist/commonjs/models/components/discountupdate.d.ts +13 -1
- package/dist/commonjs/models/components/discountupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountupdate.js +2 -2
- package/dist/commonjs/models/components/discountupdate.js.map +1 -1
- package/dist/commonjs/models/components/oauth2clientconfiguration.d.ts +101 -0
- package/dist/commonjs/models/components/oauth2clientconfiguration.d.ts.map +1 -0
- package/dist/commonjs/models/components/oauth2clientconfiguration.js +152 -0
- package/dist/commonjs/models/components/oauth2clientconfiguration.js.map +1 -0
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.d.ts +103 -0
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.d.ts.map +1 -0
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.js +160 -0
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.js.map +1 -0
- package/dist/commonjs/models/components/order.d.ts +8 -3
- package/dist/commonjs/models/components/order.d.ts.map +1 -1
- package/dist/commonjs/models/components/order.js +8 -4
- package/dist/commonjs/models/components/order.js.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbased.d.ts +4 -3
- package/dist/commonjs/models/components/productpriceseatbased.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbased.js +5 -4
- package/dist/commonjs/models/components/productpriceseatbased.js.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts +5 -4
- package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbasedcreate.js +5 -4
- package/dist/commonjs/models/components/productpriceseatbasedcreate.js.map +1 -1
- package/dist/commonjs/models/components/productpriceseattier.d.ts +45 -0
- package/dist/commonjs/models/components/productpriceseattier.d.ts.map +1 -0
- package/dist/commonjs/models/components/productpriceseattier.js +86 -0
- package/dist/commonjs/models/components/productpriceseattier.js.map +1 -0
- package/dist/commonjs/models/components/productpriceseattiers.d.ts +36 -0
- package/dist/commonjs/models/components/productpriceseattiers.d.ts.map +1 -0
- package/dist/commonjs/models/components/productpriceseattiers.js +70 -0
- package/dist/commonjs/models/components/productpriceseattiers.js.map +1 -0
- package/dist/commonjs/models/components/seatassign.d.ts +61 -0
- package/dist/commonjs/models/components/seatassign.d.ts.map +1 -0
- package/dist/commonjs/models/components/seatassign.js +94 -0
- package/dist/commonjs/models/components/seatassign.js.map +1 -0
- package/dist/commonjs/models/components/seatslist.d.ts +43 -0
- package/dist/commonjs/models/components/seatslist.d.ts.map +1 -0
- package/dist/commonjs/models/components/seatslist.js +85 -0
- package/dist/commonjs/models/components/seatslist.js.map +1 -0
- package/dist/commonjs/models/components/seatstatus.d.ts +31 -0
- package/dist/commonjs/models/components/seatstatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/seatstatus.js +62 -0
- package/dist/commonjs/models/components/seatstatus.js.map +1 -0
- package/dist/commonjs/models/operations/customerportalseatsassignseat.d.ts +29 -0
- package/dist/commonjs/models/operations/customerportalseatsassignseat.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customerportalseatsassignseat.js +78 -0
- package/dist/commonjs/models/operations/customerportalseatsassignseat.js.map +1 -0
- package/dist/commonjs/models/operations/customerportalseatslistclaimedsubscriptions.d.ts +29 -0
- package/dist/commonjs/models/operations/customerportalseatslistclaimedsubscriptions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customerportalseatslistclaimedsubscriptions.js +78 -0
- package/dist/commonjs/models/operations/customerportalseatslistclaimedsubscriptions.js.map +1 -0
- package/dist/commonjs/models/operations/customerportalseatslistseats.d.ts +57 -0
- package/dist/commonjs/models/operations/customerportalseatslistseats.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customerportalseatslistseats.js +113 -0
- package/dist/commonjs/models/operations/customerportalseatslistseats.js.map +1 -0
- package/dist/commonjs/models/operations/customerportalseatsresendinvitation.d.ts +54 -0
- package/dist/commonjs/models/operations/customerportalseatsresendinvitation.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customerportalseatsresendinvitation.js +113 -0
- package/dist/commonjs/models/operations/customerportalseatsresendinvitation.js.map +1 -0
- package/dist/commonjs/models/operations/customerportalseatsrevokeseat.d.ts +54 -0
- package/dist/commonjs/models/operations/customerportalseatsrevokeseat.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customerportalseatsrevokeseat.js +113 -0
- package/dist/commonjs/models/operations/customerportalseatsrevokeseat.js.map +1 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.d.ts +29 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.d.ts.map +1 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.js +78 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.js.map +1 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.d.ts +29 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.d.ts.map +1 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.js +78 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.js.map +1 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.d.ts +32 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.d.ts.map +1 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.js +83 -0
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.js.map +1 -0
- package/dist/commonjs/sdk/clients.d.ts +36 -0
- package/dist/commonjs/sdk/clients.d.ts.map +1 -0
- package/dist/commonjs/sdk/clients.js +52 -0
- package/dist/commonjs/sdk/clients.js.map +1 -0
- package/dist/commonjs/sdk/customerportal.d.ts +3 -0
- package/dist/commonjs/sdk/customerportal.d.ts.map +1 -1
- package/dist/commonjs/sdk/customerportal.js +4 -0
- package/dist/commonjs/sdk/customerportal.js.map +1 -1
- package/dist/commonjs/sdk/oauth2.d.ts +3 -0
- package/dist/commonjs/sdk/oauth2.d.ts.map +1 -1
- package/dist/commonjs/sdk/oauth2.js +4 -0
- package/dist/commonjs/sdk/oauth2.js.map +1 -1
- package/dist/commonjs/sdk/seats.d.ts +50 -0
- package/dist/commonjs/sdk/seats.d.ts.map +1 -0
- package/dist/commonjs/sdk/seats.js +64 -0
- package/dist/commonjs/sdk/seats.js.map +1 -0
- package/dist/esm/funcs/benefitGrantsList.js +1 -1
- package/dist/esm/funcs/benefitGrantsList.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 +1 -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/customerMetersGet.js +1 -1
- package/dist/esm/funcs/customerMetersGet.js.map +1 -1
- package/dist/esm/funcs/customerMetersList.js +1 -1
- package/dist/esm/funcs/customerMetersList.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/customerPortalLicenseKeysValidate.js +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysValidate.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/customerPortalSeatsAssignSeat.d.ts +20 -0
- package/dist/esm/funcs/customerPortalSeatsAssignSeat.d.ts.map +1 -0
- package/dist/esm/funcs/customerPortalSeatsAssignSeat.js +87 -0
- package/dist/esm/funcs/customerPortalSeatsAssignSeat.js.map +1 -0
- package/dist/esm/funcs/customerPortalSeatsListClaimedSubscriptions.d.ts +20 -0
- package/dist/esm/funcs/customerPortalSeatsListClaimedSubscriptions.d.ts.map +1 -0
- package/dist/esm/funcs/customerPortalSeatsListClaimedSubscriptions.js +75 -0
- package/dist/esm/funcs/customerPortalSeatsListClaimedSubscriptions.js.map +1 -0
- package/dist/esm/funcs/customerPortalSeatsListSeats.d.ts +19 -0
- package/dist/esm/funcs/customerPortalSeatsListSeats.d.ts.map +1 -0
- package/dist/esm/funcs/customerPortalSeatsListSeats.js +90 -0
- package/dist/esm/funcs/customerPortalSeatsListSeats.js.map +1 -0
- package/dist/esm/funcs/customerPortalSeatsResendInvitation.d.ts +19 -0
- package/dist/esm/funcs/customerPortalSeatsResendInvitation.d.ts.map +1 -0
- package/dist/esm/funcs/customerPortalSeatsResendInvitation.js +92 -0
- package/dist/esm/funcs/customerPortalSeatsResendInvitation.js.map +1 -0
- package/dist/esm/funcs/customerPortalSeatsRevokeSeat.d.ts +19 -0
- package/dist/esm/funcs/customerPortalSeatsRevokeSeat.d.ts.map +1 -0
- package/dist/esm/funcs/customerPortalSeatsRevokeSeat.js +92 -0
- package/dist/esm/funcs/customerPortalSeatsRevokeSeat.js.map +1 -0
- 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/customersExport.js +1 -1
- package/dist/esm/funcs/customersExport.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/customersGetBalance.js +1 -1
- package/dist/esm/funcs/customersGetBalance.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/eventsListNames.js +1 -1
- package/dist/esm/funcs/eventsListNames.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/licenseKeysActivate.js +1 -1
- package/dist/esm/funcs/licenseKeysActivate.js.map +1 -1
- package/dist/esm/funcs/licenseKeysDeactivate.js +1 -1
- package/dist/esm/funcs/licenseKeysDeactivate.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/licenseKeysValidate.js +1 -1
- package/dist/esm/funcs/licenseKeysValidate.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/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.d.ts +18 -0
- package/dist/esm/funcs/oauth2ClientsCreate.d.ts.map +1 -0
- package/dist/esm/funcs/oauth2ClientsCreate.js +83 -0
- package/dist/esm/funcs/oauth2ClientsCreate.js.map +1 -0
- package/dist/esm/funcs/oauth2ClientsDelete.d.ts +18 -0
- package/dist/esm/funcs/oauth2ClientsDelete.d.ts.map +1 -0
- package/dist/esm/funcs/oauth2ClientsDelete.js +88 -0
- package/dist/esm/funcs/oauth2ClientsDelete.js.map +1 -0
- package/dist/esm/funcs/oauth2ClientsGet.d.ts +18 -0
- package/dist/esm/funcs/oauth2ClientsGet.d.ts.map +1 -0
- package/dist/esm/funcs/oauth2ClientsGet.js +88 -0
- package/dist/esm/funcs/oauth2ClientsGet.js.map +1 -0
- package/dist/esm/funcs/oauth2ClientsUpdate.d.ts +18 -0
- package/dist/esm/funcs/oauth2ClientsUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/oauth2ClientsUpdate.js +91 -0
- package/dist/esm/funcs/oauth2ClientsUpdate.js.map +1 -0
- 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/ordersGenerateInvoice.js +1 -1
- package/dist/esm/funcs/ordersGenerateInvoice.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/ordersUpdate.js +1 -1
- package/dist/esm/funcs/ordersUpdate.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/paymentsGet.js +1 -1
- package/dist/esm/funcs/paymentsGet.js.map +1 -1
- package/dist/esm/funcs/paymentsList.js +1 -1
- package/dist/esm/funcs/paymentsList.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/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/funcs/webhooksCreateWebhookEndpoint.js +1 -1
- package/dist/esm/funcs/webhooksCreateWebhookEndpoint.js.map +1 -1
- package/dist/esm/funcs/webhooksDeleteWebhookEndpoint.js +1 -1
- package/dist/esm/funcs/webhooksDeleteWebhookEndpoint.js.map +1 -1
- package/dist/esm/funcs/webhooksGetWebhookEndpoint.js +1 -1
- package/dist/esm/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
- package/dist/esm/funcs/webhooksListWebhookDeliveries.js +1 -1
- package/dist/esm/funcs/webhooksListWebhookDeliveries.js.map +1 -1
- package/dist/esm/funcs/webhooksListWebhookEndpoints.js +1 -1
- package/dist/esm/funcs/webhooksListWebhookEndpoints.js.map +1 -1
- package/dist/esm/funcs/webhooksRedeliverWebhookEvent.js +1 -1
- package/dist/esm/funcs/webhooksRedeliverWebhookEvent.js.map +1 -1
- package/dist/esm/funcs/webhooksResetWebhookEndpointSecret.js +1 -1
- package/dist/esm/funcs/webhooksResetWebhookEndpointSecret.js.map +1 -1
- package/dist/esm/funcs/webhooksUpdateWebhookEndpoint.js +1 -1
- package/dist/esm/funcs/webhooksUpdateWebhookEndpoint.js.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/checkout.d.ts +5 -0
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +4 -0
- package/dist/esm/models/components/checkout.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 +4 -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 +4 -0
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/customerorder.d.ts +8 -3
- package/dist/esm/models/components/customerorder.d.ts.map +1 -1
- package/dist/esm/models/components/customerorder.js +8 -4
- package/dist/esm/models/components/customerorder.js.map +1 -1
- package/dist/esm/models/components/customerseat.d.ts +84 -0
- package/dist/esm/models/components/customerseat.d.ts.map +1 -0
- package/dist/esm/models/components/customerseat.js +78 -0
- package/dist/esm/models/components/customerseat.js.map +1 -0
- package/dist/esm/models/components/discountupdate.d.ts +13 -1
- package/dist/esm/models/components/discountupdate.d.ts.map +1 -1
- package/dist/esm/models/components/discountupdate.js +2 -2
- package/dist/esm/models/components/discountupdate.js.map +1 -1
- package/dist/esm/models/components/oauth2clientconfiguration.d.ts +101 -0
- package/dist/esm/models/components/oauth2clientconfiguration.d.ts.map +1 -0
- package/dist/esm/models/components/oauth2clientconfiguration.js +114 -0
- package/dist/esm/models/components/oauth2clientconfiguration.js.map +1 -0
- package/dist/esm/models/components/oauth2clientconfigurationupdate.d.ts +103 -0
- package/dist/esm/models/components/oauth2clientconfigurationupdate.d.ts.map +1 -0
- package/dist/esm/models/components/oauth2clientconfigurationupdate.js +122 -0
- package/dist/esm/models/components/oauth2clientconfigurationupdate.js.map +1 -0
- package/dist/esm/models/components/order.d.ts +8 -3
- package/dist/esm/models/components/order.d.ts.map +1 -1
- package/dist/esm/models/components/order.js +8 -4
- package/dist/esm/models/components/order.js.map +1 -1
- package/dist/esm/models/components/productpriceseatbased.d.ts +4 -3
- package/dist/esm/models/components/productpriceseatbased.d.ts.map +1 -1
- package/dist/esm/models/components/productpriceseatbased.js +5 -4
- package/dist/esm/models/components/productpriceseatbased.js.map +1 -1
- package/dist/esm/models/components/productpriceseatbasedcreate.d.ts +5 -4
- package/dist/esm/models/components/productpriceseatbasedcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productpriceseatbasedcreate.js +5 -4
- package/dist/esm/models/components/productpriceseatbasedcreate.js.map +1 -1
- package/dist/esm/models/components/productpriceseattier.d.ts +45 -0
- package/dist/esm/models/components/productpriceseattier.d.ts.map +1 -0
- package/dist/esm/models/components/productpriceseattier.js +48 -0
- package/dist/esm/models/components/productpriceseattier.js.map +1 -0
- package/dist/esm/models/components/productpriceseattiers.d.ts +36 -0
- package/dist/esm/models/components/productpriceseattiers.d.ts.map +1 -0
- package/dist/esm/models/components/productpriceseattiers.js +32 -0
- package/dist/esm/models/components/productpriceseattiers.js.map +1 -0
- package/dist/esm/models/components/seatassign.d.ts +61 -0
- package/dist/esm/models/components/seatassign.d.ts.map +1 -0
- package/dist/esm/models/components/seatassign.js +56 -0
- package/dist/esm/models/components/seatassign.js.map +1 -0
- package/dist/esm/models/components/seatslist.d.ts +43 -0
- package/dist/esm/models/components/seatslist.d.ts.map +1 -0
- package/dist/esm/models/components/seatslist.js +47 -0
- package/dist/esm/models/components/seatslist.js.map +1 -0
- package/dist/esm/models/components/seatstatus.d.ts +31 -0
- package/dist/esm/models/components/seatstatus.d.ts.map +1 -0
- package/dist/esm/models/components/seatstatus.js +26 -0
- package/dist/esm/models/components/seatstatus.js.map +1 -0
- package/dist/esm/models/operations/customerportalseatsassignseat.d.ts +29 -0
- package/dist/esm/models/operations/customerportalseatsassignseat.d.ts.map +1 -0
- package/dist/esm/models/operations/customerportalseatsassignseat.js +40 -0
- package/dist/esm/models/operations/customerportalseatsassignseat.js.map +1 -0
- package/dist/esm/models/operations/customerportalseatslistclaimedsubscriptions.d.ts +29 -0
- package/dist/esm/models/operations/customerportalseatslistclaimedsubscriptions.d.ts.map +1 -0
- package/dist/esm/models/operations/customerportalseatslistclaimedsubscriptions.js +40 -0
- package/dist/esm/models/operations/customerportalseatslistclaimedsubscriptions.js.map +1 -0
- package/dist/esm/models/operations/customerportalseatslistseats.d.ts +57 -0
- package/dist/esm/models/operations/customerportalseatslistseats.d.ts.map +1 -0
- package/dist/esm/models/operations/customerportalseatslistseats.js +73 -0
- package/dist/esm/models/operations/customerportalseatslistseats.js.map +1 -0
- package/dist/esm/models/operations/customerportalseatsresendinvitation.d.ts +54 -0
- package/dist/esm/models/operations/customerportalseatsresendinvitation.d.ts.map +1 -0
- package/dist/esm/models/operations/customerportalseatsresendinvitation.js +73 -0
- package/dist/esm/models/operations/customerportalseatsresendinvitation.js.map +1 -0
- package/dist/esm/models/operations/customerportalseatsrevokeseat.d.ts +54 -0
- package/dist/esm/models/operations/customerportalseatsrevokeseat.d.ts.map +1 -0
- package/dist/esm/models/operations/customerportalseatsrevokeseat.js +73 -0
- package/dist/esm/models/operations/customerportalseatsrevokeseat.js.map +1 -0
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.d.ts +29 -0
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.d.ts.map +1 -0
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.js +40 -0
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.js.map +1 -0
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.d.ts +29 -0
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.d.ts.map +1 -0
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.js +40 -0
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.js.map +1 -0
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.d.ts +32 -0
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.d.ts.map +1 -0
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.js +45 -0
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.js.map +1 -0
- package/dist/esm/sdk/clients.d.ts +36 -0
- package/dist/esm/sdk/clients.d.ts.map +1 -0
- package/dist/esm/sdk/clients.js +48 -0
- package/dist/esm/sdk/clients.js.map +1 -0
- package/dist/esm/sdk/customerportal.d.ts +3 -0
- package/dist/esm/sdk/customerportal.d.ts.map +1 -1
- package/dist/esm/sdk/customerportal.js +4 -0
- package/dist/esm/sdk/customerportal.js.map +1 -1
- package/dist/esm/sdk/oauth2.d.ts +3 -0
- package/dist/esm/sdk/oauth2.d.ts.map +1 -1
- package/dist/esm/sdk/oauth2.js +4 -0
- package/dist/esm/sdk/oauth2.js.map +1 -1
- package/dist/esm/sdk/seats.d.ts +50 -0
- package/dist/esm/sdk/seats.d.ts.map +1 -0
- package/dist/esm/sdk/seats.js +60 -0
- package/dist/esm/sdk/seats.js.map +1 -0
- package/docs/sdks/clients/README.md +331 -0
- package/docs/sdks/seats/README.md +379 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/benefitGrantsList.ts +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 +1 -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/customerMetersGet.ts +1 -1
- package/src/funcs/customerMetersList.ts +1 -1
- package/src/funcs/customerPortalLicenseKeysActivate.ts +1 -1
- package/src/funcs/customerPortalLicenseKeysDeactivate.ts +1 -1
- package/src/funcs/customerPortalLicenseKeysValidate.ts +1 -1
- package/src/funcs/customerPortalOrganizationsGet.ts +1 -1
- package/src/funcs/customerPortalSeatsAssignSeat.ts +189 -0
- package/src/funcs/customerPortalSeatsListClaimedSubscriptions.ts +158 -0
- package/src/funcs/customerPortalSeatsListSeats.ts +193 -0
- package/src/funcs/customerPortalSeatsResendInvitation.ts +198 -0
- package/src/funcs/customerPortalSeatsRevokeSeat.ts +195 -0
- 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/customersExport.ts +1 -1
- package/src/funcs/customersGet.ts +1 -1
- package/src/funcs/customersGetBalance.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/eventsListNames.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/licenseKeysActivate.ts +1 -1
- package/src/funcs/licenseKeysDeactivate.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/licenseKeysValidate.ts +1 -1
- package/src/funcs/metersCreate.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 +176 -0
- package/src/funcs/oauth2ClientsDelete.ts +183 -0
- package/src/funcs/oauth2ClientsGet.ts +182 -0
- package/src/funcs/oauth2ClientsUpdate.ts +186 -0
- 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/ordersGenerateInvoice.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/ordersUpdate.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/paymentsGet.ts +1 -1
- package/src/funcs/paymentsList.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/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/funcs/webhooksCreateWebhookEndpoint.ts +1 -1
- package/src/funcs/webhooksDeleteWebhookEndpoint.ts +1 -1
- package/src/funcs/webhooksGetWebhookEndpoint.ts +1 -1
- package/src/funcs/webhooksListWebhookDeliveries.ts +1 -1
- package/src/funcs/webhooksListWebhookEndpoints.ts +1 -1
- package/src/funcs/webhooksRedeliverWebhookEvent.ts +1 -1
- package/src/funcs/webhooksResetWebhookEndpointSecret.ts +1 -1
- package/src/funcs/webhooksUpdateWebhookEndpoint.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/checkout.ts +9 -0
- package/src/models/components/checkoutpublic.ts +9 -0
- package/src/models/components/checkoutpublicconfirmed.ts +9 -0
- package/src/models/components/customerorder.ts +16 -7
- package/src/models/components/customerseat.ts +171 -0
- package/src/models/components/discountupdate.ts +15 -3
- package/src/models/components/oauth2clientconfiguration.ts +191 -0
- package/src/models/components/oauth2clientconfigurationupdate.ts +213 -0
- package/src/models/components/order.ts +16 -7
- package/src/models/components/productpriceseatbased.ts +13 -7
- package/src/models/components/productpriceseatbasedcreate.ts +14 -8
- package/src/models/components/productpriceseattier.ts +99 -0
- package/src/models/components/productpriceseattiers.ts +78 -0
- package/src/models/components/seatassign.ts +115 -0
- package/src/models/components/seatslist.ts +96 -0
- package/src/models/components/seatstatus.ts +32 -0
- package/src/models/operations/customerportalseatsassignseat.ts +80 -0
- package/src/models/operations/customerportalseatslistclaimedsubscriptions.ts +89 -0
- package/src/models/operations/customerportalseatslistseats.ts +154 -0
- package/src/models/operations/customerportalseatsresendinvitation.ts +164 -0
- package/src/models/operations/customerportalseatsrevokeseat.ts +151 -0
- package/src/models/operations/oauth2clientsoauth2deleteclient.ts +81 -0
- package/src/models/operations/oauth2clientsoauth2getclient.ts +80 -0
- package/src/models/operations/oauth2clientsoauth2updateclient.ts +95 -0
- package/src/sdk/clients.ts +84 -0
- package/src/sdk/customerportal.ts +6 -0
- package/src/sdk/oauth2.ts +6 -0
- package/src/sdk/seats.ts +126 -0
- package/docs/sdks/customerportal/README.md +0 -6
- package/docs/sdks/polar/README.md +0 -7
|
@@ -0,0 +1,213 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod = {
|
|
13
|
+
ClientSecretBasic: "client_secret_basic",
|
|
14
|
+
ClientSecretPost: "client_secret_post",
|
|
15
|
+
None: "none",
|
|
16
|
+
} as const;
|
|
17
|
+
export type OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod = ClosedEnum<
|
|
18
|
+
typeof OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
export const OAuth2ClientConfigurationUpdateGrantTypes = {
|
|
22
|
+
AuthorizationCode: "authorization_code",
|
|
23
|
+
RefreshToken: "refresh_token",
|
|
24
|
+
} as const;
|
|
25
|
+
export type OAuth2ClientConfigurationUpdateGrantTypes = ClosedEnum<
|
|
26
|
+
typeof OAuth2ClientConfigurationUpdateGrantTypes
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export type OAuth2ClientConfigurationUpdate = {
|
|
30
|
+
redirectUris: Array<string>;
|
|
31
|
+
tokenEndpointAuthMethod?:
|
|
32
|
+
| OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod
|
|
33
|
+
| undefined;
|
|
34
|
+
grantTypes?: Array<OAuth2ClientConfigurationUpdateGrantTypes> | undefined;
|
|
35
|
+
responseTypes?: Array<string> | undefined;
|
|
36
|
+
scope?: string | undefined;
|
|
37
|
+
clientName: string;
|
|
38
|
+
clientUri?: string | null | undefined;
|
|
39
|
+
logoUri?: string | null | undefined;
|
|
40
|
+
tosUri?: string | null | undefined;
|
|
41
|
+
policyUri?: string | null | undefined;
|
|
42
|
+
clientId: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$inboundSchema:
|
|
47
|
+
z.ZodNativeEnum<
|
|
48
|
+
typeof OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod
|
|
49
|
+
> = z.nativeEnum(OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod);
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$outboundSchema:
|
|
53
|
+
z.ZodNativeEnum<
|
|
54
|
+
typeof OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod
|
|
55
|
+
> = OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$inboundSchema;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export namespace OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$ {
|
|
62
|
+
/** @deprecated use `OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$inboundSchema` instead. */
|
|
63
|
+
export const inboundSchema =
|
|
64
|
+
OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$inboundSchema;
|
|
65
|
+
/** @deprecated use `OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema =
|
|
67
|
+
OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$outboundSchema;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema:
|
|
72
|
+
z.ZodNativeEnum<typeof OAuth2ClientConfigurationUpdateGrantTypes> = z
|
|
73
|
+
.nativeEnum(OAuth2ClientConfigurationUpdateGrantTypes);
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const OAuth2ClientConfigurationUpdateGrantTypes$outboundSchema:
|
|
77
|
+
z.ZodNativeEnum<typeof OAuth2ClientConfigurationUpdateGrantTypes> =
|
|
78
|
+
OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
+
*/
|
|
84
|
+
export namespace OAuth2ClientConfigurationUpdateGrantTypes$ {
|
|
85
|
+
/** @deprecated use `OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema` instead. */
|
|
86
|
+
export const inboundSchema =
|
|
87
|
+
OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema;
|
|
88
|
+
/** @deprecated use `OAuth2ClientConfigurationUpdateGrantTypes$outboundSchema` instead. */
|
|
89
|
+
export const outboundSchema =
|
|
90
|
+
OAuth2ClientConfigurationUpdateGrantTypes$outboundSchema;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const OAuth2ClientConfigurationUpdate$inboundSchema: z.ZodType<
|
|
95
|
+
OAuth2ClientConfigurationUpdate,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
unknown
|
|
98
|
+
> = z.object({
|
|
99
|
+
redirect_uris: z.array(z.string()),
|
|
100
|
+
token_endpoint_auth_method:
|
|
101
|
+
OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$inboundSchema
|
|
102
|
+
.default("client_secret_post"),
|
|
103
|
+
grant_types: z.array(OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema)
|
|
104
|
+
.optional(),
|
|
105
|
+
response_types: z.array(z.string()).optional(),
|
|
106
|
+
scope: z.string().default(
|
|
107
|
+
"openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
|
|
108
|
+
),
|
|
109
|
+
client_name: z.string(),
|
|
110
|
+
client_uri: z.nullable(z.string()).optional(),
|
|
111
|
+
logo_uri: z.nullable(z.string()).optional(),
|
|
112
|
+
tos_uri: z.nullable(z.string()).optional(),
|
|
113
|
+
policy_uri: z.nullable(z.string()).optional(),
|
|
114
|
+
client_id: z.string(),
|
|
115
|
+
}).transform((v) => {
|
|
116
|
+
return remap$(v, {
|
|
117
|
+
"redirect_uris": "redirectUris",
|
|
118
|
+
"token_endpoint_auth_method": "tokenEndpointAuthMethod",
|
|
119
|
+
"grant_types": "grantTypes",
|
|
120
|
+
"response_types": "responseTypes",
|
|
121
|
+
"client_name": "clientName",
|
|
122
|
+
"client_uri": "clientUri",
|
|
123
|
+
"logo_uri": "logoUri",
|
|
124
|
+
"tos_uri": "tosUri",
|
|
125
|
+
"policy_uri": "policyUri",
|
|
126
|
+
"client_id": "clientId",
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
export type OAuth2ClientConfigurationUpdate$Outbound = {
|
|
132
|
+
redirect_uris: Array<string>;
|
|
133
|
+
token_endpoint_auth_method: string;
|
|
134
|
+
grant_types?: Array<string> | undefined;
|
|
135
|
+
response_types?: Array<string> | undefined;
|
|
136
|
+
scope: string;
|
|
137
|
+
client_name: string;
|
|
138
|
+
client_uri?: string | null | undefined;
|
|
139
|
+
logo_uri?: string | null | undefined;
|
|
140
|
+
tos_uri?: string | null | undefined;
|
|
141
|
+
policy_uri?: string | null | undefined;
|
|
142
|
+
client_id: string;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const OAuth2ClientConfigurationUpdate$outboundSchema: z.ZodType<
|
|
147
|
+
OAuth2ClientConfigurationUpdate$Outbound,
|
|
148
|
+
z.ZodTypeDef,
|
|
149
|
+
OAuth2ClientConfigurationUpdate
|
|
150
|
+
> = z.object({
|
|
151
|
+
redirectUris: z.array(z.string()),
|
|
152
|
+
tokenEndpointAuthMethod:
|
|
153
|
+
OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$outboundSchema
|
|
154
|
+
.default("client_secret_post"),
|
|
155
|
+
grantTypes: z.array(OAuth2ClientConfigurationUpdateGrantTypes$outboundSchema)
|
|
156
|
+
.optional(),
|
|
157
|
+
responseTypes: z.array(z.string()).optional(),
|
|
158
|
+
scope: z.string().default(
|
|
159
|
+
"openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
|
|
160
|
+
),
|
|
161
|
+
clientName: z.string(),
|
|
162
|
+
clientUri: z.nullable(z.string()).optional(),
|
|
163
|
+
logoUri: z.nullable(z.string()).optional(),
|
|
164
|
+
tosUri: z.nullable(z.string()).optional(),
|
|
165
|
+
policyUri: z.nullable(z.string()).optional(),
|
|
166
|
+
clientId: z.string(),
|
|
167
|
+
}).transform((v) => {
|
|
168
|
+
return remap$(v, {
|
|
169
|
+
redirectUris: "redirect_uris",
|
|
170
|
+
tokenEndpointAuthMethod: "token_endpoint_auth_method",
|
|
171
|
+
grantTypes: "grant_types",
|
|
172
|
+
responseTypes: "response_types",
|
|
173
|
+
clientName: "client_name",
|
|
174
|
+
clientUri: "client_uri",
|
|
175
|
+
logoUri: "logo_uri",
|
|
176
|
+
tosUri: "tos_uri",
|
|
177
|
+
policyUri: "policy_uri",
|
|
178
|
+
clientId: "client_id",
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @internal
|
|
184
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
185
|
+
*/
|
|
186
|
+
export namespace OAuth2ClientConfigurationUpdate$ {
|
|
187
|
+
/** @deprecated use `OAuth2ClientConfigurationUpdate$inboundSchema` instead. */
|
|
188
|
+
export const inboundSchema = OAuth2ClientConfigurationUpdate$inboundSchema;
|
|
189
|
+
/** @deprecated use `OAuth2ClientConfigurationUpdate$outboundSchema` instead. */
|
|
190
|
+
export const outboundSchema = OAuth2ClientConfigurationUpdate$outboundSchema;
|
|
191
|
+
/** @deprecated use `OAuth2ClientConfigurationUpdate$Outbound` instead. */
|
|
192
|
+
export type Outbound = OAuth2ClientConfigurationUpdate$Outbound;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function oAuth2ClientConfigurationUpdateToJSON(
|
|
196
|
+
oAuth2ClientConfigurationUpdate: OAuth2ClientConfigurationUpdate,
|
|
197
|
+
): string {
|
|
198
|
+
return JSON.stringify(
|
|
199
|
+
OAuth2ClientConfigurationUpdate$outboundSchema.parse(
|
|
200
|
+
oAuth2ClientConfigurationUpdate,
|
|
201
|
+
),
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export function oAuth2ClientConfigurationUpdateFromJSON(
|
|
206
|
+
jsonString: string,
|
|
207
|
+
): SafeParseResult<OAuth2ClientConfigurationUpdate, SDKValidationError> {
|
|
208
|
+
return safeParse(
|
|
209
|
+
jsonString,
|
|
210
|
+
(x) => OAuth2ClientConfigurationUpdate$inboundSchema.parse(JSON.parse(x)),
|
|
211
|
+
`Failed to parse 'OAuth2ClientConfigurationUpdate' from JSON`,
|
|
212
|
+
);
|
|
213
|
+
}
|
|
@@ -121,9 +121,13 @@ export type Order = {
|
|
|
121
121
|
*/
|
|
122
122
|
totalAmount: number;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Customer's balance amount applied to this invoice. Can increase the total amount paid, if the customer has a negative balance, or decrease it, if the customer has a positive balance.Amount in cents.
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
appliedBalanceAmount: number;
|
|
127
|
+
/**
|
|
128
|
+
* Amount in cents that is due for this order.
|
|
129
|
+
*/
|
|
130
|
+
dueAmount: number;
|
|
127
131
|
/**
|
|
128
132
|
* Amount refunded in cents.
|
|
129
133
|
*/
|
|
@@ -355,7 +359,8 @@ export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
|
|
|
355
359
|
net_amount: z.number().int(),
|
|
356
360
|
tax_amount: z.number().int(),
|
|
357
361
|
total_amount: z.number().int(),
|
|
358
|
-
|
|
362
|
+
applied_balance_amount: z.number().int(),
|
|
363
|
+
due_amount: z.number().int(),
|
|
359
364
|
refunded_amount: z.number().int(),
|
|
360
365
|
refunded_tax_amount: z.number().int(),
|
|
361
366
|
currency: z.string(),
|
|
@@ -404,7 +409,8 @@ export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
|
|
|
404
409
|
"net_amount": "netAmount",
|
|
405
410
|
"tax_amount": "taxAmount",
|
|
406
411
|
"total_amount": "totalAmount",
|
|
407
|
-
"
|
|
412
|
+
"applied_balance_amount": "appliedBalanceAmount",
|
|
413
|
+
"due_amount": "dueAmount",
|
|
408
414
|
"refunded_amount": "refundedAmount",
|
|
409
415
|
"refunded_tax_amount": "refundedTaxAmount",
|
|
410
416
|
"billing_reason": "billingReason",
|
|
@@ -434,7 +440,8 @@ export type Order$Outbound = {
|
|
|
434
440
|
net_amount: number;
|
|
435
441
|
tax_amount: number;
|
|
436
442
|
total_amount: number;
|
|
437
|
-
|
|
443
|
+
applied_balance_amount: number;
|
|
444
|
+
due_amount: number;
|
|
438
445
|
refunded_amount: number;
|
|
439
446
|
refunded_tax_amount: number;
|
|
440
447
|
currency: string;
|
|
@@ -481,7 +488,8 @@ export const Order$outboundSchema: z.ZodType<
|
|
|
481
488
|
netAmount: z.number().int(),
|
|
482
489
|
taxAmount: z.number().int(),
|
|
483
490
|
totalAmount: z.number().int(),
|
|
484
|
-
|
|
491
|
+
appliedBalanceAmount: z.number().int(),
|
|
492
|
+
dueAmount: z.number().int(),
|
|
485
493
|
refundedAmount: z.number().int(),
|
|
486
494
|
refundedTaxAmount: z.number().int(),
|
|
487
495
|
currency: z.string(),
|
|
@@ -530,7 +538,8 @@ export const Order$outboundSchema: z.ZodType<
|
|
|
530
538
|
netAmount: "net_amount",
|
|
531
539
|
taxAmount: "tax_amount",
|
|
532
540
|
totalAmount: "total_amount",
|
|
533
|
-
|
|
541
|
+
appliedBalanceAmount: "applied_balance_amount",
|
|
542
|
+
dueAmount: "due_amount",
|
|
534
543
|
refundedAmount: "refunded_amount",
|
|
535
544
|
refundedTaxAmount: "refunded_tax_amount",
|
|
536
545
|
billingReason: "billing_reason",
|
|
@@ -7,6 +7,12 @@ 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
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ProductPriceSeatTiers,
|
|
12
|
+
ProductPriceSeatTiers$inboundSchema,
|
|
13
|
+
ProductPriceSeatTiers$Outbound,
|
|
14
|
+
ProductPriceSeatTiers$outboundSchema,
|
|
15
|
+
} from "./productpriceseattiers.js";
|
|
10
16
|
import {
|
|
11
17
|
ProductPriceType,
|
|
12
18
|
ProductPriceType$inboundSchema,
|
|
@@ -53,9 +59,9 @@ export type ProductPriceSeatBased = {
|
|
|
53
59
|
*/
|
|
54
60
|
priceCurrency: string;
|
|
55
61
|
/**
|
|
56
|
-
*
|
|
62
|
+
* List of pricing tiers for seat-based pricing.
|
|
57
63
|
*/
|
|
58
|
-
|
|
64
|
+
seatTiers: ProductPriceSeatTiers;
|
|
59
65
|
};
|
|
60
66
|
|
|
61
67
|
/** @internal */
|
|
@@ -75,7 +81,7 @@ export const ProductPriceSeatBased$inboundSchema: z.ZodType<
|
|
|
75
81
|
type: ProductPriceType$inboundSchema,
|
|
76
82
|
recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema),
|
|
77
83
|
price_currency: z.string(),
|
|
78
|
-
|
|
84
|
+
seat_tiers: ProductPriceSeatTiers$inboundSchema,
|
|
79
85
|
}).transform((v) => {
|
|
80
86
|
return remap$(v, {
|
|
81
87
|
"created_at": "createdAt",
|
|
@@ -85,7 +91,7 @@ export const ProductPriceSeatBased$inboundSchema: z.ZodType<
|
|
|
85
91
|
"product_id": "productId",
|
|
86
92
|
"recurring_interval": "recurringInterval",
|
|
87
93
|
"price_currency": "priceCurrency",
|
|
88
|
-
"
|
|
94
|
+
"seat_tiers": "seatTiers",
|
|
89
95
|
});
|
|
90
96
|
});
|
|
91
97
|
|
|
@@ -100,7 +106,7 @@ export type ProductPriceSeatBased$Outbound = {
|
|
|
100
106
|
type: string;
|
|
101
107
|
recurring_interval: string | null;
|
|
102
108
|
price_currency: string;
|
|
103
|
-
|
|
109
|
+
seat_tiers: ProductPriceSeatTiers$Outbound;
|
|
104
110
|
};
|
|
105
111
|
|
|
106
112
|
/** @internal */
|
|
@@ -118,7 +124,7 @@ export const ProductPriceSeatBased$outboundSchema: z.ZodType<
|
|
|
118
124
|
type: ProductPriceType$outboundSchema,
|
|
119
125
|
recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema),
|
|
120
126
|
priceCurrency: z.string(),
|
|
121
|
-
|
|
127
|
+
seatTiers: ProductPriceSeatTiers$outboundSchema,
|
|
122
128
|
}).transform((v) => {
|
|
123
129
|
return remap$(v, {
|
|
124
130
|
createdAt: "created_at",
|
|
@@ -128,7 +134,7 @@ export const ProductPriceSeatBased$outboundSchema: z.ZodType<
|
|
|
128
134
|
productId: "product_id",
|
|
129
135
|
recurringInterval: "recurring_interval",
|
|
130
136
|
priceCurrency: "price_currency",
|
|
131
|
-
|
|
137
|
+
seatTiers: "seat_tiers",
|
|
132
138
|
});
|
|
133
139
|
});
|
|
134
140
|
|
|
@@ -7,9 +7,15 @@ 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
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ProductPriceSeatTiers,
|
|
12
|
+
ProductPriceSeatTiers$inboundSchema,
|
|
13
|
+
ProductPriceSeatTiers$Outbound,
|
|
14
|
+
ProductPriceSeatTiers$outboundSchema,
|
|
15
|
+
} from "./productpriceseattiers.js";
|
|
10
16
|
|
|
11
17
|
/**
|
|
12
|
-
* Schema to create a seat-based price.
|
|
18
|
+
* Schema to create a seat-based price with volume-based tiers.
|
|
13
19
|
*/
|
|
14
20
|
export type ProductPriceSeatBasedCreate = {
|
|
15
21
|
amountType: "seat_based";
|
|
@@ -18,9 +24,9 @@ export type ProductPriceSeatBasedCreate = {
|
|
|
18
24
|
*/
|
|
19
25
|
priceCurrency?: string | undefined;
|
|
20
26
|
/**
|
|
21
|
-
*
|
|
27
|
+
* List of pricing tiers for seat-based pricing.
|
|
22
28
|
*/
|
|
23
|
-
|
|
29
|
+
seatTiers: ProductPriceSeatTiers;
|
|
24
30
|
};
|
|
25
31
|
|
|
26
32
|
/** @internal */
|
|
@@ -31,12 +37,12 @@ export const ProductPriceSeatBasedCreate$inboundSchema: z.ZodType<
|
|
|
31
37
|
> = z.object({
|
|
32
38
|
amount_type: z.literal("seat_based"),
|
|
33
39
|
price_currency: z.string().default("usd"),
|
|
34
|
-
|
|
40
|
+
seat_tiers: ProductPriceSeatTiers$inboundSchema,
|
|
35
41
|
}).transform((v) => {
|
|
36
42
|
return remap$(v, {
|
|
37
43
|
"amount_type": "amountType",
|
|
38
44
|
"price_currency": "priceCurrency",
|
|
39
|
-
"
|
|
45
|
+
"seat_tiers": "seatTiers",
|
|
40
46
|
});
|
|
41
47
|
});
|
|
42
48
|
|
|
@@ -44,7 +50,7 @@ export const ProductPriceSeatBasedCreate$inboundSchema: z.ZodType<
|
|
|
44
50
|
export type ProductPriceSeatBasedCreate$Outbound = {
|
|
45
51
|
amount_type: "seat_based";
|
|
46
52
|
price_currency: string;
|
|
47
|
-
|
|
53
|
+
seat_tiers: ProductPriceSeatTiers$Outbound;
|
|
48
54
|
};
|
|
49
55
|
|
|
50
56
|
/** @internal */
|
|
@@ -55,12 +61,12 @@ export const ProductPriceSeatBasedCreate$outboundSchema: z.ZodType<
|
|
|
55
61
|
> = z.object({
|
|
56
62
|
amountType: z.literal("seat_based"),
|
|
57
63
|
priceCurrency: z.string().default("usd"),
|
|
58
|
-
|
|
64
|
+
seatTiers: ProductPriceSeatTiers$outboundSchema,
|
|
59
65
|
}).transform((v) => {
|
|
60
66
|
return remap$(v, {
|
|
61
67
|
amountType: "amount_type",
|
|
62
68
|
priceCurrency: "price_currency",
|
|
63
|
-
|
|
69
|
+
seatTiers: "seat_tiers",
|
|
64
70
|
});
|
|
65
71
|
});
|
|
66
72
|
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
* A pricing tier for seat-based pricing.
|
|
13
|
+
*/
|
|
14
|
+
export type ProductPriceSeatTier = {
|
|
15
|
+
/**
|
|
16
|
+
* Minimum number of seats (inclusive)
|
|
17
|
+
*/
|
|
18
|
+
minSeats: number;
|
|
19
|
+
/**
|
|
20
|
+
* Maximum number of seats (inclusive). None for unlimited.
|
|
21
|
+
*/
|
|
22
|
+
maxSeats?: number | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Price per seat in cents for this tier
|
|
25
|
+
*/
|
|
26
|
+
pricePerSeat: number;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ProductPriceSeatTier$inboundSchema: z.ZodType<
|
|
31
|
+
ProductPriceSeatTier,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
min_seats: z.number().int(),
|
|
36
|
+
max_seats: z.nullable(z.number().int()).optional(),
|
|
37
|
+
price_per_seat: z.number().int(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"min_seats": "minSeats",
|
|
41
|
+
"max_seats": "maxSeats",
|
|
42
|
+
"price_per_seat": "pricePerSeat",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type ProductPriceSeatTier$Outbound = {
|
|
48
|
+
min_seats: number;
|
|
49
|
+
max_seats?: number | null | undefined;
|
|
50
|
+
price_per_seat: number;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const ProductPriceSeatTier$outboundSchema: z.ZodType<
|
|
55
|
+
ProductPriceSeatTier$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
ProductPriceSeatTier
|
|
58
|
+
> = z.object({
|
|
59
|
+
minSeats: z.number().int(),
|
|
60
|
+
maxSeats: z.nullable(z.number().int()).optional(),
|
|
61
|
+
pricePerSeat: z.number().int(),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return remap$(v, {
|
|
64
|
+
minSeats: "min_seats",
|
|
65
|
+
maxSeats: "max_seats",
|
|
66
|
+
pricePerSeat: "price_per_seat",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace ProductPriceSeatTier$ {
|
|
75
|
+
/** @deprecated use `ProductPriceSeatTier$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = ProductPriceSeatTier$inboundSchema;
|
|
77
|
+
/** @deprecated use `ProductPriceSeatTier$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = ProductPriceSeatTier$outboundSchema;
|
|
79
|
+
/** @deprecated use `ProductPriceSeatTier$Outbound` instead. */
|
|
80
|
+
export type Outbound = ProductPriceSeatTier$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function productPriceSeatTierToJSON(
|
|
84
|
+
productPriceSeatTier: ProductPriceSeatTier,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
ProductPriceSeatTier$outboundSchema.parse(productPriceSeatTier),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function productPriceSeatTierFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<ProductPriceSeatTier, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => ProductPriceSeatTier$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'ProductPriceSeatTier' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ProductPriceSeatTier,
|
|
11
|
+
ProductPriceSeatTier$inboundSchema,
|
|
12
|
+
ProductPriceSeatTier$Outbound,
|
|
13
|
+
ProductPriceSeatTier$outboundSchema,
|
|
14
|
+
} from "./productpriceseattier.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* List of pricing tiers for seat-based pricing.
|
|
18
|
+
*/
|
|
19
|
+
export type ProductPriceSeatTiers = {
|
|
20
|
+
/**
|
|
21
|
+
* List of pricing tiers
|
|
22
|
+
*/
|
|
23
|
+
tiers: Array<ProductPriceSeatTier>;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const ProductPriceSeatTiers$inboundSchema: z.ZodType<
|
|
28
|
+
ProductPriceSeatTiers,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
tiers: z.array(ProductPriceSeatTier$inboundSchema),
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type ProductPriceSeatTiers$Outbound = {
|
|
37
|
+
tiers: Array<ProductPriceSeatTier$Outbound>;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ProductPriceSeatTiers$outboundSchema: z.ZodType<
|
|
42
|
+
ProductPriceSeatTiers$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
ProductPriceSeatTiers
|
|
45
|
+
> = z.object({
|
|
46
|
+
tiers: z.array(ProductPriceSeatTier$outboundSchema),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace ProductPriceSeatTiers$ {
|
|
54
|
+
/** @deprecated use `ProductPriceSeatTiers$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema = ProductPriceSeatTiers$inboundSchema;
|
|
56
|
+
/** @deprecated use `ProductPriceSeatTiers$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema = ProductPriceSeatTiers$outboundSchema;
|
|
58
|
+
/** @deprecated use `ProductPriceSeatTiers$Outbound` instead. */
|
|
59
|
+
export type Outbound = ProductPriceSeatTiers$Outbound;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function productPriceSeatTiersToJSON(
|
|
63
|
+
productPriceSeatTiers: ProductPriceSeatTiers,
|
|
64
|
+
): string {
|
|
65
|
+
return JSON.stringify(
|
|
66
|
+
ProductPriceSeatTiers$outboundSchema.parse(productPriceSeatTiers),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function productPriceSeatTiersFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<ProductPriceSeatTiers, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => ProductPriceSeatTiers$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'ProductPriceSeatTiers' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|