@stigg/typescript 0.1.0-beta.64 → 0.1.0-beta.66
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 +29 -0
- package/package.json +1 -1
- package/resources/v1/addons/addons.d.mts +59 -0
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +59 -0
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +59 -0
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +59 -0
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +31 -0
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +31 -0
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +31 -0
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +31 -0
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/contracts.d.mts +30 -0
- package/resources/v1/contracts.d.mts.map +1 -1
- package/resources/v1/contracts.d.ts +30 -0
- package/resources/v1/contracts.d.ts.map +1 -1
- package/resources/v1/contracts.js +30 -0
- package/resources/v1/contracts.js.map +1 -1
- package/resources/v1/contracts.mjs +30 -0
- package/resources/v1/contracts.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +36 -0
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +36 -0
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +36 -0
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +36 -0
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/consumption.d.mts +26 -0
- package/resources/v1/credits/consumption.d.mts.map +1 -1
- package/resources/v1/credits/consumption.d.ts +26 -0
- package/resources/v1/credits/consumption.d.ts.map +1 -1
- package/resources/v1/credits/consumption.js +26 -0
- package/resources/v1/credits/consumption.js.map +1 -1
- package/resources/v1/credits/consumption.mjs +26 -0
- package/resources/v1/credits/consumption.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +25 -0
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +25 -0
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +25 -0
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +25 -0
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +49 -0
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +49 -0
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +49 -0
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +49 -0
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +28 -0
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +28 -0
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +28 -0
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +28 -0
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/reservations.d.mts +10 -0
- package/resources/v1/credits/reservations.d.mts.map +1 -1
- package/resources/v1/credits/reservations.d.ts +10 -0
- package/resources/v1/credits/reservations.d.ts.map +1 -1
- package/resources/v1/credits/reservations.js +10 -0
- package/resources/v1/credits/reservations.js.map +1 -1
- package/resources/v1/credits/reservations.mjs +10 -0
- package/resources/v1/credits/reservations.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +198 -7
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +198 -7
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +106 -6
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +106 -6
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/entities/entities.d.mts +332 -0
- package/resources/v1/customers/entities/entities.d.mts.map +1 -0
- package/resources/v1/customers/entities/entities.d.ts +332 -0
- package/resources/v1/customers/entities/entities.d.ts.map +1 -0
- package/resources/v1/customers/entities/entities.js +139 -0
- package/resources/v1/customers/entities/entities.js.map +1 -0
- package/resources/v1/customers/entities/entities.mjs +134 -0
- package/resources/v1/customers/entities/entities.mjs.map +1 -0
- package/resources/v1/customers/entities/entitlements.d.mts +260 -0
- package/resources/v1/customers/entities/entitlements.d.mts.map +1 -0
- package/resources/v1/customers/entities/entitlements.d.ts +260 -0
- package/resources/v1/customers/entities/entitlements.d.ts.map +1 -0
- package/resources/v1/customers/entities/entitlements.js +87 -0
- package/resources/v1/customers/entities/entitlements.js.map +1 -0
- package/resources/v1/customers/entities/entitlements.mjs +83 -0
- package/resources/v1/customers/entities/entitlements.mjs.map +1 -0
- package/resources/v1/customers/entities/index.d.mts +3 -0
- package/resources/v1/customers/entities/index.d.mts.map +1 -0
- package/resources/v1/customers/entities/index.d.ts +3 -0
- package/resources/v1/customers/entities/index.d.ts.map +1 -0
- package/resources/v1/customers/entities/index.js +9 -0
- package/resources/v1/customers/entities/index.js.map +1 -0
- package/resources/v1/customers/entities/index.mjs +4 -0
- package/resources/v1/customers/entities/index.mjs.map +1 -0
- package/resources/v1/customers/entities.d.mts +2 -0
- package/resources/v1/customers/entities.d.mts.map +1 -0
- package/resources/v1/customers/entities.d.ts +2 -0
- package/resources/v1/customers/entities.d.ts.map +1 -0
- package/resources/v1/customers/entities.js +6 -0
- package/resources/v1/customers/entities.js.map +1 -0
- package/resources/v1/customers/entities.mjs +3 -0
- package/resources/v1/customers/entities.mjs.map +1 -0
- package/resources/v1/customers/index.d.mts +1 -0
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +1 -0
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js +3 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -0
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +47 -0
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +47 -0
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +47 -0
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +47 -0
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +16 -0
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +16 -0
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +16 -0
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +16 -0
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +51 -0
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +51 -0
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +51 -0
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +51 -0
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/entity-types.d.mts +291 -0
- package/resources/v1/entity-types.d.mts.map +1 -0
- package/resources/v1/entity-types.d.ts +291 -0
- package/resources/v1/entity-types.d.ts.map +1 -0
- package/resources/v1/entity-types.js +128 -0
- package/resources/v1/entity-types.js.map +1 -0
- package/resources/v1/entity-types.mjs +124 -0
- package/resources/v1/entity-types.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +8 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -1
- package/resources/v1/events/beta/customers.d.ts +8 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -1
- package/resources/v1/events/beta/customers.js +8 -0
- package/resources/v1/events/beta/customers.js.map +1 -1
- package/resources/v1/events/beta/customers.mjs +8 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -1
- package/resources/v1/events/data-export/data-export.d.mts +12 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -1
- package/resources/v1/events/data-export/data-export.d.ts +12 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -1
- package/resources/v1/events/data-export/data-export.js +12 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -1
- package/resources/v1/events/data-export/data-export.mjs +12 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -1
- package/resources/v1/events/data-export/destinations.d.mts +26 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
- package/resources/v1/events/data-export/destinations.d.ts +26 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
- package/resources/v1/events/data-export/destinations.js +26 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -1
- package/resources/v1/events/data-export/destinations.mjs +26 -0
- package/resources/v1/events/data-export/destinations.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +21 -0
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +21 -0
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +21 -0
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +21 -0
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +43 -0
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +43 -0
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +43 -0
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +43 -0
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -0
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -0
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +31 -0
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +31 -0
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +31 -0
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +31 -0
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +69 -0
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +69 -0
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +69 -0
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +69 -0
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +43 -0
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +43 -0
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +43 -0
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +43 -0
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +16 -0
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +16 -0
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +16 -0
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +16 -0
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +6 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +6 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +6 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +6 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +81 -0
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +81 -0
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +81 -0
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +81 -0
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +13 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +13 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +13 -0
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +13 -0
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +20 -0
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +20 -0
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +20 -0
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +20 -0
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +4 -0
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -0
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +4 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +4 -0
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +12 -33
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -1
- package/resources/v1-beta/customers/assignments.d.ts +12 -33
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -1
- package/resources/v1-beta/customers/assignments.js +7 -33
- package/resources/v1-beta/customers/assignments.js.map +1 -1
- package/resources/v1-beta/customers/assignments.mjs +7 -33
- package/resources/v1-beta/customers/assignments.mjs.map +1 -1
- package/resources/v1-beta/customers/entities.d.mts +18 -55
- package/resources/v1-beta/customers/entities.d.mts.map +1 -1
- package/resources/v1-beta/customers/entities.d.ts +18 -55
- package/resources/v1-beta/customers/entities.d.ts.map +1 -1
- package/resources/v1-beta/customers/entities.js +18 -55
- package/resources/v1-beta/customers/entities.js.map +1 -1
- package/resources/v1-beta/customers/entities.mjs +18 -55
- package/resources/v1-beta/customers/entities.mjs.map +1 -1
- package/resources/v1-beta/customers/entitlements.d.mts +7 -10
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -1
- package/resources/v1-beta/customers/entitlements.d.ts +7 -10
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -1
- package/resources/v1-beta/customers/entitlements.js +2 -5
- package/resources/v1-beta/customers/entitlements.js.map +1 -1
- package/resources/v1-beta/customers/entitlements.mjs +2 -5
- package/resources/v1-beta/customers/entitlements.mjs.map +1 -1
- package/resources/v1-beta/entity-types.d.mts +18 -28
- package/resources/v1-beta/entity-types.d.mts.map +1 -1
- package/resources/v1-beta/entity-types.d.ts +18 -28
- package/resources/v1-beta/entity-types.d.ts.map +1 -1
- package/resources/v1-beta/entity-types.js +6 -28
- package/resources/v1-beta/entity-types.js.map +1 -1
- package/resources/v1-beta/entity-types.mjs +6 -28
- package/resources/v1-beta/entity-types.mjs.map +1 -1
- package/src/resources/v1/addons/addons.ts +59 -0
- package/src/resources/v1/addons/entitlements.ts +31 -0
- package/src/resources/v1/contracts.ts +30 -0
- package/src/resources/v1/coupons.ts +36 -0
- package/src/resources/v1/credits/consumption.ts +26 -0
- package/src/resources/v1/credits/credits.ts +25 -0
- package/src/resources/v1/credits/custom-currencies.ts +49 -0
- package/src/resources/v1/credits/grants.ts +28 -0
- package/src/resources/v1/credits/reservations.ts +10 -0
- package/src/resources/v1/customers/customers.ts +237 -7
- package/src/resources/v1/customers/entities/entities.ts +470 -0
- package/src/resources/v1/customers/entities/entitlements.ts +347 -0
- package/src/resources/v1/customers/entities/index.ts +22 -0
- package/src/resources/v1/customers/entities.ts +3 -0
- package/src/resources/v1/customers/index.ts +12 -0
- package/src/resources/v1/customers/integrations.ts +47 -0
- package/src/resources/v1/customers/payment-method.ts +16 -0
- package/src/resources/v1/customers/promotional-entitlements.ts +51 -0
- package/src/resources/v1/entity-types.ts +402 -0
- package/src/resources/v1/events/beta/customers.ts +8 -0
- package/src/resources/v1/events/data-export/data-export.ts +12 -0
- package/src/resources/v1/events/data-export/destinations.ts +26 -0
- package/src/resources/v1/events/events.ts +21 -0
- package/src/resources/v1/features.ts +43 -0
- package/src/resources/v1/index.ts +12 -0
- package/src/resources/v1/plans/entitlements.ts +31 -0
- package/src/resources/v1/plans/plans.ts +69 -0
- package/src/resources/v1/products.ts +43 -0
- package/src/resources/v1/subscriptions/future-update.ts +16 -0
- package/src/resources/v1/subscriptions/invoice.ts +6 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +81 -0
- package/src/resources/v1/subscriptions/usage.ts +13 -0
- package/src/resources/v1/usage.ts +20 -0
- package/src/resources/v1/v1.ts +28 -0
- package/src/resources/v1-beta/customers/assignments.ts +12 -33
- package/src/resources/v1-beta/customers/entities.ts +18 -55
- package/src/resources/v1-beta/customers/entitlements.ts +7 -10
- package/src/resources/v1-beta/entity-types.ts +21 -28
- 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
|
@@ -9,15 +9,10 @@ import { path } from '../../../internal/utils/path';
|
|
|
9
9
|
|
|
10
10
|
export class Entities extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* Retrieves a single entity for the given customer by its identifier.
|
|
12
|
+
* Retrieves a single entity for the given customer by its identifier. Deprecated:
|
|
13
|
+
* use `GET /api/v1/customers/{id}/entities/{entityId}`.
|
|
13
14
|
*
|
|
14
|
-
* @
|
|
15
|
-
* ```ts
|
|
16
|
-
* const entity =
|
|
17
|
-
* await client.v1Beta.customers.entities.retrieve('x', {
|
|
18
|
-
* id: 'id',
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
15
|
+
* @deprecated Use `v1.customers.entities.retrieve` instead.
|
|
21
16
|
*/
|
|
22
17
|
retrieve(
|
|
23
18
|
entityID: string,
|
|
@@ -38,17 +33,10 @@ export class Entities extends APIResource {
|
|
|
38
33
|
}
|
|
39
34
|
|
|
40
35
|
/**
|
|
41
|
-
* Retrieves a paginated list of entities for the given customer.
|
|
36
|
+
* Retrieves a paginated list of entities for the given customer. Deprecated: use
|
|
37
|
+
* `GET /api/v1/customers/{id}/entities`.
|
|
42
38
|
*
|
|
43
|
-
* @
|
|
44
|
-
* ```ts
|
|
45
|
-
* // Automatically fetches more pages as needed.
|
|
46
|
-
* for await (const entityListResponse of client.v1Beta.customers.entities.list(
|
|
47
|
-
* 'id',
|
|
48
|
-
* )) {
|
|
49
|
-
* // ...
|
|
50
|
-
* }
|
|
51
|
-
* ```
|
|
39
|
+
* @deprecated Use `v1.customers.entities.list` instead.
|
|
52
40
|
*/
|
|
53
41
|
list(
|
|
54
42
|
id: string,
|
|
@@ -74,15 +62,11 @@ export class Entities extends APIResource {
|
|
|
74
62
|
}
|
|
75
63
|
|
|
76
64
|
/**
|
|
77
|
-
* Archives entities in bulk for the given customer by id.
|
|
65
|
+
* Archives entities in bulk for the given customer by id. Upsert an archived
|
|
66
|
+
* entity to restore it. Deprecated: use
|
|
67
|
+
* `POST /api/v1/customers/{id}/entities/archive`.
|
|
78
68
|
*
|
|
79
|
-
* @
|
|
80
|
-
* ```ts
|
|
81
|
-
* const response =
|
|
82
|
-
* await client.v1Beta.customers.entities.archive('id', {
|
|
83
|
-
* ids: ['user-7f3a0c1d', 'user-c4d1b2e9'],
|
|
84
|
-
* });
|
|
85
|
-
* ```
|
|
69
|
+
* @deprecated Use `v1.customers.entities.archive` instead.
|
|
86
70
|
*/
|
|
87
71
|
archive(
|
|
88
72
|
id: string,
|
|
@@ -104,15 +88,11 @@ export class Entities extends APIResource {
|
|
|
104
88
|
}
|
|
105
89
|
|
|
106
90
|
/**
|
|
107
|
-
*
|
|
91
|
+
* Deprecated: use `PUT /api/v1/customers/{id}/entities` with the entity id to
|
|
92
|
+
* restore it. Restores previously archived entities in bulk for the given customer
|
|
93
|
+
* by id.
|
|
108
94
|
*
|
|
109
|
-
* @
|
|
110
|
-
* ```ts
|
|
111
|
-
* const response =
|
|
112
|
-
* await client.v1Beta.customers.entities.unarchive('id', {
|
|
113
|
-
* ids: ['user-7f3a0c1d', 'user-c4d1b2e9'],
|
|
114
|
-
* });
|
|
115
|
-
* ```
|
|
95
|
+
* @deprecated Use `v1.customers.entities.upsert` with the entity id to restore an archived entity.
|
|
116
96
|
*/
|
|
117
97
|
unarchive(
|
|
118
98
|
id: string,
|
|
@@ -135,28 +115,11 @@ export class Entities extends APIResource {
|
|
|
135
115
|
|
|
136
116
|
/**
|
|
137
117
|
* Creates or updates entities in bulk for the given customer. Existing entities
|
|
138
|
-
* matched by id are updated; new ids are created.
|
|
118
|
+
* matched by id are updated; new ids are created. An upsert of an archived entity
|
|
119
|
+
* restores it. An entity on an archived entity type fails with 400. Deprecated:
|
|
120
|
+
* use `PUT /api/v1/customers/{id}/entities`.
|
|
139
121
|
*
|
|
140
|
-
* @
|
|
141
|
-
* ```ts
|
|
142
|
-
* const response =
|
|
143
|
-
* await client.v1Beta.customers.entities.upsert('id', {
|
|
144
|
-
* entities: [
|
|
145
|
-
* {
|
|
146
|
-
* id: 'user-7f3a0c1d',
|
|
147
|
-
* displayName: 'Jane Doe',
|
|
148
|
-
* entityTypeId: 'user',
|
|
149
|
-
* metadata: { email: 'jane@acme.com', role: 'admin' },
|
|
150
|
-
* },
|
|
151
|
-
* {
|
|
152
|
-
* id: 'user-c4d1b2e9',
|
|
153
|
-
* displayName: 'John Roe',
|
|
154
|
-
* entityTypeId: 'user',
|
|
155
|
-
* metadata: { email: 'john@acme.com' },
|
|
156
|
-
* },
|
|
157
|
-
* ],
|
|
158
|
-
* });
|
|
159
|
-
* ```
|
|
122
|
+
* @deprecated Use `v1.customers.entities.upsert` instead.
|
|
160
123
|
*/
|
|
161
124
|
upsert(id: string, params: EntityUpsertParams, options?: RequestOptions): APIPromise<EntityUpsertResponse> {
|
|
162
125
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -11,12 +11,9 @@ export class Entitlements extends APIResource {
|
|
|
11
11
|
* Experimental — request and response shapes may change without notice. Same
|
|
12
12
|
* semantics as `Check entitlement`, plus an optional `dimensions` query param that
|
|
13
13
|
* resolves to per-entity governance limits surfaced as `chains` on the response.
|
|
14
|
+
* Deprecated: use `GET /api/v1/customers/{id}/entitlements/check`.
|
|
14
15
|
*
|
|
15
|
-
* @
|
|
16
|
-
* ```ts
|
|
17
|
-
* const response =
|
|
18
|
-
* await client.v1Beta.customers.entitlements.check('x');
|
|
19
|
-
* ```
|
|
16
|
+
* @deprecated Use `v1.customers.check_entitlement` instead.
|
|
20
17
|
*/
|
|
21
18
|
check(
|
|
22
19
|
id: string,
|
|
@@ -148,7 +145,7 @@ export namespace EntitlementCheckResponse {
|
|
|
148
145
|
scopeEntityIds: Array<string>;
|
|
149
146
|
|
|
150
147
|
/**
|
|
151
|
-
* Hard usage limit for this node; null when no
|
|
148
|
+
* Hard usage limit for this node; null when the entity has no entity entitlement.
|
|
152
149
|
*/
|
|
153
150
|
usageLimit: number | null;
|
|
154
151
|
}
|
|
@@ -320,7 +317,7 @@ export namespace EntitlementCheckResponse {
|
|
|
320
317
|
scopeEntityIds: Array<string>;
|
|
321
318
|
|
|
322
319
|
/**
|
|
323
|
-
* Hard usage limit for this node; null when no
|
|
320
|
+
* Hard usage limit for this node; null when the entity has no entity entitlement.
|
|
324
321
|
*/
|
|
325
322
|
usageLimit: number | null;
|
|
326
323
|
}
|
|
@@ -362,9 +359,9 @@ export interface EntitlementCheckParams {
|
|
|
362
359
|
currencyId?: string;
|
|
363
360
|
|
|
364
361
|
/**
|
|
365
|
-
* Query param:
|
|
366
|
-
* provided,
|
|
367
|
-
*
|
|
362
|
+
* Query param: Attribution map of the entities the usage is attributed to (e.g.
|
|
363
|
+
* `dimensions[userId]=u1`). When provided, their governance budgets are checked
|
|
364
|
+
* too and the response includes `chains`.
|
|
368
365
|
*/
|
|
369
366
|
dimensions?: { [key: string]: string };
|
|
370
367
|
|
|
@@ -10,15 +10,10 @@ export class EntityTypes extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Returns a cursor-paginated list of entity types defined in the environment.
|
|
12
12
|
* Entity types are vendor-defined categories of resource that can be governed
|
|
13
|
-
* (e.g. Org, Team, User).
|
|
13
|
+
* (e.g. Org, Team, User). Archived entity types are excluded unless
|
|
14
|
+
* includeArchived=true. Deprecated: use `GET /api/v1/entity-types`.
|
|
14
15
|
*
|
|
15
|
-
* @
|
|
16
|
-
* ```ts
|
|
17
|
-
* // Automatically fetches more pages as needed.
|
|
18
|
-
* for await (const entityTypeListResponse of client.v1Beta.entityTypes.list()) {
|
|
19
|
-
* // ...
|
|
20
|
-
* }
|
|
21
|
-
* ```
|
|
16
|
+
* @deprecated Use `v1.entity_types.list` instead.
|
|
22
17
|
*/
|
|
23
18
|
list(
|
|
24
19
|
params: EntityTypeListParams | null | undefined = {},
|
|
@@ -41,27 +36,10 @@ export class EntityTypes extends APIResource {
|
|
|
41
36
|
/**
|
|
42
37
|
* Batched create-or-update of entity types. Existing types matched by id are
|
|
43
38
|
* updated; new ids are created. Idempotent — re-submitting the same payload
|
|
44
|
-
* converges to the same state.
|
|
39
|
+
* converges to the same state. An upsert of an archived entity type restores it.
|
|
40
|
+
* Deprecated: use `PUT /api/v1/entity-types`.
|
|
45
41
|
*
|
|
46
|
-
* @
|
|
47
|
-
* ```ts
|
|
48
|
-
* const response = await client.v1Beta.entityTypes.upsert({
|
|
49
|
-
* types: [
|
|
50
|
-
* {
|
|
51
|
-
* id: 'org',
|
|
52
|
-
* displayName: 'Organization',
|
|
53
|
-
* description:
|
|
54
|
-
* 'A customer organization — the top of the hierarchy, holding the account-wide budget.',
|
|
55
|
-
* attributionKeys: ['organizationId'],
|
|
56
|
-
* },
|
|
57
|
-
* {
|
|
58
|
-
* id: 'team',
|
|
59
|
-
* displayName: 'Team',
|
|
60
|
-
* attributionKeys: ['teamId'],
|
|
61
|
-
* },
|
|
62
|
-
* ],
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
42
|
+
* @deprecated Use `v1.entity_types.upsert` instead.
|
|
65
43
|
*/
|
|
66
44
|
upsert(params: EntityTypeUpsertParams, options?: RequestOptions): APIPromise<EntityTypeUpsertResponse> {
|
|
67
45
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -93,6 +71,11 @@ export interface EntityTypeListResponse {
|
|
|
93
71
|
*/
|
|
94
72
|
id: string;
|
|
95
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Timestamp of when the record was deleted
|
|
76
|
+
*/
|
|
77
|
+
archivedAt: string | null;
|
|
78
|
+
|
|
96
79
|
/**
|
|
97
80
|
* Dimension keys used to attribute usage events to instances of this type (e.g.
|
|
98
81
|
* ["orgId"]). Empty array means no attribution.
|
|
@@ -141,6 +124,11 @@ export namespace EntityTypeUpsertResponse {
|
|
|
141
124
|
*/
|
|
142
125
|
id: string;
|
|
143
126
|
|
|
127
|
+
/**
|
|
128
|
+
* Timestamp of when the record was deleted
|
|
129
|
+
*/
|
|
130
|
+
archivedAt: string | null;
|
|
131
|
+
|
|
144
132
|
/**
|
|
145
133
|
* Dimension keys used to attribute usage events to instances of this type (e.g.
|
|
146
134
|
* ["orgId"]). Empty array means no attribution.
|
|
@@ -171,6 +159,11 @@ export namespace EntityTypeUpsertResponse {
|
|
|
171
159
|
}
|
|
172
160
|
|
|
173
161
|
export interface EntityTypeListParams extends MyCursorIDPageParams {
|
|
162
|
+
/**
|
|
163
|
+
* Query param: Whether to include archived entity types. One of: true, false
|
|
164
|
+
*/
|
|
165
|
+
includeArchived?: 'true' | 'false';
|
|
166
|
+
|
|
174
167
|
/**
|
|
175
168
|
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
176
169
|
* token); falls back to the user's first membership. Ignored for API-key auth.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.66'; // 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.66";
|
|
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.66";
|
|
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.66'; // 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.66'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|