@stigg/typescript 0.1.0-beta.20 → 0.1.0-beta.22
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 +16 -0
- 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 +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +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 +145 -94
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +145 -94
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +110 -76
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +110 -76
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +62 -36
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +62 -36
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -39
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -39
- 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/coupons.d.mts +81 -57
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +81 -57
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -45
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -45
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +60 -52
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +60 -52
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +36 -30
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +36 -30
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +98 -74
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +98 -74
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -61
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -61
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +63 -54
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +63 -54
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -33
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -33
- 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/customers/customers.d.mts +167 -127
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +167 -127
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -96
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -96
- 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 +66 -58
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +66 -58
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -56
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -56
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +33 -25
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +33 -25
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -20
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -20
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +42 -60
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +42 -60
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -57
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -57
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/data-export/data-export.d.mts +29 -21
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -1
- package/resources/v1/events/data-export/data-export.d.ts +29 -21
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -1
- package/resources/v1/events/data-export/data-export.js +27 -18
- package/resources/v1/events/data-export/data-export.js.map +1 -1
- package/resources/v1/events/data-export/data-export.mjs +27 -18
- package/resources/v1/events/data-export/data-export.mjs.map +1 -1
- package/resources/v1/events/data-export/destinations.d.mts +29 -22
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
- package/resources/v1/events/data-export/destinations.d.ts +29 -22
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
- package/resources/v1/events/data-export/destinations.js +26 -21
- package/resources/v1/events/data-export/destinations.js.map +1 -1
- package/resources/v1/events/data-export/destinations.mjs +26 -21
- package/resources/v1/events/data-export/destinations.mjs.map +1 -1
- package/resources/v1/events/data-export/index.d.mts +1 -1
- package/resources/v1/events/data-export/index.d.mts.map +1 -1
- package/resources/v1/events/data-export/index.d.ts +1 -1
- package/resources/v1/events/data-export/index.d.ts.map +1 -1
- package/resources/v1/events/data-export/index.js.map +1 -1
- package/resources/v1/events/data-export/index.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +13 -19
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +13 -19
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +14 -19
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +14 -19
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/events/index.d.mts +0 -1
- package/resources/v1/events/index.d.mts.map +1 -1
- package/resources/v1/events/index.d.ts +0 -1
- package/resources/v1/events/index.d.ts.map +1 -1
- package/resources/v1/events/index.js +3 -5
- package/resources/v1/events/index.js.map +1 -1
- package/resources/v1/events/index.mjs +0 -1
- package/resources/v1/events/index.mjs.map +1 -1
- package/resources/v1/features.d.mts +109 -74
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +109 -74
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -54
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -54
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +7 -7
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +7 -7
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +62 -36
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +62 -36
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -39
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -39
- 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 +159 -106
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +159 -106
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +127 -89
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +127 -89
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +97 -66
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -66
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -54
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -54
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -19
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -19
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -20
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -20
- 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 -8
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -8
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -8
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -8
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +244 -161
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +244 -161
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -100
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -102
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -17
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -17
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -17
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -17
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +24 -26
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +24 -26
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -28
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -28
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +14 -14
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +14 -14
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +242 -0
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1-beta/customers/assignments.d.ts +242 -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/events/beta → v1-beta}/customers/customers.d.mts +1 -1
- package/resources/v1-beta/customers/customers.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.d.ts +1 -1
- package/resources/v1-beta/customers/customers.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.js +2 -2
- package/resources/v1-beta/customers/customers.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.mjs +1 -1
- package/resources/v1-beta/customers/customers.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.d.mts +94 -47
- package/resources/v1-beta/customers/entities.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.d.ts +94 -47
- 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/events/beta → v1-beta}/customers/entitlements.d.mts +27 -16
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.ts +27 -16
- 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.map +1 -0
- package/resources/v1-beta/customers/index.d.ts.map +1 -0
- package/resources/v1-beta/customers/index.js.map +1 -0
- package/resources/v1-beta/customers/index.mjs.map +1 -0
- package/resources/v1-beta/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers.js +1 -1
- package/resources/v1-beta/customers.js.map +1 -0
- package/resources/v1-beta/customers.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.d.mts +44 -23
- package/resources/v1-beta/entity-types.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.d.ts +44 -23
- 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/events/beta → v1-beta}/index.d.mts +1 -1
- package/resources/v1-beta/index.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.d.ts +1 -1
- package/resources/v1-beta/index.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.js +3 -3
- package/resources/v1-beta/index.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.mjs +1 -1
- package/resources/v1-beta/index.mjs.map +1 -0
- package/resources/{v1/events/beta/beta.d.mts → v1-beta/v1-beta.d.mts} +4 -4
- package/resources/v1-beta/v1-beta.d.mts.map +1 -0
- package/resources/{v1/events/beta/beta.d.ts → v1-beta/v1-beta.d.ts} +4 -4
- package/resources/v1-beta/v1-beta.d.ts.map +1 -0
- package/resources/{v1/events/beta/beta.js → v1-beta/v1-beta.js} +8 -8
- package/resources/v1-beta/v1-beta.js.map +1 -0
- package/resources/{v1/events/beta/beta.mjs → v1-beta/v1-beta.mjs} +5 -5
- 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/events/beta.js → v1-beta.js} +3 -3
- package/resources/v1-beta.js.map +1 -0
- package/resources/{v1/events/beta.mjs → v1-beta.mjs} +2 -2
- package/resources/v1-beta.mjs.map +1 -0
- package/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +293 -105
- package/src/resources/v1/addons/entitlements.ts +123 -41
- package/src/resources/v1/addons/index.ts +5 -0
- package/src/resources/v1/coupons.ts +158 -63
- package/src/resources/v1/credits/credits.ts +103 -50
- package/src/resources/v1/credits/custom-currencies.ts +191 -82
- package/src/resources/v1/credits/grants.ts +104 -54
- package/src/resources/v1/credits/index.ts +4 -0
- package/src/resources/v1/customers/customers.ts +324 -140
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +129 -63
- package/src/resources/v1/customers/payment-method.ts +66 -25
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -62
- package/src/resources/v1/events/data-export/data-export.ts +58 -21
- package/src/resources/v1/events/data-export/destinations.ts +61 -23
- package/src/resources/v1/events/data-export/index.ts +1 -0
- package/src/resources/v1/events/events.ts +28 -22
- package/src/resources/v1/events/index.ts +0 -1
- package/src/resources/v1/features.ts +209 -82
- package/src/resources/v1/index.ts +19 -0
- package/src/resources/v1/plans/entitlements.ts +123 -41
- package/src/resources/v1/plans/index.ts +5 -0
- package/src/resources/v1/plans/plans.ts +321 -119
- package/src/resources/v1/products.ts +193 -74
- package/src/resources/v1/subscriptions/future-update.ts +68 -21
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -9
- package/src/resources/v1/subscriptions/subscriptions.ts +417 -173
- package/src/resources/v1/subscriptions/usage.ts +61 -18
- package/src/resources/v1/usage.ts +53 -29
- package/src/resources/v1/v1.ts +38 -0
- package/src/resources/v1-beta/customers/assignments.ts +328 -0
- package/src/resources/{v1/events/beta → v1-beta}/customers/customers.ts +1 -1
- package/src/resources/{v1/events/beta → v1-beta}/customers/entities.ts +165 -54
- package/src/resources/{v1/events/beta → v1-beta}/customers/entitlements.ts +43 -18
- package/src/resources/{v1/events/beta → v1-beta}/entity-types.ts +70 -25
- package/src/resources/{v1/events/beta → v1-beta}/index.ts +1 -1
- package/src/resources/{v1/events/beta/beta.ts → v1-beta/v1-beta.ts} +5 -5
- package/src/resources/{v1/events/beta.ts → v1-beta.ts} +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/events/beta/beta.d.mts.map +0 -1
- package/resources/v1/events/beta/beta.d.ts.map +0 -1
- package/resources/v1/events/beta/beta.js.map +0 -1
- package/resources/v1/events/beta/beta.mjs.map +0 -1
- package/resources/v1/events/beta/customers/assignments.d.mts +0 -178
- package/resources/v1/events/beta/customers/assignments.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/assignments.d.ts +0 -178
- package/resources/v1/events/beta/customers/assignments.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/assignments.js +0 -62
- package/resources/v1/events/beta/customers/assignments.js.map +0 -1
- package/resources/v1/events/beta/customers/assignments.mjs +0 -58
- package/resources/v1/events/beta/customers/assignments.mjs.map +0 -1
- package/resources/v1/events/beta/customers/customers.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/customers.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/customers.js.map +0 -1
- package/resources/v1/events/beta/customers/customers.mjs.map +0 -1
- package/resources/v1/events/beta/customers/entities.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/entities.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/entities.js +0 -105
- package/resources/v1/events/beta/customers/entities.js.map +0 -1
- package/resources/v1/events/beta/customers/entities.mjs +0 -101
- package/resources/v1/events/beta/customers/entities.mjs.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.js +0 -26
- package/resources/v1/events/beta/customers/entitlements.js.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.mjs +0 -22
- package/resources/v1/events/beta/customers/entitlements.mjs.map +0 -1
- package/resources/v1/events/beta/customers/index.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/index.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/index.js.map +0 -1
- package/resources/v1/events/beta/customers/index.mjs.map +0 -1
- package/resources/v1/events/beta/customers.d.mts.map +0 -1
- package/resources/v1/events/beta/customers.d.ts.map +0 -1
- package/resources/v1/events/beta/customers.js.map +0 -1
- package/resources/v1/events/beta/customers.mjs.map +0 -1
- package/resources/v1/events/beta/entity-types.d.mts.map +0 -1
- package/resources/v1/events/beta/entity-types.d.ts.map +0 -1
- package/resources/v1/events/beta/entity-types.js +0 -56
- package/resources/v1/events/beta/entity-types.js.map +0 -1
- package/resources/v1/events/beta/entity-types.mjs +0 -52
- package/resources/v1/events/beta/entity-types.mjs.map +0 -1
- package/resources/v1/events/beta/index.d.mts.map +0 -1
- package/resources/v1/events/beta/index.d.ts.map +0 -1
- package/resources/v1/events/beta/index.js.map +0 -1
- package/resources/v1/events/beta/index.mjs.map +0 -1
- package/resources/v1/events/beta.d.mts +0 -2
- package/resources/v1/events/beta.d.mts.map +0 -1
- package/resources/v1/events/beta.d.ts +0 -2
- package/resources/v1/events/beta.d.ts.map +0 -1
- package/resources/v1/events/beta.js.map +0 -1
- package/resources/v1/events/beta.mjs.map +0 -1
- package/src/resources/v1/events/beta/customers/assignments.ts +0 -228
- /package/resources/{v1/events/beta → v1-beta}/customers/index.d.mts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.d.ts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.js +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.mjs +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.d.mts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.d.ts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.mjs +0 -0
- /package/src/resources/{v1/events/beta → v1-beta}/customers/index.ts +0 -0
- /package/src/resources/{v1/events/beta → v1-beta}/customers.ts +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as FutureUpdateAPI from "./future-update.js";
|
|
3
|
-
import { CancelSubscription, FutureUpdate as FutureUpdateAPIFutureUpdate } from "./future-update.js";
|
|
3
|
+
import { CancelSubscription, FutureUpdate as FutureUpdateAPIFutureUpdate, FutureUpdateCancelPendingPaymentParams, FutureUpdateCancelScheduleParams } from "./future-update.js";
|
|
4
4
|
import * as InvoiceAPI from "./invoice.js";
|
|
5
|
-
import { Invoice, InvoiceMarkAsPaidResponse } from "./invoice.js";
|
|
5
|
+
import { Invoice, InvoiceMarkAsPaidParams, InvoiceMarkAsPaidResponse } from "./invoice.js";
|
|
6
6
|
import * as UsageAPI from "./usage.js";
|
|
7
|
-
import { Usage, UsageChargeUsageParams, UsageChargeUsageResponse, UsageSyncResponse } from "./usage.js";
|
|
7
|
+
import { Usage, UsageChargeUsageParams, UsageChargeUsageResponse, UsageSyncParams, UsageSyncResponse } from "./usage.js";
|
|
8
8
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
9
9
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.js";
|
|
10
10
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
@@ -15,134 +15,53 @@ export declare class Subscriptions extends APIResource {
|
|
|
15
15
|
/**
|
|
16
16
|
* Retrieves a subscription by its unique identifier, including plan details,
|
|
17
17
|
* billing period, status, and add-ons.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const subscription = await client.v1.subscriptions.retrieve(
|
|
22
|
-
* 'x',
|
|
23
|
-
* );
|
|
24
|
-
* ```
|
|
25
18
|
*/
|
|
26
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Subscription>;
|
|
19
|
+
retrieve(id: string, params?: SubscriptionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Subscription>;
|
|
27
20
|
/**
|
|
28
21
|
* Updates an active subscription's properties including billing period, add-ons,
|
|
29
22
|
* unit quantities, and discounts.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const subscription = await client.v1.subscriptions.update(
|
|
34
|
-
* 'x',
|
|
35
|
-
* );
|
|
36
|
-
* ```
|
|
37
23
|
*/
|
|
38
|
-
update(id: string,
|
|
24
|
+
update(id: string, params: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription>;
|
|
39
25
|
/**
|
|
40
26
|
* Retrieves a paginated list of subscriptions, with optional filters for customer,
|
|
41
27
|
* status, and plan.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* // Automatically fetches more pages as needed.
|
|
46
|
-
* for await (const subscriptionListResponse of client.v1.subscriptions.list()) {
|
|
47
|
-
* // ...
|
|
48
|
-
* }
|
|
49
|
-
* ```
|
|
50
28
|
*/
|
|
51
|
-
list(
|
|
29
|
+
list(params?: SubscriptionListParams | null | undefined, options?: RequestOptions): PagePromise<SubscriptionListResponsesMyCursorIDPage, SubscriptionListResponse>;
|
|
52
30
|
/**
|
|
53
31
|
* Cancels an active subscription, either immediately or at a specified time such
|
|
54
32
|
* as end of billing period.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* const subscription = await client.v1.subscriptions.cancel(
|
|
59
|
-
* 'x',
|
|
60
|
-
* );
|
|
61
|
-
* ```
|
|
62
33
|
*/
|
|
63
|
-
cancel(id: string,
|
|
34
|
+
cancel(id: string, params: SubscriptionCancelParams, options?: RequestOptions): APIPromise<Subscription>;
|
|
64
35
|
/**
|
|
65
36
|
* Delegates the payment responsibility of a subscription to a different customer.
|
|
66
37
|
* The delegated customer will be billed for this subscription.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts
|
|
70
|
-
* const subscription = await client.v1.subscriptions.delegate(
|
|
71
|
-
* 'x',
|
|
72
|
-
* { targetCustomerId: 'targetCustomerId' },
|
|
73
|
-
* );
|
|
74
|
-
* ```
|
|
75
38
|
*/
|
|
76
|
-
delegate(id: string,
|
|
39
|
+
delegate(id: string, params: SubscriptionDelegateParams, options?: RequestOptions): APIPromise<Subscription>;
|
|
77
40
|
/**
|
|
78
41
|
* Imports multiple subscriptions in bulk. Used for migrating subscription data
|
|
79
42
|
* from external systems.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
* ```ts
|
|
83
|
-
* const response = await client.v1.subscriptions.import({
|
|
84
|
-
* subscriptions: [
|
|
85
|
-
* {
|
|
86
|
-
* id: 'id',
|
|
87
|
-
* customerId: 'customerId',
|
|
88
|
-
* planId: 'planId',
|
|
89
|
-
* },
|
|
90
|
-
* ],
|
|
91
|
-
* });
|
|
92
|
-
* ```
|
|
93
|
-
*/
|
|
94
|
-
import(body: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse>;
|
|
43
|
+
*/
|
|
44
|
+
import(params: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse>;
|
|
95
45
|
/**
|
|
96
46
|
* Migrates a subscription to the latest published version of its plan or add-ons.
|
|
97
47
|
* Handles prorated charges or credits automatically.
|
|
98
|
-
*
|
|
99
|
-
* @example
|
|
100
|
-
* ```ts
|
|
101
|
-
* const subscription = await client.v1.subscriptions.migrate(
|
|
102
|
-
* 'x',
|
|
103
|
-
* );
|
|
104
|
-
* ```
|
|
105
48
|
*/
|
|
106
|
-
migrate(id: string,
|
|
49
|
+
migrate(id: string, params: SubscriptionMigrateParams, options?: RequestOptions): APIPromise<Subscription>;
|
|
107
50
|
/**
|
|
108
51
|
* Previews the pricing impact of creating or updating a subscription without
|
|
109
52
|
* making changes. Returns estimated costs, taxes, and proration details.
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```ts
|
|
113
|
-
* const response = await client.v1.subscriptions.preview({
|
|
114
|
-
* customerId: 'customerId',
|
|
115
|
-
* planId: 'planId',
|
|
116
|
-
* });
|
|
117
|
-
* ```
|
|
118
53
|
*/
|
|
119
|
-
preview(
|
|
54
|
+
preview(params: SubscriptionPreviewParams, options?: RequestOptions): APIPromise<SubscriptionPreviewResponse>;
|
|
120
55
|
/**
|
|
121
56
|
* Creates a new subscription for an existing customer. When payment is required
|
|
122
57
|
* and no payment method exists, returns a checkout URL.
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* ```ts
|
|
126
|
-
* const response = await client.v1.subscriptions.provision({
|
|
127
|
-
* customerId: 'customerId',
|
|
128
|
-
* planId: 'planId',
|
|
129
|
-
* });
|
|
130
|
-
* ```
|
|
131
58
|
*/
|
|
132
|
-
provision(
|
|
59
|
+
provision(params: SubscriptionProvisionParams, options?: RequestOptions): APIPromise<SubscriptionProvisionResponse>;
|
|
133
60
|
/**
|
|
134
61
|
* Transfers a subscription to a different resource ID. Used for multi-resource
|
|
135
62
|
* products where subscriptions apply to specific entities like websites or apps.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
* ```ts
|
|
139
|
-
* const subscription = await client.v1.subscriptions.transfer(
|
|
140
|
-
* 'x',
|
|
141
|
-
* { destinationResourceId: 'destinationResourceId' },
|
|
142
|
-
* );
|
|
143
|
-
* ```
|
|
144
|
-
*/
|
|
145
|
-
transfer(id: string, body: SubscriptionTransferParams, options?: RequestOptions): APIPromise<Subscription>;
|
|
63
|
+
*/
|
|
64
|
+
transfer(id: string, params: SubscriptionTransferParams, options?: RequestOptions): APIPromise<Subscription>;
|
|
146
65
|
}
|
|
147
66
|
export type SubscriptionListResponsesMyCursorIDPage = MyCursorIDPage<SubscriptionListResponse>;
|
|
148
67
|
/**
|
|
@@ -1740,43 +1659,97 @@ export declare namespace SubscriptionProvisionResponse {
|
|
|
1740
1659
|
}
|
|
1741
1660
|
}
|
|
1742
1661
|
}
|
|
1662
|
+
export interface SubscriptionRetrieveParams {
|
|
1663
|
+
/**
|
|
1664
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1665
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1666
|
+
*/
|
|
1667
|
+
'X-ACCOUNT-ID'?: string;
|
|
1668
|
+
/**
|
|
1669
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1670
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1671
|
+
* key).
|
|
1672
|
+
*/
|
|
1673
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1674
|
+
}
|
|
1743
1675
|
export interface SubscriptionUpdateParams {
|
|
1676
|
+
/**
|
|
1677
|
+
* Body param
|
|
1678
|
+
*/
|
|
1744
1679
|
addons?: Array<SubscriptionUpdateParams.Addon>;
|
|
1680
|
+
/**
|
|
1681
|
+
* Body param
|
|
1682
|
+
*/
|
|
1745
1683
|
appliedCoupon?: SubscriptionUpdateParams.AppliedCoupon;
|
|
1746
1684
|
/**
|
|
1747
|
-
* Await payment confirmation
|
|
1685
|
+
* Body param: Await payment confirmation
|
|
1748
1686
|
*/
|
|
1749
1687
|
awaitPaymentConfirmation?: boolean;
|
|
1688
|
+
/**
|
|
1689
|
+
* Body param
|
|
1690
|
+
*/
|
|
1750
1691
|
billingCycleAnchor?: 'UNCHANGED' | 'NOW';
|
|
1692
|
+
/**
|
|
1693
|
+
* Body param
|
|
1694
|
+
*/
|
|
1751
1695
|
billingInformation?: SubscriptionUpdateParams.BillingInformation;
|
|
1696
|
+
/**
|
|
1697
|
+
* Body param
|
|
1698
|
+
*/
|
|
1752
1699
|
billingPeriod?: 'MONTHLY' | 'ANNUALLY';
|
|
1700
|
+
/**
|
|
1701
|
+
* Body param
|
|
1702
|
+
*/
|
|
1753
1703
|
budget?: SubscriptionUpdateParams.Budget | null;
|
|
1754
1704
|
/**
|
|
1755
|
-
* Subscription cancellation date
|
|
1705
|
+
* Body param: Subscription cancellation date
|
|
1756
1706
|
*/
|
|
1757
1707
|
cancellationDate?: string | null;
|
|
1708
|
+
/**
|
|
1709
|
+
* Body param
|
|
1710
|
+
*/
|
|
1758
1711
|
charges?: Array<SubscriptionUpdateParams.Charge>;
|
|
1712
|
+
/**
|
|
1713
|
+
* Body param
|
|
1714
|
+
*/
|
|
1759
1715
|
entitlements?: Array<SubscriptionUpdateParams.Feature | SubscriptionUpdateParams.Credit>;
|
|
1760
1716
|
/**
|
|
1761
|
-
* Additional metadata for the subscription
|
|
1717
|
+
* Body param: Additional metadata for the subscription
|
|
1762
1718
|
*/
|
|
1763
1719
|
metadata?: {
|
|
1764
1720
|
[key: string]: string;
|
|
1765
1721
|
};
|
|
1766
1722
|
/**
|
|
1767
|
-
* Minimum spend amount
|
|
1723
|
+
* Body param: Minimum spend amount
|
|
1768
1724
|
*/
|
|
1769
1725
|
minimumSpend?: SubscriptionUpdateParams.MinimumSpend | null;
|
|
1726
|
+
/**
|
|
1727
|
+
* Body param
|
|
1728
|
+
*/
|
|
1770
1729
|
priceOverrides?: Array<SubscriptionUpdateParams.PriceOverride>;
|
|
1771
1730
|
/**
|
|
1772
|
-
* Promotion code
|
|
1731
|
+
* Body param: Promotion code
|
|
1773
1732
|
*/
|
|
1774
1733
|
promotionCode?: string;
|
|
1734
|
+
/**
|
|
1735
|
+
* Body param
|
|
1736
|
+
*/
|
|
1775
1737
|
scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
|
|
1776
1738
|
/**
|
|
1777
|
-
* Subscription trial end date
|
|
1739
|
+
* Body param: Subscription trial end date
|
|
1778
1740
|
*/
|
|
1779
1741
|
trialEndDate?: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1744
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1745
|
+
*/
|
|
1746
|
+
'X-ACCOUNT-ID'?: string;
|
|
1747
|
+
/**
|
|
1748
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1749
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1750
|
+
* intrinsic to the key).
|
|
1751
|
+
*/
|
|
1752
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1780
1753
|
}
|
|
1781
1754
|
export declare namespace SubscriptionUpdateParams {
|
|
1782
1755
|
/**
|
|
@@ -2040,30 +2013,42 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2040
2013
|
}
|
|
2041
2014
|
export interface SubscriptionListParams extends MyCursorIDPageParams {
|
|
2042
2015
|
/**
|
|
2043
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
2016
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
2044
2017
|
*/
|
|
2045
2018
|
createdAt?: SubscriptionListParams.CreatedAt;
|
|
2046
2019
|
/**
|
|
2047
|
-
* Filter by customer ID
|
|
2020
|
+
* Query param: Filter by customer ID
|
|
2048
2021
|
*/
|
|
2049
2022
|
customerId?: string;
|
|
2050
2023
|
/**
|
|
2051
|
-
* Filter by plan ID
|
|
2024
|
+
* Query param: Filter by plan ID
|
|
2052
2025
|
*/
|
|
2053
2026
|
planId?: string;
|
|
2054
2027
|
/**
|
|
2055
|
-
* Filter by pricing type. Supports comma-separated values for
|
|
2028
|
+
* Query param: Filter by pricing type. Supports comma-separated values for
|
|
2029
|
+
* multiple types
|
|
2056
2030
|
*/
|
|
2057
2031
|
pricingType?: Array<'FREE' | 'PAID' | 'CUSTOM'>;
|
|
2058
2032
|
/**
|
|
2059
|
-
* Filter by resource ID
|
|
2033
|
+
* Query param: Filter by resource ID
|
|
2060
2034
|
*/
|
|
2061
2035
|
resourceId?: string;
|
|
2062
2036
|
/**
|
|
2063
|
-
* Filter by subscription status. Supports comma-separated values for
|
|
2064
|
-
* statuses
|
|
2037
|
+
* Query param: Filter by subscription status. Supports comma-separated values for
|
|
2038
|
+
* multiple statuses
|
|
2065
2039
|
*/
|
|
2066
2040
|
status?: Array<'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'IN_TRIAL' | 'CANCELED' | 'NOT_STARTED'>;
|
|
2041
|
+
/**
|
|
2042
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2043
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2044
|
+
*/
|
|
2045
|
+
'X-ACCOUNT-ID'?: string;
|
|
2046
|
+
/**
|
|
2047
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2048
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2049
|
+
* intrinsic to the key).
|
|
2050
|
+
*/
|
|
2051
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2067
2052
|
}
|
|
2068
2053
|
export declare namespace SubscriptionListParams {
|
|
2069
2054
|
/**
|
|
@@ -2090,39 +2075,74 @@ export declare namespace SubscriptionListParams {
|
|
|
2090
2075
|
}
|
|
2091
2076
|
export interface SubscriptionCancelParams {
|
|
2092
2077
|
/**
|
|
2093
|
-
* Action on cancellation (downgrade or revoke)
|
|
2078
|
+
* Body param: Action on cancellation (downgrade or revoke)
|
|
2094
2079
|
*/
|
|
2095
2080
|
cancellationAction?: 'DEFAULT' | 'REVOKE_ENTITLEMENTS';
|
|
2096
2081
|
/**
|
|
2097
|
-
* When to cancel (immediate, period end, or date)
|
|
2082
|
+
* Body param: When to cancel (immediate, period end, or date)
|
|
2098
2083
|
*/
|
|
2099
2084
|
cancellationTime?: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
|
|
2100
2085
|
/**
|
|
2101
|
-
* Subscription end date
|
|
2086
|
+
* Body param: Subscription end date
|
|
2102
2087
|
*/
|
|
2103
2088
|
endDate?: string;
|
|
2104
2089
|
/**
|
|
2105
|
-
* If set, enables or disables prorating of credits on subscription
|
|
2090
|
+
* Body param: If set, enables or disables prorating of credits on subscription
|
|
2091
|
+
* cancellation.
|
|
2106
2092
|
*/
|
|
2107
2093
|
prorate?: boolean;
|
|
2094
|
+
/**
|
|
2095
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2096
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2097
|
+
*/
|
|
2098
|
+
'X-ACCOUNT-ID'?: string;
|
|
2099
|
+
/**
|
|
2100
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2101
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2102
|
+
* intrinsic to the key).
|
|
2103
|
+
*/
|
|
2104
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2108
2105
|
}
|
|
2109
2106
|
export interface SubscriptionDelegateParams {
|
|
2110
2107
|
/**
|
|
2111
|
-
* The unique identifier of the customer who will assume payment
|
|
2112
|
-
* this subscription. This customer must already exist in your
|
|
2113
|
-
* have a valid payment method if the subscription requires
|
|
2108
|
+
* Body param: The unique identifier of the customer who will assume payment
|
|
2109
|
+
* responsibility for this subscription. This customer must already exist in your
|
|
2110
|
+
* Stigg account and have a valid payment method if the subscription requires
|
|
2111
|
+
* payment.
|
|
2114
2112
|
*/
|
|
2115
2113
|
targetCustomerId: string;
|
|
2114
|
+
/**
|
|
2115
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2116
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2117
|
+
*/
|
|
2118
|
+
'X-ACCOUNT-ID'?: string;
|
|
2119
|
+
/**
|
|
2120
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2121
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2122
|
+
* intrinsic to the key).
|
|
2123
|
+
*/
|
|
2124
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2116
2125
|
}
|
|
2117
2126
|
export interface SubscriptionImportParams {
|
|
2118
2127
|
/**
|
|
2119
|
-
* List of subscription objects to import
|
|
2128
|
+
* Body param: List of subscription objects to import
|
|
2120
2129
|
*/
|
|
2121
2130
|
subscriptions: Array<SubscriptionImportParams.Subscription>;
|
|
2122
2131
|
/**
|
|
2123
|
-
* Integration ID to use for importing subscriptions
|
|
2132
|
+
* Body param: Integration ID to use for importing subscriptions
|
|
2124
2133
|
*/
|
|
2125
2134
|
integrationId?: string | null;
|
|
2135
|
+
/**
|
|
2136
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2137
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2138
|
+
*/
|
|
2139
|
+
'X-ACCOUNT-ID'?: string;
|
|
2140
|
+
/**
|
|
2141
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2142
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2143
|
+
* intrinsic to the key).
|
|
2144
|
+
*/
|
|
2145
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2126
2146
|
}
|
|
2127
2147
|
export declare namespace SubscriptionImportParams {
|
|
2128
2148
|
interface Subscription {
|
|
@@ -2203,75 +2223,97 @@ export declare namespace SubscriptionImportParams {
|
|
|
2203
2223
|
}
|
|
2204
2224
|
export interface SubscriptionMigrateParams {
|
|
2205
2225
|
/**
|
|
2206
|
-
* When to migrate (immediate or period end)
|
|
2226
|
+
* Body param: When to migrate (immediate or period end)
|
|
2207
2227
|
*/
|
|
2208
2228
|
subscriptionMigrationTime?: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE';
|
|
2229
|
+
/**
|
|
2230
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2231
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2232
|
+
*/
|
|
2233
|
+
'X-ACCOUNT-ID'?: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2236
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2237
|
+
* intrinsic to the key).
|
|
2238
|
+
*/
|
|
2239
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2209
2240
|
}
|
|
2210
2241
|
export interface SubscriptionPreviewParams {
|
|
2211
2242
|
/**
|
|
2212
|
-
* Customer ID
|
|
2243
|
+
* Body param: Customer ID
|
|
2213
2244
|
*/
|
|
2214
2245
|
customerId: string;
|
|
2215
2246
|
/**
|
|
2216
|
-
* Plan ID
|
|
2247
|
+
* Body param: Plan ID
|
|
2217
2248
|
*/
|
|
2218
2249
|
planId: string;
|
|
2219
2250
|
/**
|
|
2220
|
-
* Addons to include
|
|
2251
|
+
* Body param: Addons to include
|
|
2221
2252
|
*/
|
|
2222
2253
|
addons?: Array<SubscriptionPreviewParams.Addon>;
|
|
2223
2254
|
/**
|
|
2224
|
-
* Coupon or discount to apply
|
|
2255
|
+
* Body param: Coupon or discount to apply
|
|
2225
2256
|
*/
|
|
2226
2257
|
appliedCoupon?: SubscriptionPreviewParams.AppliedCoupon;
|
|
2227
2258
|
/**
|
|
2228
|
-
* Billable features with quantities
|
|
2259
|
+
* Body param: Billable features with quantities
|
|
2229
2260
|
*/
|
|
2230
2261
|
billableFeatures?: Array<SubscriptionPreviewParams.BillableFeature>;
|
|
2231
2262
|
/**
|
|
2232
|
-
* ISO 3166-1 country code for localization
|
|
2263
|
+
* Body param: ISO 3166-1 country code for localization
|
|
2233
2264
|
*/
|
|
2234
2265
|
billingCountryCode?: string;
|
|
2235
2266
|
/**
|
|
2236
|
-
* Billing cycle anchor behavior for the subscription
|
|
2267
|
+
* Body param: Billing cycle anchor behavior for the subscription
|
|
2237
2268
|
*/
|
|
2238
2269
|
billingCycleAnchor?: 'UNCHANGED' | 'NOW';
|
|
2239
2270
|
/**
|
|
2240
|
-
* Billing and tax configuration
|
|
2271
|
+
* Body param: Billing and tax configuration
|
|
2241
2272
|
*/
|
|
2242
2273
|
billingInformation?: SubscriptionPreviewParams.BillingInformation;
|
|
2243
2274
|
/**
|
|
2244
|
-
* Billing period (MONTHLY or ANNUALLY)
|
|
2275
|
+
* Body param: Billing period (MONTHLY or ANNUALLY)
|
|
2245
2276
|
*/
|
|
2246
2277
|
billingPeriod?: 'MONTHLY' | 'ANNUALLY';
|
|
2247
2278
|
/**
|
|
2248
|
-
* One-time or recurring charges
|
|
2279
|
+
* Body param: One-time or recurring charges
|
|
2249
2280
|
*/
|
|
2250
2281
|
charges?: Array<SubscriptionPreviewParams.Charge>;
|
|
2251
2282
|
/**
|
|
2252
|
-
* Paying customer ID for delegated billing
|
|
2283
|
+
* Body param: Paying customer ID for delegated billing
|
|
2253
2284
|
*/
|
|
2254
2285
|
payingCustomerId?: string;
|
|
2255
2286
|
/**
|
|
2256
|
-
* Resource ID for multi-instance subscriptions
|
|
2287
|
+
* Body param: Resource ID for multi-instance subscriptions
|
|
2257
2288
|
*/
|
|
2258
2289
|
resourceId?: string;
|
|
2259
2290
|
/**
|
|
2260
|
-
* When to apply subscription changes
|
|
2291
|
+
* Body param: When to apply subscription changes
|
|
2261
2292
|
*/
|
|
2262
2293
|
scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
|
|
2263
2294
|
/**
|
|
2264
|
-
* Subscription start date
|
|
2295
|
+
* Body param: Subscription start date
|
|
2265
2296
|
*/
|
|
2266
2297
|
startDate?: string;
|
|
2267
2298
|
/**
|
|
2268
|
-
* Trial period override settings
|
|
2299
|
+
* Body param: Trial period override settings
|
|
2269
2300
|
*/
|
|
2270
2301
|
trialOverrideConfiguration?: SubscriptionPreviewParams.TrialOverrideConfiguration;
|
|
2271
2302
|
/**
|
|
2272
|
-
* Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
|
|
2303
|
+
* Body param: Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
|
|
2273
2304
|
*/
|
|
2274
2305
|
unitQuantity?: number;
|
|
2306
|
+
/**
|
|
2307
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2308
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2309
|
+
*/
|
|
2310
|
+
'X-ACCOUNT-ID'?: string;
|
|
2311
|
+
/**
|
|
2312
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2313
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2314
|
+
* intrinsic to the key).
|
|
2315
|
+
*/
|
|
2316
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2275
2317
|
}
|
|
2276
2318
|
export declare namespace SubscriptionPreviewParams {
|
|
2277
2319
|
/**
|
|
@@ -2488,97 +2530,127 @@ export declare namespace SubscriptionPreviewParams {
|
|
|
2488
2530
|
}
|
|
2489
2531
|
export interface SubscriptionProvisionParams {
|
|
2490
2532
|
/**
|
|
2491
|
-
* Customer ID to provision the subscription for
|
|
2533
|
+
* Body param: Customer ID to provision the subscription for
|
|
2492
2534
|
*/
|
|
2493
2535
|
customerId: string;
|
|
2494
2536
|
/**
|
|
2495
|
-
* Plan ID to provision
|
|
2537
|
+
* Body param: Plan ID to provision
|
|
2496
2538
|
*/
|
|
2497
2539
|
planId: string;
|
|
2498
2540
|
/**
|
|
2499
|
-
* Unique identifier for the subscription
|
|
2541
|
+
* Body param: Unique identifier for the subscription
|
|
2500
2542
|
*/
|
|
2501
2543
|
id?: string;
|
|
2544
|
+
/**
|
|
2545
|
+
* Body param
|
|
2546
|
+
*/
|
|
2502
2547
|
addons?: Array<SubscriptionProvisionParams.Addon>;
|
|
2503
2548
|
/**
|
|
2504
|
-
* Coupon configuration
|
|
2549
|
+
* Body param: Coupon configuration
|
|
2505
2550
|
*/
|
|
2506
2551
|
appliedCoupon?: SubscriptionProvisionParams.AppliedCoupon;
|
|
2507
2552
|
/**
|
|
2508
|
-
* Whether to wait for payment confirmation before returning the
|
|
2553
|
+
* Body param: Whether to wait for payment confirmation before returning the
|
|
2554
|
+
* subscription
|
|
2509
2555
|
*/
|
|
2510
2556
|
awaitPaymentConfirmation?: boolean;
|
|
2511
2557
|
/**
|
|
2512
|
-
* The ISO 3166-1 alpha-2 country code for billing
|
|
2558
|
+
* Body param: The ISO 3166-1 alpha-2 country code for billing
|
|
2513
2559
|
*/
|
|
2514
2560
|
billingCountryCode?: string | null;
|
|
2515
2561
|
/**
|
|
2516
|
-
* Billing cycle anchor behavior for the subscription
|
|
2562
|
+
* Body param: Billing cycle anchor behavior for the subscription
|
|
2517
2563
|
*/
|
|
2518
2564
|
billingCycleAnchor?: 'UNCHANGED' | 'NOW';
|
|
2519
2565
|
/**
|
|
2520
|
-
* External billing system identifier
|
|
2566
|
+
* Body param: External billing system identifier
|
|
2521
2567
|
*/
|
|
2522
2568
|
billingId?: string | null;
|
|
2569
|
+
/**
|
|
2570
|
+
* Body param
|
|
2571
|
+
*/
|
|
2523
2572
|
billingInformation?: SubscriptionProvisionParams.BillingInformation;
|
|
2524
2573
|
/**
|
|
2525
|
-
* Billing period (MONTHLY or ANNUALLY)
|
|
2574
|
+
* Body param: Billing period (MONTHLY or ANNUALLY)
|
|
2526
2575
|
*/
|
|
2527
2576
|
billingPeriod?: 'MONTHLY' | 'ANNUALLY';
|
|
2577
|
+
/**
|
|
2578
|
+
* Body param
|
|
2579
|
+
*/
|
|
2528
2580
|
budget?: SubscriptionProvisionParams.Budget | null;
|
|
2529
2581
|
/**
|
|
2530
|
-
* Subscription cancellation date
|
|
2582
|
+
* Body param: Subscription cancellation date
|
|
2531
2583
|
*/
|
|
2532
2584
|
cancellationDate?: string;
|
|
2585
|
+
/**
|
|
2586
|
+
* Body param
|
|
2587
|
+
*/
|
|
2533
2588
|
charges?: Array<SubscriptionProvisionParams.Charge>;
|
|
2534
2589
|
/**
|
|
2535
|
-
* Checkout page configuration for payment collection
|
|
2590
|
+
* Body param: Checkout page configuration for payment collection
|
|
2536
2591
|
*/
|
|
2537
2592
|
checkoutOptions?: SubscriptionProvisionParams.CheckoutOptions;
|
|
2593
|
+
/**
|
|
2594
|
+
* Body param
|
|
2595
|
+
*/
|
|
2538
2596
|
entitlements?: Array<SubscriptionProvisionParams.Feature | SubscriptionProvisionParams.Credit>;
|
|
2539
2597
|
/**
|
|
2540
|
-
* Additional metadata for the subscription
|
|
2598
|
+
* Body param: Additional metadata for the subscription
|
|
2541
2599
|
*/
|
|
2542
2600
|
metadata?: {
|
|
2543
2601
|
[key: string]: string;
|
|
2544
2602
|
};
|
|
2545
2603
|
/**
|
|
2546
|
-
* Minimum spend amount
|
|
2604
|
+
* Body param: Minimum spend amount
|
|
2547
2605
|
*/
|
|
2548
2606
|
minimumSpend?: SubscriptionProvisionParams.MinimumSpend | null;
|
|
2549
2607
|
/**
|
|
2550
|
-
* Optional paying customer ID for split billing scenarios
|
|
2608
|
+
* Body param: Optional paying customer ID for split billing scenarios
|
|
2551
2609
|
*/
|
|
2552
2610
|
payingCustomerId?: string | null;
|
|
2553
2611
|
/**
|
|
2554
|
-
* How payments should be collected for this subscription
|
|
2612
|
+
* Body param: How payments should be collected for this subscription
|
|
2555
2613
|
*/
|
|
2556
2614
|
paymentCollectionMethod?: 'CHARGE' | 'INVOICE' | 'NONE';
|
|
2615
|
+
/**
|
|
2616
|
+
* Body param
|
|
2617
|
+
*/
|
|
2557
2618
|
priceOverrides?: Array<SubscriptionProvisionParams.PriceOverride>;
|
|
2558
2619
|
/**
|
|
2559
|
-
* Optional resource ID for multi-instance subscriptions
|
|
2620
|
+
* Body param: Optional resource ID for multi-instance subscriptions
|
|
2560
2621
|
*/
|
|
2561
2622
|
resourceId?: string | null;
|
|
2562
2623
|
/**
|
|
2563
|
-
* Salesforce ID
|
|
2624
|
+
* Body param: Salesforce ID
|
|
2564
2625
|
*/
|
|
2565
2626
|
salesforceId?: string | null;
|
|
2566
2627
|
/**
|
|
2567
|
-
* Strategy for scheduling subscription changes
|
|
2628
|
+
* Body param: Strategy for scheduling subscription changes
|
|
2568
2629
|
*/
|
|
2569
2630
|
scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
|
|
2570
2631
|
/**
|
|
2571
|
-
* Subscription start date
|
|
2632
|
+
* Body param: Subscription start date
|
|
2572
2633
|
*/
|
|
2573
2634
|
startDate?: string;
|
|
2574
2635
|
/**
|
|
2575
|
-
* Trial period override settings
|
|
2636
|
+
* Body param: Trial period override settings
|
|
2576
2637
|
*/
|
|
2577
2638
|
trialOverrideConfiguration?: SubscriptionProvisionParams.TrialOverrideConfiguration;
|
|
2578
2639
|
/**
|
|
2579
|
-
* Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
|
|
2640
|
+
* Body param: Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
|
|
2580
2641
|
*/
|
|
2581
2642
|
unitQuantity?: number;
|
|
2643
|
+
/**
|
|
2644
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
2645
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
2646
|
+
*/
|
|
2647
|
+
'X-ACCOUNT-ID'?: string;
|
|
2648
|
+
/**
|
|
2649
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
2650
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
2651
|
+
* intrinsic to the key).
|
|
2652
|
+
*/
|
|
2653
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2582
2654
|
}
|
|
2583
2655
|
export declare namespace SubscriptionProvisionParams {
|
|
2584
2656
|
/**
|
|
@@ -3020,14 +3092,25 @@ export declare namespace SubscriptionProvisionParams {
|
|
|
3020
3092
|
}
|
|
3021
3093
|
export interface SubscriptionTransferParams {
|
|
3022
3094
|
/**
|
|
3023
|
-
* Resource ID to transfer the subscription to
|
|
3095
|
+
* Body param: Resource ID to transfer the subscription to
|
|
3024
3096
|
*/
|
|
3025
3097
|
destinationResourceId: string;
|
|
3098
|
+
/**
|
|
3099
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3100
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3101
|
+
*/
|
|
3102
|
+
'X-ACCOUNT-ID'?: string;
|
|
3103
|
+
/**
|
|
3104
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3105
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3106
|
+
* intrinsic to the key).
|
|
3107
|
+
*/
|
|
3108
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3026
3109
|
}
|
|
3027
3110
|
export declare namespace Subscriptions {
|
|
3028
|
-
export { type Subscription as Subscription, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionImportResponse as SubscriptionImportResponse, type SubscriptionPreviewResponse as SubscriptionPreviewResponse, type SubscriptionProvisionResponse as SubscriptionProvisionResponse, type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionDelegateParams as SubscriptionDelegateParams, type SubscriptionImportParams as SubscriptionImportParams, type SubscriptionMigrateParams as SubscriptionMigrateParams, type SubscriptionPreviewParams as SubscriptionPreviewParams, type SubscriptionProvisionParams as SubscriptionProvisionParams, type SubscriptionTransferParams as SubscriptionTransferParams, };
|
|
3029
|
-
export { FutureUpdateAPIFutureUpdate as FutureUpdate, type CancelSubscription as CancelSubscription };
|
|
3030
|
-
export { Usage as Usage, type UsageChargeUsageResponse as UsageChargeUsageResponse, type UsageSyncResponse as UsageSyncResponse, type UsageChargeUsageParams as UsageChargeUsageParams, };
|
|
3031
|
-
export { Invoice as Invoice, type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse };
|
|
3111
|
+
export { type Subscription as Subscription, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionImportResponse as SubscriptionImportResponse, type SubscriptionPreviewResponse as SubscriptionPreviewResponse, type SubscriptionProvisionResponse as SubscriptionProvisionResponse, type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage, type SubscriptionRetrieveParams as SubscriptionRetrieveParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionDelegateParams as SubscriptionDelegateParams, type SubscriptionImportParams as SubscriptionImportParams, type SubscriptionMigrateParams as SubscriptionMigrateParams, type SubscriptionPreviewParams as SubscriptionPreviewParams, type SubscriptionProvisionParams as SubscriptionProvisionParams, type SubscriptionTransferParams as SubscriptionTransferParams, };
|
|
3112
|
+
export { FutureUpdateAPIFutureUpdate as FutureUpdate, type CancelSubscription as CancelSubscription, type FutureUpdateCancelPendingPaymentParams as FutureUpdateCancelPendingPaymentParams, type FutureUpdateCancelScheduleParams as FutureUpdateCancelScheduleParams, };
|
|
3113
|
+
export { Usage as Usage, type UsageChargeUsageResponse as UsageChargeUsageResponse, type UsageSyncResponse as UsageSyncResponse, type UsageChargeUsageParams as UsageChargeUsageParams, type UsageSyncParams as UsageSyncParams, };
|
|
3114
|
+
export { Invoice as Invoice, type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse, type InvoiceMarkAsPaidParams as InvoiceMarkAsPaidParams, };
|
|
3032
3115
|
}
|
|
3033
3116
|
//# sourceMappingURL=subscriptions.d.ts.map
|