@stigg/typescript 0.1.0-beta.59 → 0.1.0-beta.61

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 (33) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/package.json +1 -1
  3. package/resources/v1/credits/credits.d.mts +9 -5
  4. package/resources/v1/credits/credits.d.mts.map +1 -1
  5. package/resources/v1/credits/credits.d.ts +9 -5
  6. package/resources/v1/credits/credits.d.ts.map +1 -1
  7. package/resources/v1/credits/credits.js.map +1 -1
  8. package/resources/v1/credits/credits.mjs.map +1 -1
  9. package/resources/v1/customers/customers.d.mts +78 -0
  10. package/resources/v1/customers/customers.d.mts.map +1 -1
  11. package/resources/v1/customers/customers.d.ts +78 -0
  12. package/resources/v1/customers/customers.d.ts.map +1 -1
  13. package/resources/v1/customers/customers.js.map +1 -1
  14. package/resources/v1/customers/customers.mjs.map +1 -1
  15. package/resources/v1/subscriptions/subscriptions.d.mts +39 -0
  16. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  17. package/resources/v1/subscriptions/subscriptions.d.ts +39 -0
  18. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  19. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  20. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  21. package/resources/v1-beta/customers/entitlements.d.mts +39 -0
  22. package/resources/v1-beta/customers/entitlements.d.mts.map +1 -1
  23. package/resources/v1-beta/customers/entitlements.d.ts +39 -0
  24. package/resources/v1-beta/customers/entitlements.d.ts.map +1 -1
  25. package/src/resources/v1/credits/credits.ts +9 -5
  26. package/src/resources/v1/customers/customers.ts +92 -0
  27. package/src/resources/v1/subscriptions/subscriptions.ts +46 -0
  28. package/src/resources/v1-beta/customers/entitlements.ts +46 -0
  29. package/src/version.ts +1 -1
  30. package/version.d.mts +1 -1
  31. package/version.d.ts +1 -1
  32. package/version.js +1 -1
  33. package/version.mjs +1 -1
@@ -1783,6 +1783,25 @@ export namespace CustomerCheckEntitlementResponse {
1783
1783
  */
1784
1784
  entitlementUpdatedAt?: string;
1785
1785
 
1786
+ /**
1787
+ * The reservation created by this request, when it asked to reserve credits and
1788
+ * was granted.
1789
+ */
1790
+ reservation?: Credit.Reservation | null;
1791
+
1792
+ /**
1793
+ * Credits held by open reservations on active grants. Already included in
1794
+ * currentUsage, so usageLimit - currentUsage is the available balance.
1795
+ */
1796
+ reserved?: number;
1797
+
1798
+ /**
1799
+ * Credits still held by open reservations on grants that expired during the hold.
1800
+ * They can still be released, but are not part of currentUsage or the balance and
1801
+ * must not be subtracted from it.
1802
+ */
1803
+ reservedOnExpiredGrants?: number;
1804
+
1786
1805
  /**
1787
1806
  * The end date of the current billing period for recurring credit grants.
1788
1807
  */
@@ -1829,6 +1848,33 @@ export namespace CustomerCheckEntitlementResponse {
1829
1848
  */
1830
1849
  unitSingular?: string | null;
1831
1850
  }
1851
+
1852
+ /**
1853
+ * The reservation created by this request, when it asked to reserve credits and
1854
+ * was granted.
1855
+ */
1856
+ export interface Reservation {
1857
+ /**
1858
+ * The client-provided reservation ID.
1859
+ */
1860
+ id: string;
1861
+
1862
+ /**
1863
+ * The amount of credits held.
1864
+ */
1865
+ amount: number;
1866
+
1867
+ /**
1868
+ * When the reservation expires. Unreleased credits return to the balance at this
1869
+ * time.
1870
+ */
1871
+ expiresAt: string;
1872
+
1873
+ /**
1874
+ * The status of the reservation.
1875
+ */
1876
+ status: 'ACTIVE' | 'RELEASED';
1877
+ }
1832
1878
  }
1833
1879
  }
1834
1880
 
@@ -2489,6 +2535,25 @@ export namespace CustomerRetrieveEntitlementsResponse {
2489
2535
  */
2490
2536
  entitlementUpdatedAt?: string;
2491
2537
 
2538
+ /**
2539
+ * The reservation created by this request, when it asked to reserve credits and
2540
+ * was granted.
2541
+ */
2542
+ reservation?: Credit.Reservation | null;
2543
+
2544
+ /**
2545
+ * Credits held by open reservations on active grants. Already included in
2546
+ * currentUsage, so usageLimit - currentUsage is the available balance.
2547
+ */
2548
+ reserved?: number;
2549
+
2550
+ /**
2551
+ * Credits still held by open reservations on grants that expired during the hold.
2552
+ * They can still be released, but are not part of currentUsage or the balance and
2553
+ * must not be subtracted from it.
2554
+ */
2555
+ reservedOnExpiredGrants?: number;
2556
+
2492
2557
  /**
2493
2558
  * The end date of the current billing period for recurring credit grants.
2494
2559
  */
@@ -2535,6 +2600,33 @@ export namespace CustomerRetrieveEntitlementsResponse {
2535
2600
  */
2536
2601
  unitSingular?: string | null;
2537
2602
  }
2603
+
2604
+ /**
2605
+ * The reservation created by this request, when it asked to reserve credits and
2606
+ * was granted.
2607
+ */
2608
+ export interface Reservation {
2609
+ /**
2610
+ * The client-provided reservation ID.
2611
+ */
2612
+ id: string;
2613
+
2614
+ /**
2615
+ * The amount of credits held.
2616
+ */
2617
+ amount: number;
2618
+
2619
+ /**
2620
+ * When the reservation expires. Unreleased credits return to the balance at this
2621
+ * time.
2622
+ */
2623
+ expiresAt: string;
2624
+
2625
+ /**
2626
+ * The status of the reservation.
2627
+ */
2628
+ status: 'ACTIVE' | 'RELEASED';
2629
+ }
2538
2630
  }
