@nirvana-labs/nirvana 1.97.4 → 1.97.5

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.97.5](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.97.4...v1.97.5) (2026-07-31)
4
+
5
+
6
+ ### Chores
7
+
8
+ * **nirvana-api:** update OpenAPI spec ([2a36401](https://github.com/nirvana-labs/nirvana-typescript/commit/2a36401ed87be8a31e6c2bfe9f9d50465608b5eb))
9
+
3
10
  ## [1.97.4](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.97.3...v1.97.4) (2026-07-30)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nirvana-labs/nirvana",
3
- "version": "1.97.4",
3
+ "version": "1.97.5",
4
4
  "description": "The official TypeScript library for the Nirvana Labs API",
5
5
  "author": "Nirvana Labs <engineering@nirvanalabs.io>",
6
6
  "types": "./index.d.ts",
@@ -3,8 +3,8 @@ import { APIPromise } from "../../../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../../../internal/request-options.mjs";
4
4
  export declare class RechargePolicy extends APIResource {
5
5
  /**
6
- * Get the organization's recharge configuration: the top-up mode and the fixed and
7
- * proportional threshold components.
6
+ * Get the organization's recharge configuration: the top-up mode, the fixed and
7
+ * proportional threshold components, and when the current mode took effect.
8
8
  *
9
9
  * @example
10
10
  * ```ts
@@ -57,12 +57,17 @@ export interface OrganizationRechargePolicy {
57
57
  /**
58
58
  * Policy is the top-up mode.
59
59
  */
60
- policy?: RechargePolicyMode;
60
+ policy: RechargePolicyMode;
61
61
  /**
62
62
  * PolicyArgs carries the threshold parameters. Required when policy is
63
63
  * "automatic"; must be omitted when policy is "manual".
64
64
  */
65
- policy_args?: AutomaticPolicyArgs | null;
65
+ policy_args: AutomaticPolicyArgs | null;
66
+ /**
67
+ * PolicySince is when the policy currently in force took effect. Any change moves
68
+ * it, including an edit to the threshold parameters of an automatic policy.
69
+ */
70
+ policy_since: string;
66
71
  }
67
72
  /**
68
73
  * Policy is the top-up mode.
@@ -1 +1 @@
1
- {"version":3,"file":"recharge-policy.d.mts","sourceRoot":"","sources":["../../../src/resources/organizations/billing/recharge-policy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI7F;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAM1C;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAE5B;;;OAGG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExD,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
1
+ {"version":3,"file":"recharge-policy.d.mts","sourceRoot":"","sources":["../../../src/resources/organizations/billing/recharge-policy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI7F;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAM1C;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAExC;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExD,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -3,8 +3,8 @@ import { APIPromise } from "../../../core/api-promise.js";
3
3
  import { RequestOptions } from "../../../internal/request-options.js";
4
4
  export declare class RechargePolicy extends APIResource {
5
5
  /**
6
- * Get the organization's recharge configuration: the top-up mode and the fixed and
7
- * proportional threshold components.
6
+ * Get the organization's recharge configuration: the top-up mode, the fixed and
7
+ * proportional threshold components, and when the current mode took effect.
8
8
  *
9
9
  * @example
10
10
  * ```ts
@@ -57,12 +57,17 @@ export interface OrganizationRechargePolicy {
57
57
  /**
58
58
  * Policy is the top-up mode.
59
59
  */
60
- policy?: RechargePolicyMode;
60
+ policy: RechargePolicyMode;
61
61
  /**
62
62
  * PolicyArgs carries the threshold parameters. Required when policy is
63
63
  * "automatic"; must be omitted when policy is "manual".
64
64
  */
65
- policy_args?: AutomaticPolicyArgs | null;
65
+ policy_args: AutomaticPolicyArgs | null;
66
+ /**
67
+ * PolicySince is when the policy currently in force took effect. Any change moves
68
+ * it, including an edit to the threshold parameters of an automatic policy.
69
+ */
70
+ policy_since: string;
66
71
  }
67
72
  /**
68
73
  * Policy is the top-up mode.
@@ -1 +1 @@
1
- {"version":3,"file":"recharge-policy.d.ts","sourceRoot":"","sources":["../../../src/resources/organizations/billing/recharge-policy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI7F;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAM1C;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAE5B;;;OAGG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExD,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
1
+ {"version":3,"file":"recharge-policy.d.ts","sourceRoot":"","sources":["../../../src/resources/organizations/billing/recharge-policy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAI7F;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAM1C;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAExC;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExD,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -6,8 +6,8 @@ const resource_1 = require("../../../core/resource.js");
6
6
  const path_1 = require("../../../internal/utils/path.js");
7
7
  class RechargePolicy extends resource_1.APIResource {
8
8
  /**
9
- * Get the organization's recharge configuration: the top-up mode and the fixed and
10
- * proportional threshold components.
9
+ * Get the organization's recharge configuration: the top-up mode, the fixed and
10
+ * proportional threshold components, and when the current mode took effect.
11
11
  *
12
12
  * @example
13
13
  * ```ts
@@ -3,8 +3,8 @@ import { APIResource } from "../../../core/resource.mjs";
3
3
  import { path } from "../../../internal/utils/path.mjs";
4
4
  export class RechargePolicy extends APIResource {
5
5
  /**
6
- * Get the organization's recharge configuration: the top-up mode and the fixed and
7
- * proportional threshold components.
6
+ * Get the organization's recharge configuration: the top-up mode, the fixed and
7
+ * proportional threshold components, and when the current mode took effect.
8
8
  *
9
9
  * @example
10
10
  * ```ts
@@ -7,8 +7,8 @@ import { path } from '../../../internal/utils/path';
7
7
 
8
8
  export class RechargePolicy extends APIResource {
9
9
  /**
10
- * Get the organization's recharge configuration: the top-up mode and the fixed and
11
- * proportional threshold components.
10
+ * Get the organization's recharge configuration: the top-up mode, the fixed and
11
+ * proportional threshold components, and when the current mode took effect.
12
12
  *
13
13
  * @example
14
14
  * ```ts
@@ -77,13 +77,19 @@ export interface OrganizationRechargePolicy {
77
77
  /**
78
78
  * Policy is the top-up mode.
79
79
  */
80
- policy?: RechargePolicyMode;
80
+ policy: RechargePolicyMode;
81
81
 
82
82
  /**
83
83
  * PolicyArgs carries the threshold parameters. Required when policy is
84
84
  * "automatic"; must be omitted when policy is "manual".
85
85
  */
86
- policy_args?: AutomaticPolicyArgs | null;
86
+ policy_args: AutomaticPolicyArgs | null;
87
+
88
+ /**
89
+ * PolicySince is when the policy currently in force took effect. Any change moves
90
+ * it, including an edit to the threshold parameters of an automatic policy.
91
+ */
92
+ policy_since: string;
87
93
  }
88
94
 
89
95
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.97.4'; // x-release-please-version
1
+ export const VERSION = '1.97.5'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.97.4";
1
+ export declare const VERSION = "1.97.5";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.97.4";
1
+ export declare const VERSION = "1.97.5";
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.97.4'; // x-release-please-version
4
+ exports.VERSION = '1.97.5'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.97.4'; // x-release-please-version
1
+ export const VERSION = '1.97.5'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map