@nirvana-labs/nirvana 1.93.2 → 1.94.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.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/resources/organizations/billing.d.mts +150 -0
- package/resources/organizations/billing.d.mts.map +1 -1
- package/resources/organizations/billing.d.ts +150 -0
- package/resources/organizations/billing.d.ts.map +1 -1
- package/resources/organizations/billing.js +57 -0
- package/resources/organizations/billing.js.map +1 -1
- package/resources/organizations/billing.mjs +57 -0
- package/resources/organizations/billing.mjs.map +1 -1
- package/resources/organizations/index.d.mts +1 -1
- package/resources/organizations/index.d.mts.map +1 -1
- package/resources/organizations/index.d.ts +1 -1
- package/resources/organizations/index.d.ts.map +1 -1
- package/resources/organizations/index.js.map +1 -1
- package/resources/organizations/index.mjs +1 -1
- package/resources/organizations/index.mjs.map +1 -1
- package/resources/organizations/organizations.d.mts +2 -2
- package/resources/organizations/organizations.d.mts.map +1 -1
- package/resources/organizations/organizations.d.ts +2 -2
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs +1 -1
- package/resources/organizations/organizations.mjs.map +1 -1
- package/src/resources/organizations/api.md +11 -0
- package/src/resources/organizations/billing.ts +211 -0
- package/src/resources/organizations/index.ts +11 -1
- package/src/resources/organizations/organizations.ts +22 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.94.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.93.3...v1.94.0) (2026-07-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **stainless:** wire billing cost, history, and top-up into SDK config ([6b8ea81](https://github.com/nirvana-labs/nirvana-typescript/commit/6b8ea815ae3dc3bb4d2c6509ffc5901f8309918c))
|
|
9
|
+
|
|
10
|
+
## [1.93.3](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.93.2...v1.93.3) (2026-07-09)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Chores
|
|
14
|
+
|
|
15
|
+
* update SDK ([615b3cf](https://github.com/nirvana-labs/nirvana-typescript/commit/615b3cf3447cfcffe5933ce5fd121ce7ef39193d))
|
|
16
|
+
|
|
3
17
|
## [1.93.2](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.93.1...v1.93.2) (2026-07-09)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -17,5 +17,155 @@ export declare class Billing extends APIResource {
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
summary(organizationID: string, options?: RequestOptions): APIPromise<Shared.OrganizationBillingSummary>;
|
|
20
|
+
/**
|
|
21
|
+
* Get the organization's total usage cost per UTC day over a date range (max 90
|
|
22
|
+
* days), summing open and closed resources. One entry per day, oldest first.
|
|
23
|
+
* Defaults to the last 30 days.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const organizationDailyCost =
|
|
28
|
+
* await client.organizations.billing.cost(
|
|
29
|
+
* 'organization_id',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
cost(organizationID: string, query?: BillingCostParams | null | undefined, options?: RequestOptions): APIPromise<OrganizationDailyCost>;
|
|
34
|
+
/**
|
|
35
|
+
* List the organization's billing history: prepaid credits, top-ups, and manual
|
|
36
|
+
* adjustments, newest first. Paginated with an opaque cursor.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const billingHistoryEntryList =
|
|
41
|
+
* await client.organizations.billing.history(
|
|
42
|
+
* 'organization_id',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
history(organizationID: string, query?: BillingHistoryParams | null | undefined, options?: RequestOptions): APIPromise<BillingHistoryEntryList>;
|
|
47
|
+
/**
|
|
48
|
+
* Charge the organization's card on file and credit its prepaid balance. Send an
|
|
49
|
+
* Idempotency-Key header to make retries safe; responds 402 when the card cannot
|
|
50
|
+
* be charged.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const organizationBillingSummary =
|
|
55
|
+
* await client.organizations.billing.topUp(
|
|
56
|
+
* 'organization_id',
|
|
57
|
+
* { amount: '-69125' },
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
topUp(organizationID: string, params: BillingTopUpParams, options?: RequestOptions): APIPromise<Shared.OrganizationBillingSummary>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A single billing history line item: a prepaid credit or a manual adjustment.
|
|
65
|
+
*/
|
|
66
|
+
export interface BillingHistoryEntry {
|
|
67
|
+
/**
|
|
68
|
+
* Unique identifier for the entry.
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
/**
|
|
72
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
73
|
+
*/
|
|
74
|
+
amount: string;
|
|
75
|
+
/**
|
|
76
|
+
* When the entry was recorded.
|
|
77
|
+
*/
|
|
78
|
+
created_at: string;
|
|
79
|
+
/**
|
|
80
|
+
* ISO 4217 currency code.
|
|
81
|
+
*/
|
|
82
|
+
currency: string;
|
|
83
|
+
/**
|
|
84
|
+
* Kind of entry.
|
|
85
|
+
*/
|
|
86
|
+
type: BillingHistoryEntryType;
|
|
87
|
+
/**
|
|
88
|
+
* Human-readable note describing the entry, when available.
|
|
89
|
+
*/
|
|
90
|
+
description?: string | null;
|
|
91
|
+
}
|
|
92
|
+
export interface BillingHistoryEntryList {
|
|
93
|
+
items: Array<BillingHistoryEntry>;
|
|
94
|
+
/**
|
|
95
|
+
* Pagination response details.
|
|
96
|
+
*/
|
|
97
|
+
pagination: Shared.Pagination;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Kind of entry.
|
|
101
|
+
*/
|
|
102
|
+
export type BillingHistoryEntryType = 'grant' | 'adjustment';
|
|
103
|
+
/**
|
|
104
|
+
* Total usage cost for a single UTC day.
|
|
105
|
+
*/
|
|
106
|
+
export interface DailyCostPoint {
|
|
107
|
+
/**
|
|
108
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
109
|
+
*/
|
|
110
|
+
cost: string;
|
|
111
|
+
/**
|
|
112
|
+
* UTC calendar day (YYYY-MM-DD).
|
|
113
|
+
*/
|
|
114
|
+
date: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Daily usage cost over a date range: one entry per UTC day (zero on idle days),
|
|
118
|
+
* summing open and closed resources. Suitable for a daily cost bar chart.
|
|
119
|
+
*/
|
|
120
|
+
export interface OrganizationDailyCost {
|
|
121
|
+
/**
|
|
122
|
+
* ISO 4217 currency code.
|
|
123
|
+
*/
|
|
124
|
+
currency: string;
|
|
125
|
+
/**
|
|
126
|
+
* One entry per UTC day in the range, oldest first.
|
|
127
|
+
*/
|
|
128
|
+
days: Array<DailyCostPoint>;
|
|
129
|
+
/**
|
|
130
|
+
* Inclusive start of the range, as a UTC calendar day (YYYY-MM-DD).
|
|
131
|
+
*/
|
|
132
|
+
from: string;
|
|
133
|
+
/**
|
|
134
|
+
* Inclusive end of the range, as a UTC calendar day (YYYY-MM-DD).
|
|
135
|
+
*/
|
|
136
|
+
to: string;
|
|
137
|
+
}
|
|
138
|
+
export interface BillingCostParams {
|
|
139
|
+
/**
|
|
140
|
+
* Inclusive start day, YYYY-MM-DD (UTC). Defaults to 30 days before to.
|
|
141
|
+
*/
|
|
142
|
+
from?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Inclusive end day, YYYY-MM-DD (UTC). Defaults to today.
|
|
145
|
+
*/
|
|
146
|
+
to?: string;
|
|
147
|
+
}
|
|
148
|
+
export interface BillingHistoryParams {
|
|
149
|
+
/**
|
|
150
|
+
* Pagination cursor returned by a previous request
|
|
151
|
+
*/
|
|
152
|
+
cursor?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Maximum number of items to return
|
|
155
|
+
*/
|
|
156
|
+
limit?: number;
|
|
157
|
+
}
|
|
158
|
+
export interface BillingTopUpParams {
|
|
159
|
+
/**
|
|
160
|
+
* Body param: Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
161
|
+
*/
|
|
162
|
+
amount: string;
|
|
163
|
+
/**
|
|
164
|
+
* Header param: Idempotency key scoping the charge so retries do not charge twice
|
|
165
|
+
*/
|
|
166
|
+
'Idempotency-Key'?: string;
|
|
167
|
+
}
|
|
168
|
+
export declare namespace Billing {
|
|
169
|
+
export { type BillingHistoryEntry as BillingHistoryEntry, type BillingHistoryEntryList as BillingHistoryEntryList, type BillingHistoryEntryType as BillingHistoryEntryType, type DailyCostPoint as DailyCostPoint, type OrganizationDailyCost as OrganizationDailyCost, type BillingCostParams as BillingCostParams, type BillingHistoryParams as BillingHistoryParams, type BillingTopUpParams as BillingTopUpParams, };
|
|
20
170
|
}
|
|
21
171
|
//# sourceMappingURL=billing.d.mts.map
|
|
@@ -1 +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,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;
|
|
1
|
+
{"version":3,"file":"billing.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/billing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC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MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAE5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -17,5 +17,155 @@ export declare class Billing extends APIResource {
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
summary(organizationID: string, options?: RequestOptions): APIPromise<Shared.OrganizationBillingSummary>;
|
|
20
|
+
/**
|
|
21
|
+
* Get the organization's total usage cost per UTC day over a date range (max 90
|
|
22
|
+
* days), summing open and closed resources. One entry per day, oldest first.
|
|
23
|
+
* Defaults to the last 30 days.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const organizationDailyCost =
|
|
28
|
+
* await client.organizations.billing.cost(
|
|
29
|
+
* 'organization_id',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
cost(organizationID: string, query?: BillingCostParams | null | undefined, options?: RequestOptions): APIPromise<OrganizationDailyCost>;
|
|
34
|
+
/**
|
|
35
|
+
* List the organization's billing history: prepaid credits, top-ups, and manual
|
|
36
|
+
* adjustments, newest first. Paginated with an opaque cursor.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const billingHistoryEntryList =
|
|
41
|
+
* await client.organizations.billing.history(
|
|
42
|
+
* 'organization_id',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
history(organizationID: string, query?: BillingHistoryParams | null | undefined, options?: RequestOptions): APIPromise<BillingHistoryEntryList>;
|
|
47
|
+
/**
|
|
48
|
+
* Charge the organization's card on file and credit its prepaid balance. Send an
|
|
49
|
+
* Idempotency-Key header to make retries safe; responds 402 when the card cannot
|
|
50
|
+
* be charged.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const organizationBillingSummary =
|
|
55
|
+
* await client.organizations.billing.topUp(
|
|
56
|
+
* 'organization_id',
|
|
57
|
+
* { amount: '-69125' },
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
topUp(organizationID: string, params: BillingTopUpParams, options?: RequestOptions): APIPromise<Shared.OrganizationBillingSummary>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A single billing history line item: a prepaid credit or a manual adjustment.
|
|
65
|
+
*/
|
|
66
|
+
export interface BillingHistoryEntry {
|
|
67
|
+
/**
|
|
68
|
+
* Unique identifier for the entry.
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
/**
|
|
72
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
73
|
+
*/
|
|
74
|
+
amount: string;
|
|
75
|
+
/**
|
|
76
|
+
* When the entry was recorded.
|
|
77
|
+
*/
|
|
78
|
+
created_at: string;
|
|
79
|
+
/**
|
|
80
|
+
* ISO 4217 currency code.
|
|
81
|
+
*/
|
|
82
|
+
currency: string;
|
|
83
|
+
/**
|
|
84
|
+
* Kind of entry.
|
|
85
|
+
*/
|
|
86
|
+
type: BillingHistoryEntryType;
|
|
87
|
+
/**
|
|
88
|
+
* Human-readable note describing the entry, when available.
|
|
89
|
+
*/
|
|
90
|
+
description?: string | null;
|
|
91
|
+
}
|
|
92
|
+
export interface BillingHistoryEntryList {
|
|
93
|
+
items: Array<BillingHistoryEntry>;
|
|
94
|
+
/**
|
|
95
|
+
* Pagination response details.
|
|
96
|
+
*/
|
|
97
|
+
pagination: Shared.Pagination;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Kind of entry.
|
|
101
|
+
*/
|
|
102
|
+
export type BillingHistoryEntryType = 'grant' | 'adjustment';
|
|
103
|
+
/**
|
|
104
|
+
* Total usage cost for a single UTC day.
|
|
105
|
+
*/
|
|
106
|
+
export interface DailyCostPoint {
|
|
107
|
+
/**
|
|
108
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
109
|
+
*/
|
|
110
|
+
cost: string;
|
|
111
|
+
/**
|
|
112
|
+
* UTC calendar day (YYYY-MM-DD).
|
|
113
|
+
*/
|
|
114
|
+
date: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Daily usage cost over a date range: one entry per UTC day (zero on idle days),
|
|
118
|
+
* summing open and closed resources. Suitable for a daily cost bar chart.
|
|
119
|
+
*/
|
|
120
|
+
export interface OrganizationDailyCost {
|
|
121
|
+
/**
|
|
122
|
+
* ISO 4217 currency code.
|
|
123
|
+
*/
|
|
124
|
+
currency: string;
|
|
125
|
+
/**
|
|
126
|
+
* One entry per UTC day in the range, oldest first.
|
|
127
|
+
*/
|
|
128
|
+
days: Array<DailyCostPoint>;
|
|
129
|
+
/**
|
|
130
|
+
* Inclusive start of the range, as a UTC calendar day (YYYY-MM-DD).
|
|
131
|
+
*/
|
|
132
|
+
from: string;
|
|
133
|
+
/**
|
|
134
|
+
* Inclusive end of the range, as a UTC calendar day (YYYY-MM-DD).
|
|
135
|
+
*/
|
|
136
|
+
to: string;
|
|
137
|
+
}
|
|
138
|
+
export interface BillingCostParams {
|
|
139
|
+
/**
|
|
140
|
+
* Inclusive start day, YYYY-MM-DD (UTC). Defaults to 30 days before to.
|
|
141
|
+
*/
|
|
142
|
+
from?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Inclusive end day, YYYY-MM-DD (UTC). Defaults to today.
|
|
145
|
+
*/
|
|
146
|
+
to?: string;
|
|
147
|
+
}
|
|
148
|
+
export interface BillingHistoryParams {
|
|
149
|
+
/**
|
|
150
|
+
* Pagination cursor returned by a previous request
|
|
151
|
+
*/
|
|
152
|
+
cursor?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Maximum number of items to return
|
|
155
|
+
*/
|
|
156
|
+
limit?: number;
|
|
157
|
+
}
|
|
158
|
+
export interface BillingTopUpParams {
|
|
159
|
+
/**
|
|
160
|
+
* Body param: Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
161
|
+
*/
|
|
162
|
+
amount: string;
|
|
163
|
+
/**
|
|
164
|
+
* Header param: Idempotency key scoping the charge so retries do not charge twice
|
|
165
|
+
*/
|
|
166
|
+
'Idempotency-Key'?: string;
|
|
167
|
+
}
|
|
168
|
+
export declare namespace Billing {
|
|
169
|
+
export { type BillingHistoryEntry as BillingHistoryEntry, type BillingHistoryEntryList as BillingHistoryEntryList, type BillingHistoryEntryType as BillingHistoryEntryType, type DailyCostPoint as DailyCostPoint, type OrganizationDailyCost as OrganizationDailyCost, type BillingCostParams as BillingCostParams, type BillingHistoryParams as BillingHistoryParams, type BillingTopUpParams as BillingTopUpParams, };
|
|
20
170
|
}
|
|
21
171
|
//# sourceMappingURL=billing.d.ts.map
|
|
@@ -1 +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,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;
|
|
1
|
+
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/billing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,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,MAAM,CAAC,0BAA0B,CAAC;IAIxG;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAIpC;;;;;;;;;;;OAWG;IACH,OAAO,CACL,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;;;;;;OAaG;IACH,KAAK,CACH,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,k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B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Billing = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
6
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
8
|
class Billing extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
@@ -21,6 +22,62 @@ class Billing extends resource_1.APIResource {
|
|
|
21
22
|
summary(organizationID, options) {
|
|
22
23
|
return this._client.get((0, path_1.path) `/v1/organizations/${organizationID}/billing/summary`, options);
|
|
23
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Get the organization's total usage cost per UTC day over a date range (max 90
|
|
27
|
+
* days), summing open and closed resources. One entry per day, oldest first.
|
|
28
|
+
* Defaults to the last 30 days.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const organizationDailyCost =
|
|
33
|
+
* await client.organizations.billing.cost(
|
|
34
|
+
* 'organization_id',
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
cost(organizationID, query = {}, options) {
|
|
39
|
+
return this._client.get((0, path_1.path) `/v1/organizations/${organizationID}/billing/cost`, { query, ...options });
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* List the organization's billing history: prepaid credits, top-ups, and manual
|
|
43
|
+
* adjustments, newest first. Paginated with an opaque cursor.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const billingHistoryEntryList =
|
|
48
|
+
* await client.organizations.billing.history(
|
|
49
|
+
* 'organization_id',
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
history(organizationID, query = {}, options) {
|
|
54
|
+
return this._client.get((0, path_1.path) `/v1/organizations/${organizationID}/billing/history`, { query, ...options });
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Charge the organization's card on file and credit its prepaid balance. Send an
|
|
58
|
+
* Idempotency-Key header to make retries safe; responds 402 when the card cannot
|
|
59
|
+
* be charged.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const organizationBillingSummary =
|
|
64
|
+
* await client.organizations.billing.topUp(
|
|
65
|
+
* 'organization_id',
|
|
66
|
+
* { amount: '-69125' },
|
|
67
|
+
* );
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
topUp(organizationID, params, options) {
|
|
71
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
72
|
+
return this._client.post((0, path_1.path) `/v1/organizations/${organizationID}/billing/topup`, {
|
|
73
|
+
body,
|
|
74
|
+
...options,
|
|
75
|
+
headers: (0, headers_1.buildHeaders)([
|
|
76
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
77
|
+
options?.headers,
|
|
78
|
+
]),
|
|
79
|
+
});
|
|
80
|
+
}
|
|
24
81
|
}
|
|
25
82
|
exports.Billing = Billing;
|
|
26
83
|
//# sourceMappingURL=billing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../../src/resources/organizations/billing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../../src/resources/organizations/billing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,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;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,cAAsB,EACtB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CACL,cAAsB,EACtB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CACH,cAAsB,EACtB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,gBAAgB,EAAE;YAChF,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAxFD,0BAwFC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
3
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
5
|
export class Billing extends APIResource {
|
|
5
6
|
/**
|
|
@@ -18,5 +19,61 @@ export class Billing extends APIResource {
|
|
|
18
19
|
summary(organizationID, options) {
|
|
19
20
|
return this._client.get(path `/v1/organizations/${organizationID}/billing/summary`, options);
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Get the organization's total usage cost per UTC day over a date range (max 90
|
|
24
|
+
* days), summing open and closed resources. One entry per day, oldest first.
|
|
25
|
+
* Defaults to the last 30 days.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const organizationDailyCost =
|
|
30
|
+
* await client.organizations.billing.cost(
|
|
31
|
+
* 'organization_id',
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
cost(organizationID, query = {}, options) {
|
|
36
|
+
return this._client.get(path `/v1/organizations/${organizationID}/billing/cost`, { query, ...options });
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* List the organization's billing history: prepaid credits, top-ups, and manual
|
|
40
|
+
* adjustments, newest first. Paginated with an opaque cursor.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const billingHistoryEntryList =
|
|
45
|
+
* await client.organizations.billing.history(
|
|
46
|
+
* 'organization_id',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
history(organizationID, query = {}, options) {
|
|
51
|
+
return this._client.get(path `/v1/organizations/${organizationID}/billing/history`, { query, ...options });
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Charge the organization's card on file and credit its prepaid balance. Send an
|
|
55
|
+
* Idempotency-Key header to make retries safe; responds 402 when the card cannot
|
|
56
|
+
* be charged.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const organizationBillingSummary =
|
|
61
|
+
* await client.organizations.billing.topUp(
|
|
62
|
+
* 'organization_id',
|
|
63
|
+
* { amount: '-69125' },
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
topUp(organizationID, params, options) {
|
|
68
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
69
|
+
return this._client.post(path `/v1/organizations/${organizationID}/billing/topup`, {
|
|
70
|
+
body,
|
|
71
|
+
...options,
|
|
72
|
+
headers: buildHeaders([
|
|
73
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
74
|
+
options?.headers,
|
|
75
|
+
]),
|
|
76
|
+
});
|
|
77
|
+
}
|
|
21
78
|
}
|
|
22
79
|
//# sourceMappingURL=billing.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.mjs","sourceRoot":"","sources":["../../src/resources/organizations/billing.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;
|
|
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,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EA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
|
|
|
1
1
|
export { Address, type OrganizationAddress, type AddressCreateParams, type AddressUpdateParams, } from "./address.mjs";
|
|
2
|
-
export { Billing } from "./billing.mjs";
|
|
2
|
+
export { Billing, type BillingHistoryEntry, type BillingHistoryEntryList, type BillingHistoryEntryType, type DailyCostPoint, type OrganizationDailyCost, type BillingCostParams, type BillingHistoryParams, type BillingTopUpParams, } from "./billing.mjs";
|
|
3
3
|
export { Memberships, type OrganizationMembership, type OrganizationMembershipList, type MembershipGetParams, type MembershipListParams, type OrganizationMembershipsCursor, } from "./memberships.mjs";
|
|
4
4
|
export { Organizations } from "./organizations.mjs";
|
|
5
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,
|
|
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,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,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,5 +1,5 @@
|
|
|
1
1
|
export { Address, type OrganizationAddress, type AddressCreateParams, type AddressUpdateParams, } from "./address.js";
|
|
2
|
-
export { Billing } from "./billing.js";
|
|
2
|
+
export { Billing, type BillingHistoryEntry, type BillingHistoryEntryList, type BillingHistoryEntryType, type DailyCostPoint, type OrganizationDailyCost, type BillingCostParams, type BillingHistoryParams, type BillingTopUpParams, } from "./billing.js";
|
|
3
3
|
export { Memberships, type OrganizationMembership, type OrganizationMembershipList, type MembershipGetParams, type MembershipListParams, type OrganizationMembershipsCursor, } from "./memberships.js";
|
|
4
4
|
export { Organizations } from "./organizations.js";
|
|
5
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,
|
|
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,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,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 +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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,wCAUmB;AATjB,kGAAA,OAAO,OAAA;AAUT,gDAOuB;AANrB,0GAAA,WAAW,OAAA;AAOb,oDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
|
|
@@ -1,6 +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
|
+
export { Billing, } from "./billing.mjs";
|
|
4
4
|
export { Memberships, } from "./memberships.mjs";
|
|
5
5
|
export { Organizations } from "./organizations.mjs";
|
|
6
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,
|
|
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,OAAO,GASR,sBAAkB;AACnB,OAAO,EACL,WAAW,GAMZ,0BAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,4BAAwB"}
|
|
@@ -3,7 +3,7 @@ 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
5
|
import * as BillingAPI from "./billing.mjs";
|
|
6
|
-
import { Billing } from "./billing.mjs";
|
|
6
|
+
import { Billing, BillingCostParams, BillingHistoryEntry, BillingHistoryEntryList, BillingHistoryEntryType, BillingHistoryParams, BillingTopUpParams, DailyCostPoint, OrganizationDailyCost } from "./billing.mjs";
|
|
7
7
|
import * as MembershipsAPI from "./memberships.mjs";
|
|
8
8
|
import { MembershipGetParams, MembershipListParams, Memberships, OrganizationMembership, OrganizationMembershipList, OrganizationMembershipsCursor } from "./memberships.mjs";
|
|
9
9
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
@@ -211,6 +211,6 @@ export declare namespace Organizations {
|
|
|
211
211
|
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, };
|
|
212
212
|
export { Memberships as Memberships, type OrganizationMembership as OrganizationMembership, type OrganizationMembershipList as OrganizationMembershipList, type OrganizationMembershipsCursor as OrganizationMembershipsCursor, type MembershipGetParams as MembershipGetParams, type MembershipListParams as MembershipListParams, };
|
|
213
213
|
export { Address as Address, type OrganizationAddress as OrganizationAddress, type AddressCreateParams as AddressCreateParams, type AddressUpdateParams as AddressUpdateParams, };
|
|
214
|
-
export { Billing as Billing };
|
|
214
|
+
export { Billing as Billing, type BillingHistoryEntry as BillingHistoryEntry, type BillingHistoryEntryList as BillingHistoryEntryList, type BillingHistoryEntryType as BillingHistoryEntryType, type DailyCostPoint as DailyCostPoint, type OrganizationDailyCost as OrganizationDailyCost, type BillingCostParams as BillingCostParams, type BillingHistoryParams as BillingHistoryParams, type BillingTopUpParams as BillingTopUpParams, };
|
|
215
215
|
}
|
|
216
216
|
//# 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,UAAU,sBAAkB;AACxC,OAAO,
|
|
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,EACL,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACtB,sBAAkB;AACnB,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,C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AAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,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,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -3,7 +3,7 @@ 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
5
|
import * as BillingAPI from "./billing.js";
|
|
6
|
-
import { Billing } from "./billing.js";
|
|
6
|
+
import { Billing, BillingCostParams, BillingHistoryEntry, BillingHistoryEntryList, BillingHistoryEntryType, BillingHistoryParams, BillingTopUpParams, DailyCostPoint, OrganizationDailyCost } from "./billing.js";
|
|
7
7
|
import * as MembershipsAPI from "./memberships.js";
|
|
8
8
|
import { MembershipGetParams, MembershipListParams, Memberships, OrganizationMembership, OrganizationMembershipList, OrganizationMembershipsCursor } from "./memberships.js";
|
|
9
9
|
import { APIPromise } from "../../core/api-promise.js";
|
|
@@ -211,6 +211,6 @@ export declare namespace Organizations {
|
|
|
211
211
|
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, };
|
|
212
212
|
export { Memberships as Memberships, type OrganizationMembership as OrganizationMembership, type OrganizationMembershipList as OrganizationMembershipList, type OrganizationMembershipsCursor as OrganizationMembershipsCursor, type MembershipGetParams as MembershipGetParams, type MembershipListParams as MembershipListParams, };
|
|
213
213
|
export { Address as Address, type OrganizationAddress as OrganizationAddress, type AddressCreateParams as AddressCreateParams, type AddressUpdateParams as AddressUpdateParams, };
|
|
214
|
-
export { Billing as Billing };
|
|
214
|
+
export { Billing as Billing, type BillingHistoryEntry as BillingHistoryEntry, type BillingHistoryEntryList as BillingHistoryEntryList, type BillingHistoryEntryType as BillingHistoryEntryType, type DailyCostPoint as DailyCostPoint, type OrganizationDailyCost as OrganizationDailyCost, type BillingCostParams as BillingCostParams, type BillingHistoryParams as BillingHistoryParams, type BillingTopUpParams as BillingTopUpParams, };
|
|
215
215
|
}
|
|
216
216
|
//# 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,UAAU,qBAAkB;AACxC,OAAO,
|
|
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,EACL,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACtB,qBAAkB;AACnB,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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AAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,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,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -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,iEAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":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O,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;AA2KD,aAAa,CAAC,WAAW,GAAG,yBAAW,CAAC;AACxC,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC;AAChC,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import * as AddressAPI from "./address.mjs";
|
|
4
4
|
import { Address } from "./address.mjs";
|
|
5
5
|
import * as BillingAPI from "./billing.mjs";
|
|
6
|
-
import { Billing } from "./billing.mjs";
|
|
6
|
+
import { Billing, } from "./billing.mjs";
|
|
7
7
|
import * as MembershipsAPI from "./memberships.mjs";
|
|
8
8
|
import { Memberships, } from "./memberships.mjs";
|
|
9
9
|
import { Cursor } from "../../core/pagination.mjs";
|
|
@@ -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,UAAU,sBAAkB;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"organizations.mjs","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EA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;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,MAAoB,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,IAAI,CAAA,qBAAqB,cAAc,QAAQ,EAAE;YACxE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA2KD,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;AACxC,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;AAChC,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -42,6 +42,17 @@ Methods:
|
|
|
42
42
|
|
|
43
43
|
## Billing
|
|
44
44
|
|
|
45
|
+
Types:
|
|
46
|
+
|
|
47
|
+
- <code><a href="./src/resources/organizations/billing.ts">BillingHistoryEntry</a></code>
|
|
48
|
+
- <code><a href="./src/resources/organizations/billing.ts">BillingHistoryEntryList</a></code>
|
|
49
|
+
- <code><a href="./src/resources/organizations/billing.ts">BillingHistoryEntryType</a></code>
|
|
50
|
+
- <code><a href="./src/resources/organizations/billing.ts">DailyCostPoint</a></code>
|
|
51
|
+
- <code><a href="./src/resources/organizations/billing.ts">OrganizationDailyCost</a></code>
|
|
52
|
+
|
|
45
53
|
Methods:
|
|
46
54
|
|
|
47
55
|
- <code title="get /v1/organizations/{organization_id}/billing/summary">client.organizations.billing.<a href="./src/resources/organizations/billing.ts">summary</a>(organizationID) -> OrganizationBillingSummary</code>
|
|
56
|
+
- <code title="get /v1/organizations/{organization_id}/billing/cost">client.organizations.billing.<a href="./src/resources/organizations/billing.ts">cost</a>(organizationID, { ...params }) -> OrganizationDailyCost</code>
|
|
57
|
+
- <code title="get /v1/organizations/{organization_id}/billing/history">client.organizations.billing.<a href="./src/resources/organizations/billing.ts">history</a>(organizationID, { ...params }) -> BillingHistoryEntryList</code>
|
|
58
|
+
- <code title="post /v1/organizations/{organization_id}/billing/topup">client.organizations.billing.<a href="./src/resources/organizations/billing.ts">topUp</a>(organizationID, { ...params }) -> OrganizationBillingSummary</code>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
8
|
import { path } from '../../internal/utils/path';
|
|
8
9
|
|
|
@@ -23,4 +24,214 @@ export class Billing extends APIResource {
|
|
|
23
24
|
summary(organizationID: string, options?: RequestOptions): APIPromise<Shared.OrganizationBillingSummary> {
|
|
24
25
|
return this._client.get(path`/v1/organizations/${organizationID}/billing/summary`, options);
|
|
25
26
|
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get the organization's total usage cost per UTC day over a date range (max 90
|
|
30
|
+
* days), summing open and closed resources. One entry per day, oldest first.
|
|
31
|
+
* Defaults to the last 30 days.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const organizationDailyCost =
|
|
36
|
+
* await client.organizations.billing.cost(
|
|
37
|
+
* 'organization_id',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
cost(
|
|
42
|
+
organizationID: string,
|
|
43
|
+
query: BillingCostParams | null | undefined = {},
|
|
44
|
+
options?: RequestOptions,
|
|
45
|
+
): APIPromise<OrganizationDailyCost> {
|
|
46
|
+
return this._client.get(path`/v1/organizations/${organizationID}/billing/cost`, { query, ...options });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* List the organization's billing history: prepaid credits, top-ups, and manual
|
|
51
|
+
* adjustments, newest first. Paginated with an opaque cursor.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const billingHistoryEntryList =
|
|
56
|
+
* await client.organizations.billing.history(
|
|
57
|
+
* 'organization_id',
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
history(
|
|
62
|
+
organizationID: string,
|
|
63
|
+
query: BillingHistoryParams | null | undefined = {},
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): APIPromise<BillingHistoryEntryList> {
|
|
66
|
+
return this._client.get(path`/v1/organizations/${organizationID}/billing/history`, { query, ...options });
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Charge the organization's card on file and credit its prepaid balance. Send an
|
|
71
|
+
* Idempotency-Key header to make retries safe; responds 402 when the card cannot
|
|
72
|
+
* be charged.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const organizationBillingSummary =
|
|
77
|
+
* await client.organizations.billing.topUp(
|
|
78
|
+
* 'organization_id',
|
|
79
|
+
* { amount: '-69125' },
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
topUp(
|
|
84
|
+
organizationID: string,
|
|
85
|
+
params: BillingTopUpParams,
|
|
86
|
+
options?: RequestOptions,
|
|
87
|
+
): APIPromise<Shared.OrganizationBillingSummary> {
|
|
88
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
89
|
+
return this._client.post(path`/v1/organizations/${organizationID}/billing/topup`, {
|
|
90
|
+
body,
|
|
91
|
+
...options,
|
|
92
|
+
headers: buildHeaders([
|
|
93
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
94
|
+
options?.headers,
|
|
95
|
+
]),
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* A single billing history line item: a prepaid credit or a manual adjustment.
|
|
102
|
+
*/
|
|
103
|
+
export interface BillingHistoryEntry {
|
|
104
|
+
/**
|
|
105
|
+
* Unique identifier for the entry.
|
|
106
|
+
*/
|
|
107
|
+
id: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
111
|
+
*/
|
|
112
|
+
amount: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* When the entry was recorded.
|
|
116
|
+
*/
|
|
117
|
+
created_at: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* ISO 4217 currency code.
|
|
121
|
+
*/
|
|
122
|
+
currency: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Kind of entry.
|
|
126
|
+
*/
|
|
127
|
+
type: BillingHistoryEntryType;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Human-readable note describing the entry, when available.
|
|
131
|
+
*/
|
|
132
|
+
description?: string | null;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface BillingHistoryEntryList {
|
|
136
|
+
items: Array<BillingHistoryEntry>;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Pagination response details.
|
|
140
|
+
*/
|
|
141
|
+
pagination: Shared.Pagination;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Kind of entry.
|
|
146
|
+
*/
|
|
147
|
+
export type BillingHistoryEntryType = 'grant' | 'adjustment';
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Total usage cost for a single UTC day.
|
|
151
|
+
*/
|
|
152
|
+
export interface DailyCostPoint {
|
|
153
|
+
/**
|
|
154
|
+
* Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
155
|
+
*/
|
|
156
|
+
cost: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* UTC calendar day (YYYY-MM-DD).
|
|
160
|
+
*/
|
|
161
|
+
date: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Daily usage cost over a date range: one entry per UTC day (zero on idle days),
|
|
166
|
+
* summing open and closed resources. Suitable for a daily cost bar chart.
|
|
167
|
+
*/
|
|
168
|
+
export interface OrganizationDailyCost {
|
|
169
|
+
/**
|
|
170
|
+
* ISO 4217 currency code.
|
|
171
|
+
*/
|
|
172
|
+
currency: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* One entry per UTC day in the range, oldest first.
|
|
176
|
+
*/
|
|
177
|
+
days: Array<DailyCostPoint>;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Inclusive start of the range, as a UTC calendar day (YYYY-MM-DD).
|
|
181
|
+
*/
|
|
182
|
+
from: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Inclusive end of the range, as a UTC calendar day (YYYY-MM-DD).
|
|
186
|
+
*/
|
|
187
|
+
to: string;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface BillingCostParams {
|
|
191
|
+
/**
|
|
192
|
+
* Inclusive start day, YYYY-MM-DD (UTC). Defaults to 30 days before to.
|
|
193
|
+
*/
|
|
194
|
+
from?: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Inclusive end day, YYYY-MM-DD (UTC). Defaults to today.
|
|
198
|
+
*/
|
|
199
|
+
to?: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface BillingHistoryParams {
|
|
203
|
+
/**
|
|
204
|
+
* Pagination cursor returned by a previous request
|
|
205
|
+
*/
|
|
206
|
+
cursor?: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Maximum number of items to return
|
|
210
|
+
*/
|
|
211
|
+
limit?: number;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface BillingTopUpParams {
|
|
215
|
+
/**
|
|
216
|
+
* Body param: Arbitrary-precision decimal serialized as a string (e.g. "58.40").
|
|
217
|
+
*/
|
|
218
|
+
amount: string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Header param: Idempotency key scoping the charge so retries do not charge twice
|
|
222
|
+
*/
|
|
223
|
+
'Idempotency-Key'?: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export declare namespace Billing {
|
|
227
|
+
export {
|
|
228
|
+
type BillingHistoryEntry as BillingHistoryEntry,
|
|
229
|
+
type BillingHistoryEntryList as BillingHistoryEntryList,
|
|
230
|
+
type BillingHistoryEntryType as BillingHistoryEntryType,
|
|
231
|
+
type DailyCostPoint as DailyCostPoint,
|
|
232
|
+
type OrganizationDailyCost as OrganizationDailyCost,
|
|
233
|
+
type BillingCostParams as BillingCostParams,
|
|
234
|
+
type BillingHistoryParams as BillingHistoryParams,
|
|
235
|
+
type BillingTopUpParams as BillingTopUpParams,
|
|
236
|
+
};
|
|
26
237
|
}
|
|
@@ -6,7 +6,17 @@ export {
|
|
|
6
6
|
type AddressCreateParams,
|
|
7
7
|
type AddressUpdateParams,
|
|
8
8
|
} from './address';
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
Billing,
|
|
11
|
+
type BillingHistoryEntry,
|
|
12
|
+
type BillingHistoryEntryList,
|
|
13
|
+
type BillingHistoryEntryType,
|
|
14
|
+
type DailyCostPoint,
|
|
15
|
+
type OrganizationDailyCost,
|
|
16
|
+
type BillingCostParams,
|
|
17
|
+
type BillingHistoryParams,
|
|
18
|
+
type BillingTopUpParams,
|
|
19
|
+
} from './billing';
|
|
10
20
|
export {
|
|
11
21
|
Memberships,
|
|
12
22
|
type OrganizationMembership,
|
|
@@ -5,7 +5,17 @@ import * as Shared from '../shared';
|
|
|
5
5
|
import * as AddressAPI from './address';
|
|
6
6
|
import { Address, AddressCreateParams, AddressUpdateParams, OrganizationAddress } from './address';
|
|
7
7
|
import * as BillingAPI from './billing';
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
Billing,
|
|
10
|
+
BillingCostParams,
|
|
11
|
+
BillingHistoryEntry,
|
|
12
|
+
BillingHistoryEntryList,
|
|
13
|
+
BillingHistoryEntryType,
|
|
14
|
+
BillingHistoryParams,
|
|
15
|
+
BillingTopUpParams,
|
|
16
|
+
DailyCostPoint,
|
|
17
|
+
OrganizationDailyCost,
|
|
18
|
+
} from './billing';
|
|
9
19
|
import * as MembershipsAPI from './memberships';
|
|
10
20
|
import {
|
|
11
21
|
MembershipGetParams,
|
|
@@ -308,5 +318,15 @@ export declare namespace Organizations {
|
|
|
308
318
|
type AddressUpdateParams as AddressUpdateParams,
|
|
309
319
|
};
|
|
310
320
|
|
|
311
|
-
export {
|
|
321
|
+
export {
|
|
322
|
+
Billing as Billing,
|
|
323
|
+
type BillingHistoryEntry as BillingHistoryEntry,
|
|
324
|
+
type BillingHistoryEntryList as BillingHistoryEntryList,
|
|
325
|
+
type BillingHistoryEntryType as BillingHistoryEntryType,
|
|
326
|
+
type DailyCostPoint as DailyCostPoint,
|
|
327
|
+
type OrganizationDailyCost as OrganizationDailyCost,
|
|
328
|
+
type BillingCostParams as BillingCostParams,
|
|
329
|
+
type BillingHistoryParams as BillingHistoryParams,
|
|
330
|
+
type BillingTopUpParams as BillingTopUpParams,
|
|
331
|
+
};
|
|
312
332
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.94.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.94.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.94.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.94.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|