2539
2631
  }
2540
2632
  }
@@ -2939,6 +2939,25 @@ export namespace SubscriptionProvisionResponse {
2939
2939
  */
2940
2940
  entitlementUpdatedAt?: string;
2941
2941
 
2942
+ /**
2943
+ * The reservation created by this request, when it asked to reserve credits and
2944
+ * was granted.
2945
+ */
2946
+ reservation?: UnionObjectVariant1.Reservation | null;
2947
+
2948
+ /**
2949
+ * Credits held by open reservations on active grants. Already included in
2950
+ * currentUsage, so usageLimit - currentUsage is the available balance.
2951
+ */
2952
+ reserved?: number;
2953
+
2954
+ /**
2955
+ * Credits still held by open reservations on grants that expired during the hold.
2956
+ * They can still be released, but are not part of currentUsage or the balance and
2957
+ * must not be subtracted from it.
2958
+ */
2959
+ reservedOnExpiredGrants?: number;
2960
+
2942
2961
  /**
2943
2962
  * The end date of the current billing period for recurring credit grants.
2944
2963
  */
@@ -2985,6 +3004,33 @@ export namespace SubscriptionProvisionResponse {
2985
3004
  */
2986
3005
  unitSingular?: string | null;
2987
3006
  }
3007
+
3008
+ /**
3009
+ * The reservation created by this request, when it asked to reserve credits and
3010
+ * was granted.
3011
+ */
3012
+ export interface Reservation {
3013
+ /**
3014
+ * The client-provided reservation ID.
3015
+ */
3016
+ id: string;
3017
+
3018
+ /**
3019
+ * The amount of credits held.
3020
+ */
3021
+ amount: number;
3022
+
3023
+ /**
3024
+ * When the reservation expires. Unreleased credits return to the balance at this
3025
+ * time.
3026
+ */
3027
+ expiresAt: string;
3028
+
3029
+ /**
3030
+ * The status of the reservation.
3031
+ */
3032
+ status: 'ACTIVE' | 'RELEASED';
3033
+ }
2988
3034
  }
2989
3035
 
2990
3036
  /**
@@ -226,6 +226,25 @@ export namespace EntitlementCheckResponse {
226
226
  */
227
227
  entitlementUpdatedAt?: string;
228
228
 
229
+ /**
230
+ * The reservation created by this request, when it asked to reserve credits and
231
+ * was granted.
232
+ */
233
+ reservation?: Credit.Reservation | null;
234
+
235
+ /**
236
+ * Credits held by open reservations on active grants. Already included in
237
+ * currentUsage, so usageLimit - currentUsage is the available balance.
238
+ */
239
+ reserved?: number;
240
+
241
+ /**
242
+ * Credits still held by open reservations on grants that expired during the hold.
243
+ * They can still be released, but are not part of currentUsage or the balance and
244
+ * must not be subtracted from it.
245
+ */
246
+ reservedOnExpiredGrants?: number;
247
+
229
248
  /**
230
249
  * The end date of the current billing period for recurring credit grants.
231
250
  */
@@ -305,6 +324,33 @@ export namespace EntitlementCheckResponse {
305
324
  */
306
325
  usageLimit: number | null;
307
326
  }
327
+
328
+ /**
329
+ * The reservation created by this request, when it asked to reserve credits and
330
+ * was granted.
331
+ */
332
+ export interface Reservation {
333
+ /**
334
+ * The client-provided reservation ID.
335
+ */
336
+ id: string;
337
+
338
+ /**
339
+ * The amount of credits held.
340
+ */
341
+ amount: number;
342
+
343
+ /**
344
+ * When the reservation expires. Unreleased credits return to the balance at this
345
+ * time.
346
+ */
347
+ expiresAt: string;
348
+
349
+ /**
350
+ * The status of the reservation.
351
+ */
352
+ status: 'ACTIVE' | 'RELEASED';
353
+ }
308
354
  }
309
355
  }
310
356
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-beta.59'; // x-release-please-version
1
+ export const VERSION = '0.1.0-beta.61'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-beta.59";
1
+ export declare const VERSION = "0.1.0-beta.61";
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.59";
1
+ export declare const VERSION = "0.1.0-beta.61";
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.59'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-beta.61'; // 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.59'; // x-release-please-version
1
+ export const VERSION = '0.1.0-beta.61'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map