@stigg/typescript 0.1.0-beta.2 → 0.1.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +170 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +372 -32
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +372 -32
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +173 -15
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +173 -15
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +93 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +93 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +80 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +80 -8
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/addons.d.mts.map +1 -1
- package/resources/v1/addons.d.ts.map +1 -1
- package/resources/v1/addons.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +117 -21
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +117 -21
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +96 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +96 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +212 -27
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +212 -27
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +66 -7
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +66 -7
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +150 -28
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +150 -28
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +125 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +125 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +91 -26
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +91 -26
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +63 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +63 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +3 -4
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +3 -4
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +1 -3
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +0 -1
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/credits.d.mts.map +1 -1
- package/resources/v1/credits.d.ts.map +1 -1
- package/resources/v1/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +249 -55
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +249 -55
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +201 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +201 -19
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +116 -14
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +116 -14
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +104 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +104 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +48 -8
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +48 -8
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +42 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +42 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +93 -9
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +93 -9
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +89 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +89 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/customers.d.mts.map +1 -1
- package/resources/v1/customers.d.ts.map +1 -1
- package/resources/v1/customers.mjs.map +1 -1
- package/resources/v1/events/beta/beta.d.mts +14 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +14 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +21 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +16 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers/assignments.d.mts +200 -0
- package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/assignments.d.ts +200 -0
- package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/assignments.js +85 -0
- package/resources/v1/events/beta/customers/assignments.js.map +1 -0
- package/resources/v1/events/beta/customers/assignments.mjs +81 -0
- package/resources/v1/events/beta/customers/assignments.mjs.map +1 -0
- package/resources/v1/events/beta/customers/customers.d.mts +18 -0
- package/resources/v1/events/beta/customers/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/customers.d.ts +18 -0
- package/resources/v1/events/beta/customers/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/customers.js +25 -0
- package/resources/v1/events/beta/customers/customers.js.map +1 -0
- package/resources/v1/events/beta/customers/customers.mjs +20 -0
- package/resources/v1/events/beta/customers/customers.mjs.map +1 -0
- package/resources/v1/events/beta/customers/entities.d.mts +360 -0
- package/resources/v1/events/beta/customers/entities.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/entities.d.ts +360 -0
- package/resources/v1/events/beta/customers/entities.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/entities.js +159 -0
- package/resources/v1/events/beta/customers/entities.js.map +1 -0
- package/resources/v1/events/beta/customers/entities.mjs +155 -0
- package/resources/v1/events/beta/customers/entities.mjs.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.d.mts +251 -0
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.d.ts +251 -0
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.js +38 -0
- package/resources/v1/events/beta/customers/entitlements.js.map +1 -0
- package/resources/v1/events/beta/customers/entitlements.mjs +34 -0
- package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1/events/beta/customers/index.d.mts +5 -0
- package/resources/v1/events/beta/customers/index.d.mts.map +1 -0
- package/resources/v1/events/beta/customers/index.d.ts +5 -0
- package/resources/v1/events/beta/customers/index.d.ts.map +1 -0
- package/resources/v1/events/beta/customers/index.js +13 -0
- package/resources/v1/events/beta/customers/index.js.map +1 -0
- package/resources/v1/events/beta/customers/index.mjs +6 -0
- package/resources/v1/events/beta/customers/index.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +2 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +2 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +6 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +3 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/entity-types.d.mts +166 -0
- package/resources/v1/events/beta/entity-types.d.mts.map +1 -0
- package/resources/v1/events/beta/entity-types.d.ts +166 -0
- package/resources/v1/events/beta/entity-types.d.ts.map +1 -0
- package/resources/v1/events/beta/entity-types.js +76 -0
- package/resources/v1/events/beta/entity-types.js.map +1 -0
- package/resources/v1/events/beta/entity-types.mjs +72 -0
- package/resources/v1/events/beta/entity-types.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +4 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +4 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +11 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +5 -0
- package/resources/v1/events/beta/index.mjs.map +1 -0
- package/resources/v1/events/beta.d.mts +2 -0
- package/resources/v1/events/beta.d.mts.map +1 -0
- package/resources/v1/events/beta.d.ts +2 -0
- package/resources/v1/events/beta.d.ts.map +1 -0
- package/resources/v1/events/beta.js +6 -0
- package/resources/v1/events/beta.js.map +1 -0
- package/resources/v1/events/beta.mjs +3 -0
- package/resources/v1/events/beta.mjs.map +1 -0
- package/resources/v1/events/data-export/data-export.d.mts +126 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export/data-export.d.ts +126 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export/data-export.js +45 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -0
- package/resources/v1/events/data-export/data-export.mjs +40 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -0
- package/resources/v1/events/data-export/destinations.d.mts +202 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +202 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +41 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +37 -0
- package/resources/v1/events/data-export/destinations.mjs.map +1 -0
- package/resources/v1/events/data-export/index.d.mts +3 -0
- package/resources/v1/events/data-export/index.d.mts.map +1 -0
- package/resources/v1/events/data-export/index.d.ts +3 -0
- package/resources/v1/events/data-export/index.d.ts.map +1 -0
- package/resources/v1/events/data-export/index.js +9 -0
- package/resources/v1/events/data-export/index.js.map +1 -0
- package/resources/v1/events/data-export/index.mjs +4 -0
- package/resources/v1/events/data-export/index.mjs.map +1 -0
- package/resources/v1/events/data-export.d.mts +2 -0
- package/resources/v1/events/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export.d.ts +2 -0
- package/resources/v1/events/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export.js +6 -0
- package/resources/v1/events/data-export.js.map +1 -0
- package/resources/v1/events/data-export.mjs +3 -0
- package/resources/v1/events/data-export.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +98 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +98 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +56 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +51 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +4 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +4 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +11 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +5 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events.d.mts +1 -65
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +1 -65
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +2 -15
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +1 -13
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +152 -31
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +152 -31
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +115 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +115 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +9 -9
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +9 -9
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +6 -6
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +93 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +93 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +80 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +80 -8
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +565 -32
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +565 -32
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +204 -16
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +204 -16
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/plans.d.mts.map +1 -1
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +140 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +140 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +116 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +116 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +45 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +45 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +41 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +41 -4
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +21 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +21 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +19 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +19 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +341 -85
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +341 -85
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +207 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +209 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +42 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +42 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +39 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +39 -4
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +48 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +48 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +50 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +50 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +18 -18
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +18 -18
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1.d.mts.map +1 -1
- package/resources/v1.d.ts.map +1 -1
- package/resources/v1.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/resources/v1/addons/addons.ts +908 -36
- package/src/resources/v1/addons/entitlements.ts +154 -10
- package/src/resources/v1/addons/index.ts +8 -0
- package/src/resources/v1/coupons.ts +194 -27
- package/src/resources/v1/credits/credits.ts +287 -35
- package/src/resources/v1/credits/custom-currencies.ts +245 -38
- package/src/resources/v1/credits/grants.ts +132 -26
- package/src/resources/v1/credits/index.ts +7 -6
- package/src/resources/v1/customers/customers.ts +415 -67
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +184 -18
- package/src/resources/v1/customers/payment-method.ts +85 -10
- package/src/resources/v1/customers/promotional-entitlements.ts +133 -11
- package/src/resources/v1/events/beta/beta.ts +35 -0
- package/src/resources/v1/events/beta/customers/assignments.ts +277 -0
- package/src/resources/v1/events/beta/customers/customers.ts +71 -0
- package/src/resources/v1/events/beta/customers/entities.ts +501 -0
- package/src/resources/v1/events/beta/customers/entitlements.ts +354 -0
- package/src/resources/v1/events/beta/customers/index.ts +26 -0
- package/src/resources/v1/events/beta/customers.ts +3 -0
- package/src/resources/v1/events/beta/entity-types.ts +226 -0
- package/src/resources/v1/events/beta/index.ts +12 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/data-export/data-export.ts +170 -0
- package/src/resources/v1/events/data-export/destinations.ts +243 -0
- package/src/resources/v1/events/data-export/index.ts +15 -0
- package/src/resources/v1/events/data-export.ts +3 -0
- package/src/resources/v1/events/events.ts +141 -0
- package/src/resources/v1/events/index.ts +11 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +252 -39
- package/src/resources/v1/index.ts +31 -1
- package/src/resources/v1/plans/entitlements.ts +154 -10
- package/src/resources/v1/plans/index.ts +11 -0
- package/src/resources/v1/plans/plans.ts +1509 -37
- package/src/resources/v1/products.ts +235 -30
- package/src/resources/v1/subscriptions/future-update.ts +84 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +42 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +509 -90
- package/src/resources/v1/subscriptions/usage.ts +74 -5
- package/src/resources/v1/usage.ts +77 -5
- package/src/resources/v1/v1.ts +62 -2
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/v1/credits/auto-recharge.d.mts +0 -84
- package/resources/v1/credits/auto-recharge.d.mts.map +0 -1
- package/resources/v1/credits/auto-recharge.d.ts +0 -84
- package/resources/v1/credits/auto-recharge.d.ts.map +0 -1
- package/resources/v1/credits/auto-recharge.js +0 -16
- package/resources/v1/credits/auto-recharge.js.map +0 -1
- package/resources/v1/credits/auto-recharge.mjs +0 -12
- package/resources/v1/credits/auto-recharge.mjs.map +0 -1
- package/src/resources/v1/credits/auto-recharge.ts +0 -109
|
@@ -7,6 +7,7 @@ import { PaymentMethod } from "./payment-method.mjs";
|
|
|
7
7
|
import * as PromotionalEntitlementsAPI from "./promotional-entitlements.mjs";
|
|
8
8
|
import { PromotionalEntitlements, } from "./promotional-entitlements.mjs";
|
|
9
9
|
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
10
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
10
11
|
import { path } from "../../../internal/utils/path.mjs";
|
|
11
12
|
export class Customers extends APIResource {
|
|
12
13
|
constructor() {
|
|
@@ -18,32 +19,100 @@ export class Customers extends APIResource {
|
|
|
18
19
|
/**
|
|
19
20
|
* Retrieves a customer by their unique identifier, including billing information
|
|
20
21
|
* and subscription status.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const customerResponse = await client.v1.customers.retrieve(
|
|
26
|
+
* 'x',
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
21
29
|
*/
|
|
22
|
-
retrieve(id, options) {
|
|
23
|
-
|
|
30
|
+
retrieve(id, params = {}, options) {
|
|
31
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
32
|
+
return this._client.get(path `/api/v1/customers/${id}`, {
|
|
33
|
+
...options,
|
|
34
|
+
headers: buildHeaders([
|
|
35
|
+
{
|
|
36
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
37
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
38
|
+
},
|
|
39
|
+
options?.headers,
|
|
40
|
+
]),
|
|
41
|
+
});
|
|
24
42
|
}
|
|
25
43
|
/**
|
|
26
44
|
* Updates an existing customer's properties such as name, email, and billing
|
|
27
45
|
* information.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const customerResponse = await client.v1.customers.update(
|
|
50
|
+
* 'x',
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
28
53
|
*/
|
|
29
|
-
update(id,
|
|
30
|
-
|
|
54
|
+
update(id, params, options) {
|
|
55
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
56
|
+
return this._client.patch(path `/api/v1/customers/${id}`, {
|
|
57
|
+
body,
|
|
58
|
+
...options,
|
|
59
|
+
headers: buildHeaders([
|
|
60
|
+
{
|
|
61
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
62
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
63
|
+
},
|
|
64
|
+
options?.headers,
|
|
65
|
+
]),
|
|
66
|
+
});
|
|
31
67
|
}
|
|
32
68
|
/**
|
|
33
69
|
* Retrieves a paginated list of customers in the environment.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* // Automatically fetches more pages as needed.
|
|
74
|
+
* for await (const customerListResponse of client.v1.customers.list()) {
|
|
75
|
+
* // ...
|
|
76
|
+
* }
|
|
77
|
+
* ```
|
|
34
78
|
*/
|
|
35
|
-
list(
|
|
79
|
+
list(params = {}, options) {
|
|
80
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
36
81
|
return this._client.getAPIList('/api/v1/customers', (MyCursorIDPage), {
|
|
37
82
|
query,
|
|
38
83
|
...options,
|
|
84
|
+
headers: buildHeaders([
|
|
85
|
+
{
|
|
86
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
87
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
88
|
+
},
|
|
89
|
+
options?.headers,
|
|
90
|
+
]),
|
|
39
91
|
});
|
|
40
92
|
}
|
|
41
93
|
/**
|
|
42
94
|
* Archives a customer, preventing new subscriptions. Optionally cancels existing
|
|
43
95
|
* subscriptions.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const customerResponse = await client.v1.customers.archive(
|
|
100
|
+
* 'x',
|
|
101
|
+
* );
|
|
102
|
+
* ```
|
|
44
103
|
*/
|
|
45
|
-
archive(id, options) {
|
|
46
|
-
|
|
104
|
+
archive(id, params = {}, options) {
|
|
105
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
106
|
+
return this._client.post(path `/api/v1/customers/${id}/archive`, {
|
|
107
|
+
...options,
|
|
108
|
+
headers: buildHeaders([
|
|
109
|
+
{
|
|
110
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
111
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
112
|
+
},
|
|
113
|
+
options?.headers,
|
|
114
|
+
]),
|
|
115
|
+
});
|
|
47
116
|
}
|
|
48
117
|
/**
|
|
49
118
|
* Checks a single entitlement (feature or credit) for a customer or resource.
|
|
@@ -54,29 +123,109 @@ export class Customers extends APIResource {
|
|
|
54
123
|
* mechanisms, and low-latency guarantees. It is not recommended for hot-path
|
|
55
124
|
* entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
56
125
|
* with caching or the Sidecar for low-latency cached responses.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* ```ts
|
|
129
|
+
* const response = await client.v1.customers.checkEntitlement(
|
|
130
|
+
* 'x',
|
|
131
|
+
* );
|
|
132
|
+
* ```
|
|
57
133
|
*/
|
|
58
|
-
checkEntitlement(id,
|
|
59
|
-
|
|
134
|
+
checkEntitlement(id, params = {}, options) {
|
|
135
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
136
|
+
return this._client.get(path `/api/v1/customers/${id}/entitlements/check`, {
|
|
137
|
+
query,
|
|
138
|
+
...options,
|
|
139
|
+
headers: buildHeaders([
|
|
140
|
+
{
|
|
141
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
142
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
143
|
+
},
|
|
144
|
+
options?.headers,
|
|
145
|
+
]),
|
|
146
|
+
});
|
|
60
147
|
}
|
|
61
148
|
/**
|
|
62
149
|
* Imports multiple customers in bulk. Used for migrating customer data from
|
|
63
150
|
* external systems.
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* ```ts
|
|
154
|
+
* const response = await client.v1.customers.import({
|
|
155
|
+
* customers: [
|
|
156
|
+
* {
|
|
157
|
+
* id: 'id',
|
|
158
|
+
* email: 'dev@stainless.com',
|
|
159
|
+
* name: 'name',
|
|
160
|
+
* },
|
|
161
|
+
* ],
|
|
162
|
+
* });
|
|
163
|
+
* ```
|
|
64
164
|
*/
|
|
65
|
-
import(
|
|
66
|
-
|
|
165
|
+
import(params, options) {
|
|
166
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
167
|
+
return this._client.post('/api/v1/customers/import', {
|
|
168
|
+
body,
|
|
169
|
+
...options,
|
|
170
|
+
headers: buildHeaders([
|
|
171
|
+
{
|
|
172
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
173
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
174
|
+
},
|
|
175
|
+
options?.headers,
|
|
176
|
+
]),
|
|
177
|
+
});
|
|
67
178
|
}
|
|
68
179
|
/**
|
|
69
180
|
* Retrieves a paginated list of resources within the same customer.
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```ts
|
|
184
|
+
* // Automatically fetches more pages as needed.
|
|
185
|
+
* for await (const customerListResourcesResponse of client.v1.customers.listResources(
|
|
186
|
+
* 'x',
|
|
187
|
+
* )) {
|
|
188
|
+
* // ...
|
|
189
|
+
* }
|
|
190
|
+
* ```
|
|
70
191
|
*/
|
|
71
|
-
listResources(id,
|
|
72
|
-
|
|
192
|
+
listResources(id, params = {}, options) {
|
|
193
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
194
|
+
return this._client.getAPIList(path `/api/v1/customers/${id}/resources`, (MyCursorIDPage), {
|
|
195
|
+
query,
|
|
196
|
+
...options,
|
|
197
|
+
headers: buildHeaders([
|
|
198
|
+
{
|
|
199
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
200
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
201
|
+
},
|
|
202
|
+
options?.headers,
|
|
203
|
+
]),
|
|
204
|
+
});
|
|
73
205
|
}
|
|
74
206
|
/**
|
|
75
207
|
* Creates a new customer and optionally provisions an initial subscription in a
|
|
76
208
|
* single operation.
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```ts
|
|
212
|
+
* const customerResponse =
|
|
213
|
+
* await client.v1.customers.provision({ id: 'id' });
|
|
214
|
+
* ```
|
|
77
215
|
*/
|
|
78
|
-
provision(
|
|
79
|
-
|
|
216
|
+
provision(params, options) {
|
|
217
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
218
|
+
return this._client.post('/api/v1/customers', {
|
|
219
|
+
body,
|
|
220
|
+
...options,
|
|
221
|
+
headers: buildHeaders([
|
|
222
|
+
{
|
|
223
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
224
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
225
|
+
},
|
|
226
|
+
options?.headers,
|
|
227
|
+
]),
|
|
228
|
+
});
|
|
80
229
|
}
|
|
81
230
|
/**
|
|
82
231
|
* Retrieves the effective entitlements for a customer or resource, including
|
|
@@ -86,15 +235,48 @@ export class Customers extends APIResource {
|
|
|
86
235
|
* mechanisms, and low-latency guarantees. It is not recommended for hot-path
|
|
87
236
|
* entitlement checks. For production use, consider using the Stigg Node Server SDK
|
|
88
237
|
* with caching or the Sidecar for low-latency cached responses.
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* ```ts
|
|
241
|
+
* const response =
|
|
242
|
+
* await client.v1.customers.retrieveEntitlements('x');
|
|
243
|
+
* ```
|
|
89
244
|
*/
|
|
90
|
-
retrieveEntitlements(id,
|
|
91
|
-
|
|
245
|
+
retrieveEntitlements(id, params = {}, options) {
|
|
246
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
247
|
+
return this._client.get(path `/api/v1/customers/${id}/entitlements`, {
|
|
248
|
+
query,
|
|
249
|
+
...options,
|
|
250
|
+
headers: buildHeaders([
|
|
251
|
+
{
|
|
252
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
253
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
254
|
+
},
|
|
255
|
+
options?.headers,
|
|
256
|
+
]),
|
|
257
|
+
});
|
|
92
258
|
}
|
|
93
259
|
/**
|
|
94
260
|
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* ```ts
|
|
264
|
+
* const customerResponse =
|
|
265
|
+
* await client.v1.customers.unarchive('x');
|
|
266
|
+
* ```
|
|
95
267
|
*/
|
|
96
|
-
unarchive(id, options) {
|
|
97
|
-
|
|
268
|
+
unarchive(id, params = {}, options) {
|
|
269
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
270
|
+
return this._client.post(path `/api/v1/customers/${id}/unarchive`, {
|
|
271
|
+
...options,
|
|
272
|
+
headers: buildHeaders([
|
|
273
|
+
{
|
|
274
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
275
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
276
|
+
},
|
|
277
|
+
options?.headers,
|
|
278
|
+
]),
|
|
279
|
+
});
|
|
98
280
|
}
|
|
99
281
|
}
|
|
100
282
|
Customers.PaymentMethod = PaymentMethod;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"A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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;;;;;;;;OAQG;IACH,SAAS,CACP,EAAU,EACV,SAAqD,EAAE,EACvD,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,qBAAqB,EAAE,YAAY,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;AAugGD,SAAS,CAAC,aAAa,GAAG,aAAa,CAAC;AACxC,SAAS,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;AAC5D,SAAS,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerUpdateParams, type CustomerListParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers.mjs";
|
|
1
|
+
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerRetrieveParams, type CustomerUpdateParams, type CustomerListParams, type CustomerArchiveParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerUnarchiveParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers.mjs";
|
|
2
2
|
export { Integrations, type IntegrationListResponse, type IntegrationRetrieveParams, type IntegrationUpdateParams, type IntegrationListParams, type IntegrationLinkParams, type IntegrationUnlinkParams, type IntegrationListResponsesMyCursorIDPage, } from "./integrations.mjs";
|
|
3
|
-
export { PaymentMethod, type PaymentMethodAttachParams } from "./payment-method.mjs";
|
|
3
|
+
export { PaymentMethod, type PaymentMethodAttachParams, type PaymentMethodDetachParams, } from "./payment-method.mjs";
|
|
4
4
|
export { PromotionalEntitlements, type PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse, type PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams, type PromotionalEntitlementListResponsesMyCursorIDPage, } from "./promotional-entitlements.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,KAAK,4CAA4C,GAClD,wBAAoB;AACrB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,GAC5C,2BAAuB;AACxB,OAAO,EACL,aAAa,EACb,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,6BAAyB;AAC1B,OAAO,EACL,uBAAuB,EACvB,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,iDAAiD,GACvD,uCAAmC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerUpdateParams, type CustomerListParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers.js";
|
|
1
|
+
export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerRetrieveParams, type CustomerUpdateParams, type CustomerListParams, type CustomerArchiveParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerUnarchiveParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers.js";
|
|
2
2
|
export { Integrations, type IntegrationListResponse, type IntegrationRetrieveParams, type IntegrationUpdateParams, type IntegrationListParams, type IntegrationLinkParams, type IntegrationUnlinkParams, type IntegrationListResponsesMyCursorIDPage, } from "./integrations.js";
|
|
3
|
-
export { PaymentMethod, type PaymentMethodAttachParams } from "./payment-method.js";
|
|
3
|
+
export { PaymentMethod, type PaymentMethodAttachParams, type PaymentMethodDetachParams, } from "./payment-method.js";
|
|
4
4
|
export { PromotionalEntitlements, type PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse, type PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams, type PromotionalEntitlementListResponsesMyCursorIDPage, } from "./promotional-entitlements.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,KAAK,4CAA4C,GAClD,uBAAoB;AACrB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,GAC5C,0BAAuB;AACxB,OAAO,EACL,aAAa,EACb,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,4BAAyB;AAC1B,OAAO,EACL,uBAAuB,EACvB,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,iDAAiD,GACvD,sCAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAqBqB;AApBnB,sGAAA,SAAS,OAAA;AAqBX,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,sDAI0B;AAHxB,+GAAA,aAAa,OAAA;AAIf,0EASoC;AARlC,mIAAA,uBAAuB,OAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Customers, } from "./customers.mjs";
|
|
3
3
|
export { Integrations, } from "./integrations.mjs";
|
|
4
|
-
export { PaymentMethod } from "./payment-method.mjs";
|
|
4
|
+
export { PaymentMethod, } from "./payment-method.mjs";
|
|
5
5
|
export { PromotionalEntitlements, } from "./promotional-entitlements.mjs";
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAoBV,wBAAoB;AACrB,OAAO,EACL,YAAY,GAQb,2BAAuB;AACxB,OAAO,EACL,aAAa,GAGd,6BAAyB;AAC1B,OAAO,EACL,uBAAuB,GAQxB,uCAAmC"}
|
|
@@ -6,25 +6,72 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
|
6
6
|
export declare class Integrations extends APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves a specific integration for a customer by integration ID.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const customerIntegrationResponse =
|
|
13
|
+
* await client.v1.customers.integrations.retrieve(
|
|
14
|
+
* 'integrationId',
|
|
15
|
+
* { id: 'id' },
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
9
18
|
*/
|
|
10
19
|
retrieve(integrationID: string, params: IntegrationRetrieveParams, options?: RequestOptions): APIPromise<CustomersAPI.CustomerIntegrationResponse>;
|
|
11
20
|
/**
|
|
12
21
|
* Updates a customer's integration link, such as changing the synced external
|
|
13
22
|
* entity ID.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const customerIntegrationResponse =
|
|
27
|
+
* await client.v1.customers.integrations.update(
|
|
28
|
+
* 'integrationId',
|
|
29
|
+
* { id: 'id', syncedEntityId: 'syncedEntityId' },
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
14
32
|
*/
|
|
15
33
|
update(integrationID: string, params: IntegrationUpdateParams, options?: RequestOptions): APIPromise<CustomersAPI.CustomerIntegrationResponse>;
|
|
16
34
|
/**
|
|
17
35
|
* Retrieves a paginated list of a customer's external integrations (billing, CRM,
|
|
18
36
|
* etc.).
|
|
19
|
-
|
|
20
|
-
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* // Automatically fetches more pages as needed.
|
|
41
|
+
* for await (const integrationListResponse of client.v1.customers.integrations.list(
|
|
42
|
+
* 'x',
|
|
43
|
+
* )) {
|
|
44
|
+
* // ...
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
list(id: string, params?: IntegrationListParams | null | undefined, options?: RequestOptions): PagePromise<IntegrationListResponsesMyCursorIDPage, IntegrationListResponse>;
|
|
21
49
|
/**
|
|
22
50
|
* Links a customer to an external integration by specifying the vendor and
|
|
23
51
|
* external entity ID.
|
|
24
|
-
|
|
25
|
-
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const customerIntegrationResponse =
|
|
56
|
+
* await client.v1.customers.integrations.link('x', {
|
|
57
|
+
* id: 'id',
|
|
58
|
+
* syncedEntityId: 'syncedEntityId',
|
|
59
|
+
* vendorIdentifier: 'AUTH0',
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
link(id: string, params: IntegrationLinkParams, options?: RequestOptions): APIPromise<CustomersAPI.CustomerIntegrationResponse>;
|
|
26
64
|
/**
|
|
27
65
|
* Removes the link between a customer and an external integration.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const customerIntegrationResponse =
|
|
70
|
+
* await client.v1.customers.integrations.unlink(
|
|
71
|
+
* 'integrationId',
|
|
72
|
+
* { id: 'id' },
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
28
75
|
*/
|
|
29
76
|
unlink(integrationID: string, params: IntegrationUnlinkParams, options?: RequestOptions): APIPromise<CustomersAPI.CustomerIntegrationResponse>;
|
|
30
77
|
}
|
|
@@ -44,7 +91,7 @@ export interface IntegrationListResponse {
|
|
|
44
91
|
/**
|
|
45
92
|
* The vendor identifier of integration
|
|
46
93
|
*/
|
|
47
|
-
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
94
|
+
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL';
|
|
48
95
|
/**
|
|
49
96
|
* Price billing sync revision data containing billing ID, link URL, and price
|
|
50
97
|
* group package billing ID
|
|
@@ -95,9 +142,20 @@ export declare namespace IntegrationListResponse {
|
|
|
95
142
|
}
|
|
96
143
|
export interface IntegrationRetrieveParams {
|
|
97
144
|
/**
|
|
98
|
-
* Customer slug
|
|
145
|
+
* Path param: Customer slug
|
|
99
146
|
*/
|
|
100
147
|
id: string;
|
|
148
|
+
/**
|
|
149
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
150
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
151
|
+
*/
|
|
152
|
+
'X-ACCOUNT-ID'?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
155
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
156
|
+
* intrinsic to the key).
|
|
157
|
+
*/
|
|
158
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
101
159
|
}
|
|
102
160
|
export interface IntegrationUpdateParams {
|
|
103
161
|
/**
|
|
@@ -108,33 +166,77 @@ export interface IntegrationUpdateParams {
|
|
|
108
166
|
* Body param: Synced entity id
|
|
109
167
|
*/
|
|
110
168
|
syncedEntityId: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
171
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
172
|
+
*/
|
|
173
|
+
'X-ACCOUNT-ID'?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
176
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
177
|
+
* intrinsic to the key).
|
|
178
|
+
*/
|
|
179
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
111
180
|
}
|
|
112
181
|
export interface IntegrationListParams extends MyCursorIDPageParams {
|
|
113
182
|
/**
|
|
114
|
-
* Filter by vendor identifier. Supports comma-separated values for
|
|
115
|
-
* vendors (e.g., STRIPE,HUBSPOT)
|
|
183
|
+
* Query param: Filter by vendor identifier. Supports comma-separated values for
|
|
184
|
+
* multiple vendors (e.g., STRIPE,HUBSPOT)
|
|
185
|
+
*/
|
|
186
|
+
vendorIdentifier?: Array<'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL'>;
|
|
187
|
+
/**
|
|
188
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
189
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
190
|
+
*/
|
|
191
|
+
'X-ACCOUNT-ID'?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
194
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
195
|
+
* intrinsic to the key).
|
|
116
196
|
*/
|
|
117
|
-
|
|
197
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
118
198
|
}
|
|
119
199
|
export interface IntegrationLinkParams {
|
|
120
200
|
/**
|
|
121
|
-
* Integration details
|
|
201
|
+
* Body param: Integration details
|
|
122
202
|
*/
|
|
123
203
|
id: string;
|
|
124
204
|
/**
|
|
125
|
-
* Synced entity id
|
|
205
|
+
* Body param: Synced entity id
|
|
126
206
|
*/
|
|
127
207
|
syncedEntityId: string;
|
|
128
208
|
/**
|
|
129
|
-
* The vendor identifier of integration
|
|
209
|
+
* Body param: The vendor identifier of integration
|
|
210
|
+
*/
|
|
211
|
+
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE' | 'RECEIVED' | 'PREQUEL';
|
|
212
|
+
/**
|
|
213
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
214
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
130
215
|
*/
|
|
131
|
-
|
|
216
|
+
'X-ACCOUNT-ID'?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
219
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
220
|
+
* intrinsic to the key).
|
|
221
|
+
*/
|
|
222
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
132
223
|
}
|
|
133
224
|
export interface IntegrationUnlinkParams {
|
|
134
225
|
/**
|
|
135
|
-
* Customer slug
|
|
226
|
+
* Path param: Customer slug
|
|
136
227
|
*/
|
|
137
228
|
id: string;
|
|
229
|
+
/**
|
|
230
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
231
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
232
|
+
*/
|
|
233
|
+
'X-ACCOUNT-ID'?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
236
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
237
|
+
* intrinsic to the key).
|
|
238
|
+
*/
|
|
239
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
138
240
|
}
|
|
139
241
|
export declare namespace Integrations {
|
|
140
242
|
export { 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, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/integrations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"integrations.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/integrations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,2BAA2B,CAAC;IAcvD;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,uBAAuB,EA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