@stigg/typescript 0.1.0-beta.2 → 0.1.0-beta.21
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 +170 -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.map +1 -1
- package/client.d.ts.map +1 -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.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +372 -32
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +372 -32
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +173 -15
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +173 -15
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +93 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +93 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +80 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +80 -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 +117 -21
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +117 -21
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +96 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +96 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +212 -27
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +212 -27
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +66 -7
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +66 -7
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +150 -28
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +150 -28
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +125 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +125 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +91 -26
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +91 -26
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +63 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +63 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +3 -4
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +3 -4
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +1 -3
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +0 -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 +249 -55
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +249 -55
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +201 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +201 -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 +116 -14
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +116 -14
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +104 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +104 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +48 -8
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +48 -8
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +42 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +42 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +93 -9
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +93 -9
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +89 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +89 -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 +14 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +14 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +21 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +16 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers/assignments.d.mts +200 -0
- package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/assignments.d.ts +200 -0
- package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/assignments.js +85 -0
- package/resources/v1/events/beta/customers/assignments.js.map +1 -0
- package/resources/v1/events/beta/customers/assignments.mjs +81 -0
- package/resources/v1/events/beta/customers/assignments.mjs.map +1 -0
- package/resources/v1/events/beta/customers/customers.d.mts +18 -0
- package/resources/v1/events/beta/customers/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/customers.d.ts +18 -0
- package/resources/v1/events/beta/customers/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/customers.js +25 -0
- package/resources/v1/events/beta/customers/customers.js.map +1 -0
- package/resources/v1/events/beta/customers/customers.mjs +20 -0
- package/resources/v1/events/beta/customers/customers.mjs.map +1 -0
- package/resources/v1/events/beta/customers/entities.d.mts +360 -0
- package/resources/v1/events/beta/customers/entities.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/entities.d.ts +360 -0
- package/resources/v1/events/beta/customers/entities.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/entities.js +159 -0
- package/resources/v1/events/beta/customers/entities.js.map +1 -0
- package/resources/v1/events/beta/customers/entities.mjs +155 -0
- package/resources/v1/events/beta/customers/entities.mjs.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.d.mts +251 -0
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.d.ts +251 -0
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.js +38 -0
- package/resources/v1/events/beta/customers/entitlements.js.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.mjs +34 -0
- package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1/events/beta/customers/index.d.mts +5 -0
- package/resources/v1/events/beta/customers/index.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/index.d.ts +5 -0
- package/resources/v1/events/beta/customers/index.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/index.js +13 -0
- package/resources/v1/events/beta/customers/index.js.map +1 -0
- package/resources/v1/events/beta/customers/index.mjs +6 -0
- package/resources/v1/events/beta/customers/index.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +2 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +2 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +6 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +3 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/entity-types.d.mts +166 -0
- package/resources/v1/events/beta/entity-types.d.mts.map +1 -0
- package/resources/v1/events/beta/entity-types.d.ts +166 -0
- package/resources/v1/events/beta/entity-types.d.ts.map +1 -0
- package/resources/v1/events/beta/entity-types.js +76 -0
- package/resources/v1/events/beta/entity-types.js.map +1 -0
- package/resources/v1/events/beta/entity-types.mjs +72 -0
- package/resources/v1/events/beta/entity-types.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +4 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +4 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +11 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +5 -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 +126 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export/data-export.d.ts +126 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export/data-export.js +45 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -0
- package/resources/v1/events/data-export/data-export.mjs +40 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -0
- package/resources/v1/events/data-export/destinations.d.mts +202 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +202 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +41 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +37 -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 +98 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +98 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +56 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +51 -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 +152 -31
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +152 -31
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +115 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +115 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +9 -9
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +9 -9
- 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 +93 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +93 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +80 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +80 -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 +565 -32
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +565 -32
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +204 -16
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +204 -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 +140 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +140 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +116 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +116 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +45 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +45 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +41 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +41 -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 +21 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +21 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +19 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +19 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +341 -85
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +341 -85
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +207 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +209 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +42 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +42 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +39 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +39 -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 +48 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +48 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +50 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +50 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +18 -18
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +18 -18
- 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.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/resources/v1/addons/addons.ts +908 -36
- package/src/resources/v1/addons/entitlements.ts +154 -10
- package/src/resources/v1/addons/index.ts +8 -0
- package/src/resources/v1/coupons.ts +194 -27
- package/src/resources/v1/credits/credits.ts +287 -35
- package/src/resources/v1/credits/custom-currencies.ts +245 -38
- package/src/resources/v1/credits/grants.ts +132 -26
- package/src/resources/v1/credits/index.ts +7 -6
- package/src/resources/v1/customers/customers.ts +415 -67
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +184 -18
- package/src/resources/v1/customers/payment-method.ts +85 -10
- package/src/resources/v1/customers/promotional-entitlements.ts +133 -11
- package/src/resources/v1/events/beta/beta.ts +35 -0
- package/src/resources/v1/events/beta/customers/assignments.ts +277 -0
- package/src/resources/v1/events/beta/customers/customers.ts +71 -0
- package/src/resources/v1/events/beta/customers/entities.ts +501 -0
- package/src/resources/v1/events/beta/customers/entitlements.ts +354 -0
- package/src/resources/v1/events/beta/customers/index.ts +26 -0
- package/src/resources/v1/events/beta/customers.ts +3 -0
- package/src/resources/v1/events/beta/entity-types.ts +226 -0
- package/src/resources/v1/events/beta/index.ts +12 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/data-export/data-export.ts +170 -0
- package/src/resources/v1/events/data-export/destinations.ts +243 -0
- package/src/resources/v1/events/data-export/index.ts +15 -0
- package/src/resources/v1/events/data-export.ts +3 -0
- package/src/resources/v1/events/events.ts +141 -0
- package/src/resources/v1/events/index.ts +11 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +252 -39
- package/src/resources/v1/index.ts +31 -1
- package/src/resources/v1/plans/entitlements.ts +154 -10
- package/src/resources/v1/plans/index.ts +11 -0
- package/src/resources/v1/plans/plans.ts +1509 -37
- package/src/resources/v1/products.ts +235 -30
- package/src/resources/v1/subscriptions/future-update.ts +84 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +42 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +509 -90
- package/src/resources/v1/subscriptions/usage.ts +74 -5
- package/src/resources/v1/usage.ts +77 -5
- package/src/resources/v1/v1.ts +62 -2
- 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
- package/resources/v1/credits/auto-recharge.d.mts +0 -84
- package/resources/v1/credits/auto-recharge.d.mts.map +0 -1
- package/resources/v1/credits/auto-recharge.d.ts +0 -84
- package/resources/v1/credits/auto-recharge.d.ts.map +0 -1
- package/resources/v1/credits/auto-recharge.js +0 -16
- package/resources/v1/credits/auto-recharge.js.map +0 -1
- package/resources/v1/credits/auto-recharge.mjs +0 -12
- package/resources/v1/credits/auto-recharge.mjs.map +0 -1
- package/src/resources/v1/credits/auto-recharge.ts +0 -109
|
@@ -7,12 +7,14 @@ import {
|
|
|
7
7
|
EntitlementCreateParams,
|
|
8
8
|
EntitlementCreateResponse,
|
|
9
9
|
EntitlementDeleteParams,
|
|
10
|
+
EntitlementListParams,
|
|
10
11
|
EntitlementListResponse,
|
|
11
12
|
EntitlementUpdateParams,
|
|
12
13
|
Entitlements,
|
|
13
14
|
} from './entitlements';
|
|
14
15
|
import { APIPromise } from '../../../core/api-promise';
|
|
15
16
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
17
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
16
18
|
import { RequestOptions } from '../../../internal/request-options';
|
|
17
19
|
import { path } from '../../../internal/utils/path';
|
|
18
20
|
|
|
@@ -24,71 +26,259 @@ export class Addons extends APIResource {
|
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
28
|
* Creates a new addon in draft status, associated with a specific product.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const addon = await client.v1.addons.create({
|
|
33
|
+
* id: 'id',
|
|
34
|
+
* displayName: 'displayName',
|
|
35
|
+
* productId: 'productId',
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
27
38
|
*/
|
|
28
|
-
create(
|
|
29
|
-
|
|
39
|
+
create(params: AddonCreateParams, options?: RequestOptions): APIPromise<Addon> {
|
|
40
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
41
|
+
return this._client.post('/api/v1/addons', {
|
|
42
|
+
body,
|
|
43
|
+
...options,
|
|
44
|
+
headers: buildHeaders([
|
|
45
|
+
{
|
|
46
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
47
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
48
|
+
},
|
|
49
|
+
options?.headers,
|
|
50
|
+
]),
|
|
51
|
+
});
|
|
30
52
|
}
|
|
31
53
|
|
|
32
54
|
/**
|
|
33
55
|
* Retrieves an addon by its unique identifier, including entitlements and pricing
|
|
34
56
|
* details.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const addon = await client.v1.addons.retrieve('x');
|
|
61
|
+
* ```
|
|
35
62
|
*/
|
|
36
|
-
retrieve(
|
|
37
|
-
|
|
63
|
+
retrieve(
|
|
64
|
+
id: string,
|
|
65
|
+
params: AddonRetrieveParams | null | undefined = {},
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): APIPromise<Addon> {
|
|
68
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
69
|
+
return this._client.get(path`/api/v1/addons/${id}`, {
|
|
70
|
+
...options,
|
|
71
|
+
headers: buildHeaders([
|
|
72
|
+
{
|
|
73
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
74
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
75
|
+
},
|
|
76
|
+
options?.headers,
|
|
77
|
+
]),
|
|
78
|
+
});
|
|
38
79
|
}
|
|
39
80
|
|
|
40
81
|
/**
|
|
41
82
|
* Updates an existing addon's properties such as display name, description, and
|
|
42
83
|
* metadata.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const addon = await client.v1.addons.update('x');
|
|
88
|
+
* ```
|
|
43
89
|
*/
|
|
44
|
-
update(id: string,
|
|
45
|
-
|
|
90
|
+
update(id: string, params: AddonUpdateParams, options?: RequestOptions): APIPromise<Addon> {
|
|
91
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
92
|
+
return this._client.patch(path`/api/v1/addons/${id}`, {
|
|
93
|
+
body,
|
|
94
|
+
...options,
|
|
95
|
+
headers: buildHeaders([
|
|
96
|
+
{
|
|
97
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
98
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
99
|
+
},
|
|
100
|
+
options?.headers,
|
|
101
|
+
]),
|
|
102
|
+
});
|
|
46
103
|
}
|
|
47
104
|
|
|
48
105
|
/**
|
|
49
106
|
* Retrieves a paginated list of addons in the environment.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```ts
|
|
110
|
+
* // Automatically fetches more pages as needed.
|
|
111
|
+
* for await (const addonListResponse of client.v1.addons.list()) {
|
|
112
|
+
* // ...
|
|
113
|
+
* }
|
|
114
|
+
* ```
|
|
50
115
|
*/
|
|
51
116
|
list(
|
|
52
|
-
|
|
117
|
+
params: AddonListParams | null | undefined = {},
|
|
53
118
|
options?: RequestOptions,
|
|
54
119
|
): PagePromise<AddonListResponsesMyCursorIDPage, AddonListResponse> {
|
|
120
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
55
121
|
return this._client.getAPIList('/api/v1/addons', MyCursorIDPage<AddonListResponse>, {
|
|
56
122
|
query,
|
|
57
123
|
...options,
|
|
124
|
+
headers: buildHeaders([
|
|
125
|
+
{
|
|
126
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
127
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
128
|
+
},
|
|
129
|
+
options?.headers,
|
|
130
|
+
]),
|
|
58
131
|
});
|
|
59
132
|
}
|
|
60
133
|
|
|
61
134
|
/**
|
|
62
135
|
* Archives an addon, preventing it from being used in new subscriptions.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```ts
|
|
139
|
+
* const addon = await client.v1.addons.archive('x');
|
|
140
|
+
* ```
|
|
63
141
|
*/
|
|
64
|
-
archive(
|
|
65
|
-
|
|
142
|
+
archive(
|
|
143
|
+
id: string,
|
|
144
|
+
params: AddonArchiveParams | null | undefined = {},
|
|
145
|
+
options?: RequestOptions,
|
|
146
|
+
): APIPromise<Addon> {
|
|
147
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
148
|
+
return this._client.post(path`/api/v1/addons/${id}/archive`, {
|
|
149
|
+
...options,
|
|
150
|
+
headers: buildHeaders([
|
|
151
|
+
{
|
|
152
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
153
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
154
|
+
},
|
|
155
|
+
options?.headers,
|
|
156
|
+
]),
|
|
157
|
+
});
|
|
66
158
|
}
|
|
67
159
|
|
|
68
160
|
/**
|
|
69
161
|
* Creates a draft version of an existing addon for modification before publishing.
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```ts
|
|
165
|
+
* const addon = await client.v1.addons.createDraft('x');
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
createDraft(
|
|
169
|
+
id: string,
|
|
170
|
+
params: AddonCreateDraftParams | null | undefined = {},
|
|
171
|
+
options?: RequestOptions,
|
|
172
|
+
): APIPromise<Addon> {
|
|
173
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
174
|
+
return this._client.post(path`/api/v1/addons/${id}/draft`, {
|
|
175
|
+
...options,
|
|
176
|
+
headers: buildHeaders([
|
|
177
|
+
{
|
|
178
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
179
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
180
|
+
},
|
|
181
|
+
options?.headers,
|
|
182
|
+
]),
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Retrieves the list of charges configured on an addon.
|
|
188
|
+
*
|
|
189
|
+
* @example
|
|
190
|
+
* ```ts
|
|
191
|
+
* // Automatically fetches more pages as needed.
|
|
192
|
+
* for await (const addonListChargesResponse of client.v1.addons.listCharges(
|
|
193
|
+
* 'x',
|
|
194
|
+
* )) {
|
|
195
|
+
* // ...
|
|
196
|
+
* }
|
|
197
|
+
* ```
|
|
70
198
|
*/
|
|
71
|
-
|
|
72
|
-
|
|
199
|
+
listCharges(
|
|
200
|
+
id: string,
|
|
201
|
+
params: AddonListChargesParams | null | undefined = {},
|
|
202
|
+
options?: RequestOptions,
|
|
203
|
+
): PagePromise<AddonListChargesResponsesMyCursorIDPage, AddonListChargesResponse> {
|
|
204
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
205
|
+
return this._client.getAPIList(
|
|
206
|
+
path`/api/v1/addons/${id}/charges`,
|
|
207
|
+
MyCursorIDPage<AddonListChargesResponse>,
|
|
208
|
+
{
|
|
209
|
+
query,
|
|
210
|
+
...options,
|
|
211
|
+
headers: buildHeaders([
|
|
212
|
+
{
|
|
213
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
214
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
215
|
+
},
|
|
216
|
+
options?.headers,
|
|
217
|
+
]),
|
|
218
|
+
},
|
|
219
|
+
);
|
|
73
220
|
}
|
|
74
221
|
|
|
75
222
|
/**
|
|
76
223
|
* Publishes a draft addon, making it available for use in subscriptions.
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* ```ts
|
|
227
|
+
* const response = await client.v1.addons.publish('x', {
|
|
228
|
+
* migrationType: 'NEW_CUSTOMERS',
|
|
229
|
+
* });
|
|
230
|
+
* ```
|
|
77
231
|
*/
|
|
78
|
-
publish(
|
|
79
|
-
|
|
232
|
+
publish(
|
|
233
|
+
id: string,
|
|
234
|
+
params: AddonPublishParams,
|
|
235
|
+
options?: RequestOptions,
|
|
236
|
+
): APIPromise<AddonPublishResponse> {
|
|
237
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
238
|
+
return this._client.post(path`/api/v1/addons/${id}/publish`, {
|
|
239
|
+
body,
|
|
240
|
+
...options,
|
|
241
|
+
headers: buildHeaders([
|
|
242
|
+
{
|
|
243
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
244
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
245
|
+
},
|
|
246
|
+
options?.headers,
|
|
247
|
+
]),
|
|
248
|
+
});
|
|
80
249
|
}
|
|
81
250
|
|
|
82
251
|
/**
|
|
83
252
|
* Removes a draft version of an addon.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```ts
|
|
256
|
+
* const response = await client.v1.addons.removeDraft('x');
|
|
257
|
+
* ```
|
|
84
258
|
*/
|
|
85
|
-
removeDraft(
|
|
86
|
-
|
|
259
|
+
removeDraft(
|
|
260
|
+
id: string,
|
|
261
|
+
params: AddonRemoveDraftParams | null | undefined = {},
|
|
262
|
+
options?: RequestOptions,
|
|
263
|
+
): APIPromise<AddonRemoveDraftResponse> {
|
|
264
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
265
|
+
return this._client.delete(path`/api/v1/addons/${id}/draft`, {
|
|
266
|
+
...options,
|
|
267
|
+
headers: buildHeaders([
|
|
268
|
+
{
|
|
269
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
270
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
271
|
+
},
|
|
272
|
+
options?.headers,
|
|
273
|
+
]),
|
|
274
|
+
});
|
|
87
275
|
}
|
|
88
276
|
}
|
|
89
277
|
|
|
90
278
|
export type AddonListResponsesMyCursorIDPage = MyCursorIDPage<AddonListResponse>;
|
|
91
279
|
|
|
280
|
+
export type AddonListChargesResponsesMyCursorIDPage = MyCursorIDPage<AddonListChargesResponse>;
|
|
281
|
+
|
|
92
282
|
/**
|
|
93
283
|
* Response object
|
|
94
284
|
*/
|
|
@@ -289,6 +479,550 @@ export namespace AddonListResponse {
|
|
|
289
479
|
}
|
|
290
480
|
}
|
|
291
481
|
|
|
482
|
+
/**
|
|
483
|
+
* A single pricing row on a plan or addon. Each charge encodes one (billingPeriod,
|
|
484
|
+
* billingModel, billingCadence, billingCountryCode) combination. Plans and addons
|
|
485
|
+
* own many of these — one per currency / billing period / feature.
|
|
486
|
+
*/
|
|
487
|
+
export interface AddonListChargesResponse {
|
|
488
|
+
/**
|
|
489
|
+
* Unique identifier of the charge
|
|
490
|
+
*/
|
|
491
|
+
id: string;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* The billing cadence (RECURRING or ONE_OFF)
|
|
495
|
+
*/
|
|
496
|
+
billingCadence: 'RECURRING' | 'ONE_OFF';
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED, MINIMUM_SPEND)
|
|
500
|
+
*/
|
|
501
|
+
billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* The billing period (MONTHLY or ANNUALLY)
|
|
505
|
+
*/
|
|
506
|
+
billingPeriod: 'MONTHLY' | 'ANNUALLY';
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Timestamp when the charge was created
|
|
510
|
+
*/
|
|
511
|
+
createdAt: string;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* ISO country code for localized pricing, if any
|
|
515
|
+
*/
|
|
516
|
+
billingCountryCode?: string | null;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Identifier in the external billing integration (e.g. Stripe price id), if any
|
|
520
|
+
*/
|
|
521
|
+
billingId?: string | null;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Block size for usage-based pricing
|
|
525
|
+
*/
|
|
526
|
+
blockSize?: number | null;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* When credits are granted (for credit-based pricing)
|
|
530
|
+
*/
|
|
531
|
+
creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY' | null;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Credit rate configuration for credit-based pricing
|
|
535
|
+
*/
|
|
536
|
+
creditRate?: AddonListChargesResponse.CreditRate | null;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Identifier in the linked CRM, if any
|
|
540
|
+
*/
|
|
541
|
+
crmId?: string | null;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Deep link to the charge in the linked CRM, if any
|
|
545
|
+
*/
|
|
546
|
+
crmLinkUrl?: string | null;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* The feature this charge meters, if metered
|
|
550
|
+
*/
|
|
551
|
+
featureId?: string | null;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Maximum unit quantity that can be purchased
|
|
555
|
+
*/
|
|
556
|
+
maxUnitQuantity?: number | null;
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* Minimum unit quantity that can be purchased
|
|
560
|
+
*/
|
|
561
|
+
minUnitQuantity?: number | null;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* The flat price amount and currency, when applicable
|
|
565
|
+
*/
|
|
566
|
+
price?: AddonListChargesResponse.Price | null;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Tiered pricing rows when the charge is tiered
|
|
570
|
+
*/
|
|
571
|
+
tiers?: Array<AddonListChargesResponse.Tier> | null;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Tiered pricing mode (VOLUME or GRADUATED) when the charge is tiered
|
|
575
|
+
*/
|
|
576
|
+
tiersMode?: 'VOLUME' | 'GRADUATED' | null;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Custom currency identifier for top-up pricing, if any
|
|
580
|
+
*/
|
|
581
|
+
topUpCustomCurrencyId?: string | null;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* True if this charge is referenced by at least one subscription
|
|
585
|
+
*/
|
|
586
|
+
usedInSubscriptions?: boolean | null;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export namespace AddonListChargesResponse {
|
|
590
|
+
/**
|
|
591
|
+
* Credit rate configuration for credit-based pricing
|
|
592
|
+
*/
|
|
593
|
+
export interface CreditRate {
|
|
594
|
+
/**
|
|
595
|
+
* Credit rate amount
|
|
596
|
+
*/
|
|
597
|
+
amount: number;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Custom currency identifier
|
|
601
|
+
*/
|
|
602
|
+
currencyId: string;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Optional cost formula expression
|
|
606
|
+
*/
|
|
607
|
+
costFormula?: string | null;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* The flat price amount and currency, when applicable
|
|
612
|
+
*/
|
|
613
|
+
export interface Price {
|
|
614
|
+
/**
|
|
615
|
+
* The price amount
|
|
616
|
+
*/
|
|
617
|
+
amount: number;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* ISO 4217 currency code
|
|
621
|
+
*/
|
|
622
|
+
currency:
|
|
623
|
+
| 'usd'
|
|
624
|
+
| 'aed'
|
|
625
|
+
| 'all'
|
|
626
|
+
| 'amd'
|
|
627
|
+
| 'ang'
|
|
628
|
+
| 'aud'
|
|
629
|
+
| 'awg'
|
|
630
|
+
| 'azn'
|
|
631
|
+
| 'bam'
|
|
632
|
+
| 'bbd'
|
|
633
|
+
| 'bdt'
|
|
634
|
+
| 'bgn'
|
|
635
|
+
| 'bif'
|
|
636
|
+
| 'bmd'
|
|
637
|
+
| 'bnd'
|
|
638
|
+
| 'bsd'
|
|
639
|
+
| 'bwp'
|
|
640
|
+
| 'byn'
|
|
641
|
+
| 'bzd'
|
|
642
|
+
| 'brl'
|
|
643
|
+
| 'cad'
|
|
644
|
+
| 'cdf'
|
|
645
|
+
| 'chf'
|
|
646
|
+
| 'cny'
|
|
647
|
+
| 'czk'
|
|
648
|
+
| 'dkk'
|
|
649
|
+
| 'dop'
|
|
650
|
+
| 'dzd'
|
|
651
|
+
| 'egp'
|
|
652
|
+
| 'etb'
|
|
653
|
+
| 'eur'
|
|
654
|
+
| 'fjd'
|
|
655
|
+
| 'gbp'
|
|
656
|
+
| 'gel'
|
|
657
|
+
| 'gip'
|
|
658
|
+
| 'gmd'
|
|
659
|
+
| 'gyd'
|
|
660
|
+
| 'hkd'
|
|
661
|
+
| 'hrk'
|
|
662
|
+
| 'htg'
|
|
663
|
+
| 'idr'
|
|
664
|
+
| 'ils'
|
|
665
|
+
| 'inr'
|
|
666
|
+
| 'isk'
|
|
667
|
+
| 'jmd'
|
|
668
|
+
| 'jpy'
|
|
669
|
+
| 'kes'
|
|
670
|
+
| 'kgs'
|
|
671
|
+
| 'khr'
|
|
672
|
+
| 'kmf'
|
|
673
|
+
| 'krw'
|
|
674
|
+
| 'kyd'
|
|
675
|
+
| 'kzt'
|
|
676
|
+
| 'lbp'
|
|
677
|
+
| 'lkr'
|
|
678
|
+
| 'lrd'
|
|
679
|
+
| 'lsl'
|
|
680
|
+
| 'mad'
|
|
681
|
+
| 'mdl'
|
|
682
|
+
| 'mga'
|
|
683
|
+
| 'mkd'
|
|
684
|
+
| 'mmk'
|
|
685
|
+
| 'mnt'
|
|
686
|
+
| 'mop'
|
|
687
|
+
| 'mro'
|
|
688
|
+
| 'mvr'
|
|
689
|
+
| 'mwk'
|
|
690
|
+
| 'mxn'
|
|
691
|
+
| 'myr'
|
|
692
|
+
| 'mzn'
|
|
693
|
+
| 'nad'
|
|
694
|
+
| 'ngn'
|
|
695
|
+
| 'nok'
|
|
696
|
+
| 'npr'
|
|
697
|
+
| 'nzd'
|
|
698
|
+
| 'pgk'
|
|
699
|
+
| 'php'
|
|
700
|
+
| 'pkr'
|
|
701
|
+
| 'pln'
|
|
702
|
+
| 'qar'
|
|
703
|
+
| 'ron'
|
|
704
|
+
| 'rsd'
|
|
705
|
+
| 'rub'
|
|
706
|
+
| 'rwf'
|
|
707
|
+
| 'sar'
|
|
708
|
+
| 'sbd'
|
|
709
|
+
| 'scr'
|
|
710
|
+
| 'sek'
|
|
711
|
+
| 'sgd'
|
|
712
|
+
| 'sle'
|
|
713
|
+
| 'sll'
|
|
714
|
+
| 'sos'
|
|
715
|
+
| 'szl'
|
|
716
|
+
| 'thb'
|
|
717
|
+
| 'tjs'
|
|
718
|
+
| 'top'
|
|
719
|
+
| 'try'
|
|
720
|
+
| 'ttd'
|
|
721
|
+
| 'tzs'
|
|
722
|
+
| 'uah'
|
|
723
|
+
| 'uzs'
|
|
724
|
+
| 'vnd'
|
|
725
|
+
| 'vuv'
|
|
726
|
+
| 'wst'
|
|
727
|
+
| 'xaf'
|
|
728
|
+
| 'xcd'
|
|
729
|
+
| 'yer'
|
|
730
|
+
| 'zar'
|
|
731
|
+
| 'zmw'
|
|
732
|
+
| 'clp'
|
|
733
|
+
| 'djf'
|
|
734
|
+
| 'gnf'
|
|
735
|
+
| 'ugx'
|
|
736
|
+
| 'pyg'
|
|
737
|
+
| 'xof'
|
|
738
|
+
| 'xpf';
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* A single tier within a tiered charge
|
|
743
|
+
*/
|
|
744
|
+
export interface Tier {
|
|
745
|
+
/**
|
|
746
|
+
* Flat price for this tier
|
|
747
|
+
*/
|
|
748
|
+
flatPrice?: Tier.FlatPrice | null;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Per-unit price in this tier
|
|
752
|
+
*/
|
|
753
|
+
unitPrice?: Tier.UnitPrice | null;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Upper bound of this tier (null for unlimited)
|
|
757
|
+
*/
|
|
758
|
+
upTo?: number | null;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
export namespace Tier {
|
|
762
|
+
/**
|
|
763
|
+
* Flat price for this tier
|
|
764
|
+
*/
|
|
765
|
+
export interface FlatPrice {
|
|
766
|
+
/**
|
|
767
|
+
* The price amount
|
|
768
|
+
*/
|
|
769
|
+
amount: number;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* ISO 4217 currency code
|
|
773
|
+
*/
|
|
774
|
+
currency:
|
|
775
|
+
| 'usd'
|
|
776
|
+
| 'aed'
|
|
777
|
+
| 'all'
|
|
778
|
+
| 'amd'
|
|
779
|
+
| 'ang'
|
|
780
|
+
| 'aud'
|
|
781
|
+
| 'awg'
|
|
782
|
+
| 'azn'
|
|
783
|
+
| 'bam'
|
|
784
|
+
| 'bbd'
|
|
785
|
+
| 'bdt'
|
|
786
|
+
| 'bgn'
|
|
787
|
+
| 'bif'
|
|
788
|
+
| 'bmd'
|
|
789
|
+
| 'bnd'
|
|
790
|
+
| 'bsd'
|
|
791
|
+
| 'bwp'
|
|
792
|
+
| 'byn'
|
|
793
|
+
| 'bzd'
|
|
794
|
+
| 'brl'
|
|
795
|
+
| 'cad'
|
|
796
|
+
| 'cdf'
|
|
797
|
+
| 'chf'
|
|
798
|
+
| 'cny'
|
|
799
|
+
| 'czk'
|
|
800
|
+
| 'dkk'
|
|
801
|
+
| 'dop'
|
|
802
|
+
| 'dzd'
|
|
803
|
+
| 'egp'
|
|
804
|
+
| 'etb'
|
|
805
|
+
| 'eur'
|
|
806
|
+
| 'fjd'
|
|
807
|
+
| 'gbp'
|
|
808
|
+
| 'gel'
|
|
809
|
+
| 'gip'
|
|
810
|
+
| 'gmd'
|
|
811
|
+
| 'gyd'
|
|
812
|
+
| 'hkd'
|
|
813
|
+
| 'hrk'
|
|
814
|
+
| 'htg'
|
|
815
|
+
| 'idr'
|
|
816
|
+
| 'ils'
|
|
817
|
+
| 'inr'
|
|
818
|
+
| 'isk'
|
|
819
|
+
| 'jmd'
|
|
820
|
+
| 'jpy'
|
|
821
|
+
| 'kes'
|
|
822
|
+
| 'kgs'
|
|
823
|
+
| 'khr'
|
|
824
|
+
| 'kmf'
|
|
825
|
+
| 'krw'
|
|
826
|
+
| 'kyd'
|
|
827
|
+
| 'kzt'
|
|
828
|
+
| 'lbp'
|
|
829
|
+
| 'lkr'
|
|
830
|
+
| 'lrd'
|
|
831
|
+
| 'lsl'
|
|
832
|
+
| 'mad'
|
|
833
|
+
| 'mdl'
|
|
834
|
+
| 'mga'
|
|
835
|
+
| 'mkd'
|
|
836
|
+
| 'mmk'
|
|
837
|
+
| 'mnt'
|
|
838
|
+
| 'mop'
|
|
839
|
+
| 'mro'
|
|
840
|
+
| 'mvr'
|
|
841
|
+
| 'mwk'
|
|
842
|
+
| 'mxn'
|
|
843
|
+
| 'myr'
|
|
844
|
+
| 'mzn'
|
|
845
|
+
| 'nad'
|
|
846
|
+
| 'ngn'
|
|
847
|
+
| 'nok'
|
|
848
|
+
| 'npr'
|
|
849
|
+
| 'nzd'
|
|
850
|
+
| 'pgk'
|
|
851
|
+
| 'php'
|
|
852
|
+
| 'pkr'
|
|
853
|
+
| 'pln'
|
|
854
|
+
| 'qar'
|
|
855
|
+
| 'ron'
|
|
856
|
+
| 'rsd'
|
|
857
|
+
| 'rub'
|
|
858
|
+
| 'rwf'
|
|
859
|
+
| 'sar'
|
|
860
|
+
| 'sbd'
|
|
861
|
+
| 'scr'
|
|
862
|
+
| 'sek'
|
|
863
|
+
| 'sgd'
|
|
864
|
+
| 'sle'
|
|
865
|
+
| 'sll'
|
|
866
|
+
| 'sos'
|
|
867
|
+
| 'szl'
|
|
868
|
+
| 'thb'
|
|
869
|
+
| 'tjs'
|
|
870
|
+
| 'top'
|
|
871
|
+
| 'try'
|
|
872
|
+
| 'ttd'
|
|
873
|
+
| 'tzs'
|
|
874
|
+
| 'uah'
|
|
875
|
+
| 'uzs'
|
|
876
|
+
| 'vnd'
|
|
877
|
+
| 'vuv'
|
|
878
|
+
| 'wst'
|
|
879
|
+
| 'xaf'
|
|
880
|
+
| 'xcd'
|
|
881
|
+
| 'yer'
|
|
882
|
+
| 'zar'
|
|
883
|
+
| 'zmw'
|
|
884
|
+
| 'clp'
|
|
885
|
+
| 'djf'
|
|
886
|
+
| 'gnf'
|
|
887
|
+
| 'ugx'
|
|
888
|
+
| 'pyg'
|
|
889
|
+
| 'xof'
|
|
890
|
+
| 'xpf';
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Per-unit price in this tier
|
|
895
|
+
*/
|
|
896
|
+
export interface UnitPrice {
|
|
897
|
+
/**
|
|
898
|
+
* The price amount
|
|
899
|
+
*/
|
|
900
|
+
amount: number;
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* ISO 4217 currency code
|
|
904
|
+
*/
|
|
905
|
+
currency:
|
|
906
|
+
| 'usd'
|
|
907
|
+
| 'aed'
|
|
908
|
+
| 'all'
|
|
909
|
+
| 'amd'
|
|
910
|
+
| 'ang'
|
|
911
|
+
| 'aud'
|
|
912
|
+
| 'awg'
|
|
913
|
+
| 'azn'
|
|
914
|
+
| 'bam'
|
|
915
|
+
| 'bbd'
|
|
916
|
+
| 'bdt'
|
|
917
|
+
| 'bgn'
|
|
918
|
+
| 'bif'
|
|
919
|
+
| 'bmd'
|
|
920
|
+
| 'bnd'
|
|
921
|
+
| 'bsd'
|
|
922
|
+
| 'bwp'
|
|
923
|
+
| 'byn'
|
|
924
|
+
| 'bzd'
|
|
925
|
+
| 'brl'
|
|
926
|
+
| 'cad'
|
|
927
|
+
| 'cdf'
|
|
928
|
+
| 'chf'
|
|
929
|
+
| 'cny'
|
|
930
|
+
| 'czk'
|
|
931
|
+
| 'dkk'
|
|
932
|
+
| 'dop'
|
|
933
|
+
| 'dzd'
|
|
934
|
+
| 'egp'
|
|
935
|
+
| 'etb'
|
|
936
|
+
| 'eur'
|
|
937
|
+
| 'fjd'
|
|
938
|
+
| 'gbp'
|
|
939
|
+
| 'gel'
|
|
940
|
+
| 'gip'
|
|
941
|
+
| 'gmd'
|
|
942
|
+
| 'gyd'
|
|
943
|
+
| 'hkd'
|
|
944
|
+
| 'hrk'
|
|
945
|
+
| 'htg'
|
|
946
|
+
| 'idr'
|
|
947
|
+
| 'ils'
|
|
948
|
+
| 'inr'
|
|
949
|
+
| 'isk'
|
|
950
|
+
| 'jmd'
|
|
951
|
+
| 'jpy'
|
|
952
|
+
| 'kes'
|
|
953
|
+
| 'kgs'
|
|
954
|
+
| 'khr'
|
|
955
|
+
| 'kmf'
|
|
956
|
+
| 'krw'
|
|
957
|
+
| 'kyd'
|
|
958
|
+
| 'kzt'
|
|
959
|
+
| 'lbp'
|
|
960
|
+
| 'lkr'
|
|
961
|
+
| 'lrd'
|
|
962
|
+
| 'lsl'
|
|
963
|
+
| 'mad'
|
|
964
|
+
| 'mdl'
|
|
965
|
+
| 'mga'
|
|
966
|
+
| 'mkd'
|
|
967
|
+
| 'mmk'
|
|
968
|
+
| 'mnt'
|
|
969
|
+
| 'mop'
|
|
970
|
+
| 'mro'
|
|
971
|
+
| 'mvr'
|
|
972
|
+
| 'mwk'
|
|
973
|
+
| 'mxn'
|
|
974
|
+
| 'myr'
|
|
975
|
+
| 'mzn'
|
|
976
|
+
| 'nad'
|
|
977
|
+
| 'ngn'
|
|
978
|
+
| 'nok'
|
|
979
|
+
| 'npr'
|
|
980
|
+
| 'nzd'
|
|
981
|
+
| 'pgk'
|
|
982
|
+
| 'php'
|
|
983
|
+
| 'pkr'
|
|
984
|
+
| 'pln'
|
|
985
|
+
| 'qar'
|
|
986
|
+
| 'ron'
|
|
987
|
+
| 'rsd'
|
|
988
|
+
| 'rub'
|
|
989
|
+
| 'rwf'
|
|
990
|
+
| 'sar'
|
|
991
|
+
| 'sbd'
|
|
992
|
+
| 'scr'
|
|
993
|
+
| 'sek'
|
|
994
|
+
| 'sgd'
|
|
995
|
+
| 'sle'
|
|
996
|
+
| 'sll'
|
|
997
|
+
| 'sos'
|
|
998
|
+
| 'szl'
|
|
999
|
+
| 'thb'
|
|
1000
|
+
| 'tjs'
|
|
1001
|
+
| 'top'
|
|
1002
|
+
| 'try'
|
|
1003
|
+
| 'ttd'
|
|
1004
|
+
| 'tzs'
|
|
1005
|
+
| 'uah'
|
|
1006
|
+
| 'uzs'
|
|
1007
|
+
| 'vnd'
|
|
1008
|
+
| 'vuv'
|
|
1009
|
+
| 'wst'
|
|
1010
|
+
| 'xaf'
|
|
1011
|
+
| 'xcd'
|
|
1012
|
+
| 'yer'
|
|
1013
|
+
| 'zar'
|
|
1014
|
+
| 'zmw'
|
|
1015
|
+
| 'clp'
|
|
1016
|
+
| 'djf'
|
|
1017
|
+
| 'gnf'
|
|
1018
|
+
| 'ugx'
|
|
1019
|
+
| 'pyg'
|
|
1020
|
+
| 'xof'
|
|
1021
|
+
| 'xpf';
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
|
|
292
1026
|
/**
|
|
293
1027
|
* Response containing task ID for publish operation
|
|
294
1028
|
*/
|
|
@@ -323,91 +1057,134 @@ export namespace AddonRemoveDraftResponse {
|
|
|
323
1057
|
|
|
324
1058
|
export interface AddonCreateParams {
|
|
325
1059
|
/**
|
|
326
|
-
* The unique identifier for the entity
|
|
1060
|
+
* Body param: The unique identifier for the entity
|
|
327
1061
|
*/
|
|
328
1062
|
id: string;
|
|
329
1063
|
|
|
330
1064
|
/**
|
|
331
|
-
* The display name of the package
|
|
1065
|
+
* Body param: The display name of the package
|
|
332
1066
|
*/
|
|
333
1067
|
displayName: string;
|
|
334
1068
|
|
|
335
1069
|
/**
|
|
336
|
-
* The product id of the package
|
|
1070
|
+
* Body param: The product id of the package
|
|
337
1071
|
*/
|
|
338
1072
|
productId: string;
|
|
339
1073
|
|
|
340
1074
|
/**
|
|
341
|
-
* The unique identifier for the entity in the billing provider
|
|
1075
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
342
1076
|
*/
|
|
343
1077
|
billingId?: string | null;
|
|
344
1078
|
|
|
345
1079
|
/**
|
|
346
|
-
* The description of the package
|
|
1080
|
+
* Body param: The description of the package
|
|
347
1081
|
*/
|
|
348
1082
|
description?: string | null;
|
|
349
1083
|
|
|
350
1084
|
/**
|
|
351
|
-
* The maximum quantity of this addon that can be added to a
|
|
1085
|
+
* Body param: The maximum quantity of this addon that can be added to a
|
|
1086
|
+
* subscription
|
|
352
1087
|
*/
|
|
353
1088
|
maxQuantity?: number | null;
|
|
354
1089
|
|
|
355
1090
|
/**
|
|
356
|
-
* Metadata associated with the entity
|
|
1091
|
+
* Body param: Metadata associated with the entity
|
|
357
1092
|
*/
|
|
358
1093
|
metadata?: { [key: string]: string };
|
|
359
1094
|
|
|
360
1095
|
/**
|
|
361
|
-
* The pricing type of the package
|
|
1096
|
+
* Body param: The pricing type of the package
|
|
362
1097
|
*/
|
|
363
1098
|
pricingType?: 'FREE' | 'PAID' | 'CUSTOM' | null;
|
|
364
1099
|
|
|
365
1100
|
/**
|
|
366
|
-
* The status of the package
|
|
1101
|
+
* Body param: The status of the package
|
|
367
1102
|
*/
|
|
368
1103
|
status?: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1107
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1108
|
+
*/
|
|
1109
|
+
'X-ACCOUNT-ID'?: string;
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1113
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1114
|
+
* intrinsic to the key).
|
|
1115
|
+
*/
|
|
1116
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
export interface AddonRetrieveParams {
|
|
1120
|
+
/**
|
|
1121
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1122
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1123
|
+
*/
|
|
1124
|
+
'X-ACCOUNT-ID'?: string;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1128
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1129
|
+
* key).
|
|
1130
|
+
*/
|
|
1131
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
369
1132
|
}
|
|
370
1133
|
|
|
371
1134
|
export interface AddonUpdateParams {
|
|
372
1135
|
/**
|
|
373
|
-
* The unique identifier for the entity in the billing provider
|
|
1136
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
374
1137
|
*/
|
|
375
1138
|
billingId?: string | null;
|
|
376
1139
|
|
|
377
1140
|
/**
|
|
378
|
-
* Pricing configuration to set on the addon draft
|
|
1141
|
+
* Body param: Pricing configuration to set on the addon draft
|
|
379
1142
|
*/
|
|
380
1143
|
charges?: AddonUpdateParams.Charges;
|
|
381
1144
|
|
|
382
1145
|
/**
|
|
383
|
-
* List of addons the addon is dependant on
|
|
1146
|
+
* Body param: List of addons the addon is dependant on
|
|
384
1147
|
*/
|
|
385
1148
|
dependencies?: Array<string> | null;
|
|
386
1149
|
|
|
387
1150
|
/**
|
|
388
|
-
* The description of the package
|
|
1151
|
+
* Body param: The description of the package
|
|
389
1152
|
*/
|
|
390
1153
|
description?: string | null;
|
|
391
1154
|
|
|
392
1155
|
/**
|
|
393
|
-
* The display name of the package
|
|
1156
|
+
* Body param: The display name of the package
|
|
394
1157
|
*/
|
|
395
1158
|
displayName?: string;
|
|
396
1159
|
|
|
397
1160
|
/**
|
|
398
|
-
* The maximum quantity of this addon that can be added to a
|
|
1161
|
+
* Body param: The maximum quantity of this addon that can be added to a
|
|
1162
|
+
* subscription
|
|
399
1163
|
*/
|
|
400
1164
|
maxQuantity?: number | null;
|
|
401
1165
|
|
|
402
1166
|
/**
|
|
403
|
-
* Metadata associated with the entity
|
|
1167
|
+
* Body param: Metadata associated with the entity
|
|
404
1168
|
*/
|
|
405
1169
|
metadata?: { [key: string]: string };
|
|
406
1170
|
|
|
407
1171
|
/**
|
|
408
|
-
* The status of the package
|
|
1172
|
+
* Body param: The status of the package
|
|
409
1173
|
*/
|
|
410
1174
|
status?: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1178
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1179
|
+
*/
|
|
1180
|
+
'X-ACCOUNT-ID'?: string;
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1184
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1185
|
+
* intrinsic to the key).
|
|
1186
|
+
*/
|
|
1187
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
411
1188
|
}
|
|
412
1189
|
|
|
413
1190
|
export namespace AddonUpdateParams {
|
|
@@ -1780,19 +2557,33 @@ export namespace AddonUpdateParams {
|
|
|
1780
2557
|
|
|
1781
2558
|
export interface AddonListParams extends MyCursorIDPageParams {
|
|
1782
2559
|
/**
|
|
1783
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
2560
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
1784
2561
|
*/
|
|
1785
2562
|
createdAt?: AddonListParams.CreatedAt;
|
|
1786
2563
|
|
|
1787
2564
|
/**
|
|
1788
|
-
* Filter by product ID
|
|
2565
|
+
* Query param: Filter by product ID
|
|
1789
2566
|
*/
|
|
1790
2567
|
productId?: string;
|
|
1791
2568
|
|
|
1792
2569
|
/**
|
|
1793
|
-
* Filter by status. Supports comma-separated values for multiple
|
|
2570
|
+
* Query param: Filter by status. Supports comma-separated values for multiple
|
|
2571
|
+
* statuses
|
|
1794
2572
|
*/
|
|
1795
2573
|
status?: Array<'DRAFT' | 'PUBLISHED' | 'ARCHIVED'>;
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2577
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2578
|
+
*/
|
|
2579
|
+
'X-ACCOUNT-ID'?: string;
|
|
2580
|
+
|
|
2581
|
+
/**
|
|
2582
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2583
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2584
|
+
* intrinsic to the key).
|
|
2585
|
+
*/
|
|
2586
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1796
2587
|
}
|
|
1797
2588
|
|
|
1798
2589
|
export namespace AddonListParams {
|
|
@@ -1822,11 +2613,84 @@ export namespace AddonListParams {
|
|
|
1822
2613
|
}
|
|
1823
2614
|
}
|
|
1824
2615
|
|
|
2616
|
+
export interface AddonArchiveParams {
|
|
2617
|
+
/**
|
|
2618
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
2619
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
2620
|
+
*/
|
|
2621
|
+
'X-ACCOUNT-ID'?: string;
|
|
2622
|
+
|
|
2623
|
+
/**
|
|
2624
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
2625
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
2626
|
+
* key).
|
|
2627
|
+
*/
|
|
2628
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
export interface AddonCreateDraftParams {
|
|
2632
|
+
/**
|
|
2633
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
2634
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
2635
|
+
*/
|
|
2636
|
+
'X-ACCOUNT-ID'?: string;
|
|
2637
|
+
|
|
2638
|
+
/**
|
|
2639
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
2640
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
2641
|
+
* key).
|
|
2642
|
+
*/
|
|
2643
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
export interface AddonListChargesParams extends MyCursorIDPageParams {
|
|
2647
|
+
/**
|
|
2648
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2649
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2650
|
+
*/
|
|
2651
|
+
'X-ACCOUNT-ID'?: string;
|
|
2652
|
+
|
|
2653
|
+
/**
|
|
2654
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2655
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2656
|
+
* intrinsic to the key).
|
|
2657
|
+
*/
|
|
2658
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
1825
2661
|
export interface AddonPublishParams {
|
|
1826
2662
|
/**
|
|
1827
|
-
* The migration type of the package
|
|
2663
|
+
* Body param: The migration type of the package
|
|
1828
2664
|
*/
|
|
1829
2665
|
migrationType: 'NEW_CUSTOMERS' | 'ALL_CUSTOMERS';
|
|
2666
|
+
|
|
2667
|
+
/**
|
|
2668
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2669
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2670
|
+
*/
|
|
2671
|
+
'X-ACCOUNT-ID'?: string;
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2675
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2676
|
+
* intrinsic to the key).
|
|
2677
|
+
*/
|
|
2678
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
export interface AddonRemoveDraftParams {
|
|
2682
|
+
/**
|
|
2683
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
2684
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
2685
|
+
*/
|
|
2686
|
+
'X-ACCOUNT-ID'?: string;
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
2690
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
2691
|
+
* key).
|
|
2692
|
+
*/
|
|
2693
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1830
2694
|
}
|
|
1831
2695
|
|
|
1832
2696
|
Addons.Entitlements = Entitlements;
|
|
@@ -1835,13 +2699,20 @@ export declare namespace Addons {
|
|
|
1835
2699
|
export {
|
|
1836
2700
|
type Addon as Addon,
|
|
1837
2701
|
type AddonListResponse as AddonListResponse,
|
|
2702
|
+
type AddonListChargesResponse as AddonListChargesResponse,
|
|
1838
2703
|
type AddonPublishResponse as AddonPublishResponse,
|
|
1839
2704
|
type AddonRemoveDraftResponse as AddonRemoveDraftResponse,
|
|
1840
2705
|
type AddonListResponsesMyCursorIDPage as AddonListResponsesMyCursorIDPage,
|
|
2706
|
+
type AddonListChargesResponsesMyCursorIDPage as AddonListChargesResponsesMyCursorIDPage,
|
|
1841
2707
|
type AddonCreateParams as AddonCreateParams,
|
|
2708
|
+
type AddonRetrieveParams as AddonRetrieveParams,
|
|
1842
2709
|
type AddonUpdateParams as AddonUpdateParams,
|
|
1843
2710
|
type AddonListParams as AddonListParams,
|
|
2711
|
+
type AddonArchiveParams as AddonArchiveParams,
|
|
2712
|
+
type AddonCreateDraftParams as AddonCreateDraftParams,
|
|
2713
|
+
type AddonListChargesParams as AddonListChargesParams,
|
|
1844
2714
|
type AddonPublishParams as AddonPublishParams,
|
|
2715
|
+
type AddonRemoveDraftParams as AddonRemoveDraftParams,
|
|
1845
2716
|
};
|
|
1846
2717
|
|
|
1847
2718
|
export {
|
|
@@ -1851,6 +2722,7 @@ export declare namespace Addons {
|
|
|
1851
2722
|
type EntitlementListResponse as EntitlementListResponse,
|
|
1852
2723
|
type EntitlementCreateParams as EntitlementCreateParams,
|
|
1853
2724
|
type EntitlementUpdateParams as EntitlementUpdateParams,
|
|
2725
|
+
type EntitlementListParams as EntitlementListParams,
|
|
1854
2726
|
type EntitlementDeleteParams as EntitlementDeleteParams,
|
|
1855
2727
|
};
|
|
1856
2728
|
}
|