@stigg/typescript 0.1.0-beta.3 → 0.1.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +236 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +12 -1
- package/client.js.map +1 -1
- package/client.mjs +12 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +313 -32
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +313 -32
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +114 -15
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +114 -15
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +92 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +92 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -8
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/addons.d.mts.map +1 -1
- package/resources/v1/addons.d.ts.map +1 -1
- package/resources/v1/addons.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +80 -20
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +80 -20
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +114 -25
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +114 -25
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +36 -5
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +36 -5
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +96 -23
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +96 -23
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +60 -23
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +60 -23
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +2 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +2 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/credits.d.mts.map +1 -1
- package/resources/v1/credits.d.ts.map +1 -1
- package/resources/v1/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +170 -53
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +170 -53
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -19
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +67 -12
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +67 -12
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +32 -8
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +32 -8
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/customers.d.mts.map +1 -1
- package/resources/v1/customers.d.ts.map +1 -1
- package/resources/v1/customers.mjs.map +1 -1
- package/resources/v1/events/beta/beta.d.mts +10 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +10 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +17 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +12 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +160 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +160 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +32 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +28 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +3 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +3 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +9 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +4 -0
- package/resources/v1/events/beta/index.mjs.map +1 -0
- package/resources/v1/events/beta.d.mts +2 -0
- package/resources/v1/events/beta.d.mts.map +1 -0
- package/resources/v1/events/beta.d.ts +2 -0
- package/resources/v1/events/beta.d.ts.map +1 -0
- package/resources/v1/events/beta.js +6 -0
- package/resources/v1/events/beta.js.map +1 -0
- package/resources/v1/events/beta.mjs +3 -0
- package/resources/v1/events/beta.mjs.map +1 -0
- package/resources/v1/events/data-export/data-export.d.mts +211 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export/data-export.d.ts +211 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export/data-export.js +71 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -0
- package/resources/v1/events/data-export/data-export.mjs +66 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -0
- package/resources/v1/events/data-export/destinations.d.mts +215 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +215 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +46 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +42 -0
- package/resources/v1/events/data-export/destinations.mjs.map +1 -0
- package/resources/v1/events/data-export/index.d.mts +3 -0
- package/resources/v1/events/data-export/index.d.mts.map +1 -0
- package/resources/v1/events/data-export/index.d.ts +3 -0
- package/resources/v1/events/data-export/index.d.ts.map +1 -0
- package/resources/v1/events/data-export/index.js +9 -0
- package/resources/v1/events/data-export/index.js.map +1 -0
- package/resources/v1/events/data-export/index.mjs +4 -0
- package/resources/v1/events/data-export/index.mjs.map +1 -0
- package/resources/v1/events/data-export.d.mts +2 -0
- package/resources/v1/events/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export.d.ts +2 -0
- package/resources/v1/events/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export.js +6 -0
- package/resources/v1/events/data-export.js.map +1 -0
- package/resources/v1/events/data-export.mjs +3 -0
- package/resources/v1/events/data-export.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +85 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +85 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +43 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +38 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +4 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +4 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +11 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +5 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events.d.mts +1 -65
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +1 -65
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +2 -15
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +1 -13
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +108 -30
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +108 -30
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +8 -8
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +8 -8
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +6 -6
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +92 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +92 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -8
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +496 -32
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +496 -32
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +135 -16
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +135 -16
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/plans.d.mts.map +1 -1
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +97 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -4
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +15 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +258 -79
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +258 -79
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -4
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +52 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +52 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +16 -16
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +16 -16
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +245 -0
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1-beta/customers/assignments.d.ts +245 -0
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1-beta/customers/assignments.js +84 -0
- package/resources/v1-beta/customers/assignments.js.map +1 -0
- package/resources/v1-beta/customers/assignments.mjs +80 -0
- package/resources/v1-beta/customers/assignments.mjs.map +1 -0
- package/resources/v1-beta/customers/customers.d.mts +18 -0
- package/resources/v1-beta/customers/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers/customers.d.ts +18 -0
- package/resources/v1-beta/customers/customers.d.ts.map +1 -0
- package/resources/v1-beta/customers/customers.js +25 -0
- package/resources/v1-beta/customers/customers.js.map +1 -0
- package/resources/v1-beta/customers/customers.mjs +20 -0
- package/resources/v1-beta/customers/customers.mjs.map +1 -0
- package/resources/v1-beta/customers/entities.d.mts +351 -0
- package/resources/v1-beta/customers/entities.d.mts.map +1 -0
- package/resources/v1-beta/customers/entities.d.ts +351 -0
- package/resources/v1-beta/customers/entities.d.ts.map +1 -0
- package/resources/v1-beta/customers/entities.js +150 -0
- package/resources/v1-beta/customers/entities.js.map +1 -0
- package/resources/v1-beta/customers/entities.mjs +146 -0
- package/resources/v1-beta/customers/entities.mjs.map +1 -0
- package/resources/v1-beta/customers/entitlements.d.mts +261 -0
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/v1-beta/customers/entitlements.d.ts +261 -0
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1-beta/customers/entitlements.js +36 -0
- package/resources/v1-beta/customers/entitlements.js.map +1 -0
- package/resources/v1-beta/customers/entitlements.mjs +32 -0
- package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1-beta/customers/index.d.mts +5 -0
- package/resources/v1-beta/customers/index.d.mts.map +1 -0
- package/resources/v1-beta/customers/index.d.ts +5 -0
- package/resources/v1-beta/customers/index.d.ts.map +1 -0
- package/resources/v1-beta/customers/index.js +13 -0
- package/resources/v1-beta/customers/index.js.map +1 -0
- package/resources/v1-beta/customers/index.mjs +6 -0
- package/resources/v1-beta/customers/index.mjs.map +1 -0
- package/resources/v1-beta/customers.d.mts +2 -0
- package/resources/v1-beta/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers.d.ts +2 -0
- package/resources/v1-beta/customers.d.ts.map +1 -0
- package/resources/v1-beta/customers.js +6 -0
- package/resources/v1-beta/customers.js.map +1 -0
- package/resources/v1-beta/customers.mjs +3 -0
- package/resources/v1-beta/customers.mjs.map +1 -0
- package/resources/v1-beta/entity-types.d.mts +165 -0
- package/resources/v1-beta/entity-types.d.mts.map +1 -0
- package/resources/v1-beta/entity-types.d.ts +165 -0
- package/resources/v1-beta/entity-types.d.ts.map +1 -0
- package/resources/v1-beta/entity-types.js +75 -0
- package/resources/v1-beta/entity-types.js.map +1 -0
- package/resources/v1-beta/entity-types.mjs +71 -0
- package/resources/v1-beta/entity-types.mjs.map +1 -0
- package/resources/v1-beta/index.d.mts +4 -0
- package/resources/v1-beta/index.d.mts.map +1 -0
- package/resources/v1-beta/index.d.ts +4 -0
- package/resources/v1-beta/index.d.ts.map +1 -0
- package/resources/v1-beta/index.js +11 -0
- package/resources/v1-beta/index.js.map +1 -0
- package/resources/v1-beta/index.mjs +5 -0
- package/resources/v1-beta/index.mjs.map +1 -0
- package/resources/v1-beta/v1-beta.d.mts +14 -0
- package/resources/v1-beta/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta/v1-beta.d.ts +14 -0
- package/resources/v1-beta/v1-beta.d.ts.map +1 -0
- package/resources/v1-beta/v1-beta.js +21 -0
- package/resources/v1-beta/v1-beta.js.map +1 -0
- package/resources/v1-beta/v1-beta.mjs +16 -0
- package/resources/v1-beta/v1-beta.mjs.map +1 -0
- package/resources/v1-beta.d.mts +2 -0
- package/resources/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta.d.ts +2 -0
- package/resources/v1-beta.d.ts.map +1 -0
- package/resources/v1-beta.js +6 -0
- package/resources/v1-beta.js.map +1 -0
- package/resources/v1-beta.mjs +3 -0
- package/resources/v1-beta.mjs.map +1 -0
- package/resources/v1.d.mts.map +1 -1
- package/resources/v1.d.ts.map +1 -1
- package/resources/v1.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +14 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +849 -36
- package/src/resources/v1/addons/entitlements.ts +158 -10
- package/src/resources/v1/addons/index.ts +8 -0
- package/src/resources/v1/coupons.ts +154 -23
- package/src/resources/v1/credits/credits.ts +167 -23
- package/src/resources/v1/credits/custom-currencies.ts +188 -30
- package/src/resources/v1/credits/grants.ts +102 -24
- package/src/resources/v1/credits/index.ts +4 -0
- package/src/resources/v1/customers/customers.ts +333 -62
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +137 -18
- package/src/resources/v1/customers/payment-method.ts +69 -10
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -11
- package/src/resources/v1/events/beta/beta.ts +19 -0
- package/src/resources/v1/events/beta/customers.ts +212 -0
- package/src/resources/v1/events/beta/index.ts +8 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/data-export/data-export.ts +312 -0
- package/src/resources/v1/events/data-export/destinations.ts +290 -0
- package/src/resources/v1/events/data-export/index.ts +18 -0
- package/src/resources/v1/events/data-export.ts +3 -0
- package/src/resources/v1/events/events.ts +132 -0
- package/src/resources/v1/events/index.ts +13 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +204 -34
- package/src/resources/v1/index.ts +29 -1
- package/src/resources/v1/plans/entitlements.ts +158 -10
- package/src/resources/v1/plans/index.ts +11 -0
- package/src/resources/v1/plans/plans.ts +1440 -37
- package/src/resources/v1/products.ts +189 -27
- package/src/resources/v1/subscriptions/future-update.ts +68 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +429 -86
- package/src/resources/v1/subscriptions/usage.ts +61 -5
- package/src/resources/v1/usage.ts +86 -5
- package/src/resources/v1/v1.ts +58 -2
- package/src/resources/v1-beta/customers/assignments.ts +331 -0
- package/src/resources/v1-beta/customers/customers.ts +71 -0
- package/src/resources/v1-beta/customers/entities.ts +492 -0
- package/src/resources/v1-beta/customers/entitlements.ts +366 -0
- package/src/resources/v1-beta/customers/index.ts +26 -0
- package/src/resources/v1-beta/customers.ts +3 -0
- package/src/resources/v1-beta/entity-types.ts +225 -0
- package/src/resources/v1-beta/index.ts +12 -0
- package/src/resources/v1-beta/v1-beta.ts +35 -0
- package/src/resources/v1-beta.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -10,28 +10,28 @@ export declare class Products extends APIResource {
|
|
|
10
10
|
* Archives a product, preventing new subscriptions. All plans and addons are
|
|
11
11
|
* archived.
|
|
12
12
|
*/
|
|
13
|
-
archiveProduct(id: string, options?: RequestOptions): APIPromise<Product>;
|
|
13
|
+
archiveProduct(id: string, params?: ProductArchiveProductParams | null | undefined, options?: RequestOptions): APIPromise<Product>;
|
|
14
14
|
/**
|
|
15
15
|
* Creates a new product.
|
|
16
16
|
*/
|
|
17
|
-
createProduct(
|
|
17
|
+
createProduct(params: ProductCreateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
18
18
|
/**
|
|
19
19
|
* Duplicates an existing product, including its plans, addons, and configuration.
|
|
20
20
|
*/
|
|
21
|
-
duplicateProduct(id: string,
|
|
21
|
+
duplicateProduct(id: string, params: ProductDuplicateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
22
22
|
/**
|
|
23
23
|
* Retrieves a paginated list of products in the environment.
|
|
24
24
|
*/
|
|
25
|
-
listProducts(
|
|
25
|
+
listProducts(params?: ProductListProductsParams | null | undefined, options?: RequestOptions): PagePromise<ProductListProductsResponsesMyCursorIDPage, ProductListProductsResponse>;
|
|
26
26
|
/**
|
|
27
27
|
* Restores an archived product, allowing new subscriptions to be created.
|
|
28
28
|
*/
|
|
29
|
-
unarchiveProduct(id: string, options?: RequestOptions): APIPromise<Product>;
|
|
29
|
+
unarchiveProduct(id: string, params?: ProductUnarchiveProductParams | null | undefined, options?: RequestOptions): APIPromise<Product>;
|
|
30
30
|
/**
|
|
31
31
|
* Updates an existing product's properties such as display name, description, and
|
|
32
32
|
* metadata.
|
|
33
33
|
*/
|
|
34
|
-
updateProduct(id: string,
|
|
34
|
+
updateProduct(id: string, params: ProductUpdateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
35
35
|
}
|
|
36
36
|
export type ProductListProductsResponsesMyCursorIDPage = MyCursorIDPage<ProductListProductsResponse>;
|
|
37
37
|
/**
|
|
@@ -195,57 +195,104 @@ export declare namespace ProductListProductsResponse {
|
|
|
195
195
|
subscriptionStartPlanId?: string | null;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
+
export interface ProductArchiveProductParams {
|
|
199
|
+
/**
|
|
200
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
201
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
202
|
+
*/
|
|
203
|
+
'X-ACCOUNT-ID'?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
206
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
207
|
+
* key).
|
|
208
|
+
*/
|
|
209
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
210
|
+
}
|
|
198
211
|
export interface ProductCreateProductParams {
|
|
199
212
|
/**
|
|
200
|
-
* The unique identifier for the entity
|
|
213
|
+
* Body param: The unique identifier for the entity
|
|
201
214
|
*/
|
|
202
215
|
id: string;
|
|
203
216
|
/**
|
|
204
|
-
* Display name of the product
|
|
217
|
+
* Body param: Display name of the product
|
|
205
218
|
*/
|
|
206
219
|
displayName: string;
|
|
207
220
|
/**
|
|
208
|
-
* Description of the product
|
|
221
|
+
* Body param: Description of the product
|
|
209
222
|
*/
|
|
210
223
|
description?: string | null;
|
|
211
224
|
/**
|
|
212
|
-
* Additional metadata for the product
|
|
225
|
+
* Body param: Additional metadata for the product
|
|
213
226
|
*/
|
|
214
227
|
metadata?: {
|
|
215
228
|
[key: string]: string;
|
|
216
229
|
} | null;
|
|
217
230
|
/**
|
|
218
|
-
* Indicates if multiple subscriptions to this product are allowed
|
|
231
|
+
* Body param: Indicates if multiple subscriptions to this product are allowed
|
|
219
232
|
*/
|
|
220
233
|
multipleSubscriptions?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
236
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
237
|
+
*/
|
|
238
|
+
'X-ACCOUNT-ID'?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
241
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
242
|
+
* intrinsic to the key).
|
|
243
|
+
*/
|
|
244
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
221
245
|
}
|
|
222
246
|
export interface ProductDuplicateProductParams {
|
|
223
247
|
/**
|
|
224
|
-
* The unique identifier for the entity
|
|
248
|
+
* Body param: The unique identifier for the entity
|
|
225
249
|
*/
|
|
226
250
|
targetId: string;
|
|
227
251
|
/**
|
|
228
|
-
* Description of the product
|
|
252
|
+
* Body param: Description of the product
|
|
229
253
|
*/
|
|
230
254
|
description?: string | null;
|
|
231
255
|
/**
|
|
232
|
-
* Display name of the product
|
|
256
|
+
* Body param: Display name of the product
|
|
233
257
|
*/
|
|
234
258
|
displayName?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
261
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
262
|
+
*/
|
|
263
|
+
'X-ACCOUNT-ID'?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
266
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
267
|
+
* intrinsic to the key).
|
|
268
|
+
*/
|
|
269
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
235
270
|
}
|
|
236
271
|
export interface ProductListProductsParams extends MyCursorIDPageParams {
|
|
237
272
|
/**
|
|
238
|
-
* Filter by entity ID
|
|
273
|
+
* Query param: Filter by entity ID
|
|
239
274
|
*/
|
|
240
275
|
id?: string;
|
|
241
276
|
/**
|
|
242
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
277
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
243
278
|
*/
|
|
244
279
|
createdAt?: ProductListProductsParams.CreatedAt;
|
|
245
280
|
/**
|
|
246
|
-
* Filter by product status. Supports comma-separated values for
|
|
281
|
+
* Query param: Filter by product status. Supports comma-separated values for
|
|
282
|
+
* multiple statuses
|
|
247
283
|
*/
|
|
248
284
|
status?: Array<'PUBLISHED' | 'ARCHIVED'>;
|
|
285
|
+
/**
|
|
286
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
287
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
288
|
+
*/
|
|
289
|
+
'X-ACCOUNT-ID'?: string;
|
|
290
|
+
/**
|
|
291
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
292
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
293
|
+
* intrinsic to the key).
|
|
294
|
+
*/
|
|
295
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
249
296
|
}
|
|
250
297
|
export declare namespace ProductListProductsParams {
|
|
251
298
|
/**
|
|
@@ -270,30 +317,57 @@ export declare namespace ProductListProductsParams {
|
|
|
270
317
|
lte?: string;
|
|
271
318
|
}
|
|
272
319
|
}
|
|
320
|
+
export interface ProductUnarchiveProductParams {
|
|
321
|
+
/**
|
|
322
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
323
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
324
|
+
*/
|
|
325
|
+
'X-ACCOUNT-ID'?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
328
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
329
|
+
* key).
|
|
330
|
+
*/
|
|
331
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
332
|
+
}
|
|
273
333
|
export interface ProductUpdateProductParams {
|
|
274
334
|
/**
|
|
275
|
-
* Description of the product
|
|
335
|
+
* Body param: Description of the product
|
|
276
336
|
*/
|
|
277
337
|
description?: string | null;
|
|
278
338
|
/**
|
|
279
|
-
* Display name of the product
|
|
339
|
+
* Body param: Display name of the product
|
|
280
340
|
*/
|
|
281
341
|
displayName?: string;
|
|
282
342
|
/**
|
|
283
|
-
* Additional metadata for the product
|
|
343
|
+
* Body param: Additional metadata for the product
|
|
284
344
|
*/
|
|
285
345
|
metadata?: {
|
|
286
346
|
[key: string]: string;
|
|
287
347
|
} | null;
|
|
288
348
|
/**
|
|
289
|
-
* Indicates if multiple subscriptions to this product are allowed
|
|
349
|
+
* Body param: Indicates if multiple subscriptions to this product are allowed
|
|
290
350
|
*/
|
|
291
351
|
multipleSubscriptions?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* Body param
|
|
354
|
+
*/
|
|
292
355
|
productSettings?: ProductUpdateProductParams.ProductSettings;
|
|
293
356
|
/**
|
|
294
|
-
* Rule defining when usage resets upon subscription update.
|
|
357
|
+
* Body param: Rule defining when usage resets upon subscription update.
|
|
295
358
|
*/
|
|
296
359
|
usageResetCutoffRule?: ProductUpdateProductParams.UsageResetCutoffRule;
|
|
360
|
+
/**
|
|
361
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
362
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
363
|
+
*/
|
|
364
|
+
'X-ACCOUNT-ID'?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
367
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
368
|
+
* intrinsic to the key).
|
|
369
|
+
*/
|
|
370
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
297
371
|
}
|
|
298
372
|
export declare namespace ProductUpdateProductParams {
|
|
299
373
|
interface ProductSettings {
|
|
@@ -334,6 +408,6 @@ export declare namespace ProductUpdateProductParams {
|
|
|
334
408
|
}
|
|
335
409
|
}
|
|
336
410
|
export declare namespace Products {
|
|
337
|
-
export { type Product as Product, type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
411
|
+
export { type Product as Product, type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductArchiveProductParams as ProductArchiveProductParams, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUnarchiveProductParams as ProductUnarchiveProductParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
338
412
|
}
|
|
339
413
|
//# sourceMappingURL=products.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,kCAA8B;AAE/F,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,cAAc,CACZ,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,2BAA2B,GAAG,IAAI,GA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AC,EAAE,0BAA0B,CAAC,oBAAoB,CAAC;IAEvE;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,eAAe;QAC9B;;WAEG;QACH,4BAA4B,EAAE,uBAAuB,GAAG,WAAW,GAAG,eAAe,CAAC;QAEtF;;WAEG;QACH,oBAAoB,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;QAElE;;WAEG;QACH,sBAAsB,EAAE,gBAAgB,GAAG,cAAc,GAAG,WAAW,CAAC;QAExE;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;;WAGG;QACH,2BAA2B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE7C;;WAEG;QACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzC;IAED;;OAEG;IACH,UAAiB,oBAAoB;QACnC;;WAEG;QACH,QAAQ,EAAE,aAAa,GAAG,cAAc,GAAG,uBAAuB,CAAC;KACpE;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -10,28 +10,28 @@ export declare class Products extends APIResource {
|
|
|
10
10
|
* Archives a product, preventing new subscriptions. All plans and addons are
|
|
11
11
|
* archived.
|
|
12
12
|
*/
|
|
13
|
-
archiveProduct(id: string, options?: RequestOptions): APIPromise<Product>;
|
|
13
|
+
archiveProduct(id: string, params?: ProductArchiveProductParams | null | undefined, options?: RequestOptions): APIPromise<Product>;
|
|
14
14
|
/**
|
|
15
15
|
* Creates a new product.
|
|
16
16
|
*/
|
|
17
|
-
createProduct(
|
|
17
|
+
createProduct(params: ProductCreateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
18
18
|
/**
|
|
19
19
|
* Duplicates an existing product, including its plans, addons, and configuration.
|
|
20
20
|
*/
|
|
21
|
-
duplicateProduct(id: string,
|
|
21
|
+
duplicateProduct(id: string, params: ProductDuplicateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
22
22
|
/**
|
|
23
23
|
* Retrieves a paginated list of products in the environment.
|
|
24
24
|
*/
|
|
25
|
-
listProducts(
|
|
25
|
+
listProducts(params?: ProductListProductsParams | null | undefined, options?: RequestOptions): PagePromise<ProductListProductsResponsesMyCursorIDPage, ProductListProductsResponse>;
|
|
26
26
|
/**
|
|
27
27
|
* Restores an archived product, allowing new subscriptions to be created.
|
|
28
28
|
*/
|
|
29
|
-
unarchiveProduct(id: string, options?: RequestOptions): APIPromise<Product>;
|
|
29
|
+
unarchiveProduct(id: string, params?: ProductUnarchiveProductParams | null | undefined, options?: RequestOptions): APIPromise<Product>;
|
|
30
30
|
/**
|
|
31
31
|
* Updates an existing product's properties such as display name, description, and
|
|
32
32
|
* metadata.
|
|
33
33
|
*/
|
|
34
|
-
updateProduct(id: string,
|
|
34
|
+
updateProduct(id: string, params: ProductUpdateProductParams, options?: RequestOptions): APIPromise<Product>;
|
|
35
35
|
}
|
|
36
36
|
export type ProductListProductsResponsesMyCursorIDPage = MyCursorIDPage<ProductListProductsResponse>;
|
|
37
37
|
/**
|
|
@@ -195,57 +195,104 @@ export declare namespace ProductListProductsResponse {
|
|
|
195
195
|
subscriptionStartPlanId?: string | null;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
+
export interface ProductArchiveProductParams {
|
|
199
|
+
/**
|
|
200
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
201
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
202
|
+
*/
|
|
203
|
+
'X-ACCOUNT-ID'?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
206
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
207
|
+
* key).
|
|
208
|
+
*/
|
|
209
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
210
|
+
}
|
|
198
211
|
export interface ProductCreateProductParams {
|
|
199
212
|
/**
|
|
200
|
-
* The unique identifier for the entity
|
|
213
|
+
* Body param: The unique identifier for the entity
|
|
201
214
|
*/
|
|
202
215
|
id: string;
|
|
203
216
|
/**
|
|
204
|
-
* Display name of the product
|
|
217
|
+
* Body param: Display name of the product
|
|
205
218
|
*/
|
|
206
219
|
displayName: string;
|
|
207
220
|
/**
|
|
208
|
-
* Description of the product
|
|
221
|
+
* Body param: Description of the product
|
|
209
222
|
*/
|
|
210
223
|
description?: string | null;
|
|
211
224
|
/**
|
|
212
|
-
* Additional metadata for the product
|
|
225
|
+
* Body param: Additional metadata for the product
|
|
213
226
|
*/
|
|
214
227
|
metadata?: {
|
|
215
228
|
[key: string]: string;
|
|
216
229
|
} | null;
|
|
217
230
|
/**
|
|
218
|
-
* Indicates if multiple subscriptions to this product are allowed
|
|
231
|
+
* Body param: Indicates if multiple subscriptions to this product are allowed
|
|
219
232
|
*/
|
|
220
233
|
multipleSubscriptions?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
236
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
237
|
+
*/
|
|
238
|
+
'X-ACCOUNT-ID'?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
241
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
242
|
+
* intrinsic to the key).
|
|
243
|
+
*/
|
|
244
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
221
245
|
}
|
|
222
246
|
export interface ProductDuplicateProductParams {
|
|
223
247
|
/**
|
|
224
|
-
* The unique identifier for the entity
|
|
248
|
+
* Body param: The unique identifier for the entity
|
|
225
249
|
*/
|
|
226
250
|
targetId: string;
|
|
227
251
|
/**
|
|
228
|
-
* Description of the product
|
|
252
|
+
* Body param: Description of the product
|
|
229
253
|
*/
|
|
230
254
|
description?: string | null;
|
|
231
255
|
/**
|
|
232
|
-
* Display name of the product
|
|
256
|
+
* Body param: Display name of the product
|
|
233
257
|
*/
|
|
234
258
|
displayName?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
261
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
262
|
+
*/
|
|
263
|
+
'X-ACCOUNT-ID'?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
266
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
267
|
+
* intrinsic to the key).
|
|
268
|
+
*/
|
|
269
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
235
270
|
}
|
|
236
271
|
export interface ProductListProductsParams extends MyCursorIDPageParams {
|
|
237
272
|
/**
|
|
238
|
-
* Filter by entity ID
|
|
273
|
+
* Query param: Filter by entity ID
|
|
239
274
|
*/
|
|
240
275
|
id?: string;
|
|
241
276
|
/**
|
|
242
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
277
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
243
278
|
*/
|
|
244
279
|
createdAt?: ProductListProductsParams.CreatedAt;
|
|
245
280
|
/**
|
|
246
|
-
* Filter by product status. Supports comma-separated values for
|
|
281
|
+
* Query param: Filter by product status. Supports comma-separated values for
|
|
282
|
+
* multiple statuses
|
|
247
283
|
*/
|
|
248
284
|
status?: Array<'PUBLISHED' | 'ARCHIVED'>;
|
|
285
|
+
/**
|
|
286
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
287
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
288
|
+
*/
|
|
289
|
+
'X-ACCOUNT-ID'?: string;
|
|
290
|
+
/**
|
|
291
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
292
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
293
|
+
* intrinsic to the key).
|
|
294
|
+
*/
|
|
295
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
249
296
|
}
|
|
250
297
|
export declare namespace ProductListProductsParams {
|
|
251
298
|
/**
|
|
@@ -270,30 +317,57 @@ export declare namespace ProductListProductsParams {
|
|
|
270
317
|
lte?: string;
|
|
271
318
|
}
|
|
272
319
|
}
|
|
320
|
+
export interface ProductUnarchiveProductParams {
|
|
321
|
+
/**
|
|
322
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
323
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
324
|
+
*/
|
|
325
|
+
'X-ACCOUNT-ID'?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
328
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
329
|
+
* key).
|
|
330
|
+
*/
|
|
331
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
332
|
+
}
|
|
273
333
|
export interface ProductUpdateProductParams {
|
|
274
334
|
/**
|
|
275
|
-
* Description of the product
|
|
335
|
+
* Body param: Description of the product
|
|
276
336
|
*/
|
|
277
337
|
description?: string | null;
|
|
278
338
|
/**
|
|
279
|
-
* Display name of the product
|
|
339
|
+
* Body param: Display name of the product
|
|
280
340
|
*/
|
|
281
341
|
displayName?: string;
|
|
282
342
|
/**
|
|
283
|
-
* Additional metadata for the product
|
|
343
|
+
* Body param: Additional metadata for the product
|
|
284
344
|
*/
|
|
285
345
|
metadata?: {
|
|
286
346
|
[key: string]: string;
|
|
287
347
|
} | null;
|
|
288
348
|
/**
|
|
289
|
-
* Indicates if multiple subscriptions to this product are allowed
|
|
349
|
+
* Body param: Indicates if multiple subscriptions to this product are allowed
|
|
290
350
|
*/
|
|
291
351
|
multipleSubscriptions?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* Body param
|
|
354
|
+
*/
|
|
292
355
|
productSettings?: ProductUpdateProductParams.ProductSettings;
|
|
293
356
|
/**
|
|
294
|
-
* Rule defining when usage resets upon subscription update.
|
|
357
|
+
* Body param: Rule defining when usage resets upon subscription update.
|
|
295
358
|
*/
|
|
296
359
|
usageResetCutoffRule?: ProductUpdateProductParams.UsageResetCutoffRule;
|
|
360
|
+
/**
|
|
361
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
362
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
363
|
+
*/
|
|
364
|
+
'X-ACCOUNT-ID'?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
367
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
368
|
+
* intrinsic to the key).
|
|
369
|
+
*/
|
|
370
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
297
371
|
}
|
|
298
372
|
export declare namespace ProductUpdateProductParams {
|
|
299
373
|
interface ProductSettings {
|
|
@@ -334,6 +408,6 @@ export declare namespace ProductUpdateProductParams {
|
|
|
334
408
|
}
|
|
335
409
|
}
|
|
336
410
|
export declare namespace Products {
|
|
337
|
-
export { type Product as Product, type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
411
|
+
export { type Product as Product, type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductArchiveProductParams as ProductArchiveProductParams, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUnarchiveProductParams as ProductUnarchiveProductParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
338
412
|
}
|
|
339
413
|
//# sourceMappingURL=products.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,iCAA8B;AAE/F,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,cAAc,CACZ,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IActB;;OAEG;IACH,aAAa,CAAC,MAAM,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAehG;;OAEG;IACH,gBAAgB,CACd,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,6BAA6B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IAetB;;OAEG;IACH,YAAY,CACV,MAAM,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,C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;QAExE;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;;WAGG;QACH,2BAA2B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE7C;;WAEG;QACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzC;IAED;;OAEG;IACH,UAAiB,oBAAoB;QACnC;;WAEG;QACH,QAAQ,EAAE,aAAa,GAAG,cAAc,GAAG,uBAAuB,CAAC;KACpE;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/v1/products.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Products = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
8
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
9
|
/**
|
|
9
10
|
* Operations related to products
|
|
@@ -13,42 +14,103 @@ class Products extends resource_1.APIResource {
|
|
|
13
14
|
* Archives a product, preventing new subscriptions. All plans and addons are
|
|
14
15
|
* archived.
|
|
15
16
|
*/
|
|
16
|
-
archiveProduct(id, options) {
|
|
17
|
-
|
|
17
|
+
archiveProduct(id, params = {}, options) {
|
|
18
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
19
|
+
return this._client.post((0, path_1.path) `/api/v1/products/${id}/archive`, {
|
|
20
|
+
...options,
|
|
21
|
+
headers: (0, headers_1.buildHeaders)([
|
|
22
|
+
{
|
|
23
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
24
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
25
|
+
},
|
|
26
|
+
options?.headers,
|
|
27
|
+
]),
|
|
28
|
+
});
|
|
18
29
|
}
|
|
19
30
|
/**
|
|
20
31
|
* Creates a new product.
|
|
21
32
|
*/
|
|
22
|
-
createProduct(
|
|
23
|
-
|
|
33
|
+
createProduct(params, options) {
|
|
34
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
35
|
+
return this._client.post('/api/v1/products', {
|
|
36
|
+
body,
|
|
37
|
+
...options,
|
|
38
|
+
headers: (0, headers_1.buildHeaders)([
|
|
39
|
+
{
|
|
40
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
41
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
42
|
+
},
|
|
43
|
+
options?.headers,
|
|
44
|
+
]),
|
|
45
|
+
});
|
|
24
46
|
}
|
|
25
47
|
/**
|
|
26
48
|
* Duplicates an existing product, including its plans, addons, and configuration.
|
|
27
49
|
*/
|
|
28
|
-
duplicateProduct(id,
|
|
29
|
-
|
|
50
|
+
duplicateProduct(id, params, options) {
|
|
51
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
52
|
+
return this._client.post((0, path_1.path) `/api/v1/products/${id}/duplicate`, {
|
|
53
|
+
body,
|
|
54
|
+
...options,
|
|
55
|
+
headers: (0, headers_1.buildHeaders)([
|
|
56
|
+
{
|
|
57
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
58
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
59
|
+
},
|
|
60
|
+
options?.headers,
|
|
61
|
+
]),
|
|
62
|
+
});
|
|
30
63
|
}
|
|
31
64
|
/**
|
|
32
65
|
* Retrieves a paginated list of products in the environment.
|
|
33
66
|
*/
|
|
34
|
-
listProducts(
|
|
67
|
+
listProducts(params = {}, options) {
|
|
68
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
35
69
|
return this._client.getAPIList('/api/v1/products', (pagination_1.MyCursorIDPage), {
|
|
36
70
|
query,
|
|
37
71
|
...options,
|
|
72
|
+
headers: (0, headers_1.buildHeaders)([
|
|
73
|
+
{
|
|
74
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
75
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
76
|
+
},
|
|
77
|
+
options?.headers,
|
|
78
|
+
]),
|
|
38
79
|
});
|
|
39
80
|
}
|
|
40
81
|
/**
|
|
41
82
|
* Restores an archived product, allowing new subscriptions to be created.
|
|
42
83
|
*/
|
|
43
|
-
unarchiveProduct(id, options) {
|
|
44
|
-
|
|
84
|
+
unarchiveProduct(id, params = {}, options) {
|
|
85
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
86
|
+
return this._client.post((0, path_1.path) `/api/v1/products/${id}/unarchive`, {
|
|
87
|
+
...options,
|
|
88
|
+
headers: (0, headers_1.buildHeaders)([
|
|
89
|
+
{
|
|
90
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
91
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
92
|
+
},
|
|
93
|
+
options?.headers,
|
|
94
|
+
]),
|
|
95
|
+
});
|
|
45
96
|
}
|
|
46
97
|
/**
|
|
47
98
|
* Updates an existing product's properties such as display name, description, and
|
|
48
99
|
* metadata.
|
|
49
100
|
*/
|
|
50
|
-
updateProduct(id,
|
|
51
|
-
|
|
101
|
+
updateProduct(id, params, options) {
|
|
102
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
103
|
+
return this._client.patch((0, path_1.path) `/api/v1/products/${id}`, {
|
|
104
|
+
body,
|
|
105
|
+
...options,
|
|
106
|
+
headers: (0, headers_1.buildHeaders)([
|
|
107
|
+
{
|
|
108
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
109
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
110
|
+
},
|
|
111
|
+
options?.headers,
|
|
112
|
+
]),
|
|
113
|
+
});
|
|
52
114
|
}
|
|
53
115
|
}
|
|
54
116
|
exports.Products = Products;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAC/F,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;OAGG;IACH,cAAc,CACZ,EAAU,EACV,SAAyD,EAAE,EAC3D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAA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