@nirvana-labs/nirvana 1.91.11 → 1.92.0

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 (39) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +1 -1
  3. package/resources/organizations/billing.d.mts +55 -0
  4. package/resources/organizations/billing.d.mts.map +1 -0
  5. package/resources/organizations/billing.d.ts +55 -0
  6. package/resources/organizations/billing.d.ts.map +1 -0
  7. package/resources/organizations/billing.js +26 -0
  8. package/resources/organizations/billing.js.map +1 -0
  9. package/resources/organizations/billing.mjs +22 -0
  10. package/resources/organizations/billing.mjs.map +1 -0
  11. package/resources/organizations/index.d.mts +1 -0
  12. package/resources/organizations/index.d.mts.map +1 -1
  13. package/resources/organizations/index.d.ts +1 -0
  14. package/resources/organizations/index.d.ts.map +1 -1
  15. package/resources/organizations/index.js +3 -1
  16. package/resources/organizations/index.js.map +1 -1
  17. package/resources/organizations/index.mjs +1 -0
  18. package/resources/organizations/index.mjs.map +1 -1
  19. package/resources/organizations/organizations.d.mts +4 -0
  20. package/resources/organizations/organizations.d.mts.map +1 -1
  21. package/resources/organizations/organizations.d.ts +4 -0
  22. package/resources/organizations/organizations.d.ts.map +1 -1
  23. package/resources/organizations/organizations.js +4 -0
  24. package/resources/organizations/organizations.js.map +1 -1
  25. package/resources/organizations/organizations.mjs +4 -0
  26. package/resources/organizations/organizations.mjs.map +1 -1
  27. package/src/resources/organizations/api.md +10 -0
  28. package/src/resources/organizations/billing.ts +67 -0
  29. package/src/resources/organizations/index.ts +1 -0
  30. package/src/resources/organizations/organizations.ts +6 -0
  31. package/src/version.ts +1 -1
  32. package/version.d.mts +1 -1
  33. package/version.d.mts.map +1 -1
  34. package/version.d.ts +1 -1
  35. package/version.d.ts.map +1 -1
  36. package/version.js +1 -1
  37. package/version.js.map +1 -1
  38. package/version.mjs +1 -1
  39. package/version.mjs.map +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.92.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.91.11...v1.92.0) (2026-06-30)
