@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
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
EntitlementCreateParams,
|
|
7
7
|
EntitlementCreateResponse,
|
|
8
8
|
EntitlementDeleteParams,
|
|
9
|
+
EntitlementListParams,
|
|
9
10
|
EntitlementListResponse,
|
|
10
11
|
EntitlementUpdateParams,
|
|
11
12
|
Entitlements,
|
|
@@ -13,6 +14,7 @@ import {
|
|
|
13
14
|
} from './entitlements';
|
|
14
15
|
import { APIPromise } from '../../../core/api-promise';
|
|
15
16
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
17
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
16
18
|
import { RequestOptions } from '../../../internal/request-options';
|
|
17
19
|
import { path } from '../../../internal/utils/path';
|
|
18
20
|
|
|
@@ -24,162 +26,215 @@ export class Plans extends APIResource {
|
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
28
|
* Creates a new plan in draft status.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
*/
|
|
30
|
+
create(params: PlanCreateParams, options?: RequestOptions): APIPromise<Plan> {
|
|
31
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
32
|
+
return this._client.post('/api/v1/plans', {
|
|
33
|
+
body,
|
|
34
|
+
...options,
|
|
35
|
+
headers: buildHeaders([
|
|
36
|
+
{
|
|
37
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
38
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
39
|
+
},
|
|
40
|
+
options?.headers,
|
|
41
|
+
]),
|
|
42
|
+
});
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
/**
|
|
42
46
|
* Retrieves a plan by its unique identifier, including entitlements and pricing
|
|
43
47
|
* details.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return this._client.get(path`/api/v1/plans/${id}`,
|
|
48
|
+
*/
|
|
49
|
+
retrieve(
|
|
50
|
+
id: string,
|
|
51
|
+
params: PlanRetrieveParams | null | undefined = {},
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): APIPromise<Plan> {
|
|
54
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
55
|
+
return this._client.get(path`/api/v1/plans/${id}`, {
|
|
56
|
+
...options,
|
|
57
|
+
headers: buildHeaders([
|
|
58
|
+
{
|
|
59
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
60
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
61
|
+
},
|
|
62
|
+
options?.headers,
|
|
63
|
+
]),
|
|
64
|
+
});
|
|
52
65
|
}
|
|
53
66
|
|
|
54
67
|
/**
|
|
55
68
|
* Updates an existing plan's properties such as display name, description, and
|
|
56
69
|
* metadata.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
70
|
+
*/
|
|
71
|
+
update(id: string, params: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan> {
|
|
72
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
73
|
+
return this._client.patch(path`/api/v1/plans/${id}`, {
|
|
74
|
+
body,
|
|
75
|
+
...options,
|
|
76
|
+
headers: buildHeaders([
|
|
77
|
+
{
|
|
78
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
79
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
80
|
+
},
|
|
81
|
+
options?.headers,
|
|
82
|
+
]),
|
|
83
|
+
});
|
|
65
84
|
}
|
|
66
85
|
|
|
67
86
|
/**
|
|
68
87
|
* Retrieves a paginated list of plans in the environment.
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* // Automatically fetches more pages as needed.
|
|
73
|
-
* for await (const planListResponse of client.v1.plans.list()) {
|
|
74
|
-
* // ...
|
|
75
|
-
* }
|
|
76
|
-
* ```
|
|
77
88
|
*/
|
|
78
89
|
list(
|
|
79
|
-
|
|
90
|
+
params: PlanListParams | null | undefined = {},
|
|
80
91
|
options?: RequestOptions,
|
|
81
92
|
): PagePromise<PlanListResponsesMyCursorIDPage, PlanListResponse> {
|
|
82
|
-
|
|
93
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
94
|
+
return this._client.getAPIList('/api/v1/plans', MyCursorIDPage<PlanListResponse>, {
|
|
95
|
+
query,
|
|
96
|
+
...options,
|
|
97
|
+
headers: buildHeaders([
|
|
98
|
+
{
|
|
99
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
100
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
101
|
+
},
|
|
102
|
+
options?.headers,
|
|
103
|
+
]),
|
|
104
|
+
});
|
|
83
105
|
}
|
|
84
106
|
|
|
85
107
|
/**
|
|
86
108
|
* Archives a plan, preventing it from being used in new subscriptions.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return this._client.post(path`/api/v1/plans/${id}/archive`,
|
|
109
|
+
*/
|
|
110
|
+
archive(
|
|
111
|
+
id: string,
|
|
112
|
+
params: PlanArchiveParams | null | undefined = {},
|
|
113
|
+
options?: RequestOptions,
|
|
114
|
+
): APIPromise<Plan> {
|
|
115
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
116
|
+
return this._client.post(path`/api/v1/plans/${id}/archive`, {
|
|
117
|
+
...options,
|
|
118
|
+
headers: buildHeaders([
|
|
119
|
+
{
|
|
120
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
121
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
122
|
+
},
|
|
123
|
+
options?.headers,
|
|
124
|
+
]),
|
|
125
|
+
});
|
|
95
126
|
}
|
|
96
127
|
|
|
97
128
|
/**
|
|
98
129
|
* Creates a draft version of an existing plan for modification before publishing.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return this._client.post(path`/api/v1/plans/${id}/draft`,
|
|
130
|
+
*/
|
|
131
|
+
createDraft(
|
|
132
|
+
id: string,
|
|
133
|
+
params: PlanCreateDraftParams | null | undefined = {},
|
|
134
|
+
options?: RequestOptions,
|
|
135
|
+
): APIPromise<Plan> {
|
|
136
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
137
|
+
return this._client.post(path`/api/v1/plans/${id}/draft`, {
|
|
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
|
+
});
|
|
107
147
|
}
|
|
108
148
|
|
|
109
149
|
/**
|
|
110
150
|
* Retrieves the list of charges configured on a plan.
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* ```ts
|
|
114
|
-
* // Automatically fetches more pages as needed.
|
|
115
|
-
* for await (const planListChargesResponse of client.v1.plans.listCharges(
|
|
116
|
-
* 'x',
|
|
117
|
-
* )) {
|
|
118
|
-
* // ...
|
|
119
|
-
* }
|
|
120
|
-
* ```
|
|
121
151
|
*/
|
|
122
152
|
listCharges(
|
|
123
153
|
id: string,
|
|
124
|
-
|
|
154
|
+
params: PlanListChargesParams | null | undefined = {},
|
|
125
155
|
options?: RequestOptions,
|
|
126
156
|
): PagePromise<PlanListChargesResponsesMyCursorIDPage, PlanListChargesResponse> {
|
|
157
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
127
158
|
return this._client.getAPIList(
|
|
128
159
|
path`/api/v1/plans/${id}/charges`,
|
|
129
160
|
MyCursorIDPage<PlanListChargesResponse>,
|
|
130
|
-
{
|
|
161
|
+
{
|
|
162
|
+
query,
|
|
163
|
+
...options,
|
|
164
|
+
headers: buildHeaders([
|
|
165
|
+
{
|
|
166
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
167
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
168
|
+
},
|
|
169
|
+
options?.headers,
|
|
170
|
+
]),
|
|
171
|
+
},
|
|
131
172
|
);
|
|
132
173
|
}
|
|
133
174
|
|
|
134
175
|
/**
|
|
135
176
|
* Retrieves the list of overage charges configured on a plan.
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```ts
|
|
139
|
-
* // Automatically fetches more pages as needed.
|
|
140
|
-
* for await (const planListOverageChargesResponse of client.v1.plans.listOverageCharges(
|
|
141
|
-
* 'x',
|
|
142
|
-
* )) {
|
|
143
|
-
* // ...
|
|
144
|
-
* }
|
|
145
|
-
* ```
|
|
146
177
|
*/
|
|
147
178
|
listOverageCharges(
|
|
148
179
|
id: string,
|
|
149
|
-
|
|
180
|
+
params: PlanListOverageChargesParams | null | undefined = {},
|
|
150
181
|
options?: RequestOptions,
|
|
151
182
|
): PagePromise<PlanListOverageChargesResponsesMyCursorIDPage, PlanListOverageChargesResponse> {
|
|
183
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
152
184
|
return this._client.getAPIList(
|
|
153
185
|
path`/api/v1/plans/${id}/overage-charges`,
|
|
154
186
|
MyCursorIDPage<PlanListOverageChargesResponse>,
|
|
155
|
-
{
|
|
187
|
+
{
|
|
188
|
+
query,
|
|
189
|
+
...options,
|
|
190
|
+
headers: buildHeaders([
|
|
191
|
+
{
|
|
192
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
193
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
194
|
+
},
|
|
195
|
+
options?.headers,
|
|
196
|
+
]),
|
|
197
|
+
},
|
|
156
198
|
);
|
|
157
199
|
}
|
|
158
200
|
|
|
159
201
|
/**
|
|
160
202
|
* Publishes a draft plan, making it available for use in subscriptions.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
203
|
+
*/
|
|
204
|
+
publish(id: string, params: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse> {
|
|
205
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
206
|
+
return this._client.post(path`/api/v1/plans/${id}/publish`, {
|
|
207
|
+
body,
|
|
208
|
+
...options,
|
|
209
|
+
headers: buildHeaders([
|
|
210
|
+
{
|
|
211
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
212
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
213
|
+
},
|
|
214
|
+
options?.headers,
|
|
215
|
+
]),
|
|
216
|
+
});
|
|
171
217
|
}
|
|
172
218
|
|
|
173
219
|
/**
|
|
174
220
|
* Removes a draft version of a plan.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
return this._client.delete(path`/api/v1/plans/${id}/draft`,
|
|
221
|
+
*/
|
|
222
|
+
removeDraft(
|
|
223
|
+
id: string,
|
|
224
|
+
params: PlanRemoveDraftParams | null | undefined = {},
|
|
225
|
+
options?: RequestOptions,
|
|
226
|
+
): APIPromise<PlanRemoveDraftResponse> {
|
|
227
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
228
|
+
return this._client.delete(path`/api/v1/plans/${id}/draft`, {
|
|
229
|
+
...options,
|
|
230
|
+
headers: buildHeaders([
|
|
231
|
+
{
|
|
232
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
233
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
234
|
+
},
|
|
235
|
+
options?.headers,
|
|
236
|
+
]),
|
|
237
|
+
});
|
|
183
238
|
}
|
|
184
239
|
}
|
|
185
240
|
|
|
@@ -1599,54 +1654,67 @@ export namespace PlanRemoveDraftResponse {
|
|
|
1599
1654
|
|
|
1600
1655
|
export interface PlanCreateParams {
|
|
1601
1656
|
/**
|
|
1602
|
-
* The unique identifier for the entity
|
|
1657
|
+
* Body param: The unique identifier for the entity
|
|
1603
1658
|
*/
|
|
1604
1659
|
id: string;
|
|
1605
1660
|
|
|
1606
1661
|
/**
|
|
1607
|
-
* The display name of the package
|
|
1662
|
+
* Body param: The display name of the package
|
|
1608
1663
|
*/
|
|
1609
1664
|
displayName: string;
|
|
1610
1665
|
|
|
1611
1666
|
/**
|
|
1612
|
-
* The product ID to associate the plan with
|
|
1667
|
+
* Body param: The product ID to associate the plan with
|
|
1613
1668
|
*/
|
|
1614
1669
|
productId: string;
|
|
1615
1670
|
|
|
1616
1671
|
/**
|
|
1617
|
-
* The unique identifier for the entity in the billing provider
|
|
1672
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
1618
1673
|
*/
|
|
1619
1674
|
billingId?: string | null;
|
|
1620
1675
|
|
|
1621
1676
|
/**
|
|
1622
|
-
* Default trial configuration for the plan
|
|
1677
|
+
* Body param: Default trial configuration for the plan
|
|
1623
1678
|
*/
|
|
1624
1679
|
defaultTrialConfig?: PlanCreateParams.DefaultTrialConfig | null;
|
|
1625
1680
|
|
|
1626
1681
|
/**
|
|
1627
|
-
* The description of the package
|
|
1682
|
+
* Body param: The description of the package
|
|
1628
1683
|
*/
|
|
1629
1684
|
description?: string | null;
|
|
1630
1685
|
|
|
1631
1686
|
/**
|
|
1632
|
-
* Metadata associated with the entity
|
|
1687
|
+
* Body param: Metadata associated with the entity
|
|
1633
1688
|
*/
|
|
1634
1689
|
metadata?: { [key: string]: string };
|
|
1635
1690
|
|
|
1636
1691
|
/**
|
|
1637
|
-
* The ID of the parent plan, if applicable
|
|
1692
|
+
* Body param: The ID of the parent plan, if applicable
|
|
1638
1693
|
*/
|
|
1639
1694
|
parentPlanId?: string | null;
|
|
1640
1695
|
|
|
1641
1696
|
/**
|
|
1642
|
-
* The pricing type of the package
|
|
1697
|
+
* Body param: The pricing type of the package
|
|
1643
1698
|
*/
|
|
1644
1699
|
pricingType?: 'FREE' | 'PAID' | 'CUSTOM' | null;
|
|
1645
1700
|
|
|
1646
1701
|
/**
|
|
1647
|
-
* The status of the package
|
|
1702
|
+
* Body param: The status of the package
|
|
1648
1703
|
*/
|
|
1649
1704
|
status?: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1708
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1709
|
+
*/
|
|
1710
|
+
'X-ACCOUNT-ID'?: string;
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1714
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1715
|
+
* intrinsic to the key).
|
|
1716
|
+
*/
|
|
1717
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1650
1718
|
}
|
|
1651
1719
|
|
|
1652
1720
|
export namespace PlanCreateParams {
|
|
@@ -1693,43 +1761,74 @@ export namespace PlanCreateParams {
|
|
|
1693
1761
|
}
|
|
1694
1762
|
}
|
|
1695
1763
|
|
|
1764
|
+
export interface PlanRetrieveParams {
|
|
1765
|
+
/**
|
|
1766
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1767
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1768
|
+
*/
|
|
1769
|
+
'X-ACCOUNT-ID'?: string;
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1773
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1774
|
+
* key).
|
|
1775
|
+
*/
|
|
1776
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1696
1779
|
export interface PlanUpdateParams {
|
|
1697
1780
|
/**
|
|
1698
|
-
* The unique identifier for the entity in the billing provider
|
|
1781
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
1699
1782
|
*/
|
|
1700
1783
|
billingId?: string | null;
|
|
1701
1784
|
|
|
1702
1785
|
/**
|
|
1703
|
-
* Pricing configuration to set on the plan draft
|
|
1786
|
+
* Body param: Pricing configuration to set on the plan draft
|
|
1704
1787
|
*/
|
|
1705
1788
|
charges?: PlanUpdateParams.Charges;
|
|
1706
1789
|
|
|
1790
|
+
/**
|
|
1791
|
+
* Body param
|
|
1792
|
+
*/
|
|
1707
1793
|
compatibleAddonIds?: Array<string> | null;
|
|
1708
1794
|
|
|
1709
1795
|
/**
|
|
1710
|
-
* Default trial configuration for the plan
|
|
1796
|
+
* Body param: Default trial configuration for the plan
|
|
1711
1797
|
*/
|
|
1712
1798
|
defaultTrialConfig?: PlanUpdateParams.DefaultTrialConfig | null;
|
|
1713
1799
|
|
|
1714
1800
|
/**
|
|
1715
|
-
* The description of the package
|
|
1801
|
+
* Body param: The description of the package
|
|
1716
1802
|
*/
|
|
1717
1803
|
description?: string | null;
|
|
1718
1804
|
|
|
1719
1805
|
/**
|
|
1720
|
-
* The display name of the package
|
|
1806
|
+
* Body param: The display name of the package
|
|
1721
1807
|
*/
|
|
1722
1808
|
displayName?: string;
|
|
1723
1809
|
|
|
1724
1810
|
/**
|
|
1725
|
-
* Metadata associated with the entity
|
|
1811
|
+
* Body param: Metadata associated with the entity
|
|
1726
1812
|
*/
|
|
1727
1813
|
metadata?: { [key: string]: string };
|
|
1728
1814
|
|
|
1729
1815
|
/**
|
|
1730
|
-
* The ID of the parent plan, if applicable
|
|
1816
|
+
* Body param: The ID of the parent plan, if applicable
|
|
1731
1817
|
*/
|
|
1732
1818
|
parentPlanId?: string | null;
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1822
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1823
|
+
*/
|
|
1824
|
+
'X-ACCOUNT-ID'?: string;
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1828
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1829
|
+
* intrinsic to the key).
|
|
1830
|
+
*/
|
|
1831
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1733
1832
|
}
|
|
1734
1833
|
|
|
1735
1834
|
export namespace PlanUpdateParams {
|
|
@@ -3144,19 +3243,33 @@ export namespace PlanUpdateParams {
|
|
|
3144
3243
|
|
|
3145
3244
|
export interface PlanListParams extends MyCursorIDPageParams {
|
|
3146
3245
|
/**
|
|
3147
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
3246
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
3148
3247
|
*/
|
|
3149
3248
|
createdAt?: PlanListParams.CreatedAt;
|
|
3150
3249
|
|
|
3151
3250
|
/**
|
|
3152
|
-
* Filter by product ID
|
|
3251
|
+
* Query param: Filter by product ID
|
|
3153
3252
|
*/
|
|
3154
3253
|
productId?: string;
|
|
3155
3254
|
|
|
3156
3255
|
/**
|
|
3157
|
-
* Filter by status. Supports comma-separated values for multiple
|
|
3256
|
+
* Query param: Filter by status. Supports comma-separated values for multiple
|
|
3257
|
+
* statuses
|
|
3158
3258
|
*/
|
|
3159
3259
|
status?: Array<'DRAFT' | 'PUBLISHED' | 'ARCHIVED'>;
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3263
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3264
|
+
*/
|
|
3265
|
+
'X-ACCOUNT-ID'?: string;
|
|
3266
|
+
|
|
3267
|
+
/**
|
|
3268
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3269
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3270
|
+
* intrinsic to the key).
|
|
3271
|
+
*/
|
|
3272
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3160
3273
|
}
|
|
3161
3274
|
|
|
3162
3275
|
export namespace PlanListParams {
|
|
@@ -3186,15 +3299,99 @@ export namespace PlanListParams {
|
|
|
3186
3299
|
}
|
|
3187
3300
|
}
|
|
3188
3301
|
|
|
3189
|
-
export interface
|
|
3302
|
+
export interface PlanArchiveParams {
|
|
3303
|
+
/**
|
|
3304
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
3305
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
3306
|
+
*/
|
|
3307
|
+
'X-ACCOUNT-ID'?: string;
|
|
3190
3308
|
|
|
3191
|
-
|
|
3309
|
+
/**
|
|
3310
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
3311
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
3312
|
+
* key).
|
|
3313
|
+
*/
|
|
3314
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
export interface PlanCreateDraftParams {
|
|
3318
|
+
/**
|
|
3319
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
3320
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
3321
|
+
*/
|
|
3322
|
+
'X-ACCOUNT-ID'?: string;
|
|
3323
|
+
|
|
3324
|
+
/**
|
|
3325
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
3326
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
3327
|
+
* key).
|
|
3328
|
+
*/
|
|
3329
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
export interface PlanListChargesParams extends MyCursorIDPageParams {
|
|
3333
|
+
/**
|
|
3334
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3335
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3336
|
+
*/
|
|
3337
|
+
'X-ACCOUNT-ID'?: string;
|
|
3338
|
+
|
|
3339
|
+
/**
|
|
3340
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3341
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3342
|
+
* intrinsic to the key).
|
|
3343
|
+
*/
|
|
3344
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
export interface PlanListOverageChargesParams extends MyCursorIDPageParams {
|
|
3348
|
+
/**
|
|
3349
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3350
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3351
|
+
*/
|
|
3352
|
+
'X-ACCOUNT-ID'?: string;
|
|
3353
|
+
|
|
3354
|
+
/**
|
|
3355
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3356
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3357
|
+
* intrinsic to the key).
|
|
3358
|
+
*/
|
|
3359
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3360
|
+
}
|
|
3192
3361
|
|
|
3193
3362
|
export interface PlanPublishParams {
|
|
3194
3363
|
/**
|
|
3195
|
-
* The migration type of the package
|
|
3364
|
+
* Body param: The migration type of the package
|
|
3196
3365
|
*/
|
|
3197
3366
|
migrationType: 'NEW_CUSTOMERS' | 'ALL_CUSTOMERS';
|
|
3367
|
+
|
|
3368
|
+
/**
|
|
3369
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3370
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3371
|
+
*/
|
|
3372
|
+
'X-ACCOUNT-ID'?: string;
|
|
3373
|
+
|
|
3374
|
+
/**
|
|
3375
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3376
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3377
|
+
* intrinsic to the key).
|
|
3378
|
+
*/
|
|
3379
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
export interface PlanRemoveDraftParams {
|
|
3383
|
+
/**
|
|
3384
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
3385
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
3386
|
+
*/
|
|
3387
|
+
'X-ACCOUNT-ID'?: string;
|
|
3388
|
+
|
|
3389
|
+
/**
|
|
3390
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
3391
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
3392
|
+
* key).
|
|
3393
|
+
*/
|
|
3394
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3198
3395
|
}
|
|
3199
3396
|
|
|
3200
3397
|
Plans.Entitlements = Entitlements;
|
|
@@ -3211,11 +3408,15 @@ export declare namespace Plans {
|
|
|
3211
3408
|
type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage,
|
|
3212
3409
|
type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage,
|
|
3213
3410
|
type PlanCreateParams as PlanCreateParams,
|
|
3411
|
+
type PlanRetrieveParams as PlanRetrieveParams,
|
|
3214
3412
|
type PlanUpdateParams as PlanUpdateParams,
|
|
3215
3413
|
type PlanListParams as PlanListParams,
|
|
3414
|
+
type PlanArchiveParams as PlanArchiveParams,
|
|
3415
|
+
type PlanCreateDraftParams as PlanCreateDraftParams,
|
|
3216
3416
|
type PlanListChargesParams as PlanListChargesParams,
|
|
3217
3417
|
type PlanListOverageChargesParams as PlanListOverageChargesParams,
|
|
3218
3418
|
type PlanPublishParams as PlanPublishParams,
|
|
3419
|
+
type PlanRemoveDraftParams as PlanRemoveDraftParams,
|
|
3219
3420
|
};
|
|
3220
3421
|
|
|
3221
3422
|
export {
|
|
@@ -3225,6 +3426,7 @@ export declare namespace Plans {
|
|
|
3225
3426
|
type EntitlementListResponse as EntitlementListResponse,
|
|
3226
3427
|
type EntitlementCreateParams as EntitlementCreateParams,
|
|
3227
3428
|
type EntitlementUpdateParams as EntitlementUpdateParams,
|
|
3429
|
+
type EntitlementListParams as EntitlementListParams,
|
|
3228
3430
|
type EntitlementDeleteParams as EntitlementDeleteParams,
|
|
3229
3431
|
};
|
|
3230
3432
|
}
|