@stigg/typescript 0.1.0-beta.20 → 0.1.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +145 -94
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +145 -94
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +110 -76
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +110 -76
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +62 -36
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +62 -36
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -39
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -39
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +81 -57
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +81 -57
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -45
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -45
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +60 -52
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +60 -52
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +36 -30
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +36 -30
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +98 -74
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +98 -74
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -61
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -61
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +63 -54
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +63 -54
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -33
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -33
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +2 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +2 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +167 -127
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +167 -127
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -96
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -96
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +66 -58
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +66 -58
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -56
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -56
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +33 -25
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +33 -25
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -20
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -20
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +42 -60
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +42 -60
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -57
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -57
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/data-export/data-export.d.mts +29 -21
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -1
- package/resources/v1/events/data-export/data-export.d.ts +29 -21
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -1
- package/resources/v1/events/data-export/data-export.js +27 -18
- package/resources/v1/events/data-export/data-export.js.map +1 -1
- package/resources/v1/events/data-export/data-export.mjs +27 -18
- package/resources/v1/events/data-export/data-export.mjs.map +1 -1
- package/resources/v1/events/data-export/destinations.d.mts +29 -22
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
- package/resources/v1/events/data-export/destinations.d.ts +29 -22
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
- package/resources/v1/events/data-export/destinations.js +26 -21
- package/resources/v1/events/data-export/destinations.js.map +1 -1
- package/resources/v1/events/data-export/destinations.mjs +26 -21
- package/resources/v1/events/data-export/destinations.mjs.map +1 -1
- package/resources/v1/events/data-export/index.d.mts +1 -1
- package/resources/v1/events/data-export/index.d.mts.map +1 -1
- package/resources/v1/events/data-export/index.d.ts +1 -1
- package/resources/v1/events/data-export/index.d.ts.map +1 -1
- package/resources/v1/events/data-export/index.js.map +1 -1
- package/resources/v1/events/data-export/index.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +13 -19
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +13 -19
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +14 -19
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +14 -19
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/events/index.d.mts +0 -1
- package/resources/v1/events/index.d.mts.map +1 -1
- package/resources/v1/events/index.d.ts +0 -1
- package/resources/v1/events/index.d.ts.map +1 -1
- package/resources/v1/events/index.js +3 -5
- package/resources/v1/events/index.js.map +1 -1
- package/resources/v1/events/index.mjs +0 -1
- package/resources/v1/events/index.mjs.map +1 -1
- package/resources/v1/features.d.mts +109 -74
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +109 -74
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -54
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -54
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +7 -7
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +7 -7
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +62 -36
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +62 -36
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -39
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -39
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +159 -106
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +159 -106
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +127 -89
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +127 -89
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +97 -66
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -66
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -54
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -54
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -19
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -19
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -20
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -20
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +15 -8
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -8
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -8
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -8
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +244 -161
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +244 -161
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -100
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -102
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -17
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -17
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -17
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -17
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +24 -26
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +24 -26
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -28
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -28
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +14 -14
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +14 -14
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +242 -0
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1-beta/customers/assignments.d.ts +242 -0
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1-beta/customers/assignments.js +84 -0
- package/resources/v1-beta/customers/assignments.js.map +1 -0
- package/resources/v1-beta/customers/assignments.mjs +80 -0
- package/resources/v1-beta/customers/assignments.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.d.mts +1 -1
- package/resources/v1-beta/customers/customers.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.d.ts +1 -1
- package/resources/v1-beta/customers/customers.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.js +2 -2
- package/resources/v1-beta/customers/customers.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.mjs +1 -1
- package/resources/v1-beta/customers/customers.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.d.mts +94 -47
- package/resources/v1-beta/customers/entities.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.d.ts +94 -47
- package/resources/v1-beta/customers/entities.d.ts.map +1 -0
- package/resources/v1-beta/customers/entities.js +150 -0
- package/resources/v1-beta/customers/entities.js.map +1 -0
- package/resources/v1-beta/customers/entities.mjs +146 -0
- package/resources/v1-beta/customers/entities.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.mts +27 -16
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.ts +27 -16
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1-beta/customers/entitlements.js +36 -0
- package/resources/v1-beta/customers/entitlements.js.map +1 -0
- package/resources/v1-beta/customers/entitlements.mjs +32 -0
- package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1-beta/customers/index.d.mts.map +1 -0
- package/resources/v1-beta/customers/index.d.ts.map +1 -0
- package/resources/v1-beta/customers/index.js.map +1 -0
- package/resources/v1-beta/customers/index.mjs.map +1 -0
- package/resources/v1-beta/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers.js +1 -1
- package/resources/v1-beta/customers.js.map +1 -0
- package/resources/v1-beta/customers.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.d.mts +44 -23
- package/resources/v1-beta/entity-types.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.d.ts +44 -23
- package/resources/v1-beta/entity-types.d.ts.map +1 -0
- package/resources/v1-beta/entity-types.js +75 -0
- package/resources/v1-beta/entity-types.js.map +1 -0
- package/resources/v1-beta/entity-types.mjs +71 -0
- package/resources/v1-beta/entity-types.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.d.mts +1 -1
- package/resources/v1-beta/index.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.d.ts +1 -1
- package/resources/v1-beta/index.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.js +3 -3
- package/resources/v1-beta/index.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.mjs +1 -1
- package/resources/v1-beta/index.mjs.map +1 -0
- package/resources/{v1/events/beta/beta.d.mts → v1-beta/v1-beta.d.mts} +4 -4
- package/resources/v1-beta/v1-beta.d.mts.map +1 -0
- package/resources/{v1/events/beta/beta.d.ts → v1-beta/v1-beta.d.ts} +4 -4
- package/resources/v1-beta/v1-beta.d.ts.map +1 -0
- package/resources/{v1/events/beta/beta.js → v1-beta/v1-beta.js} +8 -8
- package/resources/v1-beta/v1-beta.js.map +1 -0
- package/resources/{v1/events/beta/beta.mjs → v1-beta/v1-beta.mjs} +5 -5
- package/resources/v1-beta/v1-beta.mjs.map +1 -0
- package/resources/v1-beta.d.mts +2 -0
- package/resources/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta.d.ts +2 -0
- package/resources/v1-beta.d.ts.map +1 -0
- package/resources/{v1/events/beta.js → v1-beta.js} +3 -3
- package/resources/v1-beta.js.map +1 -0
- package/resources/{v1/events/beta.mjs → v1-beta.mjs} +2 -2
- package/resources/v1-beta.mjs.map +1 -0
- package/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +293 -105
- package/src/resources/v1/addons/entitlements.ts +123 -41
- package/src/resources/v1/addons/index.ts +5 -0
- package/src/resources/v1/coupons.ts +158 -63
- package/src/resources/v1/credits/credits.ts +103 -50
- package/src/resources/v1/credits/custom-currencies.ts +191 -82
- package/src/resources/v1/credits/grants.ts +104 -54
- package/src/resources/v1/credits/index.ts +4 -0
- package/src/resources/v1/customers/customers.ts +324 -140
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +129 -63
- package/src/resources/v1/customers/payment-method.ts +66 -25
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -62
- package/src/resources/v1/events/data-export/data-export.ts +58 -21
- package/src/resources/v1/events/data-export/destinations.ts +61 -23
- package/src/resources/v1/events/data-export/index.ts +1 -0
- package/src/resources/v1/events/events.ts +28 -22
- package/src/resources/v1/events/index.ts +0 -1
- package/src/resources/v1/features.ts +209 -82
- package/src/resources/v1/index.ts +19 -0
- package/src/resources/v1/plans/entitlements.ts +123 -41
- package/src/resources/v1/plans/index.ts +5 -0
- package/src/resources/v1/plans/plans.ts +321 -119
- package/src/resources/v1/products.ts +193 -74
- package/src/resources/v1/subscriptions/future-update.ts +68 -21
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -9
- package/src/resources/v1/subscriptions/subscriptions.ts +417 -173
- package/src/resources/v1/subscriptions/usage.ts +61 -18
- package/src/resources/v1/usage.ts +53 -29
- package/src/resources/v1/v1.ts +38 -0
- package/src/resources/v1-beta/customers/assignments.ts +328 -0
- package/src/resources/{v1/events/beta → v1-beta}/customers/customers.ts +1 -1
- package/src/resources/{v1/events/beta → v1-beta}/customers/entities.ts +165 -54
- package/src/resources/{v1/events/beta → v1-beta}/customers/entitlements.ts +43 -18
- package/src/resources/{v1/events/beta → v1-beta}/entity-types.ts +70 -25
- package/src/resources/{v1/events/beta → v1-beta}/index.ts +1 -1
- package/src/resources/{v1/events/beta/beta.ts → v1-beta/v1-beta.ts} +5 -5
- package/src/resources/{v1/events/beta.ts → v1-beta.ts} +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/events/beta/beta.d.mts.map +0 -1
- package/resources/v1/events/beta/beta.d.ts.map +0 -1
- package/resources/v1/events/beta/beta.js.map +0 -1
- package/resources/v1/events/beta/beta.mjs.map +0 -1
- package/resources/v1/events/beta/customers/assignments.d.mts +0 -178
- package/resources/v1/events/beta/customers/assignments.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/assignments.d.ts +0 -178
- package/resources/v1/events/beta/customers/assignments.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/assignments.js +0 -62
- package/resources/v1/events/beta/customers/assignments.js.map +0 -1
- package/resources/v1/events/beta/customers/assignments.mjs +0 -58
- package/resources/v1/events/beta/customers/assignments.mjs.map +0 -1
- package/resources/v1/events/beta/customers/customers.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/customers.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/customers.js.map +0 -1
- package/resources/v1/events/beta/customers/customers.mjs.map +0 -1
- package/resources/v1/events/beta/customers/entities.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/entities.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/entities.js +0 -105
- package/resources/v1/events/beta/customers/entities.js.map +0 -1
- package/resources/v1/events/beta/customers/entities.mjs +0 -101
- package/resources/v1/events/beta/customers/entities.mjs.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.js +0 -26
- package/resources/v1/events/beta/customers/entitlements.js.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.mjs +0 -22
- package/resources/v1/events/beta/customers/entitlements.mjs.map +0 -1
- package/resources/v1/events/beta/customers/index.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/index.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/index.js.map +0 -1
- package/resources/v1/events/beta/customers/index.mjs.map +0 -1
- package/resources/v1/events/beta/customers.d.mts.map +0 -1
- package/resources/v1/events/beta/customers.d.ts.map +0 -1
- package/resources/v1/events/beta/customers.js.map +0 -1
- package/resources/v1/events/beta/customers.mjs.map +0 -1
- package/resources/v1/events/beta/entity-types.d.mts.map +0 -1
- package/resources/v1/events/beta/entity-types.d.ts.map +0 -1
- package/resources/v1/events/beta/entity-types.js +0 -56
- package/resources/v1/events/beta/entity-types.js.map +0 -1
- package/resources/v1/events/beta/entity-types.mjs +0 -52
- package/resources/v1/events/beta/entity-types.mjs.map +0 -1
- package/resources/v1/events/beta/index.d.mts.map +0 -1
- package/resources/v1/events/beta/index.d.ts.map +0 -1
- package/resources/v1/events/beta/index.js.map +0 -1
- package/resources/v1/events/beta/index.mjs.map +0 -1
- package/resources/v1/events/beta.d.mts +0 -2
- package/resources/v1/events/beta.d.mts.map +0 -1
- package/resources/v1/events/beta.d.ts +0 -2
- package/resources/v1/events/beta.d.ts.map +0 -1
- package/resources/v1/events/beta.js.map +0 -1
- package/resources/v1/events/beta.mjs.map +0 -1
- package/src/resources/v1/events/beta/customers/assignments.ts +0 -228
- /package/resources/{v1/events/beta → v1-beta}/customers/index.d.mts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.d.ts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.js +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.mjs +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.d.mts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.d.ts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.mjs +0 -0
- /package/src/resources/{v1/events/beta → v1-beta}/customers/index.ts +0 -0
- /package/src/resources/{v1/events/beta → v1-beta}/customers.ts +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import { APIPromise } from '
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
7
8
|
|
|
8
9
|
export class Entitlements extends APIResource {
|
|
9
10
|
/**
|
|
@@ -14,17 +15,26 @@ export class Entitlements extends APIResource {
|
|
|
14
15
|
* @example
|
|
15
16
|
* ```ts
|
|
16
17
|
* const response =
|
|
17
|
-
* await client.
|
|
18
|
-
* 'x',
|
|
19
|
-
* );
|
|
18
|
+
* await client.v1Beta.customers.entitlements.check('x');
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
21
|
check(
|
|
23
22
|
id: string,
|
|
24
|
-
|
|
23
|
+
params: EntitlementCheckParams | null | undefined = {},
|
|
25
24
|
options?: RequestOptions,
|
|
26
25
|
): APIPromise<EntitlementCheckResponse> {
|
|
27
|
-
|
|
26
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
27
|
+
return this._client.get(path`/api/v1-beta/customers/${id}/entitlements/check`, {
|
|
28
|
+
query,
|
|
29
|
+
...options,
|
|
30
|
+
headers: buildHeaders([
|
|
31
|
+
{
|
|
32
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
33
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
34
|
+
},
|
|
35
|
+
options?.headers,
|
|
36
|
+
]),
|
|
37
|
+
});
|
|
28
38
|
}
|
|
29
39
|
}
|
|
30
40
|
|
|
@@ -286,37 +296,52 @@ export namespace EntitlementCheckResponse {
|
|
|
286
296
|
|
|
287
297
|
export interface EntitlementCheckParams {
|
|
288
298
|
/**
|
|
289
|
-
* Currency ID (refId) to check for credit entitlements. Mutually
|
|
290
|
-
* `featureId`.
|
|
299
|
+
* Query param: Currency ID (refId) to check for credit entitlements. Mutually
|
|
300
|
+
* exclusive with `featureId`.
|
|
291
301
|
*/
|
|
292
302
|
currencyId?: string;
|
|
293
303
|
|
|
294
304
|
/**
|
|
295
|
-
* Optional attribution map (e.g. `dimensions[userId]=u1`). When
|
|
296
|
-
* response includes a `chains` array with per-entity governance
|
|
305
|
+
* Query param: Optional attribution map (e.g. `dimensions[userId]=u1`). When
|
|
306
|
+
* provided, the response includes a `chains` array with per-entity governance
|
|
307
|
+
* limits.
|
|
297
308
|
*/
|
|
298
309
|
dimensions?: { [key: string]: string };
|
|
299
310
|
|
|
300
311
|
/**
|
|
301
|
-
* Feature ID (refId) to check. Mutually exclusive with `currencyId`.
|
|
312
|
+
* Query param: Feature ID (refId) to check. Mutually exclusive with `currencyId`.
|
|
302
313
|
*/
|
|
303
314
|
featureId?: string;
|
|
304
315
|
|
|
305
316
|
/**
|
|
306
|
-
* Requested usage amount to evaluate against the entitlement limit
|
|
307
|
-
* features only)
|
|
317
|
+
* Query param: Requested usage amount to evaluate against the entitlement limit
|
|
318
|
+
* (numeric features only)
|
|
308
319
|
*/
|
|
309
320
|
requestedUsage?: number;
|
|
310
321
|
|
|
311
322
|
/**
|
|
312
|
-
* Requested values to evaluate against allowed values (enum features
|
|
323
|
+
* Query param: Requested values to evaluate against allowed values (enum features
|
|
324
|
+
* only)
|
|
313
325
|
*/
|
|
314
326
|
requestedValues?: Array<string>;
|
|
315
327
|
|
|
316
328
|
/**
|
|
317
|
-
* Resource ID to scope the entitlement check to a specific resource
|
|
329
|
+
* Query param: Resource ID to scope the entitlement check to a specific resource
|
|
318
330
|
*/
|
|
319
331
|
resourceId?: string;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
335
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
336
|
+
*/
|
|
337
|
+
'X-ACCOUNT-ID'?: string;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
341
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
342
|
+
* intrinsic to the key).
|
|
343
|
+
*/
|
|
344
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
320
345
|
}
|
|
321
346
|
|
|
322
347
|
export declare namespace Entitlements {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import { APIPromise } from '
|
|
5
|
-
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '
|
|
6
|
-
import {
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
8
|
|
|
8
9
|
export class EntityTypes extends APIResource {
|
|
9
10
|
/**
|
|
@@ -14,18 +15,26 @@ export class EntityTypes extends APIResource {
|
|
|
14
15
|
* @example
|
|
15
16
|
* ```ts
|
|
16
17
|
* // Automatically fetches more pages as needed.
|
|
17
|
-
* for await (const entityTypeListResponse of client.
|
|
18
|
+
* for await (const entityTypeListResponse of client.v1Beta.entityTypes.list()) {
|
|
18
19
|
* // ...
|
|
19
20
|
* }
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
23
|
list(
|
|
23
|
-
|
|
24
|
+
params: EntityTypeListParams | null | undefined = {},
|
|
24
25
|
options?: RequestOptions,
|
|
25
26
|
): PagePromise<EntityTypeListResponsesMyCursorIDPage, EntityTypeListResponse> {
|
|
27
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
26
28
|
return this._client.getAPIList('/api/v1-beta/entity-types', MyCursorIDPage<EntityTypeListResponse>, {
|
|
27
29
|
query,
|
|
28
30
|
...options,
|
|
31
|
+
headers: buildHeaders([
|
|
32
|
+
{
|
|
33
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
34
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
35
|
+
},
|
|
36
|
+
options?.headers,
|
|
37
|
+
]),
|
|
29
38
|
});
|
|
30
39
|
}
|
|
31
40
|
|
|
@@ -36,25 +45,35 @@ export class EntityTypes extends APIResource {
|
|
|
36
45
|
*
|
|
37
46
|
* @example
|
|
38
47
|
* ```ts
|
|
39
|
-
* const response =
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* });
|
|
48
|
+
* const response = await client.v1Beta.entityTypes.upsert({
|
|
49
|
+
* types: [
|
|
50
|
+
* {
|
|
51
|
+
* id: 'org',
|
|
52
|
+
* displayName: 'Organization',
|
|
53
|
+
* attributionKeys: ['organizationId'],
|
|
54
|
+
* },
|
|
55
|
+
* {
|
|
56
|
+
* id: 'team',
|
|
57
|
+
* displayName: 'Team',
|
|
58
|
+
* attributionKeys: ['teamId'],
|
|
59
|
+
* },
|
|
60
|
+
* ],
|
|
61
|
+
* });
|
|
54
62
|
* ```
|
|
55
63
|
*/
|
|
56
|
-
upsert(
|
|
57
|
-
|
|
64
|
+
upsert(params: EntityTypeUpsertParams, options?: RequestOptions): APIPromise<EntityTypeUpsertResponse> {
|
|
65
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
66
|
+
return this._client.put('/api/v1-beta/entity-types', {
|
|
67
|
+
body,
|
|
68
|
+
...options,
|
|
69
|
+
headers: buildHeaders([
|
|
70
|
+
{
|
|
71
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
72
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
73
|
+
},
|
|
74
|
+
options?.headers,
|
|
75
|
+
]),
|
|
76
|
+
});
|
|
58
77
|
}
|
|
59
78
|
}
|
|
60
79
|
|
|
@@ -137,13 +156,39 @@ export namespace EntityTypeUpsertResponse {
|
|
|
137
156
|
}
|
|
138
157
|
}
|
|
139
158
|
|
|
140
|
-
export interface EntityTypeListParams extends MyCursorIDPageParams {
|
|
159
|
+
export interface EntityTypeListParams extends MyCursorIDPageParams {
|
|
160
|
+
/**
|
|
161
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
162
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
163
|
+
*/
|
|
164
|
+
'X-ACCOUNT-ID'?: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
168
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
169
|
+
* intrinsic to the key).
|
|
170
|
+
*/
|
|
171
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
172
|
+
}
|
|
141
173
|
|
|
142
174
|
export interface EntityTypeUpsertParams {
|
|
143
175
|
/**
|
|
144
|
-
* Entity types to upsert (1–100 per request)
|
|
176
|
+
* Body param: Entity types to upsert (1–100 per request)
|
|
145
177
|
*/
|
|
146
178
|
types: Array<EntityTypeUpsertParams.Type>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
182
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
183
|
+
*/
|
|
184
|
+
'X-ACCOUNT-ID'?: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
188
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
189
|
+
* intrinsic to the key).
|
|
190
|
+
*/
|
|
191
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
147
192
|
}
|
|
148
193
|
|
|
149
194
|
export namespace EntityTypeUpsertParams {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Beta } from './beta';
|
|
4
3
|
export { Customers } from './customers/index';
|
|
5
4
|
export {
|
|
6
5
|
EntityTypes,
|
|
@@ -10,3 +9,4 @@ export {
|
|
|
10
9
|
type EntityTypeUpsertParams,
|
|
11
10
|
type EntityTypeListResponsesMyCursorIDPage,
|
|
12
11
|
} from './entity-types';
|
|
12
|
+
export { V1Beta } from './v1-beta';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as EntityTypesAPI from './entity-types';
|
|
5
5
|
import {
|
|
6
6
|
EntityTypeListParams,
|
|
@@ -13,15 +13,15 @@ import {
|
|
|
13
13
|
import * as CustomersAPI from './customers/customers';
|
|
14
14
|
import { Customers } from './customers/customers';
|
|
15
15
|
|
|
16
|
-
export class
|
|
16
|
+
export class V1Beta extends APIResource {
|
|
17
17
|
customers: CustomersAPI.Customers = new CustomersAPI.Customers(this._client);
|
|
18
18
|
entityTypes: EntityTypesAPI.EntityTypes = new EntityTypesAPI.EntityTypes(this._client);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
V1Beta.Customers = Customers;
|
|
22
|
+
V1Beta.EntityTypes = EntityTypes;
|
|
23
23
|
|
|
24
|
-
export declare namespace
|
|
24
|
+
export declare namespace V1Beta {
|
|
25
25
|
export { Customers as Customers };
|
|
26
26
|
|
|
27
27
|
export {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.22'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-beta.
|
|
1
|
+
export declare const VERSION = "0.1.0-beta.22";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-beta.
|
|
1
|
+
export declare const VERSION = "0.1.0-beta.22";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-beta.
|
|
4
|
+
exports.VERSION = '0.1.0-beta.22'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.22'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"beta.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,cAAc,2BAAuB;AACjD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qCAAqC,EACrC,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACZ,2BAAuB;AACxB,OAAO,KAAK,YAAY,kCAA8B;AACtD,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAElD,qBAAa,IAAK,SAAQ,WAAW;IACnC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,CAAC;IAElC,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,cAAc,0BAAuB;AACjD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qCAAqC,EACrC,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACZ,0BAAuB;AACxB,OAAO,KAAK,YAAY,iCAA8B;AACtD,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAElD,qBAAa,IAAK,SAAQ,WAAW;IACnC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,CAAC;IAElC,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"beta.js","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,2DAAwD;AACxD,0EAAiD;AACjD,oDAOwB;AACxB,+EAAsD;AACtD,wDAAkD;AAElD,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAHD,oBAGC;AAED,IAAI,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC3B,IAAI,CAAC,WAAW,GAAG,0BAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"beta.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,cAAc,2BAAuB;AACjD,OAAO,EAML,WAAW,GACZ,2BAAuB;AACxB,OAAO,KAAK,YAAY,kCAA8B;AACtD,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAElD,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAED,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;AAC3B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../../../core/api-promise.mjs";
|
|
3
|
-
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../../../core/pagination.mjs";
|
|
4
|
-
import { RequestOptions } from "../../../../../internal/request-options.mjs";
|
|
5
|
-
export declare class Assignments extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Returns a cursor-paginated list of capability assignments for the given
|
|
8
|
-
* customer. An assignment ties an entity to a capability with a usage limit and
|
|
9
|
-
* reset cadence.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* // Automatically fetches more pages as needed.
|
|
14
|
-
* for await (const assignmentListResponse of client.v1.events.beta.customers.assignments.list(
|
|
15
|
-
* 'id',
|
|
16
|
-
* )) {
|
|
17
|
-
* // ...
|
|
18
|
-
* }
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
list(id: string, query?: AssignmentListParams | null | undefined, options?: RequestOptions): PagePromise<AssignmentListResponsesMyCursorIDPage, AssignmentListResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Batched create-or-update of capability assignments. Existing assignments matched
|
|
24
|
-
* by (entityId, capabilityId) are updated; new pairs are created. On update,
|
|
25
|
-
* omitted fields (usageLimit, cadence) are preserved; on create both are required
|
|
26
|
-
* by the governance service.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const response =
|
|
31
|
-
* await client.v1.events.beta.customers.assignments.upsert(
|
|
32
|
-
* 'id',
|
|
33
|
-
* {
|
|
34
|
-
* assignments: [
|
|
35
|
-
* {
|
|
36
|
-
* entityId: 'workspace-001',
|
|
37
|
-
* capabilityId: 'compute-minutes',
|
|
38
|
-
* usageLimit: 1000,
|
|
39
|
-
* cadence: 'MONTH',
|
|
40
|
-
* },
|
|
41
|
-
* {
|
|
42
|
-
* entityId: 'workspace-002',
|
|
43
|
-
* capabilityId: 'compute-minutes',
|
|
44
|
-
* usageLimit: 2000,
|
|
45
|
-
* cadence: 'MONTH',
|
|
46
|
-
* },
|
|
47
|
-
* ],
|
|
48
|
-
* },
|
|
49
|
-
* );
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
upsert(id: string, body: AssignmentUpsertParams, options?: RequestOptions): APIPromise<AssignmentUpsertResponse>;
|
|
53
|
-
}
|
|
54
|
-
export type AssignmentListResponsesMyCursorIDPage = MyCursorIDPage<AssignmentListResponse>;
|
|
55
|
-
/**
|
|
56
|
-
* A capability assignment for an entity belonging to a customer. Defines how much
|
|
57
|
-
* of the capability the entity may consume (`usageLimit`) and how often the
|
|
58
|
-
* counter resets (`cadence`).
|
|
59
|
-
*/
|
|
60
|
-
export interface AssignmentListResponse {
|
|
61
|
-
/**
|
|
62
|
-
* Synthetic UUID identifier — also the cursor anchor for paginated lists
|
|
63
|
-
*/
|
|
64
|
-
id: string;
|
|
65
|
-
/**
|
|
66
|
-
* Usage-reset cadence. Currently only `MONTH` is supported
|
|
67
|
-
*/
|
|
68
|
-
cadence: 'MONTH';
|
|
69
|
-
/**
|
|
70
|
-
* The capability refId this assignment grants
|
|
71
|
-
*/
|
|
72
|
-
capabilityId: string;
|
|
73
|
-
/**
|
|
74
|
-
* Timestamp of when the record was created
|
|
75
|
-
*/
|
|
76
|
-
createdAt: string;
|
|
77
|
-
/**
|
|
78
|
-
* The entity refId this assignment is attached to
|
|
79
|
-
*/
|
|
80
|
-
entityId: string;
|
|
81
|
-
/**
|
|
82
|
-
* Timestamp of when the record was last updated
|
|
83
|
-
*/
|
|
84
|
-
updatedAt: string;
|
|
85
|
-
/**
|
|
86
|
-
* Maximum usage allowed within one cadence window
|
|
87
|
-
*/
|
|
88
|
-
usageLimit: number;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Assignments after upsert.
|
|
92
|
-
*/
|
|
93
|
-
export interface AssignmentUpsertResponse {
|
|
94
|
-
data: Array<AssignmentUpsertResponse.Data>;
|
|
95
|
-
}
|
|
96
|
-
export declare namespace AssignmentUpsertResponse {
|
|
97
|
-
/**
|
|
98
|
-
* A capability assignment for an entity belonging to a customer. Defines how much
|
|
99
|
-
* of the capability the entity may consume (`usageLimit`) and how often the
|
|
100
|
-
* counter resets (`cadence`).
|
|
101
|
-
*/
|
|
102
|
-
interface Data {
|
|
103
|
-
/**
|
|
104
|
-
* Synthetic UUID identifier — also the cursor anchor for paginated lists
|
|
105
|
-
*/
|
|
106
|
-
id: string;
|
|
107
|
-
/**
|
|
108
|
-
* Usage-reset cadence. Currently only `MONTH` is supported
|
|
109
|
-
*/
|
|
110
|
-
cadence: 'MONTH';
|
|
111
|
-
/**
|
|
112
|
-
* The capability refId this assignment grants
|
|
113
|
-
*/
|
|
114
|
-
capabilityId: string;
|
|
115
|
-
/**
|
|
116
|
-
* Timestamp of when the record was created
|
|
117
|
-
*/
|
|
118
|
-
createdAt: string;
|
|
119
|
-
/**
|
|
120
|
-
* The entity refId this assignment is attached to
|
|
121
|
-
*/
|
|
122
|
-
entityId: string;
|
|
123
|
-
/**
|
|
124
|
-
* Timestamp of when the record was last updated
|
|
125
|
-
*/
|
|
126
|
-
updatedAt: string;
|
|
127
|
-
/**
|
|
128
|
-
* Maximum usage allowed within one cadence window
|
|
129
|
-
*/
|
|
130
|
-
usageLimit: number;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
export interface AssignmentListParams extends MyCursorIDPageParams {
|
|
134
|
-
/**
|
|
135
|
-
* Filter assignments to a specific capability refId
|
|
136
|
-
*/
|
|
137
|
-
capabilityId?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Filter assignments to a specific entity refId
|
|
140
|
-
*/
|
|
141
|
-
entityId?: string;
|
|
142
|
-
}
|
|
143
|
-
export interface AssignmentUpsertParams {
|
|
144
|
-
/**
|
|
145
|
-
* Assignments to upsert (1–100 per request)
|
|
146
|
-
*/
|
|
147
|
-
assignments: Array<AssignmentUpsertParams.Assignment>;
|
|
148
|
-
}
|
|
149
|
-
export declare namespace AssignmentUpsertParams {
|
|
150
|
-
/**
|
|
151
|
-
* A single assignment to create or update. The natural key is the
|
|
152
|
-
* `(entityId, capabilityId)` pair. On create both `usageLimit` and `cadence` are
|
|
153
|
-
* required; on update they may be omitted individually to preserve the existing
|
|
154
|
-
* value.
|
|
155
|
-
*/
|
|
156
|
-
interface Assignment {
|
|
157
|
-
/**
|
|
158
|
-
* The capability refId this assignment grants
|
|
159
|
-
*/
|
|
160
|
-
capabilityId: string;
|
|
161
|
-
/**
|
|
162
|
-
* The entity refId this assignment is attached to
|
|
163
|
-
*/
|
|
164
|
-
entityId: string;
|
|
165
|
-
/**
|
|
166
|
-
* Usage-reset cadence (required on create). Currently only `MONTH` is supported
|
|
167
|
-
*/
|
|
168
|
-
cadence?: 'MONTH';
|
|
169
|
-
/**
|
|
170
|
-
* Maximum usage allowed within one cadence window (required on create)
|
|
171
|
-
*/
|
|
172
|
-
usageLimit?: number;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
export declare namespace Assignments {
|
|
176
|
-
export { type AssignmentListResponse as AssignmentListResponse, type AssignmentUpsertResponse as AssignmentUpsertResponse, type AssignmentListResponsesMyCursorIDPage as AssignmentListResponsesMyCursorIDPage, type AssignmentListParams as AssignmentListParams, type AssignmentUpsertParams as AssignmentUpsertParams, };
|
|
177
|
-
}
|
|
178
|
-
//# sourceMappingURL=assignments.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignments.d.mts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/assignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,4CAAwC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,2CAAuC;AACxG,OAAO,EAAE,cAAc,EAAE,oDAAgD;AAGzE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,sBAAsB,CAAC;IAQ7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAGxC;AAED,MAAM,MAAM,qCAAqC,GAAG,cAAc,CAAC,sBAAsB,CAAC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;CAC5C;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;;;OAIG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;QAEjB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;CACvD;AAED,yBAAiB,sBAAsB,CAAC;IACtC;;;;;OAKG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|