4
+
5
+
6
+ ### Features
7
+
8
+ * **stainless:** wire organizations.billing.summary into SDK config ([ec0e036](https://github.com/nirvana-labs/nirvana-typescript/commit/ec0e03667b43de76489fece7c8191bb65ca474eb))
9
+
10
+
11
+ ### Chores
12
+
13
+ * update SDK ([e02dd0a](https://github.com/nirvana-labs/nirvana-typescript/commit/e02dd0a0995de8f87959bfb5b80b6422b437157a))
14
+
3
15
  ## [1.91.11](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.91.10...v1.91.11) (2026-06-29)
4
16
 
5
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nirvana-labs/nirvana",
3
- "version": "1.91.11",
3
+ "version": "1.92.0",
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",
@@ -0,0 +1,55 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Billing extends APIResource {
5
+ /**
6
+ * Get the organization's billing summary: effective balance, monthly and daily
7
+ * run-rate cost, runway, and the projected next-recharge date. Costs are run-rate
8
+ * projections.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const organizationBillingSummary =
13
+ * await client.organizations.billing.summary(
14
+ * 'organization_id',
15
+ * );
16
+ * ```
17
+ */
18
+ summary(organizationID: string, options?: RequestOptions): APIPromise<OrganizationBillingSummary>;
19
+ }
20
+ /**
21
+ * Forward-looking billing summary for an organization. All costs are run-rate
22
+ * projections from the organization's current active usage ("≈ $X/mo at current
23
+ * usage").
24
+ */
25
+ export interface OrganizationBillingSummary {
26
+ /**
27
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
28
+ */
29
+ daily_cost: string;
30
+ /**
31
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
32
+ */
33
+ effective_balance: string;
34
+ /**
35
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
36
+ */
37
+ monthly_cost: string;
38
+ /**
39
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
40
+ */
41
+ recharge_threshold_fraction: string;
42
+ /**
43
+ * Projected date the balance reaches the recharge threshold at the current
44
+ * run-rate. Null when there is no active usage (never charges).
45
+ */
46
+ estimated_next_charge_at?: string | null;
47
+ /**
48
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
49
+ */
50
+ runway_months?: string | null;
51
+ }
52
+ export declare namespace Billing {
53
+ export { type OrganizationBillingSummary as OrganizationBillingSummary };
54
+ }
55
+ //# sourceMappingURL=billing.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/billing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGlG;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;IAEpC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,0BAA0B,IAAI,0BAA0B,EAAE,CAAC;CAC1E"}
@@ -0,0 +1,55 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Billing extends APIResource {
5
+ /**
6
+ * Get the organization's billing summary: effective balance, monthly and daily
7
+ * run-rate cost, runway, and the projected next-recharge date. Costs are run-rate
8
+ * projections.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const organizationBillingSummary =
13
+ * await client.organizations.billing.summary(
14
+ * 'organization_id',
15
+ * );
16
+ * ```
17
+ */
18
+ summary(organizationID: string, options?: RequestOptions): APIPromise<OrganizationBillingSummary>;
19
+ }
20
+ /**
21
+ * Forward-looking billing summary for an organization. All costs are run-rate
22
+ * projections from the organization's current active usage ("≈ $X/mo at current
23
+ * usage").
24
+ */
25
+ export interface OrganizationBillingSummary {
26
+ /**
27
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
28
+ */
29
+ daily_cost: string;
30
+ /**
31
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
32
+ */
33
+ effective_balance: string;
34
+ /**
35
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
36
+ */
37
+ monthly_cost: string;
38
+ /**
39
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
40
+ */
41
+ recharge_threshold_fraction: string;
42
+ /**
43
+ * Projected date the balance reaches the recharge threshold at the current
44
+ * run-rate. Null when there is no active usage (never charges).
45
+ */
46
+ estimated_next_charge_at?: string | null;
47
+ /**
48
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
49
+ */
50
+ runway_months?: string | null;
51
+ }
52
+ export declare namespace Billing {
53
+ export { type OrganizationBillingSummary as OrganizationBillingSummary };
54
+ }
55
+ //# sourceMappingURL=billing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/billing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGlG;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;IAEpC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,0BAA0B,IAAI,0BAA0B,EAAE,CAAC;CAC1E"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Billing = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Billing extends resource_1.APIResource {
8
+ /**
9
+ * Get the organization's billing summary: effective balance, monthly and daily
10
+ * run-rate cost, runway, and the projected next-recharge date. Costs are run-rate
11
+ * projections.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const organizationBillingSummary =
16
+ * await client.organizations.billing.summary(
17
+ * 'organization_id',
18
+ * );
19
+ * ```
20
+ */
21
+ summary(organizationID, options) {
22
+ return this._client.get((0, path_1.path) `/v1/organizations/${organizationID}/billing/summary`, options);
23
+ }
24
+ }
25
+ exports.Billing = Billing;
26
+ //# sourceMappingURL=billing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.js","sourceRoot":"","sources":["../../src/resources/organizations/billing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,cAAsB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF;AAjBD,0BAiBC"}
@@ -0,0 +1,22 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ export class Billing extends APIResource {
5
+ /**
6
+ * Get the organization's billing summary: effective balance, monthly and daily
7
+ * run-rate cost, runway, and the projected next-recharge date. Costs are run-rate
8
+ * projections.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const organizationBillingSummary =
13
+ * await client.organizations.billing.summary(
14
+ * 'organization_id',
15
+ * );
16
+ * ```
17
+ */
18
+ summary(organizationID, options) {
19
+ return this._client.get(path `/v1/organizations/${organizationID}/billing/summary`, options);
20
+ }
21
+ }
22
+ //# sourceMappingURL=billing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.mjs","sourceRoot":"","sources":["../../src/resources/organizations/billing.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,cAAsB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,cAAc,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF"}
@@ -1,4 +1,5 @@
1
1
  export { Address, type OrganizationAddress, type AddressCreateParams, type AddressUpdateParams, } from "./address.mjs";
2
+ export { Billing, type OrganizationBillingSummary } from "./billing.mjs";
2
3
  export { Memberships, type OrganizationMembership, type OrganizationMembershipList, type MembershipGetParams, type MembershipListParams, type OrganizationMembershipsCursor, } from "./memberships.mjs";
3
4
  export { Organizations } from "./organizations.mjs";
4
5
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,sBAAkB;AACnB,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,GACnC,0BAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,4BAAwB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,sBAAkB;AACnB,OAAO,EAAE,OAAO,EAAE,KAAK,0BAA0B,EAAE,sBAAkB;AACrE,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,GACnC,0BAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,4BAAwB"}
@@ -1,4 +1,5 @@
1
1
  export { Address, type OrganizationAddress, type AddressCreateParams, type AddressUpdateParams, } from "./address.js";
2
+ export { Billing, type OrganizationBillingSummary } from "./billing.js";
2
3
  export { Memberships, type OrganizationMembership, type OrganizationMembershipList, type MembershipGetParams, type MembershipListParams, type OrganizationMembershipsCursor, } from "./memberships.js";
3
4
  export { Organizations } from "./organizations.js";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,qBAAkB;AACnB,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,GACnC,yBAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,2BAAwB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,qBAAkB;AACnB,OAAO,EAAE,OAAO,EAAE,KAAK,0BAA0B,EAAE,qBAAkB;AACrE,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,GACnC,yBAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,2BAAwB"}
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Organizations = exports.Memberships = exports.Address = void 0;
4
+ exports.Organizations = exports.Memberships = exports.Billing = exports.Address = void 0;
5
5
  var address_1 = require("./address.js");
6
6
  Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return address_1.Address; } });
