@stigg/typescript 0.1.0-alpha.21 → 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 (112) hide show
  1. package/CHANGELOG.md +37 -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/coupons.d.mts +3 -3
  22. package/resources/v1/coupons.d.ts +3 -3
  23. package/resources/v1/customers/customers.d.mts +935 -5
  24. package/resources/v1/customers/customers.d.mts.map +1 -1
  25. package/resources/v1/customers/customers.d.ts +935 -5
  26. package/resources/v1/customers/customers.d.ts.map +1 -1
  27. package/resources/v1/customers/customers.js +7 -0
  28. package/resources/v1/customers/customers.js.map +1 -1
  29. package/resources/v1/customers/customers.mjs +7 -0
  30. package/resources/v1/customers/customers.mjs.map +1 -1
  31. package/resources/v1/customers/index.d.mts +1 -1
  32. package/resources/v1/customers/index.d.mts.map +1 -1
  33. package/resources/v1/customers/index.d.ts +1 -1
  34. package/resources/v1/customers/index.d.ts.map +1 -1
  35. package/resources/v1/customers/index.js.map +1 -1
  36. package/resources/v1/customers/index.mjs.map +1 -1
  37. package/resources/v1/events/credits/credits.d.mts +1 -1
  38. package/resources/v1/events/credits/credits.d.mts.map +1 -1
  39. package/resources/v1/events/credits/credits.d.ts +1 -1
  40. package/resources/v1/events/credits/credits.d.ts.map +1 -1
  41. package/resources/v1/events/credits/credits.js.map +1 -1
  42. package/resources/v1/events/credits/credits.mjs.map +1 -1
  43. package/resources/v1/events/credits/grants.d.mts +1 -1
  44. package/resources/v1/events/credits/grants.d.ts +1 -1
  45. package/resources/v1/features.d.mts +9 -0
  46. package/resources/v1/features.d.mts.map +1 -1
  47. package/resources/v1/features.d.ts +9 -0
  48. package/resources/v1/features.d.ts.map +1 -1
  49. package/resources/v1/index.d.mts +3 -3
  50. package/resources/v1/index.d.mts.map +1 -1
  51. package/resources/v1/index.d.ts +3 -3
  52. package/resources/v1/index.d.ts.map +1 -1
  53. package/resources/v1/index.js.map +1 -1
  54. package/resources/v1/index.mjs.map +1 -1
  55. package/resources/v1/plans/entitlements.d.mts +28 -0
  56. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  57. package/resources/v1/plans/entitlements.d.ts +28 -0
  58. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  59. package/resources/v1/plans/index.d.mts +1 -1
  60. package/resources/v1/plans/index.d.mts.map +1 -1
  61. package/resources/v1/plans/index.d.ts +1 -1
  62. package/resources/v1/plans/index.d.ts.map +1 -1
  63. package/resources/v1/plans/index.js.map +1 -1
  64. package/resources/v1/plans/index.mjs.map +1 -1
  65. package/resources/v1/plans/plans.d.mts +392 -391
  66. package/resources/v1/plans/plans.d.mts.map +1 -1
  67. package/resources/v1/plans/plans.d.ts +392 -391
  68. package/resources/v1/plans/plans.d.ts.map +1 -1
  69. package/resources/v1/plans/plans.js +0 -7
  70. package/resources/v1/plans/plans.js.map +1 -1
  71. package/resources/v1/plans/plans.mjs +0 -7
  72. package/resources/v1/plans/plans.mjs.map +1 -1
  73. package/resources/v1/products.d.mts +9 -5
  74. package/resources/v1/products.d.mts.map +1 -1
  75. package/resources/v1/products.d.ts +9 -5
  76. package/resources/v1/products.d.ts.map +1 -1
  77. package/resources/v1/subscriptions/subscriptions.d.mts +31 -21
  78. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  79. package/resources/v1/subscriptions/subscriptions.d.ts +31 -21
  80. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  81. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  82. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  83. package/resources/v1/usage.d.mts +1 -1
  84. package/resources/v1/usage.d.ts +1 -1
  85. package/resources/v1/v1.d.mts +6 -6
  86. package/resources/v1/v1.d.mts.map +1 -1
  87. package/resources/v1/v1.d.ts +6 -6
  88. package/resources/v1/v1.d.ts.map +1 -1
  89. package/resources/v1/v1.js.map +1 -1
  90. package/resources/v1/v1.mjs.map +1 -1
  91. package/src/resources/v1/addons/addons.ts +1111 -2508
  92. package/src/resources/v1/addons/entitlements.ts +33 -0
  93. package/src/resources/v1/addons/index.ts +0 -3
  94. package/src/resources/v1/coupons.ts +3 -3
  95. package/src/resources/v1/customers/customers.ts +2064 -4
  96. package/src/resources/v1/customers/index.ts +2 -0
  97. package/src/resources/v1/events/credits/credits.ts +3 -1
  98. package/src/resources/v1/events/credits/grants.ts +1 -1
  99. package/src/resources/v1/features.ts +9 -0
  100. package/src/resources/v1/index.ts +2 -4
  101. package/src/resources/v1/plans/entitlements.ts +33 -0
  102. package/src/resources/v1/plans/index.ts +0 -1
  103. package/src/resources/v1/plans/plans.ts +924 -930
  104. package/src/resources/v1/products.ts +9 -5
  105. package/src/resources/v1/subscriptions/subscriptions.ts +28 -22
  106. package/src/resources/v1/usage.ts +1 -1
  107. package/src/resources/v1/v1.ts +4 -8
  108. package/src/version.ts +1 -1
  109. package/version.d.mts +1 -1
  110. package/version.d.ts +1 -1
  111. package/version.js +1 -1
  112. package/version.mjs +1 -1
@@ -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
@@ -613,7 +613,7 @@ export namespace GrantCreateParams {
613
613
  amount: number;
614
614
 
615
615
  /**
616
- * The price currency
616
+ * ISO 4217 currency code
617
617
  */
618
618
  currency:
619
619
  | 'usd'
@@ -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';