@stigg/typescript 0.1.0-beta.4 → 0.1.0-beta.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +314 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +4 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -1
- package/client.d.ts.map +1 -1
- package/client.js +15 -4
- package/client.js.map +1 -1
- package/client.mjs +15 -4
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +143 -33
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +143 -33
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +110 -17
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +110 -17
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +92 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +92 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -8
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/addons.d.mts.map +1 -1
- package/resources/v1/addons.d.ts.map +1 -1
- package/resources/v1/addons.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +80 -20
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +80 -20
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/consumption.d.mts +199 -0
- package/resources/v1/credits/consumption.d.mts.map +1 -0
- package/resources/v1/credits/consumption.d.ts +199 -0
- package/resources/v1/credits/consumption.d.ts.map +1 -0
- package/resources/v1/credits/consumption.js +46 -0
- package/resources/v1/credits/consumption.js.map +1 -0
- package/resources/v1/credits/consumption.mjs +42 -0
- package/resources/v1/credits/consumption.mjs.map +1 -0
- package/resources/v1/credits/credits.d.mts +118 -25
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +118 -25
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +40 -5
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +40 -5
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +96 -23
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +96 -23
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +60 -23
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +60 -23
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +3 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +3 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +3 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +1 -0
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/credits.d.mts.map +1 -1
- package/resources/v1/credits.d.ts.map +1 -1
- package/resources/v1/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +170 -53
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +170 -53
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -19
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +67 -12
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +67 -12
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +32 -8
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +32 -8
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/customers.d.mts.map +1 -1
- package/resources/v1/customers.d.ts.map +1 -1
- package/resources/v1/customers.mjs.map +1 -1
- package/resources/v1/events/beta/beta.d.mts +10 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +10 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +17 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +12 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +160 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +160 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +32 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +28 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +3 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +3 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +9 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +4 -0
- package/resources/v1/events/beta/index.mjs.map +1 -0
- package/resources/v1/events/beta.d.mts +2 -0
- package/resources/v1/events/beta.d.mts.map +1 -0
- package/resources/v1/events/beta.d.ts +2 -0
- package/resources/v1/events/beta.d.ts.map +1 -0
- package/resources/v1/events/beta.js +6 -0
- package/resources/v1/events/beta.js.map +1 -0
- package/resources/v1/events/beta.mjs +3 -0
- package/resources/v1/events/beta.mjs.map +1 -0
- package/resources/v1/events/data-export/data-export.d.mts +211 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export/data-export.d.ts +211 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export/data-export.js +71 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -0
- package/resources/v1/events/data-export/data-export.mjs +66 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -0
- package/resources/v1/events/data-export/destinations.d.mts +321 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +321 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +65 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +61 -0
- package/resources/v1/events/data-export/destinations.mjs.map +1 -0
- package/resources/v1/events/data-export/index.d.mts +3 -0
- package/resources/v1/events/data-export/index.d.mts.map +1 -0
- package/resources/v1/events/data-export/index.d.ts +3 -0
- package/resources/v1/events/data-export/index.d.ts.map +1 -0
- package/resources/v1/events/data-export/index.js +9 -0
- package/resources/v1/events/data-export/index.js.map +1 -0
- package/resources/v1/events/data-export/index.mjs +4 -0
- package/resources/v1/events/data-export/index.mjs.map +1 -0
- package/resources/v1/events/data-export.d.mts +2 -0
- package/resources/v1/events/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export.d.ts +2 -0
- package/resources/v1/events/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export.js +6 -0
- package/resources/v1/events/data-export.js.map +1 -0
- package/resources/v1/events/data-export.mjs +3 -0
- package/resources/v1/events/data-export.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +85 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +85 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +43 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +38 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +4 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +4 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +11 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +5 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events.d.mts +1 -65
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +1 -65
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +2 -15
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +1 -13
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +108 -30
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +108 -30
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +8 -8
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +8 -8
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +6 -6
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +92 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +92 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -8
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +156 -34
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +156 -34
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +127 -20
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +127 -20
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/plans.d.mts.map +1 -1
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +97 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -4
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +15 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +252 -76
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +252 -76
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -4
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +71 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +71 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +16 -16
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +16 -16
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +249 -0
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1-beta/customers/assignments.d.ts +249 -0
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1-beta/customers/assignments.js +84 -0
- package/resources/v1-beta/customers/assignments.js.map +1 -0
- package/resources/v1-beta/customers/assignments.mjs +80 -0
- package/resources/v1-beta/customers/assignments.mjs.map +1 -0
- package/resources/v1-beta/customers/customers.d.mts +18 -0
- package/resources/v1-beta/customers/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers/customers.d.ts +18 -0
- package/resources/v1-beta/customers/customers.d.ts.map +1 -0
- package/resources/v1-beta/customers/customers.js +25 -0
- package/resources/v1-beta/customers/customers.js.map +1 -0
- package/resources/v1-beta/customers/customers.mjs +20 -0
- package/resources/v1-beta/customers/customers.mjs.map +1 -0
- package/resources/v1-beta/customers/entities.d.mts +351 -0
- package/resources/v1-beta/customers/entities.d.mts.map +1 -0
- package/resources/v1-beta/customers/entities.d.ts +351 -0
- package/resources/v1-beta/customers/entities.d.ts.map +1 -0
- package/resources/v1-beta/customers/entities.js +150 -0
- package/resources/v1-beta/customers/entities.js.map +1 -0
- package/resources/v1-beta/customers/entities.mjs +146 -0
- package/resources/v1-beta/customers/entities.mjs.map +1 -0
- package/resources/v1-beta/customers/entitlements.d.mts +261 -0
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/v1-beta/customers/entitlements.d.ts +261 -0
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1-beta/customers/entitlements.js +36 -0
- package/resources/v1-beta/customers/entitlements.js.map +1 -0
- package/resources/v1-beta/customers/entitlements.mjs +32 -0
- package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1-beta/customers/index.d.mts +5 -0
- package/resources/v1-beta/customers/index.d.mts.map +1 -0
- package/resources/v1-beta/customers/index.d.ts +5 -0
- package/resources/v1-beta/customers/index.d.ts.map +1 -0
- package/resources/v1-beta/customers/index.js +13 -0
- package/resources/v1-beta/customers/index.js.map +1 -0
- package/resources/v1-beta/customers/index.mjs +6 -0
- package/resources/v1-beta/customers/index.mjs.map +1 -0
- package/resources/v1-beta/customers.d.mts +2 -0
- package/resources/v1-beta/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers.d.ts +2 -0
- package/resources/v1-beta/customers.d.ts.map +1 -0
- package/resources/v1-beta/customers.js +6 -0
- package/resources/v1-beta/customers.js.map +1 -0
- package/resources/v1-beta/customers.mjs +3 -0
- package/resources/v1-beta/customers.mjs.map +1 -0
- package/resources/v1-beta/entity-types.d.mts +165 -0
- package/resources/v1-beta/entity-types.d.mts.map +1 -0
- package/resources/v1-beta/entity-types.d.ts +165 -0
- package/resources/v1-beta/entity-types.d.ts.map +1 -0
- package/resources/v1-beta/entity-types.js +75 -0
- package/resources/v1-beta/entity-types.js.map +1 -0
- package/resources/v1-beta/entity-types.mjs +71 -0
- package/resources/v1-beta/entity-types.mjs.map +1 -0
- package/resources/v1-beta/index.d.mts +4 -0
- package/resources/v1-beta/index.d.mts.map +1 -0
- package/resources/v1-beta/index.d.ts +4 -0
- package/resources/v1-beta/index.d.ts.map +1 -0
- package/resources/v1-beta/index.js +11 -0
- package/resources/v1-beta/index.js.map +1 -0
- package/resources/v1-beta/index.mjs +5 -0
- package/resources/v1-beta/index.mjs.map +1 -0
- package/resources/v1-beta/v1-beta.d.mts +14 -0
- package/resources/v1-beta/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta/v1-beta.d.ts +14 -0
- package/resources/v1-beta/v1-beta.d.ts.map +1 -0
- package/resources/v1-beta/v1-beta.js +21 -0
- package/resources/v1-beta/v1-beta.js.map +1 -0
- package/resources/v1-beta/v1-beta.mjs +16 -0
- package/resources/v1-beta/v1-beta.mjs.map +1 -0
- package/resources/v1-beta.d.mts +2 -0
- package/resources/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta.d.ts +2 -0
- package/resources/v1-beta.d.ts.map +1 -0
- package/resources/v1-beta.js +6 -0
- package/resources/v1-beta.js.map +1 -0
- package/resources/v1-beta.mjs +3 -0
- package/resources/v1-beta.mjs.map +1 -0
- package/resources/v1.d.mts.map +1 -1
- package/resources/v1.d.ts.map +1 -1
- package/resources/v1.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +17 -4
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +286 -39
- package/src/resources/v1/addons/entitlements.ts +158 -10
- package/src/resources/v1/addons/index.ts +5 -0
- package/src/resources/v1/coupons.ts +154 -23
- package/src/resources/v1/credits/consumption.ts +269 -0
- package/src/resources/v1/credits/credits.ts +185 -23
- package/src/resources/v1/credits/custom-currencies.ts +188 -30
- package/src/resources/v1/credits/grants.ts +102 -24
- package/src/resources/v1/credits/index.ts +11 -0
- package/src/resources/v1/customers/customers.ts +338 -62
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +140 -18
- package/src/resources/v1/customers/payment-method.ts +70 -10
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -11
- package/src/resources/v1/events/beta/beta.ts +19 -0
- package/src/resources/v1/events/beta/customers.ts +212 -0
- package/src/resources/v1/events/beta/index.ts +8 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/data-export/data-export.ts +316 -0
- package/src/resources/v1/events/data-export/destinations.ts +434 -0
- package/src/resources/v1/events/data-export/index.ts +20 -0
- package/src/resources/v1/events/data-export.ts +3 -0
- package/src/resources/v1/events/events.ts +132 -0
- package/src/resources/v1/events/index.ts +13 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +204 -34
- package/src/resources/v1/index.ts +20 -1
- package/src/resources/v1/plans/entitlements.ts +158 -10
- package/src/resources/v1/plans/index.ts +5 -0
- package/src/resources/v1/plans/plans.ts +314 -43
- package/src/resources/v1/products.ts +189 -27
- package/src/resources/v1/subscriptions/future-update.ts +68 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +423 -83
- package/src/resources/v1/subscriptions/usage.ts +61 -5
- package/src/resources/v1/usage.ts +108 -5
- package/src/resources/v1/v1.ts +40 -2
- package/src/resources/v1-beta/customers/assignments.ts +336 -0
- package/src/resources/v1-beta/customers/customers.ts +71 -0
- package/src/resources/v1-beta/customers/entities.ts +492 -0
- package/src/resources/v1-beta/customers/entitlements.ts +366 -0
- package/src/resources/v1-beta/customers/index.ts +26 -0
- package/src/resources/v1-beta/customers.ts +3 -0
- package/src/resources/v1-beta/entity-types.ts +225 -0
- package/src/resources/v1-beta/index.ts +12 -0
- package/src/resources/v1-beta/v1-beta.ts +35 -0
- package/src/resources/v1-beta.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
5
|
import { path } from "../../../internal/utils/path.mjs";
|
|
5
6
|
/**
|
|
6
7
|
* Operations related to credit grants
|
|
@@ -10,24 +11,53 @@ export class Grants extends APIResource {
|
|
|
10
11
|
* Creates a new credit grant for a customer with specified amount, type, and
|
|
11
12
|
* optional billing configuration.
|
|
12
13
|
*/
|
|
13
|
-
create(
|
|
14
|
-
|
|
14
|
+
create(params, options) {
|
|
15
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
16
|
+
return this._client.post('/api/v1/credits/grants', {
|
|
17
|
+
body,
|
|
18
|
+
...options,
|
|
19
|
+
headers: buildHeaders([
|
|
20
|
+
{
|
|
21
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
22
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
23
|
+
},
|
|
24
|
+
options?.headers,
|
|
25
|
+
]),
|
|
26
|
+
});
|
|
15
27
|
}
|
|
16
28
|
/**
|
|
17
29
|
* Retrieves a paginated list of credit grants for a customer.
|
|
18
30
|
*/
|
|
19
|
-
list(
|
|
31
|
+
list(params, options) {
|
|
32
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params;
|
|
20
33
|
return this._client.getAPIList('/api/v1/credits/grants', (MyCursorIDPage), {
|
|
21
34
|
query,
|
|
22
35
|
...options,
|
|
36
|
+
headers: buildHeaders([
|
|
37
|
+
{
|
|
38
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
39
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
40
|
+
},
|
|
41
|
+
options?.headers,
|
|
42
|
+
]),
|
|
23
43
|
});
|
|
24
44
|
}
|
|
25
45
|
/**
|
|
26
46
|
* Voids an existing credit grant, preventing further consumption of the remaining
|
|
27
47
|
* credits.
|
|
28
48
|
*/
|
|
29
|
-
void(id, options) {
|
|
30
|
-
|
|
49
|
+
void(id, params = {}, options) {
|
|
50
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
51
|
+
return this._client.post(path `/api/v1/credits/grants/${id}/void`, {
|
|
52
|
+
...options,
|
|
53
|
+
headers: buildHeaders([
|
|
54
|
+
{
|
|
55
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
56
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
57
|
+
},
|
|
58
|
+
options?.headers,
|
|
59
|
+
]),
|
|
60
|
+
});
|
|
31
61
|
}
|
|
32
62
|
}
|
|
33
63
|
//# sourceMappingURL=grants.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grants.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"grants.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAClG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAC5F,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,cAAiC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,EAAU,EACV,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,0BAA0B,EAAE,OAAO,EAAE;YAChE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export { Consumption, type ConsumptionConsumeResponse, type ConsumptionConsumeAsyncResponse, type ConsumptionConsumeParams, type ConsumptionConsumeAsyncParams, } from "./consumption.mjs";
|
|
1
2
|
export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.mjs";
|
|
2
|
-
export { CustomCurrencies, type CustomCurrencyResponse, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.mjs";
|
|
3
|
-
export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantListResponsesMyCursorIDPage, } from "./grants.mjs";
|
|
3
|
+
export { CustomCurrencies, type CustomCurrencyResponse, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyArchiveParams, type CustomCurrencyListAssociatedEntitiesParams, type CustomCurrencyUnarchiveParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.mjs";
|
|
4
|
+
export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantVoidParams, type GrantListResponsesMyCursorIDPage, } from "./grants.mjs";
|
|
4
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC,0BAAsB;AACvB,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C,sBAAkB;AACnB,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,4CAA4C,EACjD,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0CAA0C,EAC/C,KAAK,6BAA6B,EAClC,KAAK,yCAAyC,GAC/C,gCAA4B;AAC7B,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC,qBAAiB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export { Consumption, type ConsumptionConsumeResponse, type ConsumptionConsumeAsyncResponse, type ConsumptionConsumeParams, type ConsumptionConsumeAsyncParams, } from "./consumption.js";
|
|
1
2
|
export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.js";
|
|
2
|
-
export { CustomCurrencies, type CustomCurrencyResponse, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.js";
|
|
3
|
-
export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantListResponsesMyCursorIDPage, } from "./grants.js";
|
|
3
|
+
export { CustomCurrencies, type CustomCurrencyResponse, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyArchiveParams, type CustomCurrencyListAssociatedEntitiesParams, type CustomCurrencyUnarchiveParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.js";
|
|
4
|
+
export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantVoidParams, type GrantListResponsesMyCursorIDPage, } from "./grants.js";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC,yBAAsB;AACvB,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C,qBAAkB;AACnB,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,4CAA4C,EACjD,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0CAA0C,EAC/C,KAAK,6BAA6B,EAClC,KAAK,yCAAyC,GAC/C,+BAA4B;AAC7B,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC,oBAAiB"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Grants = exports.CustomCurrencies = exports.Credits = void 0;
|
|
4
|
+
exports.Grants = exports.CustomCurrencies = exports.Credits = exports.Consumption = void 0;
|
|
5
|
+
var consumption_1 = require("./consumption.js");
|
|
6
|
+
Object.defineProperty(exports, "Consumption", { enumerable: true, get: function () { return consumption_1.Consumption; } });
|
|
5
7
|
var credits_1 = require("./credits.js");
|
|
6
8
|
Object.defineProperty(exports, "Credits", { enumerable: true, get: function () { return credits_1.Credits; } });
|
|
7
9
|
var custom_currencies_1 = require("./custom-currencies.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,4DAY6B;AAX3B,qHAAA,gBAAgB,OAAA;AAYlB,sCAQkB;AAPhB,gGAAA,MAAM,OAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Consumption, } from "./consumption.mjs";
|
|
2
3
|
export { Credits, } from "./credits.mjs";
|
|
3
4
|
export { CustomCurrencies, } from "./custom-currencies.mjs";
|
|
4
5
|
export { Grants, } from "./grants.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,WAAW,GAKZ,0BAAsB;AACvB,OAAO,EACL,OAAO,GAQR,sBAAkB;AACnB,OAAO,EACL,gBAAgB,GAWjB,gCAA4B;AAC7B,OAAO,EACL,MAAM,GAOP,qBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.d.mts","sourceRoot":"","sources":["../../src/resources/v1/credits.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"credits.d.mts","sourceRoot":"","sources":["../../src/resources/v1/credits.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../src/resources/v1/credits.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../src/resources/v1/credits.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../src/resources/v1/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
1
|
+
{"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../src/resources/v1/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
|
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
2
2
|
import * as IntegrationsAPI from "./integrations.mjs";
|
|
3
3
|
import { IntegrationLinkParams, IntegrationListParams, IntegrationListResponse, IntegrationListResponsesMyCursorIDPage, IntegrationRetrieveParams, IntegrationUnlinkParams, IntegrationUpdateParams, Integrations } from "./integrations.mjs";
|
|
4
4
|
import * as PaymentMethodAPI from "./payment-method.mjs";
|
|
5
|
-
import { PaymentMethod, PaymentMethodAttachParams } from "./payment-method.mjs";
|
|
5
|
+
import { PaymentMethod, PaymentMethodAttachParams, PaymentMethodDetachParams } from "./payment-method.mjs";
|
|
6
6
|
import * as PromotionalEntitlementsAPI from "./promotional-entitlements.mjs";
|
|
7
7
|
import { PromotionalEntitlementCreateParams, PromotionalEntitlementCreateResponse, PromotionalEntitlementListParams, PromotionalEntitlementListResponse, PromotionalEntitlementListResponsesMyCursorIDPage, PromotionalEntitlementRevokeParams, PromotionalEntitlementRevokeResponse, PromotionalEntitlements } from "./promotional-entitlements.mjs";
|
|
8
8
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
@@ -16,21 +16,21 @@ export declare class Customers extends APIResource {
|
|
|
16
16
|
* Retrieves a customer by their unique identifier, including billing information
|
|
17
17
|
* and subscription status.
|
|
18
18
|
*/
|
|
19
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
19
|
+
retrieve(id: string, params?: CustomerRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
20
20
|
/**
|
|
21
21
|
* Updates an existing customer's properties such as name, email, and billing
|
|
22
22
|
* information.
|
|
23
23
|
*/
|
|
24
|
-
update(id: string,
|
|
24
|
+
update(id: string, params: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
25
25
|
/**
|
|
26
26
|
* Retrieves a paginated list of customers in the environment.
|
|
27
27
|
*/
|
|
28
|
-
list(
|
|
28
|
+
list(params?: CustomerListParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResponsesMyCursorIDPage, CustomerListResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* Archives a customer, preventing new subscriptions. Optionally cancels existing
|
|
31
31
|
* subscriptions.
|
|
32
32
|
*/
|
|
33
|
-
archive(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
33
|
+
archive(id: string, params?: CustomerArchiveParams | null | undefined, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Checks a single entitlement (feature or credit) for a customer or resource.
|
|
36
36
|
* Supports `requestedUsage` and `requestedValues` to evaluate against limits or
|
|
@@ -41,21 +41,21 @@ export declare class Customers extends APIResource {
|
|
|
41
41
|
* entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
42
42
|
* with caching or the Sidecar for low-latency cached responses.
|
|
43
43
|
*/
|
|
44
|
-
checkEntitlement(id: string,
|
|
44
|
+
checkEntitlement(id: string, params?: CustomerCheckEntitlementParams | null | undefined, options?: RequestOptions): APIPromise<CustomerCheckEntitlementResponse>;
|
|
45
45
|
/**
|
|
46
46
|
* Imports multiple customers in bulk. Used for migrating customer data from
|
|
47
47
|
* external systems.
|
|
48
48
|
*/
|
|
49
|
-
import(
|
|
49
|
+
import(params: CustomerImportParams, options?: RequestOptions): APIPromise<CustomerImportResponse>;
|
|
50
50
|
/**
|
|
51
51
|
* Retrieves a paginated list of resources within the same customer.
|
|
52
52
|
*/
|
|
53
|
-
listResources(id: string,
|
|
53
|
+
listResources(id: string, params?: CustomerListResourcesParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResourcesResponsesMyCursorIDPage, CustomerListResourcesResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* Creates a new customer and optionally provisions an initial subscription in a
|
|
56
56
|
* single operation.
|
|
57
57
|
*/
|
|
58
|
-
provision(
|
|
58
|
+
provision(params: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Retrieves the effective entitlements for a customer or resource, including
|
|
61
61
|
* feature and credit entitlements.
|
|
@@ -65,11 +65,11 @@ export declare class Customers extends APIResource {
|
|
|
65
65
|
* entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
66
66
|
* with caching or the Sidecar for low-latency cached responses.
|
|
67
67
|
*/
|
|
68
|
-
retrieveEntitlements(id: string,
|
|
68
|
+
retrieveEntitlements(id: string, params?: CustomerRetrieveEntitlementsParams | null | undefined, options?: RequestOptions): APIPromise<CustomerRetrieveEntitlementsResponse>;
|
|
69
69
|
/**
|
|
70
70
|
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
71
71
|
*/
|
|
72
|
-
unarchive(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
72
|
+
unarchive(id: string, params?: CustomerUnarchiveParams | null | undefined, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
73
73
|
}
|
|
74
74
|
export type CustomerListResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResponse>;
|
|
75
75
|
export type CustomerListResourcesResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResourcesResponse>;
|
|
@@ -98,7 +98,7 @@ export declare namespace CustomerIntegrationResponse {
|
|
|
98
98
|
/**
|
|
99
99
|
* The vendor identifier of integration
|
|
100
100
|
*/
|
|
101
|
-
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
101
|
+
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL' | 'AIRWALLEX';
|
|
102
102
|
/**
|
|
103
103
|
* Price billing sync revision data containing billing ID, link URL, and price
|
|
104
104
|
* group package billing ID
|
|
@@ -266,7 +266,7 @@ export declare namespace CustomerResponse {
|
|
|
266
266
|
/**
|
|
267
267
|
* The vendor identifier of integration
|
|
268
268
|
*/
|
|
269
|
-
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
269
|
+
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL' | 'AIRWALLEX';
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* Vendor-specific billing passthrough fields.
|
|
@@ -557,7 +557,7 @@ export declare namespace CustomerListResponse {
|
|
|
557
557
|
/**
|
|
558
558
|
* The vendor identifier of integration
|
|
559
559
|
*/
|
|
560
|
-
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
560
|
+
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL' | 'AIRWALLEX';
|
|
561
561
|
}
|
|
562
562
|
/**
|
|
563
563
|
* Vendor-specific billing passthrough fields.
|
|
@@ -1036,49 +1036,73 @@ export declare namespace CustomerRetrieveEntitlementsResponse {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
+
export interface CustomerRetrieveParams {
|
|
1040
|
+
/**
|
|
1041
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1042
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1043
|
+
*/
|
|
1044
|
+
'X-ACCOUNT-ID'?: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1047
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1048
|
+
* key).
|
|
1049
|
+
*/
|
|
1050
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1051
|
+
}
|
|
1039
1052
|
export interface CustomerUpdateParams {
|
|
1040
1053
|
/**
|
|
1041
|
-
* The billing currency of the customer
|
|
1054
|
+
* Body param: The billing currency of the customer
|
|
1042
1055
|
*/
|
|
1043
1056
|
billingCurrency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf' | null;
|
|
1044
1057
|
/**
|
|
1045
|
-
* The unique identifier for the entity in the billing provider
|
|
1058
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
1046
1059
|
*/
|
|
1047
1060
|
billingId?: string | null;
|
|
1048
1061
|
/**
|
|
1049
|
-
* Customer level coupon
|
|
1062
|
+
* Body param: Customer level coupon
|
|
1050
1063
|
*/
|
|
1051
1064
|
couponId?: (string & {}) | '' | null;
|
|
1052
1065
|
/**
|
|
1053
|
-
* The email of the customer
|
|
1066
|
+
* Body param: The email of the customer
|
|
1054
1067
|
*/
|
|
1055
1068
|
email?: string | null;
|
|
1056
1069
|
/**
|
|
1057
|
-
* List of integrations
|
|
1070
|
+
* Body param: List of integrations
|
|
1058
1071
|
*/
|
|
1059
1072
|
integrations?: Array<CustomerUpdateParams.Integration>;
|
|
1060
1073
|
/**
|
|
1061
|
-
* Language to use for this customer
|
|
1074
|
+
* Body param: Language to use for this customer
|
|
1062
1075
|
*/
|
|
1063
1076
|
language?: string | null;
|
|
1064
1077
|
/**
|
|
1065
|
-
* Additional metadata
|
|
1078
|
+
* Body param: Additional metadata
|
|
1066
1079
|
*/
|
|
1067
1080
|
metadata?: {
|
|
1068
1081
|
[key: string]: string;
|
|
1069
1082
|
};
|
|
1070
1083
|
/**
|
|
1071
|
-
* The name of the customer
|
|
1084
|
+
* Body param: The name of the customer
|
|
1072
1085
|
*/
|
|
1073
1086
|
name?: string | null;
|
|
1074
1087
|
/**
|
|
1075
|
-
* Vendor-specific billing passthrough fields.
|
|
1088
|
+
* Body param: Vendor-specific billing passthrough fields.
|
|
1076
1089
|
*/
|
|
1077
1090
|
passthrough?: CustomerUpdateParams.Passthrough;
|
|
1078
1091
|
/**
|
|
1079
|
-
* Timezone to use for this customer
|
|
1092
|
+
* Body param: Timezone to use for this customer
|
|
1080
1093
|
*/
|
|
1081
1094
|
timezone?: string | null;
|
|
1095
|
+
/**
|
|
1096
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1097
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1098
|
+
*/
|
|
1099
|
+
'X-ACCOUNT-ID'?: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1102
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1103
|
+
* intrinsic to the key).
|
|
1104
|
+
*/
|
|
1105
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1082
1106
|
}
|
|
1083
1107
|
export declare namespace CustomerUpdateParams {
|
|
1084
1108
|
/**
|
|
@@ -1096,7 +1120,7 @@ export declare namespace CustomerUpdateParams {
|
|
|
1096
1120
|
/**
|
|
1097
1121
|
* The vendor identifier of integration
|
|
1098
1122
|
*/
|
|
1099
|
-
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
1123
|
+
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL' | 'AIRWALLEX';
|
|
1100
1124
|
}
|
|
1101
1125
|
/**
|
|
1102
1126
|
* Vendor-specific billing passthrough fields.
|
|
@@ -1280,17 +1304,28 @@ export declare namespace CustomerUpdateParams {
|
|
|
1280
1304
|
}
|
|
1281
1305
|
export interface CustomerListParams extends MyCursorIDPageParams {
|
|
1282
1306
|
/**
|
|
1283
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
1307
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
1284
1308
|
*/
|
|
1285
1309
|
createdAt?: CustomerListParams.CreatedAt;
|
|
1286
1310
|
/**
|
|
1287
|
-
* Filter by exact customer email address
|
|
1311
|
+
* Query param: Filter by exact customer email address
|
|
1288
1312
|
*/
|
|
1289
1313
|
email?: string;
|
|
1290
1314
|
/**
|
|
1291
|
-
* Filter by exact customer name
|
|
1315
|
+
* Query param: Filter by exact customer name
|
|
1292
1316
|
*/
|
|
1293
1317
|
name?: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1320
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1321
|
+
*/
|
|
1322
|
+
'X-ACCOUNT-ID'?: string;
|
|
1323
|
+
/**
|
|
1324
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1325
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1326
|
+
* intrinsic to the key).
|
|
1327
|
+
*/
|
|
1328
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1294
1329
|
}
|
|
1295
1330
|
export declare namespace CustomerListParams {
|
|
1296
1331
|
/**
|
|
@@ -1315,39 +1350,75 @@ export declare namespace CustomerListParams {
|
|
|
1315
1350
|
lte?: string;
|
|
1316
1351
|
}
|
|
1317
1352
|
}
|
|
1353
|
+
export interface CustomerArchiveParams {
|
|
1354
|
+
/**
|
|
1355
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1356
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1357
|
+
*/
|
|
1358
|
+
'X-ACCOUNT-ID'?: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1361
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1362
|
+
* key).
|
|
1363
|
+
*/
|
|
1364
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1365
|
+
}
|
|
1318
1366
|
export interface CustomerCheckEntitlementParams {
|
|
1319
1367
|
/**
|
|
1320
|
-
* Currency ID (refId) to check for credit entitlements. Mutually
|
|
1321
|
-
* `featureId`.
|
|
1368
|
+
* Query param: Currency ID (refId) to check for credit entitlements. Mutually
|
|
1369
|
+
* exclusive with `featureId`.
|
|
1322
1370
|
*/
|
|
1323
1371
|
currencyId?: string;
|
|
1324
1372
|
/**
|
|
1325
|
-
* Feature ID (refId) to check. Mutually exclusive with `currencyId`.
|
|
1373
|
+
* Query param: Feature ID (refId) to check. Mutually exclusive with `currencyId`.
|
|
1326
1374
|
*/
|
|
1327
1375
|
featureId?: string;
|
|
1328
1376
|
/**
|
|
1329
|
-
* Requested usage amount to evaluate against the entitlement limit
|
|
1330
|
-
* features only)
|
|
1377
|
+
* Query param: Requested usage amount to evaluate against the entitlement limit
|
|
1378
|
+
* (numeric features only)
|
|
1331
1379
|
*/
|
|
1332
1380
|
requestedUsage?: number;
|
|
1333
1381
|
/**
|
|
1334
|
-
* Requested values to evaluate against allowed values (enum features
|
|
1382
|
+
* Query param: Requested values to evaluate against allowed values (enum features
|
|
1383
|
+
* only)
|
|
1335
1384
|
*/
|
|
1336
1385
|
requestedValues?: Array<string>;
|
|
1337
1386
|
/**
|
|
1338
|
-
* Resource ID to scope the entitlement check to a specific resource
|
|
1387
|
+
* Query param: Resource ID to scope the entitlement check to a specific resource
|
|
1339
1388
|
*/
|
|
1340
1389
|
resourceId?: string;
|
|
1390
|
+
/**
|
|
1391
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1392
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1393
|
+
*/
|
|
1394
|
+
'X-ACCOUNT-ID'?: string;
|
|
1395
|
+
/**
|
|
1396
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1397
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1398
|
+
* intrinsic to the key).
|
|
1399
|
+
*/
|
|
1400
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1341
1401
|
}
|
|
1342
1402
|
export interface CustomerImportParams {
|
|
1343
1403
|
/**
|
|
1344
|
-
* List of customer objects to import
|
|
1404
|
+
* Body param: List of customer objects to import
|
|
1345
1405
|
*/
|
|
1346
1406
|
customers: Array<CustomerImportParams.Customer>;
|
|
1347
1407
|
/**
|
|
1348
|
-
* Integration details
|
|
1408
|
+
* Body param: Integration details
|
|
1349
1409
|
*/
|
|
1350
1410
|
integrationId?: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1413
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1414
|
+
*/
|
|
1415
|
+
'X-ACCOUNT-ID'?: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1418
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1419
|
+
* intrinsic to the key).
|
|
1420
|
+
*/
|
|
1421
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1351
1422
|
}
|
|
1352
1423
|
export declare namespace CustomerImportParams {
|
|
1353
1424
|
interface Customer {
|
|
@@ -1388,58 +1459,80 @@ export declare namespace CustomerImportParams {
|
|
|
1388
1459
|
}
|
|
1389
1460
|
}
|
|
1390
1461
|
export interface CustomerListResourcesParams extends MyCursorIDPageParams {
|
|
1462
|
+
/**
|
|
1463
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1464
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1465
|
+
*/
|
|
1466
|
+
'X-ACCOUNT-ID'?: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1469
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1470
|
+
* intrinsic to the key).
|
|
1471
|
+
*/
|
|
1472
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1391
1473
|
}
|
|
1392
1474
|
export interface CustomerProvisionParams {
|
|
1393
1475
|
/**
|
|
1394
|
-
* Customer slug
|
|
1476
|
+
* Body param: Customer slug
|
|
1395
1477
|
*/
|
|
1396
1478
|
id: string;
|
|
1397
1479
|
/**
|
|
1398
|
-
* The billing currency of the customer
|
|
1480
|
+
* Body param: The billing currency of the customer
|
|
1399
1481
|
*/
|
|
1400
1482
|
billingCurrency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf' | null;
|
|
1401
1483
|
/**
|
|
1402
|
-
* The unique identifier for the entity in the billing provider
|
|
1484
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
1403
1485
|
*/
|
|
1404
1486
|
billingId?: string | null;
|
|
1405
1487
|
/**
|
|
1406
|
-
* Customer level coupon
|
|
1488
|
+
* Body param: Customer level coupon
|
|
1407
1489
|
*/
|
|
1408
1490
|
couponId?: (string & {}) | '' | null;
|
|
1409
1491
|
/**
|
|
1410
|
-
* The default payment method details
|
|
1492
|
+
* Body param: The default payment method details
|
|
1411
1493
|
*/
|
|
1412
1494
|
defaultPaymentMethod?: CustomerProvisionParams.DefaultPaymentMethod | null;
|
|
1413
1495
|
/**
|
|
1414
|
-
* The email of the customer
|
|
1496
|
+
* Body param: The email of the customer
|
|
1415
1497
|
*/
|
|
1416
1498
|
email?: string | null;
|
|
1417
1499
|
/**
|
|
1418
|
-
* List of integrations
|
|
1500
|
+
* Body param: List of integrations
|
|
1419
1501
|
*/
|
|
1420
1502
|
integrations?: Array<CustomerProvisionParams.Integration>;
|
|
1421
1503
|
/**
|
|
1422
|
-
* Language to use for this customer
|
|
1504
|
+
* Body param: Language to use for this customer
|
|
1423
1505
|
*/
|
|
1424
1506
|
language?: string | null;
|
|
1425
1507
|
/**
|
|
1426
|
-
* Additional metadata
|
|
1508
|
+
* Body param: Additional metadata
|
|
1427
1509
|
*/
|
|
1428
1510
|
metadata?: {
|
|
1429
1511
|
[key: string]: string;
|
|
1430
1512
|
};
|
|
1431
1513
|
/**
|
|
1432
|
-
* The name of the customer
|
|
1514
|
+
* Body param: The name of the customer
|
|
1433
1515
|
*/
|
|
1434
1516
|
name?: string | null;
|
|
1435
1517
|
/**
|
|
1436
|
-
* Vendor-specific billing passthrough fields.
|
|
1518
|
+
* Body param: Vendor-specific billing passthrough fields.
|
|
1437
1519
|
*/
|
|
1438
1520
|
passthrough?: CustomerProvisionParams.Passthrough;
|
|
1439
1521
|
/**
|
|
1440
|
-
* Timezone to use for this customer
|
|
1522
|
+
* Body param: Timezone to use for this customer
|
|
1441
1523
|
*/
|
|
1442
1524
|
timezone?: string | null;
|
|
1525
|
+
/**
|
|
1526
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1527
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1528
|
+
*/
|
|
1529
|
+
'X-ACCOUNT-ID'?: string;
|
|
1530
|
+
/**
|
|
1531
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1532
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1533
|
+
* intrinsic to the key).
|
|
1534
|
+
*/
|
|
1535
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1443
1536
|
}
|
|
1444
1537
|
export declare namespace CustomerProvisionParams {
|
|
1445
1538
|
/**
|
|
@@ -1482,7 +1575,7 @@ export declare namespace CustomerProvisionParams {
|
|
|
1482
1575
|
/**
|
|
1483
1576
|
* The vendor identifier of integration
|
|
1484
1577
|
*/
|
|
1485
|
-
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
1578
|
+
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL' | 'AIRWALLEX';
|
|
1486
1579
|
}
|
|
1487
1580
|
/**
|
|
1488
1581
|
* Vendor-specific billing passthrough fields.
|
|
@@ -1666,13 +1759,37 @@ export declare namespace CustomerProvisionParams {
|
|
|
1666
1759
|
}
|
|
1667
1760
|
export interface CustomerRetrieveEntitlementsParams {
|
|
1668
1761
|
/**
|
|
1669
|
-
* Resource ID to scope entitlements to a specific resource
|
|
1762
|
+
* Query param: Resource ID to scope entitlements to a specific resource
|
|
1670
1763
|
*/
|
|
1671
1764
|
resourceId?: string;
|
|
1765
|
+
/**
|
|
1766
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1767
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1768
|
+
*/
|
|
1769
|
+
'X-ACCOUNT-ID'?: string;
|
|
1770
|
+
/**
|
|
1771
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1772
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1773
|
+
* intrinsic to the key).
|
|
1774
|
+
*/
|
|
1775
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1776
|
+
}
|
|
1777
|
+
export interface CustomerUnarchiveParams {
|
|
1778
|
+
/**
|
|
1779
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1780
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1781
|
+
*/
|
|
1782
|
+
'X-ACCOUNT-ID'?: string;
|
|
1783
|
+
/**
|
|
1784
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1785
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1786
|
+
* key).
|
|
1787
|
+
*/
|
|
1788
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1672
1789
|
}
|
|
1673
1790
|
export declare namespace Customers {
|
|
1674
|
-
export { type CustomerIntegrationResponse as CustomerIntegrationResponse, type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerCheckEntitlementResponse as CustomerCheckEntitlementResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerCheckEntitlementParams as CustomerCheckEntitlementParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams, };
|
|
1675
|
-
export { PaymentMethod as PaymentMethod, type PaymentMethodAttachParams as PaymentMethodAttachParams };
|
|
1791
|
+
export { type CustomerIntegrationResponse as CustomerIntegrationResponse, type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerCheckEntitlementResponse as CustomerCheckEntitlementResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerArchiveParams as CustomerArchiveParams, type CustomerCheckEntitlementParams as CustomerCheckEntitlementParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams, type CustomerUnarchiveParams as CustomerUnarchiveParams, };
|
|
1792
|
+
export { PaymentMethod as PaymentMethod, type PaymentMethodAttachParams as PaymentMethodAttachParams, type PaymentMethodDetachParams as PaymentMethodDetachParams, };
|
|
1676
1793
|
export { PromotionalEntitlements as PromotionalEntitlements, type PromotionalEntitlementCreateResponse as PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse as PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse as PromotionalEntitlementRevokeResponse, type PromotionalEntitlementListResponsesMyCursorIDPage as PromotionalEntitlementListResponsesMyCursorIDPage, type PromotionalEntitlementCreateParams as PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams as PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams as PromotionalEntitlementRevokeParams, };
|
|
1677
1794
|
export { Integrations as Integrations, type IntegrationListResponse as IntegrationListResponse, type IntegrationListResponsesMyCursorIDPage as IntegrationListResponsesMyCursorIDPage, type IntegrationRetrieveParams as IntegrationRetrieveParams, type IntegrationUpdateParams as IntegrationUpdateParams, type IntegrationListParams as IntegrationListParams, type IntegrationLinkParams as IntegrationLinkParams, type IntegrationUnlinkParams as IntegrationUnlinkParams, };
|
|
1678
1795
|
}
|