@stigg/typescript 0.1.0-alpha.22 → 0.1.0-alpha.23

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.
Files changed (106) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +1 -1
  3. package/resources/v1/addons/addons.d.mts +493 -970
  4. package/resources/v1/addons/addons.d.mts.map +1 -1
  5. package/resources/v1/addons/addons.d.ts +493 -970
  6. package/resources/v1/addons/addons.d.ts.map +1 -1
  7. package/resources/v1/addons/addons.js +0 -6
  8. package/resources/v1/addons/addons.js.map +1 -1
  9. package/resources/v1/addons/addons.mjs +0 -6
  10. package/resources/v1/addons/addons.mjs.map +1 -1
  11. package/resources/v1/addons/entitlements.d.mts +28 -0
  12. package/resources/v1/addons/entitlements.d.mts.map +1 -1
  13. package/resources/v1/addons/entitlements.d.ts +28 -0
  14. package/resources/v1/addons/entitlements.d.ts.map +1 -1
  15. package/resources/v1/addons/index.d.mts +1 -1
  16. package/resources/v1/addons/index.d.mts.map +1 -1
  17. package/resources/v1/addons/index.d.ts +1 -1
  18. package/resources/v1/addons/index.d.ts.map +1 -1
  19. package/resources/v1/addons/index.js.map +1 -1
  20. package/resources/v1/addons/index.mjs.map +1 -1
  21. package/resources/v1/customers/customers.d.mts +155 -5
  22. package/resources/v1/customers/customers.d.mts.map +1 -1
  23. package/resources/v1/customers/customers.d.ts +155 -5
  24. package/resources/v1/customers/customers.d.ts.map +1 -1
  25. package/resources/v1/customers/customers.js +7 -0
  26. package/resources/v1/customers/customers.js.map +1 -1
  27. package/resources/v1/customers/customers.mjs +7 -0
  28. package/resources/v1/customers/customers.mjs.map +1 -1
  29. package/resources/v1/customers/index.d.mts +1 -1
  30. package/resources/v1/customers/index.d.mts.map +1 -1
  31. package/resources/v1/customers/index.d.ts +1 -1
  32. package/resources/v1/customers/index.d.ts.map +1 -1
  33. package/resources/v1/customers/index.js.map +1 -1
  34. package/resources/v1/customers/index.mjs.map +1 -1
  35. package/resources/v1/events/credits/credits.d.mts +1 -1
  36. package/resources/v1/events/credits/credits.d.mts.map +1 -1
  37. package/resources/v1/events/credits/credits.d.ts +1 -1
  38. package/resources/v1/events/credits/credits.d.ts.map +1 -1
  39. package/resources/v1/events/credits/credits.js.map +1 -1
  40. package/resources/v1/events/credits/credits.mjs.map +1 -1
  41. package/resources/v1/features.d.mts +9 -0
  42. package/resources/v1/features.d.mts.map +1 -1
  43. package/resources/v1/features.d.ts +9 -0
  44. package/resources/v1/features.d.ts.map +1 -1
  45. package/resources/v1/index.d.mts +3 -3
  46. package/resources/v1/index.d.mts.map +1 -1
  47. package/resources/v1/index.d.ts +3 -3
  48. package/resources/v1/index.d.ts.map +1 -1
  49. package/resources/v1/index.js.map +1 -1
  50. package/resources/v1/index.mjs.map +1 -1
  51. package/resources/v1/plans/entitlements.d.mts +28 -0
  52. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  53. package/resources/v1/plans/entitlements.d.ts +28 -0
  54. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  55. package/resources/v1/plans/index.d.mts +1 -1
  56. package/resources/v1/plans/index.d.mts.map +1 -1
  57. package/resources/v1/plans/index.d.ts +1 -1
  58. package/resources/v1/plans/index.d.ts.map +1 -1
  59. package/resources/v1/plans/index.js.map +1 -1
  60. package/resources/v1/plans/index.mjs.map +1 -1
  61. package/resources/v1/plans/plans.d.mts +392 -391
  62. package/resources/v1/plans/plans.d.mts.map +1 -1
  63. package/resources/v1/plans/plans.d.ts +392 -391
  64. package/resources/v1/plans/plans.d.ts.map +1 -1
  65. package/resources/v1/plans/plans.js +0 -7
  66. package/resources/v1/plans/plans.js.map +1 -1
  67. package/resources/v1/plans/plans.mjs +0 -7
  68. package/resources/v1/plans/plans.mjs.map +1 -1
  69. package/resources/v1/products.d.mts +5 -1
  70. package/resources/v1/products.d.mts.map +1 -1
  71. package/resources/v1/products.d.ts +5 -1
  72. package/resources/v1/products.d.ts.map +1 -1
  73. package/resources/v1/subscriptions/subscriptions.d.mts +17 -10
  74. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  75. package/resources/v1/subscriptions/subscriptions.d.ts +17 -10
  76. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  77. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  78. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  79. package/resources/v1/usage.d.mts +1 -1
  80. package/resources/v1/usage.d.ts +1 -1
  81. package/resources/v1/v1.d.mts +6 -6
  82. package/resources/v1/v1.d.mts.map +1 -1
  83. package/resources/v1/v1.d.ts +6 -6
  84. package/resources/v1/v1.d.ts.map +1 -1
  85. package/resources/v1/v1.js.map +1 -1
  86. package/resources/v1/v1.mjs.map +1 -1
  87. package/src/resources/v1/addons/addons.ts +1111 -2508
  88. package/src/resources/v1/addons/entitlements.ts +33 -0
  89. package/src/resources/v1/addons/index.ts +0 -3
  90. package/src/resources/v1/customers/customers.ts +228 -4
  91. package/src/resources/v1/customers/index.ts +2 -0
  92. package/src/resources/v1/events/credits/credits.ts +3 -1
  93. package/src/resources/v1/features.ts +9 -0
  94. package/src/resources/v1/index.ts +2 -4
  95. package/src/resources/v1/plans/entitlements.ts +33 -0
  96. package/src/resources/v1/plans/index.ts +0 -1
  97. package/src/resources/v1/plans/plans.ts +924 -930
  98. package/src/resources/v1/products.ts +5 -1
  99. package/src/resources/v1/subscriptions/subscriptions.ts +14 -11
  100. package/src/resources/v1/usage.ts +1 -1
  101. package/src/resources/v1/v1.ts +4 -8
  102. package/src/version.ts +1 -1
  103. package/version.d.mts +1 -1
  104. package/version.d.ts +1 -1
  105. package/version.js +1 -1
  106. package/version.mjs +1 -1
