@stigg/typescript 0.1.0-beta.21 → 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 +8 -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 +0 -59
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +0 -59
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +0 -59
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +0 -59
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +0 -31
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +0 -31
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +0 -31
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +0 -31
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +0 -36
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +0 -36
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +0 -36
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +0 -36
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +0 -25
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +0 -25
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +0 -25
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +0 -25
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +0 -49
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +0 -49
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +0 -49
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +0 -49
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +0 -28
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +0 -28
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +0 -28
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +0 -28
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +0 -77
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +0 -77
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +0 -77
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +0 -77
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +0 -47
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +0 -47
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +0 -47
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +0 -47
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +0 -16
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +0 -16
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +0 -16
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +0 -16
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +0 -51
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +0 -51
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +0 -51
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +0 -51
- 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 +0 -17
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +0 -17
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +0 -17
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +0 -17
- 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 +0 -43
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +0 -43
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +0 -43
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +0 -43
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +0 -31
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +0 -31
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +0 -31
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +0 -31
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +0 -69
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +0 -69
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +0 -69
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +0 -69
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +0 -43
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +0 -43
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +0 -43
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +0 -43
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +0 -16
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +0 -16
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +0 -16
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +0 -16
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +0 -6
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +0 -6
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +0 -6
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +0 -6
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +0 -81
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +0 -81
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +0 -81
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +0 -81
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +0 -13
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +0 -13
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +0 -13
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +0 -13
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +0 -24
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +0 -24
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +0 -24
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +0 -24
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.d.mts +82 -40
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.d.ts +82 -40
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.js +23 -24
- package/resources/v1-beta/customers/assignments.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/assignments.mjs +23 -24
- 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 +28 -37
- package/resources/v1-beta/customers/entities.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.d.ts +28 -37
- package/resources/v1-beta/customers/entities.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.js +28 -37
- package/resources/v1-beta/customers/entities.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.mjs +28 -37
- package/resources/v1-beta/customers/entities.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.mts +4 -6
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.ts +4 -6
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.js +4 -6
- package/resources/v1-beta/customers/entitlements.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.mjs +4 -6
- 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 +19 -20
- package/resources/v1-beta/entity-types.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.d.ts +19 -20
- package/resources/v1-beta/entity-types.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.js +18 -19
- package/resources/v1-beta/entity-types.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.mjs +18 -19
- 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 +0 -59
- package/src/resources/v1/addons/entitlements.ts +0 -31
- package/src/resources/v1/coupons.ts +0 -36
- package/src/resources/v1/credits/credits.ts +0 -25
- package/src/resources/v1/credits/custom-currencies.ts +0 -49
- package/src/resources/v1/credits/grants.ts +0 -28
- package/src/resources/v1/customers/customers.ts +0 -77
- package/src/resources/v1/customers/integrations.ts +0 -47
- package/src/resources/v1/customers/payment-method.ts +0 -16
- package/src/resources/v1/customers/promotional-entitlements.ts +0 -51
- 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 +0 -19
- package/src/resources/v1/events/index.ts +0 -1
- package/src/resources/v1/features.ts +0 -43
- package/src/resources/v1/plans/entitlements.ts +0 -31
- package/src/resources/v1/plans/plans.ts +0 -69
- package/src/resources/v1/products.ts +0 -43
- package/src/resources/v1/subscriptions/future-update.ts +0 -16
- package/src/resources/v1/subscriptions/invoice.ts +0 -6
- package/src/resources/v1/subscriptions/subscriptions.ts +0 -81
- package/src/resources/v1/subscriptions/usage.ts +0 -13
- package/src/resources/v1/usage.ts +0 -24
- package/src/resources/{v1/events/beta → v1-beta}/customers/assignments.ts +96 -45
- package/src/resources/{v1/events/beta → v1-beta}/customers/customers.ts +1 -1
- package/src/resources/{v1/events/beta → v1-beta}/customers/entities.ts +30 -39
- package/src/resources/{v1/events/beta → v1-beta}/customers/entitlements.ts +6 -8
- package/src/resources/{v1/events/beta → v1-beta}/entity-types.ts +20 -21
- 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.map +0 -1
- package/resources/v1/events/beta/customers/assignments.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/assignments.js.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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/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
|
@@ -32,13 +32,6 @@ export class Subscriptions extends APIResource {
|
|
|
32
32
|
/**
|
|
33
33
|
* Retrieves a subscription by its unique identifier, including plan details,
|
|
34
34
|
* billing period, status, and add-ons.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const subscription = await client.v1.subscriptions.retrieve(
|
|
39
|
-
* 'x',
|
|
40
|
-
* );
|
|
41
|
-
* ```
|
|
42
35
|
*/
|
|
43
36
|
retrieve(
|
|
44
37
|
id: string,
|
|
@@ -61,13 +54,6 @@ export class Subscriptions extends APIResource {
|
|
|
61
54
|
/**
|
|
62
55
|
* Updates an active subscription's properties including billing period, add-ons,
|
|
63
56
|
* unit quantities, and discounts.
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```ts
|
|
67
|
-
* const subscription = await client.v1.subscriptions.update(
|
|
68
|
-
* 'x',
|
|
69
|
-
* );
|
|
70
|
-
* ```
|
|
71
57
|
*/
|
|
72
58
|
update(id: string, params: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
73
59
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -87,14 +73,6 @@ export class Subscriptions extends APIResource {
|
|
|
87
73
|
/**
|
|
88
74
|
* Retrieves a paginated list of subscriptions, with optional filters for customer,
|
|
89
75
|
* status, and plan.
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```ts
|
|
93
|
-
* // Automatically fetches more pages as needed.
|
|
94
|
-
* for await (const subscriptionListResponse of client.v1.subscriptions.list()) {
|
|
95
|
-
* // ...
|
|
96
|
-
* }
|
|
97
|
-
* ```
|
|
98
76
|
*/
|
|
99
77
|
list(
|
|
100
78
|
params: SubscriptionListParams | null | undefined = {},
|
|
@@ -117,13 +95,6 @@ export class Subscriptions extends APIResource {
|
|
|
117
95
|
/**
|
|
118
96
|
* Cancels an active subscription, either immediately or at a specified time such
|
|
119
97
|
* as end of billing period.
|
|
120
|
-
*
|
|
121
|
-
* @example
|
|
122
|
-
* ```ts
|
|
123
|
-
* const subscription = await client.v1.subscriptions.cancel(
|
|
124
|
-
* 'x',
|
|
125
|
-
* );
|
|
126
|
-
* ```
|
|
127
98
|
*/
|
|
128
99
|
cancel(id: string, params: SubscriptionCancelParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
129
100
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -143,14 +114,6 @@ export class Subscriptions extends APIResource {
|
|
|
143
114
|
/**
|
|
144
115
|
* Delegates the payment responsibility of a subscription to a different customer.
|
|
145
116
|
* The delegated customer will be billed for this subscription.
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
* ```ts
|
|
149
|
-
* const subscription = await client.v1.subscriptions.delegate(
|
|
150
|
-
* 'x',
|
|
151
|
-
* { targetCustomerId: 'targetCustomerId' },
|
|
152
|
-
* );
|
|
153
|
-
* ```
|
|
154
117
|
*/
|
|
155
118
|
delegate(
|
|
156
119
|
id: string,
|
|
@@ -174,19 +137,6 @@ export class Subscriptions extends APIResource {
|
|
|
174
137
|
/**
|
|
175
138
|
* Imports multiple subscriptions in bulk. Used for migrating subscription data
|
|
176
139
|
* from external systems.
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* ```ts
|
|
180
|
-
* const response = await client.v1.subscriptions.import({
|
|
181
|
-
* subscriptions: [
|
|
182
|
-
* {
|
|
183
|
-
* id: 'id',
|
|
184
|
-
* customerId: 'customerId',
|
|
185
|
-
* planId: 'planId',
|
|
186
|
-
* },
|
|
187
|
-
* ],
|
|
188
|
-
* });
|
|
189
|
-
* ```
|
|
190
140
|
*/
|
|
191
141
|
import(params: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse> {
|
|
192
142
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -206,13 +156,6 @@ export class Subscriptions extends APIResource {
|
|
|
206
156
|
/**
|
|
207
157
|
* Migrates a subscription to the latest published version of its plan or add-ons.
|
|
208
158
|
* Handles prorated charges or credits automatically.
|
|
209
|
-
*
|
|
210
|
-
* @example
|
|
211
|
-
* ```ts
|
|
212
|
-
* const subscription = await client.v1.subscriptions.migrate(
|
|
213
|
-
* 'x',
|
|
214
|
-
* );
|
|
215
|
-
* ```
|
|
216
159
|
*/
|
|
217
160
|
migrate(id: string, params: SubscriptionMigrateParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
218
161
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -232,14 +175,6 @@ export class Subscriptions extends APIResource {
|
|
|
232
175
|
/**
|
|
233
176
|
* Previews the pricing impact of creating or updating a subscription without
|
|
234
177
|
* making changes. Returns estimated costs, taxes, and proration details.
|
|
235
|
-
*
|
|
236
|
-
* @example
|
|
237
|
-
* ```ts
|
|
238
|
-
* const response = await client.v1.subscriptions.preview({
|
|
239
|
-
* customerId: 'customerId',
|
|
240
|
-
* planId: 'planId',
|
|
241
|
-
* });
|
|
242
|
-
* ```
|
|
243
178
|
*/
|
|
244
179
|
preview(
|
|
245
180
|
params: SubscriptionPreviewParams,
|
|
@@ -262,14 +197,6 @@ export class Subscriptions extends APIResource {
|
|
|
262
197
|
/**
|
|
263
198
|
* Creates a new subscription for an existing customer. When payment is required
|
|
264
199
|
* and no payment method exists, returns a checkout URL.
|
|
265
|
-
*
|
|
266
|
-
* @example
|
|
267
|
-
* ```ts
|
|
268
|
-
* const response = await client.v1.subscriptions.provision({
|
|
269
|
-
* customerId: 'customerId',
|
|
270
|
-
* planId: 'planId',
|
|
271
|
-
* });
|
|
272
|
-
* ```
|
|
273
200
|
*/
|
|
274
201
|
provision(
|
|
275
202
|
params: SubscriptionProvisionParams,
|
|
@@ -292,14 +219,6 @@ export class Subscriptions extends APIResource {
|
|
|
292
219
|
/**
|
|
293
220
|
* Transfers a subscription to a different resource ID. Used for multi-resource
|
|
294
221
|
* products where subscriptions apply to specific entities like websites or apps.
|
|
295
|
-
*
|
|
296
|
-
* @example
|
|
297
|
-
* ```ts
|
|
298
|
-
* const subscription = await client.v1.subscriptions.transfer(
|
|
299
|
-
* 'x',
|
|
300
|
-
* { destinationResourceId: 'destinationResourceId' },
|
|
301
|
-
* );
|
|
302
|
-
* ```
|
|
303
222
|
*/
|
|
304
223
|
transfer(
|
|
305
224
|
id: string,
|
|
@@ -13,12 +13,6 @@ export class Usage extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Immediately charges usage for a subscription via the billing integration.
|
|
15
15
|
* Calculates usage since the last charge and creates an invoice.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const response =
|
|
20
|
-
* await client.v1.subscriptions.usage.chargeUsage('x');
|
|
21
|
-
* ```
|
|
22
16
|
*/
|
|
23
17
|
chargeUsage(
|
|
24
18
|
id: string,
|
|
@@ -42,13 +36,6 @@ export class Usage extends APIResource {
|
|
|
42
36
|
/**
|
|
43
37
|
* Triggers a usage sync for a subscription, reporting current usage to the billing
|
|
44
38
|
* provider.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const response = await client.v1.subscriptions.usage.sync(
|
|
49
|
-
* 'x',
|
|
50
|
-
* );
|
|
51
|
-
* ```
|
|
52
39
|
*/
|
|
53
40
|
sync(
|
|
54
41
|
id: string,
|
|
@@ -12,17 +12,6 @@ import { path } from '../../internal/utils/path';
|
|
|
12
12
|
export class Usage extends APIResource {
|
|
13
13
|
/**
|
|
14
14
|
* Retrieves historical usage data for a customer's metered feature over time.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const response = await client.v1.usage.history(
|
|
19
|
-
* 'featureId',
|
|
20
|
-
* {
|
|
21
|
-
* customerId: 'customerId',
|
|
22
|
-
* startDate: '2019-12-27T18:11:19.117Z',
|
|
23
|
-
* },
|
|
24
|
-
* );
|
|
25
|
-
* ```
|
|
26
15
|
*/
|
|
27
16
|
history(
|
|
28
17
|
featureID: string,
|
|
@@ -46,19 +35,6 @@ export class Usage extends APIResource {
|
|
|
46
35
|
/**
|
|
47
36
|
* Reports usage measurements for metered features. The reported usage is used to
|
|
48
37
|
* track, limit, and bill customer consumption.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```ts
|
|
52
|
-
* const response = await client.v1.usage.report({
|
|
53
|
-
* usages: [
|
|
54
|
-
* {
|
|
55
|
-
* customerId: 'customerId',
|
|
56
|
-
* featureId: 'featureId',
|
|
57
|
-
* value: -9007199254740991,
|
|
58
|
-
* },
|
|
59
|
-
* ],
|
|
60
|
-
* });
|
|
61
|
-
* ```
|
|
62
38
|
*/
|
|
63
39
|
report(params: UsageReportParams, options?: RequestOptions): APIPromise<UsageReportResponse> {
|
|
64
40
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { buildHeaders } from '
|
|
7
|
-
import { RequestOptions } from '
|
|
8
|
-
import { path } from '
|
|
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';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class Assignments extends APIResource {
|
|
11
11
|
/**
|
|
@@ -16,7 +16,7 @@ export class Assignments extends APIResource {
|
|
|
16
16
|
* @example
|
|
17
17
|
* ```ts
|
|
18
18
|
* // Automatically fetches more pages as needed.
|
|
19
|
-
* for await (const assignmentListResponse of client.
|
|
19
|
+
* for await (const assignmentListResponse of client.v1Beta.customers.assignments.list(
|
|
20
20
|
* 'id',
|
|
21
21
|
* )) {
|
|
22
22
|
* // ...
|
|
@@ -55,25 +55,24 @@ export class Assignments extends APIResource {
|
|
|
55
55
|
* @example
|
|
56
56
|
* ```ts
|
|
57
57
|
* const response =
|
|
58
|
-
* await client.
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* );
|
|
58
|
+
* await client.v1Beta.customers.assignments.upsert('id', {
|
|
59
|
+
* assignments: [
|
|
60
|
+
* {
|
|
61
|
+
* entityId: 'workspace-001',
|
|
62
|
+
* featureId: 'compute-minutes',
|
|
63
|
+
* usageLimit: 1000,
|
|
64
|
+
* cadence: 'MONTH',
|
|
65
|
+
* },
|
|
66
|
+
* {
|
|
67
|
+
* entityId: 'workspace-002',
|
|
68
|
+
* currencyId: 'cred-type-tokens',
|
|
69
|
+
* usageLimit: 2000,
|
|
70
|
+
* cadence: 'MONTH',
|
|
71
|
+
* parentId: 'workspace-001',
|
|
72
|
+
* scopeEntityIds: ['user-1'],
|
|
73
|
+
* },
|
|
74
|
+
* ],
|
|
75
|
+
* });
|
|
77
76
|
* ```
|
|
78
77
|
*/
|
|
79
78
|
upsert(
|
|
@@ -114,11 +113,6 @@ export interface AssignmentListResponse {
|
|
|
114
113
|
*/
|
|
115
114
|
cadence: 'MONTH';
|
|
116
115
|
|
|
117
|
-
/**
|
|
118
|
-
* The capability refId this assignment grants
|
|
119
|
-
*/
|
|
120
|
-
capabilityId: string;
|
|
121
|
-
|
|
122
116
|
/**
|
|
123
117
|
* Timestamp of when the record was created
|
|
124
118
|
*/
|
|
@@ -129,6 +123,19 @@ export interface AssignmentListResponse {
|
|
|
129
123
|
*/
|
|
130
124
|
entityId: string;
|
|
131
125
|
|
|
126
|
+
/**
|
|
127
|
+
* Parent entity refId in the hierarchy, or `null` for a root.
|
|
128
|
+
*/
|
|
129
|
+
parentId: string | null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Dimension-scoped sub-budget key: the set of entity refIds this budget applies
|
|
133
|
+
* to. Empty is the node-wide budget that always matches; a non-empty set only
|
|
134
|
+
* applies when every listed entity is present in the resolved set
|
|
135
|
+
* (order-insensitive).
|
|
136
|
+
*/
|
|
137
|
+
scopeEntityIds: Array<string>;
|
|
138
|
+
|
|
132
139
|
/**
|
|
133
140
|
* Timestamp of when the record was last updated
|
|
134
141
|
*/
|
|
@@ -138,6 +145,16 @@ export interface AssignmentListResponse {
|
|
|
138
145
|
* Maximum usage allowed within one cadence window
|
|
139
146
|
*/
|
|
140
147
|
usageLimit: number;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Currency refId this assignment grants (present for credit capabilities).
|
|
151
|
+
*/
|
|
152
|
+
currencyId?: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Feature refId this assignment grants (present for feature capabilities).
|
|
156
|
+
*/
|
|
157
|
+
featureId?: string;
|
|
141
158
|
}
|
|
142
159
|
|
|
143
160
|
/**
|
|
@@ -164,11 +181,6 @@ export namespace AssignmentUpsertResponse {
|
|
|
164
181
|
*/
|
|
165
182
|
cadence: 'MONTH';
|
|
166
183
|
|
|
167
|
-
/**
|
|
168
|
-
* The capability refId this assignment grants
|
|
169
|
-
*/
|
|
170
|
-
capabilityId: string;
|
|
171
|
-
|
|
172
184
|
/**
|
|
173
185
|
* Timestamp of when the record was created
|
|
174
186
|
*/
|
|
@@ -179,6 +191,19 @@ export namespace AssignmentUpsertResponse {
|
|
|
179
191
|
*/
|
|
180
192
|
entityId: string;
|
|
181
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Parent entity refId in the hierarchy, or `null` for a root.
|
|
196
|
+
*/
|
|
197
|
+
parentId: string | null;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Dimension-scoped sub-budget key: the set of entity refIds this budget applies
|
|
201
|
+
* to. Empty is the node-wide budget that always matches; a non-empty set only
|
|
202
|
+
* applies when every listed entity is present in the resolved set
|
|
203
|
+
* (order-insensitive).
|
|
204
|
+
*/
|
|
205
|
+
scopeEntityIds: Array<string>;
|
|
206
|
+
|
|
182
207
|
/**
|
|
183
208
|
* Timestamp of when the record was last updated
|
|
184
209
|
*/
|
|
@@ -188,6 +213,16 @@ export namespace AssignmentUpsertResponse {
|
|
|
188
213
|
* Maximum usage allowed within one cadence window
|
|
189
214
|
*/
|
|
190
215
|
usageLimit: number;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Currency refId this assignment grants (present for credit capabilities).
|
|
219
|
+
*/
|
|
220
|
+
currencyId?: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Feature refId this assignment grants (present for feature capabilities).
|
|
224
|
+
*/
|
|
225
|
+
featureId?: string;
|
|
191
226
|
}
|
|
192
227
|
}
|
|
193
228
|
|
|
@@ -238,17 +273,13 @@ export interface AssignmentUpsertParams {
|
|
|
238
273
|
|
|
239
274
|
export namespace AssignmentUpsertParams {
|
|
240
275
|
/**
|
|
241
|
-
* A single assignment to create or update.
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
276
|
+
* A single assignment to create or update. Identify the capability with exactly
|
|
277
|
+
* one of `featureId` or `currencyId`. The natural key is the
|
|
278
|
+
* `(entityId, capability, scopeEntityIds)` triple. On create both `usageLimit` and
|
|
279
|
+
* `cadence` are required; on update they may be omitted individually to preserve
|
|
280
|
+
* the existing value.
|
|
245
281
|
*/
|
|
246
282
|
export interface Assignment {
|
|
247
|
-
/**
|
|
248
|
-
* The capability refId this assignment grants
|
|
249
|
-
*/
|
|
250
|
-
capabilityId: string;
|
|
251
|
-
|
|
252
283
|
/**
|
|
253
284
|
* The entity refId this assignment is attached to
|
|
254
285
|
*/
|
|
@@ -259,6 +290,26 @@ export namespace AssignmentUpsertParams {
|
|
|
259
290
|
*/
|
|
260
291
|
cadence?: 'MONTH';
|
|
261
292
|
|
|
293
|
+
/**
|
|
294
|
+
* Currency refId this assignment grants (credit budgets). Mutually exclusive with
|
|
295
|
+
* `featureId`.
|
|
296
|
+
*/
|
|
297
|
+
currencyId?: string;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Feature refId this assignment grants. Mutually exclusive with `currencyId`.
|
|
301
|
+
*/
|
|
302
|
+
featureId?: string;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Parent entity refId in the hierarchy. Omit to leave the current parent untouched
|
|
306
|
+
* (a new node defaults to a root); `null` detaches to a root; a refId sets or
|
|
307
|
+
* changes the parent. Reparenting an existing node is leaf-only.
|
|
308
|
+
*/
|
|
309
|
+
parentId?: string | null;
|
|
310
|
+
|
|
311
|
+
scopeEntityIds?: Array<string>;
|
|
312
|
+
|
|
262
313
|
/**
|
|
263
314
|
* Maximum usage allowed within one cadence window (required on create)
|
|
264
315
|
*/
|
|
@@ -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 AssignmentsAPI from './assignments';
|
|
5
5
|
import {
|
|
6
6
|
AssignmentListParams,
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { buildHeaders } from '
|
|
7
|
-
import { RequestOptions } from '
|
|
8
|
-
import { path } from '
|
|
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';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class Entities extends APIResource {
|
|
11
11
|
/**
|
|
@@ -14,10 +14,9 @@ export class Entities extends APIResource {
|
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
16
|
* const entity =
|
|
17
|
-
* await client.
|
|
18
|
-
* '
|
|
19
|
-
*
|
|
20
|
-
* );
|
|
17
|
+
* await client.v1Beta.customers.entities.retrieve('x', {
|
|
18
|
+
* id: 'id',
|
|
19
|
+
* });
|
|
21
20
|
* ```
|
|
22
21
|
*/
|
|
23
22
|
retrieve(
|
|
@@ -44,7 +43,7 @@ export class Entities extends APIResource {
|
|
|
44
43
|
* @example
|
|
45
44
|
* ```ts
|
|
46
45
|
* // Automatically fetches more pages as needed.
|
|
47
|
-
* for await (const entityListResponse of client.
|
|
46
|
+
* for await (const entityListResponse of client.v1Beta.customers.entities.list(
|
|
48
47
|
* 'id',
|
|
49
48
|
* )) {
|
|
50
49
|
* // ...
|
|
@@ -80,10 +79,9 @@ export class Entities extends APIResource {
|
|
|
80
79
|
* @example
|
|
81
80
|
* ```ts
|
|
82
81
|
* const response =
|
|
83
|
-
* await client.
|
|
84
|
-
* '
|
|
85
|
-
*
|
|
86
|
-
* );
|
|
82
|
+
* await client.v1Beta.customers.entities.archive('id', {
|
|
83
|
+
* ids: ['user-7f3a0c1d', 'user-c4d1b2e9'],
|
|
84
|
+
* });
|
|
87
85
|
* ```
|
|
88
86
|
*/
|
|
89
87
|
archive(
|
|
@@ -111,10 +109,9 @@ export class Entities extends APIResource {
|
|
|
111
109
|
* @example
|
|
112
110
|
* ```ts
|
|
113
111
|
* const response =
|
|
114
|
-
* await client.
|
|
115
|
-
* '
|
|
116
|
-
*
|
|
117
|
-
* );
|
|
112
|
+
* await client.v1Beta.customers.entities.unarchive('id', {
|
|
113
|
+
* ids: ['user-7f3a0c1d', 'user-c4d1b2e9'],
|
|
114
|
+
* });
|
|
118
115
|
* ```
|
|
119
116
|
*/
|
|
120
117
|
unarchive(
|
|
@@ -143,26 +140,20 @@ export class Entities extends APIResource {
|
|
|
143
140
|
* @example
|
|
144
141
|
* ```ts
|
|
145
142
|
* const response =
|
|
146
|
-
* await client.
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* typeRefId: 'user',
|
|
161
|
-
* metadata: { email: 'john@acme.com' },
|
|
162
|
-
* },
|
|
163
|
-
* ],
|
|
164
|
-
* },
|
|
165
|
-
* );
|
|
143
|
+
* await client.v1Beta.customers.entities.upsert('id', {
|
|
144
|
+
* entities: [
|
|
145
|
+
* {
|
|
146
|
+
* id: 'user-7f3a0c1d',
|
|
147
|
+
* typeRefId: 'user',
|
|
148
|
+
* metadata: { email: 'jane@acme.com', role: 'admin' },
|
|
149
|
+
* },
|
|
150
|
+
* {
|
|
151
|
+
* id: 'user-c4d1b2e9',
|
|
152
|
+
* typeRefId: 'user',
|
|
153
|
+
* metadata: { email: 'john@acme.com' },
|
|
154
|
+
* },
|
|
155
|
+
* ],
|
|
156
|
+
* });
|
|
166
157
|
* ```
|
|
167
158
|
*/
|
|
168
159
|
upsert(id: string, params: EntityUpsertParams, options?: RequestOptions): APIPromise<EntityUpsertResponse> {
|
|
@@ -1,10 +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 { buildHeaders } from '
|
|
6
|
-
import { RequestOptions } from '
|
|
7
|
-
import { path } from '
|
|
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';
|
|
8
8
|
|
|
9
9
|
export class Entitlements extends APIResource {
|
|
10
10
|
/**
|
|
@@ -15,9 +15,7 @@ export class Entitlements extends APIResource {
|
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
17
17
|
* const response =
|
|
18
|
-
* await client.
|
|
19
|
-
* 'x',
|
|
20
|
-
* );
|
|
18
|
+
* await client.v1Beta.customers.entitlements.check('x');
|
|
21
19
|
* ```
|
|
22
20
|
*/
|
|
23
21
|
check(
|
|
@@ -1,10 +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 { buildHeaders } from '
|
|
7
|
-
import { RequestOptions } from '
|
|
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';
|
|
8
8
|
|
|
9
9
|
export class EntityTypes extends APIResource {
|
|
10
10
|
/**
|
|
@@ -15,7 +15,7 @@ export class EntityTypes extends APIResource {
|
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
17
17
|
* // Automatically fetches more pages as needed.
|
|
18
|
-
* for await (const entityTypeListResponse of client.
|
|
18
|
+
* for await (const entityTypeListResponse of client.v1Beta.entityTypes.list()) {
|
|
19
19
|
* // ...
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
@@ -45,21 +45,20 @@ export class EntityTypes extends APIResource {
|
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* ```ts
|
|
48
|
-
* const response =
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* });
|
|
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
|
+
* });
|
|
63
62
|
* ```
|
|
64
63
|
*/
|
|
65
64
|
upsert(params: EntityTypeUpsertParams, options?: RequestOptions): APIPromise<EntityTypeUpsertResponse> {
|
|
@@ -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 {
|