@nirvana-labs/nirvana 1.93.0 → 1.93.2

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 (56) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +1 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -0
  5. package/client.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/nks/clusters/pools/availability.d.mts +0 -17
  8. package/resources/nks/clusters/pools/availability.d.mts.map +1 -1
  9. package/resources/nks/clusters/pools/availability.d.ts +0 -17
  10. package/resources/nks/clusters/pools/availability.d.ts.map +1 -1
  11. package/resources/nks/clusters/pools/cost.d.mts +0 -17
  12. package/resources/nks/clusters/pools/cost.d.mts.map +1 -1
  13. package/resources/nks/clusters/pools/cost.d.ts +0 -17
  14. package/resources/nks/clusters/pools/cost.d.ts.map +1 -1
  15. package/resources/nks/clusters/pools/pools.d.mts +3 -19
  16. package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
  17. package/resources/nks/clusters/pools/pools.d.ts +3 -19
  18. package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
  19. package/resources/nks/clusters/pools/pools.js.map +1 -1
  20. package/resources/nks/clusters/pools/pools.mjs.map +1 -1
  21. package/resources/organizations/billing.d.mts +2 -36
  22. package/resources/organizations/billing.d.mts.map +1 -1
  23. package/resources/organizations/billing.d.ts +2 -36
  24. package/resources/organizations/billing.d.ts.map +1 -1
  25. package/resources/organizations/billing.js.map +1 -1
  26. package/resources/organizations/billing.mjs.map +1 -1
  27. package/resources/organizations/index.d.mts +1 -1
  28. package/resources/organizations/index.d.mts.map +1 -1
  29. package/resources/organizations/index.d.ts +1 -1
  30. package/resources/organizations/index.d.ts.map +1 -1
  31. package/resources/organizations/index.js.map +1 -1
  32. package/resources/organizations/index.mjs.map +1 -1
  33. package/resources/organizations/organizations.d.mts +14 -2
  34. package/resources/organizations/organizations.d.mts.map +1 -1
  35. package/resources/organizations/organizations.d.ts +14 -2
  36. package/resources/organizations/organizations.d.ts.map +1 -1
  37. package/resources/organizations/organizations.js.map +1 -1
  38. package/resources/organizations/organizations.mjs.map +1 -1
  39. package/resources/shared.d.mts +62 -3
  40. package/resources/shared.d.mts.map +1 -1
  41. package/resources/shared.d.ts +62 -3
  42. package/resources/shared.d.ts.map +1 -1
  43. package/src/client.ts +1 -0
  44. package/src/resources/nks/clusters/pools/availability.ts +0 -19
  45. package/src/resources/nks/clusters/pools/cost.ts +0 -19
  46. package/src/resources/nks/clusters/pools/pools.ts +3 -21
  47. package/src/resources/organizations/api.md +0 -4
  48. package/src/resources/organizations/billing.ts +2 -43
  49. package/src/resources/organizations/index.ts +1 -1
  50. package/src/resources/organizations/organizations.ts +17 -2
  51. package/src/resources/shared.ts +72 -3
  52. package/src/version.ts +1 -1
  53. package/version.d.mts +1 -1
  54. package/version.d.ts +1 -1
  55. package/version.js +1 -1
  56. package/version.mjs +1 -1
@@ -1,7 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  /**
4
- * Cost quote returned by POST /cost.
4
+ * Cost quote returned by POST /cost. current_summary and updated_summary hold the
5
+ * org billing summary now and with this resource; omitted when the caller cannot
6
+ * view billing.
5
7
  */
6
8
  export interface CostQuote {
7
9
  /**
@@ -23,6 +25,20 @@ export interface CostQuote {
23
25
  * Priced rows, one per usage dimension emitted by the resource.
24
26
  */
25
27
  usage_dimensions: Array<CostQuote.UsageDimension>;
28
+
29
+ /**
30
+ * Forward-looking billing summary for an organization. All costs are run-rate
31
+ * projections from the organization's current active usage ("≈ $X/mo at current
32
+ * usage").
33
+ */
34
+ current_summary?: OrganizationBillingSummary;
35
+
36
+ /**
37
+ * Forward-looking billing summary for an organization. All costs are run-rate
38
+ * projections from the organization's current active usage ("≈ $X/mo at current
39
+ * usage").
40
+ */
41
+ updated_summary?: OrganizationBillingSummary;
26
42
  }
27
43
 
28
44
  export namespace CostQuote {
@@ -58,8 +74,9 @@ export namespace CostQuote {
58
74
  }
59
75
 
60
76
  /**
61
- * Cost quote returned by PATCH /:id/cost: the current-state quote, the post-update
62
- * quote, and the signed diff.
77
+ * Cost quote returned by PATCH /:id/cost: current-state quote, post-update quote,
78
+ * and signed diff. current_summary and updated_summary omitted when the caller
79
+ * cannot view billing.
63
80
  */
64
81
  export interface CostQuoteUpdate {
65
82
  /**
@@ -86,6 +103,20 @@ export interface CostQuoteUpdate {
86
103
  * Timestamp the quote was priced at.
87
104
  */
88
105
  priced_at: string;
106
+
107
+ /**
108
+ * Forward-looking billing summary for an organization. All costs are run-rate
109
+ * projections from the organization's current active usage ("≈ $X/mo at current
110
+ * usage").
111
+ */
112
+ current_summary?: OrganizationBillingSummary;
113
+
114
+ /**
115
+ * Forward-looking billing summary for an organization. All costs are run-rate
116
+ * projections from the organization's current active usage ("≈ $X/mo at current
117
+ * usage").
118
+ */
119
+ updated_summary?: OrganizationBillingSummary;
89
120
  }
90
121
 
91
122
  export namespace CostQuoteUpdate {
@@ -267,6 +298,44 @@ export namespace CostQuoteUpdate {
267
298
  }
268
299
  }
269
300
 
301
+ /**
302
+ * Forward-looking billing summary for an organization. All costs are run-rate
303
+ * projections from the organization's current active usage ("≈ $X/mo at current
304
+ * usage").
305
+ */
306
+ export interface OrganizationBillingSummary {
307
+ /**
308
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
309
+ */
310
+ daily_cost: string;
311
+
312
+ /**
313
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
314
+ */
315
+ effective_balance: string;
316
+
317
+ /**
318
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
319
+ */
320
+ monthly_cost: string;
321
+
322
+ /**
323
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
324
+ */
325
+ recharge_threshold_fraction: string;
326
+
327
+ /**
328
+ * Projected date the balance reaches the recharge threshold at the current
329
+ * run-rate. Null when there is no active usage (never charges).
330
+ */
331
+ estimated_next_charge_at?: string | null;
332
+
333
+ /**
334
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
335
+ */
336
+ runway_months?: string | null;
337
+ }
338
+
270
339
  /**
271
340
  * Pagination response details.
272
341
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.93.0'; // x-release-please-version
1
+ export const VERSION = '1.93.2'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.93.0";
1
+ export declare const VERSION = "1.93.2";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.93.0";
1
+ export declare const VERSION = "1.93.2";
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 = '1.93.0'; // x-release-please-version
4
+ exports.VERSION = '1.93.2'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.93.0'; // x-release-please-version
1
+ export const VERSION = '1.93.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map