@@ -262,6 +262,13 @@ export namespace AddonPackageEntitlement {
262
262
  * Timestamp of when the record was last updated
263
263
  */
264
264
  updatedAt: string;
265
+
266
+ /**
267
+ * The feature ID this entitlement depends on (for credit entitlements). The
268
+ * entitlement value will be calculated as: base amount × dependency feature usage
269
+ * limit
270
+ */
271
+ dependencyFeatureId?: string | null;
265
272
  }
266
273
  }
267
274
 
@@ -475,6 +482,13 @@ export namespace EntitlementCreateResponse {
475
482
  * Timestamp of when the record was last updated
476
483
  */
477
484
  updatedAt: string;
485
+
486
+ /**
487
+ * The feature ID this entitlement depends on (for credit entitlements). The
488
+ * entitlement value will be calculated as: base amount × dependency feature usage
489
+ * limit
490
+ */
491
+ dependencyFeatureId?: string | null;
478
492
  }
479
493
  }
480
494
 
@@ -693,6 +707,13 @@ export namespace EntitlementListResponse {
693
707
  * Timestamp of when the record was last updated
694
708
  */
695
709
  updatedAt: string;
710
+
711
+ /**
712
+ * The feature ID this entitlement depends on (for credit entitlements). The
713
+ * entitlement value will be calculated as: base amount × dependency feature usage
714
+ * limit
715
+ */
716
+ dependencyFeatureId?: string | null;
696
717
  }
