@stigg/typescript 0.1.0-beta.3 → 0.1.0-beta.31
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 +236 -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 +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +12 -1
- package/client.js.map +1 -1
- package/client.mjs +12 -1
- 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 +313 -32
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +313 -32
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +114 -15
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +114 -15
- 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/credits.d.mts +114 -25
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +114 -25
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +36 -5
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +36 -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 +2 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +2 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js.map +1 -1
- 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 +215 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +215 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +46 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +42 -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 +496 -32
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +496 -32
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +135 -16
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +135 -16
- 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 +258 -79
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +258 -79
- 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 +52 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +52 -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 +245 -0
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1-beta/customers/assignments.d.ts +245 -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 +14 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +849 -36
- package/src/resources/v1/addons/entitlements.ts +158 -10
- package/src/resources/v1/addons/index.ts +8 -0
- package/src/resources/v1/coupons.ts +154 -23
- package/src/resources/v1/credits/credits.ts +167 -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 +4 -0
- package/src/resources/v1/customers/customers.ts +333 -62
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +137 -18
- package/src/resources/v1/customers/payment-method.ts +69 -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 +312 -0
- package/src/resources/v1/events/data-export/destinations.ts +290 -0
- package/src/resources/v1/events/data-export/index.ts +18 -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 +29 -1
- package/src/resources/v1/plans/entitlements.ts +158 -10
- package/src/resources/v1/plans/index.ts +11 -0
- package/src/resources/v1/plans/plans.ts +1440 -37
- 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 +429 -86
- package/src/resources/v1/subscriptions/usage.ts +61 -5
- package/src/resources/v1/usage.ts +86 -5
- package/src/resources/v1/v1.ts +58 -2
- package/src/resources/v1-beta/customers/assignments.ts +331 -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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
5
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
8
|
import { path } from '../../internal/utils/path';
|
|
8
9
|
|
|
@@ -13,50 +14,126 @@ export class Features extends APIResource {
|
|
|
13
14
|
/**
|
|
14
15
|
* Archives a feature, preventing it from being used in new entitlements.
|
|
15
16
|
*/
|
|
16
|
-
archiveFeature(
|
|
17
|
-
|
|
17
|
+
archiveFeature(
|
|
18
|
+
id: string,
|
|
19
|
+
params: FeatureArchiveFeatureParams | null | undefined = {},
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): APIPromise<Feature> {
|
|
22
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
23
|
+
return this._client.post(path`/api/v1/features/${id}/archive`, {
|
|
24
|
+
...options,
|
|
25
|
+
headers: buildHeaders([
|
|
26
|
+
{
|
|
27
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
28
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
29
|
+
},
|
|
30
|
+
options?.headers,
|
|
31
|
+
]),
|
|
32
|
+
});
|
|
18
33
|
}
|
|
19
34
|
|
|
20
35
|
/**
|
|
21
36
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
22
37
|
*/
|
|
23
|
-
createFeature(
|
|
24
|
-
|
|
38
|
+
createFeature(params: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<Feature> {
|
|
39
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
40
|
+
return this._client.post('/api/v1/features', {
|
|
41
|
+
body,
|
|
42
|
+
...options,
|
|
43
|
+
headers: buildHeaders([
|
|
44
|
+
{
|
|
45
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
46
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
47
|
+
},
|
|
48
|
+
options?.headers,
|
|
49
|
+
]),
|
|
50
|
+
});
|
|
25
51
|
}
|
|
26
52
|
|
|
27
53
|
/**
|
|
28
54
|
* Retrieves a paginated list of features in the environment.
|
|
29
55
|
*/
|
|
30
56
|
listFeatures(
|
|
31
|
-
|
|
57
|
+
params: FeatureListFeaturesParams | null | undefined = {},
|
|
32
58
|
options?: RequestOptions,
|
|
33
59
|
): PagePromise<FeatureListFeaturesResponsesMyCursorIDPage, FeatureListFeaturesResponse> {
|
|
60
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
34
61
|
return this._client.getAPIList('/api/v1/features', MyCursorIDPage<FeatureListFeaturesResponse>, {
|
|
35
62
|
query,
|
|
36
63
|
...options,
|
|
64
|
+
headers: buildHeaders([
|
|
65
|
+
{
|
|
66
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
67
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
68
|
+
},
|
|
69
|
+
options?.headers,
|
|
70
|
+
]),
|
|
37
71
|
});
|
|
38
72
|
}
|
|
39
73
|
|
|
40
74
|
/**
|
|
41
75
|
* Retrieves a feature by its unique identifier.
|
|
42
76
|
*/
|
|
43
|
-
retrieveFeature(
|
|
44
|
-
|
|
77
|
+
retrieveFeature(
|
|
78
|
+
id: string,
|
|
79
|
+
params: FeatureRetrieveFeatureParams | null | undefined = {},
|
|
80
|
+
options?: RequestOptions,
|
|
81
|
+
): APIPromise<Feature> {
|
|
82
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
83
|
+
return this._client.get(path`/api/v1/features/${id}`, {
|
|
84
|
+
...options,
|
|
85
|
+
headers: buildHeaders([
|
|
86
|
+
{
|
|
87
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
88
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
89
|
+
},
|
|
90
|
+
options?.headers,
|
|
91
|
+
]),
|
|
92
|
+
});
|
|
45
93
|
}
|
|
46
94
|
|
|
47
95
|
/**
|
|
48
96
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
49
97
|
*/
|
|
50
|
-
unarchiveFeature(
|
|
51
|
-
|
|
98
|
+
unarchiveFeature(
|
|
99
|
+
id: string,
|
|
100
|
+
params: FeatureUnarchiveFeatureParams | null | undefined = {},
|
|
101
|
+
options?: RequestOptions,
|
|
102
|
+
): APIPromise<Feature> {
|
|
103
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
104
|
+
return this._client.post(path`/api/v1/features/${id}/unarchive`, {
|
|
105
|
+
...options,
|
|
106
|
+
headers: buildHeaders([
|
|
107
|
+
{
|
|
108
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
109
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
110
|
+
},
|
|
111
|
+
options?.headers,
|
|
112
|
+
]),
|
|
113
|
+
});
|
|
52
114
|
}
|
|
53
115
|
|
|
54
116
|
/**
|
|
55
117
|
* Updates an existing feature's properties such as display name, description, and
|
|
56
118
|
* configuration.
|
|
57
119
|
*/
|
|
58
|
-
updateFeature(
|
|
59
|
-
|
|
120
|
+
updateFeature(
|
|
121
|
+
id: string,
|
|
122
|
+
params: FeatureUpdateFeatureParams,
|
|
123
|
+
options?: RequestOptions,
|
|
124
|
+
): APIPromise<Feature> {
|
|
125
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
126
|
+
return this._client.patch(path`/api/v1/features/${id}`, {
|
|
127
|
+
body,
|
|
128
|
+
...options,
|
|
129
|
+
headers: buildHeaders([
|
|
130
|
+
{
|
|
131
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
132
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
133
|
+
},
|
|
134
|
+
options?.headers,
|
|
135
|
+
]),
|
|
136
|
+
});
|
|
60
137
|
}
|
|
61
138
|
}
|
|
62
139
|
|
|
@@ -292,61 +369,89 @@ export namespace FeatureListFeaturesResponse {
|
|
|
292
369
|
}
|
|
293
370
|
}
|
|
294
371
|
|
|
372
|
+
export interface FeatureArchiveFeatureParams {
|
|
373
|
+
/**
|
|
374
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
375
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
376
|
+
*/
|
|
377
|
+
'X-ACCOUNT-ID'?: string;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
381
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
382
|
+
* key).
|
|
383
|
+
*/
|
|
384
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
295
387
|
export interface FeatureCreateFeatureParams {
|
|
296
388
|
/**
|
|
297
|
-
* The unique identifier for the feature
|
|
389
|
+
* Body param: The unique identifier for the feature
|
|
298
390
|
*/
|
|
299
391
|
id: string;
|
|
300
392
|
|
|
301
393
|
/**
|
|
302
|
-
* The display name for the feature
|
|
394
|
+
* Body param: The display name for the feature
|
|
303
395
|
*/
|
|
304
396
|
displayName: string;
|
|
305
397
|
|
|
306
398
|
/**
|
|
307
|
-
* The type of the feature
|
|
399
|
+
* Body param: The type of the feature
|
|
308
400
|
*/
|
|
309
401
|
featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
|
|
310
402
|
|
|
311
403
|
/**
|
|
312
|
-
* The description for the feature
|
|
404
|
+
* Body param: The description for the feature
|
|
313
405
|
*/
|
|
314
406
|
description?: string;
|
|
315
407
|
|
|
316
408
|
/**
|
|
317
|
-
* The configuration data for the feature
|
|
409
|
+
* Body param: The configuration data for the feature
|
|
318
410
|
*/
|
|
319
411
|
enumConfiguration?: Array<FeatureCreateFeatureParams.EnumConfiguration>;
|
|
320
412
|
|
|
321
413
|
/**
|
|
322
|
-
* The status of the feature
|
|
414
|
+
* Body param: The status of the feature
|
|
323
415
|
*/
|
|
324
416
|
featureStatus?: 'NEW' | 'SUSPENDED' | 'ACTIVE';
|
|
325
417
|
|
|
326
418
|
/**
|
|
327
|
-
* The units for the feature
|
|
419
|
+
* Body param: The units for the feature
|
|
328
420
|
*/
|
|
329
421
|
featureUnits?: string;
|
|
330
422
|
|
|
331
423
|
/**
|
|
332
|
-
* The plural units for the feature
|
|
424
|
+
* Body param: The plural units for the feature
|
|
333
425
|
*/
|
|
334
426
|
featureUnitsPlural?: string;
|
|
335
427
|
|
|
336
428
|
/**
|
|
337
|
-
* The additional metadata for the feature
|
|
429
|
+
* Body param: The additional metadata for the feature
|
|
338
430
|
*/
|
|
339
431
|
metadata?: { [key: string]: string };
|
|
340
432
|
|
|
341
433
|
/**
|
|
342
|
-
* The meter type for the feature
|
|
434
|
+
* Body param: The meter type for the feature
|
|
343
435
|
*/
|
|
344
436
|
meterType?: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
|
|
345
437
|
|
|
346
438
|
/**
|
|
347
|
-
* Unit transformation to be applied to the reported usage
|
|
439
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
348
440
|
*/
|
|
349
441
|
unitTransformation?: FeatureCreateFeatureParams.UnitTransformation | null;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
445
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
446
|
+
*/
|
|
447
|
+
'X-ACCOUNT-ID'?: string;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
451
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
452
|
+
* intrinsic to the key).
|
|
453
|
+
*/
|
|
454
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
350
455
|
}
|
|
351
456
|
|
|
352
457
|
export namespace FeatureCreateFeatureParams {
|
|
@@ -390,29 +495,45 @@ export namespace FeatureCreateFeatureParams {
|
|
|
390
495
|
|
|
391
496
|
export interface FeatureListFeaturesParams extends MyCursorIDPageParams {
|
|
392
497
|
/**
|
|
393
|
-
* Filter by entity ID
|
|
498
|
+
* Query param: Filter by entity ID
|
|
394
499
|
*/
|
|
395
500
|
id?: string;
|
|
396
501
|
|
|
397
502
|
/**
|
|
398
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
503
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
399
504
|
*/
|
|
400
505
|
createdAt?: FeatureListFeaturesParams.CreatedAt;
|
|
401
506
|
|
|
402
507
|
/**
|
|
403
|
-
* Filter by feature type. Supports comma-separated values for
|
|
508
|
+
* Query param: Filter by feature type. Supports comma-separated values for
|
|
509
|
+
* multiple types
|
|
404
510
|
*/
|
|
405
511
|
featureType?: Array<'BOOLEAN' | 'NUMBER' | 'ENUM'>;
|
|
406
512
|
|
|
407
513
|
/**
|
|
408
|
-
* Filter by meter type. Supports comma-separated values for multiple
|
|
514
|
+
* Query param: Filter by meter type. Supports comma-separated values for multiple
|
|
515
|
+
* types
|
|
409
516
|
*/
|
|
410
517
|
meterType?: Array<'None' | 'FLUCTUATING' | 'INCREMENTAL'>;
|
|
411
518
|
|
|
412
519
|
/**
|
|
413
|
-
* Filter by feature status. Supports comma-separated values for
|
|
520
|
+
* Query param: Filter by feature status. Supports comma-separated values for
|
|
521
|
+
* multiple statuses
|
|
414
522
|
*/
|
|
415
523
|
status?: Array<'NEW' | 'SUSPENDED' | 'ACTIVE'>;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
527
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
528
|
+
*/
|
|
529
|
+
'X-ACCOUNT-ID'?: string;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
533
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
534
|
+
* intrinsic to the key).
|
|
535
|
+
*/
|
|
536
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
416
537
|
}
|
|
417
538
|
|
|
418
539
|
export namespace FeatureListFeaturesParams {
|
|
@@ -442,43 +563,89 @@ export namespace FeatureListFeaturesParams {
|
|
|
442
563
|
}
|
|
443
564
|
}
|
|
444
565
|
|
|
566
|
+
export interface FeatureRetrieveFeatureParams {
|
|
567
|
+
/**
|
|
568
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
569
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
570
|
+
*/
|
|
571
|
+
'X-ACCOUNT-ID'?: string;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
575
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
576
|
+
* key).
|
|
577
|
+
*/
|
|
578
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export interface FeatureUnarchiveFeatureParams {
|
|
582
|
+
/**
|
|
583
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
584
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
585
|
+
*/
|
|
586
|
+
'X-ACCOUNT-ID'?: string;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
590
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
591
|
+
* key).
|
|
592
|
+
*/
|
|
593
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
594
|
+
}
|
|
595
|
+
|
|
445
596
|
export interface FeatureUpdateFeatureParams {
|
|
446
597
|
/**
|
|
447
|
-
* The description for the feature
|
|
598
|
+
* Body param: The description for the feature
|
|
448
599
|
*/
|
|
449
600
|
description?: string;
|
|
450
601
|
|
|
451
602
|
/**
|
|
452
|
-
* The display name for the feature
|
|
603
|
+
* Body param: The display name for the feature
|
|
453
604
|
*/
|
|
454
605
|
displayName?: string;
|
|
455
606
|
|
|
456
607
|
/**
|
|
457
|
-
* The configuration data for the feature
|
|
608
|
+
* Body param: The configuration data for the feature
|
|
458
609
|
*/
|
|
459
610
|
enumConfiguration?: Array<FeatureUpdateFeatureParams.EnumConfiguration>;
|
|
460
611
|
|
|
461
612
|
/**
|
|
462
|
-
* The units for the feature
|
|
613
|
+
* Body param: The units for the feature
|
|
463
614
|
*/
|
|
464
615
|
featureUnits?: string;
|
|
465
616
|
|
|
466
617
|
/**
|
|
467
|
-
* The plural units for the feature
|
|
618
|
+
* Body param: The plural units for the feature
|
|
468
619
|
*/
|
|
469
620
|
featureUnitsPlural?: string;
|
|
470
621
|
|
|
471
622
|
/**
|
|
472
|
-
* The additional metadata for the feature
|
|
623
|
+
* Body param: The additional metadata for the feature
|
|
473
624
|
*/
|
|
474
625
|
metadata?: { [key: string]: string };
|
|
475
626
|
|
|
627
|
+
/**
|
|
628
|
+
* Body param
|
|
629
|
+
*/
|
|
476
630
|
meter?: FeatureUpdateFeatureParams.Meter;
|
|
477
631
|
|
|
478
632
|
/**
|
|
479
|
-
* Unit transformation to be applied to the reported usage
|
|
633
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
480
634
|
*/
|
|
481
635
|
unitTransformation?: FeatureUpdateFeatureParams.UnitTransformation | null;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
639
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
640
|
+
*/
|
|
641
|
+
'X-ACCOUNT-ID'?: string;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
645
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
646
|
+
* intrinsic to the key).
|
|
647
|
+
*/
|
|
648
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
482
649
|
}
|
|
483
650
|
|
|
484
651
|
export namespace FeatureUpdateFeatureParams {
|
|
@@ -576,8 +743,11 @@ export declare namespace Features {
|
|
|
576
743
|
type Feature as Feature,
|
|
577
744
|
type FeatureListFeaturesResponse as FeatureListFeaturesResponse,
|
|
578
745
|
type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage,
|
|
746
|
+
type FeatureArchiveFeatureParams as FeatureArchiveFeatureParams,
|
|
579
747
|
type FeatureCreateFeatureParams as FeatureCreateFeatureParams,
|
|
580
748
|
type FeatureListFeaturesParams as FeatureListFeaturesParams,
|
|
749
|
+
type FeatureRetrieveFeatureParams as FeatureRetrieveFeatureParams,
|
|
750
|
+
type FeatureUnarchiveFeatureParams as FeatureUnarchiveFeatureParams,
|
|
581
751
|
type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams,
|
|
582
752
|
};
|
|
583
753
|
}
|
|
@@ -4,20 +4,29 @@ export {
|
|
|
4
4
|
Addons,
|
|
5
5
|
type Addon,
|
|
6
6
|
type AddonListResponse,
|
|
7
|
+
type AddonListChargesResponse,
|
|
7
8
|
type AddonPublishResponse,
|
|
8
9
|
type AddonRemoveDraftResponse,
|
|
9
10
|
type AddonCreateParams,
|
|
11
|
+
type AddonRetrieveParams,
|
|
10
12
|
type AddonUpdateParams,
|
|
11
13
|
type AddonListParams,
|
|
14
|
+
type AddonArchiveParams,
|
|
15
|
+
type AddonCreateDraftParams,
|
|
16
|
+
type AddonListChargesParams,
|
|
12
17
|
type AddonPublishParams,
|
|
18
|
+
type AddonRemoveDraftParams,
|
|
13
19
|
type AddonListResponsesMyCursorIDPage,
|
|
20
|
+
type AddonListChargesResponsesMyCursorIDPage,
|
|
14
21
|
} from './addons/index';
|
|
15
22
|
export {
|
|
16
23
|
Coupons,
|
|
17
24
|
type Coupon,
|
|
18
25
|
type CouponListResponse,
|
|
19
26
|
type CouponCreateParams,
|
|
27
|
+
type CouponRetrieveParams,
|
|
20
28
|
type CouponListParams,
|
|
29
|
+
type CouponArchiveCouponParams,
|
|
21
30
|
type CouponUpdateCouponParams,
|
|
22
31
|
type CouponListResponsesMyCursorIDPage,
|
|
23
32
|
} from './coupons';
|
|
@@ -40,23 +49,29 @@ export {
|
|
|
40
49
|
type CustomerImportResponse,
|
|
41
50
|
type CustomerListResourcesResponse,
|
|
42
51
|
type CustomerRetrieveEntitlementsResponse,
|
|
52
|
+
type CustomerRetrieveParams,
|
|
43
53
|
type CustomerUpdateParams,
|
|
44
54
|
type CustomerListParams,
|
|
55
|
+
type CustomerArchiveParams,
|
|
45
56
|
type CustomerCheckEntitlementParams,
|
|
46
57
|
type CustomerImportParams,
|
|
47
58
|
type CustomerListResourcesParams,
|
|
48
59
|
type CustomerProvisionParams,
|
|
49
60
|
type CustomerRetrieveEntitlementsParams,
|
|
61
|
+
type CustomerUnarchiveParams,
|
|
50
62
|
type CustomerListResponsesMyCursorIDPage,
|
|
51
63
|
type CustomerListResourcesResponsesMyCursorIDPage,
|
|
52
64
|
} from './customers/index';
|
|
53
|
-
export { Events, type EventReportResponse, type EventReportParams } from './events';
|
|
65
|
+
export { Events, type EventReportResponse, type EventReportParams } from './events/index';
|
|
54
66
|
export {
|
|
55
67
|
Features,
|
|
56
68
|
type Feature,
|
|
57
69
|
type FeatureListFeaturesResponse,
|
|
70
|
+
type FeatureArchiveFeatureParams,
|
|
58
71
|
type FeatureCreateFeatureParams,
|
|
59
72
|
type FeatureListFeaturesParams,
|
|
73
|
+
type FeatureRetrieveFeatureParams,
|
|
74
|
+
type FeatureUnarchiveFeatureParams,
|
|
60
75
|
type FeatureUpdateFeatureParams,
|
|
61
76
|
type FeatureListFeaturesResponsesMyCursorIDPage,
|
|
62
77
|
} from './features';
|
|
@@ -64,21 +79,33 @@ export {
|
|
|
64
79
|
Plans,
|
|
65
80
|
type Plan,
|
|
66
81
|
type PlanListResponse,
|
|
82
|
+
type PlanListChargesResponse,
|
|
83
|
+
type PlanListOverageChargesResponse,
|
|
67
84
|
type PlanPublishResponse,
|
|
68
85
|
type PlanRemoveDraftResponse,
|
|
69
86
|
type PlanCreateParams,
|
|
87
|
+
type PlanRetrieveParams,
|
|
70
88
|
type PlanUpdateParams,
|
|
71
89
|
type PlanListParams,
|
|
90
|
+
type PlanArchiveParams,
|
|
91
|
+
type PlanCreateDraftParams,
|
|
92
|
+
type PlanListChargesParams,
|
|
93
|
+
type PlanListOverageChargesParams,
|
|
72
94
|
type PlanPublishParams,
|
|
95
|
+
type PlanRemoveDraftParams,
|
|
73
96
|
type PlanListResponsesMyCursorIDPage,
|
|
97
|
+
type PlanListChargesResponsesMyCursorIDPage,
|
|
98
|
+
type PlanListOverageChargesResponsesMyCursorIDPage,
|
|
74
99
|
} from './plans/index';
|
|
75
100
|
export {
|
|
76
101
|
Products,
|
|
77
102
|
type Product,
|
|
78
103
|
type ProductListProductsResponse,
|
|
104
|
+
type ProductArchiveProductParams,
|
|
79
105
|
type ProductCreateProductParams,
|
|
80
106
|
type ProductDuplicateProductParams,
|
|
81
107
|
type ProductListProductsParams,
|
|
108
|
+
type ProductUnarchiveProductParams,
|
|
82
109
|
type ProductUpdateProductParams,
|
|
83
110
|
type ProductListProductsResponsesMyCursorIDPage,
|
|
84
111
|
} from './products';
|
|
@@ -89,6 +116,7 @@ export {
|
|
|
89
116
|
type SubscriptionImportResponse,
|
|
90
117
|
type SubscriptionPreviewResponse,
|
|
91
118
|
type SubscriptionProvisionResponse,
|
|
119
|
+
type SubscriptionRetrieveParams,
|
|
92
120
|
type SubscriptionUpdateParams,
|
|
93
121
|
type SubscriptionListParams,
|
|
94
122
|
type SubscriptionCancelParams,
|