7
+ var billing_1 = require("./billing.js");
8
+ Object.defineProperty(exports, "Billing", { enumerable: true, get: function () { return billing_1.Billing; } });
7
9
  var memberships_1 = require("./memberships.js");
8
10
  Object.defineProperty(exports, "Memberships", { enumerable: true, get: function () { return memberships_1.Memberships; } });
9
11
  var organizations_1 = require("./organizations.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,gDAOuB;AANrB,0GAAA,WAAW,OAAA;AAOb,oDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,wCAAqE;AAA5D,kGAAA,OAAO,OAAA;AAChB,gDAOuB;AANrB,0GAAA,WAAW,OAAA;AAOb,oDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Address, } from "./address.mjs";
3
+ export { Billing } from "./billing.mjs";
3
4
  export { Memberships, } from "./memberships.mjs";
4
5
  export { Organizations } from "./organizations.mjs";
5
6
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAIR,sBAAkB;AACnB,OAAO,EACL,WAAW,GAMZ,0BAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,4BAAwB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAIR,sBAAkB;AACnB,OAAO,EAAE,OAAO,EAAmC,sBAAkB;AACrE,OAAO,EACL,WAAW,GAMZ,0BAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,4BAAwB"}
@@ -2,6 +2,8 @@ import { APIResource } from "../../core/resource.mjs";
2
2
  import * as Shared from "../shared.mjs";
3
3
  import * as AddressAPI from "./address.mjs";
4
4
  import { Address, AddressCreateParams, AddressUpdateParams, OrganizationAddress } from "./address.mjs";
5
+ import * as BillingAPI from "./billing.mjs";
6
+ import { Billing, OrganizationBillingSummary } from "./billing.mjs";
5
7
  import * as MembershipsAPI from "./memberships.mjs";
6
8
  import { MembershipGetParams, MembershipListParams, Memberships, OrganizationMembership, OrganizationMembershipList, OrganizationMembershipsCursor } from "./memberships.mjs";
7
9
  import { APIPromise } from "../../core/api-promise.mjs";
@@ -10,6 +12,7 @@ import { RequestOptions } from "../../internal/request-options.mjs";
10
12
  export declare class Organizations extends APIResource {
11
13
  memberships: MembershipsAPI.Memberships;
12
14
  address: AddressAPI.Address;
15
+ billing: BillingAPI.Billing;
13
16
  /**
14
17
  * Create a new organization
15
18
  *
@@ -196,5 +199,6 @@ export declare namespace Organizations {
196
199
  export { type Organization as Organization, type OrganizationDomain as OrganizationDomain, type OrganizationList as OrganizationList, type OrganizationServices as OrganizationServices, type OrganizationType as OrganizationType, type OrganizationsCursor as OrganizationsCursor, type OrganizationCreateParams as OrganizationCreateParams, type OrganizationUpdateParams as OrganizationUpdateParams, type OrganizationListParams as OrganizationListParams, };
197
200
  export { Memberships as Memberships, type OrganizationMembership as OrganizationMembership, type OrganizationMembershipList as OrganizationMembershipList, type OrganizationMembershipsCursor as OrganizationMembershipsCursor, type MembershipGetParams as MembershipGetParams, type MembershipListParams as MembershipListParams, };
198
201
  export { Address as Address, type OrganizationAddress as OrganizationAddress, type AddressCreateParams as AddressCreateParams, type AddressUpdateParams as AddressUpdateParams, };
202
+ export { Billing as Billing, type OrganizationBillingSummary as OrganizationBillingSummary };
199
203
  }
200
204
  //# sourceMappingURL=organizations.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,sBAAkB;AACnG,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC9B,0BAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,kCAA8B;AAE/E,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI1F;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI/E;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAI3B;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAA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AmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"organizations.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,sBAAkB;AACnG,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,0BAA0B,EAAE,sBAAkB;AAChE,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC9B,0BAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,kCAA8B;AAE/E,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI1F;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI/E;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,wBAAw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IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,0BAA0B,IAAI,0BAA0B,EAAE,CAAC;CAC9F"}
@@ -2,6 +2,8 @@ import { APIResource } from "../../core/resource.js";
2
2
  import * as Shared from "../shared.js";
3
3
  import * as AddressAPI from "./address.js";
4
4
  import { Address, AddressCreateParams, AddressUpdateParams, OrganizationAddress } from "./address.js";
5
+ import * as BillingAPI from "./billing.js";
6
+ import { Billing, OrganizationBillingSummary } from "./billing.js";
5
7
  import * as MembershipsAPI from "./memberships.js";
6
8
  import { MembershipGetParams, MembershipListParams, Memberships, OrganizationMembership, OrganizationMembershipList, OrganizationMembershipsCursor } from "./memberships.js";
7
9
  import { APIPromise } from "../../core/api-promise.js";
@@ -10,6 +12,7 @@ import { RequestOptions } from "../../internal/request-options.js";
10
12
  export declare class Organizations extends APIResource {
11
13
  memberships: MembershipsAPI.Memberships;
12
14
  address: AddressAPI.Address;
15
+ billing: BillingAPI.Billing;
13
16
  /**
14
17
  * Create a new organization
15
18
  *
@@ -196,5 +199,6 @@ export declare namespace Organizations {
196
199
  export { type Organization as Organization, type OrganizationDomain as OrganizationDomain, type OrganizationList as OrganizationList, type OrganizationServices as OrganizationServices, type OrganizationType as OrganizationType, type OrganizationsCursor as OrganizationsCursor, type OrganizationCreateParams as OrganizationCreateParams, type OrganizationUpdateParams as OrganizationUpdateParams, type OrganizationListParams as OrganizationListParams, };
197
200
  export { Memberships as Memberships, type OrganizationMembership as OrganizationMembership, type OrganizationMembershipList as OrganizationMembershipList, type OrganizationMembershipsCursor as OrganizationMembershipsCursor, type MembershipGetParams as MembershipGetParams, type MembershipListParams as MembershipListParams, };
198
201
  export { Address as Address, type OrganizationAddress as OrganizationAddress, type AddressCreateParams as AddressCreateParams, type AddressUpdateParams as AddressUpdateParams, };
202
+ export { Billing as Billing, type OrganizationBillingSummary as OrganizationBillingSummary };
199
203
  }
200
204
  //# sourceMappingURL=organizations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,qBAAkB;AACnG,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC9B,yBAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,iCAA8B;AAE/E,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI1F;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI/E;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GAC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IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,qBAAkB;AACnG,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,0BAA0B,EAAE,qBAAkB;AAChE,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC9B,yBAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,iCAA8B;AAE/E,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI1F;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI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AA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,0BAA0B,IAAI,0BAA0B,EAAE,CAAC;CAC9F"}
@@ -6,6 +6,8 @@ const tslib_1 = require("../../internal/tslib.js");
6
6
  const resource_1 = require("../../core/resource.js");
7
7
  const AddressAPI = tslib_1.__importStar(require("./address.js"));
8
8
  const address_1 = require("./address.js");
9
+ const BillingAPI = tslib_1.__importStar(require("./billing.js"));
10
+ const billing_1 = require("./billing.js");
9
11
  const MembershipsAPI = tslib_1.__importStar(require("./memberships.js"));
10
12
  const memberships_1 = require("./memberships.js");
11
13
  const pagination_1 = require("../../core/pagination.js");
@@ -16,6 +18,7 @@ class Organizations extends resource_1.APIResource {
16
18
  super(...arguments);
17
19
  this.memberships = new MembershipsAPI.Memberships(this._client);
18
20
  this.address = new AddressAPI.Address(this._client);
21
+ this.billing = new BillingAPI.Billing(this._client);
19
22
  }
20
23
  /**
21
24
  * Create a new organization
@@ -88,4 +91,5 @@ class Organizations extends resource_1.APIResource {
88
91
  exports.Organizations = Organizations;
89
92
  Organizations.Memberships = memberships_1.Memberships;
90
93
  Organizations.Address = address_1.Address;
94
+ Organizations.Billing = billing_1.Billing;
91
95
  //# sourceMappingURL=organizations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,iEAAwC;AACxC,0CAAmG;AACnG,yEAAgD;AAChD,kD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AAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAlFD,sCAkFC;AA4JD,aAAa,CAAC,WAAW,GAAG,yBAAW,CAAC;AACxC,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC"}
1
+ {"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,iEAAwC;AACxC,0CAAmG;AACnG,iEAAwC;AACxC,0CAAgE;AAChE,yEAAgD;AAChD,kDAOuB;AAEvB,yDAA+E;AAC/E,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgFrE,CAAC;IA9EC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,mBAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAsB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,QAAQ,EAAE;YACxE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAnFD,sCAmFC;AA4JD,aAAa,CAAC,WAAW,GAAG,yBAAW,CAAC;AACxC,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC;AAChC,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC"}
@@ -2,6 +2,8 @@
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import * as AddressAPI from "./address.mjs";
4
4
  import { Address } from "./address.mjs";
5
+ import * as BillingAPI from "./billing.mjs";
6
+ import { Billing } from "./billing.mjs";
5
7
  import * as MembershipsAPI from "./memberships.mjs";
6
8
  import { Memberships, } from "./memberships.mjs";
7
9
  import { Cursor } from "../../core/pagination.mjs";
@@ -12,6 +14,7 @@ export class Organizations extends APIResource {
12
14
  super(...arguments);
13
15
  this.memberships = new MembershipsAPI.Memberships(this._client);
14
16
  this.address = new AddressAPI.Address(this._client);
17
+ this.billing = new BillingAPI.Billing(this._client);
15
18
  }
16
19
  /**
17
20
  * Create a new organization
@@ -83,4 +86,5 @@ export class Organizations extends APIResource {
83
86
  }
84
87
  Organizations.Memberships = Memberships;
85
88
  Organizations.Address = Address;
89
+ Organizations.Billing = Billing;
86
90
  //# sourceMappingURL=organizations.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.mjs","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,OAAO,EAAiE,sBAAkB;AACnG,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EAGL,WAAW,GAIZ,0BAAsB;AAEvB,OAAO,EAAE,MAAM,EAAkC,kCAA8B;AAC/E,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgFrE,CAAC;IA9EC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAAwB;QAEx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OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA4JD,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;AACxC,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;AAChC,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC"}
@@ -39,3 +39,13 @@ Methods:
39
39
  - <code title="post /v1/organizations/{organization_id}/address">client.organizations.address.<a href="./src/resources/organizations/address.ts">create</a>(organizationID, { ...params }) -> OrganizationAddress</code>
40
40
  - <code title="get /v1/organizations/{organization_id}/address">client.organizations.address.<a href="./src/resources/organizations/address.ts">get</a>(organizationID) -> OrganizationAddress</code>
41
41
  - <code title="patch /v1/organizations/{organization_id}/address">client.organizations.address.<a href="./src/resources/organizations/address.ts">update</a>(organizationID, { ...params }) -> OrganizationAddress</code>
42
+
43
+ ## Billing
44
+
45
+ Types:
46
+
47
+ - <code><a href="./src/resources/organizations/billing.ts">OrganizationBillingSummary</a></code>
48
+
49
+ Methods:
50
+
51
+ - <code title="get /v1/organizations/{organization_id}/billing/summary">client.organizations.billing.<a href="./src/resources/organizations/billing.ts">summary</a>(organizationID) -> OrganizationBillingSummary</code>
@@ -0,0 +1,67 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { RequestOptions } from '../../internal/request-options';
6
+ import { path } from '../../internal/utils/path';
7
+
8
+ export class Billing extends APIResource {
9
+ /**
10
+ * Get the organization's billing summary: effective balance, monthly and daily
11
+ * run-rate cost, runway, and the projected next-recharge date. Costs are run-rate
12
+ * projections.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const organizationBillingSummary =
17
+ * await client.organizations.billing.summary(
18
+ * 'organization_id',
19
+ * );
20
+ * ```
21
+ */
22
+ summary(organizationID: string, options?: RequestOptions): APIPromise<OrganizationBillingSummary> {
23
+ return this._client.get(path`/v1/organizations/${organizationID}/billing/summary`, options);
24
+ }
25
+ }
26
+
27
+ /**
28
+ * Forward-looking billing summary for an organization. All costs are run-rate
29
+ * projections from the organization's current active usage ("≈ $X/mo at current
30
+ * usage").
31
+ */
32
+ export interface OrganizationBillingSummary {
33
+ /**
34
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
35
+ */
36
+ daily_cost: string;
37
+
38
+ /**
39
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
40
+ */
41
+ effective_balance: string;
42
+
43
+ /**
44
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
45
+ */
46
+ monthly_cost: string;
47
+
48
+ /**
49
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
50
+ */
51
+ recharge_threshold_fraction: string;
52
+
53
+ /**
54
+ * Projected date the balance reaches the recharge threshold at the current
55
+ * run-rate. Null when there is no active usage (never charges).
56
+ */
57
+ estimated_next_charge_at?: string | null;
58
+
59
+ /**
60
+ * Arbitrary-precision decimal serialized as a string (e.g. "58.40").
61
+ */
62
+ runway_months?: string | null;
63
+ }
64
+
65
+ export declare namespace Billing {
66
+ export { type OrganizationBillingSummary as OrganizationBillingSummary };
67
+ }
@@ -6,6 +6,7 @@ export {
6
6
  type AddressCreateParams,
7
7
  type AddressUpdateParams,
8
8
  } from './address';
9
+ export { Billing, type OrganizationBillingSummary } from './billing';
9
10
  export {
10
11
  Memberships,
11
12
  type OrganizationMembership,
@@ -4,6 +4,8 @@ import { APIResource } from '../../core/resource';
4
4
  import * as Shared from '../shared';
5
5
  import * as AddressAPI from './address';
6
6
  import { Address, AddressCreateParams, AddressUpdateParams, OrganizationAddress } from './address';
7
+ import * as BillingAPI from './billing';
8
+ import { Billing, OrganizationBillingSummary } from './billing';
7
9
  import * as MembershipsAPI from './memberships';
8
10
  import {
9
11
  MembershipGetParams,
@@ -22,6 +24,7 @@ import { path } from '../../internal/utils/path';
22
24
  export class Organizations extends APIResource {
23
25
  memberships: MembershipsAPI.Memberships = new MembershipsAPI.Memberships(this._client);
24
26
  address: AddressAPI.Address = new AddressAPI.Address(this._client);
27
+ billing: BillingAPI.Billing = new BillingAPI.Billing(this._client);
25
28
 
26
29
  /**
27
30
  * Create a new organization
@@ -259,6 +262,7 @@ export interface OrganizationListParams extends CursorParams {}
259
262
 
260
263
  Organizations.Memberships = Memberships;
261
264
  Organizations.Address = Address;
265
+ Organizations.Billing = Billing;
262
266
 
263
267
  export declare namespace Organizations {
264
268
  export {
@@ -288,4 +292,6 @@ export declare namespace Organizations {
288
292
  type AddressCreateParams as AddressCreateParams,
289
293
  type AddressUpdateParams as AddressUpdateParams,
290
294
  };
295
+
296
+ export { Billing as Billing, type OrganizationBillingSummary as OrganizationBillingSummary };
291
297
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.91.11'; // x-release-please-version
1
+ export const VERSION = '1.92.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.91.11";
1
+ export declare const VERSION = "1.92.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.91.11";
1
+ export declare const VERSION = "1.92.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
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.91.11'; // x-release-please-version
4
+ exports.VERSION = '1.92.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,SAAS,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.91.11'; // x-release-please-version
1
+ export const VERSION = '1.92.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}