@stigg/typescript 0.1.0-beta.4 → 0.1.0-beta.40
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/CHANGELOG.md +306 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +4 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -1
- package/client.d.ts.map +1 -1
- package/client.js +15 -4
- package/client.js.map +1 -1
- package/client.mjs +15 -4
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +143 -33
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +143 -33
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +110 -17
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +110 -17
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +92 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +92 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -8
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/addons.d.mts.map +1 -1
- package/resources/v1/addons.d.ts.map +1 -1
- package/resources/v1/addons.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +80 -20
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +80 -20
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/consumption.d.mts +196 -0
- package/resources/v1/credits/consumption.d.mts.map +1 -0
- package/resources/v1/credits/consumption.d.ts +196 -0
- package/resources/v1/credits/consumption.d.ts.map +1 -0
- package/resources/v1/credits/consumption.js +46 -0
- package/resources/v1/credits/consumption.js.map +1 -0
- package/resources/v1/credits/consumption.mjs +42 -0
- package/resources/v1/credits/consumption.mjs.map +1 -0
- package/resources/v1/credits/credits.d.mts +118 -25
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +118 -25
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +40 -5
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +40 -5
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +96 -23
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +96 -23
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +60 -23
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +60 -23
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +3 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +3 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +3 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +1 -0
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/credits.d.mts.map +1 -1
- package/resources/v1/credits.d.ts.map +1 -1
- package/resources/v1/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +170 -53
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +170 -53
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -19
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +67 -12
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +67 -12
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +32 -8
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +32 -8
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/customers.d.mts.map +1 -1
- package/resources/v1/customers.d.ts.map +1 -1
- package/resources/v1/customers.mjs.map +1 -1
- package/resources/v1/events/beta/beta.d.mts +10 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +10 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +17 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +12 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +160 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +160 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +32 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +28 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +3 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +3 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +9 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +4 -0
- package/resources/v1/events/beta/index.mjs.map +1 -0
- package/resources/v1/events/beta.d.mts +2 -0
- package/resources/v1/events/beta.d.mts.map +1 -0
- package/resources/v1/events/beta.d.ts +2 -0
- package/resources/v1/events/beta.d.ts.map +1 -0
- package/resources/v1/events/beta.js +6 -0
- package/resources/v1/events/beta.js.map +1 -0
- package/resources/v1/events/beta.mjs +3 -0
- package/resources/v1/events/beta.mjs.map +1 -0
- package/resources/v1/events/data-export/data-export.d.mts +211 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export/data-export.d.ts +211 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export/data-export.js +71 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -0
- package/resources/v1/events/data-export/data-export.mjs +66 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -0
- package/resources/v1/events/data-export/destinations.d.mts +321 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +321 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +65 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +61 -0
- package/resources/v1/events/data-export/destinations.mjs.map +1 -0
- package/resources/v1/events/data-export/index.d.mts +3 -0
- package/resources/v1/events/data-export/index.d.mts.map +1 -0
- package/resources/v1/events/data-export/index.d.ts +3 -0
- package/resources/v1/events/data-export/index.d.ts.map +1 -0
- package/resources/v1/events/data-export/index.js +9 -0
- package/resources/v1/events/data-export/index.js.map +1 -0
- package/resources/v1/events/data-export/index.mjs +4 -0
- package/resources/v1/events/data-export/index.mjs.map +1 -0
- package/resources/v1/events/data-export.d.mts +2 -0
- package/resources/v1/events/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export.d.ts +2 -0
- package/resources/v1/events/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export.js +6 -0
- package/resources/v1/events/data-export.js.map +1 -0
- package/resources/v1/events/data-export.mjs +3 -0
- package/resources/v1/events/data-export.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +85 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +85 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +43 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +38 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +4 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +4 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +11 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +5 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events.d.mts +1 -65
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +1 -65
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +2 -15
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +1 -13
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +108 -30
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +108 -30
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +8 -8
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +8 -8
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +6 -6
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +92 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +92 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -8
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +156 -34
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +156 -34
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +127 -20
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +127 -20
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/plans.d.mts.map +1 -1
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +97 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -4
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +15 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +252 -76
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +252 -76
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -4
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +61 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +61 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +16 -16
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +16 -16
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +249 -0
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1-beta/customers/assignments.d.ts +249 -0
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1-beta/customers/assignments.js +84 -0
- package/resources/v1-beta/customers/assignments.js.map +1 -0
- package/resources/v1-beta/customers/assignments.mjs +80 -0
- package/resources/v1-beta/customers/assignments.mjs.map +1 -0
- package/resources/v1-beta/customers/customers.d.mts +18 -0
- package/resources/v1-beta/customers/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers/customers.d.ts +18 -0
- package/resources/v1-beta/customers/customers.d.ts.map +1 -0
- package/resources/v1-beta/customers/customers.js +25 -0
- package/resources/v1-beta/customers/customers.js.map +1 -0
- package/resources/v1-beta/customers/customers.mjs +20 -0
- package/resources/v1-beta/customers/customers.mjs.map +1 -0
- package/resources/v1-beta/customers/entities.d.mts +351 -0
- package/resources/v1-beta/customers/entities.d.mts.map +1 -0
- package/resources/v1-beta/customers/entities.d.ts +351 -0
- package/resources/v1-beta/customers/entities.d.ts.map +1 -0
- package/resources/v1-beta/customers/entities.js +150 -0
- package/resources/v1-beta/customers/entities.js.map +1 -0
- package/resources/v1-beta/customers/entities.mjs +146 -0
- package/resources/v1-beta/customers/entities.mjs.map +1 -0
- package/resources/v1-beta/customers/entitlements.d.mts +261 -0
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/v1-beta/customers/entitlements.d.ts +261 -0
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1-beta/customers/entitlements.js +36 -0
- package/resources/v1-beta/customers/entitlements.js.map +1 -0
- package/resources/v1-beta/customers/entitlements.mjs +32 -0
- package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1-beta/customers/index.d.mts +5 -0
- package/resources/v1-beta/customers/index.d.mts.map +1 -0
- package/resources/v1-beta/customers/index.d.ts +5 -0
- package/resources/v1-beta/customers/index.d.ts.map +1 -0
- package/resources/v1-beta/customers/index.js +13 -0
- package/resources/v1-beta/customers/index.js.map +1 -0
- package/resources/v1-beta/customers/index.mjs +6 -0
- package/resources/v1-beta/customers/index.mjs.map +1 -0
- package/resources/v1-beta/customers.d.mts +2 -0
- package/resources/v1-beta/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers.d.ts +2 -0
- package/resources/v1-beta/customers.d.ts.map +1 -0
- package/resources/v1-beta/customers.js +6 -0
- package/resources/v1-beta/customers.js.map +1 -0
- package/resources/v1-beta/customers.mjs +3 -0
- package/resources/v1-beta/customers.mjs.map +1 -0
- package/resources/v1-beta/entity-types.d.mts +165 -0
- package/resources/v1-beta/entity-types.d.mts.map +1 -0
- package/resources/v1-beta/entity-types.d.ts +165 -0
- package/resources/v1-beta/entity-types.d.ts.map +1 -0
- package/resources/v1-beta/entity-types.js +75 -0
- package/resources/v1-beta/entity-types.js.map +1 -0
- package/resources/v1-beta/entity-types.mjs +71 -0
- package/resources/v1-beta/entity-types.mjs.map +1 -0
- package/resources/v1-beta/index.d.mts +4 -0
- package/resources/v1-beta/index.d.mts.map +1 -0
- package/resources/v1-beta/index.d.ts +4 -0
- package/resources/v1-beta/index.d.ts.map +1 -0
- package/resources/v1-beta/index.js +11 -0
- package/resources/v1-beta/index.js.map +1 -0
- package/resources/v1-beta/index.mjs +5 -0
- package/resources/v1-beta/index.mjs.map +1 -0
- package/resources/v1-beta/v1-beta.d.mts +14 -0
- package/resources/v1-beta/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta/v1-beta.d.ts +14 -0
- package/resources/v1-beta/v1-beta.d.ts.map +1 -0
- package/resources/v1-beta/v1-beta.js +21 -0
- package/resources/v1-beta/v1-beta.js.map +1 -0
- package/resources/v1-beta/v1-beta.mjs +16 -0
- package/resources/v1-beta/v1-beta.mjs.map +1 -0
- package/resources/v1-beta.d.mts +2 -0
- package/resources/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta.d.ts +2 -0
- package/resources/v1-beta.d.ts.map +1 -0
- package/resources/v1-beta.js +6 -0
- package/resources/v1-beta.js.map +1 -0
- package/resources/v1-beta.mjs +3 -0
- package/resources/v1-beta.mjs.map +1 -0
- package/resources/v1.d.mts.map +1 -1
- package/resources/v1.d.ts.map +1 -1
- package/resources/v1.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +17 -4
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +286 -39
- package/src/resources/v1/addons/entitlements.ts +158 -10
- package/src/resources/v1/addons/index.ts +5 -0
- package/src/resources/v1/coupons.ts +154 -23
- package/src/resources/v1/credits/consumption.ts +266 -0
- package/src/resources/v1/credits/credits.ts +185 -23
- package/src/resources/v1/credits/custom-currencies.ts +188 -30
- package/src/resources/v1/credits/grants.ts +102 -24
- package/src/resources/v1/credits/index.ts +11 -0
- package/src/resources/v1/customers/customers.ts +338 -62
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +140 -18
- package/src/resources/v1/customers/payment-method.ts +70 -10
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -11
- package/src/resources/v1/events/beta/beta.ts +19 -0
- package/src/resources/v1/events/beta/customers.ts +212 -0
- package/src/resources/v1/events/beta/index.ts +8 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/data-export/data-export.ts +316 -0
- package/src/resources/v1/events/data-export/destinations.ts +434 -0
- package/src/resources/v1/events/data-export/index.ts +20 -0
- package/src/resources/v1/events/data-export.ts +3 -0
- package/src/resources/v1/events/events.ts +132 -0
- package/src/resources/v1/events/index.ts +13 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +204 -34
- package/src/resources/v1/index.ts +20 -1
- package/src/resources/v1/plans/entitlements.ts +158 -10
- package/src/resources/v1/plans/index.ts +5 -0
- package/src/resources/v1/plans/plans.ts +314 -43
- package/src/resources/v1/products.ts +189 -27
- package/src/resources/v1/subscriptions/future-update.ts +68 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +423 -83
- package/src/resources/v1/subscriptions/usage.ts +61 -5
- package/src/resources/v1/usage.ts +97 -5
- package/src/resources/v1/v1.ts +40 -2
- package/src/resources/v1-beta/customers/assignments.ts +336 -0
- package/src/resources/v1-beta/customers/customers.ts +71 -0
- package/src/resources/v1-beta/customers/entities.ts +492 -0
- package/src/resources/v1-beta/customers/entitlements.ts +366 -0
- package/src/resources/v1-beta/customers/index.ts +26 -0
- package/src/resources/v1-beta/customers.ts +3 -0
- package/src/resources/v1-beta/entity-types.ts +225 -0
- package/src/resources/v1-beta/index.ts +12 -0
- package/src/resources/v1-beta/v1-beta.ts +35 -0
- package/src/resources/v1-beta.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
EntitlementCreateParams,
|
|
7
7
|
EntitlementCreateResponse,
|
|
8
8
|
EntitlementDeleteParams,
|
|
9
|
+
EntitlementListParams,
|
|
9
10
|
EntitlementListResponse,
|
|
10
11
|
EntitlementUpdateParams,
|
|
11
12
|
Entitlements,
|
|
@@ -13,6 +14,7 @@ import {
|
|
|
13
14
|
} from './entitlements';
|
|
14
15
|
import { APIPromise } from '../../../core/api-promise';
|
|
15
16
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
17
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
16
18
|
import { RequestOptions } from '../../../internal/request-options';
|
|
17
19
|
import { path } from '../../../internal/utils/path';
|
|
18
20
|
|
|
@@ -25,48 +27,123 @@ export class Plans extends APIResource {
|
|
|
25
27
|
/**
|
|
26
28
|
* Creates a new plan in draft status.
|
|
27
29
|
*/
|
|
28
|
-
create(
|
|
29
|
-
|
|
30
|
+
create(params: PlanCreateParams, options?: RequestOptions): APIPromise<Plan> {
|
|
31
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
32
|
+
return this._client.post('/api/v1/plans', {
|
|
33
|
+
body,
|
|
34
|
+
...options,
|
|
35
|
+
headers: buildHeaders([
|
|
36
|
+
{
|
|
37
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
38
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
39
|
+
},
|
|
40
|
+
options?.headers,
|
|
41
|
+
]),
|
|
42
|
+
});
|
|
30
43
|
}
|
|
31
44
|
|
|
32
45
|
/**
|
|
33
46
|
* Retrieves a plan by its unique identifier, including entitlements and pricing
|
|
34
47
|
* details.
|
|
35
48
|
*/
|
|
36
|
-
retrieve(
|
|
37
|
-
|
|
49
|
+
retrieve(
|
|
50
|
+
id: string,
|
|
51
|
+
params: PlanRetrieveParams | null | undefined = {},
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): APIPromise<Plan> {
|
|
54
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
55
|
+
return this._client.get(path`/api/v1/plans/${id}`, {
|
|
56
|
+
...options,
|
|
57
|
+
headers: buildHeaders([
|
|
58
|
+
{
|
|
59
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
60
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
61
|
+
},
|
|
62
|
+
options?.headers,
|
|
63
|
+
]),
|
|
64
|
+
});
|
|
38
65
|
}
|
|
39
66
|
|
|
40
67
|
/**
|
|
41
68
|
* Updates an existing plan's properties such as display name, description, and
|
|
42
69
|
* metadata.
|
|
43
70
|
*/
|
|
44
|
-
update(id: string,
|
|
45
|
-
|
|
71
|
+
update(id: string, params: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan> {
|
|
72
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
73
|
+
return this._client.patch(path`/api/v1/plans/${id}`, {
|
|
74
|
+
body,
|
|
75
|
+
...options,
|
|
76
|
+
headers: buildHeaders([
|
|
77
|
+
{
|
|
78
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
79
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
80
|
+
},
|
|
81
|
+
options?.headers,
|
|
82
|
+
]),
|
|
83
|
+
});
|
|
46
84
|
}
|
|
47
85
|
|
|
48
86
|
/**
|
|
49
87
|
* Retrieves a paginated list of plans in the environment.
|
|
50
88
|
*/
|
|
51
89
|
list(
|
|
52
|
-
|
|
90
|
+
params: PlanListParams | null | undefined = {},
|
|
53
91
|
options?: RequestOptions,
|
|
54
92
|
): PagePromise<PlanListResponsesMyCursorIDPage, PlanListResponse> {
|
|
55
|
-
|
|
93
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
94
|
+
return this._client.getAPIList('/api/v1/plans', MyCursorIDPage<PlanListResponse>, {
|
|
95
|
+
query,
|
|
96
|
+
...options,
|
|
97
|
+
headers: buildHeaders([
|
|
98
|
+
{
|
|
99
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
100
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
101
|
+
},
|
|
102
|
+
options?.headers,
|
|
103
|
+
]),
|
|
104
|
+
});
|
|
56
105
|
}
|
|
57
106
|
|
|
58
107
|
/**
|
|
59
108
|
* Archives a plan, preventing it from being used in new subscriptions.
|
|
60
109
|
*/
|
|
61
|
-
archive(
|
|
62
|
-
|
|
110
|
+
archive(
|
|
111
|
+
id: string,
|
|
112
|
+
params: PlanArchiveParams | null | undefined = {},
|
|
113
|
+
options?: RequestOptions,
|
|
114
|
+
): APIPromise<Plan> {
|
|
115
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
116
|
+
return this._client.post(path`/api/v1/plans/${id}/archive`, {
|
|
117
|
+
...options,
|
|
118
|
+
headers: buildHeaders([
|
|
119
|
+
{
|
|
120
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
121
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
122
|
+
},
|
|
123
|
+
options?.headers,
|
|
124
|
+
]),
|
|
125
|
+
});
|
|
63
126
|
}
|
|
64
127
|
|
|
65
128
|
/**
|
|
66
129
|
* Creates a draft version of an existing plan for modification before publishing.
|
|
67
130
|
*/
|
|
68
|
-
createDraft(
|
|
69
|
-
|
|
131
|
+
createDraft(
|
|
132
|
+
id: string,
|
|
133
|
+
params: PlanCreateDraftParams | null | undefined = {},
|
|
134
|
+
options?: RequestOptions,
|
|
135
|
+
): APIPromise<Plan> {
|
|
136
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
137
|
+
return this._client.post(path`/api/v1/plans/${id}/draft`, {
|
|
138
|
+
...options,
|
|
139
|
+
headers: buildHeaders([
|
|
140
|
+
{
|
|
141
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
142
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
143
|
+
},
|
|
144
|
+
options?.headers,
|
|
145
|
+
]),
|
|
146
|
+
});
|
|
70
147
|
}
|
|
71
148
|
|
|
72
149
|
/**
|
|
@@ -74,13 +151,24 @@ export class Plans extends APIResource {
|
|
|
74
151
|
*/
|
|
75
152
|
listCharges(
|
|
76
153
|
id: string,
|
|
77
|
-
|
|
154
|
+
params: PlanListChargesParams | null | undefined = {},
|
|
78
155
|
options?: RequestOptions,
|
|
79
156
|
): PagePromise<PlanListChargesResponsesMyCursorIDPage, PlanListChargesResponse> {
|
|
157
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
80
158
|
return this._client.getAPIList(
|
|
81
159
|
path`/api/v1/plans/${id}/charges`,
|
|
82
160
|
MyCursorIDPage<PlanListChargesResponse>,
|
|
83
|
-
{
|
|
161
|
+
{
|
|
162
|
+
query,
|
|
163
|
+
...options,
|
|
164
|
+
headers: buildHeaders([
|
|
165
|
+
{
|
|
166
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
167
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
168
|
+
},
|
|
169
|
+
options?.headers,
|
|
170
|
+
]),
|
|
171
|
+
},
|
|
84
172
|
);
|
|
85
173
|
}
|
|
86
174
|
|
|
@@ -89,28 +177,64 @@ export class Plans extends APIResource {
|
|
|
89
177
|
*/
|
|
90
178
|
listOverageCharges(
|
|
91
179
|
id: string,
|
|
92
|
-
|
|
180
|
+
params: PlanListOverageChargesParams | null | undefined = {},
|
|
93
181
|
options?: RequestOptions,
|
|
94
182
|
): PagePromise<PlanListOverageChargesResponsesMyCursorIDPage, PlanListOverageChargesResponse> {
|
|
183
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
95
184
|
return this._client.getAPIList(
|
|
96
185
|
path`/api/v1/plans/${id}/overage-charges`,
|
|
97
186
|
MyCursorIDPage<PlanListOverageChargesResponse>,
|
|
98
|
-
{
|
|
187
|
+
{
|
|
188
|
+
query,
|
|
189
|
+
...options,
|
|
190
|
+
headers: buildHeaders([
|
|
191
|
+
{
|
|
192
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
193
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
194
|
+
},
|
|
195
|
+
options?.headers,
|
|
196
|
+
]),
|
|
197
|
+
},
|
|
99
198
|
);
|
|
100
199
|
}
|
|
101
200
|
|
|
102
201
|
/**
|
|
103
202
|
* Publishes a draft plan, making it available for use in subscriptions.
|
|
104
203
|
*/
|
|
105
|
-
publish(id: string,
|
|
106
|
-
|
|
204
|
+
publish(id: string, params: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse> {
|
|
205
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
206
|
+
return this._client.post(path`/api/v1/plans/${id}/publish`, {
|
|
207
|
+
body,
|
|
208
|
+
...options,
|
|
209
|
+
headers: buildHeaders([
|
|
210
|
+
{
|
|
211
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
212
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
213
|
+
},
|
|
214
|
+
options?.headers,
|
|
215
|
+
]),
|
|
216
|
+
});
|
|
107
217
|
}
|
|
108
218
|
|
|
109
219
|
/**
|
|
110
220
|
* Removes a draft version of a plan.
|
|
111
221
|
*/
|
|
112
|
-
removeDraft(
|
|
113
|
-
|
|
222
|
+
removeDraft(
|
|
223
|
+
id: string,
|
|
224
|
+
params: PlanRemoveDraftParams | null | undefined = {},
|
|
225
|
+
options?: RequestOptions,
|
|
226
|
+
): APIPromise<PlanRemoveDraftResponse> {
|
|
227
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
228
|
+
return this._client.delete(path`/api/v1/plans/${id}/draft`, {
|
|
229
|
+
...options,
|
|
230
|
+
headers: buildHeaders([
|
|
231
|
+
{
|
|
232
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
233
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
234
|
+
},
|
|
235
|
+
options?.headers,
|
|
236
|
+
]),
|
|
237
|
+
});
|
|
114
238
|
}
|
|
115
239
|
}
|
|
116
240
|
|
|
@@ -1530,54 +1654,67 @@ export namespace PlanRemoveDraftResponse {
|
|
|
1530
1654
|
|
|
1531
1655
|
export interface PlanCreateParams {
|
|
1532
1656
|
/**
|
|
1533
|
-
* The unique identifier for the entity
|
|
1657
|
+
* Body param: The unique identifier for the entity
|
|
1534
1658
|
*/
|
|
1535
1659
|
id: string;
|
|
1536
1660
|
|
|
1537
1661
|
/**
|
|
1538
|
-
* The display name of the package
|
|
1662
|
+
* Body param: The display name of the package
|
|
1539
1663
|
*/
|
|
1540
1664
|
displayName: string;
|
|
1541
1665
|
|
|
1542
1666
|
/**
|
|
1543
|
-
* The product ID to associate the plan with
|
|
1667
|
+
* Body param: The product ID to associate the plan with
|
|
1544
1668
|
*/
|
|
1545
1669
|
productId: string;
|
|
1546
1670
|
|
|
1547
1671
|
/**
|
|
1548
|
-
* The unique identifier for the entity in the billing provider
|
|
1672
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
1549
1673
|
*/
|
|
1550
1674
|
billingId?: string | null;
|
|
1551
1675
|
|
|
1552
1676
|
/**
|
|
1553
|
-
* Default trial configuration for the plan
|
|
1677
|
+
* Body param: Default trial configuration for the plan
|
|
1554
1678
|
*/
|
|
1555
1679
|
defaultTrialConfig?: PlanCreateParams.DefaultTrialConfig | null;
|
|
1556
1680
|
|
|
1557
1681
|
/**
|
|
1558
|
-
* The description of the package
|
|
1682
|
+
* Body param: The description of the package
|
|
1559
1683
|
*/
|
|
1560
1684
|
description?: string | null;
|
|
1561
1685
|
|
|
1562
1686
|
/**
|
|
1563
|
-
* Metadata associated with the entity
|
|
1687
|
+
* Body param: Metadata associated with the entity
|
|
1564
1688
|
*/
|
|
1565
1689
|
metadata?: { [key: string]: string };
|
|
1566
1690
|
|
|
1567
1691
|
/**
|
|
1568
|
-
* The ID of the parent plan, if applicable
|
|
1692
|
+
* Body param: The ID of the parent plan, if applicable
|
|
1569
1693
|
*/
|
|
1570
1694
|
parentPlanId?: string | null;
|
|
1571
1695
|
|
|
1572
1696
|
/**
|
|
1573
|
-
* The pricing type of the package
|
|
1697
|
+
* Body param: The pricing type of the package
|
|
1574
1698
|
*/
|
|
1575
1699
|
pricingType?: 'FREE' | 'PAID' | 'CUSTOM' | null;
|
|
1576
1700
|
|
|
1577
1701
|
/**
|
|
1578
|
-
* The status of the package
|
|
1702
|
+
* Body param: The status of the package
|
|
1579
1703
|
*/
|
|
1580
1704
|
status?: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1708
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1709
|
+
*/
|
|
1710
|
+
'X-ACCOUNT-ID'?: string;
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1714
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1715
|
+
* intrinsic to the key).
|
|
1716
|
+
*/
|
|
1717
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1581
1718
|
}
|
|
1582
1719
|
|
|
1583
1720
|
export namespace PlanCreateParams {
|
|
@@ -1624,43 +1761,74 @@ export namespace PlanCreateParams {
|
|
|
1624
1761
|
}
|
|
1625
1762
|
}
|
|
1626
1763
|
|
|
1764
|
+
export interface PlanRetrieveParams {
|
|
1765
|
+
/**
|
|
1766
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1767
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1768
|
+
*/
|
|
1769
|
+
'X-ACCOUNT-ID'?: string;
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1773
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1774
|
+
* key).
|
|
1775
|
+
*/
|
|
1776
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1627
1779
|
export interface PlanUpdateParams {
|
|
1628
1780
|
/**
|
|
1629
|
-
* The unique identifier for the entity in the billing provider
|
|
1781
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
1630
1782
|
*/
|
|
1631
1783
|
billingId?: string | null;
|
|
1632
1784
|
|
|
1633
1785
|
/**
|
|
1634
|
-
* Pricing configuration to set on the plan draft
|
|
1786
|
+
* Body param: Pricing configuration to set on the plan draft
|
|
1635
1787
|
*/
|
|
1636
1788
|
charges?: PlanUpdateParams.Charges;
|
|
1637
1789
|
|
|
1790
|
+
/**
|
|
1791
|
+
* Body param
|
|
1792
|
+
*/
|
|
1638
1793
|
compatibleAddonIds?: Array<string> | null;
|
|
1639
1794
|
|
|
1640
1795
|
/**
|
|
1641
|
-
* Default trial configuration for the plan
|
|
1796
|
+
* Body param: Default trial configuration for the plan
|
|
1642
1797
|
*/
|
|
1643
1798
|
defaultTrialConfig?: PlanUpdateParams.DefaultTrialConfig | null;
|
|
1644
1799
|
|
|
1645
1800
|
/**
|
|
1646
|
-
* The description of the package
|
|
1801
|
+
* Body param: The description of the package
|
|
1647
1802
|
*/
|
|
1648
1803
|
description?: string | null;
|
|
1649
1804
|
|
|
1650
1805
|
/**
|
|
1651
|
-
* The display name of the package
|
|
1806
|
+
* Body param: The display name of the package
|
|
1652
1807
|
*/
|
|
1653
1808
|
displayName?: string;
|
|
1654
1809
|
|
|
1655
1810
|
/**
|
|
1656
|
-
* Metadata associated with the entity
|
|
1811
|
+
* Body param: Metadata associated with the entity
|
|
1657
1812
|
*/
|
|
1658
1813
|
metadata?: { [key: string]: string };
|
|
1659
1814
|
|
|
1660
1815
|
/**
|
|
1661
|
-
* The ID of the parent plan, if applicable
|
|
1816
|
+
* Body param: The ID of the parent plan, if applicable
|
|
1662
1817
|
*/
|
|
1663
1818
|
parentPlanId?: string | null;
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1822
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1823
|
+
*/
|
|
1824
|
+
'X-ACCOUNT-ID'?: string;
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1828
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1829
|
+
* intrinsic to the key).
|
|
1830
|
+
*/
|
|
1831
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1664
1832
|
}
|
|
1665
1833
|
|
|
1666
1834
|
export namespace PlanUpdateParams {
|
|
@@ -3075,19 +3243,33 @@ export namespace PlanUpdateParams {
|
|
|
3075
3243
|
|
|
3076
3244
|
export interface PlanListParams extends MyCursorIDPageParams {
|
|
3077
3245
|
/**
|
|
3078
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
3246
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
3079
3247
|
*/
|
|
3080
3248
|
createdAt?: PlanListParams.CreatedAt;
|
|
3081
3249
|
|
|
3082
3250
|
/**
|
|
3083
|
-
* Filter by product ID
|
|
3251
|
+
* Query param: Filter by product ID
|
|
3084
3252
|
*/
|
|
3085
3253
|
productId?: string;
|
|
3086
3254
|
|
|
3087
3255
|
/**
|
|
3088
|
-
* Filter by status. Supports comma-separated values for multiple
|
|
3256
|
+
* Query param: Filter by status. Supports comma-separated values for multiple
|
|
3257
|
+
* statuses
|
|
3089
3258
|
*/
|
|
3090
3259
|
status?: Array<'DRAFT' | 'PUBLISHED' | 'ARCHIVED'>;
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3263
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3264
|
+
*/
|
|
3265
|
+
'X-ACCOUNT-ID'?: string;
|
|
3266
|
+
|
|
3267
|
+
/**
|
|
3268
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3269
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3270
|
+
* intrinsic to the key).
|
|
3271
|
+
*/
|
|
3272
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3091
3273
|
}
|
|
3092
3274
|
|
|
3093
3275
|
export namespace PlanListParams {
|
|
@@ -3117,15 +3299,99 @@ export namespace PlanListParams {
|
|
|
3117
3299
|
}
|
|
3118
3300
|
}
|
|
3119
3301
|
|
|
3120
|
-
export interface
|
|
3302
|
+
export interface PlanArchiveParams {
|
|
3303
|
+
/**
|
|
3304
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
3305
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
3306
|
+
*/
|
|
3307
|
+
'X-ACCOUNT-ID'?: string;
|
|
3121
3308
|
|
|
3122
|
-
|
|
3309
|
+
/**
|
|
3310
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
3311
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
3312
|
+
* key).
|
|
3313
|
+
*/
|
|
3314
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
export interface PlanCreateDraftParams {
|
|
3318
|
+
/**
|
|
3319
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
3320
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
3321
|
+
*/
|
|
3322
|
+
'X-ACCOUNT-ID'?: string;
|
|
3323
|
+
|
|
3324
|
+
/**
|
|
3325
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
3326
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
3327
|
+
* key).
|
|
3328
|
+
*/
|
|
3329
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
export interface PlanListChargesParams extends MyCursorIDPageParams {
|
|
3333
|
+
/**
|
|
3334
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3335
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3336
|
+
*/
|
|
3337
|
+
'X-ACCOUNT-ID'?: string;
|
|
3338
|
+
|
|
3339
|
+
/**
|
|
3340
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3341
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3342
|
+
* intrinsic to the key).
|
|
3343
|
+
*/
|
|
3344
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
export interface PlanListOverageChargesParams extends MyCursorIDPageParams {
|
|
3348
|
+
/**
|
|
3349
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3350
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3351
|
+
*/
|
|
3352
|
+
'X-ACCOUNT-ID'?: string;
|
|
3353
|
+
|
|
3354
|
+
/**
|
|
3355
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3356
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3357
|
+
* intrinsic to the key).
|
|
3358
|
+
*/
|
|
3359
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3360
|
+
}
|
|
3123
3361
|
|
|
3124
3362
|
export interface PlanPublishParams {
|
|
3125
3363
|
/**
|
|
3126
|
-
* The migration type of the package
|
|
3364
|
+
* Body param: The migration type of the package
|
|
3127
3365
|
*/
|
|
3128
3366
|
migrationType: 'NEW_CUSTOMERS' | 'ALL_CUSTOMERS';
|
|
3367
|
+
|
|
3368
|
+
/**
|
|
3369
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3370
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3371
|
+
*/
|
|
3372
|
+
'X-ACCOUNT-ID'?: string;
|
|
3373
|
+
|
|
3374
|
+
/**
|
|
3375
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3376
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3377
|
+
* intrinsic to the key).
|
|
3378
|
+
*/
|
|
3379
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
export interface PlanRemoveDraftParams {
|
|
3383
|
+
/**
|
|
3384
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
3385
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
3386
|
+
*/
|
|
3387
|
+
'X-ACCOUNT-ID'?: string;
|
|
3388
|
+
|
|
3389
|
+
/**
|
|
3390
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
3391
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
3392
|
+
* key).
|
|
3393
|
+
*/
|
|
3394
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3129
3395
|
}
|
|
3130
3396
|
|
|
3131
3397
|
Plans.Entitlements = Entitlements;
|
|
@@ -3142,11 +3408,15 @@ export declare namespace Plans {
|
|
|
3142
3408
|
type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage,
|
|
3143
3409
|
type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage,
|
|
3144
3410
|
type PlanCreateParams as PlanCreateParams,
|
|
3411
|
+
type PlanRetrieveParams as PlanRetrieveParams,
|
|
3145
3412
|
type PlanUpdateParams as PlanUpdateParams,
|
|
3146
3413
|
type PlanListParams as PlanListParams,
|
|
3414
|
+
type PlanArchiveParams as PlanArchiveParams,
|
|
3415
|
+
type PlanCreateDraftParams as PlanCreateDraftParams,
|
|
3147
3416
|
type PlanListChargesParams as PlanListChargesParams,
|
|
3148
3417
|
type PlanListOverageChargesParams as PlanListOverageChargesParams,
|
|
3149
3418
|
type PlanPublishParams as PlanPublishParams,
|
|
3419
|
+
type PlanRemoveDraftParams as PlanRemoveDraftParams,
|
|
3150
3420
|
};
|
|
3151
3421
|
|
|
3152
3422
|
export {
|
|
@@ -3156,6 +3426,7 @@ export declare namespace Plans {
|
|
|
3156
3426
|
type EntitlementListResponse as EntitlementListResponse,
|
|
3157
3427
|
type EntitlementCreateParams as EntitlementCreateParams,
|
|
3158
3428
|
type EntitlementUpdateParams as EntitlementUpdateParams,
|
|
3429
|
+
type EntitlementListParams as EntitlementListParams,
|
|
3159
3430
|
type EntitlementDeleteParams as EntitlementDeleteParams,
|
|
3160
3431
|
};
|
|
3161
3432
|
}
|