@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
|
@@ -8,72 +8,29 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
8
8
|
export declare class Features extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Archives a feature, preventing it from being used in new entitlements.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const feature = await client.v1.features.archiveFeature(
|
|
15
|
-
* 'x',
|
|
16
|
-
* );
|
|
17
|
-
* ```
|
|
18
11
|
*/
|
|
19
|
-
archiveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
12
|
+
archiveFeature(id: string, params?: FeatureArchiveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
20
13
|
/**
|
|
21
14
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* ```ts
|
|
25
|
-
* const feature = await client.v1.features.createFeature({
|
|
26
|
-
* id: 'id',
|
|
27
|
-
* displayName: 'displayName',
|
|
28
|
-
* featureType: 'BOOLEAN',
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
createFeature(body: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
15
|
+
*/
|
|
16
|
+
createFeature(params: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
33
17
|
/**
|
|
34
18
|
* Retrieves a paginated list of features in the environment.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* // Automatically fetches more pages as needed.
|
|
39
|
-
* for await (const featureListFeaturesResponse of client.v1.features.listFeatures()) {
|
|
40
|
-
* // ...
|
|
41
|
-
* }
|
|
42
|
-
* ```
|
|
43
19
|
*/
|
|
44
|
-
listFeatures(
|
|
20
|
+
listFeatures(params?: FeatureListFeaturesParams | null | undefined, options?: RequestOptions): PagePromise<FeatureListFeaturesResponsesMyCursorIDPage, FeatureListFeaturesResponse>;
|
|
45
21
|
/**
|
|
46
22
|
* Retrieves a feature by its unique identifier.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const feature = await client.v1.features.retrieveFeature(
|
|
51
|
-
* 'x',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
23
|
*/
|
|
55
|
-
retrieveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
24
|
+
retrieveFeature(id: string, params?: FeatureRetrieveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
56
25
|
/**
|
|
57
26
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const feature = await client.v1.features.unarchiveFeature(
|
|
62
|
-
* 'x',
|
|
63
|
-
* );
|
|
64
|
-
* ```
|
|
65
27
|
*/
|
|
66
|
-
unarchiveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
28
|
+
unarchiveFeature(id: string, params?: FeatureUnarchiveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
67
29
|
/**
|
|
68
30
|
* Updates an existing feature's properties such as display name, description, and
|
|
69
31
|
* configuration.
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```ts
|
|
73
|
-
* const feature = await client.v1.features.updateFeature('x');
|
|
74
|
-
* ```
|
|
75
32
|
*/
|
|
76
|
-
updateFeature(id: string,
|
|
33
|
+
updateFeature(id: string, params: FeatureUpdateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
77
34
|
}
|
|
78
35
|
export type FeatureListFeaturesResponsesMyCursorIDPage = MyCursorIDPage<FeatureListFeaturesResponse>;
|
|
79
36
|
/**
|
|
@@ -271,53 +228,77 @@ export declare namespace FeatureListFeaturesResponse {
|
|
|
271
228
|
round: 'UP' | 'DOWN';
|
|
272
229
|
}
|
|
273
230
|
}
|
|
231
|
+
export interface FeatureArchiveFeatureParams {
|
|
232
|
+
/**
|
|
233
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
234
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
235
|
+
*/
|
|
236
|
+
'X-ACCOUNT-ID'?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
239
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
240
|
+
* key).
|
|
241
|
+
*/
|
|
242
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
243
|
+
}
|
|
274
244
|
export interface FeatureCreateFeatureParams {
|
|
275
245
|
/**
|
|
276
|
-
* The unique identifier for the feature
|
|
246
|
+
* Body param: The unique identifier for the feature
|
|
277
247
|
*/
|
|
278
248
|
id: string;
|
|
279
249
|
/**
|
|
280
|
-
* The display name for the feature
|
|
250
|
+
* Body param: The display name for the feature
|
|
281
251
|
*/
|
|
282
252
|
displayName: string;
|
|
283
253
|
/**
|
|
284
|
-
* The type of the feature
|
|
254
|
+
* Body param: The type of the feature
|
|
285
255
|
*/
|
|
286
256
|
featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
|
|
287
257
|
/**
|
|
288
|
-
* The description for the feature
|
|
258
|
+
* Body param: The description for the feature
|
|
289
259
|
*/
|
|
290
260
|
description?: string;
|
|
291
261
|
/**
|
|
292
|
-
* The configuration data for the feature
|
|
262
|
+
* Body param: The configuration data for the feature
|
|
293
263
|
*/
|
|
294
264
|
enumConfiguration?: Array<FeatureCreateFeatureParams.EnumConfiguration>;
|
|
295
265
|
/**
|
|
296
|
-
* The status of the feature
|
|
266
|
+
* Body param: The status of the feature
|
|
297
267
|
*/
|
|
298
268
|
featureStatus?: 'NEW' | 'SUSPENDED' | 'ACTIVE';
|
|
299
269
|
/**
|
|
300
|
-
* The units for the feature
|
|
270
|
+
* Body param: The units for the feature
|
|
301
271
|
*/
|
|
302
272
|
featureUnits?: string;
|
|
303
273
|
/**
|
|
304
|
-
* The plural units for the feature
|
|
274
|
+
* Body param: The plural units for the feature
|
|
305
275
|
*/
|
|
306
276
|
featureUnitsPlural?: string;
|
|
307
277
|
/**
|
|
308
|
-
* The additional metadata for the feature
|
|
278
|
+
* Body param: The additional metadata for the feature
|
|
309
279
|
*/
|
|
310
280
|
metadata?: {
|
|
311
281
|
[key: string]: string;
|
|
312
282
|
};
|
|
313
283
|
/**
|
|
314
|
-
* The meter type for the feature
|
|
284
|
+
* Body param: The meter type for the feature
|
|
315
285
|
*/
|
|
316
286
|
meterType?: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
|
|
317
287
|
/**
|
|
318
|
-
* Unit transformation to be applied to the reported usage
|
|
288
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
319
289
|
*/
|
|
320
290
|
unitTransformation?: FeatureCreateFeatureParams.UnitTransformation | null;
|
|
291
|
+
/**
|
|
292
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
293
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
294
|
+
*/
|
|
295
|
+
'X-ACCOUNT-ID'?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
298
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
299
|
+
* intrinsic to the key).
|
|
300
|
+
*/
|
|
301
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
321
302
|
}
|
|
322
303
|
export declare namespace FeatureCreateFeatureParams {
|
|
323
304
|
interface EnumConfiguration {
|
|
@@ -354,25 +335,39 @@ export declare namespace FeatureCreateFeatureParams {
|
|
|
354
335
|
}
|
|
355
336
|
export interface FeatureListFeaturesParams extends MyCursorIDPageParams {
|
|
356
337
|
/**
|
|
357
|
-
* Filter by entity ID
|
|
338
|
+
* Query param: Filter by entity ID
|
|
358
339
|
*/
|
|
359
340
|
id?: string;
|
|
360
341
|
/**
|
|
361
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
342
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
362
343
|
*/
|
|
363
344
|
createdAt?: FeatureListFeaturesParams.CreatedAt;
|
|
364
345
|
/**
|
|
365
|
-
* Filter by feature type. Supports comma-separated values for
|
|
346
|
+
* Query param: Filter by feature type. Supports comma-separated values for
|
|
347
|
+
* multiple types
|
|
366
348
|
*/
|
|
367
349
|
featureType?: Array<'BOOLEAN' | 'NUMBER' | 'ENUM'>;
|
|
368
350
|
/**
|
|
369
|
-
* Filter by meter type. Supports comma-separated values for multiple
|
|
351
|
+
* Query param: Filter by meter type. Supports comma-separated values for multiple
|
|
352
|
+
* types
|
|
370
353
|
*/
|
|
371
354
|
meterType?: Array<'None' | 'FLUCTUATING' | 'INCREMENTAL'>;
|
|
372
355
|
/**
|
|
373
|
-
* Filter by feature status. Supports comma-separated values for
|
|
356
|
+
* Query param: Filter by feature status. Supports comma-separated values for
|
|
357
|
+
* multiple statuses
|
|
374
358
|
*/
|
|
375
359
|
status?: Array<'NEW' | 'SUSPENDED' | 'ACTIVE'>;
|
|
360
|
+
/**
|
|
361
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
362
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
363
|
+
*/
|
|
364
|
+
'X-ACCOUNT-ID'?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
367
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
368
|
+
* intrinsic to the key).
|
|
369
|
+
*/
|
|
370
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
376
371
|
}
|
|
377
372
|
export declare namespace FeatureListFeaturesParams {
|
|
378
373
|
/**
|
|
@@ -397,38 +392,78 @@ export declare namespace FeatureListFeaturesParams {
|
|
|
397
392
|
lte?: string;
|
|
398
393
|
}
|
|
399
394
|
}
|
|
395
|
+
export interface FeatureRetrieveFeatureParams {
|
|
396
|
+
/**
|
|
397
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
398
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
399
|
+
*/
|
|
400
|
+
'X-ACCOUNT-ID'?: string;
|
|
401
|
+
/**
|
|
402
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
403
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
404
|
+
* key).
|
|
405
|
+
*/
|
|
406
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
407
|
+
}
|
|
408
|
+
export interface FeatureUnarchiveFeatureParams {
|
|
409
|
+
/**
|
|
410
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
411
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
412
|
+
*/
|
|
413
|
+
'X-ACCOUNT-ID'?: string;
|
|
414
|
+
/**
|
|
415
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
416
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
417
|
+
* key).
|
|
418
|
+
*/
|
|
419
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
420
|
+
}
|
|
400
421
|
export interface FeatureUpdateFeatureParams {
|
|
401
422
|
/**
|
|
402
|
-
* The description for the feature
|
|
423
|
+
* Body param: The description for the feature
|
|
403
424
|
*/
|
|
404
425
|
description?: string;
|
|
405
426
|
/**
|
|
406
|
-
* The display name for the feature
|
|
427
|
+
* Body param: The display name for the feature
|
|
407
428
|
*/
|
|
408
429
|
displayName?: string;
|
|
409
430
|
/**
|
|
410
|
-
* The configuration data for the feature
|
|
431
|
+
* Body param: The configuration data for the feature
|
|
411
432
|
*/
|
|
412
433
|
enumConfiguration?: Array<FeatureUpdateFeatureParams.EnumConfiguration>;
|
|
413
434
|
/**
|
|
414
|
-
* The units for the feature
|
|
435
|
+
* Body param: The units for the feature
|
|
415
436
|
*/
|
|
416
437
|
featureUnits?: string;
|
|
417
438
|
/**
|
|
418
|
-
* The plural units for the feature
|
|
439
|
+
* Body param: The plural units for the feature
|
|
419
440
|
*/
|
|
420
441
|
featureUnitsPlural?: string;
|
|
421
442
|
/**
|
|
422
|
-
* The additional metadata for the feature
|
|
443
|
+
* Body param: The additional metadata for the feature
|
|
423
444
|
*/
|
|
424
445
|
metadata?: {
|
|
425
446
|
[key: string]: string;
|
|
426
447
|
};
|
|
448
|
+
/**
|
|
449
|
+
* Body param
|
|
450
|
+
*/
|
|
427
451
|
meter?: FeatureUpdateFeatureParams.Meter;
|
|
428
452
|
/**
|
|
429
|
-
* Unit transformation to be applied to the reported usage
|
|
453
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
430
454
|
*/
|
|
431
455
|
unitTransformation?: FeatureUpdateFeatureParams.UnitTransformation | null;
|
|
456
|
+
/**
|
|
457
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
458
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
459
|
+
*/
|
|
460
|
+
'X-ACCOUNT-ID'?: string;
|
|
461
|
+
/**
|
|
462
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
463
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
464
|
+
* intrinsic to the key).
|
|
465
|
+
*/
|
|
466
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
432
467
|
}
|
|
433
468
|
export declare namespace FeatureUpdateFeatureParams {
|
|
434
469
|
interface EnumConfiguration {
|
|
@@ -494,6 +529,6 @@ export declare namespace FeatureUpdateFeatureParams {
|
|
|
494
529
|
}
|
|
495
530
|
}
|
|
496
531
|
export declare namespace Features {
|
|
497
|
-
export { type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
532
|
+
export { type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureArchiveFeatureParams as FeatureArchiveFeatureParams, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureRetrieveFeatureParams as FeatureRetrieveFeatureParams, type FeatureUnarchiveFeatureParams as FeatureUnarchiveFeatureParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
498
533
|
}
|
|
499
534
|
//# sourceMappingURL=features.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.mts","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,kCAA8B;
|
|
1
|
+
{"version":3,"file":"features.d.mts","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names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CAAC,SAAS,CAAC,CAAC;SACrC;QAED,UAAiB,MAAM,CAAC;YACtB,UAAiB,SAAS;gBACxB;;mBAEG;gBACH,KAAK,EAAE,MAAM,CAAC;gBAEd,SAAS,EACL,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,uBAAuB,GACvB,WAAW,GACX,oBAAoB,GACpB,SAAS,GACT,aAAa,GACb,UAAU,GACV,aAAa,GACb,WAAW,GACX,IAAI,CAAC;gBAET;;mBAEG;gBACH,KAAK,CAAC,EAAE,MAAM,CAAC;gBAEf,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;aACxB;SACF;KACF;IAED;;OAEG;IACH,UAAiB,kBAAkB;QACjC;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -8,72 +8,29 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
8
8
|
export declare class Features extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Archives a feature, preventing it from being used in new entitlements.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const feature = await client.v1.features.archiveFeature(
|
|
15
|
-
* 'x',
|
|
16
|
-
* );
|
|
17
|
-
* ```
|
|
18
11
|
*/
|
|
19
|
-
archiveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
12
|
+
archiveFeature(id: string, params?: FeatureArchiveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
20
13
|
/**
|
|
21
14
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* ```ts
|
|
25
|
-
* const feature = await client.v1.features.createFeature({
|
|
26
|
-
* id: 'id',
|
|
27
|
-
* displayName: 'displayName',
|
|
28
|
-
* featureType: 'BOOLEAN',
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
createFeature(body: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
15
|
+
*/
|
|
16
|
+
createFeature(params: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
33
17
|
/**
|
|
34
18
|
* Retrieves a paginated list of features in the environment.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* // Automatically fetches more pages as needed.
|
|
39
|
-
* for await (const featureListFeaturesResponse of client.v1.features.listFeatures()) {
|
|
40
|
-
* // ...
|
|
41
|
-
* }
|
|
42
|
-
* ```
|
|
43
19
|
*/
|
|
44
|
-
listFeatures(
|
|
20
|
+
listFeatures(params?: FeatureListFeaturesParams | null | undefined, options?: RequestOptions): PagePromise<FeatureListFeaturesResponsesMyCursorIDPage, FeatureListFeaturesResponse>;
|
|
45
21
|
/**
|
|
46
22
|
* Retrieves a feature by its unique identifier.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const feature = await client.v1.features.retrieveFeature(
|
|
51
|
-
* 'x',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
23
|
*/
|
|
55
|
-
retrieveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
24
|
+
retrieveFeature(id: string, params?: FeatureRetrieveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
56
25
|
/**
|
|
57
26
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const feature = await client.v1.features.unarchiveFeature(
|
|
62
|
-
* 'x',
|
|
63
|
-
* );
|
|
64
|
-
* ```
|
|
65
27
|
*/
|
|
66
|
-
unarchiveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
28
|
+
unarchiveFeature(id: string, params?: FeatureUnarchiveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
67
29
|
/**
|
|
68
30
|
* Updates an existing feature's properties such as display name, description, and
|
|
69
31
|
* configuration.
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```ts
|
|
73
|
-
* const feature = await client.v1.features.updateFeature('x');
|
|
74
|
-
* ```
|
|
75
32
|
*/
|
|
76
|
-
updateFeature(id: string,
|
|
33
|
+
updateFeature(id: string, params: FeatureUpdateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
77
34
|
}
|
|
78
35
|
export type FeatureListFeaturesResponsesMyCursorIDPage = MyCursorIDPage<FeatureListFeaturesResponse>;
|
|
79
36
|
/**
|
|
@@ -271,53 +228,77 @@ export declare namespace FeatureListFeaturesResponse {
|
|
|
271
228
|
round: 'UP' | 'DOWN';
|
|
272
229
|
}
|
|
273
230
|
}
|
|
231
|
+
export interface FeatureArchiveFeatureParams {
|
|
232
|
+
/**
|
|
233
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
234
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
235
|
+
*/
|
|
236
|
+
'X-ACCOUNT-ID'?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
239
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
240
|
+
* key).
|
|
241
|
+
*/
|
|
242
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
243
|
+
}
|
|
274
244
|
export interface FeatureCreateFeatureParams {
|
|
275
245
|
/**
|
|
276
|
-
* The unique identifier for the feature
|
|
246
|
+
* Body param: The unique identifier for the feature
|
|
277
247
|
*/
|
|
278
248
|
id: string;
|
|
279
249
|
/**
|
|
280
|
-
* The display name for the feature
|
|
250
|
+
* Body param: The display name for the feature
|
|
281
251
|
*/
|
|
282
252
|
displayName: string;
|
|
283
253
|
/**
|
|
284
|
-
* The type of the feature
|
|
254
|
+
* Body param: The type of the feature
|
|
285
255
|
*/
|
|
286
256
|
featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
|
|
287
257
|
/**
|
|
288
|
-
* The description for the feature
|
|
258
|
+
* Body param: The description for the feature
|
|
289
259
|
*/
|
|
290
260
|
description?: string;
|
|
291
261
|
/**
|
|
292
|
-
* The configuration data for the feature
|
|
262
|
+
* Body param: The configuration data for the feature
|
|
293
263
|
*/
|
|
294
264
|
enumConfiguration?: Array<FeatureCreateFeatureParams.EnumConfiguration>;
|
|
295
265
|
/**
|
|
296
|
-
* The status of the feature
|
|
266
|
+
* Body param: The status of the feature
|
|
297
267
|
*/
|
|
298
268
|
featureStatus?: 'NEW' | 'SUSPENDED' | 'ACTIVE';
|
|
299
269
|
/**
|
|
300
|
-
* The units for the feature
|
|
270
|
+
* Body param: The units for the feature
|
|
301
271
|
*/
|
|
302
272
|
featureUnits?: string;
|
|
303
273
|
/**
|
|
304
|
-
* The plural units for the feature
|
|
274
|
+
* Body param: The plural units for the feature
|
|
305
275
|
*/
|
|
306
276
|
featureUnitsPlural?: string;
|
|
307
277
|
/**
|
|
308
|
-
* The additional metadata for the feature
|
|
278
|
+
* Body param: The additional metadata for the feature
|
|
309
279
|
*/
|
|
310
280
|
metadata?: {
|
|
311
281
|
[key: string]: string;
|
|
312
282
|
};
|
|
313
283
|
/**
|
|
314
|
-
* The meter type for the feature
|
|
284
|
+
* Body param: The meter type for the feature
|
|
315
285
|
*/
|
|
316
286
|
meterType?: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
|
|
317
287
|
/**
|
|
318
|
-
* Unit transformation to be applied to the reported usage
|
|
288
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
319
289
|
*/
|
|
320
290
|
unitTransformation?: FeatureCreateFeatureParams.UnitTransformation | null;
|
|
291
|
+
/**
|
|
292
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
293
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
294
|
+
*/
|
|
295
|
+
'X-ACCOUNT-ID'?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
298
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
299
|
+
* intrinsic to the key).
|
|
300
|
+
*/
|
|
301
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
321
302
|
}
|
|
322
303
|
export declare namespace FeatureCreateFeatureParams {
|
|
323
304
|
interface EnumConfiguration {
|
|
@@ -354,25 +335,39 @@ export declare namespace FeatureCreateFeatureParams {
|
|
|
354
335
|
}
|
|
355
336
|
export interface FeatureListFeaturesParams extends MyCursorIDPageParams {
|
|
356
337
|
/**
|
|
357
|
-
* Filter by entity ID
|
|
338
|
+
* Query param: Filter by entity ID
|
|
358
339
|
*/
|
|
359
340
|
id?: string;
|
|
360
341
|
/**
|
|
361
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
342
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
362
343
|
*/
|
|
363
344
|
createdAt?: FeatureListFeaturesParams.CreatedAt;
|
|
364
345
|
/**
|
|
365
|
-
* Filter by feature type. Supports comma-separated values for
|
|
346
|
+
* Query param: Filter by feature type. Supports comma-separated values for
|
|
347
|
+
* multiple types
|
|
366
348
|
*/
|
|
367
349
|
featureType?: Array<'BOOLEAN' | 'NUMBER' | 'ENUM'>;
|
|
368
350
|
/**
|
|
369
|
-
* Filter by meter type. Supports comma-separated values for multiple
|
|
351
|
+
* Query param: Filter by meter type. Supports comma-separated values for multiple
|
|
352
|
+
* types
|
|
370
353
|
*/
|
|
371
354
|
meterType?: Array<'None' | 'FLUCTUATING' | 'INCREMENTAL'>;
|
|
372
355
|
/**
|
|
373
|
-
* Filter by feature status. Supports comma-separated values for
|
|
356
|
+
* Query param: Filter by feature status. Supports comma-separated values for
|
|
357
|
+
* multiple statuses
|
|
374
358
|
*/
|
|
375
359
|
status?: Array<'NEW' | 'SUSPENDED' | 'ACTIVE'>;
|
|
360
|
+
/**
|
|
361
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
362
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
363
|
+
*/
|
|
364
|
+
'X-ACCOUNT-ID'?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
367
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
368
|
+
* intrinsic to the key).
|
|
369
|
+
*/
|
|
370
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
376
371
|
}
|
|
377
372
|
export declare namespace FeatureListFeaturesParams {
|
|
378
373
|
/**
|
|
@@ -397,38 +392,78 @@ export declare namespace FeatureListFeaturesParams {
|
|
|
397
392
|
lte?: string;
|
|
398
393
|
}
|
|
399
394
|
}
|
|
395
|
+
export interface FeatureRetrieveFeatureParams {
|
|
396
|
+
/**
|
|
397
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
398
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
399
|
+
*/
|
|
400
|
+
'X-ACCOUNT-ID'?: string;
|
|
401
|
+
/**
|
|
402
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
403
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
404
|
+
* key).
|
|
405
|
+
*/
|
|
406
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
407
|
+
}
|
|
408
|
+
export interface FeatureUnarchiveFeatureParams {
|
|
409
|
+
/**
|
|
410
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
411
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
412
|
+
*/
|
|
413
|
+
'X-ACCOUNT-ID'?: string;
|
|
414
|
+
/**
|
|
415
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
416
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
417
|
+
* key).
|
|
418
|
+
*/
|
|
419
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
420
|
+
}
|
|
400
421
|
export interface FeatureUpdateFeatureParams {
|
|
401
422
|
/**
|
|
402
|
-
* The description for the feature
|
|
423
|
+
* Body param: The description for the feature
|
|
403
424
|
*/
|
|
404
425
|
description?: string;
|
|
405
426
|
/**
|
|
406
|
-
* The display name for the feature
|
|
427
|
+
* Body param: The display name for the feature
|
|
407
428
|
*/
|
|
408
429
|
displayName?: string;
|
|
409
430
|
/**
|
|
410
|
-
* The configuration data for the feature
|
|
431
|
+
* Body param: The configuration data for the feature
|
|
411
432
|
*/
|
|
412
433
|
enumConfiguration?: Array<FeatureUpdateFeatureParams.EnumConfiguration>;
|
|
413
434
|
/**
|
|
414
|
-
* The units for the feature
|
|
435
|
+
* Body param: The units for the feature
|
|
415
436
|
*/
|
|
416
437
|
featureUnits?: string;
|
|
417
438
|
/**
|
|
418
|
-
* The plural units for the feature
|
|
439
|
+
* Body param: The plural units for the feature
|
|
419
440
|
*/
|
|
420
441
|
featureUnitsPlural?: string;
|
|
421
442
|
/**
|
|
422
|
-
* The additional metadata for the feature
|
|
443
|
+
* Body param: The additional metadata for the feature
|
|
423
444
|
*/
|
|
424
445
|
metadata?: {
|
|
425
446
|
[key: string]: string;
|
|
426
447
|
};
|
|
448
|
+
/**
|
|
449
|
+
* Body param
|
|
450
|
+
*/
|
|
427
451
|
meter?: FeatureUpdateFeatureParams.Meter;
|
|
428
452
|
/**
|
|
429
|
-
* Unit transformation to be applied to the reported usage
|
|
453
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
430
454
|
*/
|
|
431
455
|
unitTransformation?: FeatureUpdateFeatureParams.UnitTransformation | null;
|
|
456
|
+
/**
|
|
457
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
458
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
459
|
+
*/
|
|
460
|
+
'X-ACCOUNT-ID'?: string;
|
|
461
|
+
/**
|
|
462
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
463
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
464
|
+
* intrinsic to the key).
|
|
465
|
+
*/
|
|
466
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
432
467
|
}
|
|
433
468
|
export declare namespace FeatureUpdateFeatureParams {
|
|
434
469
|
interface EnumConfiguration {
|
|
@@ -494,6 +529,6 @@ export declare namespace FeatureUpdateFeatureParams {
|
|
|
494
529
|
}
|
|
495
530
|
}
|
|
496
531
|
export declare namespace Features {
|
|
497
|
-
export { type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
532
|
+
export { type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureArchiveFeatureParams as FeatureArchiveFeatureParams, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureRetrieveFeatureParams as FeatureRetrieveFeatureParams, type FeatureUnarchiveFeatureParams as FeatureUnarchiveFeatureParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
498
533
|
}
|
|
499
534
|
//# sourceMappingURL=features.d.ts.map
|