@stigg/typescript 0.1.0-beta.4 → 0.1.0-beta.41
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 +314 -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 +199 -0
- package/resources/v1/credits/consumption.d.mts.map +1 -0
- package/resources/v1/credits/consumption.d.ts +199 -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 +71 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +71 -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 +269 -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 +108 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../src/resources/v1/plans/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../src/resources/v1/plans/entitlements.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,32 +1,73 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
3
4
|
import { path } from "../../../internal/utils/path.mjs";
|
|
4
5
|
export class Entitlements extends APIResource {
|
|
5
6
|
/**
|
|
6
7
|
* Creates one or more entitlements (feature or credit) on a draft plan.
|
|
7
8
|
*/
|
|
8
|
-
create(planID,
|
|
9
|
-
|
|
9
|
+
create(planID, params, options) {
|
|
10
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
11
|
+
return this._client.post(path `/api/v1/plans/${planID}/entitlements`, {
|
|
12
|
+
body,
|
|
13
|
+
...options,
|
|
14
|
+
headers: buildHeaders([
|
|
15
|
+
{
|
|
16
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
17
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
18
|
+
},
|
|
19
|
+
options?.headers,
|
|
20
|
+
]),
|
|
21
|
+
});
|
|
10
22
|
}
|
|
11
23
|
/**
|
|
12
24
|
* Updates an existing entitlement on a draft plan.
|
|
13
25
|
*/
|
|
14
26
|
update(id, params, options) {
|
|
15
|
-
const { planId, ...body } = params;
|
|
16
|
-
return this._client.patch(path `/api/v1/plans/${planId}/entitlements/${id}`, {
|
|
27
|
+
const { planId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
28
|
+
return this._client.patch(path `/api/v1/plans/${planId}/entitlements/${id}`, {
|
|
29
|
+
body,
|
|
30
|
+
...options,
|
|
31
|
+
headers: buildHeaders([
|
|
32
|
+
{
|
|
33
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
34
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
35
|
+
},
|
|
36
|
+
options?.headers,
|
|
37
|
+
]),
|
|
38
|
+
});
|
|
17
39
|
}
|
|
18
40
|
/**
|
|
19
41
|
* Retrieves a list of entitlements for a plan.
|
|
20
42
|
*/
|
|
21
|
-
list(planID, options) {
|
|
22
|
-
|
|
43
|
+
list(planID, params = {}, options) {
|
|
44
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
45
|
+
return this._client.get(path `/api/v1/plans/${planID}/entitlements`, {
|
|
46
|
+
...options,
|
|
47
|
+
headers: buildHeaders([
|
|
48
|
+
{
|
|
49
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
50
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
51
|
+
},
|
|
52
|
+
options?.headers,
|
|
53
|
+
]),
|
|
54
|
+
});
|
|
23
55
|
}
|
|
24
56
|
/**
|
|
25
57
|
* Deletes an entitlement from a draft plan.
|
|
26
58
|
*/
|
|
27
59
|
delete(id, params, options) {
|
|
28
|
-
const { planId } = params;
|
|
29
|
-
return this._client.delete(path `/api/v1/plans/${planId}/entitlements/${id}`,
|
|
60
|
+
const { planId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
61
|
+
return this._client.delete(path `/api/v1/plans/${planId}/entitlements/${id}`, {
|
|
62
|
+
...options,
|
|
63
|
+
headers: buildHeaders([
|
|
64
|
+
{
|
|
65
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
66
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
67
|
+
},
|
|
68
|
+
options?.headers,
|
|
69
|
+
]),
|
|
70
|
+
});
|
|
30
71
|
}
|
|
31
72
|
}
|
|
32
73
|
//# sourceMappingURL=entitlements.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../src/resources/v1/plans/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../src/resources/v1/plans/entitlements.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Entitlements, type PlanEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementDeleteParams, } from "./entitlements.mjs";
|
|
2
|
-
export { Plans, type Plan, type PlanListResponse, type PlanListChargesResponse, type PlanListOverageChargesResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, type PlanListChargesParams, type PlanListOverageChargesParams, type PlanPublishParams, type PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage, } from "./plans.mjs";
|
|
1
|
+
export { Entitlements, type PlanEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementListParams, type EntitlementDeleteParams, } from "./entitlements.mjs";
|
|
2
|
+
export { Plans, type Plan, type PlanListResponse, type PlanListChargesResponse, type PlanListOverageChargesResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanRetrieveParams, type PlanUpdateParams, type PlanListParams, type PlanArchiveParams, type PlanCreateDraftParams, type PlanListChargesParams, type PlanListOverageChargesParams, type PlanPublishParams, type PlanRemoveDraftParams, type PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage, } from "./plans.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,2BAAuB;AACxB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,6CAA6C,GACnD,oBAAgB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Entitlements, type PlanEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementDeleteParams, } from "./entitlements.js";
|
|
2
|
-
export { Plans, type Plan, type PlanListResponse, type PlanListChargesResponse, type PlanListOverageChargesResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, type PlanListChargesParams, type PlanListOverageChargesParams, type PlanPublishParams, type PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage, } from "./plans.js";
|
|
1
|
+
export { Entitlements, type PlanEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementListParams, type EntitlementDeleteParams, } from "./entitlements.js";
|
|
2
|
+
export { Plans, type Plan, type PlanListResponse, type PlanListChargesResponse, type PlanListOverageChargesResponse, type PlanPublishResponse, type PlanRemoveDraftResponse, type PlanCreateParams, type PlanRetrieveParams, type PlanUpdateParams, type PlanListParams, type PlanArchiveParams, type PlanCreateDraftParams, type PlanListChargesParams, type PlanListOverageChargesParams, type PlanPublishParams, type PlanRemoveDraftParams, type PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage, } from "./plans.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,0BAAuB;AACxB,OAAO,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,6CAA6C,GACnD,mBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,oCAqBiB;AApBf,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/plans/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,YAAY,GAQb,2BAAuB;AACxB,OAAO,EACL,KAAK,GAoBN,oBAAgB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as EntitlementsAPI from "./entitlements.mjs";
|
|
3
|
-
import { EntitlementCreateParams, EntitlementCreateResponse, EntitlementDeleteParams, EntitlementListResponse, EntitlementUpdateParams, Entitlements, PlanEntitlement } from "./entitlements.mjs";
|
|
3
|
+
import { EntitlementCreateParams, EntitlementCreateResponse, EntitlementDeleteParams, EntitlementListParams, EntitlementListResponse, EntitlementUpdateParams, Entitlements, PlanEntitlement } from "./entitlements.mjs";
|
|
4
4
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
5
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
|
|
6
6
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
@@ -12,45 +12,45 @@ export declare class Plans extends APIResource {
|
|
|
12
12
|
/**
|
|
13
13
|
* Creates a new plan in draft status.
|
|
14
14
|
*/
|
|
15
|
-
create(
|
|
15
|
+
create(params: PlanCreateParams, options?: RequestOptions): APIPromise<Plan>;
|
|
16
16
|
/**
|
|
17
17
|
* Retrieves a plan by its unique identifier, including entitlements and pricing
|
|
18
18
|
* details.
|
|
19
19
|
*/
|
|
20
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Plan>;
|
|
20
|
+
retrieve(id: string, params?: PlanRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Plan>;
|
|
21
21
|
/**
|
|
22
22
|
* Updates an existing plan's properties such as display name, description, and
|
|
23
23
|
* metadata.
|
|
24
24
|
*/
|
|
25
|
-
update(id: string,
|
|
25
|
+
update(id: string, params: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan>;
|
|
26
26
|
/**
|
|
27
27
|
* Retrieves a paginated list of plans in the environment.
|
|
28
28
|
*/
|
|
29
|
-
list(
|
|
29
|
+
list(params?: PlanListParams | null | undefined, options?: RequestOptions): PagePromise<PlanListResponsesMyCursorIDPage, PlanListResponse>;
|
|
30
30
|
/**
|
|
31
31
|
* Archives a plan, preventing it from being used in new subscriptions.
|
|
32
32
|
*/
|
|
33
|
-
archive(id: string, options?: RequestOptions): APIPromise<Plan>;
|
|
33
|
+
archive(id: string, params?: PlanArchiveParams | null | undefined, options?: RequestOptions): APIPromise<Plan>;
|
|
34
34
|
/**
|
|
35
35
|
* Creates a draft version of an existing plan for modification before publishing.
|
|
36
36
|
*/
|
|
37
|
-
createDraft(id: string, options?: RequestOptions): APIPromise<Plan>;
|
|
37
|
+
createDraft(id: string, params?: PlanCreateDraftParams | null | undefined, options?: RequestOptions): APIPromise<Plan>;
|
|
38
38
|
/**
|
|
39
39
|
* Retrieves the list of charges configured on a plan.
|
|
40
40
|
*/
|
|
41
|
-
listCharges(id: string,
|
|
41
|
+
listCharges(id: string, params?: PlanListChargesParams | null | undefined, options?: RequestOptions): PagePromise<PlanListChargesResponsesMyCursorIDPage, PlanListChargesResponse>;
|
|
42
42
|
/**
|
|
43
43
|
* Retrieves the list of overage charges configured on a plan.
|
|
44
44
|
*/
|
|
45
|
-
listOverageCharges(id: string,
|
|
45
|
+
listOverageCharges(id: string, params?: PlanListOverageChargesParams | null | undefined, options?: RequestOptions): PagePromise<PlanListOverageChargesResponsesMyCursorIDPage, PlanListOverageChargesResponse>;
|
|
46
46
|
/**
|
|
47
47
|
* Publishes a draft plan, making it available for use in subscriptions.
|
|
48
48
|
*/
|
|
49
|
-
publish(id: string,
|
|
49
|
+
publish(id: string, params: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse>;
|
|
50
50
|
/**
|
|
51
51
|
* Removes a draft version of a plan.
|
|
52
52
|
*/
|
|
53
|
-
removeDraft(id: string, options?: RequestOptions): APIPromise<PlanRemoveDraftResponse>;
|
|
53
|
+
removeDraft(id: string, params?: PlanRemoveDraftParams | null | undefined, options?: RequestOptions): APIPromise<PlanRemoveDraftResponse>;
|
|
54
54
|
}
|
|
55
55
|
export type PlanListResponsesMyCursorIDPage = MyCursorIDPage<PlanListResponse>;
|
|
56
56
|
export type PlanListChargesResponsesMyCursorIDPage = MyCursorIDPage<PlanListChargesResponse>;
|
|
@@ -656,47 +656,58 @@ export declare namespace PlanRemoveDraftResponse {
|
|
|
656
656
|
}
|
|
657
657
|
export interface PlanCreateParams {
|
|
658
658
|
/**
|
|
659
|
-
* The unique identifier for the entity
|
|
659
|
+
* Body param: The unique identifier for the entity
|
|
660
660
|
*/
|
|
661
661
|
id: string;
|
|
662
662
|
/**
|
|
663
|
-
* The display name of the package
|
|
663
|
+
* Body param: The display name of the package
|
|
664
664
|
*/
|
|
665
665
|
displayName: string;
|
|
666
666
|
/**
|
|
667
|
-
* The product ID to associate the plan with
|
|
667
|
+
* Body param: The product ID to associate the plan with
|
|
668
668
|
*/
|
|
669
669
|
productId: string;
|
|
670
670
|
/**
|
|
671
|
-
* The unique identifier for the entity in the billing provider
|
|
671
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
672
672
|
*/
|
|
673
673
|
billingId?: string | null;
|
|
674
674
|
/**
|
|
675
|
-
* Default trial configuration for the plan
|
|
675
|
+
* Body param: Default trial configuration for the plan
|
|
676
676
|
*/
|
|
677
677
|
defaultTrialConfig?: PlanCreateParams.DefaultTrialConfig | null;
|
|
678
678
|
/**
|
|
679
|
-
* The description of the package
|
|
679
|
+
* Body param: The description of the package
|
|
680
680
|
*/
|
|
681
681
|
description?: string | null;
|
|
682
682
|
/**
|
|
683
|
-
* Metadata associated with the entity
|
|
683
|
+
* Body param: Metadata associated with the entity
|
|
684
684
|
*/
|
|
685
685
|
metadata?: {
|
|
686
686
|
[key: string]: string;
|
|
687
687
|
};
|
|
688
688
|
/**
|
|
689
|
-
* The ID of the parent plan, if applicable
|
|
689
|
+
* Body param: The ID of the parent plan, if applicable
|
|
690
690
|
*/
|
|
691
691
|
parentPlanId?: string | null;
|
|
692
692
|
/**
|
|
693
|
-
* The pricing type of the package
|
|
693
|
+
* Body param: The pricing type of the package
|
|
694
694
|
*/
|
|
695
695
|
pricingType?: 'FREE' | 'PAID' | 'CUSTOM' | null;
|
|
696
696
|
/**
|
|
697
|
-
* The status of the package
|
|
697
|
+
* Body param: The status of the package
|
|
698
698
|
*/
|
|
699
699
|
status?: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
700
|
+
/**
|
|
701
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
702
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
703
|
+
*/
|
|
704
|
+
'X-ACCOUNT-ID'?: string;
|
|
705
|
+
/**
|
|
706
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
707
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
708
|
+
* intrinsic to the key).
|
|
709
|
+
*/
|
|
710
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
700
711
|
}
|
|
701
712
|
export declare namespace PlanCreateParams {
|
|
702
713
|
/**
|
|
@@ -736,38 +747,65 @@ export declare namespace PlanCreateParams {
|
|
|
736
747
|
}
|
|
737
748
|
}
|
|
738
749
|
}
|
|
750
|
+
export interface PlanRetrieveParams {
|
|
751
|
+
/**
|
|
752
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
753
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
754
|
+
*/
|
|
755
|
+
'X-ACCOUNT-ID'?: string;
|
|
756
|
+
/**
|
|
757
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
758
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
759
|
+
* key).
|
|
760
|
+
*/
|
|
761
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
762
|
+
}
|
|
739
763
|
export interface PlanUpdateParams {
|
|
740
764
|
/**
|
|
741
|
-
* The unique identifier for the entity in the billing provider
|
|
765
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
742
766
|
*/
|
|
743
767
|
billingId?: string | null;
|
|
744
768
|
/**
|
|
745
|
-
* Pricing configuration to set on the plan draft
|
|
769
|
+
* Body param: Pricing configuration to set on the plan draft
|
|
746
770
|
*/
|
|
747
771
|
charges?: PlanUpdateParams.Charges;
|
|
772
|
+
/**
|
|
773
|
+
* Body param
|
|
774
|
+
*/
|
|
748
775
|
compatibleAddonIds?: Array<string> | null;
|
|
749
776
|
/**
|
|
750
|
-
* Default trial configuration for the plan
|
|
777
|
+
* Body param: Default trial configuration for the plan
|
|
751
778
|
*/
|
|
752
779
|
defaultTrialConfig?: PlanUpdateParams.DefaultTrialConfig | null;
|
|
753
780
|
/**
|
|
754
|
-
* The description of the package
|
|
781
|
+
* Body param: The description of the package
|
|
755
782
|
*/
|
|
756
783
|
description?: string | null;
|
|
757
784
|
/**
|
|
758
|
-
* The display name of the package
|
|
785
|
+
* Body param: The display name of the package
|
|
759
786
|
*/
|
|
760
787
|
displayName?: string;
|
|
761
788
|
/**
|
|
762
|
-
* Metadata associated with the entity
|
|
789
|
+
* Body param: Metadata associated with the entity
|
|
763
790
|
*/
|
|
764
791
|
metadata?: {
|
|
765
792
|
[key: string]: string;
|
|
766
793
|
};
|
|
767
794
|
/**
|
|
768
|
-
* The ID of the parent plan, if applicable
|
|
795
|
+
* Body param: The ID of the parent plan, if applicable
|
|
769
796
|
*/
|
|
770
797
|
parentPlanId?: string | null;
|
|
798
|
+
/**
|
|
799
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
800
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
801
|
+
*/
|
|
802
|
+
'X-ACCOUNT-ID'?: string;
|
|
803
|
+
/**
|
|
804
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
805
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
806
|
+
* intrinsic to the key).
|
|
807
|
+
*/
|
|
808
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
771
809
|
}
|
|
772
810
|
export declare namespace PlanUpdateParams {
|
|
773
811
|
/**
|
|
@@ -1267,17 +1305,29 @@ export declare namespace PlanUpdateParams {
|
|
|
1267
1305
|
}
|
|
1268
1306
|
export interface PlanListParams extends MyCursorIDPageParams {
|
|
1269
1307
|
/**
|
|
1270
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
1308
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
1271
1309
|
*/
|
|
1272
1310
|
createdAt?: PlanListParams.CreatedAt;
|
|
1273
1311
|
/**
|
|
1274
|
-
* Filter by product ID
|
|
1312
|
+
* Query param: Filter by product ID
|
|
1275
1313
|
*/
|
|
1276
1314
|
productId?: string;
|
|
1277
1315
|
/**
|
|
1278
|
-
* Filter by status. Supports comma-separated values for multiple
|
|
1316
|
+
* Query param: Filter by status. Supports comma-separated values for multiple
|
|
1317
|
+
* statuses
|
|
1279
1318
|
*/
|
|
1280
1319
|
status?: Array<'DRAFT' | 'PUBLISHED' | 'ARCHIVED'>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1322
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1323
|
+
*/
|
|
1324
|
+
'X-ACCOUNT-ID'?: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1327
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1328
|
+
* intrinsic to the key).
|
|
1329
|
+
*/
|
|
1330
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1281
1331
|
}
|
|
1282
1332
|
export declare namespace PlanListParams {
|
|
1283
1333
|
/**
|
|
@@ -1302,18 +1352,90 @@ export declare namespace PlanListParams {
|
|
|
1302
1352
|
lte?: string;
|
|
1303
1353
|
}
|
|
1304
1354
|
}
|
|
1355
|
+
export interface PlanArchiveParams {
|
|
1356
|
+
/**
|
|
1357
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1358
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1359
|
+
*/
|
|
1360
|
+
'X-ACCOUNT-ID'?: string;
|
|
1361
|
+
/**
|
|
1362
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1363
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1364
|
+
* key).
|
|
1365
|
+
*/
|
|
1366
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1367
|
+
}
|
|
1368
|
+
export interface PlanCreateDraftParams {
|
|
1369
|
+
/**
|
|
1370
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1371
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1372
|
+
*/
|
|
1373
|
+
'X-ACCOUNT-ID'?: string;
|
|
1374
|
+
/**
|
|
1375
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1376
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1377
|
+
* key).
|
|
1378
|
+
*/
|
|
1379
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1380
|
+
}
|
|
1305
1381
|
export interface PlanListChargesParams extends MyCursorIDPageParams {
|
|
1382
|
+
/**
|
|
1383
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1384
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1385
|
+
*/
|
|
1386
|
+
'X-ACCOUNT-ID'?: string;
|
|
1387
|
+
/**
|
|
1388
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1389
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1390
|
+
* intrinsic to the key).
|
|
1391
|
+
*/
|
|
1392
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1306
1393
|
}
|
|
1307
1394
|
export interface PlanListOverageChargesParams extends MyCursorIDPageParams {
|
|
1395
|
+
/**
|
|
1396
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1397
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1398
|
+
*/
|
|
1399
|
+
'X-ACCOUNT-ID'?: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1402
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1403
|
+
* intrinsic to the key).
|
|
1404
|
+
*/
|
|
1405
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1308
1406
|
}
|
|
1309
1407
|
export interface PlanPublishParams {
|
|
1310
1408
|
/**
|
|
1311
|
-
* The migration type of the package
|
|
1409
|
+
* Body param: The migration type of the package
|
|
1312
1410
|
*/
|
|
1313
1411
|
migrationType: 'NEW_CUSTOMERS' | 'ALL_CUSTOMERS';
|
|
1412
|
+
/**
|
|
1413
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1414
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1415
|
+
*/
|
|
1416
|
+
'X-ACCOUNT-ID'?: string;
|
|
1417
|
+
/**
|
|
1418
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1419
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1420
|
+
* intrinsic to the key).
|
|
1421
|
+
*/
|
|
1422
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1423
|
+
}
|
|
1424
|
+
export interface PlanRemoveDraftParams {
|
|
1425
|
+
/**
|
|
1426
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1427
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1428
|
+
*/
|
|
1429
|
+
'X-ACCOUNT-ID'?: string;
|
|
1430
|
+
/**
|
|
1431
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1432
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1433
|
+
* key).
|
|
1434
|
+
*/
|
|
1435
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1314
1436
|
}
|
|
1315
1437
|
export declare namespace Plans {
|
|
1316
|
-
export { type Plan as Plan, type PlanListResponse as PlanListResponse, type PlanListChargesResponse as PlanListChargesResponse, type PlanListOverageChargesResponse as PlanListOverageChargesResponse, type PlanPublishResponse as PlanPublishResponse, type PlanRemoveDraftResponse as PlanRemoveDraftResponse, type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage, type PlanCreateParams as PlanCreateParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, type PlanListChargesParams as PlanListChargesParams, type PlanListOverageChargesParams as PlanListOverageChargesParams, type PlanPublishParams as PlanPublishParams, };
|
|
1317
|
-
export { Entitlements as Entitlements, type PlanEntitlement as PlanEntitlement, type EntitlementCreateResponse as EntitlementCreateResponse, type EntitlementListResponse as EntitlementListResponse, type EntitlementCreateParams as EntitlementCreateParams, type EntitlementUpdateParams as EntitlementUpdateParams, type EntitlementDeleteParams as EntitlementDeleteParams, };
|
|
1438
|
+
export { type Plan as Plan, type PlanListResponse as PlanListResponse, type PlanListChargesResponse as PlanListChargesResponse, type PlanListOverageChargesResponse as PlanListOverageChargesResponse, type PlanPublishResponse as PlanPublishResponse, type PlanRemoveDraftResponse as PlanRemoveDraftResponse, type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage, type PlanCreateParams as PlanCreateParams, type PlanRetrieveParams as PlanRetrieveParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, type PlanArchiveParams as PlanArchiveParams, type PlanCreateDraftParams as PlanCreateDraftParams, type PlanListChargesParams as PlanListChargesParams, type PlanListOverageChargesParams as PlanListOverageChargesParams, type PlanPublishParams as PlanPublishParams, type PlanRemoveDraftParams as PlanRemoveDraftParams, };
|
|
1439
|
+
export { Entitlements as Entitlements, type PlanEntitlement as PlanEntitlement, type EntitlementCreateResponse as EntitlementCreateResponse, type EntitlementListResponse as EntitlementListResponse, type EntitlementCreateParams as EntitlementCreateParams, type EntitlementUpdateParams as EntitlementUpdateParams, type EntitlementListParams as EntitlementListParams, type EntitlementDeleteParams as EntitlementDeleteParams, };
|
|
1318
1440
|
}
|
|
1319
1441
|
//# sourceMappingURL=plans.d.mts.map
|