@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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
5
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
8
|
import { path } from '../../internal/utils/path';
|
|
8
9
|
|
|
@@ -12,94 +13,127 @@ import { path } from '../../internal/utils/path';
|
|
|
12
13
|
export class Features extends APIResource {
|
|
13
14
|
/**
|
|
14
15
|
* Archives a feature, preventing it from being used in new entitlements.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
*/
|
|
17
|
+
archiveFeature(
|
|
18
|
+
id: string,
|
|
19
|
+
params: FeatureArchiveFeatureParams | null | undefined = {},
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): APIPromise<Feature> {
|
|
22
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
23
|
+
return this._client.post(path`/api/v1/features/${id}/archive`, {
|
|
24
|
+
...options,
|
|
25
|
+
headers: buildHeaders([
|
|
26
|
+
{
|
|
27
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
28
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
29
|
+
},
|
|
30
|
+
options?.headers,
|
|
31
|
+
]),
|
|
32
|
+
});
|
|
25
33
|
}
|
|
26
34
|
|
|
27
35
|
/**
|
|
28
36
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
*/
|
|
38
|
+
createFeature(params: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<Feature> {
|
|
39
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
40
|
+
return this._client.post('/api/v1/features', {
|
|
41
|
+
body,
|
|
42
|
+
...options,
|
|
43
|
+
headers: buildHeaders([
|
|
44
|
+
{
|
|
45
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
46
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
47
|
+
},
|
|
48
|
+
options?.headers,
|
|
49
|
+
]),
|
|
50
|
+
});
|
|
41
51
|
}
|
|
42
52
|
|
|
43
53
|
/**
|
|
44
54
|
* Retrieves a paginated list of features in the environment.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* // Automatically fetches more pages as needed.
|
|
49
|
-
* for await (const featureListFeaturesResponse of client.v1.features.listFeatures()) {
|
|
50
|
-
* // ...
|
|
51
|
-
* }
|
|
52
|
-
* ```
|
|
53
55
|
*/
|
|
54
56
|
listFeatures(
|
|
55
|
-
|
|
57
|
+
params: FeatureListFeaturesParams | null | undefined = {},
|
|
56
58
|
options?: RequestOptions,
|
|
57
59
|
): PagePromise<FeatureListFeaturesResponsesMyCursorIDPage, FeatureListFeaturesResponse> {
|
|
60
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
58
61
|
return this._client.getAPIList('/api/v1/features', MyCursorIDPage<FeatureListFeaturesResponse>, {
|
|
59
62
|
query,
|
|
60
63
|
...options,
|
|
64
|
+
headers: buildHeaders([
|
|
65
|
+
{
|
|
66
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
67
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
68
|
+
},
|
|
69
|
+
options?.headers,
|
|
70
|
+
]),
|
|
61
71
|
});
|
|
62
72
|
}
|
|
63
73
|
|
|
64
74
|
/**
|
|
65
75
|
* Retrieves a feature by its unique identifier.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
*/
|
|
77
|
+
retrieveFeature(
|
|
78
|
+
id: string,
|
|
79
|
+
params: FeatureRetrieveFeatureParams | null | undefined = {},
|
|
80
|
+
options?: RequestOptions,
|
|
81
|
+
): APIPromise<Feature> {
|
|
82
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
83
|
+
return this._client.get(path`/api/v1/features/${id}`, {
|
|
84
|
+
...options,
|
|
85
|
+
headers: buildHeaders([
|
|
86
|
+
{
|
|
87
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
88
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
89
|
+
},
|
|
90
|
+
options?.headers,
|
|
91
|
+
]),
|
|
92
|
+
});
|
|
76
93
|
}
|
|
77
94
|
|
|
78
95
|
/**
|
|
79
96
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
97
|
+
*/
|
|
98
|
+
unarchiveFeature(
|
|
99
|
+
id: string,
|
|
100
|
+
params: FeatureUnarchiveFeatureParams | null | undefined = {},
|
|
101
|
+
options?: RequestOptions,
|
|
102
|
+
): APIPromise<Feature> {
|
|
103
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
104
|
+
return this._client.post(path`/api/v1/features/${id}/unarchive`, {
|
|
105
|
+
...options,
|
|
106
|
+
headers: buildHeaders([
|
|
107
|
+
{
|
|
108
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
109
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
110
|
+
},
|
|
111
|
+
options?.headers,
|
|
112
|
+
]),
|
|
113
|
+
});
|
|
90
114
|
}
|
|
91
115
|
|
|
92
116
|
/**
|
|
93
117
|
* Updates an existing feature's properties such as display name, description, and
|
|
94
118
|
* configuration.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return this._client.patch(path`/api/v1/features/${id}`, {
|
|
119
|
+
*/
|
|
120
|
+
updateFeature(
|
|
121
|
+
id: string,
|
|
122
|
+
params: FeatureUpdateFeatureParams,
|
|
123
|
+
options?: RequestOptions,
|
|
124
|
+
): APIPromise<Feature> {
|
|
125
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
126
|
+
return this._client.patch(path`/api/v1/features/${id}`, {
|
|
127
|
+
body,
|
|
128
|
+
...options,
|
|
129
|
+
headers: buildHeaders([
|
|
130
|
+
{
|
|
131
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
132
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
133
|
+
},
|
|
134
|
+
options?.headers,
|
|
135
|
+
]),
|
|
136
|
+
});
|
|
103
137
|
}
|
|
104
138
|
}
|
|
105
139
|
|
|
@@ -335,61 +369,89 @@ export namespace FeatureListFeaturesResponse {
|
|
|
335
369
|
}
|
|
336
370
|
}
|
|
337
371
|
|
|
372
|
+
export interface FeatureArchiveFeatureParams {
|
|
373
|
+
/**
|
|
374
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
375
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
376
|
+
*/
|
|
377
|
+
'X-ACCOUNT-ID'?: string;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
381
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
382
|
+
* key).
|
|
383
|
+
*/
|
|
384
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
338
387
|
export interface FeatureCreateFeatureParams {
|
|
339
388
|
/**
|
|
340
|
-
* The unique identifier for the feature
|
|
389
|
+
* Body param: The unique identifier for the feature
|
|
341
390
|
*/
|
|
342
391
|
id: string;
|
|
343
392
|
|
|
344
393
|
/**
|
|
345
|
-
* The display name for the feature
|
|
394
|
+
* Body param: The display name for the feature
|
|
346
395
|
*/
|
|
347
396
|
displayName: string;
|
|
348
397
|
|
|
349
398
|
/**
|
|
350
|
-
* The type of the feature
|
|
399
|
+
* Body param: The type of the feature
|
|
351
400
|
*/
|
|
352
401
|
featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
|
|
353
402
|
|
|
354
403
|
/**
|
|
355
|
-
* The description for the feature
|
|
404
|
+
* Body param: The description for the feature
|
|
356
405
|
*/
|
|
357
406
|
description?: string;
|
|
358
407
|
|
|
359
408
|
/**
|
|
360
|
-
* The configuration data for the feature
|
|
409
|
+
* Body param: The configuration data for the feature
|
|
361
410
|
*/
|
|
362
411
|
enumConfiguration?: Array<FeatureCreateFeatureParams.EnumConfiguration>;
|
|
363
412
|
|
|
364
413
|
/**
|
|
365
|
-
* The status of the feature
|
|
414
|
+
* Body param: The status of the feature
|
|
366
415
|
*/
|
|
367
416
|
featureStatus?: 'NEW' | 'SUSPENDED' | 'ACTIVE';
|
|
368
417
|
|
|
369
418
|
/**
|
|
370
|
-
* The units for the feature
|
|
419
|
+
* Body param: The units for the feature
|
|
371
420
|
*/
|
|
372
421
|
featureUnits?: string;
|
|
373
422
|
|
|
374
423
|
/**
|
|
375
|
-
* The plural units for the feature
|
|
424
|
+
* Body param: The plural units for the feature
|
|
376
425
|
*/
|
|
377
426
|
featureUnitsPlural?: string;
|
|
378
427
|
|
|
379
428
|
/**
|
|
380
|
-
* The additional metadata for the feature
|
|
429
|
+
* Body param: The additional metadata for the feature
|
|
381
430
|
*/
|
|
382
431
|
metadata?: { [key: string]: string };
|
|
383
432
|
|
|
384
433
|
/**
|
|
385
|
-
* The meter type for the feature
|
|
434
|
+
* Body param: The meter type for the feature
|
|
386
435
|
*/
|
|
387
436
|
meterType?: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
|
|
388
437
|
|
|
389
438
|
/**
|
|
390
|
-
* Unit transformation to be applied to the reported usage
|
|
439
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
391
440
|
*/
|
|
392
441
|
unitTransformation?: FeatureCreateFeatureParams.UnitTransformation | null;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
445
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
446
|
+
*/
|
|
447
|
+
'X-ACCOUNT-ID'?: string;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
451
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
452
|
+
* intrinsic to the key).
|
|
453
|
+
*/
|
|
454
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
393
455
|
}
|
|
394
456
|
|
|
395
457
|
export namespace FeatureCreateFeatureParams {
|
|
@@ -433,29 +495,45 @@ export namespace FeatureCreateFeatureParams {
|
|
|
433
495
|
|
|
434
496
|
export interface FeatureListFeaturesParams extends MyCursorIDPageParams {
|
|
435
497
|
/**
|
|
436
|
-
* Filter by entity ID
|
|
498
|
+
* Query param: Filter by entity ID
|
|
437
499
|
*/
|
|
438
500
|
id?: string;
|
|
439
501
|
|
|
440
502
|
/**
|
|
441
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
503
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
442
504
|
*/
|
|
443
505
|
createdAt?: FeatureListFeaturesParams.CreatedAt;
|
|
444
506
|
|
|
445
507
|
/**
|
|
446
|
-
* Filter by feature type. Supports comma-separated values for
|
|
508
|
+
* Query param: Filter by feature type. Supports comma-separated values for
|
|
509
|
+
* multiple types
|
|
447
510
|
*/
|
|
448
511
|
featureType?: Array<'BOOLEAN' | 'NUMBER' | 'ENUM'>;
|
|
449
512
|
|
|
450
513
|
/**
|
|
451
|
-
* Filter by meter type. Supports comma-separated values for multiple
|
|
514
|
+
* Query param: Filter by meter type. Supports comma-separated values for multiple
|
|
515
|
+
* types
|
|
452
516
|
*/
|
|
453
517
|
meterType?: Array<'None' | 'FLUCTUATING' | 'INCREMENTAL'>;
|
|
454
518
|
|
|
455
519
|
/**
|
|
456
|
-
* Filter by feature status. Supports comma-separated values for
|
|
520
|
+
* Query param: Filter by feature status. Supports comma-separated values for
|
|
521
|
+
* multiple statuses
|
|
457
522
|
*/
|
|
458
523
|
status?: Array<'NEW' | 'SUSPENDED' | 'ACTIVE'>;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
527
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
528
|
+
*/
|
|
529
|
+
'X-ACCOUNT-ID'?: string;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
533
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
534
|
+
* intrinsic to the key).
|
|
535
|
+
*/
|
|
536
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
459
537
|
}
|
|
460
538
|
|
|
461
539
|
export namespace FeatureListFeaturesParams {
|
|
@@ -485,43 +563,89 @@ export namespace FeatureListFeaturesParams {
|
|
|
485
563
|
}
|
|
486
564
|
}
|
|
487
565
|
|
|
566
|
+
export interface FeatureRetrieveFeatureParams {
|
|
567
|
+
/**
|
|
568
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
569
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
570
|
+
*/
|
|
571
|
+
'X-ACCOUNT-ID'?: string;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
575
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
576
|
+
* key).
|
|
577
|
+
*/
|
|
578
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export interface FeatureUnarchiveFeatureParams {
|
|
582
|
+
/**
|
|
583
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
584
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
585
|
+
*/
|
|
586
|
+
'X-ACCOUNT-ID'?: string;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
590
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
591
|
+
* key).
|
|
592
|
+
*/
|
|
593
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
594
|
+
}
|
|
595
|
+
|
|
488
596
|
export interface FeatureUpdateFeatureParams {
|
|
489
597
|
/**
|
|
490
|
-
* The description for the feature
|
|
598
|
+
* Body param: The description for the feature
|
|
491
599
|
*/
|
|
492
600
|
description?: string;
|
|
493
601
|
|
|
494
602
|
/**
|
|
495
|
-
* The display name for the feature
|
|
603
|
+
* Body param: The display name for the feature
|
|
496
604
|
*/
|
|
497
605
|
displayName?: string;
|
|
498
606
|
|
|
499
607
|
/**
|
|
500
|
-
* The configuration data for the feature
|
|
608
|
+
* Body param: The configuration data for the feature
|
|
501
609
|
*/
|
|
502
610
|
enumConfiguration?: Array<FeatureUpdateFeatureParams.EnumConfiguration>;
|
|
503
611
|
|
|
504
612
|
/**
|
|
505
|
-
* The units for the feature
|
|
613
|
+
* Body param: The units for the feature
|
|
506
614
|
*/
|
|
507
615
|
featureUnits?: string;
|
|
508
616
|
|
|
509
617
|
/**
|
|
510
|
-
* The plural units for the feature
|
|
618
|
+
* Body param: The plural units for the feature
|
|
511
619
|
*/
|
|
512
620
|
featureUnitsPlural?: string;
|
|
513
621
|
|
|
514
622
|
/**
|
|
515
|
-
* The additional metadata for the feature
|
|
623
|
+
* Body param: The additional metadata for the feature
|
|
516
624
|
*/
|
|
517
625
|
metadata?: { [key: string]: string };
|
|
518
626
|
|
|
627
|
+
/**
|
|
628
|
+
* Body param
|
|
629
|
+
*/
|
|
519
630
|
meter?: FeatureUpdateFeatureParams.Meter;
|
|
520
631
|
|
|
521
632
|
/**
|
|
522
|
-
* Unit transformation to be applied to the reported usage
|
|
633
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
523
634
|
*/
|
|
524
635
|
unitTransformation?: FeatureUpdateFeatureParams.UnitTransformation | null;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
639
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
640
|
+
*/
|
|
641
|
+
'X-ACCOUNT-ID'?: string;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
645
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
646
|
+
* intrinsic to the key).
|
|
647
|
+
*/
|
|
648
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
525
649
|
}
|
|
526
650
|
|
|
527
651
|
export namespace FeatureUpdateFeatureParams {
|
|
@@ -619,8 +743,11 @@ export declare namespace Features {
|
|
|
619
743
|
type Feature as Feature,
|
|
620
744
|
type FeatureListFeaturesResponse as FeatureListFeaturesResponse,
|
|
621
745
|
type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage,
|
|
746
|
+
type FeatureArchiveFeatureParams as FeatureArchiveFeatureParams,
|
|
622
747
|
type FeatureCreateFeatureParams as FeatureCreateFeatureParams,
|
|
623
748
|
type FeatureListFeaturesParams as FeatureListFeaturesParams,
|
|
749
|
+
type FeatureRetrieveFeatureParams as FeatureRetrieveFeatureParams,
|
|
750
|
+
type FeatureUnarchiveFeatureParams as FeatureUnarchiveFeatureParams,
|
|
624
751
|
type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams,
|
|
625
752
|
};
|
|
626
753
|
}
|
|
@@ -8,10 +8,14 @@ export {
|
|
|
8
8
|
type AddonPublishResponse,
|
|
9
9
|
type AddonRemoveDraftResponse,
|
|
10
10
|
type AddonCreateParams,
|
|
11
|
+
type AddonRetrieveParams,
|
|
11
12
|
type AddonUpdateParams,
|
|
12
13
|
type AddonListParams,
|
|
14
|
+
type AddonArchiveParams,
|
|
15
|
+
type AddonCreateDraftParams,
|
|
13
16
|
type AddonListChargesParams,
|
|
14
17
|
type AddonPublishParams,
|
|
18
|
+
type AddonRemoveDraftParams,
|
|
15
19
|
type AddonListResponsesMyCursorIDPage,
|
|
16
20
|
type AddonListChargesResponsesMyCursorIDPage,
|
|
17
21
|
} from './addons/index';
|
|
@@ -20,7 +24,9 @@ export {
|
|
|
20
24
|
type Coupon,
|
|
21
25
|
type CouponListResponse,
|
|
22
26
|
type CouponCreateParams,
|
|
27
|
+
type CouponRetrieveParams,
|
|
23
28
|
type CouponListParams,
|
|
29
|
+
type CouponArchiveCouponParams,
|
|
24
30
|
type CouponUpdateCouponParams,
|
|
25
31
|
type CouponListResponsesMyCursorIDPage,
|
|
26
32
|
} from './coupons';
|
|
@@ -43,13 +49,16 @@ export {
|
|
|
43
49
|
type CustomerImportResponse,
|
|
44
50
|
type CustomerListResourcesResponse,
|
|
45
51
|
type CustomerRetrieveEntitlementsResponse,
|
|
52
|
+
type CustomerRetrieveParams,
|
|
46
53
|
type CustomerUpdateParams,
|
|
47
54
|
type CustomerListParams,
|
|
55
|
+
type CustomerArchiveParams,
|
|
48
56
|
type CustomerCheckEntitlementParams,
|
|
49
57
|
type CustomerImportParams,
|
|
50
58
|
type CustomerListResourcesParams,
|
|
51
59
|
type CustomerProvisionParams,
|
|
52
60
|
type CustomerRetrieveEntitlementsParams,
|
|
61
|
+
type CustomerUnarchiveParams,
|
|
53
62
|
type CustomerListResponsesMyCursorIDPage,
|
|
54
63
|
type CustomerListResourcesResponsesMyCursorIDPage,
|
|
55
64
|
} from './customers/index';
|
|
@@ -58,8 +67,11 @@ export {
|
|
|
58
67
|
Features,
|
|
59
68
|
type Feature,
|
|
60
69
|
type FeatureListFeaturesResponse,
|
|
70
|
+
type FeatureArchiveFeatureParams,
|
|
61
71
|
type FeatureCreateFeatureParams,
|
|
62
72
|
type FeatureListFeaturesParams,
|
|
73
|
+
type FeatureRetrieveFeatureParams,
|
|
74
|
+
type FeatureUnarchiveFeatureParams,
|
|
63
75
|
type FeatureUpdateFeatureParams,
|
|
64
76
|
type FeatureListFeaturesResponsesMyCursorIDPage,
|
|
65
77
|
} from './features';
|
|
@@ -72,11 +84,15 @@ export {
|
|
|
72
84
|
type PlanPublishResponse,
|
|
73
85
|
type PlanRemoveDraftResponse,
|
|
74
86
|
type PlanCreateParams,
|
|
87
|
+
type PlanRetrieveParams,
|
|
75
88
|
type PlanUpdateParams,
|
|
76
89
|
type PlanListParams,
|
|
90
|
+
type PlanArchiveParams,
|
|
91
|
+
type PlanCreateDraftParams,
|
|
77
92
|
type PlanListChargesParams,
|
|
78
93
|
type PlanListOverageChargesParams,
|
|
79
94
|
type PlanPublishParams,
|
|
95
|
+
type PlanRemoveDraftParams,
|
|
80
96
|
type PlanListResponsesMyCursorIDPage,
|
|
81
97
|
type PlanListChargesResponsesMyCursorIDPage,
|
|
82
98
|
type PlanListOverageChargesResponsesMyCursorIDPage,
|
|
@@ -85,9 +101,11 @@ export {
|
|
|
85
101
|
Products,
|
|
86
102
|
type Product,
|
|
87
103
|
type ProductListProductsResponse,
|
|
104
|
+
type ProductArchiveProductParams,
|
|
88
105
|
type ProductCreateProductParams,
|
|
89
106
|
type ProductDuplicateProductParams,
|
|
90
107
|
type ProductListProductsParams,
|
|
108
|
+
type ProductUnarchiveProductParams,
|
|
91
109
|
type ProductUpdateProductParams,
|
|
92
110
|
type ProductListProductsResponsesMyCursorIDPage,
|
|
93
111
|
} from './products';
|
|
@@ -98,6 +116,7 @@ export {
|
|
|
98
116
|
type SubscriptionImportResponse,
|
|
99
117
|
type SubscriptionPreviewResponse,
|
|
100
118
|
type SubscriptionProvisionResponse,
|
|
119
|
+
type SubscriptionRetrieveParams,
|
|
101
120
|
type SubscriptionUpdateParams,
|
|
102
121
|
type SubscriptionListParams,
|
|
103
122
|
type SubscriptionCancelParams,
|