@polar-sh/sdk 0.19.2 → 0.20.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 +15 -10
- package/RUNTIMES.md +27 -1
- package/docs/sdks/polarsubscriptions/README.md +6 -5
- package/docs/sdks/subscriptions/README.md +165 -1
- package/funcs/advertisementsGet.js +4 -4
- package/funcs/advertisementsGet.js.map +1 -1
- package/funcs/advertisementsList.js +6 -6
- package/funcs/advertisementsList.js.map +1 -1
- package/funcs/benefitsCreate.js +4 -4
- package/funcs/benefitsCreate.js.map +1 -1
- package/funcs/benefitsDelete.js +4 -4
- package/funcs/benefitsDelete.js.map +1 -1
- package/funcs/benefitsGet.js +4 -4
- package/funcs/benefitsGet.js.map +1 -1
- package/funcs/benefitsGrants.js +6 -6
- package/funcs/benefitsGrants.js.map +1 -1
- package/funcs/benefitsList.js +6 -6
- package/funcs/benefitsList.js.map +1 -1
- package/funcs/benefitsUpdate.js +4 -4
- package/funcs/benefitsUpdate.js.map +1 -1
- package/funcs/checkoutLinksCreate.js +4 -4
- package/funcs/checkoutLinksCreate.js.map +1 -1
- package/funcs/checkoutLinksDelete.js +4 -4
- package/funcs/checkoutLinksDelete.js.map +1 -1
- package/funcs/checkoutLinksGet.js +4 -4
- package/funcs/checkoutLinksGet.js.map +1 -1
- package/funcs/checkoutLinksList.js +6 -6
- package/funcs/checkoutLinksList.js.map +1 -1
- package/funcs/checkoutLinksUpdate.js +4 -4
- package/funcs/checkoutLinksUpdate.js.map +1 -1
- package/funcs/checkoutsCreate.js +4 -4
- package/funcs/checkoutsCreate.js.map +1 -1
- package/funcs/checkoutsCustomClientConfirm.js +4 -4
- package/funcs/checkoutsCustomClientConfirm.js.map +1 -1
- package/funcs/checkoutsCustomClientGet.js +4 -4
- package/funcs/checkoutsCustomClientGet.js.map +1 -1
- package/funcs/checkoutsCustomClientUpdate.js +4 -4
- package/funcs/checkoutsCustomClientUpdate.js.map +1 -1
- package/funcs/checkoutsCustomCreate.js +4 -4
- package/funcs/checkoutsCustomCreate.js.map +1 -1
- package/funcs/checkoutsCustomGet.js +4 -4
- package/funcs/checkoutsCustomGet.js.map +1 -1
- package/funcs/checkoutsCustomList.js +6 -6
- package/funcs/checkoutsCustomList.js.map +1 -1
- package/funcs/checkoutsCustomUpdate.js +4 -4
- package/funcs/checkoutsCustomUpdate.js.map +1 -1
- package/funcs/checkoutsGet.js +4 -4
- package/funcs/checkoutsGet.js.map +1 -1
- package/funcs/customFieldsCreate.js +4 -4
- package/funcs/customFieldsCreate.js.map +1 -1
- package/funcs/customFieldsDelete.js +4 -4
- package/funcs/customFieldsDelete.js.map +1 -1
- package/funcs/customFieldsGet.js +4 -4
- package/funcs/customFieldsGet.js.map +1 -1
- package/funcs/customFieldsList.js +6 -6
- package/funcs/customFieldsList.js.map +1 -1
- package/funcs/customFieldsUpdate.js +4 -4
- package/funcs/customFieldsUpdate.js.map +1 -1
- package/funcs/customerPortalBenefitGrantsGet.js +4 -4
- package/funcs/customerPortalBenefitGrantsGet.js.map +1 -1
- package/funcs/customerPortalBenefitGrantsList.js +6 -6
- package/funcs/customerPortalBenefitGrantsList.js.map +1 -1
- package/funcs/customerPortalBenefitGrantsUpdate.js +4 -4
- package/funcs/customerPortalBenefitGrantsUpdate.js.map +1 -1
- package/funcs/customerPortalCustomersGet.js +4 -4
- package/funcs/customerPortalCustomersGet.js.map +1 -1
- package/funcs/customerPortalDownloadablesGet.js +4 -4
- package/funcs/customerPortalDownloadablesGet.js.map +1 -1
- package/funcs/customerPortalDownloadablesList.js +6 -6
- package/funcs/customerPortalDownloadablesList.js.map +1 -1
- package/funcs/customerPortalLicenseKeysActivate.js +4 -4
- package/funcs/customerPortalLicenseKeysActivate.js.map +1 -1
- package/funcs/customerPortalLicenseKeysDeactivate.js +4 -4
- package/funcs/customerPortalLicenseKeysDeactivate.js.map +1 -1
- package/funcs/customerPortalLicenseKeysGet.js +4 -4
- package/funcs/customerPortalLicenseKeysGet.js.map +1 -1
- package/funcs/customerPortalLicenseKeysList.js +6 -6
- package/funcs/customerPortalLicenseKeysList.js.map +1 -1
- package/funcs/customerPortalLicenseKeysValidate.js +4 -4
- package/funcs/customerPortalLicenseKeysValidate.js.map +1 -1
- package/funcs/customerPortalOrdersGet.js +4 -4
- package/funcs/customerPortalOrdersGet.js.map +1 -1
- package/funcs/customerPortalOrdersInvoice.js +4 -4
- package/funcs/customerPortalOrdersInvoice.js.map +1 -1
- package/funcs/customerPortalOrdersList.js +6 -6
- package/funcs/customerPortalOrdersList.js.map +1 -1
- package/funcs/customerPortalOrganizationsGet.js +4 -4
- package/funcs/customerPortalOrganizationsGet.js.map +1 -1
- package/funcs/customerPortalSubscriptionsCancel.js +4 -4
- package/funcs/customerPortalSubscriptionsCancel.js.map +1 -1
- package/funcs/customerPortalSubscriptionsGet.js +4 -4
- package/funcs/customerPortalSubscriptionsGet.js.map +1 -1
- package/funcs/customerPortalSubscriptionsList.js +6 -6
- package/funcs/customerPortalSubscriptionsList.js.map +1 -1
- package/funcs/customerPortalSubscriptionsUpdate.d.ts +1 -1
- package/funcs/customerPortalSubscriptionsUpdate.d.ts.map +1 -1
- package/funcs/customerPortalSubscriptionsUpdate.js +6 -6
- package/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
- package/funcs/customerSessionsCreate.js +4 -4
- package/funcs/customerSessionsCreate.js.map +1 -1
- package/funcs/customersCreate.js +4 -4
- package/funcs/customersCreate.js.map +1 -1
- package/funcs/customersDelete.js +4 -4
- package/funcs/customersDelete.js.map +1 -1
- package/funcs/customersGet.js +4 -4
- package/funcs/customersGet.js.map +1 -1
- package/funcs/customersList.js +6 -6
- package/funcs/customersList.js.map +1 -1
- package/funcs/customersUpdate.js +4 -4
- package/funcs/customersUpdate.js.map +1 -1
- package/funcs/discountsCreate.js +4 -4
- package/funcs/discountsCreate.js.map +1 -1
- package/funcs/discountsDelete.js +4 -4
- package/funcs/discountsDelete.js.map +1 -1
- package/funcs/discountsGet.js +4 -4
- package/funcs/discountsGet.js.map +1 -1
- package/funcs/discountsList.js +6 -6
- package/funcs/discountsList.js.map +1 -1
- package/funcs/discountsUpdate.js +4 -4
- package/funcs/discountsUpdate.js.map +1 -1
- package/funcs/externalOrganizationsList.js +6 -6
- package/funcs/externalOrganizationsList.js.map +1 -1
- package/funcs/filesCreate.js +4 -4
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.js +4 -4
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesList.js +6 -6
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpdate.js +4 -4
- package/funcs/filesUpdate.js.map +1 -1
- package/funcs/filesUploaded.js +4 -4
- package/funcs/filesUploaded.js.map +1 -1
- package/funcs/licenseKeysGet.js +4 -4
- package/funcs/licenseKeysGet.js.map +1 -1
- package/funcs/licenseKeysGetActivation.js +4 -4
- package/funcs/licenseKeysGetActivation.js.map +1 -1
- package/funcs/licenseKeysList.js +6 -6
- package/funcs/licenseKeysList.js.map +1 -1
- package/funcs/licenseKeysUpdate.js +4 -4
- package/funcs/licenseKeysUpdate.js.map +1 -1
- package/funcs/metricsGet.js +4 -4
- package/funcs/metricsGet.js.map +1 -1
- package/funcs/metricsLimits.js +4 -4
- package/funcs/metricsLimits.js.map +1 -1
- package/funcs/oauth2Authorize.js +4 -4
- package/funcs/oauth2Authorize.js.map +1 -1
- package/funcs/oauth2ClientsCreate.js +4 -4
- package/funcs/oauth2ClientsCreate.js.map +1 -1
- package/funcs/oauth2ClientsDelete.js +4 -4
- package/funcs/oauth2ClientsDelete.js.map +1 -1
- package/funcs/oauth2ClientsGet.js +4 -4
- package/funcs/oauth2ClientsGet.js.map +1 -1
- package/funcs/oauth2ClientsList.js +6 -6
- package/funcs/oauth2ClientsList.js.map +1 -1
- package/funcs/oauth2ClientsUpdate.js +4 -4
- package/funcs/oauth2ClientsUpdate.js.map +1 -1
- package/funcs/oauth2Introspect.js +4 -4
- package/funcs/oauth2Introspect.js.map +1 -1
- package/funcs/oauth2Revoke.js +4 -4
- package/funcs/oauth2Revoke.js.map +1 -1
- package/funcs/oauth2Token.js +4 -4
- package/funcs/oauth2Token.js.map +1 -1
- package/funcs/oauth2Userinfo.js +4 -4
- package/funcs/oauth2Userinfo.js.map +1 -1
- package/funcs/ordersGet.js +4 -4
- package/funcs/ordersGet.js.map +1 -1
- package/funcs/ordersInvoice.js +4 -4
- package/funcs/ordersInvoice.js.map +1 -1
- package/funcs/ordersList.js +6 -6
- package/funcs/ordersList.js.map +1 -1
- package/funcs/organizationsCreate.js +4 -4
- package/funcs/organizationsCreate.js.map +1 -1
- package/funcs/organizationsGet.js +4 -4
- package/funcs/organizationsGet.js.map +1 -1
- package/funcs/organizationsList.js +6 -6
- package/funcs/organizationsList.js.map +1 -1
- package/funcs/organizationsUpdate.js +4 -4
- package/funcs/organizationsUpdate.js.map +1 -1
- package/funcs/productsCreate.js +4 -4
- package/funcs/productsCreate.js.map +1 -1
- package/funcs/productsGet.js +4 -4
- package/funcs/productsGet.js.map +1 -1
- package/funcs/productsList.js +6 -6
- package/funcs/productsList.js.map +1 -1
- package/funcs/productsUpdate.js +4 -4
- package/funcs/productsUpdate.js.map +1 -1
- package/funcs/productsUpdateBenefits.js +4 -4
- package/funcs/productsUpdateBenefits.js.map +1 -1
- package/funcs/repositoriesGet.js +4 -4
- package/funcs/repositoriesGet.js.map +1 -1
- package/funcs/repositoriesList.js +6 -6
- package/funcs/repositoriesList.js.map +1 -1
- package/funcs/repositoriesUpdate.js +4 -4
- package/funcs/repositoriesUpdate.js.map +1 -1
- package/funcs/subscriptionsExport.js +4 -4
- package/funcs/subscriptionsExport.js.map +1 -1
- package/funcs/subscriptionsList.js +6 -6
- package/funcs/subscriptionsList.js.map +1 -1
- package/funcs/subscriptionsRevoke.d.ts +17 -0
- package/funcs/subscriptionsRevoke.d.ts.map +1 -0
- package/funcs/subscriptionsRevoke.js +106 -0
- package/funcs/subscriptionsRevoke.js.map +1 -0
- package/funcs/subscriptionsUpdate.d.ts +17 -0
- package/funcs/subscriptionsUpdate.d.ts.map +1 -0
- package/funcs/subscriptionsUpdate.js +109 -0
- package/funcs/subscriptionsUpdate.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +4 -5
- package/lib/config.js.map +1 -1
- package/lib/encodings.js +18 -19
- package/lib/encodings.js.map +1 -1
- package/lib/env.js +1 -2
- package/lib/env.js.map +1 -1
- package/lib/http.js +1 -2
- package/lib/http.js.map +1 -1
- package/lib/matchers.js +5 -6
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.js +1 -1
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +3 -4
- package/lib/retries.js.map +1 -1
- package/lib/sdks.js +15 -16
- package/lib/sdks.js.map +1 -1
- package/lib/security.js +2 -3
- package/lib/security.js.map +1 -1
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/models/components/authorizeresponseorganization.d.ts +0 -23
- package/models/components/authorizeresponseorganization.d.ts.map +1 -1
- package/models/components/authorizeresponseorganization.js +1 -19
- package/models/components/authorizeresponseorganization.js.map +1 -1
- package/models/components/authorizeresponseuser.d.ts +0 -23
- package/models/components/authorizeresponseuser.d.ts.map +1 -1
- package/models/components/authorizeresponseuser.js +1 -19
- package/models/components/authorizeresponseuser.js.map +1 -1
- package/models/components/benefitads.d.ts +0 -23
- package/models/components/benefitads.d.ts.map +1 -1
- package/models/components/benefitads.js +1 -19
- package/models/components/benefitads.js.map +1 -1
- package/models/components/benefitadscreate.d.ts +0 -23
- package/models/components/benefitadscreate.d.ts.map +1 -1
- package/models/components/benefitadscreate.js +1 -19
- package/models/components/benefitadscreate.js.map +1 -1
- package/models/components/benefitadssubscriber.d.ts +0 -23
- package/models/components/benefitadssubscriber.d.ts.map +1 -1
- package/models/components/benefitadssubscriber.js +1 -19
- package/models/components/benefitadssubscriber.js.map +1 -1
- package/models/components/benefitadsupdate.d.ts +0 -23
- package/models/components/benefitadsupdate.d.ts.map +1 -1
- package/models/components/benefitadsupdate.js +1 -19
- package/models/components/benefitadsupdate.js.map +1 -1
- package/models/components/benefitcustom.d.ts +0 -23
- package/models/components/benefitcustom.d.ts.map +1 -1
- package/models/components/benefitcustom.js +1 -19
- package/models/components/benefitcustom.js.map +1 -1
- package/models/components/benefitcustomcreate.d.ts +0 -23
- package/models/components/benefitcustomcreate.d.ts.map +1 -1
- package/models/components/benefitcustomcreate.js +1 -19
- package/models/components/benefitcustomcreate.js.map +1 -1
- package/models/components/benefitcustomsubscriber.d.ts +0 -23
- package/models/components/benefitcustomsubscriber.d.ts.map +1 -1
- package/models/components/benefitcustomsubscriber.js +1 -19
- package/models/components/benefitcustomsubscriber.js.map +1 -1
- package/models/components/benefitcustomupdate.d.ts +0 -23
- package/models/components/benefitcustomupdate.d.ts.map +1 -1
- package/models/components/benefitcustomupdate.js +1 -19
- package/models/components/benefitcustomupdate.js.map +1 -1
- package/models/components/benefitdiscord.d.ts +0 -23
- package/models/components/benefitdiscord.d.ts.map +1 -1
- package/models/components/benefitdiscord.js +1 -19
- package/models/components/benefitdiscord.js.map +1 -1
- package/models/components/benefitdiscordcreate.d.ts +0 -23
- package/models/components/benefitdiscordcreate.d.ts.map +1 -1
- package/models/components/benefitdiscordcreate.js +1 -19
- package/models/components/benefitdiscordcreate.js.map +1 -1
- package/models/components/benefitdiscordsubscriber.d.ts +0 -23
- package/models/components/benefitdiscordsubscriber.d.ts.map +1 -1
- package/models/components/benefitdiscordsubscriber.js +1 -19
- package/models/components/benefitdiscordsubscriber.js.map +1 -1
- package/models/components/benefitdiscordupdate.d.ts +0 -23
- package/models/components/benefitdiscordupdate.d.ts.map +1 -1
- package/models/components/benefitdiscordupdate.js +1 -19
- package/models/components/benefitdiscordupdate.js.map +1 -1
- package/models/components/benefitdownloadables.d.ts +0 -23
- package/models/components/benefitdownloadables.d.ts.map +1 -1
- package/models/components/benefitdownloadables.js +1 -19
- package/models/components/benefitdownloadables.js.map +1 -1
- package/models/components/benefitdownloadablescreate.d.ts +0 -23
- package/models/components/benefitdownloadablescreate.d.ts.map +1 -1
- package/models/components/benefitdownloadablescreate.js +1 -19
- package/models/components/benefitdownloadablescreate.js.map +1 -1
- package/models/components/benefitdownloadablessubscriber.d.ts +0 -23
- package/models/components/benefitdownloadablessubscriber.d.ts.map +1 -1
- package/models/components/benefitdownloadablessubscriber.js +1 -19
- package/models/components/benefitdownloadablessubscriber.js.map +1 -1
- package/models/components/benefitdownloadablesupdate.d.ts +0 -23
- package/models/components/benefitdownloadablesupdate.d.ts.map +1 -1
- package/models/components/benefitdownloadablesupdate.js +1 -19
- package/models/components/benefitdownloadablesupdate.js.map +1 -1
- package/models/components/benefitgithubrepository.d.ts +0 -23
- package/models/components/benefitgithubrepository.d.ts.map +1 -1
- package/models/components/benefitgithubrepository.js +1 -19
- package/models/components/benefitgithubrepository.js.map +1 -1
- package/models/components/benefitgithubrepositorycreate.d.ts +0 -23
- package/models/components/benefitgithubrepositorycreate.d.ts.map +1 -1
- package/models/components/benefitgithubrepositorycreate.js +1 -19
- package/models/components/benefitgithubrepositorycreate.js.map +1 -1
- package/models/components/benefitgithubrepositorysubscriber.d.ts +0 -23
- package/models/components/benefitgithubrepositorysubscriber.d.ts.map +1 -1
- package/models/components/benefitgithubrepositorysubscriber.js +1 -19
- package/models/components/benefitgithubrepositorysubscriber.js.map +1 -1
- package/models/components/benefitgithubrepositoryupdate.d.ts +0 -23
- package/models/components/benefitgithubrepositoryupdate.d.ts.map +1 -1
- package/models/components/benefitgithubrepositoryupdate.js +1 -19
- package/models/components/benefitgithubrepositoryupdate.js.map +1 -1
- package/models/components/benefitgrant.d.ts +6 -0
- package/models/components/benefitgrant.d.ts.map +1 -1
- package/models/components/benefitgrant.js +3 -0
- package/models/components/benefitgrant.js.map +1 -1
- package/models/components/benefitgrantwebhook.d.ts +6 -0
- package/models/components/benefitgrantwebhook.d.ts.map +1 -1
- package/models/components/benefitgrantwebhook.js +3 -0
- package/models/components/benefitgrantwebhook.js.map +1 -1
- package/models/components/benefitlicensekeys.d.ts +0 -23
- package/models/components/benefitlicensekeys.d.ts.map +1 -1
- package/models/components/benefitlicensekeys.js +1 -19
- package/models/components/benefitlicensekeys.js.map +1 -1
- package/models/components/benefitlicensekeyscreate.d.ts +0 -23
- package/models/components/benefitlicensekeyscreate.d.ts.map +1 -1
- package/models/components/benefitlicensekeyscreate.js +1 -19
- package/models/components/benefitlicensekeyscreate.js.map +1 -1
- package/models/components/benefitlicensekeyssubscriber.d.ts +0 -23
- package/models/components/benefitlicensekeyssubscriber.d.ts.map +1 -1
- package/models/components/benefitlicensekeyssubscriber.js +1 -19
- package/models/components/benefitlicensekeyssubscriber.js.map +1 -1
- package/models/components/benefitlicensekeysupdate.d.ts +0 -23
- package/models/components/benefitlicensekeysupdate.d.ts.map +1 -1
- package/models/components/benefitlicensekeysupdate.js +1 -19
- package/models/components/benefitlicensekeysupdate.js.map +1 -1
- package/models/components/checkout.d.ts +3 -2
- package/models/components/checkout.d.ts.map +1 -1
- package/models/components/checkout.js +3 -2
- package/models/components/checkout.js.map +1 -1
- package/models/components/checkoutlink.d.ts +3 -2
- package/models/components/checkoutlink.d.ts.map +1 -1
- package/models/components/checkoutlink.js +3 -2
- package/models/components/checkoutlink.js.map +1 -1
- package/models/components/checkoutlinkpricecreate.d.ts +0 -29
- package/models/components/checkoutlinkpricecreate.d.ts.map +1 -1
- package/models/components/checkoutlinkpricecreate.js +1 -23
- package/models/components/checkoutlinkpricecreate.js.map +1 -1
- package/models/components/checkoutlinkproductcreate.d.ts +0 -29
- package/models/components/checkoutlinkproductcreate.d.ts.map +1 -1
- package/models/components/checkoutlinkproductcreate.js +1 -23
- package/models/components/checkoutlinkproductcreate.js.map +1 -1
- package/models/components/checkoutpricecreate.d.ts +0 -34
- package/models/components/checkoutpricecreate.d.ts.map +1 -1
- package/models/components/checkoutpricecreate.js +1 -26
- package/models/components/checkoutpricecreate.js.map +1 -1
- package/models/components/checkoutproductcreate.d.ts +0 -34
- package/models/components/checkoutproductcreate.d.ts.map +1 -1
- package/models/components/checkoutproductcreate.js +1 -26
- package/models/components/checkoutproductcreate.js.map +1 -1
- package/models/components/checkoutpublic.d.ts +3 -2
- package/models/components/checkoutpublic.d.ts.map +1 -1
- package/models/components/checkoutpublic.js +3 -2
- package/models/components/checkoutpublic.js.map +1 -1
- package/models/components/checkoutpublicconfirmed.d.ts +3 -25
- package/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/models/components/checkoutpublicconfirmed.js +4 -22
- package/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/models/components/customerbenefitgrantads.d.ts +3 -0
- package/models/components/customerbenefitgrantads.d.ts.map +1 -1
- package/models/components/customerbenefitgrantads.js +3 -0
- package/models/components/customerbenefitgrantads.js.map +1 -1
- package/models/components/customerbenefitgrantadsupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantadsupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantadsupdate.js +1 -20
- package/models/components/customerbenefitgrantadsupdate.js.map +1 -1
- package/models/components/customerbenefitgrantcustom.d.ts +3 -0
- package/models/components/customerbenefitgrantcustom.d.ts.map +1 -1
- package/models/components/customerbenefitgrantcustom.js +3 -0
- package/models/components/customerbenefitgrantcustom.js.map +1 -1
- package/models/components/customerbenefitgrantcustomupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantcustomupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantcustomupdate.js +1 -20
- package/models/components/customerbenefitgrantcustomupdate.js.map +1 -1
- package/models/components/customerbenefitgrantdiscord.d.ts +3 -0
- package/models/components/customerbenefitgrantdiscord.d.ts.map +1 -1
- package/models/components/customerbenefitgrantdiscord.js +3 -0
- package/models/components/customerbenefitgrantdiscord.js.map +1 -1
- package/models/components/customerbenefitgrantdiscordupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantdiscordupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantdiscordupdate.js +1 -20
- package/models/components/customerbenefitgrantdiscordupdate.js.map +1 -1
- package/models/components/customerbenefitgrantdownloadables.d.ts +3 -0
- package/models/components/customerbenefitgrantdownloadables.d.ts.map +1 -1
- package/models/components/customerbenefitgrantdownloadables.js +3 -0
- package/models/components/customerbenefitgrantdownloadables.js.map +1 -1
- package/models/components/customerbenefitgrantdownloadablesupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantdownloadablesupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantdownloadablesupdate.js +1 -20
- package/models/components/customerbenefitgrantdownloadablesupdate.js.map +1 -1
- package/models/components/customerbenefitgrantgithubrepository.d.ts +3 -0
- package/models/components/customerbenefitgrantgithubrepository.d.ts.map +1 -1
- package/models/components/customerbenefitgrantgithubrepository.js +3 -0
- package/models/components/customerbenefitgrantgithubrepository.js.map +1 -1
- package/models/components/customerbenefitgrantgithubrepositoryupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantgithubrepositoryupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantgithubrepositoryupdate.js +1 -19
- package/models/components/customerbenefitgrantgithubrepositoryupdate.js.map +1 -1
- package/models/components/customerbenefitgrantlicensekeys.d.ts +3 -0
- package/models/components/customerbenefitgrantlicensekeys.d.ts.map +1 -1
- package/models/components/customerbenefitgrantlicensekeys.js +3 -0
- package/models/components/customerbenefitgrantlicensekeys.js.map +1 -1
- package/models/components/customerbenefitgrantlicensekeysupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantlicensekeysupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantlicensekeysupdate.js +1 -20
- package/models/components/customerbenefitgrantlicensekeysupdate.js.map +1 -1
- package/models/components/customercancellationreason.d.ts +46 -0
- package/models/components/customercancellationreason.d.ts.map +1 -0
- package/models/components/customercancellationreason.js +56 -0
- package/models/components/customercancellationreason.js.map +1 -0
- package/models/components/customerordersubscription.d.ts +9 -0
- package/models/components/customerordersubscription.d.ts.map +1 -1
- package/models/components/customerordersubscription.js +17 -0
- package/models/components/customerordersubscription.js.map +1 -1
- package/models/components/customersession.d.ts +2 -0
- package/models/components/customersession.d.ts.map +1 -1
- package/models/components/customersession.js +4 -0
- package/models/components/customersession.js.map +1 -1
- package/models/components/customersubscription.d.ts +9 -0
- package/models/components/customersubscription.d.ts.map +1 -1
- package/models/components/customersubscription.js +17 -0
- package/models/components/customersubscription.js.map +1 -1
- package/models/components/customersubscriptioncancel.d.ts +58 -0
- package/models/components/customersubscriptioncancel.d.ts.map +1 -0
- package/models/components/customersubscriptioncancel.js +79 -0
- package/models/components/customersubscriptioncancel.js.map +1 -0
- package/models/components/customersubscriptionupdate.d.ts +4 -6
- package/models/components/customersubscriptionupdate.d.ts.map +1 -1
- package/models/components/customersubscriptionupdate.js +10 -15
- package/models/components/customersubscriptionupdate.js.map +1 -1
- package/models/components/customersubscriptionupdateprice.d.ts +32 -0
- package/models/components/customersubscriptionupdateprice.d.ts.map +1 -0
- package/models/components/customersubscriptionupdateprice.js +68 -0
- package/models/components/customersubscriptionupdateprice.js.map +1 -0
- package/models/components/customfieldcheckbox.d.ts +0 -23
- package/models/components/customfieldcheckbox.d.ts.map +1 -1
- package/models/components/customfieldcheckbox.js +1 -19
- package/models/components/customfieldcheckbox.js.map +1 -1
- package/models/components/customfieldcreatecheckbox.d.ts +0 -23
- package/models/components/customfieldcreatecheckbox.d.ts.map +1 -1
- package/models/components/customfieldcreatecheckbox.js +1 -19
- package/models/components/customfieldcreatecheckbox.js.map +1 -1
- package/models/components/customfieldcreatedate.d.ts +0 -23
- package/models/components/customfieldcreatedate.d.ts.map +1 -1
- package/models/components/customfieldcreatedate.js +1 -19
- package/models/components/customfieldcreatedate.js.map +1 -1
- package/models/components/customfieldcreatenumber.d.ts +0 -23
- package/models/components/customfieldcreatenumber.d.ts.map +1 -1
- package/models/components/customfieldcreatenumber.js +1 -19
- package/models/components/customfieldcreatenumber.js.map +1 -1
- package/models/components/customfieldcreateselect.d.ts +0 -23
- package/models/components/customfieldcreateselect.d.ts.map +1 -1
- package/models/components/customfieldcreateselect.js +1 -19
- package/models/components/customfieldcreateselect.js.map +1 -1
- package/models/components/customfieldcreatetext.d.ts +0 -23
- package/models/components/customfieldcreatetext.d.ts.map +1 -1
- package/models/components/customfieldcreatetext.js +1 -19
- package/models/components/customfieldcreatetext.js.map +1 -1
- package/models/components/customfielddate.d.ts +0 -23
- package/models/components/customfielddate.d.ts.map +1 -1
- package/models/components/customfielddate.js +1 -19
- package/models/components/customfielddate.js.map +1 -1
- package/models/components/customfieldnumber.d.ts +0 -23
- package/models/components/customfieldnumber.d.ts.map +1 -1
- package/models/components/customfieldnumber.js +1 -19
- package/models/components/customfieldnumber.js.map +1 -1
- package/models/components/customfieldselect.d.ts +0 -23
- package/models/components/customfieldselect.d.ts.map +1 -1
- package/models/components/customfieldselect.js +1 -19
- package/models/components/customfieldselect.js.map +1 -1
- package/models/components/customfieldtext.d.ts +0 -23
- package/models/components/customfieldtext.d.ts.map +1 -1
- package/models/components/customfieldtext.js +1 -19
- package/models/components/customfieldtext.js.map +1 -1
- package/models/components/customfieldupdatecheckbox.d.ts +0 -23
- package/models/components/customfieldupdatecheckbox.d.ts.map +1 -1
- package/models/components/customfieldupdatecheckbox.js +1 -19
- package/models/components/customfieldupdatecheckbox.js.map +1 -1
- package/models/components/customfieldupdatedate.d.ts +0 -23
- package/models/components/customfieldupdatedate.d.ts.map +1 -1
- package/models/components/customfieldupdatedate.js +1 -19
- package/models/components/customfieldupdatedate.js.map +1 -1
- package/models/components/customfieldupdatenumber.d.ts +0 -23
- package/models/components/customfieldupdatenumber.d.ts.map +1 -1
- package/models/components/customfieldupdatenumber.js +1 -19
- package/models/components/customfieldupdatenumber.js.map +1 -1
- package/models/components/customfieldupdateselect.d.ts +0 -23
- package/models/components/customfieldupdateselect.d.ts.map +1 -1
- package/models/components/customfieldupdateselect.js +1 -19
- package/models/components/customfieldupdateselect.js.map +1 -1
- package/models/components/customfieldupdatetext.d.ts +0 -23
- package/models/components/customfieldupdatetext.d.ts.map +1 -1
- package/models/components/customfieldupdatetext.js +1 -19
- package/models/components/customfieldupdatetext.js.map +1 -1
- package/models/components/downloadablefilecreate.d.ts +0 -23
- package/models/components/downloadablefilecreate.d.ts.map +1 -1
- package/models/components/downloadablefilecreate.js +1 -19
- package/models/components/downloadablefilecreate.js.map +1 -1
- package/models/components/downloadablefileread.d.ts +0 -23
- package/models/components/downloadablefileread.d.ts.map +1 -1
- package/models/components/downloadablefileread.js +1 -19
- package/models/components/downloadablefileread.js.map +1 -1
- package/models/components/externalorganization.d.ts +3 -2
- package/models/components/externalorganization.d.ts.map +1 -1
- package/models/components/externalorganization.js +3 -2
- package/models/components/externalorganization.js.map +1 -1
- package/models/components/index.d.ts +7 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -0
- package/models/components/index.js.map +1 -1
- package/models/components/introspecttokenresponse.d.ts +8 -8
- package/models/components/introspecttokenresponse.d.ts.map +1 -1
- package/models/components/introspecttokenresponse.js +14 -13
- package/models/components/introspecttokenresponse.js.map +1 -1
- package/models/components/issue.d.ts +3 -2
- package/models/components/issue.d.ts.map +1 -1
- package/models/components/issue.js +3 -2
- package/models/components/issue.js.map +1 -1
- package/models/components/oauth2client.d.ts +1 -23
- package/models/components/oauth2client.d.ts.map +1 -1
- package/models/components/oauth2client.js +3 -21
- package/models/components/oauth2client.js.map +1 -1
- package/models/components/oauth2clientconfiguration.d.ts +1 -23
- package/models/components/oauth2clientconfiguration.d.ts.map +1 -1
- package/models/components/oauth2clientconfiguration.js +3 -23
- package/models/components/oauth2clientconfiguration.js.map +1 -1
- package/models/components/oauth2clientconfigurationupdate.d.ts +1 -23
- package/models/components/oauth2clientconfigurationupdate.d.ts.map +1 -1
- package/models/components/oauth2clientconfigurationupdate.js +3 -22
- package/models/components/oauth2clientconfigurationupdate.js.map +1 -1
- package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.d.ts +0 -23
- package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.d.ts.map +1 -1
- package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.js +1 -20
- package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.js.map +1 -1
- package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.d.ts +0 -23
- package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.d.ts.map +1 -1
- package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.js +1 -19
- package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.js.map +1 -1
- package/models/components/ordersubscription.d.ts +9 -0
- package/models/components/ordersubscription.d.ts.map +1 -1
- package/models/components/ordersubscription.js +17 -0
- package/models/components/ordersubscription.js.map +1 -1
- package/models/components/organizationavatarfilecreate.d.ts +0 -23
- package/models/components/organizationavatarfilecreate.d.ts.map +1 -1
- package/models/components/organizationavatarfilecreate.js +1 -19
- package/models/components/organizationavatarfilecreate.js.map +1 -1
- package/models/components/organizationavatarfileread.d.ts +0 -23
- package/models/components/organizationavatarfileread.d.ts.map +1 -1
- package/models/components/organizationavatarfileread.js +1 -19
- package/models/components/organizationavatarfileread.js.map +1 -1
- package/models/components/productmediafilecreate.d.ts +0 -23
- package/models/components/productmediafilecreate.d.ts.map +1 -1
- package/models/components/productmediafilecreate.js +1 -19
- package/models/components/productmediafilecreate.js.map +1 -1
- package/models/components/productmediafileread.d.ts +0 -23
- package/models/components/productmediafileread.d.ts.map +1 -1
- package/models/components/productmediafileread.js +1 -20
- package/models/components/productmediafileread.js.map +1 -1
- package/models/components/productpriceonetimecustom.d.ts +0 -51
- package/models/components/productpriceonetimecustom.d.ts.map +1 -1
- package/models/components/productpriceonetimecustom.js +1 -40
- package/models/components/productpriceonetimecustom.js.map +1 -1
- package/models/components/productpriceonetimecustomcreate.d.ts +0 -45
- package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -1
- package/models/components/productpriceonetimecustomcreate.js +1 -38
- package/models/components/productpriceonetimecustomcreate.js.map +1 -1
- package/models/components/productpriceonetimefixed.d.ts +0 -51
- package/models/components/productpriceonetimefixed.d.ts.map +1 -1
- package/models/components/productpriceonetimefixed.js +1 -40
- package/models/components/productpriceonetimefixed.js.map +1 -1
- package/models/components/productpriceonetimefixedcreate.d.ts +0 -45
- package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -1
- package/models/components/productpriceonetimefixedcreate.js +1 -38
- package/models/components/productpriceonetimefixedcreate.js.map +1 -1
- package/models/components/productpriceonetimefree.d.ts +0 -51
- package/models/components/productpriceonetimefree.d.ts.map +1 -1
- package/models/components/productpriceonetimefree.js +1 -40
- package/models/components/productpriceonetimefree.js.map +1 -1
- package/models/components/productpriceonetimefreecreate.d.ts +0 -45
- package/models/components/productpriceonetimefreecreate.d.ts.map +1 -1
- package/models/components/productpriceonetimefreecreate.js +1 -38
- package/models/components/productpriceonetimefreecreate.js.map +1 -1
- package/models/components/productpricerecurringcustom.d.ts +0 -51
- package/models/components/productpricerecurringcustom.d.ts.map +1 -1
- package/models/components/productpricerecurringcustom.js +1 -40
- package/models/components/productpricerecurringcustom.js.map +1 -1
- package/models/components/productpricerecurringfixed.d.ts +0 -51
- package/models/components/productpricerecurringfixed.d.ts.map +1 -1
- package/models/components/productpricerecurringfixed.js +1 -41
- package/models/components/productpricerecurringfixed.js.map +1 -1
- package/models/components/productpricerecurringfixedcreate.d.ts +0 -45
- package/models/components/productpricerecurringfixedcreate.d.ts.map +1 -1
- package/models/components/productpricerecurringfixedcreate.js +1 -38
- package/models/components/productpricerecurringfixedcreate.js.map +1 -1
- package/models/components/productpricerecurringfree.d.ts +0 -51
- package/models/components/productpricerecurringfree.d.ts.map +1 -1
- package/models/components/productpricerecurringfree.js +1 -40
- package/models/components/productpricerecurringfree.js.map +1 -1
- package/models/components/productpricerecurringfreecreate.d.ts +0 -45
- package/models/components/productpricerecurringfreecreate.d.ts.map +1 -1
- package/models/components/productpricerecurringfreecreate.js +1 -38
- package/models/components/productpricerecurringfreecreate.js.map +1 -1
- package/models/components/repository.d.ts +3 -2
- package/models/components/repository.d.ts.map +1 -1
- package/models/components/repository.js +3 -2
- package/models/components/repository.js.map +1 -1
- package/models/components/subscription.d.ts +9 -0
- package/models/components/subscription.d.ts.map +1 -1
- package/models/components/subscription.js +17 -0
- package/models/components/subscription.js.map +1 -1
- package/models/components/subscriptioncancel.d.ts +80 -0
- package/models/components/subscriptioncancel.d.ts.map +1 -0
- package/models/components/subscriptioncancel.js +79 -0
- package/models/components/subscriptioncancel.js.map +1 -0
- package/models/components/subscriptionupdate.d.ts +27 -0
- package/models/components/subscriptionupdate.d.ts.map +1 -0
- package/models/components/subscriptionupdate.js +63 -0
- package/models/components/subscriptionupdate.js.map +1 -0
- package/models/components/subscriptionupdateprice.d.ts +32 -0
- package/models/components/subscriptionupdateprice.d.ts.map +1 -0
- package/models/components/subscriptionupdateprice.js +68 -0
- package/models/components/subscriptionupdateprice.js.map +1 -0
- package/models/components/tokenresponse.d.ts +0 -23
- package/models/components/tokenresponse.d.ts.map +1 -1
- package/models/components/tokenresponse.js +1 -20
- package/models/components/tokenresponse.js.map +1 -1
- package/models/components/webhookbenefitcreatedpayload.d.ts +0 -23
- package/models/components/webhookbenefitcreatedpayload.d.ts.map +1 -1
- package/models/components/webhookbenefitcreatedpayload.js +1 -19
- package/models/components/webhookbenefitcreatedpayload.js.map +1 -1
- package/models/components/webhookbenefitgrantcreatedpayload.d.ts +0 -23
- package/models/components/webhookbenefitgrantcreatedpayload.d.ts.map +1 -1
- package/models/components/webhookbenefitgrantcreatedpayload.js +1 -19
- package/models/components/webhookbenefitgrantcreatedpayload.js.map +1 -1
- package/models/components/webhookbenefitgrantrevokedpayload.d.ts +0 -23
- package/models/components/webhookbenefitgrantrevokedpayload.d.ts.map +1 -1
- package/models/components/webhookbenefitgrantrevokedpayload.js +1 -19
- package/models/components/webhookbenefitgrantrevokedpayload.js.map +1 -1
- package/models/components/webhookbenefitgrantupdatedpayload.d.ts +0 -23
- package/models/components/webhookbenefitgrantupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookbenefitgrantupdatedpayload.js +1 -19
- package/models/components/webhookbenefitgrantupdatedpayload.js.map +1 -1
- package/models/components/webhookbenefitupdatedpayload.d.ts +0 -23
- package/models/components/webhookbenefitupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookbenefitupdatedpayload.js +1 -19
- package/models/components/webhookbenefitupdatedpayload.js.map +1 -1
- package/models/components/webhookcheckoutcreatedpayload.d.ts +0 -23
- package/models/components/webhookcheckoutcreatedpayload.d.ts.map +1 -1
- package/models/components/webhookcheckoutcreatedpayload.js +1 -19
- package/models/components/webhookcheckoutcreatedpayload.js.map +1 -1
- package/models/components/webhookcheckoutupdatedpayload.d.ts +0 -23
- package/models/components/webhookcheckoutupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookcheckoutupdatedpayload.js +1 -19
- package/models/components/webhookcheckoutupdatedpayload.js.map +1 -1
- package/models/components/webhookordercreatedpayload.d.ts +0 -23
- package/models/components/webhookordercreatedpayload.d.ts.map +1 -1
- package/models/components/webhookordercreatedpayload.js +1 -19
- package/models/components/webhookordercreatedpayload.js.map +1 -1
- package/models/components/webhookorganizationupdatedpayload.d.ts +0 -23
- package/models/components/webhookorganizationupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookorganizationupdatedpayload.js +1 -19
- package/models/components/webhookorganizationupdatedpayload.js.map +1 -1
- package/models/components/webhookpledgecreatedpayload.d.ts +0 -23
- package/models/components/webhookpledgecreatedpayload.d.ts.map +1 -1
- package/models/components/webhookpledgecreatedpayload.js +1 -19
- package/models/components/webhookpledgecreatedpayload.js.map +1 -1
- package/models/components/webhookpledgeupdatedpayload.d.ts +0 -23
- package/models/components/webhookpledgeupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookpledgeupdatedpayload.js +1 -19
- package/models/components/webhookpledgeupdatedpayload.js.map +1 -1
- package/models/components/webhookproductcreatedpayload.d.ts +0 -23
- package/models/components/webhookproductcreatedpayload.d.ts.map +1 -1
- package/models/components/webhookproductcreatedpayload.js +1 -19
- package/models/components/webhookproductcreatedpayload.js.map +1 -1
- package/models/components/webhookproductupdatedpayload.d.ts +0 -23
- package/models/components/webhookproductupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookproductupdatedpayload.js +1 -19
- package/models/components/webhookproductupdatedpayload.js.map +1 -1
- package/models/components/webhooksubscriptionactivepayload.d.ts +0 -23
- package/models/components/webhooksubscriptionactivepayload.d.ts.map +1 -1
- package/models/components/webhooksubscriptionactivepayload.js +1 -19
- package/models/components/webhooksubscriptionactivepayload.js.map +1 -1
- package/models/components/webhooksubscriptioncanceledpayload.d.ts +2 -25
- package/models/components/webhooksubscriptioncanceledpayload.d.ts.map +1 -1
- package/models/components/webhooksubscriptioncanceledpayload.js +1 -19
- package/models/components/webhooksubscriptioncanceledpayload.js.map +1 -1
- package/models/components/webhooksubscriptioncreatedpayload.d.ts +0 -23
- package/models/components/webhooksubscriptioncreatedpayload.d.ts.map +1 -1
- package/models/components/webhooksubscriptioncreatedpayload.js +1 -19
- package/models/components/webhooksubscriptioncreatedpayload.js.map +1 -1
- package/models/components/webhooksubscriptionrevokedpayload.d.ts +0 -23
- package/models/components/webhooksubscriptionrevokedpayload.d.ts.map +1 -1
- package/models/components/webhooksubscriptionrevokedpayload.js +1 -19
- package/models/components/webhooksubscriptionrevokedpayload.js.map +1 -1
- package/models/components/webhooksubscriptionuncanceledpayload.d.ts +39 -0
- package/models/components/webhooksubscriptionuncanceledpayload.d.ts.map +1 -0
- package/models/components/webhooksubscriptionuncanceledpayload.js +62 -0
- package/models/components/webhooksubscriptionuncanceledpayload.js.map +1 -0
- package/models/components/webhooksubscriptionupdatedpayload.d.ts +0 -23
- package/models/components/webhooksubscriptionupdatedpayload.d.ts.map +1 -1
- package/models/components/webhooksubscriptionupdatedpayload.js +1 -19
- package/models/components/webhooksubscriptionupdatedpayload.js.map +1 -1
- package/models/errors/alreadycanceledsubscription.d.ts +0 -23
- package/models/errors/alreadycanceledsubscription.d.ts.map +1 -1
- package/models/errors/alreadycanceledsubscription.js +1 -19
- package/models/errors/alreadycanceledsubscription.js.map +1 -1
- package/models/errors/httpclienterrors.js +2 -2
- package/models/errors/httpclienterrors.js.map +1 -1
- package/models/errors/notpermitted.d.ts +0 -23
- package/models/errors/notpermitted.d.ts.map +1 -1
- package/models/errors/notpermitted.js +1 -19
- package/models/errors/notpermitted.js.map +1 -1
- package/models/errors/resourcenotfound.d.ts +0 -23
- package/models/errors/resourcenotfound.d.ts.map +1 -1
- package/models/errors/resourcenotfound.js +1 -20
- package/models/errors/resourcenotfound.js.map +1 -1
- package/models/errors/unauthorized.d.ts +0 -23
- package/models/errors/unauthorized.d.ts.map +1 -1
- package/models/errors/unauthorized.js +1 -19
- package/models/errors/unauthorized.js.map +1 -1
- package/models/operations/customerportalsubscriptionscancel.d.ts +1 -1
- package/models/operations/customerportalsubscriptionsget.d.ts +1 -1
- package/models/operations/customerportalsubscriptionsupdate.d.ts +1 -1
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/subscriptionsrevoke.d.ts +32 -0
- package/models/operations/subscriptionsrevoke.d.ts.map +1 -0
- package/models/operations/subscriptionsrevoke.js +59 -0
- package/models/operations/subscriptionsrevoke.js.map +1 -0
- package/models/operations/subscriptionsupdate.d.ts +35 -0
- package/models/operations/subscriptionsupdate.d.ts.map +1 -0
- package/models/operations/subscriptionsupdate.js +71 -0
- package/models/operations/subscriptionsupdate.js.map +1 -0
- package/package.json +1 -1
- package/sdk/checkouts.js +1 -2
- package/sdk/checkouts.js.map +1 -1
- package/sdk/customerportal.js +7 -14
- package/sdk/customerportal.js.map +1 -1
- package/sdk/oauth2.js +1 -2
- package/sdk/oauth2.js.map +1 -1
- package/sdk/sdk.js +19 -38
- package/sdk/sdk.js.map +1 -1
- package/sdk/subscriptions.d.ts +15 -0
- package/sdk/subscriptions.d.ts.map +1 -1
- package/sdk/subscriptions.js +20 -0
- package/sdk/subscriptions.js.map +1 -1
- package/src/funcs/advertisementsList.ts +2 -2
- package/src/funcs/benefitsGrants.ts +2 -2
- package/src/funcs/benefitsList.ts +2 -2
- package/src/funcs/checkoutLinksList.ts +2 -2
- package/src/funcs/checkoutsCustomList.ts +2 -2
- package/src/funcs/customFieldsList.ts +2 -2
- package/src/funcs/customerPortalBenefitGrantsList.ts +2 -2
- package/src/funcs/customerPortalDownloadablesList.ts +2 -2
- package/src/funcs/customerPortalLicenseKeysList.ts +2 -2
- package/src/funcs/customerPortalOrdersList.ts +2 -2
- package/src/funcs/customerPortalSubscriptionsList.ts +2 -2
- package/src/funcs/customerPortalSubscriptionsUpdate.ts +4 -1
- package/src/funcs/customersList.ts +2 -2
- package/src/funcs/discountsList.ts +2 -2
- package/src/funcs/externalOrganizationsList.ts +2 -2
- package/src/funcs/filesList.ts +2 -2
- package/src/funcs/licenseKeysList.ts +2 -2
- package/src/funcs/oauth2ClientsList.ts +2 -2
- package/src/funcs/ordersList.ts +2 -2
- package/src/funcs/organizationsList.ts +2 -2
- package/src/funcs/productsList.ts +2 -2
- package/src/funcs/repositoriesList.ts +2 -2
- package/src/funcs/subscriptionsList.ts +2 -2
- package/src/funcs/subscriptionsRevoke.ts +146 -0
- package/src/funcs/subscriptionsUpdate.ts +149 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +1 -1
- package/src/models/components/authorizeresponseorganization.ts +1 -33
- package/src/models/components/authorizeresponseuser.ts +1 -30
- package/src/models/components/benefitads.ts +1 -28
- package/src/models/components/benefitadscreate.ts +1 -28
- package/src/models/components/benefitadssubscriber.ts +1 -30
- package/src/models/components/benefitadsupdate.ts +1 -28
- package/src/models/components/benefitcustom.ts +1 -28
- package/src/models/components/benefitcustomcreate.ts +1 -30
- package/src/models/components/benefitcustomsubscriber.ts +1 -30
- package/src/models/components/benefitcustomupdate.ts +1 -30
- package/src/models/components/benefitdiscord.ts +1 -28
- package/src/models/components/benefitdiscordcreate.ts +1 -30
- package/src/models/components/benefitdiscordsubscriber.ts +1 -30
- package/src/models/components/benefitdiscordupdate.ts +1 -30
- package/src/models/components/benefitdownloadables.ts +1 -30
- package/src/models/components/benefitdownloadablescreate.ts +1 -30
- package/src/models/components/benefitdownloadablessubscriber.ts +1 -31
- package/src/models/components/benefitdownloadablesupdate.ts +1 -30
- package/src/models/components/benefitgithubrepository.ts +1 -30
- package/src/models/components/benefitgithubrepositorycreate.ts +1 -31
- package/src/models/components/benefitgithubrepositorysubscriber.ts +1 -33
- package/src/models/components/benefitgithubrepositoryupdate.ts +1 -31
- package/src/models/components/benefitgrant.ts +13 -0
- package/src/models/components/benefitgrantwebhook.ts +13 -0
- package/src/models/components/benefitlicensekeys.ts +1 -28
- package/src/models/components/benefitlicensekeyscreate.ts +1 -30
- package/src/models/components/benefitlicensekeyssubscriber.ts +1 -30
- package/src/models/components/benefitlicensekeysupdate.ts +1 -30
- package/src/models/components/checkout.ts +9 -4
- package/src/models/components/checkoutlink.ts +9 -4
- package/src/models/components/checkoutlinkpricecreate.ts +1 -38
- package/src/models/components/checkoutlinkproductcreate.ts +1 -38
- package/src/models/components/checkoutpricecreate.ts +0 -46
- package/src/models/components/checkoutproductcreate.ts +0 -47
- package/src/models/components/checkoutpublic.ts +9 -4
- package/src/models/components/checkoutpublicconfirmed.ts +10 -30
- package/src/models/components/customerbenefitgrantads.ts +10 -0
- package/src/models/components/customerbenefitgrantadsupdate.ts +1 -32
- package/src/models/components/customerbenefitgrantcustom.ts +10 -0
- package/src/models/components/customerbenefitgrantcustomupdate.ts +1 -32
- package/src/models/components/customerbenefitgrantdiscord.ts +10 -0
- package/src/models/components/customerbenefitgrantdiscordupdate.ts +1 -32
- package/src/models/components/customerbenefitgrantdownloadables.ts +10 -0
- package/src/models/components/customerbenefitgrantdownloadablesupdate.ts +1 -32
- package/src/models/components/customerbenefitgrantgithubrepository.ts +10 -0
- package/src/models/components/customerbenefitgrantgithubrepositoryupdate.ts +3 -34
- package/src/models/components/customerbenefitgrantlicensekeys.ts +10 -0
- package/src/models/components/customerbenefitgrantlicensekeysupdate.ts +1 -32
- package/src/models/components/customercancellationreason.ts +41 -0
- package/src/models/components/customerordersubscription.ts +37 -0
- package/src/models/components/customersession.ts +6 -0
- package/src/models/components/customersubscription.ts +37 -0
- package/src/models/components/customersubscriptioncancel.ts +118 -0
- package/src/models/components/customersubscriptionupdate.ts +26 -21
- package/src/models/components/customersubscriptionupdateprice.ts +80 -0
- package/src/models/components/customfieldcheckbox.ts +1 -30
- package/src/models/components/customfieldcreatecheckbox.ts +1 -30
- package/src/models/components/customfieldcreatedate.ts +1 -30
- package/src/models/components/customfieldcreatenumber.ts +1 -30
- package/src/models/components/customfieldcreateselect.ts +1 -30
- package/src/models/components/customfieldcreatetext.ts +1 -30
- package/src/models/components/customfielddate.ts +1 -28
- package/src/models/components/customfieldnumber.ts +1 -28
- package/src/models/components/customfieldselect.ts +1 -28
- package/src/models/components/customfieldtext.ts +1 -28
- package/src/models/components/customfieldupdatecheckbox.ts +1 -30
- package/src/models/components/customfieldupdatedate.ts +1 -30
- package/src/models/components/customfieldupdatenumber.ts +1 -30
- package/src/models/components/customfieldupdateselect.ts +1 -30
- package/src/models/components/customfieldupdatetext.ts +1 -30
- package/src/models/components/downloadablefilecreate.ts +1 -30
- package/src/models/components/downloadablefileread.ts +1 -30
- package/src/models/components/externalorganization.ts +9 -4
- package/src/models/components/index.ts +7 -0
- package/src/models/components/introspecttokenresponse.ts +14 -18
- package/src/models/components/issue.ts +9 -4
- package/src/models/components/oauth2client.ts +3 -29
- package/src/models/components/oauth2clientconfiguration.ts +3 -36
- package/src/models/components/oauth2clientconfigurationupdate.ts +3 -39
- package/src/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.ts +3 -26
- package/src/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.ts +1 -38
- package/src/models/components/ordersubscription.ts +37 -0
- package/src/models/components/organizationavatarfilecreate.ts +3 -32
- package/src/models/components/organizationavatarfileread.ts +3 -31
- package/src/models/components/productmediafilecreate.ts +1 -30
- package/src/models/components/productmediafileread.ts +1 -26
- package/src/models/components/productpriceonetimecustom.ts +2 -67
- package/src/models/components/productpriceonetimecustomcreate.ts +2 -63
- package/src/models/components/productpriceonetimefixed.ts +2 -66
- package/src/models/components/productpriceonetimefixedcreate.ts +2 -62
- package/src/models/components/productpriceonetimefree.ts +2 -66
- package/src/models/components/productpriceonetimefreecreate.ts +2 -62
- package/src/models/components/productpricerecurringcustom.ts +2 -68
- package/src/models/components/productpricerecurringfixed.ts +2 -58
- package/src/models/components/productpricerecurringfixedcreate.ts +2 -64
- package/src/models/components/productpricerecurringfree.ts +2 -67
- package/src/models/components/productpricerecurringfreecreate.ts +2 -63
- package/src/models/components/repository.ts +9 -4
- package/src/models/components/subscription.ts +37 -0
- package/src/models/components/subscriptioncancel.ts +144 -0
- package/src/models/components/subscriptionupdate.ts +78 -0
- package/src/models/components/subscriptionupdateprice.ts +78 -0
- package/src/models/components/tokenresponse.ts +1 -26
- package/src/models/components/webhookbenefitcreatedpayload.ts +1 -30
- package/src/models/components/webhookbenefitgrantcreatedpayload.ts +3 -33
- package/src/models/components/webhookbenefitgrantrevokedpayload.ts +3 -33
- package/src/models/components/webhookbenefitgrantupdatedpayload.ts +3 -33
- package/src/models/components/webhookbenefitupdatedpayload.ts +1 -30
- package/src/models/components/webhookcheckoutcreatedpayload.ts +1 -31
- package/src/models/components/webhookcheckoutupdatedpayload.ts +1 -31
- package/src/models/components/webhookordercreatedpayload.ts +1 -30
- package/src/models/components/webhookorganizationupdatedpayload.ts +3 -33
- package/src/models/components/webhookpledgecreatedpayload.ts +1 -30
- package/src/models/components/webhookpledgeupdatedpayload.ts +1 -30
- package/src/models/components/webhookproductcreatedpayload.ts +1 -30
- package/src/models/components/webhookproductupdatedpayload.ts +1 -30
- package/src/models/components/webhooksubscriptionactivepayload.ts +3 -33
- package/src/models/components/webhooksubscriptioncanceledpayload.ts +5 -35
- package/src/models/components/webhooksubscriptioncreatedpayload.ts +3 -33
- package/src/models/components/webhooksubscriptionrevokedpayload.ts +3 -33
- package/src/models/components/webhooksubscriptionuncanceledpayload.ts +90 -0
- package/src/models/components/webhooksubscriptionupdatedpayload.ts +3 -33
- package/src/models/errors/alreadycanceledsubscription.ts +1 -30
- package/src/models/errors/notpermitted.ts +1 -28
- package/src/models/errors/resourcenotfound.ts +1 -26
- package/src/models/errors/unauthorized.ts +1 -28
- package/src/models/operations/customerportalsubscriptionscancel.ts +1 -1
- package/src/models/operations/customerportalsubscriptionsget.ts +1 -1
- package/src/models/operations/customerportalsubscriptionsupdate.ts +1 -1
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/subscriptionsrevoke.ts +69 -0
- package/src/models/operations/subscriptionsupdate.ts +83 -0
- package/src/sdk/subscriptions.ts +37 -0
|
@@ -24,16 +24,11 @@ export const GrantTypes = {
|
|
|
24
24
|
} as const;
|
|
25
25
|
export type GrantTypes = ClosedEnum<typeof GrantTypes>;
|
|
26
26
|
|
|
27
|
-
export const ResponseTypes = {
|
|
28
|
-
Code: "code",
|
|
29
|
-
} as const;
|
|
30
|
-
export type ResponseTypes = ClosedEnum<typeof ResponseTypes>;
|
|
31
|
-
|
|
32
27
|
export type OAuth2Client = {
|
|
33
28
|
redirectUris: Array<string>;
|
|
34
29
|
tokenEndpointAuthMethod?: TokenEndpointAuthMethod | undefined;
|
|
35
30
|
grantTypes?: Array<GrantTypes> | undefined;
|
|
36
|
-
responseTypes?: Array<
|
|
31
|
+
responseTypes?: Array<string> | undefined;
|
|
37
32
|
scope?: string | undefined;
|
|
38
33
|
clientName: string;
|
|
39
34
|
clientUri?: string | null | undefined;
|
|
@@ -94,27 +89,6 @@ export namespace GrantTypes$ {
|
|
|
94
89
|
export const outboundSchema = GrantTypes$outboundSchema;
|
|
95
90
|
}
|
|
96
91
|
|
|
97
|
-
/** @internal */
|
|
98
|
-
export const ResponseTypes$inboundSchema: z.ZodNativeEnum<
|
|
99
|
-
typeof ResponseTypes
|
|
100
|
-
> = z.nativeEnum(ResponseTypes);
|
|
101
|
-
|
|
102
|
-
/** @internal */
|
|
103
|
-
export const ResponseTypes$outboundSchema: z.ZodNativeEnum<
|
|
104
|
-
typeof ResponseTypes
|
|
105
|
-
> = ResponseTypes$inboundSchema;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @internal
|
|
109
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
110
|
-
*/
|
|
111
|
-
export namespace ResponseTypes$ {
|
|
112
|
-
/** @deprecated use `ResponseTypes$inboundSchema` instead. */
|
|
113
|
-
export const inboundSchema = ResponseTypes$inboundSchema;
|
|
114
|
-
/** @deprecated use `ResponseTypes$outboundSchema` instead. */
|
|
115
|
-
export const outboundSchema = ResponseTypes$outboundSchema;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
92
|
/** @internal */
|
|
119
93
|
export const OAuth2Client$inboundSchema: z.ZodType<
|
|
120
94
|
OAuth2Client,
|
|
@@ -126,7 +100,7 @@ export const OAuth2Client$inboundSchema: z.ZodType<
|
|
|
126
100
|
"client_secret_post",
|
|
127
101
|
),
|
|
128
102
|
grant_types: z.array(GrantTypes$inboundSchema).optional(),
|
|
129
|
-
response_types: z.array(
|
|
103
|
+
response_types: z.array(z.string()).optional(),
|
|
130
104
|
scope: z.string().default(
|
|
131
105
|
"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 products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_sessions:write orders: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",
|
|
132
106
|
),
|
|
@@ -194,7 +168,7 @@ export const OAuth2Client$outboundSchema: z.ZodType<
|
|
|
194
168
|
"client_secret_post",
|
|
195
169
|
),
|
|
196
170
|
grantTypes: z.array(GrantTypes$outboundSchema).optional(),
|
|
197
|
-
responseTypes: z.array(
|
|
171
|
+
responseTypes: z.array(z.string()).optional(),
|
|
198
172
|
scope: z.string().default(
|
|
199
173
|
"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 products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_sessions:write orders: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",
|
|
200
174
|
),
|
|
@@ -26,20 +26,13 @@ export type OAuth2ClientConfigurationGrantTypes = ClosedEnum<
|
|
|
26
26
|
typeof OAuth2ClientConfigurationGrantTypes
|
|
27
27
|
>;
|
|
28
28
|
|
|
29
|
-
export const OAuth2ClientConfigurationResponseTypes = {
|
|
30
|
-
Code: "code",
|
|
31
|
-
} as const;
|
|
32
|
-
export type OAuth2ClientConfigurationResponseTypes = ClosedEnum<
|
|
33
|
-
typeof OAuth2ClientConfigurationResponseTypes
|
|
34
|
-
>;
|
|
35
|
-
|
|
36
29
|
export type OAuth2ClientConfiguration = {
|
|
37
30
|
redirectUris: Array<string>;
|
|
38
31
|
tokenEndpointAuthMethod?:
|
|
39
32
|
| OAuth2ClientConfigurationTokenEndpointAuthMethod
|
|
40
33
|
| undefined;
|
|
41
34
|
grantTypes?: Array<OAuth2ClientConfigurationGrantTypes> | undefined;
|
|
42
|
-
responseTypes?: Array<
|
|
35
|
+
responseTypes?: Array<string> | undefined;
|
|
43
36
|
scope?: string | undefined;
|
|
44
37
|
clientName: string;
|
|
45
38
|
clientUri?: string | null | undefined;
|
|
@@ -94,30 +87,6 @@ export namespace OAuth2ClientConfigurationGrantTypes$ {
|
|
|
94
87
|
OAuth2ClientConfigurationGrantTypes$outboundSchema;
|
|
95
88
|
}
|
|
96
89
|
|
|
97
|
-
/** @internal */
|
|
98
|
-
export const OAuth2ClientConfigurationResponseTypes$inboundSchema:
|
|
99
|
-
z.ZodNativeEnum<typeof OAuth2ClientConfigurationResponseTypes> = z.nativeEnum(
|
|
100
|
-
OAuth2ClientConfigurationResponseTypes,
|
|
101
|
-
);
|
|
102
|
-
|
|
103
|
-
/** @internal */
|
|
104
|
-
export const OAuth2ClientConfigurationResponseTypes$outboundSchema:
|
|
105
|
-
z.ZodNativeEnum<typeof OAuth2ClientConfigurationResponseTypes> =
|
|
106
|
-
OAuth2ClientConfigurationResponseTypes$inboundSchema;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @internal
|
|
110
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
111
|
-
*/
|
|
112
|
-
export namespace OAuth2ClientConfigurationResponseTypes$ {
|
|
113
|
-
/** @deprecated use `OAuth2ClientConfigurationResponseTypes$inboundSchema` instead. */
|
|
114
|
-
export const inboundSchema =
|
|
115
|
-
OAuth2ClientConfigurationResponseTypes$inboundSchema;
|
|
116
|
-
/** @deprecated use `OAuth2ClientConfigurationResponseTypes$outboundSchema` instead. */
|
|
117
|
-
export const outboundSchema =
|
|
118
|
-
OAuth2ClientConfigurationResponseTypes$outboundSchema;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
90
|
/** @internal */
|
|
122
91
|
export const OAuth2ClientConfiguration$inboundSchema: z.ZodType<
|
|
123
92
|
OAuth2ClientConfiguration,
|
|
@@ -131,8 +100,7 @@ export const OAuth2ClientConfiguration$inboundSchema: z.ZodType<
|
|
|
131
100
|
),
|
|
132
101
|
grant_types: z.array(OAuth2ClientConfigurationGrantTypes$inboundSchema)
|
|
133
102
|
.optional(),
|
|
134
|
-
response_types: z.array(
|
|
135
|
-
.optional(),
|
|
103
|
+
response_types: z.array(z.string()).optional(),
|
|
136
104
|
scope: z.string().default(
|
|
137
105
|
"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 products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_sessions:write orders: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",
|
|
138
106
|
),
|
|
@@ -182,8 +150,7 @@ export const OAuth2ClientConfiguration$outboundSchema: z.ZodType<
|
|
|
182
150
|
),
|
|
183
151
|
grantTypes: z.array(OAuth2ClientConfigurationGrantTypes$outboundSchema)
|
|
184
152
|
.optional(),
|
|
185
|
-
responseTypes: z.array(
|
|
186
|
-
.optional(),
|
|
153
|
+
responseTypes: z.array(z.string()).optional(),
|
|
187
154
|
scope: z.string().default(
|
|
188
155
|
"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 products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_sessions:write orders: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",
|
|
189
156
|
),
|
|
@@ -26,22 +26,13 @@ export type OAuth2ClientConfigurationUpdateGrantTypes = ClosedEnum<
|
|
|
26
26
|
typeof OAuth2ClientConfigurationUpdateGrantTypes
|
|
27
27
|
>;
|
|
28
28
|
|
|
29
|
-
export const OAuth2ClientConfigurationUpdateResponseTypes = {
|
|
30
|
-
Code: "code",
|
|
31
|
-
} as const;
|
|
32
|
-
export type OAuth2ClientConfigurationUpdateResponseTypes = ClosedEnum<
|
|
33
|
-
typeof OAuth2ClientConfigurationUpdateResponseTypes
|
|
34
|
-
>;
|
|
35
|
-
|
|
36
29
|
export type OAuth2ClientConfigurationUpdate = {
|
|
37
30
|
redirectUris: Array<string>;
|
|
38
31
|
tokenEndpointAuthMethod?:
|
|
39
32
|
| OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod
|
|
40
33
|
| undefined;
|
|
41
34
|
grantTypes?: Array<OAuth2ClientConfigurationUpdateGrantTypes> | undefined;
|
|
42
|
-
responseTypes?:
|
|
43
|
-
| Array<OAuth2ClientConfigurationUpdateResponseTypes>
|
|
44
|
-
| undefined;
|
|
35
|
+
responseTypes?: Array<string> | undefined;
|
|
45
36
|
scope?: string | undefined;
|
|
46
37
|
clientName: string;
|
|
47
38
|
clientUri?: string | null | undefined;
|
|
@@ -99,29 +90,6 @@ export namespace OAuth2ClientConfigurationUpdateGrantTypes$ {
|
|
|
99
90
|
OAuth2ClientConfigurationUpdateGrantTypes$outboundSchema;
|
|
100
91
|
}
|
|
101
92
|
|
|
102
|
-
/** @internal */
|
|
103
|
-
export const OAuth2ClientConfigurationUpdateResponseTypes$inboundSchema:
|
|
104
|
-
z.ZodNativeEnum<typeof OAuth2ClientConfigurationUpdateResponseTypes> = z
|
|
105
|
-
.nativeEnum(OAuth2ClientConfigurationUpdateResponseTypes);
|
|
106
|
-
|
|
107
|
-
/** @internal */
|
|
108
|
-
export const OAuth2ClientConfigurationUpdateResponseTypes$outboundSchema:
|
|
109
|
-
z.ZodNativeEnum<typeof OAuth2ClientConfigurationUpdateResponseTypes> =
|
|
110
|
-
OAuth2ClientConfigurationUpdateResponseTypes$inboundSchema;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* @internal
|
|
114
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
115
|
-
*/
|
|
116
|
-
export namespace OAuth2ClientConfigurationUpdateResponseTypes$ {
|
|
117
|
-
/** @deprecated use `OAuth2ClientConfigurationUpdateResponseTypes$inboundSchema` instead. */
|
|
118
|
-
export const inboundSchema =
|
|
119
|
-
OAuth2ClientConfigurationUpdateResponseTypes$inboundSchema;
|
|
120
|
-
/** @deprecated use `OAuth2ClientConfigurationUpdateResponseTypes$outboundSchema` instead. */
|
|
121
|
-
export const outboundSchema =
|
|
122
|
-
OAuth2ClientConfigurationUpdateResponseTypes$outboundSchema;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
93
|
/** @internal */
|
|
126
94
|
export const OAuth2ClientConfigurationUpdate$inboundSchema: z.ZodType<
|
|
127
95
|
OAuth2ClientConfigurationUpdate,
|
|
@@ -134,9 +102,7 @@ export const OAuth2ClientConfigurationUpdate$inboundSchema: z.ZodType<
|
|
|
134
102
|
.default("client_secret_post"),
|
|
135
103
|
grant_types: z.array(OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema)
|
|
136
104
|
.optional(),
|
|
137
|
-
response_types: z.array(
|
|
138
|
-
OAuth2ClientConfigurationUpdateResponseTypes$inboundSchema,
|
|
139
|
-
).optional(),
|
|
105
|
+
response_types: z.array(z.string()).optional(),
|
|
140
106
|
scope: z.string().default(
|
|
141
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 products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_sessions:write orders: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",
|
|
142
108
|
),
|
|
@@ -188,9 +154,7 @@ export const OAuth2ClientConfigurationUpdate$outboundSchema: z.ZodType<
|
|
|
188
154
|
.default("client_secret_post"),
|
|
189
155
|
grantTypes: z.array(OAuth2ClientConfigurationUpdateGrantTypes$outboundSchema)
|
|
190
156
|
.optional(),
|
|
191
|
-
responseTypes: z.array(
|
|
192
|
-
OAuth2ClientConfigurationUpdateResponseTypes$outboundSchema,
|
|
193
|
-
).optional(),
|
|
157
|
+
responseTypes: z.array(z.string()).optional(),
|
|
194
158
|
scope: z.string().default(
|
|
195
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 products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_sessions:write orders: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",
|
|
196
160
|
),
|
package/src/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.ts
CHANGED
|
@@ -5,15 +5,9 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
|
-
export const GrantType = {
|
|
13
|
-
AuthorizationCode: "authorization_code",
|
|
14
|
-
} as const;
|
|
15
|
-
export type GrantType = ClosedEnum<typeof GrantType>;
|
|
16
|
-
|
|
17
11
|
export type Onev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest = {
|
|
18
12
|
grantType?: "authorization_code" | undefined;
|
|
19
13
|
clientId: string;
|
|
@@ -22,25 +16,6 @@ export type Onev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest = {
|
|
|
22
16
|
redirectUri: string;
|
|
23
17
|
};
|
|
24
18
|
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const GrantType$inboundSchema: z.ZodNativeEnum<typeof GrantType> = z
|
|
27
|
-
.nativeEnum(GrantType);
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const GrantType$outboundSchema: z.ZodNativeEnum<typeof GrantType> =
|
|
31
|
-
GrantType$inboundSchema;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @internal
|
|
35
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
-
*/
|
|
37
|
-
export namespace GrantType$ {
|
|
38
|
-
/** @deprecated use `GrantType$inboundSchema` instead. */
|
|
39
|
-
export const inboundSchema = GrantType$inboundSchema;
|
|
40
|
-
/** @deprecated use `GrantType$outboundSchema` instead. */
|
|
41
|
-
export const outboundSchema = GrantType$outboundSchema;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
19
|
/** @internal */
|
|
45
20
|
export const Onev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest$inboundSchema:
|
|
46
21
|
z.ZodType<
|
|
@@ -79,7 +54,9 @@ export const Onev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest$outb
|
|
|
79
54
|
z.ZodTypeDef,
|
|
80
55
|
Onev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest
|
|
81
56
|
> = z.object({
|
|
82
|
-
grantType: z.literal("authorization_code").default(
|
|
57
|
+
grantType: z.literal("authorization_code").default(
|
|
58
|
+
"authorization_code" as const,
|
|
59
|
+
),
|
|
83
60
|
clientId: z.string(),
|
|
84
61
|
clientSecret: z.string(),
|
|
85
62
|
code: z.string(),
|
|
@@ -5,18 +5,9 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
|
-
export const Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType = {
|
|
13
|
-
RefreshToken: "refresh_token",
|
|
14
|
-
} as const;
|
|
15
|
-
export type Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType =
|
|
16
|
-
ClosedEnum<
|
|
17
|
-
typeof Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType
|
|
18
|
-
>;
|
|
19
|
-
|
|
20
11
|
export type Onev11oauth21tokenPostXComponentsRefreshTokenRequest = {
|
|
21
12
|
grantType?: "refresh_token" | undefined;
|
|
22
13
|
clientId: string;
|
|
@@ -24,34 +15,6 @@ export type Onev11oauth21tokenPostXComponentsRefreshTokenRequest = {
|
|
|
24
15
|
refreshToken: string;
|
|
25
16
|
};
|
|
26
17
|
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType$inboundSchema:
|
|
29
|
-
z.ZodNativeEnum<
|
|
30
|
-
typeof Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType
|
|
31
|
-
> = z.nativeEnum(
|
|
32
|
-
Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType,
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType$outboundSchema:
|
|
37
|
-
z.ZodNativeEnum<
|
|
38
|
-
typeof Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType
|
|
39
|
-
> =
|
|
40
|
-
Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType$inboundSchema;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
-
*/
|
|
46
|
-
export namespace Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType$ {
|
|
47
|
-
/** @deprecated use `Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType$inboundSchema` instead. */
|
|
48
|
-
export const inboundSchema =
|
|
49
|
-
Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType$inboundSchema;
|
|
50
|
-
/** @deprecated use `Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType$outboundSchema` instead. */
|
|
51
|
-
export const outboundSchema =
|
|
52
|
-
Onev11oauth21tokenPostXComponentsRefreshTokenRequestGrantType$outboundSchema;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
18
|
/** @internal */
|
|
56
19
|
export const Onev11oauth21tokenPostXComponentsRefreshTokenRequest$inboundSchema:
|
|
57
20
|
z.ZodType<
|
|
@@ -87,7 +50,7 @@ export const Onev11oauth21tokenPostXComponentsRefreshTokenRequest$outboundSchema
|
|
|
87
50
|
z.ZodTypeDef,
|
|
88
51
|
Onev11oauth21tokenPostXComponentsRefreshTokenRequest
|
|
89
52
|
> = z.object({
|
|
90
|
-
grantType: z.literal("refresh_token").default("refresh_token"),
|
|
53
|
+
grantType: z.literal("refresh_token").default("refresh_token" as const),
|
|
91
54
|
clientId: z.string(),
|
|
92
55
|
clientSecret: z.string(),
|
|
93
56
|
refreshToken: z.string(),
|
|
@@ -7,6 +7,11 @@ 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
|
+
CustomerCancellationReason,
|
|
12
|
+
CustomerCancellationReason$inboundSchema,
|
|
13
|
+
CustomerCancellationReason$outboundSchema,
|
|
14
|
+
} from "./customercancellationreason.js";
|
|
10
15
|
import {
|
|
11
16
|
SubscriptionRecurringInterval,
|
|
12
17
|
SubscriptionRecurringInterval$inboundSchema,
|
|
@@ -41,13 +46,17 @@ export type OrderSubscription = {
|
|
|
41
46
|
currentPeriodStart: Date;
|
|
42
47
|
currentPeriodEnd: Date | null;
|
|
43
48
|
cancelAtPeriodEnd: boolean;
|
|
49
|
+
canceledAt: Date | null;
|
|
44
50
|
startedAt: Date | null;
|
|
51
|
+
endsAt: Date | null;
|
|
45
52
|
endedAt: Date | null;
|
|
46
53
|
customerId: string;
|
|
47
54
|
productId: string;
|
|
48
55
|
priceId: string;
|
|
49
56
|
discountId: string | null;
|
|
50
57
|
checkoutId: string | null;
|
|
58
|
+
customerCancellationReason: CustomerCancellationReason | null;
|
|
59
|
+
customerCancellationComment: string | null;
|
|
51
60
|
/**
|
|
52
61
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
53
62
|
*/
|
|
@@ -125,9 +134,15 @@ export const OrderSubscription$inboundSchema: z.ZodType<
|
|
|
125
134
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
126
135
|
),
|
|
127
136
|
cancel_at_period_end: z.boolean(),
|
|
137
|
+
canceled_at: z.nullable(
|
|
138
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
139
|
+
),
|
|
128
140
|
started_at: z.nullable(
|
|
129
141
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
130
142
|
),
|
|
143
|
+
ends_at: z.nullable(
|
|
144
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
145
|
+
),
|
|
131
146
|
ended_at: z.nullable(
|
|
132
147
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
133
148
|
),
|
|
@@ -136,6 +151,10 @@ export const OrderSubscription$inboundSchema: z.ZodType<
|
|
|
136
151
|
price_id: z.string(),
|
|
137
152
|
discount_id: z.nullable(z.string()),
|
|
138
153
|
checkout_id: z.nullable(z.string()),
|
|
154
|
+
customer_cancellation_reason: z.nullable(
|
|
155
|
+
CustomerCancellationReason$inboundSchema,
|
|
156
|
+
),
|
|
157
|
+
customer_cancellation_comment: z.nullable(z.string()),
|
|
139
158
|
user_id: z.string(),
|
|
140
159
|
}).transform((v) => {
|
|
141
160
|
return remap$(v, {
|
|
@@ -145,13 +164,17 @@ export const OrderSubscription$inboundSchema: z.ZodType<
|
|
|
145
164
|
"current_period_start": "currentPeriodStart",
|
|
146
165
|
"current_period_end": "currentPeriodEnd",
|
|
147
166
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
167
|
+
"canceled_at": "canceledAt",
|
|
148
168
|
"started_at": "startedAt",
|
|
169
|
+
"ends_at": "endsAt",
|
|
149
170
|
"ended_at": "endedAt",
|
|
150
171
|
"customer_id": "customerId",
|
|
151
172
|
"product_id": "productId",
|
|
152
173
|
"price_id": "priceId",
|
|
153
174
|
"discount_id": "discountId",
|
|
154
175
|
"checkout_id": "checkoutId",
|
|
176
|
+
"customer_cancellation_reason": "customerCancellationReason",
|
|
177
|
+
"customer_cancellation_comment": "customerCancellationComment",
|
|
155
178
|
"user_id": "userId",
|
|
156
179
|
});
|
|
157
180
|
});
|
|
@@ -169,13 +192,17 @@ export type OrderSubscription$Outbound = {
|
|
|
169
192
|
current_period_start: string;
|
|
170
193
|
current_period_end: string | null;
|
|
171
194
|
cancel_at_period_end: boolean;
|
|
195
|
+
canceled_at: string | null;
|
|
172
196
|
started_at: string | null;
|
|
197
|
+
ends_at: string | null;
|
|
173
198
|
ended_at: string | null;
|
|
174
199
|
customer_id: string;
|
|
175
200
|
product_id: string;
|
|
176
201
|
price_id: string;
|
|
177
202
|
discount_id: string | null;
|
|
178
203
|
checkout_id: string | null;
|
|
204
|
+
customer_cancellation_reason: string | null;
|
|
205
|
+
customer_cancellation_comment: string | null;
|
|
179
206
|
user_id: string;
|
|
180
207
|
};
|
|
181
208
|
|
|
@@ -196,13 +223,19 @@ export const OrderSubscription$outboundSchema: z.ZodType<
|
|
|
196
223
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
197
224
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
198
225
|
cancelAtPeriodEnd: z.boolean(),
|
|
226
|
+
canceledAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
199
227
|
startedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
228
|
+
endsAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
200
229
|
endedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
201
230
|
customerId: z.string(),
|
|
202
231
|
productId: z.string(),
|
|
203
232
|
priceId: z.string(),
|
|
204
233
|
discountId: z.nullable(z.string()),
|
|
205
234
|
checkoutId: z.nullable(z.string()),
|
|
235
|
+
customerCancellationReason: z.nullable(
|
|
236
|
+
CustomerCancellationReason$outboundSchema,
|
|
237
|
+
),
|
|
238
|
+
customerCancellationComment: z.nullable(z.string()),
|
|
206
239
|
userId: z.string(),
|
|
207
240
|
}).transform((v) => {
|
|
208
241
|
return remap$(v, {
|
|
@@ -212,13 +245,17 @@ export const OrderSubscription$outboundSchema: z.ZodType<
|
|
|
212
245
|
currentPeriodStart: "current_period_start",
|
|
213
246
|
currentPeriodEnd: "current_period_end",
|
|
214
247
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
248
|
+
canceledAt: "canceled_at",
|
|
215
249
|
startedAt: "started_at",
|
|
250
|
+
endsAt: "ends_at",
|
|
216
251
|
endedAt: "ended_at",
|
|
217
252
|
customerId: "customer_id",
|
|
218
253
|
productId: "product_id",
|
|
219
254
|
priceId: "price_id",
|
|
220
255
|
discountId: "discount_id",
|
|
221
256
|
checkoutId: "checkout_id",
|
|
257
|
+
customerCancellationReason: "customer_cancellation_reason",
|
|
258
|
+
customerCancellationComment: "customer_cancellation_comment",
|
|
222
259
|
userId: "user_id",
|
|
223
260
|
});
|
|
224
261
|
});
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
import {
|
|
@@ -15,13 +14,6 @@ import {
|
|
|
15
14
|
S3FileCreateMultipart$outboundSchema,
|
|
16
15
|
} from "./s3filecreatemultipart.js";
|
|
17
16
|
|
|
18
|
-
export const OrganizationAvatarFileCreateService = {
|
|
19
|
-
OrganizationAvatar: "organization_avatar",
|
|
20
|
-
} as const;
|
|
21
|
-
export type OrganizationAvatarFileCreateService = ClosedEnum<
|
|
22
|
-
typeof OrganizationAvatarFileCreateService
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
17
|
/**
|
|
26
18
|
* Schema to create a file to be used as an organization avatar.
|
|
27
19
|
*/
|
|
@@ -42,29 +34,6 @@ export type OrganizationAvatarFileCreate = {
|
|
|
42
34
|
version?: string | null | undefined;
|
|
43
35
|
};
|
|
44
36
|
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const OrganizationAvatarFileCreateService$inboundSchema: z.ZodNativeEnum<
|
|
47
|
-
typeof OrganizationAvatarFileCreateService
|
|
48
|
-
> = z.nativeEnum(OrganizationAvatarFileCreateService);
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const OrganizationAvatarFileCreateService$outboundSchema:
|
|
52
|
-
z.ZodNativeEnum<typeof OrganizationAvatarFileCreateService> =
|
|
53
|
-
OrganizationAvatarFileCreateService$inboundSchema;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
-
*/
|
|
59
|
-
export namespace OrganizationAvatarFileCreateService$ {
|
|
60
|
-
/** @deprecated use `OrganizationAvatarFileCreateService$inboundSchema` instead. */
|
|
61
|
-
export const inboundSchema =
|
|
62
|
-
OrganizationAvatarFileCreateService$inboundSchema;
|
|
63
|
-
/** @deprecated use `OrganizationAvatarFileCreateService$outboundSchema` instead. */
|
|
64
|
-
export const outboundSchema =
|
|
65
|
-
OrganizationAvatarFileCreateService$outboundSchema;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
37
|
/** @internal */
|
|
69
38
|
export const OrganizationAvatarFileCreate$inboundSchema: z.ZodType<
|
|
70
39
|
OrganizationAvatarFileCreate,
|
|
@@ -111,7 +80,9 @@ export const OrganizationAvatarFileCreate$outboundSchema: z.ZodType<
|
|
|
111
80
|
size: z.number().int(),
|
|
112
81
|
checksumSha256Base64: z.nullable(z.string()).optional(),
|
|
113
82
|
upload: S3FileCreateMultipart$outboundSchema,
|
|
114
|
-
service: z.literal("organization_avatar").default(
|
|
83
|
+
service: z.literal("organization_avatar").default(
|
|
84
|
+
"organization_avatar" as const,
|
|
85
|
+
),
|
|
115
86
|
version: z.nullable(z.string()).optional(),
|
|
116
87
|
}).transform((v) => {
|
|
117
88
|
return remap$(v, {
|
|
@@ -5,17 +5,9 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
|
-
export const OrganizationAvatarFileReadService = {
|
|
13
|
-
OrganizationAvatar: "organization_avatar",
|
|
14
|
-
} as const;
|
|
15
|
-
export type OrganizationAvatarFileReadService = ClosedEnum<
|
|
16
|
-
typeof OrganizationAvatarFileReadService
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
11
|
/**
|
|
20
12
|
* File to be used as an organization avatar.
|
|
21
13
|
*/
|
|
@@ -42,28 +34,6 @@ export type OrganizationAvatarFileRead = {
|
|
|
42
34
|
publicUrl: string;
|
|
43
35
|
};
|
|
44
36
|
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const OrganizationAvatarFileReadService$inboundSchema: z.ZodNativeEnum<
|
|
47
|
-
typeof OrganizationAvatarFileReadService
|
|
48
|
-
> = z.nativeEnum(OrganizationAvatarFileReadService);
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const OrganizationAvatarFileReadService$outboundSchema: z.ZodNativeEnum<
|
|
52
|
-
typeof OrganizationAvatarFileReadService
|
|
53
|
-
> = OrganizationAvatarFileReadService$inboundSchema;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
-
*/
|
|
59
|
-
export namespace OrganizationAvatarFileReadService$ {
|
|
60
|
-
/** @deprecated use `OrganizationAvatarFileReadService$inboundSchema` instead. */
|
|
61
|
-
export const inboundSchema = OrganizationAvatarFileReadService$inboundSchema;
|
|
62
|
-
/** @deprecated use `OrganizationAvatarFileReadService$outboundSchema` instead. */
|
|
63
|
-
export const outboundSchema =
|
|
64
|
-
OrganizationAvatarFileReadService$outboundSchema;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
37
|
/** @internal */
|
|
68
38
|
export const OrganizationAvatarFileRead$inboundSchema: z.ZodType<
|
|
69
39
|
OrganizationAvatarFileRead,
|
|
@@ -144,7 +114,9 @@ export const OrganizationAvatarFileRead$outboundSchema: z.ZodType<
|
|
|
144
114
|
checksumSha256Hex: z.nullable(z.string()),
|
|
145
115
|
lastModifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
146
116
|
version: z.nullable(z.string()),
|
|
147
|
-
service: z.literal("organization_avatar").default(
|
|
117
|
+
service: z.literal("organization_avatar").default(
|
|
118
|
+
"organization_avatar" as const,
|
|
119
|
+
),
|
|
148
120
|
isUploaded: z.boolean(),
|
|
149
121
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
150
122
|
sizeReadable: z.string(),
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
import {
|
|
@@ -15,13 +14,6 @@ import {
|
|
|
15
14
|
S3FileCreateMultipart$outboundSchema,
|
|
16
15
|
} from "./s3filecreatemultipart.js";
|
|
17
16
|
|
|
18
|
-
export const ProductMediaFileCreateService = {
|
|
19
|
-
ProductMedia: "product_media",
|
|
20
|
-
} as const;
|
|
21
|
-
export type ProductMediaFileCreateService = ClosedEnum<
|
|
22
|
-
typeof ProductMediaFileCreateService
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
17
|
/**
|
|
26
18
|
* Schema to create a file to be used as a product media file.
|
|
27
19
|
*/
|
|
@@ -42,27 +34,6 @@ export type ProductMediaFileCreate = {
|
|
|
42
34
|
version?: string | null | undefined;
|
|
43
35
|
};
|
|
44
36
|
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const ProductMediaFileCreateService$inboundSchema: z.ZodNativeEnum<
|
|
47
|
-
typeof ProductMediaFileCreateService
|
|
48
|
-
> = z.nativeEnum(ProductMediaFileCreateService);
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const ProductMediaFileCreateService$outboundSchema: z.ZodNativeEnum<
|
|
52
|
-
typeof ProductMediaFileCreateService
|
|
53
|
-
> = ProductMediaFileCreateService$inboundSchema;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
-
*/
|
|
59
|
-
export namespace ProductMediaFileCreateService$ {
|
|
60
|
-
/** @deprecated use `ProductMediaFileCreateService$inboundSchema` instead. */
|
|
61
|
-
export const inboundSchema = ProductMediaFileCreateService$inboundSchema;
|
|
62
|
-
/** @deprecated use `ProductMediaFileCreateService$outboundSchema` instead. */
|
|
63
|
-
export const outboundSchema = ProductMediaFileCreateService$outboundSchema;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
37
|
/** @internal */
|
|
67
38
|
export const ProductMediaFileCreate$inboundSchema: z.ZodType<
|
|
68
39
|
ProductMediaFileCreate,
|
|
@@ -109,7 +80,7 @@ export const ProductMediaFileCreate$outboundSchema: z.ZodType<
|
|
|
109
80
|
size: z.number().int(),
|
|
110
81
|
checksumSha256Base64: z.nullable(z.string()).optional(),
|
|
111
82
|
upload: S3FileCreateMultipart$outboundSchema,
|
|
112
|
-
service: z.literal("product_media").default("product_media"),
|
|
83
|
+
service: z.literal("product_media").default("product_media" as const),
|
|
113
84
|
version: z.nullable(z.string()).optional(),
|
|
114
85
|
}).transform((v) => {
|
|
115
86
|
return remap$(v, {
|