@polar-sh/sdk 0.9.0 → 0.11.0
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 +0 -44
- package/docs/sdks/advertisements/README.md +4 -4
- package/docs/sdks/articles/README.md +21 -19
- package/docs/sdks/benefits/README.md +17 -21
- package/docs/sdks/checkouts/README.md +6 -6
- package/docs/sdks/clients/README.md +17 -17
- package/docs/sdks/downloadables/README.md +4 -4
- package/docs/sdks/externalorganizations/README.md +1 -1
- package/docs/sdks/files/README.md +21 -19
- package/docs/sdks/licensekeys/README.md +10 -10
- package/docs/sdks/metrics/README.md +6 -6
- package/docs/sdks/oauth2/README.md +16 -16
- package/docs/sdks/orders/README.md +7 -7
- package/docs/sdks/organizations/README.md +10 -10
- package/docs/sdks/polaradvertisements/README.md +15 -13
- package/docs/sdks/polarbenefits/README.md +4 -4
- package/docs/sdks/polarlicensekeys/README.md +12 -10
- package/docs/sdks/polarorders/README.md +7 -7
- package/docs/sdks/polarsubscriptions/README.md +15 -99
- package/docs/sdks/products/README.md +15 -18
- package/docs/sdks/repositories/README.md +7 -7
- package/docs/sdks/subscriptions/README.md +4 -168
- package/funcs/advertisementsGet.d.ts +1 -1
- package/funcs/advertisementsGet.d.ts.map +1 -1
- package/funcs/advertisementsGet.js +32 -32
- package/funcs/advertisementsGet.js.map +1 -1
- package/funcs/advertisementsList.d.ts +1 -1
- package/funcs/advertisementsList.d.ts.map +1 -1
- package/funcs/advertisementsList.js +42 -42
- package/funcs/advertisementsList.js.map +1 -1
- package/funcs/articlesCreate.d.ts +1 -1
- package/funcs/articlesCreate.d.ts.map +1 -1
- package/funcs/articlesCreate.js +30 -30
- package/funcs/articlesCreate.js.map +1 -1
- package/funcs/articlesDelete.d.ts +1 -1
- package/funcs/articlesDelete.d.ts.map +1 -1
- package/funcs/articlesDelete.js +32 -32
- package/funcs/articlesDelete.js.map +1 -1
- package/funcs/articlesGet.d.ts +1 -1
- package/funcs/articlesGet.d.ts.map +1 -1
- package/funcs/articlesGet.js +32 -32
- package/funcs/articlesGet.js.map +1 -1
- package/funcs/articlesList.d.ts +1 -1
- package/funcs/articlesList.d.ts.map +1 -1
- package/funcs/articlesList.js +46 -46
- package/funcs/articlesList.js.map +1 -1
- package/funcs/articlesPreview.d.ts +1 -1
- package/funcs/articlesPreview.d.ts.map +1 -1
- package/funcs/articlesPreview.js +32 -32
- package/funcs/articlesPreview.js.map +1 -1
- package/funcs/articlesReceivers.d.ts +1 -1
- package/funcs/articlesReceivers.d.ts.map +1 -1
- package/funcs/articlesReceivers.js +32 -32
- package/funcs/articlesReceivers.js.map +1 -1
- package/funcs/articlesSend.d.ts +1 -1
- package/funcs/articlesSend.d.ts.map +1 -1
- package/funcs/articlesSend.js +32 -32
- package/funcs/articlesSend.js.map +1 -1
- package/funcs/articlesUpdate.d.ts +1 -1
- package/funcs/articlesUpdate.d.ts.map +1 -1
- package/funcs/articlesUpdate.js +32 -32
- package/funcs/articlesUpdate.js.map +1 -1
- package/funcs/benefitsCreate.d.ts +1 -1
- package/funcs/benefitsCreate.d.ts.map +1 -1
- package/funcs/benefitsCreate.js +30 -30
- package/funcs/benefitsCreate.js.map +1 -1
- package/funcs/benefitsDelete.d.ts +1 -1
- package/funcs/benefitsDelete.d.ts.map +1 -1
- package/funcs/benefitsDelete.js +32 -32
- package/funcs/benefitsDelete.js.map +1 -1
- package/funcs/benefitsGet.d.ts +1 -1
- package/funcs/benefitsGet.d.ts.map +1 -1
- package/funcs/benefitsGet.js +32 -32
- package/funcs/benefitsGet.js.map +1 -1
- package/funcs/benefitsGrants.d.ts +1 -1
- package/funcs/benefitsGrants.d.ts.map +1 -1
- package/funcs/benefitsGrants.js +45 -45
- package/funcs/benefitsGrants.js.map +1 -1
- package/funcs/benefitsList.d.ts +1 -1
- package/funcs/benefitsList.d.ts.map +1 -1
- package/funcs/benefitsList.js +42 -42
- package/funcs/benefitsList.js.map +1 -1
- package/funcs/benefitsUpdate.d.ts +1 -1
- package/funcs/benefitsUpdate.d.ts.map +1 -1
- package/funcs/benefitsUpdate.js +32 -32
- package/funcs/benefitsUpdate.js.map +1 -1
- package/funcs/checkoutsCreate.d.ts +1 -1
- package/funcs/checkoutsCreate.d.ts.map +1 -1
- package/funcs/checkoutsCreate.js +30 -30
- package/funcs/checkoutsCreate.js.map +1 -1
- package/funcs/checkoutsGet.d.ts +1 -1
- package/funcs/checkoutsGet.d.ts.map +1 -1
- package/funcs/checkoutsGet.js +32 -32
- package/funcs/checkoutsGet.js.map +1 -1
- package/funcs/externalOrganizationsList.d.ts +1 -1
- package/funcs/externalOrganizationsList.d.ts.map +1 -1
- package/funcs/externalOrganizationsList.js +44 -44
- package/funcs/externalOrganizationsList.js.map +1 -1
- package/funcs/filesCreate.d.ts +1 -1
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +30 -30
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.d.ts +1 -1
- package/funcs/filesDelete.d.ts.map +1 -1
- package/funcs/filesDelete.js +32 -32
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesList.d.ts +1 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +41 -41
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpdate.d.ts +1 -1
- package/funcs/filesUpdate.d.ts.map +1 -1
- package/funcs/filesUpdate.js +32 -32
- package/funcs/filesUpdate.js.map +1 -1
- package/funcs/filesUploaded.d.ts +1 -1
- package/funcs/filesUploaded.d.ts.map +1 -1
- package/funcs/filesUploaded.js +32 -32
- package/funcs/filesUploaded.js.map +1 -1
- package/funcs/licenseKeysGet.d.ts +1 -1
- package/funcs/licenseKeysGet.d.ts.map +1 -1
- package/funcs/licenseKeysGet.js +32 -32
- package/funcs/licenseKeysGet.js.map +1 -1
- package/funcs/licenseKeysGetActivation.d.ts +1 -1
- package/funcs/licenseKeysGetActivation.d.ts.map +1 -1
- package/funcs/licenseKeysGetActivation.js +33 -33
- package/funcs/licenseKeysGetActivation.js.map +1 -1
- package/funcs/licenseKeysList.d.ts +1 -1
- package/funcs/licenseKeysList.d.ts.map +1 -1
- package/funcs/licenseKeysList.js +41 -41
- package/funcs/licenseKeysList.js.map +1 -1
- package/funcs/licenseKeysUpdate.d.ts +1 -1
- package/funcs/licenseKeysUpdate.d.ts.map +1 -1
- package/funcs/licenseKeysUpdate.js +32 -34
- package/funcs/licenseKeysUpdate.js.map +1 -1
- package/funcs/metricsGet.d.ts +1 -1
- package/funcs/metricsGet.d.ts.map +1 -1
- package/funcs/metricsGet.js +38 -38
- package/funcs/metricsGet.js.map +1 -1
- package/funcs/metricsLimits.d.ts +1 -1
- package/funcs/metricsLimits.d.ts.map +1 -1
- package/funcs/metricsLimits.js +20 -20
- package/funcs/metricsLimits.js.map +1 -1
- package/funcs/oauth2ClientsCreate.d.ts +1 -1
- package/funcs/oauth2ClientsCreate.d.ts.map +1 -1
- package/funcs/oauth2ClientsCreate.js +30 -30
- package/funcs/oauth2ClientsCreate.js.map +1 -1
- package/funcs/oauth2ClientsDelete.d.ts +1 -1
- package/funcs/oauth2ClientsDelete.d.ts.map +1 -1
- package/funcs/oauth2ClientsDelete.js +32 -32
- package/funcs/oauth2ClientsDelete.js.map +1 -1
- package/funcs/oauth2ClientsGet.d.ts +1 -1
- package/funcs/oauth2ClientsGet.d.ts.map +1 -1
- package/funcs/oauth2ClientsGet.js +32 -32
- package/funcs/oauth2ClientsGet.js.map +1 -1
- package/funcs/oauth2ClientsList.d.ts +1 -1
- package/funcs/oauth2ClientsList.d.ts.map +1 -1
- package/funcs/oauth2ClientsList.js +40 -40
- package/funcs/oauth2ClientsList.js.map +1 -1
- package/funcs/oauth2ClientsUpdate.d.ts +1 -1
- package/funcs/oauth2ClientsUpdate.d.ts.map +1 -1
- package/funcs/oauth2ClientsUpdate.js +32 -32
- package/funcs/oauth2ClientsUpdate.js.map +1 -1
- package/funcs/oauth2Introspect.d.ts +1 -1
- package/funcs/oauth2Introspect.d.ts.map +1 -1
- package/funcs/oauth2Introspect.js +29 -29
- package/funcs/oauth2Introspect.js.map +1 -1
- package/funcs/oauth2Revoke.d.ts +1 -1
- package/funcs/oauth2Revoke.d.ts.map +1 -1
- package/funcs/oauth2Revoke.js +28 -28
- package/funcs/oauth2Revoke.js.map +1 -1
- package/funcs/oauth2Token.d.ts +1 -1
- package/funcs/oauth2Token.d.ts.map +1 -1
- package/funcs/oauth2Token.js +28 -28
- package/funcs/oauth2Token.js.map +1 -1
- package/funcs/oauth2Userinfo.d.ts +1 -1
- package/funcs/oauth2Userinfo.d.ts.map +1 -1
- package/funcs/oauth2Userinfo.js +20 -20
- package/funcs/oauth2Userinfo.js.map +1 -1
- package/funcs/ordersGet.d.ts +1 -1
- package/funcs/ordersGet.d.ts.map +1 -1
- package/funcs/ordersGet.js +32 -32
- package/funcs/ordersGet.js.map +1 -1
- package/funcs/ordersInvoice.d.ts +1 -1
- package/funcs/ordersInvoice.d.ts.map +1 -1
- package/funcs/ordersInvoice.js +32 -32
- package/funcs/ordersInvoice.js.map +1 -1
- package/funcs/ordersList.d.ts +1 -1
- package/funcs/ordersList.d.ts.map +1 -1
- package/funcs/ordersList.js +44 -46
- package/funcs/ordersList.js.map +1 -1
- package/funcs/organizationsCreate.d.ts +1 -1
- package/funcs/organizationsCreate.d.ts.map +1 -1
- package/funcs/organizationsCreate.js +30 -30
- package/funcs/organizationsCreate.js.map +1 -1
- package/funcs/organizationsGet.d.ts +1 -1
- package/funcs/organizationsGet.d.ts.map +1 -1
- package/funcs/organizationsGet.js +32 -32
- package/funcs/organizationsGet.js.map +1 -1
- package/funcs/organizationsList.d.ts +1 -1
- package/funcs/organizationsList.d.ts.map +1 -1
- package/funcs/organizationsList.js +43 -43
- package/funcs/organizationsList.js.map +1 -1
- package/funcs/organizationsUpdate.d.ts +1 -1
- package/funcs/organizationsUpdate.d.ts.map +1 -1
- package/funcs/organizationsUpdate.js +32 -32
- package/funcs/organizationsUpdate.js.map +1 -1
- package/funcs/productsCreate.d.ts +1 -1
- package/funcs/productsCreate.d.ts.map +1 -1
- package/funcs/productsCreate.js +30 -30
- package/funcs/productsCreate.js.map +1 -1
- package/funcs/productsGet.d.ts +1 -1
- package/funcs/productsGet.d.ts.map +1 -1
- package/funcs/productsGet.js +32 -32
- package/funcs/productsGet.js.map +1 -1
- package/funcs/productsList.d.ts +1 -1
- package/funcs/productsList.d.ts.map +1 -1
- package/funcs/productsList.js +44 -45
- package/funcs/productsList.js.map +1 -1
- package/funcs/productsUpdate.d.ts +1 -1
- package/funcs/productsUpdate.d.ts.map +1 -1
- package/funcs/productsUpdate.js +32 -32
- package/funcs/productsUpdate.js.map +1 -1
- package/funcs/productsUpdateBenefits.d.ts +1 -1
- package/funcs/productsUpdateBenefits.d.ts.map +1 -1
- package/funcs/productsUpdateBenefits.js +32 -32
- package/funcs/productsUpdateBenefits.js.map +1 -1
- package/funcs/repositoriesGet.d.ts +1 -1
- package/funcs/repositoriesGet.d.ts.map +1 -1
- package/funcs/repositoriesGet.js +32 -32
- package/funcs/repositoriesGet.js.map +1 -1
- package/funcs/repositoriesList.d.ts +1 -1
- package/funcs/repositoriesList.d.ts.map +1 -1
- package/funcs/repositoriesList.js +46 -46
- package/funcs/repositoriesList.js.map +1 -1
- package/funcs/repositoriesUpdate.d.ts +1 -1
- package/funcs/repositoriesUpdate.d.ts.map +1 -1
- package/funcs/repositoriesUpdate.js +32 -34
- package/funcs/repositoriesUpdate.js.map +1 -1
- package/funcs/subscriptionsExport.d.ts +1 -1
- package/funcs/subscriptionsExport.d.ts.map +1 -1
- package/funcs/subscriptionsExport.js +33 -33
- package/funcs/subscriptionsExport.js.map +1 -1
- package/funcs/subscriptionsList.d.ts +1 -1
- package/funcs/subscriptionsList.d.ts.map +1 -1
- package/funcs/subscriptionsList.js +44 -45
- package/funcs/subscriptionsList.js.map +1 -1
- package/funcs/usersAdvertisementsCreate.d.ts +1 -1
- package/funcs/usersAdvertisementsCreate.d.ts.map +1 -1
- package/funcs/usersAdvertisementsCreate.js +30 -30
- package/funcs/usersAdvertisementsCreate.js.map +1 -1
- package/funcs/usersAdvertisementsDelete.d.ts +1 -1
- package/funcs/usersAdvertisementsDelete.d.ts.map +1 -1
- package/funcs/usersAdvertisementsDelete.js +32 -32
- package/funcs/usersAdvertisementsDelete.js.map +1 -1
- package/funcs/usersAdvertisementsEnable.d.ts +1 -1
- package/funcs/usersAdvertisementsEnable.d.ts.map +1 -1
- package/funcs/usersAdvertisementsEnable.js +32 -32
- package/funcs/usersAdvertisementsEnable.js.map +1 -1
- package/funcs/usersAdvertisementsGet.d.ts +1 -1
- package/funcs/usersAdvertisementsGet.d.ts.map +1 -1
- package/funcs/usersAdvertisementsGet.js +32 -32
- package/funcs/usersAdvertisementsGet.js.map +1 -1
- package/funcs/usersAdvertisementsList.d.ts +1 -1
- package/funcs/usersAdvertisementsList.d.ts.map +1 -1
- package/funcs/usersAdvertisementsList.js +41 -41
- package/funcs/usersAdvertisementsList.js.map +1 -1
- package/funcs/usersAdvertisementsUpdate.d.ts +1 -1
- package/funcs/usersAdvertisementsUpdate.d.ts.map +1 -1
- package/funcs/usersAdvertisementsUpdate.js +32 -32
- package/funcs/usersAdvertisementsUpdate.js.map +1 -1
- package/funcs/usersBenefitsGet.d.ts +1 -1
- package/funcs/usersBenefitsGet.d.ts.map +1 -1
- package/funcs/usersBenefitsGet.js +32 -32
- package/funcs/usersBenefitsGet.js.map +1 -1
- package/funcs/usersBenefitsList.d.ts +1 -1
- package/funcs/usersBenefitsList.d.ts.map +1 -1
- package/funcs/usersBenefitsList.js +45 -45
- package/funcs/usersBenefitsList.js.map +1 -1
- package/funcs/usersDownloadablesGet.d.ts +1 -1
- package/funcs/usersDownloadablesGet.d.ts.map +1 -1
- package/funcs/usersDownloadablesGet.js +32 -32
- package/funcs/usersDownloadablesGet.js.map +1 -1
- package/funcs/usersDownloadablesList.d.ts +1 -1
- package/funcs/usersDownloadablesList.d.ts.map +1 -1
- package/funcs/usersDownloadablesList.js +42 -42
- package/funcs/usersDownloadablesList.js.map +1 -1
- package/funcs/usersLicenseKeysActivate.d.ts +1 -1
- package/funcs/usersLicenseKeysActivate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysActivate.js +30 -30
- package/funcs/usersLicenseKeysActivate.js.map +1 -1
- package/funcs/usersLicenseKeysDeactivate.d.ts +1 -1
- package/funcs/usersLicenseKeysDeactivate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysDeactivate.js +30 -30
- package/funcs/usersLicenseKeysDeactivate.js.map +1 -1
- package/funcs/usersLicenseKeysGet.d.ts +1 -1
- package/funcs/usersLicenseKeysGet.d.ts.map +1 -1
- package/funcs/usersLicenseKeysGet.js +32 -32
- package/funcs/usersLicenseKeysGet.js.map +1 -1
- package/funcs/usersLicenseKeysList.d.ts +1 -1
- package/funcs/usersLicenseKeysList.d.ts.map +1 -1
- package/funcs/usersLicenseKeysList.js +42 -42
- package/funcs/usersLicenseKeysList.js.map +1 -1
- package/funcs/usersLicenseKeysValidate.d.ts +1 -1
- package/funcs/usersLicenseKeysValidate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysValidate.js +30 -30
- package/funcs/usersLicenseKeysValidate.js.map +1 -1
- package/funcs/usersOrdersGet.d.ts +1 -1
- package/funcs/usersOrdersGet.d.ts.map +1 -1
- package/funcs/usersOrdersGet.js +32 -32
- package/funcs/usersOrdersGet.js.map +1 -1
- package/funcs/usersOrdersInvoice.d.ts +1 -1
- package/funcs/usersOrdersInvoice.d.ts.map +1 -1
- package/funcs/usersOrdersInvoice.js +32 -32
- package/funcs/usersOrdersInvoice.js.map +1 -1
- package/funcs/usersOrdersList.d.ts +1 -1
- package/funcs/usersOrdersList.d.ts.map +1 -1
- package/funcs/usersOrdersList.js +46 -46
- package/funcs/usersOrdersList.js.map +1 -1
- package/funcs/usersSubscriptionsCancel.d.ts +1 -1
- package/funcs/usersSubscriptionsCancel.d.ts.map +1 -1
- package/funcs/usersSubscriptionsCancel.js +32 -32
- package/funcs/usersSubscriptionsCancel.js.map +1 -1
- package/funcs/usersSubscriptionsGet.d.ts +1 -1
- package/funcs/usersSubscriptionsGet.d.ts.map +1 -1
- package/funcs/usersSubscriptionsGet.js +32 -32
- package/funcs/usersSubscriptionsGet.js.map +1 -1
- package/funcs/usersSubscriptionsList.d.ts +1 -1
- package/funcs/usersSubscriptionsList.d.ts.map +1 -1
- package/funcs/usersSubscriptionsList.js +45 -45
- package/funcs/usersSubscriptionsList.js.map +1 -1
- package/funcs/usersSubscriptionsUpdate.d.ts +1 -1
- package/funcs/usersSubscriptionsUpdate.d.ts.map +1 -1
- package/funcs/usersSubscriptionsUpdate.js +33 -33
- package/funcs/usersSubscriptionsUpdate.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +5 -8
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +36 -20
- package/lib/sdks.js.map +1 -1
- package/models/components/benefitcustomsubscriber.d.ts +3 -3
- package/models/components/benefitcustomsubscriber.d.ts.map +1 -1
- package/models/components/benefitcustomsubscriber.js +3 -3
- package/models/components/benefitcustomsubscriber.js.map +1 -1
- package/models/components/benefitgrant.d.ts +28 -9
- package/models/components/benefitgrant.d.ts.map +1 -1
- package/models/components/benefitgrant.js +57 -4
- package/models/components/benefitgrant.js.map +1 -1
- package/models/components/benefitgrantads.d.ts +3 -3
- package/models/components/benefitgrantads.d.ts.map +1 -1
- package/models/components/benefitgrantads.js +3 -3
- package/models/components/benefitgrantads.js.map +1 -1
- package/models/components/benefitgrantadsproperties.d.ts +2 -5
- package/models/components/benefitgrantadsproperties.d.ts.map +1 -1
- package/models/components/benefitgrantadsproperties.js +2 -2
- package/models/components/benefitgrantadsproperties.js.map +1 -1
- package/models/components/benefitgrantadssubscriberproperties.d.ts +28 -0
- package/models/components/benefitgrantadssubscriberproperties.d.ts.map +1 -0
- package/models/components/{userfreesubscriptioncreate.js → benefitgrantadssubscriberproperties.js} +15 -19
- package/models/components/benefitgrantadssubscriberproperties.js.map +1 -0
- package/models/components/benefitgrantarticlesproperties.d.ts +21 -0
- package/models/components/benefitgrantarticlesproperties.d.ts.map +1 -0
- package/models/components/{benefitgrantproperties.js → benefitgrantarticlesproperties.js} +11 -11
- package/models/components/benefitgrantarticlesproperties.js.map +1 -0
- package/models/components/benefitgrantcustomproperties.d.ts +21 -0
- package/models/components/benefitgrantcustomproperties.d.ts.map +1 -0
- package/models/components/{subscriptionsimported.js → benefitgrantcustomproperties.js} +11 -15
- package/models/components/benefitgrantcustomproperties.js.map +1 -0
- package/models/components/benefitgrantdiscordproperties.d.ts +29 -0
- package/models/components/benefitgrantdiscordproperties.d.ts.map +1 -0
- package/models/components/{subscriptioncreateemail.js → benefitgrantdiscordproperties.js} +23 -17
- package/models/components/benefitgrantdiscordproperties.js.map +1 -0
- package/models/components/benefitgrantdownloadablesproperties.d.ts +25 -0
- package/models/components/benefitgrantdownloadablesproperties.d.ts.map +1 -0
- package/models/components/{subscriptiontiertype.js → benefitgrantdownloadablesproperties.js} +15 -16
- package/models/components/benefitgrantdownloadablesproperties.js.map +1 -0
- package/models/components/benefitgrantgithubrepositoryproperties.d.ts +66 -0
- package/models/components/benefitgrantgithubrepositoryproperties.d.ts.map +1 -0
- package/models/components/benefitgrantgithubrepositoryproperties.js +94 -0
- package/models/components/benefitgrantgithubrepositoryproperties.js.map +1 -0
- package/models/components/benefitgrantlicensekeys.d.ts +2 -2
- package/models/components/benefitgrantlicensekeys.d.ts.map +1 -1
- package/models/components/benefitgrantlicensekeys.js +2 -2
- package/models/components/benefitgrantlicensekeys.js.map +1 -1
- package/models/components/benefitgrantlicensekeysproperties.d.ts +4 -4
- package/models/components/benefitgrantlicensekeysproperties.d.ts.map +1 -1
- package/models/components/benefitgrantlicensekeysproperties.js +4 -4
- package/models/components/benefitgrantlicensekeysproperties.js.map +1 -1
- package/models/components/benefitgrantsubscriber.d.ts +78 -0
- package/models/components/benefitgrantsubscriber.d.ts.map +1 -0
- package/models/components/benefitgrantsubscriber.js +97 -0
- package/models/components/benefitgrantsubscriber.js.map +1 -0
- package/models/components/benefitgrantwebhook.d.ts +155 -0
- package/models/components/benefitgrantwebhook.d.ts.map +1 -0
- package/models/components/benefitgrantwebhook.js +260 -0
- package/models/components/benefitgrantwebhook.js.map +1 -0
- package/models/components/checkoutcreate.d.ts +5 -0
- package/models/components/checkoutcreate.d.ts.map +1 -1
- package/models/components/checkoutcreate.js +4 -0
- package/models/components/checkoutcreate.js.map +1 -1
- package/models/components/index.d.ts +16 -7
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +16 -7
- package/models/components/index.js.map +1 -1
- package/models/components/orderproduct.d.ts +0 -11
- package/models/components/orderproduct.d.ts.map +1 -1
- package/models/components/orderproduct.js +0 -7
- package/models/components/orderproduct.js.map +1 -1
- package/models/components/ordersubscription.d.ts +2 -2
- package/models/components/ordersubscription.d.ts.map +1 -1
- package/models/components/ordersubscription.js +2 -2
- package/models/components/ordersubscription.js.map +1 -1
- package/models/components/productinput.d.ts +0 -11
- package/models/components/productinput.d.ts.map +1 -1
- package/models/components/productinput.js +0 -7
- package/models/components/productinput.js.map +1 -1
- package/models/components/productonetimecreate.d.ts +5 -4
- package/models/components/productonetimecreate.d.ts.map +1 -1
- package/models/components/productonetimecreate.js +5 -0
- package/models/components/productonetimecreate.js.map +1 -1
- package/models/components/productoutput.d.ts +0 -11
- package/models/components/productoutput.d.ts.map +1 -1
- package/models/components/productoutput.js +0 -7
- package/models/components/productoutput.js.map +1 -1
- package/models/components/productpriceonetime.d.ts +3 -2
- package/models/components/productpriceonetime.d.ts.map +1 -1
- package/models/components/productpriceonetime.js +3 -0
- package/models/components/productpriceonetime.js.map +1 -1
- package/models/components/productpriceonetimecustom.d.ts +5 -5
- package/models/components/productpriceonetimecustom.d.ts.map +1 -1
- package/models/components/productpriceonetimecustom.js +4 -4
- package/models/components/productpriceonetimecustom.js.map +1 -1
- package/models/components/productpriceonetimecustomcreate.d.ts +24 -0
- package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -1
- package/models/components/productpriceonetimecustomcreate.js +24 -1
- package/models/components/productpriceonetimecustomcreate.js.map +1 -1
- package/models/components/productpriceonetimefixed.d.ts +5 -5
- package/models/components/productpriceonetimefixed.d.ts.map +1 -1
- package/models/components/productpriceonetimefixed.js +4 -4
- package/models/components/productpriceonetimefixed.js.map +1 -1
- package/models/components/productpriceonetimefixedcreate.d.ts +29 -5
- package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -1
- package/models/components/productpriceonetimefixedcreate.js +28 -5
- package/models/components/productpriceonetimefixedcreate.js.map +1 -1
- package/models/components/productpriceonetimefree.d.ts +104 -0
- package/models/components/productpriceonetimefree.d.ts.map +1 -0
- package/models/components/productpriceonetimefree.js +114 -0
- package/models/components/productpriceonetimefree.js.map +1 -0
- package/models/components/productpriceonetimefreecreate.d.ts +75 -0
- package/models/components/productpriceonetimefreecreate.d.ts.map +1 -0
- package/models/components/productpriceonetimefreecreate.js +98 -0
- package/models/components/productpriceonetimefreecreate.js.map +1 -0
- package/models/components/productpricerecurringcustom.d.ts +5 -5
- package/models/components/productpricerecurringcustom.d.ts.map +1 -1
- package/models/components/productpricerecurringcustom.js +4 -4
- package/models/components/productpricerecurringcustom.js.map +1 -1
- package/models/components/productpricerecurringfixed.d.ts +5 -5
- package/models/components/productpricerecurringfixed.d.ts.map +1 -1
- package/models/components/productpricerecurringfixed.js +4 -4
- package/models/components/productpricerecurringfixed.js.map +1 -1
- package/models/components/productpricerecurringfixedcreate.d.ts +91 -0
- package/models/components/productpricerecurringfixedcreate.d.ts.map +1 -0
- package/models/components/productpricerecurringfixedcreate.js +111 -0
- package/models/components/productpricerecurringfixedcreate.js.map +1 -0
- package/models/components/productpricerecurringfree.d.ts +110 -0
- package/models/components/productpricerecurringfree.d.ts.map +1 -0
- package/models/components/productpricerecurringfree.js +119 -0
- package/models/components/productpricerecurringfree.js.map +1 -0
- package/models/components/productpricerecurringfreecreate.d.ts +81 -0
- package/models/components/productpricerecurringfreecreate.d.ts.map +1 -0
- package/models/components/productpricerecurringfreecreate.js +103 -0
- package/models/components/productpricerecurringfreecreate.js.map +1 -0
- package/models/components/productpricerecurringinput.d.ts +7 -2
- package/models/components/productpricerecurringinput.d.ts.map +1 -1
- package/models/components/productpricerecurringinput.js +7 -0
- package/models/components/productpricerecurringinput.js.map +1 -1
- package/models/components/productpricerecurringoutput.d.ts +7 -2
- package/models/components/productpricerecurringoutput.d.ts.map +1 -1
- package/models/components/productpricerecurringoutput.js +7 -0
- package/models/components/productpricerecurringoutput.js.map +1 -1
- package/models/components/productrecurringcreate.d.ts +17 -36
- package/models/components/productrecurringcreate.d.ts.map +1 -1
- package/models/components/productrecurringcreate.js +26 -26
- package/models/components/productrecurringcreate.js.map +1 -1
- package/models/components/productupdate.d.ts +7 -10
- package/models/components/productupdate.d.ts.map +1 -1
- package/models/components/productupdate.js +15 -9
- package/models/components/productupdate.js.map +1 -1
- package/models/components/subscriptioninput.d.ts +4 -4
- package/models/components/subscriptioninput.d.ts.map +1 -1
- package/models/components/subscriptioninput.js +4 -4
- package/models/components/subscriptioninput.js.map +1 -1
- package/models/components/subscriptionoutput.d.ts +4 -4
- package/models/components/subscriptionoutput.d.ts.map +1 -1
- package/models/components/subscriptionoutput.js +4 -4
- package/models/components/subscriptionoutput.js.map +1 -1
- package/models/components/subscriptionsortproperty.d.ts +0 -6
- package/models/components/subscriptionsortproperty.d.ts.map +1 -1
- package/models/components/subscriptionsortproperty.js +0 -2
- package/models/components/subscriptionsortproperty.js.map +1 -1
- package/models/components/userorderproduct.d.ts +0 -11
- package/models/components/userorderproduct.d.ts.map +1 -1
- package/models/components/userorderproduct.js +0 -7
- package/models/components/userorderproduct.js.map +1 -1
- package/models/components/userordersubscription.d.ts +2 -2
- package/models/components/userordersubscription.d.ts.map +1 -1
- package/models/components/userordersubscription.js +2 -2
- package/models/components/userordersubscription.js.map +1 -1
- package/models/components/usersubscription.d.ts +4 -4
- package/models/components/usersubscription.d.ts.map +1 -1
- package/models/components/usersubscription.js +4 -4
- package/models/components/usersubscription.js.map +1 -1
- package/models/components/usersubscriptionproduct.d.ts +0 -11
- package/models/components/usersubscriptionproduct.d.ts.map +1 -1
- package/models/components/usersubscriptionproduct.js +0 -7
- package/models/components/usersubscriptionproduct.js.map +1 -1
- package/models/components/webhookbenefitgrantcreatedpayload.d.ts +58 -0
- package/models/components/webhookbenefitgrantcreatedpayload.d.ts.map +1 -0
- package/models/components/webhookbenefitgrantcreatedpayload.js +71 -0
- package/models/components/webhookbenefitgrantcreatedpayload.js.map +1 -0
- package/models/components/webhookbenefitgrantrevokedpayload.d.ts +58 -0
- package/models/components/webhookbenefitgrantrevokedpayload.d.ts.map +1 -0
- package/models/components/webhookbenefitgrantrevokedpayload.js +71 -0
- package/models/components/webhookbenefitgrantrevokedpayload.js.map +1 -0
- package/models/components/webhookbenefitgrantupdatedpayload.d.ts +58 -0
- package/models/components/webhookbenefitgrantupdatedpayload.d.ts.map +1 -0
- package/models/components/webhookbenefitgrantupdatedpayload.js +71 -0
- package/models/components/webhookbenefitgrantupdatedpayload.js.map +1 -0
- package/models/errors/httpvalidationerror.d.ts +0 -6
- package/models/errors/httpvalidationerror.d.ts.map +1 -1
- package/models/errors/httpvalidationerror.js +0 -3
- package/models/errors/httpvalidationerror.js.map +1 -1
- package/models/errors/index.d.ts +0 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -2
- package/models/errors/index.js.map +1 -1
- package/models/errors/notpermitted.d.ts +0 -6
- package/models/errors/notpermitted.d.ts.map +1 -1
- package/models/errors/notpermitted.js +0 -3
- package/models/errors/notpermitted.js.map +1 -1
- package/models/errors/resourcenotfound.d.ts +0 -6
- package/models/errors/resourcenotfound.d.ts.map +1 -1
- package/models/errors/resourcenotfound.js +0 -3
- package/models/errors/resourcenotfound.js.map +1 -1
- package/models/errors/unauthorized.d.ts +0 -6
- package/models/errors/unauthorized.d.ts.map +1 -1
- package/models/errors/unauthorized.js +0 -3
- package/models/errors/unauthorized.js.map +1 -1
- package/models/operations/productscreate.d.ts +2 -2
- package/models/operations/productscreate.d.ts.map +1 -1
- package/models/operations/productscreate.js +2 -2
- package/models/operations/productscreate.js.map +1 -1
- package/models/operations/productslist.d.ts +0 -27
- package/models/operations/productslist.d.ts.map +1 -1
- package/models/operations/productslist.js +1 -32
- package/models/operations/productslist.js.map +1 -1
- package/models/operations/subscriptionslist.d.ts +0 -29
- package/models/operations/subscriptionslist.d.ts.map +1 -1
- package/models/operations/subscriptionslist.js +1 -32
- package/models/operations/subscriptionslist.js.map +1 -1
- package/package.json +1 -1
- package/sdk/oauth2.js +1 -1
- package/sdk/polarsubscriptions.d.ts +0 -9
- package/sdk/polarsubscriptions.d.ts.map +1 -1
- package/sdk/polarsubscriptions.js +0 -12
- package/sdk/polarsubscriptions.js.map +1 -1
- package/sdk/sdk.js +15 -15
- package/sdk/subscriptions.d.ts +0 -15
- package/sdk/subscriptions.d.ts.map +1 -1
- package/sdk/subscriptions.js +0 -20
- package/sdk/subscriptions.js.map +1 -1
- package/sdk/users.js +6 -6
- package/src/funcs/advertisementsGet.ts +40 -41
- package/src/funcs/advertisementsList.ts +48 -49
- package/src/funcs/articlesCreate.ts +37 -37
- package/src/funcs/articlesDelete.ts +41 -41
- package/src/funcs/articlesGet.ts +40 -40
- package/src/funcs/articlesList.ts +52 -52
- package/src/funcs/articlesPreview.ts +41 -44
- package/src/funcs/articlesReceivers.ts +39 -40
- package/src/funcs/articlesSend.ts +41 -41
- package/src/funcs/articlesUpdate.ts +41 -44
- package/src/funcs/benefitsCreate.ts +38 -38
- package/src/funcs/benefitsDelete.ts +41 -41
- package/src/funcs/benefitsGet.ts +40 -40
- package/src/funcs/benefitsGrants.ts +52 -55
- package/src/funcs/benefitsList.ts +48 -48
- package/src/funcs/benefitsUpdate.ts +41 -44
- package/src/funcs/checkoutsCreate.ts +37 -37
- package/src/funcs/checkoutsGet.ts +39 -39
- package/src/funcs/externalOrganizationsList.ts +51 -51
- package/src/funcs/filesCreate.ts +37 -37
- package/src/funcs/filesDelete.ts +41 -41
- package/src/funcs/filesList.ts +48 -48
- package/src/funcs/filesUpdate.ts +39 -42
- package/src/funcs/filesUploaded.ts +39 -42
- package/src/funcs/licenseKeysGet.ts +41 -41
- package/src/funcs/licenseKeysGetActivation.ts +44 -44
- package/src/funcs/licenseKeysList.ts +49 -49
- package/src/funcs/licenseKeysUpdate.ts +41 -47
- package/src/funcs/metricsGet.ts +45 -45
- package/src/funcs/metricsLimits.ts +22 -22
- package/src/funcs/oauth2ClientsCreate.ts +37 -38
- package/src/funcs/oauth2ClientsDelete.ts +40 -40
- package/src/funcs/oauth2ClientsGet.ts +40 -40
- package/src/funcs/oauth2ClientsList.ts +46 -47
- package/src/funcs/oauth2ClientsUpdate.ts +40 -43
- package/src/funcs/oauth2Introspect.ts +35 -35
- package/src/funcs/oauth2Revoke.ts +35 -35
- package/src/funcs/oauth2Token.ts +35 -35
- package/src/funcs/oauth2Userinfo.ts +22 -22
- package/src/funcs/ordersGet.ts +40 -40
- package/src/funcs/ordersInvoice.ts +40 -40
- package/src/funcs/ordersList.ts +51 -53
- package/src/funcs/organizationsCreate.ts +37 -37
- package/src/funcs/organizationsGet.ts +40 -40
- package/src/funcs/organizationsList.ts +49 -50
- package/src/funcs/organizationsUpdate.ts +42 -45
- package/src/funcs/productsCreate.ts +38 -38
- package/src/funcs/productsGet.ts +40 -40
- package/src/funcs/productsList.ts +50 -51
- package/src/funcs/productsUpdate.ts +41 -44
- package/src/funcs/productsUpdateBenefits.ts +42 -45
- package/src/funcs/repositoriesGet.ts +40 -40
- package/src/funcs/repositoriesList.ts +52 -52
- package/src/funcs/repositoriesUpdate.ts +41 -47
- package/src/funcs/subscriptionsExport.ts +41 -41
- package/src/funcs/subscriptionsList.ts +50 -52
- package/src/funcs/usersAdvertisementsCreate.ts +38 -38
- package/src/funcs/usersAdvertisementsDelete.ts +42 -42
- package/src/funcs/usersAdvertisementsEnable.ts +41 -44
- package/src/funcs/usersAdvertisementsGet.ts +41 -41
- package/src/funcs/usersAdvertisementsList.ts +48 -48
- package/src/funcs/usersAdvertisementsUpdate.ts +41 -44
- package/src/funcs/usersBenefitsGet.ts +40 -40
- package/src/funcs/usersBenefitsList.ts +51 -52
- package/src/funcs/usersDownloadablesGet.ts +41 -41
- package/src/funcs/usersDownloadablesList.ts +49 -49
- package/src/funcs/usersLicenseKeysActivate.ts +39 -39
- package/src/funcs/usersLicenseKeysDeactivate.ts +38 -38
- package/src/funcs/usersLicenseKeysGet.ts +42 -42
- package/src/funcs/usersLicenseKeysList.ts +51 -51
- package/src/funcs/usersLicenseKeysValidate.ts +38 -38
- package/src/funcs/usersOrdersGet.ts +40 -40
- package/src/funcs/usersOrdersInvoice.ts +40 -41
- package/src/funcs/usersOrdersList.ts +52 -52
- package/src/funcs/usersSubscriptionsCancel.ts +42 -42
- package/src/funcs/usersSubscriptionsGet.ts +41 -41
- package/src/funcs/usersSubscriptionsList.ts +52 -52
- package/src/funcs/usersSubscriptionsUpdate.ts +42 -48
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +26 -26
- package/src/models/components/benefitcustomsubscriber.ts +9 -9
- package/src/models/components/benefitgrant.ts +137 -15
- package/src/models/components/benefitgrantads.ts +9 -9
- package/src/models/components/benefitgrantadsproperties.ts +4 -7
- package/src/models/components/benefitgrantadssubscriberproperties.ts +59 -0
- package/src/models/components/benefitgrantarticlesproperties.ts +37 -0
- package/src/models/components/benefitgrantcustomproperties.ts +37 -0
- package/src/models/components/benefitgrantdiscordproperties.ts +66 -0
- package/src/models/components/benefitgrantdownloadablesproperties.ts +47 -0
- package/src/models/components/benefitgrantgithubrepositoryproperties.ts +109 -0
- package/src/models/components/benefitgrantlicensekeys.ts +4 -4
- package/src/models/components/benefitgrantlicensekeysproperties.ts +8 -8
- package/src/models/components/benefitgrantsubscriber.ts +151 -0
- package/src/models/components/benefitgrantwebhook.ts +533 -0
- package/src/models/components/checkoutcreate.ts +9 -0
- package/src/models/components/index.ts +16 -7
- package/src/models/components/orderproduct.ts +0 -21
- package/src/models/components/ordersubscription.ts +4 -4
- package/src/models/components/productinput.ts +0 -21
- package/src/models/components/productonetimecreate.ts +16 -1
- package/src/models/components/productoutput.ts +0 -21
- package/src/models/components/productpriceonetime.ts +10 -0
- package/src/models/components/productpriceonetimecustom.ts +9 -9
- package/src/models/components/productpriceonetimecustomcreate.ts +36 -0
- package/src/models/components/productpriceonetimefixed.ts +9 -9
- package/src/models/components/productpriceonetimefixedcreate.ts +45 -9
- package/src/models/components/productpriceonetimefree.ts +164 -0
- package/src/models/components/productpriceonetimefreecreate.ts +121 -0
- package/src/models/components/productpricerecurringcustom.ts +9 -9
- package/src/models/components/productpricerecurringfixed.ts +9 -9
- package/src/models/components/productpricerecurringfixedcreate.ts +155 -0
- package/src/models/components/productpricerecurringfree.ts +179 -0
- package/src/models/components/productpricerecurringfreecreate.ts +136 -0
- package/src/models/components/productpricerecurringinput.ts +18 -0
- package/src/models/components/productpricerecurringoutput.ts +18 -0
- package/src/models/components/productrecurringcreate.ts +57 -48
- package/src/models/components/productupdate.ts +41 -22
- package/src/models/components/subscriptioninput.ts +8 -8
- package/src/models/components/subscriptionoutput.ts +8 -8
- package/src/models/components/subscriptionsortproperty.ts +0 -2
- package/src/models/components/userorderproduct.ts +0 -21
- package/src/models/components/userordersubscription.ts +4 -4
- package/src/models/components/usersubscription.ts +8 -8
- package/src/models/components/usersubscriptionproduct.ts +0 -21
- package/src/models/components/webhookbenefitgrantcreatedpayload.ts +95 -0
- package/src/models/components/webhookbenefitgrantrevokedpayload.ts +95 -0
- package/src/models/components/webhookbenefitgrantupdatedpayload.ts +95 -0
- package/src/models/errors/httpvalidationerror.ts +0 -6
- package/src/models/errors/index.ts +0 -2
- package/src/models/errors/notpermitted.ts +0 -6
- package/src/models/errors/resourcenotfound.ts +0 -6
- package/src/models/errors/unauthorized.ts +0 -6
- package/src/models/operations/productscreate.ts +6 -6
- package/src/models/operations/productslist.ts +0 -70
- package/src/models/operations/subscriptionslist.ts +0 -68
- package/src/sdk/oauth2.ts +1 -1
- package/src/sdk/polarsubscriptions.ts +0 -20
- package/src/sdk/sdk.ts +15 -15
- package/src/sdk/subscriptions.ts +0 -37
- package/src/sdk/users.ts +6 -6
- package/funcs/subscriptionsCreate.d.ts +0 -16
- package/funcs/subscriptionsCreate.d.ts.map +0 -1
- package/funcs/subscriptionsCreate.js +0 -96
- package/funcs/subscriptionsCreate.js.map +0 -1
- package/funcs/subscriptionsImportSubscriptions.d.ts +0 -16
- package/funcs/subscriptionsImportSubscriptions.d.ts.map +0 -1
- package/funcs/subscriptionsImportSubscriptions.js +0 -109
- package/funcs/subscriptionsImportSubscriptions.js.map +0 -1
- package/funcs/usersSubscriptionsCreate.d.ts +0 -18
- package/funcs/usersSubscriptionsCreate.d.ts.map +0 -1
- package/funcs/usersSubscriptionsCreate.js +0 -98
- package/funcs/usersSubscriptionsCreate.js.map +0 -1
- package/models/components/benefitgrantproperties.d.ts +0 -24
- package/models/components/benefitgrantproperties.d.ts.map +0 -1
- package/models/components/benefitgrantproperties.js.map +0 -1
- package/models/components/bodysubscriptionsimport.d.ts +0 -58
- package/models/components/bodysubscriptionsimport.d.ts.map +0 -1
- package/models/components/bodysubscriptionsimport.js +0 -94
- package/models/components/bodysubscriptionsimport.js.map +0 -1
- package/models/components/productpricerecurringcreate.d.ts +0 -67
- package/models/components/productpricerecurringcreate.d.ts.map +0 -1
- package/models/components/productpricerecurringcreate.js +0 -88
- package/models/components/productpricerecurringcreate.js.map +0 -1
- package/models/components/subscriptioncreateemail.d.ts +0 -36
- package/models/components/subscriptioncreateemail.d.ts.map +0 -1
- package/models/components/subscriptioncreateemail.js.map +0 -1
- package/models/components/subscriptionsimported.d.ts +0 -28
- package/models/components/subscriptionsimported.d.ts.map +0 -1
- package/models/components/subscriptionsimported.js.map +0 -1
- package/models/components/subscriptiontiertype.d.ts +0 -31
- package/models/components/subscriptiontiertype.d.ts.map +0 -1
- package/models/components/subscriptiontiertype.js.map +0 -1
- package/models/components/userfreesubscriptioncreate.d.ts +0 -33
- package/models/components/userfreesubscriptioncreate.d.ts.map +0 -1
- package/models/components/userfreesubscriptioncreate.js.map +0 -1
- package/models/errors/alreadysubscribed.d.ts +0 -57
- package/models/errors/alreadysubscribed.d.ts.map +0 -1
- package/models/errors/alreadysubscribed.js +0 -88
- package/models/errors/alreadysubscribed.js.map +0 -1
- package/models/errors/freesubscriptionupgrade.d.ts +0 -57
- package/models/errors/freesubscriptionupgrade.d.ts.map +0 -1
- package/models/errors/freesubscriptionupgrade.js +0 -88
- package/models/errors/freesubscriptionupgrade.js.map +0 -1
- package/src/funcs/subscriptionsCreate.ts +0 -126
- package/src/funcs/subscriptionsImportSubscriptions.ts +0 -142
- package/src/funcs/usersSubscriptionsCreate.ts +0 -135
- package/src/models/components/benefitgrantproperties.ts +0 -40
- package/src/models/components/bodysubscriptionsimport.ts +0 -116
- package/src/models/components/productpricerecurringcreate.ts +0 -116
- package/src/models/components/subscriptioncreateemail.ts +0 -67
- package/src/models/components/subscriptionsimported.ts +0 -48
- package/src/models/components/subscriptiontiertype.ts +0 -34
- package/src/models/components/userfreesubscriptioncreate.ts +0 -66
- package/src/models/errors/alreadysubscribed.ts +0 -102
- package/src/models/errors/freesubscriptionupgrade.ts +0 -106
|
@@ -0,0 +1,533 @@
|
|
|
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 {
|
|
8
|
+
BenefitAds,
|
|
9
|
+
BenefitAds$inboundSchema,
|
|
10
|
+
BenefitAds$Outbound,
|
|
11
|
+
BenefitAds$outboundSchema,
|
|
12
|
+
} from "./benefitads.js";
|
|
13
|
+
import {
|
|
14
|
+
BenefitArticles,
|
|
15
|
+
BenefitArticles$inboundSchema,
|
|
16
|
+
BenefitArticles$Outbound,
|
|
17
|
+
BenefitArticles$outboundSchema,
|
|
18
|
+
} from "./benefitarticles.js";
|
|
19
|
+
import {
|
|
20
|
+
BenefitCustom,
|
|
21
|
+
BenefitCustom$inboundSchema,
|
|
22
|
+
BenefitCustom$Outbound,
|
|
23
|
+
BenefitCustom$outboundSchema,
|
|
24
|
+
} from "./benefitcustom.js";
|
|
25
|
+
import {
|
|
26
|
+
BenefitDiscordInput,
|
|
27
|
+
BenefitDiscordInput$inboundSchema,
|
|
28
|
+
BenefitDiscordInput$Outbound,
|
|
29
|
+
BenefitDiscordInput$outboundSchema,
|
|
30
|
+
} from "./benefitdiscordinput.js";
|
|
31
|
+
import {
|
|
32
|
+
BenefitDownloadables,
|
|
33
|
+
BenefitDownloadables$inboundSchema,
|
|
34
|
+
BenefitDownloadables$Outbound,
|
|
35
|
+
BenefitDownloadables$outboundSchema,
|
|
36
|
+
} from "./benefitdownloadables.js";
|
|
37
|
+
import {
|
|
38
|
+
BenefitGitHubRepository,
|
|
39
|
+
BenefitGitHubRepository$inboundSchema,
|
|
40
|
+
BenefitGitHubRepository$Outbound,
|
|
41
|
+
BenefitGitHubRepository$outboundSchema,
|
|
42
|
+
} from "./benefitgithubrepository.js";
|
|
43
|
+
import {
|
|
44
|
+
BenefitGrantAdsProperties,
|
|
45
|
+
BenefitGrantAdsProperties$inboundSchema,
|
|
46
|
+
BenefitGrantAdsProperties$Outbound,
|
|
47
|
+
BenefitGrantAdsProperties$outboundSchema,
|
|
48
|
+
} from "./benefitgrantadsproperties.js";
|
|
49
|
+
import {
|
|
50
|
+
BenefitGrantArticlesProperties,
|
|
51
|
+
BenefitGrantArticlesProperties$inboundSchema,
|
|
52
|
+
BenefitGrantArticlesProperties$Outbound,
|
|
53
|
+
BenefitGrantArticlesProperties$outboundSchema,
|
|
54
|
+
} from "./benefitgrantarticlesproperties.js";
|
|
55
|
+
import {
|
|
56
|
+
BenefitGrantCustomProperties,
|
|
57
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
58
|
+
BenefitGrantCustomProperties$Outbound,
|
|
59
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
60
|
+
} from "./benefitgrantcustomproperties.js";
|
|
61
|
+
import {
|
|
62
|
+
BenefitGrantDiscordProperties,
|
|
63
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
64
|
+
BenefitGrantDiscordProperties$Outbound,
|
|
65
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
66
|
+
} from "./benefitgrantdiscordproperties.js";
|
|
67
|
+
import {
|
|
68
|
+
BenefitGrantDownloadablesProperties,
|
|
69
|
+
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
70
|
+
BenefitGrantDownloadablesProperties$Outbound,
|
|
71
|
+
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
72
|
+
} from "./benefitgrantdownloadablesproperties.js";
|
|
73
|
+
import {
|
|
74
|
+
BenefitGrantGitHubRepositoryProperties,
|
|
75
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
76
|
+
BenefitGrantGitHubRepositoryProperties$Outbound,
|
|
77
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
78
|
+
} from "./benefitgrantgithubrepositoryproperties.js";
|
|
79
|
+
import {
|
|
80
|
+
BenefitGrantLicenseKeysProperties,
|
|
81
|
+
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
82
|
+
BenefitGrantLicenseKeysProperties$Outbound,
|
|
83
|
+
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
84
|
+
} from "./benefitgrantlicensekeysproperties.js";
|
|
85
|
+
import {
|
|
86
|
+
BenefitLicenseKeysInput,
|
|
87
|
+
BenefitLicenseKeysInput$inboundSchema,
|
|
88
|
+
BenefitLicenseKeysInput$Outbound,
|
|
89
|
+
BenefitLicenseKeysInput$outboundSchema,
|
|
90
|
+
} from "./benefitlicensekeysinput.js";
|
|
91
|
+
|
|
92
|
+
export type BenefitGrantWebhookProperties =
|
|
93
|
+
| BenefitGrantCustomProperties
|
|
94
|
+
| BenefitGrantArticlesProperties
|
|
95
|
+
| BenefitGrantDownloadablesProperties
|
|
96
|
+
| BenefitGrantAdsProperties
|
|
97
|
+
| BenefitGrantLicenseKeysProperties
|
|
98
|
+
| BenefitGrantDiscordProperties
|
|
99
|
+
| BenefitGrantGitHubRepositoryProperties;
|
|
100
|
+
|
|
101
|
+
export type BenefitGrantWebhookBenefit =
|
|
102
|
+
| BenefitArticles
|
|
103
|
+
| BenefitAds
|
|
104
|
+
| BenefitDiscordInput
|
|
105
|
+
| BenefitGitHubRepository
|
|
106
|
+
| BenefitDownloadables
|
|
107
|
+
| BenefitLicenseKeysInput
|
|
108
|
+
| BenefitCustom;
|
|
109
|
+
|
|
110
|
+
export type PreviousProperties =
|
|
111
|
+
| BenefitGrantCustomProperties
|
|
112
|
+
| BenefitGrantArticlesProperties
|
|
113
|
+
| BenefitGrantDownloadablesProperties
|
|
114
|
+
| BenefitGrantAdsProperties
|
|
115
|
+
| BenefitGrantLicenseKeysProperties
|
|
116
|
+
| BenefitGrantDiscordProperties
|
|
117
|
+
| BenefitGrantGitHubRepositoryProperties;
|
|
118
|
+
|
|
119
|
+
export type BenefitGrantWebhook = {
|
|
120
|
+
/**
|
|
121
|
+
* Creation timestamp of the object.
|
|
122
|
+
*/
|
|
123
|
+
createdAt: Date;
|
|
124
|
+
/**
|
|
125
|
+
* Last modification timestamp of the object.
|
|
126
|
+
*/
|
|
127
|
+
modifiedAt: Date | null;
|
|
128
|
+
/**
|
|
129
|
+
* The ID of the grant.
|
|
130
|
+
*/
|
|
131
|
+
id: string;
|
|
132
|
+
/**
|
|
133
|
+
* The timestamp when the benefit was granted. If `None`, the benefit is not granted.
|
|
134
|
+
*/
|
|
135
|
+
grantedAt?: Date | null | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Whether the benefit is granted.
|
|
138
|
+
*/
|
|
139
|
+
isGranted: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* The timestamp when the benefit was revoked. If `None`, the benefit is not revoked.
|
|
142
|
+
*/
|
|
143
|
+
revokedAt?: Date | null | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Whether the benefit is revoked.
|
|
146
|
+
*/
|
|
147
|
+
isRevoked: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* The ID of the subscription that granted this benefit.
|
|
150
|
+
*/
|
|
151
|
+
subscriptionId: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* The ID of the order that granted this benefit.
|
|
154
|
+
*/
|
|
155
|
+
orderId: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* The ID of the user concerned by this grant.
|
|
158
|
+
*/
|
|
159
|
+
userId: string;
|
|
160
|
+
/**
|
|
161
|
+
* The ID of the benefit concerned by this grant.
|
|
162
|
+
*/
|
|
163
|
+
benefitId: string;
|
|
164
|
+
properties:
|
|
165
|
+
| BenefitGrantCustomProperties
|
|
166
|
+
| BenefitGrantArticlesProperties
|
|
167
|
+
| BenefitGrantDownloadablesProperties
|
|
168
|
+
| BenefitGrantAdsProperties
|
|
169
|
+
| BenefitGrantLicenseKeysProperties
|
|
170
|
+
| BenefitGrantDiscordProperties
|
|
171
|
+
| BenefitGrantGitHubRepositoryProperties;
|
|
172
|
+
benefit:
|
|
173
|
+
| BenefitArticles
|
|
174
|
+
| BenefitAds
|
|
175
|
+
| BenefitDiscordInput
|
|
176
|
+
| BenefitGitHubRepository
|
|
177
|
+
| BenefitDownloadables
|
|
178
|
+
| BenefitLicenseKeysInput
|
|
179
|
+
| BenefitCustom;
|
|
180
|
+
previousProperties?:
|
|
181
|
+
| BenefitGrantCustomProperties
|
|
182
|
+
| BenefitGrantArticlesProperties
|
|
183
|
+
| BenefitGrantDownloadablesProperties
|
|
184
|
+
| BenefitGrantAdsProperties
|
|
185
|
+
| BenefitGrantLicenseKeysProperties
|
|
186
|
+
| BenefitGrantDiscordProperties
|
|
187
|
+
| BenefitGrantGitHubRepositoryProperties
|
|
188
|
+
| null
|
|
189
|
+
| undefined;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
/** @internal */
|
|
193
|
+
export const BenefitGrantWebhookProperties$inboundSchema: z.ZodType<
|
|
194
|
+
BenefitGrantWebhookProperties,
|
|
195
|
+
z.ZodTypeDef,
|
|
196
|
+
unknown
|
|
197
|
+
> = z.union([
|
|
198
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
199
|
+
BenefitGrantArticlesProperties$inboundSchema,
|
|
200
|
+
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
201
|
+
BenefitGrantAdsProperties$inboundSchema,
|
|
202
|
+
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
203
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
204
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
205
|
+
]);
|
|
206
|
+
|
|
207
|
+
/** @internal */
|
|
208
|
+
export type BenefitGrantWebhookProperties$Outbound =
|
|
209
|
+
| BenefitGrantCustomProperties$Outbound
|
|
210
|
+
| BenefitGrantArticlesProperties$Outbound
|
|
211
|
+
| BenefitGrantDownloadablesProperties$Outbound
|
|
212
|
+
| BenefitGrantAdsProperties$Outbound
|
|
213
|
+
| BenefitGrantLicenseKeysProperties$Outbound
|
|
214
|
+
| BenefitGrantDiscordProperties$Outbound
|
|
215
|
+
| BenefitGrantGitHubRepositoryProperties$Outbound;
|
|
216
|
+
|
|
217
|
+
/** @internal */
|
|
218
|
+
export const BenefitGrantWebhookProperties$outboundSchema: z.ZodType<
|
|
219
|
+
BenefitGrantWebhookProperties$Outbound,
|
|
220
|
+
z.ZodTypeDef,
|
|
221
|
+
BenefitGrantWebhookProperties
|
|
222
|
+
> = z.union([
|
|
223
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
224
|
+
BenefitGrantArticlesProperties$outboundSchema,
|
|
225
|
+
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
226
|
+
BenefitGrantAdsProperties$outboundSchema,
|
|
227
|
+
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
228
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
229
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
230
|
+
]);
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
235
|
+
*/
|
|
236
|
+
export namespace BenefitGrantWebhookProperties$ {
|
|
237
|
+
/** @deprecated use `BenefitGrantWebhookProperties$inboundSchema` instead. */
|
|
238
|
+
export const inboundSchema = BenefitGrantWebhookProperties$inboundSchema;
|
|
239
|
+
/** @deprecated use `BenefitGrantWebhookProperties$outboundSchema` instead. */
|
|
240
|
+
export const outboundSchema = BenefitGrantWebhookProperties$outboundSchema;
|
|
241
|
+
/** @deprecated use `BenefitGrantWebhookProperties$Outbound` instead. */
|
|
242
|
+
export type Outbound = BenefitGrantWebhookProperties$Outbound;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/** @internal */
|
|
246
|
+
export const BenefitGrantWebhookBenefit$inboundSchema: z.ZodType<
|
|
247
|
+
BenefitGrantWebhookBenefit,
|
|
248
|
+
z.ZodTypeDef,
|
|
249
|
+
unknown
|
|
250
|
+
> = z.union([
|
|
251
|
+
BenefitArticles$inboundSchema,
|
|
252
|
+
BenefitAds$inboundSchema,
|
|
253
|
+
BenefitDiscordInput$inboundSchema,
|
|
254
|
+
BenefitGitHubRepository$inboundSchema,
|
|
255
|
+
BenefitDownloadables$inboundSchema,
|
|
256
|
+
BenefitLicenseKeysInput$inboundSchema,
|
|
257
|
+
BenefitCustom$inboundSchema,
|
|
258
|
+
]);
|
|
259
|
+
|
|
260
|
+
/** @internal */
|
|
261
|
+
export type BenefitGrantWebhookBenefit$Outbound =
|
|
262
|
+
| BenefitArticles$Outbound
|
|
263
|
+
| BenefitAds$Outbound
|
|
264
|
+
| BenefitDiscordInput$Outbound
|
|
265
|
+
| BenefitGitHubRepository$Outbound
|
|
266
|
+
| BenefitDownloadables$Outbound
|
|
267
|
+
| BenefitLicenseKeysInput$Outbound
|
|
268
|
+
| BenefitCustom$Outbound;
|
|
269
|
+
|
|
270
|
+
/** @internal */
|
|
271
|
+
export const BenefitGrantWebhookBenefit$outboundSchema: z.ZodType<
|
|
272
|
+
BenefitGrantWebhookBenefit$Outbound,
|
|
273
|
+
z.ZodTypeDef,
|
|
274
|
+
BenefitGrantWebhookBenefit
|
|
275
|
+
> = z.union([
|
|
276
|
+
BenefitArticles$outboundSchema,
|
|
277
|
+
BenefitAds$outboundSchema,
|
|
278
|
+
BenefitDiscordInput$outboundSchema,
|
|
279
|
+
BenefitGitHubRepository$outboundSchema,
|
|
280
|
+
BenefitDownloadables$outboundSchema,
|
|
281
|
+
BenefitLicenseKeysInput$outboundSchema,
|
|
282
|
+
BenefitCustom$outboundSchema,
|
|
283
|
+
]);
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @internal
|
|
287
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
288
|
+
*/
|
|
289
|
+
export namespace BenefitGrantWebhookBenefit$ {
|
|
290
|
+
/** @deprecated use `BenefitGrantWebhookBenefit$inboundSchema` instead. */
|
|
291
|
+
export const inboundSchema = BenefitGrantWebhookBenefit$inboundSchema;
|
|
292
|
+
/** @deprecated use `BenefitGrantWebhookBenefit$outboundSchema` instead. */
|
|
293
|
+
export const outboundSchema = BenefitGrantWebhookBenefit$outboundSchema;
|
|
294
|
+
/** @deprecated use `BenefitGrantWebhookBenefit$Outbound` instead. */
|
|
295
|
+
export type Outbound = BenefitGrantWebhookBenefit$Outbound;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/** @internal */
|
|
299
|
+
export const PreviousProperties$inboundSchema: z.ZodType<
|
|
300
|
+
PreviousProperties,
|
|
301
|
+
z.ZodTypeDef,
|
|
302
|
+
unknown
|
|
303
|
+
> = z.union([
|
|
304
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
305
|
+
BenefitGrantArticlesProperties$inboundSchema,
|
|
306
|
+
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
307
|
+
BenefitGrantAdsProperties$inboundSchema,
|
|
308
|
+
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
309
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
310
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
311
|
+
]);
|
|
312
|
+
|
|
313
|
+
/** @internal */
|
|
314
|
+
export type PreviousProperties$Outbound =
|
|
315
|
+
| BenefitGrantCustomProperties$Outbound
|
|
316
|
+
| BenefitGrantArticlesProperties$Outbound
|
|
317
|
+
| BenefitGrantDownloadablesProperties$Outbound
|
|
318
|
+
| BenefitGrantAdsProperties$Outbound
|
|
319
|
+
| BenefitGrantLicenseKeysProperties$Outbound
|
|
320
|
+
| BenefitGrantDiscordProperties$Outbound
|
|
321
|
+
| BenefitGrantGitHubRepositoryProperties$Outbound;
|
|
322
|
+
|
|
323
|
+
/** @internal */
|
|
324
|
+
export const PreviousProperties$outboundSchema: z.ZodType<
|
|
325
|
+
PreviousProperties$Outbound,
|
|
326
|
+
z.ZodTypeDef,
|
|
327
|
+
PreviousProperties
|
|
328
|
+
> = z.union([
|
|
329
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
330
|
+
BenefitGrantArticlesProperties$outboundSchema,
|
|
331
|
+
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
332
|
+
BenefitGrantAdsProperties$outboundSchema,
|
|
333
|
+
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
334
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
335
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
336
|
+
]);
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @internal
|
|
340
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
341
|
+
*/
|
|
342
|
+
export namespace PreviousProperties$ {
|
|
343
|
+
/** @deprecated use `PreviousProperties$inboundSchema` instead. */
|
|
344
|
+
export const inboundSchema = PreviousProperties$inboundSchema;
|
|
345
|
+
/** @deprecated use `PreviousProperties$outboundSchema` instead. */
|
|
346
|
+
export const outboundSchema = PreviousProperties$outboundSchema;
|
|
347
|
+
/** @deprecated use `PreviousProperties$Outbound` instead. */
|
|
348
|
+
export type Outbound = PreviousProperties$Outbound;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/** @internal */
|
|
352
|
+
export const BenefitGrantWebhook$inboundSchema: z.ZodType<
|
|
353
|
+
BenefitGrantWebhook,
|
|
354
|
+
z.ZodTypeDef,
|
|
355
|
+
unknown
|
|
356
|
+
> = z.object({
|
|
357
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
358
|
+
modified_at: z.nullable(
|
|
359
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
360
|
+
),
|
|
361
|
+
id: z.string(),
|
|
362
|
+
granted_at: z.nullable(
|
|
363
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
364
|
+
).optional(),
|
|
365
|
+
is_granted: z.boolean(),
|
|
366
|
+
revoked_at: z.nullable(
|
|
367
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
368
|
+
).optional(),
|
|
369
|
+
is_revoked: z.boolean(),
|
|
370
|
+
subscription_id: z.nullable(z.string()),
|
|
371
|
+
order_id: z.nullable(z.string()),
|
|
372
|
+
user_id: z.string(),
|
|
373
|
+
benefit_id: z.string(),
|
|
374
|
+
properties: z.union([
|
|
375
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
376
|
+
BenefitGrantArticlesProperties$inboundSchema,
|
|
377
|
+
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
378
|
+
BenefitGrantAdsProperties$inboundSchema,
|
|
379
|
+
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
380
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
381
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
382
|
+
]),
|
|
383
|
+
benefit: z.union([
|
|
384
|
+
BenefitArticles$inboundSchema,
|
|
385
|
+
BenefitAds$inboundSchema,
|
|
386
|
+
BenefitDiscordInput$inboundSchema,
|
|
387
|
+
BenefitGitHubRepository$inboundSchema,
|
|
388
|
+
BenefitDownloadables$inboundSchema,
|
|
389
|
+
BenefitLicenseKeysInput$inboundSchema,
|
|
390
|
+
BenefitCustom$inboundSchema,
|
|
391
|
+
]),
|
|
392
|
+
previous_properties: z.nullable(
|
|
393
|
+
z.union([
|
|
394
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
395
|
+
BenefitGrantArticlesProperties$inboundSchema,
|
|
396
|
+
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
397
|
+
BenefitGrantAdsProperties$inboundSchema,
|
|
398
|
+
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
399
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
400
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
401
|
+
]),
|
|
402
|
+
).optional(),
|
|
403
|
+
}).transform((v) => {
|
|
404
|
+
return remap$(v, {
|
|
405
|
+
"created_at": "createdAt",
|
|
406
|
+
"modified_at": "modifiedAt",
|
|
407
|
+
"granted_at": "grantedAt",
|
|
408
|
+
"is_granted": "isGranted",
|
|
409
|
+
"revoked_at": "revokedAt",
|
|
410
|
+
"is_revoked": "isRevoked",
|
|
411
|
+
"subscription_id": "subscriptionId",
|
|
412
|
+
"order_id": "orderId",
|
|
413
|
+
"user_id": "userId",
|
|
414
|
+
"benefit_id": "benefitId",
|
|
415
|
+
"previous_properties": "previousProperties",
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
/** @internal */
|
|
420
|
+
export type BenefitGrantWebhook$Outbound = {
|
|
421
|
+
created_at: string;
|
|
422
|
+
modified_at: string | null;
|
|
423
|
+
id: string;
|
|
424
|
+
granted_at?: string | null | undefined;
|
|
425
|
+
is_granted: boolean;
|
|
426
|
+
revoked_at?: string | null | undefined;
|
|
427
|
+
is_revoked: boolean;
|
|
428
|
+
subscription_id: string | null;
|
|
429
|
+
order_id: string | null;
|
|
430
|
+
user_id: string;
|
|
431
|
+
benefit_id: string;
|
|
432
|
+
properties:
|
|
433
|
+
| BenefitGrantCustomProperties$Outbound
|
|
434
|
+
| BenefitGrantArticlesProperties$Outbound
|
|
435
|
+
| BenefitGrantDownloadablesProperties$Outbound
|
|
436
|
+
| BenefitGrantAdsProperties$Outbound
|
|
437
|
+
| BenefitGrantLicenseKeysProperties$Outbound
|
|
438
|
+
| BenefitGrantDiscordProperties$Outbound
|
|
439
|
+
| BenefitGrantGitHubRepositoryProperties$Outbound;
|
|
440
|
+
benefit:
|
|
441
|
+
| BenefitArticles$Outbound
|
|
442
|
+
| BenefitAds$Outbound
|
|
443
|
+
| BenefitDiscordInput$Outbound
|
|
444
|
+
| BenefitGitHubRepository$Outbound
|
|
445
|
+
| BenefitDownloadables$Outbound
|
|
446
|
+
| BenefitLicenseKeysInput$Outbound
|
|
447
|
+
| BenefitCustom$Outbound;
|
|
448
|
+
previous_properties?:
|
|
449
|
+
| BenefitGrantCustomProperties$Outbound
|
|
450
|
+
| BenefitGrantArticlesProperties$Outbound
|
|
451
|
+
| BenefitGrantDownloadablesProperties$Outbound
|
|
452
|
+
| BenefitGrantAdsProperties$Outbound
|
|
453
|
+
| BenefitGrantLicenseKeysProperties$Outbound
|
|
454
|
+
| BenefitGrantDiscordProperties$Outbound
|
|
455
|
+
| BenefitGrantGitHubRepositoryProperties$Outbound
|
|
456
|
+
| null
|
|
457
|
+
| undefined;
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
/** @internal */
|
|
461
|
+
export const BenefitGrantWebhook$outboundSchema: z.ZodType<
|
|
462
|
+
BenefitGrantWebhook$Outbound,
|
|
463
|
+
z.ZodTypeDef,
|
|
464
|
+
BenefitGrantWebhook
|
|
465
|
+
> = z.object({
|
|
466
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
467
|
+
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
468
|
+
id: z.string(),
|
|
469
|
+
grantedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
470
|
+
isGranted: z.boolean(),
|
|
471
|
+
revokedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
472
|
+
isRevoked: z.boolean(),
|
|
473
|
+
subscriptionId: z.nullable(z.string()),
|
|
474
|
+
orderId: z.nullable(z.string()),
|
|
475
|
+
userId: z.string(),
|
|
476
|
+
benefitId: z.string(),
|
|
477
|
+
properties: z.union([
|
|
478
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
479
|
+
BenefitGrantArticlesProperties$outboundSchema,
|
|
480
|
+
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
481
|
+
BenefitGrantAdsProperties$outboundSchema,
|
|
482
|
+
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
483
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
484
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
485
|
+
]),
|
|
486
|
+
benefit: z.union([
|
|
487
|
+
BenefitArticles$outboundSchema,
|
|
488
|
+
BenefitAds$outboundSchema,
|
|
489
|
+
BenefitDiscordInput$outboundSchema,
|
|
490
|
+
BenefitGitHubRepository$outboundSchema,
|
|
491
|
+
BenefitDownloadables$outboundSchema,
|
|
492
|
+
BenefitLicenseKeysInput$outboundSchema,
|
|
493
|
+
BenefitCustom$outboundSchema,
|
|
494
|
+
]),
|
|
495
|
+
previousProperties: z.nullable(
|
|
496
|
+
z.union([
|
|
497
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
498
|
+
BenefitGrantArticlesProperties$outboundSchema,
|
|
499
|
+
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
500
|
+
BenefitGrantAdsProperties$outboundSchema,
|
|
501
|
+
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
502
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
503
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
504
|
+
]),
|
|
505
|
+
).optional(),
|
|
506
|
+
}).transform((v) => {
|
|
507
|
+
return remap$(v, {
|
|
508
|
+
createdAt: "created_at",
|
|
509
|
+
modifiedAt: "modified_at",
|
|
510
|
+
grantedAt: "granted_at",
|
|
511
|
+
isGranted: "is_granted",
|
|
512
|
+
revokedAt: "revoked_at",
|
|
513
|
+
isRevoked: "is_revoked",
|
|
514
|
+
subscriptionId: "subscription_id",
|
|
515
|
+
orderId: "order_id",
|
|
516
|
+
userId: "user_id",
|
|
517
|
+
benefitId: "benefit_id",
|
|
518
|
+
previousProperties: "previous_properties",
|
|
519
|
+
});
|
|
520
|
+
});
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* @internal
|
|
524
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
525
|
+
*/
|
|
526
|
+
export namespace BenefitGrantWebhook$ {
|
|
527
|
+
/** @deprecated use `BenefitGrantWebhook$inboundSchema` instead. */
|
|
528
|
+
export const inboundSchema = BenefitGrantWebhook$inboundSchema;
|
|
529
|
+
/** @deprecated use `BenefitGrantWebhook$outboundSchema` instead. */
|
|
530
|
+
export const outboundSchema = BenefitGrantWebhook$outboundSchema;
|
|
531
|
+
/** @deprecated use `BenefitGrantWebhook$Outbound` instead. */
|
|
532
|
+
export type Outbound = BenefitGrantWebhook$Outbound;
|
|
533
|
+
}
|
|
@@ -18,6 +18,10 @@ export type CheckoutCreate = {
|
|
|
18
18
|
* If you already know the email of your customer, you can set it. It'll be pre-filled on the checkout page.
|
|
19
19
|
*/
|
|
20
20
|
customerEmail?: string | null | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* ID of the subscription to update. If not provided, a new subscription will be created.
|
|
23
|
+
*/
|
|
24
|
+
subscriptionId?: string | null | undefined;
|
|
21
25
|
};
|
|
22
26
|
|
|
23
27
|
/** @internal */
|
|
@@ -29,11 +33,13 @@ export const CheckoutCreate$inboundSchema: z.ZodType<
|
|
|
29
33
|
product_price_id: z.string(),
|
|
30
34
|
success_url: z.string(),
|
|
31
35
|
customer_email: z.nullable(z.string()).optional(),
|
|
36
|
+
subscription_id: z.nullable(z.string()).optional(),
|
|
32
37
|
}).transform((v) => {
|
|
33
38
|
return remap$(v, {
|
|
34
39
|
"product_price_id": "productPriceId",
|
|
35
40
|
"success_url": "successUrl",
|
|
36
41
|
"customer_email": "customerEmail",
|
|
42
|
+
"subscription_id": "subscriptionId",
|
|
37
43
|
});
|
|
38
44
|
});
|
|
39
45
|
|
|
@@ -42,6 +48,7 @@ export type CheckoutCreate$Outbound = {
|
|
|
42
48
|
product_price_id: string;
|
|
43
49
|
success_url: string;
|
|
44
50
|
customer_email?: string | null | undefined;
|
|
51
|
+
subscription_id?: string | null | undefined;
|
|
45
52
|
};
|
|
46
53
|
|
|
47
54
|
/** @internal */
|
|
@@ -53,11 +60,13 @@ export const CheckoutCreate$outboundSchema: z.ZodType<
|
|
|
53
60
|
productPriceId: z.string(),
|
|
54
61
|
successUrl: z.string(),
|
|
55
62
|
customerEmail: z.nullable(z.string()).optional(),
|
|
63
|
+
subscriptionId: z.nullable(z.string()).optional(),
|
|
56
64
|
}).transform((v) => {
|
|
57
65
|
return remap$(v, {
|
|
58
66
|
productPriceId: "product_price_id",
|
|
59
67
|
successUrl: "success_url",
|
|
60
68
|
customerEmail: "customer_email",
|
|
69
|
+
subscriptionId: "subscription_id",
|
|
61
70
|
});
|
|
62
71
|
});
|
|
63
72
|
|
|
@@ -57,9 +57,16 @@ export * from "./benefitgithubrepositoryupdate.js";
|
|
|
57
57
|
export * from "./benefitgrant.js";
|
|
58
58
|
export * from "./benefitgrantads.js";
|
|
59
59
|
export * from "./benefitgrantadsproperties.js";
|
|
60
|
+
export * from "./benefitgrantadssubscriberproperties.js";
|
|
61
|
+
export * from "./benefitgrantarticlesproperties.js";
|
|
62
|
+
export * from "./benefitgrantcustomproperties.js";
|
|
63
|
+
export * from "./benefitgrantdiscordproperties.js";
|
|
64
|
+
export * from "./benefitgrantdownloadablesproperties.js";
|
|
65
|
+
export * from "./benefitgrantgithubrepositoryproperties.js";
|
|
60
66
|
export * from "./benefitgrantlicensekeys.js";
|
|
61
67
|
export * from "./benefitgrantlicensekeysproperties.js";
|
|
62
|
-
export * from "./
|
|
68
|
+
export * from "./benefitgrantsubscriber.js";
|
|
69
|
+
export * from "./benefitgrantwebhook.js";
|
|
63
70
|
export * from "./benefitlicensekeyactivationproperties.js";
|
|
64
71
|
export * from "./benefitlicensekeyexpirationproperties.js";
|
|
65
72
|
export * from "./benefitlicensekeyscreate.js";
|
|
@@ -71,7 +78,6 @@ export * from "./benefitlicensekeyssubscriber.js";
|
|
|
71
78
|
export * from "./benefitlicensekeyssubscriberproperties.js";
|
|
72
79
|
export * from "./benefitlicensekeysupdate.js";
|
|
73
80
|
export * from "./benefittype.js";
|
|
74
|
-
export * from "./bodysubscriptionsimport.js";
|
|
75
81
|
export * from "./bylineprofile.js";
|
|
76
82
|
export * from "./checkout.js";
|
|
77
83
|
export * from "./checkoutcreate.js";
|
|
@@ -169,10 +175,14 @@ export * from "./productpriceonetimecustom.js";
|
|
|
169
175
|
export * from "./productpriceonetimecustomcreate.js";
|
|
170
176
|
export * from "./productpriceonetimefixed.js";
|
|
171
177
|
export * from "./productpriceonetimefixedcreate.js";
|
|
178
|
+
export * from "./productpriceonetimefree.js";
|
|
179
|
+
export * from "./productpriceonetimefreecreate.js";
|
|
172
180
|
export * from "./productpriceoutput.js";
|
|
173
|
-
export * from "./productpricerecurringcreate.js";
|
|
174
181
|
export * from "./productpricerecurringcustom.js";
|
|
175
182
|
export * from "./productpricerecurringfixed.js";
|
|
183
|
+
export * from "./productpricerecurringfixedcreate.js";
|
|
184
|
+
export * from "./productpricerecurringfree.js";
|
|
185
|
+
export * from "./productpricerecurringfreecreate.js";
|
|
176
186
|
export * from "./productpricerecurringinput.js";
|
|
177
187
|
export * from "./productpricerecurringoutput.js";
|
|
178
188
|
export * from "./productpricetype.js";
|
|
@@ -194,14 +204,11 @@ export * from "./s3fileuploadmultipart.js";
|
|
|
194
204
|
export * from "./s3fileuploadpart.js";
|
|
195
205
|
export * from "./security.js";
|
|
196
206
|
export * from "./state.js";
|
|
197
|
-
export * from "./subscriptioncreateemail.js";
|
|
198
207
|
export * from "./subscriptioninput.js";
|
|
199
208
|
export * from "./subscriptionoutput.js";
|
|
200
209
|
export * from "./subscriptionrecurringinterval.js";
|
|
201
|
-
export * from "./subscriptionsimported.js";
|
|
202
210
|
export * from "./subscriptionsortproperty.js";
|
|
203
211
|
export * from "./subscriptionstatus.js";
|
|
204
|
-
export * from "./subscriptiontiertype.js";
|
|
205
212
|
export * from "./subscriptionuser.js";
|
|
206
213
|
export * from "./subtype.js";
|
|
207
214
|
export * from "./tokenresponse.js";
|
|
@@ -211,7 +218,6 @@ export * from "./useradvertisementcampaignenable.js";
|
|
|
211
218
|
export * from "./useradvertisementcampaignupdate.js";
|
|
212
219
|
export * from "./useradvertisementsortproperty.js";
|
|
213
220
|
export * from "./userbenefitsortproperty.js";
|
|
214
|
-
export * from "./userfreesubscriptioncreate.js";
|
|
215
221
|
export * from "./userinfoorganization.js";
|
|
216
222
|
export * from "./userinfouser.js";
|
|
217
223
|
export * from "./userorder.js";
|
|
@@ -226,6 +232,9 @@ export * from "./usersubscriptionupdate.js";
|
|
|
226
232
|
export * from "./validatedlicensekey.js";
|
|
227
233
|
export * from "./validationerror.js";
|
|
228
234
|
export * from "./webhookbenefitcreatedpayload.js";
|
|
235
|
+
export * from "./webhookbenefitgrantcreatedpayload.js";
|
|
236
|
+
export * from "./webhookbenefitgrantrevokedpayload.js";
|
|
237
|
+
export * from "./webhookbenefitgrantupdatedpayload.js";
|
|
229
238
|
export * from "./webhookbenefitupdatedpayload.js";
|
|
230
239
|
export * from "./webhookdonationcreatedpayload.js";
|
|
231
240
|
export * from "./webhookordercreatedpayload.js";
|