697
718
 
698
719
  /**
@@ -879,6 +900,12 @@ export namespace EntitlementCreateParams {
879
900
  */
880
901
  behavior?: 'Increment' | 'Override';
881
902
 
903
+ /**
904
+ * The feature ID this entitlement depends on. The entitlement value will be
905
+ * calculated as: base amount × dependency feature usage limit
906
+ */
907
+ dependencyFeatureId?: string;
908
+
882
909
  /**
883
910
  * Description of the entitlement
884
911
  */
@@ -1069,6 +1096,12 @@ export declare namespace EntitlementUpdateParams {
1069
1096
  */
1070
1097
  cadence?: 'MONTH' | 'YEAR';
1071
1098
 
1099
+ /**
1100
+ * Body param: The feature ID this entitlement depends on. The entitlement value
1101
+ * will be calculated as: base amount × dependency feature usage limit
1102
+ */
1103
+ dependencyFeatureId?: string | null;
1104
+
1072
1105
  /**
1073
1106
  * Body param: Description of the entitlement
1074
1107
  */
@@ -3,8 +3,6 @@
3
3
  export {
4
4
  Addons,
5
5
  type Addon,
6
- type SetPackagePricing,
7
- type SetPackagePricingResponse,
8
6
  type AddonListResponse,
9
7
  type AddonPublishResponse,
10
8
  type AddonRemoveDraftResponse,
@@ -12,7 +10,6 @@ export {
12
10
  type AddonUpdateParams,
13
11
  type AddonListParams,
14
12
  type AddonPublishParams,
15
- type AddonSetPricingParams,
16
13
  type AddonListResponsesMyCursorIDPage,
17
14
  } from './addons';
18
15
  export {
@@ -92,6 +92,18 @@ export class Customers extends APIResource {
92
92
  return this._client.post('/api/v1/customers', { body, ...options });
93
93
  }
94
94
 
95
+ /**
96
+ * Retrieves the effective entitlements for a customer or resource, including
97
+ * feature and credit entitlements.
98
+ */
99
+ retrieveEntitlements(
100
+ id: string,
101
+ query: CustomerRetrieveEntitlementsParams | null | undefined = {},
102
+ options?: RequestOptions,
103
+ ): APIPromise<CustomerRetrieveEntitlementsResponse> {
104
+ return this._client.get(path`/api/v1/customers/${id}/entitlements`, { query, ...options });
105
+ }
106
+
95
107
  /**
96
108
  * Restores an archived customer, allowing them to create new subscriptions again.
97
109
  */
@@ -269,7 +281,7 @@ export namespace CustomerResponse {
269
281
  /**
270
282
  * Customer level coupon
271
283
  */
272
- couponId?: string | null;
284
+ couponId?: (string & {}) | '' | null;
273
285
 
274
286
  /**
275
287
  * The default payment method details
@@ -851,7 +863,7 @@ export interface CustomerListResponse {
851
863
  /**
852
864
  * Customer level coupon
853
865
  */
854
- couponId?: string | null;
866
+ couponId?: (string & {}) | '' | null;
855
867
 
856
868
  /**
857
869
  * The default payment method details
@@ -1320,6 +1332,209 @@ export interface CustomerListResourcesResponse {
1320
1332
  updatedAt: string;
1321
1333
  }
1322
1334
 
1335
+ /**
1336
+ * Response object
1337
+ */
1338
+ export interface CustomerRetrieveEntitlementsResponse {
1339
+ /**
1340
+ * The effective entitlements state for a customer or resource.
1341
+ */
1342
+ data: CustomerRetrieveEntitlementsResponse.Data;
1343
+ }
1344
+
1345
+ export namespace CustomerRetrieveEntitlementsResponse {
1346
+ /**
1347
+ * The effective entitlements state for a customer or resource.
1348
+ */
1349
+ export interface Data {
1350
+ /**
1351
+ * Reason why entitlements access was denied, if applicable
1352
+ */
1353
+ accessDeniedReason: 'CustomerNotFound' | 'NoActiveSubscription' | 'CustomerIsArchived' | null;
1354
+
1355
+ /**
1356
+ * List of effective feature and credit entitlements
1357
+ */
1358
+ entitlements: Array<Data.Feature | Data.Credit>;
1359
+ }
1360
+
1361
+ export namespace Data {
1362
+ export interface Feature {
1363
+ accessDeniedReason:
1364
+ | 'FeatureNotFound'
1365
+ | 'CustomerNotFound'
1366
+ | 'CustomerIsArchived'
1367
+ | 'CustomerResourceNotFound'
1368
+ | 'NoActiveSubscription'
1369
+ | 'NoFeatureEntitlementInSubscription'
1370
+ | 'RequestedUsageExceedingLimit'
1371
+ | 'RequestedValuesMismatch'
1372
+ | 'BudgetExceeded'
1373
+ | 'Unknown'
1374
+ | 'FeatureTypeMismatch'
1375
+ | 'Revoked'
1376
+ | 'InsufficientCredits'
1377
+ | 'EntitlementNotFound'
1378
+ | null;
1379
+
1380
+ isGranted: boolean;
1381
+
1382
+ type: 'FEATURE';
1383
+
1384
+ currentUsage?: number;
1385
+
1386
+ /**
1387
+ * Timestamp of the last update to the entitlement grant or configuration.
1388
+ */
1389
+ entitlementUpdatedAt?: string;
1390
+
1391
+ feature?: Feature.Feature;
1392
+
1393
+ hasUnlimitedUsage?: boolean;
1394
+
1395
+ resetPeriod?: 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | null;
1396
+
1397
+ usageLimit?: number | null;
1398
+
1399
+ /**
1400
+ * The anchor for calculating the usage period for metered entitlements with a
1401
+ * reset period configured
1402
+ */
1403
+ usagePeriodAnchor?: string;
1404
+
1405
+ /**
1406
+ * The end date of the usage period for metered entitlements with a reset period
1407
+ * configured
1408
+ */
1409
+ usagePeriodEnd?: string;
1410
+
1411
+ /**
1412
+ * The start date of the usage period for metered entitlements with a reset period
1413
+ * configured
1414
+ */
1415
+ usagePeriodStart?: string;
1416
+
1417
+ /**
1418
+ * The next time the entitlement should be recalculated
1419
+ */
1420
+ validUntil?: string;
1421
+ }
1422
+
1423
+ export namespace Feature {
1424
+ export interface Feature {
1425
+ /**
1426
+ * The unique reference ID of the entitlement.
1427
+ */
1428
+ id: string;
1429
+
1430
+ /**
1431
+ * The human-readable name of the entitlement, shown in UI elements.
1432
+ */
1433
+ displayName: string;
1434
+
1435
+ /**
1436
+ * The current status of the feature.
1437
+ */
1438
+ featureStatus: 'NEW' | 'SUSPENDED' | 'ACTIVE';
1439
+
1440
+ /**
1441
+ * The type of feature associated with the entitlement.
1442
+ */
1443
+ featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
1444
+ }
1445
+ }
1446
+
1447
+ export interface Credit {
1448
+ accessDeniedReason:
1449
+ | 'FeatureNotFound'
1450
+ | 'CustomerNotFound'
1451
+ | 'CustomerIsArchived'
1452
+ | 'CustomerResourceNotFound'
1453
+ | 'NoActiveSubscription'
1454
+ | 'NoFeatureEntitlementInSubscription'
1455
+ | 'RequestedUsageExceedingLimit'
1456
+ | 'RequestedValuesMismatch'
1457
+ | 'BudgetExceeded'
1458
+ | 'Unknown'
1459
+ | 'FeatureTypeMismatch'
1460
+ | 'Revoked'
1461
+ | 'InsufficientCredits'
1462
+ | 'EntitlementNotFound'
1463
+ | null;
1464
+
1465
+ /**
1466
+ * The currency associated with a credit entitlement.
1467
+ */
1468
+ currency: Credit.Currency;
1469
+
1470
+ currentUsage: number;
1471
+
1472
+ isGranted: boolean;
1473
+
1474
+ type: 'CREDIT';
1475
+
1476
+ usageLimit: number;
1477
+
1478
+ /**
1479
+ * Timestamp of the last update to the credit usage.
1480
+ */
1481
+ usageUpdatedAt: string;
1482
+
1483
+ /**
1484
+ * Timestamp of the last update to the entitlement grant or configuration.
1485
+ */
1486
+ entitlementUpdatedAt?: string;
1487
+
1488
+ /**
1489
+ * The end date of the current billing period for recurring credit grants.
1490
+ */
1491
+ usagePeriodEnd?: string;
1492
+
1493
+ /**
1494
+ * The next time the entitlement should be recalculated
1495
+ */
1496
+ validUntil?: string;
1497
+ }
1498
+
1499
+ export namespace Credit {
1500
+ /**
1501
+ * The currency associated with a credit entitlement.
1502
+ */
1503
+ export interface Currency {
1504
+ /**
1505
+ * The unique identifier of the custom currency.
1506
+ */
1507
+ currencyId: string;
1508
+
1509
+ /**
1510
+ * The display name of the currency.
1511
+ */
1512
+ displayName: string;
1513
+
1514
+ /**
1515
+ * A description of the currency.
1516
+ */
1517
+ description?: string | null;
1518
+
1519
+ /**
1520
+ * Additional metadata associated with the currency.
1521
+ */
1522
+ metadata?: { [key: string]: string } | null;
1523
+
1524
+ /**
1525
+ * The plural form of the currency unit.
1526
+ */
1527
+ unitPlural?: string | null;
1528
+
1529
+ /**
1530
+ * The singular form of the currency unit.
1531
+ */
1532
+ unitSingular?: string | null;
1533
+ }
1534
+ }
1535
+ }
1536
+ }
1537
+
1323
1538
  export interface CustomerUpdateParams {
1324
1539
  /**
1325
1540
  * The billing currency of the customer
@@ -1451,7 +1666,7 @@ export interface CustomerUpdateParams {
1451
1666
  /**
1452
1667
  * Customer level coupon
1453
1668
  */
1454
- couponId?: string | null;
1669
+ couponId?: (string & {}) | '' | null;
1455
1670
 
1456
1671
  /**
1457
1672
  * The email of the customer
@@ -2081,7 +2296,7 @@ export interface CustomerProvisionParams {
2081
2296
  /**
2082
2297
  * Customer level coupon
2083
2298
  */
2084
- couponId?: string | null;
2299
+ couponId?: (string & {}) | '' | null;
2085
2300
 
2086
2301
  /**
2087
2302
  * The default payment method details
@@ -2508,6 +2723,13 @@ export namespace CustomerProvisionParams {
2508
2723
  }
2509
2724
  }
2510
2725
 
2726
+ export interface CustomerRetrieveEntitlementsParams {
2727
+ /**
2728
+ * Resource ID to scope entitlements to a specific resource
2729
+ */
2730
+ resourceId?: string;
2731
+ }
2732
+
2511
2733
  Customers.PaymentMethod = PaymentMethod;
2512
2734
  Customers.PromotionalEntitlements = PromotionalEntitlements;
2513
2735
 
@@ -2517,6 +2739,7 @@ export declare namespace Customers {
2517
2739
  type CustomerListResponse as CustomerListResponse,
2518
2740
  type CustomerImportResponse as CustomerImportResponse,
2519
2741
  type CustomerListResourcesResponse as CustomerListResourcesResponse,
2742
+ type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse,
2520
2743
  type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage,
2521
2744
  type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage,
2522
2745
  type CustomerUpdateParams as CustomerUpdateParams,
@@ -2524,6 +2747,7 @@ export declare namespace Customers {
2524
2747
  type CustomerImportParams as CustomerImportParams,
2525
2748
  type CustomerListResourcesParams as CustomerListResourcesParams,
2526
2749
  type CustomerProvisionParams as CustomerProvisionParams,
2750
+ type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams,
2527
2751
  };
2528
2752
 
2529
2753
  export { PaymentMethod as PaymentMethod, type PaymentMethodAttachParams as PaymentMethodAttachParams };
@@ -6,11 +6,13 @@ export {
6
6
  type CustomerListResponse,
7
7
  type CustomerImportResponse,
8
8
  type CustomerListResourcesResponse,
9
+ type CustomerRetrieveEntitlementsResponse,
9
10
  type CustomerUpdateParams,
10
11
  type CustomerListParams,
11
12
  type CustomerImportParams,
12
13
  type CustomerListResourcesParams,
13
14
  type CustomerProvisionParams,
15
+ type CustomerRetrieveEntitlementsParams,
14
16
  type CustomerListResponsesMyCursorIDPage,
15
17
  type CustomerListResourcesResponsesMyCursorIDPage,
16
18
  } from './customers';
@@ -262,7 +262,9 @@ export interface CreditListLedgerResponse {
262
262
  | 'CREDITS_EXPIRED'
263
263
  | 'CREDITS_CONSUMED'
264
264
  | 'CREDITS_VOIDED'
265
- | 'CREDITS_UPDATED';
265
+ | 'CREDITS_UPDATED'
266
+ | 'CREDITS_CONSUMPTION_TRANSFER_SOURCE'
267
+ | 'CREDITS_CONSUMPTION_TRANSFER_TARGET';
266
268
 
267
269
  /**
268
270
  * The feature ID associated with this event
@@ -504,6 +504,9 @@ export namespace FeatureUpdateFeatureParams {
504
504
  export interface Aggregation {
505
505
  function: 'SUM' | 'MAX' | 'MIN' | 'AVG' | 'COUNT' | 'UNIQUE';
506
506
 
507
+ /**
508
+ * Aggregation field name
509
+ */
507
510
  field?: string;
508
511
  }
509
512
 
@@ -513,6 +516,9 @@ export namespace FeatureUpdateFeatureParams {
513
516
 
514
517
  export namespace Filter {
515
518
  export interface Condition {
519
+ /**
520
+ * Condition field name
521
+ */
516
522
  field: string;
517
523
 
518
524
  operation:
@@ -529,6 +535,9 @@ export namespace FeatureUpdateFeatureParams {
529
535
  | 'ENDS_WITH'
530
536
  | 'IN';
531
537
 
538
+ /**
539
+ * Condition value
540
+ */
532
541
  value?: string;
533
542
 
534
543
  values?: Array<string>;
@@ -3,8 +3,6 @@
3
3
  export {
4
4
  Addons,
5
5
  type Addon,
6
- type SetPackagePricing,
7
- type SetPackagePricingResponse,
8
6
  type AddonListResponse,
9
7
  type AddonPublishResponse,
10
8
  type AddonRemoveDraftResponse,
@@ -12,7 +10,6 @@ export {
12
10
  type AddonUpdateParams,
13
11
  type AddonListParams,
14
12
  type AddonPublishParams,
15
- type AddonSetPricingParams,
16
13
  type AddonListResponsesMyCursorIDPage,
17
14
  } from './addons/index';
18
15
  export {
@@ -30,11 +27,13 @@ export {
30
27
  type CustomerListResponse,
31
28
  type CustomerImportResponse,
32
29
  type CustomerListResourcesResponse,
30
+ type CustomerRetrieveEntitlementsResponse,
33
31
  type CustomerUpdateParams,
34
32
  type CustomerListParams,
35
33
  type CustomerImportParams,
36
34
  type CustomerListResourcesParams,
37
35
  type CustomerProvisionParams,
36
+ type CustomerRetrieveEntitlementsParams,
38
37
  type CustomerListResponsesMyCursorIDPage,
39
38
  type CustomerListResourcesResponsesMyCursorIDPage,
40
39
  } from './customers/index';
@@ -58,7 +57,6 @@ export {
58
57
  type PlanUpdateParams,
59
58
  type PlanListParams,
60
59
  type PlanPublishParams,
61
- type PlanSetPricingParams,
62
60
  type PlanListResponsesMyCursorIDPage,
63
61
  } from './plans/index';
64
62
  export {
@@ -254,6 +254,13 @@ export namespace PlanEntitlement {
254
254
  * Timestamp of when the record was last updated
255
255
  */
256
256
  updatedAt: string;
257
+
258
+ /**
259
+ * The feature ID this entitlement depends on (for credit entitlements). The
260
+ * entitlement value will be calculated as: base amount × dependency feature usage
261
+ * limit
262
+ */
263
+ dependencyFeatureId?: string | null;
257
264
  }
258
265
  }
259
266
 
@@ -467,6 +474,13 @@ export namespace EntitlementCreateResponse {
467
474
  * Timestamp of when the record was last updated
468
475
  */
469
476
  updatedAt: string;
477
+
478
+ /**
479
+ * The feature ID this entitlement depends on (for credit entitlements). The
480
+ * entitlement value will be calculated as: base amount × dependency feature usage
481
+ * limit
482
+ */
483
+ dependencyFeatureId?: string | null;
470
484
  }
471
485
  }
472
486
 
@@ -685,6 +699,13 @@ export namespace EntitlementListResponse {
685
699
  * Timestamp of when the record was last updated
686
700
  */
687
701
  updatedAt: string;
702
+
703
+ /**
704
+ * The feature ID this entitlement depends on (for credit entitlements). The
705
+ * entitlement value will be calculated as: base amount × dependency feature usage
706
+ * limit
707
+ */
708
+ dependencyFeatureId?: string | null;
688
709
  }
689
710
 
690
711
  /**
@@ -871,6 +892,12 @@ export namespace EntitlementCreateParams {
871
892
  */
872
893
  behavior?: 'Increment' | 'Override';
873
894
 
895
+ /**
896
+ * The feature ID this entitlement depends on. The entitlement value will be
897
+ * calculated as: base amount × dependency feature usage limit
898
+ */
899
+ dependencyFeatureId?: string;
900
+
874
901
  /**
875
902
  * Description of the entitlement
876
903
  */
@@ -1061,6 +1088,12 @@ export declare namespace EntitlementUpdateParams {
1061
1088
  */
1062
1089
  cadence?: 'MONTH' | 'YEAR';
1063
1090
 
1091
+ /**
1092
+ * Body param: The feature ID this entitlement depends on. The entitlement value
1093
+ * will be calculated as: base amount × dependency feature usage limit
1094
+ */
1095
+ dependencyFeatureId?: string | null;
1096
+
1064
1097
  /**
1065
1098
  * Body param: Description of the entitlement
1066
1099
  */
@@ -19,6 +19,5 @@ export {
19
19
  type PlanUpdateParams,
20
20
  type PlanListParams,
21
21
  type PlanPublishParams,
22
- type PlanSetPricingParams,
23
22
  type PlanListResponsesMyCursorIDPage,
24
23
  } from './plans';