@leaflow/sdk 0.0.0-dev.23.g7fcf334 → 0.0.0-dev.232.g18ca775
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/README.md +22 -1
- package/dist/account/v1/client.d.ts +4 -0
- package/dist/account/v1/client.js +7 -0
- package/dist/account/v1/index.d.ts +33 -22
- package/dist/account/v1/index.js +4 -4
- package/dist/account/v1/schema.d.ts +307 -89
- package/dist/assistant/v1/client.d.ts +4 -0
- package/dist/assistant/v1/client.js +7 -0
- package/dist/assistant/v1/index.d.ts +71 -40
- package/dist/assistant/v1/index.js +4 -4
- package/dist/assistant/v1/schema.d.ts +1204 -139
- package/dist/billing/account/v1/client.d.ts +4 -0
- package/dist/billing/account/v1/client.js +7 -0
- package/dist/billing/account/v1/index.d.ts +143 -0
- package/dist/billing/account/v1/index.js +5 -0
- package/dist/billing/account/v1/schema.d.ts +4009 -0
- package/dist/billing/account/v1/schema.js +5 -0
- package/dist/billing/catalog/v1/client.d.ts +4 -0
- package/dist/billing/catalog/v1/client.js +7 -0
- package/dist/billing/catalog/v1/index.d.ts +29 -0
- package/dist/billing/catalog/v1/index.js +5 -0
- package/dist/billing/catalog/v1/schema.d.ts +910 -0
- package/dist/billing/catalog/v1/schema.js +5 -0
- package/dist/billing/index.d.ts +3 -0
- package/dist/billing/index.js +6 -0
- package/dist/billing/project/v1/client.d.ts +4 -0
- package/dist/billing/project/v1/client.js +7 -0
- package/dist/billing/project/v1/index.d.ts +45 -0
- package/dist/billing/project/v1/index.js +5 -0
- package/dist/billing/project/v1/schema.d.ts +1443 -0
- package/dist/billing/project/v1/schema.js +5 -0
- package/dist/canopy/v1/client.d.ts +4 -0
- package/dist/canopy/v1/client.js +7 -0
- package/dist/canopy/v1/index.d.ts +24 -23
- package/dist/canopy/v1/index.js +4 -4
- package/dist/canopy/v1/schema.d.ts +113 -109
- package/dist/compute/v1/client.d.ts +4 -0
- package/dist/compute/v1/client.js +7 -0
- package/dist/compute/v1/index.d.ts +182 -127
- package/dist/compute/v1/index.js +4 -4
- package/dist/compute/v1/schema.d.ts +1501 -286
- package/dist/dns/v1/client.d.ts +4 -0
- package/dist/dns/v1/client.js +7 -0
- package/dist/dns/v1/index.d.ts +43 -0
- package/dist/dns/v1/index.js +5 -0
- package/dist/dns/v1/schema.d.ts +887 -0
- package/dist/dns/v1/schema.js +5 -0
- package/dist/iam/v1/client.d.ts +4 -0
- package/dist/iam/v1/client.js +7 -0
- package/dist/iam/v1/index.d.ts +55 -32
- package/dist/iam/v1/index.js +4 -4
- package/dist/iam/v1/schema.d.ts +521 -88
- package/dist/index.d.ts +11 -7
- package/dist/index.js +19 -5
- package/dist/monitoring/v1/client.d.ts +4 -0
- package/dist/monitoring/v1/client.js +7 -0
- package/dist/monitoring/v1/index.d.ts +130 -49
- package/dist/monitoring/v1/index.js +4 -4
- package/dist/monitoring/v1/schema.d.ts +2420 -527
- package/dist/notification/v1/client.d.ts +4 -0
- package/dist/notification/v1/client.js +7 -0
- package/dist/notification/v1/index.d.ts +77 -0
- package/dist/notification/v1/index.js +5 -0
- package/dist/notification/v1/schema.d.ts +2048 -0
- package/dist/notification/v1/schema.js +5 -0
- package/dist/support/v1/client.d.ts +4 -0
- package/dist/support/v1/client.js +7 -0
- package/dist/support/v1/index.d.ts +51 -0
- package/dist/support/v1/index.js +5 -0
- package/dist/support/v1/schema.d.ts +1082 -0
- package/dist/support/v1/schema.js +5 -0
- package/dist/tunnel/v1/client.d.ts +4 -0
- package/dist/tunnel/v1/client.js +7 -0
- package/dist/tunnel/v1/index.d.ts +8 -7
- package/dist/tunnel/v1/index.js +4 -4
- package/dist/tunnel/v1/schema.d.ts +40 -34
- package/package.json +30 -10
|
@@ -0,0 +1,1443 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/api/v1/projects/{projectId}/billing-account": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path: {
|
|
11
|
+
projectId: components["parameters"]["ProjectId"];
|
|
12
|
+
};
|
|
13
|
+
cookie?: never;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Get project billing account
|
|
17
|
+
* @description Returns the billing account's identity, its currency, and how much can still be spent. Cards,
|
|
18
|
+
* invoices and transaction history are not included; they belong to the account owner
|
|
19
|
+
* and are reached through `/account/v1/`.
|
|
20
|
+
*
|
|
21
|
+
* Returns 404 when the project has no billing account. Resources cannot be created in that
|
|
22
|
+
* state.
|
|
23
|
+
*/
|
|
24
|
+
get: operations["get-project-billing-account"];
|
|
25
|
+
put?: never;
|
|
26
|
+
post?: never;
|
|
27
|
+
delete?: never;
|
|
28
|
+
options?: never;
|
|
29
|
+
head?: never;
|
|
30
|
+
patch?: never;
|
|
31
|
+
trace?: never;
|
|
32
|
+
};
|
|
33
|
+
"/api/v1/projects/{projectId}/spend": {
|
|
34
|
+
parameters: {
|
|
35
|
+
query?: never;
|
|
36
|
+
header?: never;
|
|
37
|
+
path: {
|
|
38
|
+
projectId: components["parameters"]["ProjectId"];
|
|
39
|
+
};
|
|
40
|
+
cookie?: never;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* List project spend
|
|
44
|
+
* @description Covers a closed time range. Both bounds are required: a total without a stated period
|
|
45
|
+
* cannot be reconciled against an invoice.
|
|
46
|
+
*
|
|
47
|
+
* Includes usage that has not been invoiced yet.
|
|
48
|
+
*/
|
|
49
|
+
get: operations["list-project-spend"];
|
|
50
|
+
put?: never;
|
|
51
|
+
post?: never;
|
|
52
|
+
delete?: never;
|
|
53
|
+
options?: never;
|
|
54
|
+
head?: never;
|
|
55
|
+
patch?: never;
|
|
56
|
+
trace?: never;
|
|
57
|
+
};
|
|
58
|
+
"/api/v1/projects/{projectId}/usage-charges": {
|
|
59
|
+
parameters: {
|
|
60
|
+
query?: never;
|
|
61
|
+
header?: never;
|
|
62
|
+
path: {
|
|
63
|
+
projectId: components["parameters"]["ProjectId"];
|
|
64
|
+
};
|
|
65
|
+
cookie?: never;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* List project usage charges
|
|
69
|
+
* @description The individual charges behind the figures in `/spend`. Amounts here sum to the totals
|
|
70
|
+
* reported there over the same period.
|
|
71
|
+
*/
|
|
72
|
+
get: operations["list-project-usage-charges"];
|
|
73
|
+
put?: never;
|
|
74
|
+
post?: never;
|
|
75
|
+
delete?: never;
|
|
76
|
+
options?: never;
|
|
77
|
+
head?: never;
|
|
78
|
+
patch?: never;
|
|
79
|
+
trace?: never;
|
|
80
|
+
};
|
|
81
|
+
"/api/v1/projects/{projectId}/subscriptions": {
|
|
82
|
+
parameters: {
|
|
83
|
+
query?: never;
|
|
84
|
+
header?: never;
|
|
85
|
+
path: {
|
|
86
|
+
projectId: components["parameters"]["ProjectId"];
|
|
87
|
+
};
|
|
88
|
+
cookie?: never;
|
|
89
|
+
};
|
|
90
|
+
/** List project subscriptions */
|
|
91
|
+
get: operations["list-project-subscriptions"];
|
|
92
|
+
put?: never;
|
|
93
|
+
post?: never;
|
|
94
|
+
delete?: never;
|
|
95
|
+
options?: never;
|
|
96
|
+
head?: never;
|
|
97
|
+
patch?: never;
|
|
98
|
+
trace?: never;
|
|
99
|
+
};
|
|
100
|
+
"/api/v1/projects/{projectId}/subscriptions/{subscriptionId}/auto-renew": {
|
|
101
|
+
parameters: {
|
|
102
|
+
query?: never;
|
|
103
|
+
header?: never;
|
|
104
|
+
path: {
|
|
105
|
+
projectId: components["parameters"]["ProjectId"];
|
|
106
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
107
|
+
};
|
|
108
|
+
cookie?: never;
|
|
109
|
+
};
|
|
110
|
+
get?: never;
|
|
111
|
+
/**
|
|
112
|
+
* Set project auto renew
|
|
113
|
+
* @description Automatic renewal draws on the project billing account's balance, which a project member may
|
|
114
|
+
* commit. Paying by card requires the account owner and is done from the billing centre.
|
|
115
|
+
*/
|
|
116
|
+
put: operations["set-project-auto-renew"];
|
|
117
|
+
post?: never;
|
|
118
|
+
delete?: never;
|
|
119
|
+
options?: never;
|
|
120
|
+
head?: never;
|
|
121
|
+
patch?: never;
|
|
122
|
+
trace?: never;
|
|
123
|
+
};
|
|
124
|
+
"/api/v1/projects/{projectId}/orders": {
|
|
125
|
+
parameters: {
|
|
126
|
+
query?: never;
|
|
127
|
+
header?: never;
|
|
128
|
+
path: {
|
|
129
|
+
projectId: components["parameters"]["ProjectId"];
|
|
130
|
+
};
|
|
131
|
+
cookie?: never;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* List project orders
|
|
135
|
+
* @description An order awaiting payment shows what is outstanding. Paying it is done from the billing
|
|
136
|
+
* centre by the account owner.
|
|
137
|
+
*/
|
|
138
|
+
get: operations["list-project-orders"];
|
|
139
|
+
put?: never;
|
|
140
|
+
post?: never;
|
|
141
|
+
delete?: never;
|
|
142
|
+
options?: never;
|
|
143
|
+
head?: never;
|
|
144
|
+
patch?: never;
|
|
145
|
+
trace?: never;
|
|
146
|
+
};
|
|
147
|
+
"/api/v1/projects/{projectId}/orders/{orderId}": {
|
|
148
|
+
parameters: {
|
|
149
|
+
query?: never;
|
|
150
|
+
header?: never;
|
|
151
|
+
path: {
|
|
152
|
+
projectId: components["parameters"]["ProjectId"];
|
|
153
|
+
orderId: components["parameters"]["OrderId"];
|
|
154
|
+
};
|
|
155
|
+
cookie?: never;
|
|
156
|
+
};
|
|
157
|
+
/** Get project order */
|
|
158
|
+
get: operations["get-project-order"];
|
|
159
|
+
put?: never;
|
|
160
|
+
post?: never;
|
|
161
|
+
delete?: never;
|
|
162
|
+
options?: never;
|
|
163
|
+
head?: never;
|
|
164
|
+
patch?: never;
|
|
165
|
+
trace?: never;
|
|
166
|
+
};
|
|
167
|
+
"/api/v1/projects/{projectId}/active-resources": {
|
|
168
|
+
parameters: {
|
|
169
|
+
query?: never;
|
|
170
|
+
header?: never;
|
|
171
|
+
path: {
|
|
172
|
+
projectId: components["parameters"]["ProjectId"];
|
|
173
|
+
};
|
|
174
|
+
cookie?: never;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* List project active resources
|
|
178
|
+
* @description A resource that is running but does not appear here is not being charged for.
|
|
179
|
+
*/
|
|
180
|
+
get: operations["list-project-active-resources"];
|
|
181
|
+
put?: never;
|
|
182
|
+
post?: never;
|
|
183
|
+
delete?: never;
|
|
184
|
+
options?: never;
|
|
185
|
+
head?: never;
|
|
186
|
+
patch?: never;
|
|
187
|
+
trace?: never;
|
|
188
|
+
};
|
|
189
|
+
"/api/v1/projects/{projectId}/quotes": {
|
|
190
|
+
parameters: {
|
|
191
|
+
query?: never;
|
|
192
|
+
header?: never;
|
|
193
|
+
path: {
|
|
194
|
+
projectId: components["parameters"]["ProjectId"];
|
|
195
|
+
};
|
|
196
|
+
cookie?: never;
|
|
197
|
+
};
|
|
198
|
+
get?: never;
|
|
199
|
+
put?: never;
|
|
200
|
+
/**
|
|
201
|
+
* Quote for a project
|
|
202
|
+
* @description Priced in the project billing account's currency, and at any rate negotiated for that account.
|
|
203
|
+
* Nothing is reserved and nothing is recorded, so this may be called as often as required.
|
|
204
|
+
*
|
|
205
|
+
* Prices may change between quoting and ordering. An order is charged at the price in
|
|
206
|
+
* effect when it is placed, so a quote should be refreshed before a final confirmation is
|
|
207
|
+
* shown.
|
|
208
|
+
*
|
|
209
|
+
* A renewal is priced exactly as renewing would charge it: at the agreed amount or the price
|
|
210
|
+
* named, with the discounts the account holds, and with tax.
|
|
211
|
+
*
|
|
212
|
+
* Returns 404 when the project has no billing account, or when a subscription to be renewed
|
|
213
|
+
* does not belong to this project.
|
|
214
|
+
*/
|
|
215
|
+
post: operations["create-project-quote"];
|
|
216
|
+
delete?: never;
|
|
217
|
+
options?: never;
|
|
218
|
+
head?: never;
|
|
219
|
+
patch?: never;
|
|
220
|
+
trace?: never;
|
|
221
|
+
};
|
|
222
|
+
"/api/v1/projects/{projectId}/orders/{orderId}/items": {
|
|
223
|
+
parameters: {
|
|
224
|
+
query?: never;
|
|
225
|
+
header?: never;
|
|
226
|
+
path: {
|
|
227
|
+
projectId: components["parameters"]["ProjectId"];
|
|
228
|
+
orderId: components["parameters"]["OrderId"];
|
|
229
|
+
};
|
|
230
|
+
cookie?: never;
|
|
231
|
+
};
|
|
232
|
+
/** List project order items */
|
|
233
|
+
get: operations["list-project-order-items"];
|
|
234
|
+
put?: never;
|
|
235
|
+
post?: never;
|
|
236
|
+
delete?: never;
|
|
237
|
+
options?: never;
|
|
238
|
+
head?: never;
|
|
239
|
+
patch?: never;
|
|
240
|
+
trace?: never;
|
|
241
|
+
};
|
|
242
|
+
"/api/v1/projects/{projectId}/allowances": {
|
|
243
|
+
parameters: {
|
|
244
|
+
query?: never;
|
|
245
|
+
header?: never;
|
|
246
|
+
path: {
|
|
247
|
+
projectId: components["parameters"]["ProjectId"];
|
|
248
|
+
};
|
|
249
|
+
cookie?: never;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* List project allowances
|
|
253
|
+
* @description These belong to the project's billing account and are shared with every other project linked to it,
|
|
254
|
+
* so what is left here may be consumed elsewhere.
|
|
255
|
+
*/
|
|
256
|
+
get: operations["list-project-allowances"];
|
|
257
|
+
put?: never;
|
|
258
|
+
post?: never;
|
|
259
|
+
delete?: never;
|
|
260
|
+
options?: never;
|
|
261
|
+
head?: never;
|
|
262
|
+
patch?: never;
|
|
263
|
+
trace?: never;
|
|
264
|
+
};
|
|
265
|
+
"/api/v1/projects/{projectId}/entitlements": {
|
|
266
|
+
parameters: {
|
|
267
|
+
query?: never;
|
|
268
|
+
header?: never;
|
|
269
|
+
path: {
|
|
270
|
+
projectId: components["parameters"]["ProjectId"];
|
|
271
|
+
};
|
|
272
|
+
cookie?: never;
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* List project entitlements
|
|
276
|
+
* @description Includes capabilities bought for this project and those the project's billing account holds at
|
|
277
|
+
* account level.
|
|
278
|
+
*
|
|
279
|
+
* Where a capability counts uses, `remaining_quantity` states how much is left. Whether
|
|
280
|
+
* exceeding it refuses the request or simply continues to be charged for is decided by
|
|
281
|
+
* the service that owns the capability.
|
|
282
|
+
*/
|
|
283
|
+
get: operations["list-project-entitlements"];
|
|
284
|
+
put?: never;
|
|
285
|
+
post?: never;
|
|
286
|
+
delete?: never;
|
|
287
|
+
options?: never;
|
|
288
|
+
head?: never;
|
|
289
|
+
patch?: never;
|
|
290
|
+
trace?: never;
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
export type webhooks = Record<string, never>;
|
|
294
|
+
export interface components {
|
|
295
|
+
schemas: {
|
|
296
|
+
/**
|
|
297
|
+
* @description Whether a fulfilled purchase may end immediately or only after its paid term. Does not grant a refund. When absent, the terms are not configured and termination requires review.
|
|
298
|
+
* @enum {string}
|
|
299
|
+
*/
|
|
300
|
+
TerminationPolicy: "immediate" | "period_end";
|
|
301
|
+
/**
|
|
302
|
+
* @description Prorated returns the unused value of paid service periods using integer-second duration ratios. Setup fees are excluded. Tax and funds follow the original invoice and payment sources.
|
|
303
|
+
* @enum {string}
|
|
304
|
+
*/
|
|
305
|
+
RefundPolicy: "none" | "prorated";
|
|
306
|
+
/** @description A cancellation request for the original purchase. scheduled_at is the intended time; effective_at is the confirmed end of service. The request alone does not stop metering or issue a refund. */
|
|
307
|
+
CancellationRequest: {
|
|
308
|
+
reason?: string;
|
|
309
|
+
/** Format: uuid */
|
|
310
|
+
id: string;
|
|
311
|
+
/** Format: uuid */
|
|
312
|
+
subscription_id: string;
|
|
313
|
+
/** @enum {string} */
|
|
314
|
+
status: "requested" | "scheduled" | "releasing" | "failed" | "completed" | "canceled";
|
|
315
|
+
/** @enum {string} */
|
|
316
|
+
mode: "immediate" | "period_end";
|
|
317
|
+
/** Format: date-time */
|
|
318
|
+
requested_at: string;
|
|
319
|
+
/** Format: date-time */
|
|
320
|
+
scheduled_at?: string;
|
|
321
|
+
/** Format: date-time */
|
|
322
|
+
effective_at?: string;
|
|
323
|
+
/** Format: date-time */
|
|
324
|
+
completed_at?: string;
|
|
325
|
+
/** Format: date-time */
|
|
326
|
+
release_started_at?: string;
|
|
327
|
+
/** Format: date-time */
|
|
328
|
+
canceled_at?: string;
|
|
329
|
+
forfeit_remaining_value: boolean;
|
|
330
|
+
failure_code?: string;
|
|
331
|
+
failure_reason?: string;
|
|
332
|
+
};
|
|
333
|
+
Error: {
|
|
334
|
+
code?: string;
|
|
335
|
+
message: string;
|
|
336
|
+
/**
|
|
337
|
+
* @description What a given `code` carries alongside the message. The keys depend on the code,
|
|
338
|
+
* and a client that does not recognise one ignores it.
|
|
339
|
+
*/
|
|
340
|
+
meta?: {
|
|
341
|
+
[key: string]: unknown;
|
|
342
|
+
};
|
|
343
|
+
/** Format: int64 */
|
|
344
|
+
status: number;
|
|
345
|
+
};
|
|
346
|
+
Product: {
|
|
347
|
+
id: components["schemas"]["ProductID"];
|
|
348
|
+
name: string;
|
|
349
|
+
description?: string;
|
|
350
|
+
};
|
|
351
|
+
/** @description Immutable platform service identifier, such as compute, canopy or assistant. */
|
|
352
|
+
ProductID: string;
|
|
353
|
+
/**
|
|
354
|
+
* @description Identify a price directly, or select a price for a plan. For each resource give its ID or lookup key, never both. Lookup keys require product_id.
|
|
355
|
+
*
|
|
356
|
+
* A line that gives a meter, `dimensions` or `duration_seconds` estimates usage and is
|
|
357
|
+
* priced only at a postpaid price. Such a line is refused with HTTP 400
|
|
358
|
+
* `BILLING_PURCHASE_INVALID` when `price_type` is `prepaid` or `one_time`, or when the price
|
|
359
|
+
* it names is not postpaid; `meta.field` is `price_type`, `price_id` or `price_lookup_key`
|
|
360
|
+
* accordingly. When the plan has no postpaid price, the line is returned unpriced with
|
|
361
|
+
* `no_price`.
|
|
362
|
+
*/
|
|
363
|
+
QuoteLine: {
|
|
364
|
+
price_lookup_key?: string;
|
|
365
|
+
plan_lookup_key?: string;
|
|
366
|
+
meter_lookup_key?: string;
|
|
367
|
+
/** Format: uuid */
|
|
368
|
+
price_id?: string;
|
|
369
|
+
product_id?: components["schemas"]["ProductID"];
|
|
370
|
+
/** Format: uuid */
|
|
371
|
+
plan_id?: string;
|
|
372
|
+
/** Format: uuid */
|
|
373
|
+
meter_id?: string;
|
|
374
|
+
/**
|
|
375
|
+
* @description The attributes the price depends on — region, instance type, token class.
|
|
376
|
+
*
|
|
377
|
+
* Required when the price draws its rates from a price list, which is how anything
|
|
378
|
+
* sold by region or by machine type is priced. A price that carries a single unit
|
|
379
|
+
* amount, or a ladder, has no attributes to give and takes none.
|
|
380
|
+
*
|
|
381
|
+
* Every attribute the meter declares must be present. A combination with no rate
|
|
382
|
+
* covering it is refused rather than priced at zero.
|
|
383
|
+
*/
|
|
384
|
+
dimensions?: {
|
|
385
|
+
[key: string]: string;
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* @description Narrows the selection when a plan offers more than one billing type.
|
|
389
|
+
* @enum {string}
|
|
390
|
+
*/
|
|
391
|
+
price_type?: "postpaid" | "prepaid" | "one_time";
|
|
392
|
+
/** @enum {string} */
|
|
393
|
+
interval?: "none" | "day" | "month" | "year";
|
|
394
|
+
interval_count?: number;
|
|
395
|
+
quantity: string;
|
|
396
|
+
/**
|
|
397
|
+
* Format: int64
|
|
398
|
+
* @description For metered items, how long to price for. This allows an estimate such as "about
|
|
399
|
+
* this much per month" to be shown before anything exists. The priced quantity is
|
|
400
|
+
* `quantity` multiplied by this duration.
|
|
401
|
+
*/
|
|
402
|
+
duration_seconds?: number;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* @description Price renewing a prepaid subscription. Give `price_id`, or `interval` with
|
|
406
|
+
* `interval_count`, to renew for another term at the price currently sold for it. Naming
|
|
407
|
+
* the current term, or giving neither, renews at the agreed amount.
|
|
408
|
+
*/
|
|
409
|
+
QuoteRenewal: {
|
|
410
|
+
/** Format: uuid */
|
|
411
|
+
subscription_id: string;
|
|
412
|
+
/** Format: uuid */
|
|
413
|
+
price_id?: string;
|
|
414
|
+
/** @enum {string} */
|
|
415
|
+
interval?: "day" | "month" | "year";
|
|
416
|
+
interval_count?: number;
|
|
417
|
+
/**
|
|
418
|
+
* @description How many consecutive periods to renew for.
|
|
419
|
+
* @default 1
|
|
420
|
+
*/
|
|
421
|
+
periods?: number;
|
|
422
|
+
};
|
|
423
|
+
/** @description Specify lines for new purchases and renewals for existing subscriptions. The total includes all requested items. */
|
|
424
|
+
QuoteRequest: {
|
|
425
|
+
lines?: components["schemas"]["QuoteLine"][];
|
|
426
|
+
renewals?: components["schemas"]["QuoteRenewal"][];
|
|
427
|
+
};
|
|
428
|
+
QuoteLineResult: {
|
|
429
|
+
/** @description Tax included in the account quote. Absent in public catalogue estimates. */
|
|
430
|
+
tax_amount?: components["schemas"]["Money"];
|
|
431
|
+
/** @description Tax already included in the displayed price. */
|
|
432
|
+
tax_included_amount?: components["schemas"]["Money"];
|
|
433
|
+
/** @description Which line of the request this answers. */
|
|
434
|
+
index: number;
|
|
435
|
+
/**
|
|
436
|
+
* @description Whether a price was found for this line. Read this before anything else.
|
|
437
|
+
*
|
|
438
|
+
* A single item with no price no longer fails the whole request. A catalogue
|
|
439
|
+
* almost always has something not yet priced, and refusing the request would
|
|
440
|
+
* leave no way to render a list in which a few entries are simply not on sale.
|
|
441
|
+
*
|
|
442
|
+
* When false, `price_id`, `unit_amount` and `amount` are absent and
|
|
443
|
+
* `unpriced_reason` states what is missing.
|
|
444
|
+
*/
|
|
445
|
+
priced: boolean;
|
|
446
|
+
/**
|
|
447
|
+
* @description Why no price was found; `none` while `priced` is true.
|
|
448
|
+
*
|
|
449
|
+
* The last four are told apart because their remedies differ: the price points
|
|
450
|
+
* at no price list, the list holds no rate for that meter, that exact combination
|
|
451
|
+
* of attributes is not configured, or it is configured but nothing is in effect
|
|
452
|
+
* at the moment asked about.
|
|
453
|
+
* @enum {string}
|
|
454
|
+
*/
|
|
455
|
+
unpriced_reason?: "none" | "no_price" | "no_rate_card" | "no_meter" | "no_dimensions" | "no_effective_rule";
|
|
456
|
+
/**
|
|
457
|
+
* Format: uuid
|
|
458
|
+
* @description The price selected. Returned whenever `priced` is true, including when the
|
|
459
|
+
* request identified the item indirectly, so that the choice can be confirmed.
|
|
460
|
+
*/
|
|
461
|
+
price_id?: string;
|
|
462
|
+
plan_name?: string;
|
|
463
|
+
unit_amount?: components["schemas"]["Money"];
|
|
464
|
+
/**
|
|
465
|
+
* @description The quantity actually priced. When `duration_seconds` is given, it is the requested
|
|
466
|
+
* `quantity` multiplied by that duration.
|
|
467
|
+
*/
|
|
468
|
+
quantity?: string;
|
|
469
|
+
/** @description Not rounded. Round only for display. */
|
|
470
|
+
amount?: components["schemas"]["Money"];
|
|
471
|
+
currency: string;
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* @description What renewing would charge. Renewing the same subscription for the same term and number
|
|
475
|
+
* of periods charges exactly `total`, unless prices or the discounts the account holds
|
|
476
|
+
* change in between.
|
|
477
|
+
*/
|
|
478
|
+
QuoteRenewalResult: {
|
|
479
|
+
/** @description Which renewal of the request this answers. */
|
|
480
|
+
index: number;
|
|
481
|
+
/** Format: uuid */
|
|
482
|
+
subscription_id: string;
|
|
483
|
+
/**
|
|
484
|
+
* Format: uuid
|
|
485
|
+
* @description The price the renewal is charged under.
|
|
486
|
+
*/
|
|
487
|
+
price_id: string;
|
|
488
|
+
/** @enum {string} */
|
|
489
|
+
interval: "day" | "month" | "year";
|
|
490
|
+
interval_count: number;
|
|
491
|
+
periods: number;
|
|
492
|
+
/**
|
|
493
|
+
* @description The price of the periods before the discounts the account holds. A discount the
|
|
494
|
+
* subscription already carries is reflected here. Contains tax only where the price
|
|
495
|
+
* itself includes it.
|
|
496
|
+
*/
|
|
497
|
+
amount: components["schemas"]["Money"];
|
|
498
|
+
/** @description The reduction from a discount the account holds. */
|
|
499
|
+
discount_amount: components["schemas"]["Money"];
|
|
500
|
+
/** @description Tax on the discounted amount. */
|
|
501
|
+
tax_amount: components["schemas"]["Money"];
|
|
502
|
+
/** @description The part of `tax_amount` already contained in `amount`. */
|
|
503
|
+
tax_included_amount: components["schemas"]["Money"];
|
|
504
|
+
/**
|
|
505
|
+
* @description What renewing would charge: `amount` less `discount_amount`, plus `tax_amount`, less
|
|
506
|
+
* `tax_included_amount`.
|
|
507
|
+
*/
|
|
508
|
+
total: components["schemas"]["Money"];
|
|
509
|
+
};
|
|
510
|
+
Quote: {
|
|
511
|
+
lines?: components["schemas"]["QuoteLineResult"][];
|
|
512
|
+
renewals?: components["schemas"]["QuoteRenewalResult"][];
|
|
513
|
+
/**
|
|
514
|
+
* @description What would be owed in total, renewals included. Amounts to be returned are not netted
|
|
515
|
+
* off it.
|
|
516
|
+
*
|
|
517
|
+
* Null when any line could not be priced. What would be owed is not knowable then, and a
|
|
518
|
+
* total that silently left the unpriced lines out would read as a smaller bill rather than
|
|
519
|
+
* an incomplete one — the per-line `priced` flag is easy to skip, a missing total is not.
|
|
520
|
+
*/
|
|
521
|
+
total?: components["schemas"]["Money"] | null;
|
|
522
|
+
currency: string;
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* @description A narrow view of the project's billing account, restricted to what a project member needs in order
|
|
526
|
+
* to know whether the project's resources will keep running.
|
|
527
|
+
*/
|
|
528
|
+
ProjectBillingAccount: {
|
|
529
|
+
/**
|
|
530
|
+
* Format: int64
|
|
531
|
+
* @description Identifies the billing account. Use it to link into the billing centre.
|
|
532
|
+
*/
|
|
533
|
+
billing_account_id: number;
|
|
534
|
+
name: string;
|
|
535
|
+
/**
|
|
536
|
+
* @description Everything this project is charged is in this currency, and it cannot change while
|
|
537
|
+
* the account exists.
|
|
538
|
+
*/
|
|
539
|
+
currency: string;
|
|
540
|
+
/**
|
|
541
|
+
* @description What remains to be spent. It already accounts for this month's uninvoiced usage, so
|
|
542
|
+
* it is what will be available at checkout rather than the balance shown in the
|
|
543
|
+
* billing centre. It goes negative when usage has exceeded the balance.
|
|
544
|
+
*/
|
|
545
|
+
spendable_amount: components["schemas"]["Money"];
|
|
546
|
+
/**
|
|
547
|
+
* @description `active` — nothing is owed. `past_due` — the account owes money and resources are
|
|
548
|
+
* still running. `suspended` — resources have been stopped for non-payment.
|
|
549
|
+
* @enum {string}
|
|
550
|
+
*/
|
|
551
|
+
status: "active" | "past_due" | "suspended";
|
|
552
|
+
/**
|
|
553
|
+
* Format: date-time
|
|
554
|
+
* @description When this project's resources will be stopped unless the account is topped up.
|
|
555
|
+
* Absent while `status` is `active`.
|
|
556
|
+
*/
|
|
557
|
+
suspends_at?: string | null;
|
|
558
|
+
};
|
|
559
|
+
AccountIdentity: {
|
|
560
|
+
/** Format: int64 */
|
|
561
|
+
id: number;
|
|
562
|
+
name: string;
|
|
563
|
+
currency: string;
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* @description `refunded` means the invoice was paid and has since been refunded in full; a partial refund
|
|
567
|
+
* leaves it `paid`, with the refunded part in `amount_refunded`.
|
|
568
|
+
*
|
|
569
|
+
* `void` means the invoice will not be paid and holds no money: nothing was paid, or its order
|
|
570
|
+
* failed or was canceled and everything paid toward it has been returned.
|
|
571
|
+
* @enum {string}
|
|
572
|
+
*/
|
|
573
|
+
InvoiceStatus: "draft" | "open" | "paid" | "refunded" | "void" | "uncollectible";
|
|
574
|
+
UsageCharge: {
|
|
575
|
+
/** Format: uuid */
|
|
576
|
+
subscription_id?: string;
|
|
577
|
+
/** Format: uuid */
|
|
578
|
+
id: string;
|
|
579
|
+
/** Format: uuid */
|
|
580
|
+
project_id?: string;
|
|
581
|
+
/**
|
|
582
|
+
* @description The project and its current name, for display. Absent when the project no longer exists or its
|
|
583
|
+
* details cannot be read at the moment; `project_id` still identifies it.
|
|
584
|
+
*/
|
|
585
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
586
|
+
product: components["schemas"]["Product"];
|
|
587
|
+
/** @description Which resource this was charged for. Empty for charges not tied to one. */
|
|
588
|
+
resource_id?: string;
|
|
589
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
590
|
+
unit?: string;
|
|
591
|
+
/** @description The attributes the rate was chosen by, such as region and machine type. */
|
|
592
|
+
dimensions?: {
|
|
593
|
+
[key: string]: string;
|
|
594
|
+
};
|
|
595
|
+
/** Format: date-time */
|
|
596
|
+
window_start: string;
|
|
597
|
+
/**
|
|
598
|
+
* Format: date-time
|
|
599
|
+
* @description Exclusive.
|
|
600
|
+
*/
|
|
601
|
+
window_end: string;
|
|
602
|
+
/** @description How much was used, before any included allowance. */
|
|
603
|
+
gross_quantity?: string;
|
|
604
|
+
/** @description How much of that was covered by an allowance. */
|
|
605
|
+
deducted_quantity?: string;
|
|
606
|
+
/** @description What was charged for — the gross quantity less the part covered. */
|
|
607
|
+
quantity: string;
|
|
608
|
+
unit_amount?: components["schemas"]["Money"];
|
|
609
|
+
amount?: components["schemas"]["Money"];
|
|
610
|
+
currency: string;
|
|
611
|
+
/**
|
|
612
|
+
* Format: uuid
|
|
613
|
+
* @description Absent until the period is invoiced.
|
|
614
|
+
*/
|
|
615
|
+
invoice_id?: string | null;
|
|
616
|
+
};
|
|
617
|
+
UsageChargeList: {
|
|
618
|
+
items: components["schemas"]["UsageCharge"][];
|
|
619
|
+
/** Format: int64 */
|
|
620
|
+
total_count?: number;
|
|
621
|
+
};
|
|
622
|
+
SpendRow: {
|
|
623
|
+
product?: components["schemas"]["Product"];
|
|
624
|
+
/** Format: uuid */
|
|
625
|
+
plan_id?: string;
|
|
626
|
+
plan_name?: string;
|
|
627
|
+
/** @description Present only when grouped by resource. */
|
|
628
|
+
resource_id?: string;
|
|
629
|
+
amount: components["schemas"]["Money"];
|
|
630
|
+
currency: string;
|
|
631
|
+
};
|
|
632
|
+
SpendRowList: {
|
|
633
|
+
items: components["schemas"]["SpendRow"][];
|
|
634
|
+
/** @description The sum over the whole period, not only the page returned. */
|
|
635
|
+
total: components["schemas"]["Money"];
|
|
636
|
+
currency: string;
|
|
637
|
+
/** Format: int64 */
|
|
638
|
+
total_count?: number;
|
|
639
|
+
};
|
|
640
|
+
SubscriptionList: {
|
|
641
|
+
items: components["schemas"]["Subscription"][];
|
|
642
|
+
/** Format: int64 */
|
|
643
|
+
total_count?: number;
|
|
644
|
+
};
|
|
645
|
+
/** @description An independently billed purchase. Fixed renewals use the agreed recurring_amount and interval; already paid periods retain their original value. Technical state belongs to the owning service. */
|
|
646
|
+
Subscription: {
|
|
647
|
+
currency: string;
|
|
648
|
+
/** @enum {string} */
|
|
649
|
+
billing_type: "postpaid" | "prepaid" | "one_time";
|
|
650
|
+
/** @enum {string} */
|
|
651
|
+
interval: "none" | "day" | "month" | "year";
|
|
652
|
+
interval_count?: number;
|
|
653
|
+
/** @description Whole-subscription prepaid renewal amount, after continuing discounts and before tax. Absent for other billing types. */
|
|
654
|
+
recurring_amount?: string;
|
|
655
|
+
termination_policy?: components["schemas"]["TerminationPolicy"];
|
|
656
|
+
refund_policy?: components["schemas"]["RefundPolicy"];
|
|
657
|
+
/** Format: uuid */
|
|
658
|
+
order_item_id?: string;
|
|
659
|
+
/** Format: uuid */
|
|
660
|
+
replaces_subscription_id?: string;
|
|
661
|
+
/** Format: uuid */
|
|
662
|
+
coupon_id?: string;
|
|
663
|
+
coupon?: components["schemas"]["ObjectIdentity"];
|
|
664
|
+
discounted_renewals_remaining?: number;
|
|
665
|
+
suspend_reason?: string;
|
|
666
|
+
/** Format: date-time */
|
|
667
|
+
billing_cycle_anchor?: string;
|
|
668
|
+
cancellation_request?: components["schemas"]["CancellationRequest"];
|
|
669
|
+
/**
|
|
670
|
+
* @description How the purchase, or the latest renewal paid with a saved card, was paid. Automatic renewal
|
|
671
|
+
* tries this card after the account's balance and credits, and the account's default card after
|
|
672
|
+
* that.
|
|
673
|
+
*/
|
|
674
|
+
paid_with?: components["schemas"]["PaidWith"];
|
|
675
|
+
/** Format: date-time */
|
|
676
|
+
created_at?: string;
|
|
677
|
+
/** Format: uuid */
|
|
678
|
+
id: string;
|
|
679
|
+
/**
|
|
680
|
+
* Format: int64
|
|
681
|
+
* @description The billing account that made the purchase. Renewals of a project subscription are charged to the project's current billing account.
|
|
682
|
+
*/
|
|
683
|
+
billing_account_id: number;
|
|
684
|
+
account: components["schemas"]["AccountIdentity"];
|
|
685
|
+
product_id: components["schemas"]["ProductID"];
|
|
686
|
+
/**
|
|
687
|
+
* Format: uuid
|
|
688
|
+
* @description Which project this is for. Absent when it was bought at account level, such as a
|
|
689
|
+
* membership, which belongs to no single project.
|
|
690
|
+
*/
|
|
691
|
+
project_id?: string | null;
|
|
692
|
+
/**
|
|
693
|
+
* @description The project and its current name, for display. Absent for a purchase at account level,
|
|
694
|
+
* and when the project no longer exists or its details cannot be read at the moment;
|
|
695
|
+
* `project_id` still identifies it then.
|
|
696
|
+
*/
|
|
697
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
698
|
+
product: components["schemas"]["Product"];
|
|
699
|
+
/** Format: uuid */
|
|
700
|
+
plan_id: string;
|
|
701
|
+
plan_name: string;
|
|
702
|
+
/** Format: uuid */
|
|
703
|
+
price_id: string;
|
|
704
|
+
quantity: string;
|
|
705
|
+
/**
|
|
706
|
+
* Format: date-time
|
|
707
|
+
* @description Present for prepaid items. Absent for metered ones, which have no end date.
|
|
708
|
+
*/
|
|
709
|
+
paid_until?: string | null;
|
|
710
|
+
auto_renew: boolean;
|
|
711
|
+
/** @enum {string} */
|
|
712
|
+
status: "pending" | "active" | "suspended" | "canceled" | "terminated";
|
|
713
|
+
/** Format: date-time */
|
|
714
|
+
started_at?: string | null;
|
|
715
|
+
/** Format: date-time */
|
|
716
|
+
ended_at?: string | null;
|
|
717
|
+
};
|
|
718
|
+
AutoRenewSet: {
|
|
719
|
+
auto_renew: boolean;
|
|
720
|
+
};
|
|
721
|
+
/** @description A resource currently accruing charges by the second. */
|
|
722
|
+
ActiveResource: {
|
|
723
|
+
/** Format: uuid */
|
|
724
|
+
id: string;
|
|
725
|
+
/** Format: date-time */
|
|
726
|
+
ended_at?: string;
|
|
727
|
+
/** Format: date-time */
|
|
728
|
+
suspended_at?: string;
|
|
729
|
+
/** Format: date-time */
|
|
730
|
+
state_changed_at?: string;
|
|
731
|
+
/**
|
|
732
|
+
* Format: uuid
|
|
733
|
+
* @description The postpaid subscription charged for this metering record, including shared services.
|
|
734
|
+
*/
|
|
735
|
+
subscription_id: string;
|
|
736
|
+
resource_id: string;
|
|
737
|
+
product: components["schemas"]["Product"];
|
|
738
|
+
/** @description What it is, as its own service names it. */
|
|
739
|
+
resource_type?: string;
|
|
740
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
741
|
+
unit?: string;
|
|
742
|
+
/** @description How much is held — cores, MiB, cards. Not how much has been used. */
|
|
743
|
+
quantity: string;
|
|
744
|
+
dimensions?: {
|
|
745
|
+
[key: string]: string;
|
|
746
|
+
};
|
|
747
|
+
/** @enum {string} */
|
|
748
|
+
status: "active" | "suspended" | "closing" | "completed";
|
|
749
|
+
/** Format: date-time */
|
|
750
|
+
started_at: string;
|
|
751
|
+
/**
|
|
752
|
+
* Format: date-time
|
|
753
|
+
* @description Usage has been generated up to this boundary; it does not imply invoicing or payment.
|
|
754
|
+
*/
|
|
755
|
+
metered_until: string;
|
|
756
|
+
};
|
|
757
|
+
ActiveResourceList: {
|
|
758
|
+
items: components["schemas"]["ActiveResource"][];
|
|
759
|
+
/** Format: int64 */
|
|
760
|
+
total_count?: number;
|
|
761
|
+
};
|
|
762
|
+
/**
|
|
763
|
+
* @description Follows the items. `pending` is not yet accepted and may be paid or unpaid. `active` is
|
|
764
|
+
* accepted with items still being set up. `completed` means every item was set up.
|
|
765
|
+
* `partially_completed` means some items were set up and the others failed and were
|
|
766
|
+
* refunded to their original payment sources. `failed` means every item failed and the
|
|
767
|
+
* whole order was refunded. `canceled` means the order was withdrawn before payment and
|
|
768
|
+
* nothing was charged.
|
|
769
|
+
* @enum {string}
|
|
770
|
+
*/
|
|
771
|
+
OrderStatus: "pending" | "active" | "completed" | "partially_completed" | "failed" | "canceled";
|
|
772
|
+
/**
|
|
773
|
+
* @description `pending` is waiting to be set up. `completed` was confirmed by the service.
|
|
774
|
+
* `failed` was not set up and its amount was refunded to the original payment sources.
|
|
775
|
+
* `canceled` was withdrawn with its unpaid order. A completed item is ended by canceling
|
|
776
|
+
* its subscription.
|
|
777
|
+
* @enum {string}
|
|
778
|
+
*/
|
|
779
|
+
OrderItemStatus: "pending" | "completed" | "failed" | "canceled";
|
|
780
|
+
Order: {
|
|
781
|
+
/** Format: uuid */
|
|
782
|
+
coupon_id?: string;
|
|
783
|
+
coupon?: components["schemas"]["ObjectIdentity"];
|
|
784
|
+
/** Format: uuid */
|
|
785
|
+
promotion_code_id?: string;
|
|
786
|
+
/** @description Code text frozen when this order applied the coupon. */
|
|
787
|
+
promotion_code?: string;
|
|
788
|
+
invoice?: components["schemas"]["InvoiceSummary"];
|
|
789
|
+
/** @description How the order was paid. Absent until it is paid. */
|
|
790
|
+
paid_with?: components["schemas"]["PaidWith"];
|
|
791
|
+
account?: components["schemas"]["AccountIdentity"];
|
|
792
|
+
cancel_reason?: string;
|
|
793
|
+
/** Format: date-time */
|
|
794
|
+
change_effective_at?: string;
|
|
795
|
+
/** Format: uuid */
|
|
796
|
+
id: string;
|
|
797
|
+
/**
|
|
798
|
+
* Format: uuid
|
|
799
|
+
* @description Which project it was bought for. Absent for a purchase made at account level, such
|
|
800
|
+
* as a membership.
|
|
801
|
+
*/
|
|
802
|
+
project_id?: string | null;
|
|
803
|
+
/**
|
|
804
|
+
* @description The project and its current name, for display. Absent for a purchase at account level,
|
|
805
|
+
* and when the project no longer exists or its details cannot be read at the moment;
|
|
806
|
+
* `project_id` still identifies it then.
|
|
807
|
+
*/
|
|
808
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
809
|
+
/**
|
|
810
|
+
* Format: int64
|
|
811
|
+
* @description The billing account the order was placed with. It does not change when the project is later
|
|
812
|
+
* linked to another billing account. While this account is suspended or closed the order cannot
|
|
813
|
+
* be accepted, and a change scheduled for the end of a period is not invoiced and is called off
|
|
814
|
+
* when the current period ends; such requests fail with BILLING_ACCOUNT_UNAVAILABLE.
|
|
815
|
+
*/
|
|
816
|
+
billing_account_id?: number;
|
|
817
|
+
currency: string;
|
|
818
|
+
/**
|
|
819
|
+
* @description `adopt` brings a resource that already existed under billing. It charges nothing at
|
|
820
|
+
* the time and starts billing from the moment agreed.
|
|
821
|
+
* @enum {string}
|
|
822
|
+
*/
|
|
823
|
+
type: "purchase" | "renew" | "change" | "adopt";
|
|
824
|
+
status: components["schemas"]["OrderStatus"];
|
|
825
|
+
/**
|
|
826
|
+
* @description When a plan change takes effect. `none` on anything that is not a change.
|
|
827
|
+
*
|
|
828
|
+
* `period_end` orders stay pending until the first period at the new price is paid. That period
|
|
829
|
+
* is invoiced shortly before the current paid period ends and starts when it ends; if the
|
|
830
|
+
* invoice is still unpaid by then, the order is canceled and the subscription renews or ends as
|
|
831
|
+
* usual. Renewing in the meantime moves all of this along with it.
|
|
832
|
+
* @enum {string}
|
|
833
|
+
*/
|
|
834
|
+
change_effective?: "none" | "immediate" | "period_end";
|
|
835
|
+
/**
|
|
836
|
+
* Format: date-time
|
|
837
|
+
* @description Acceptance deadline. Only pending orders expire automatically.
|
|
838
|
+
*/
|
|
839
|
+
expires_at?: string | null;
|
|
840
|
+
/** Format: date-time */
|
|
841
|
+
created_at: string;
|
|
842
|
+
/**
|
|
843
|
+
* @description What was bought. Present on a single order and on every order in a list, so a list
|
|
844
|
+
* can be rendered without a further request per row.
|
|
845
|
+
*/
|
|
846
|
+
items: components["schemas"]["OrderItem"][];
|
|
847
|
+
};
|
|
848
|
+
OrderList: {
|
|
849
|
+
items: components["schemas"]["Order"][];
|
|
850
|
+
/** Format: int64 */
|
|
851
|
+
total_count?: number;
|
|
852
|
+
};
|
|
853
|
+
/**
|
|
854
|
+
* @description How it was paid, as recorded at the time. It is kept as it was: removing the card afterwards
|
|
855
|
+
* does not change it, and `payment_method_id` may then name a card that no longer exists.
|
|
856
|
+
*/
|
|
857
|
+
PaidWith: {
|
|
858
|
+
/**
|
|
859
|
+
* @description `balance` when the account's balance and credits covered it in full. Otherwise the method used
|
|
860
|
+
* with the gateway, such as `card`.
|
|
861
|
+
*/
|
|
862
|
+
method_type: string;
|
|
863
|
+
/** @description The gateway that collected it. Absent when `method_type` is `balance`. */
|
|
864
|
+
payment_gateway?: string;
|
|
865
|
+
/**
|
|
866
|
+
* Format: uuid
|
|
867
|
+
* @description The saved payment method that was charged, when one was.
|
|
868
|
+
*/
|
|
869
|
+
payment_method_id?: string;
|
|
870
|
+
brand?: string;
|
|
871
|
+
last4?: string;
|
|
872
|
+
};
|
|
873
|
+
/** @description Frozen purchase terms. Monetary fields come from related invoice-line snapshots and are absent when there is no immediate invoice. Later catalog changes do not reprice this line. */
|
|
874
|
+
OrderItem: {
|
|
875
|
+
position?: number;
|
|
876
|
+
configuration?: {
|
|
877
|
+
[key: string]: unknown;
|
|
878
|
+
};
|
|
879
|
+
/** Format: uuid */
|
|
880
|
+
subscription_id?: string;
|
|
881
|
+
/** @enum {string} */
|
|
882
|
+
interval: "none" | "day" | "month" | "year";
|
|
883
|
+
interval_count?: number;
|
|
884
|
+
termination_policy?: components["schemas"]["TerminationPolicy"];
|
|
885
|
+
refund_policy?: components["schemas"]["RefundPolicy"];
|
|
886
|
+
completes_on_payment: boolean;
|
|
887
|
+
recurring_amount?: string;
|
|
888
|
+
setup_amount?: string;
|
|
889
|
+
/**
|
|
890
|
+
* @description The payment timing of the selected price.
|
|
891
|
+
* @enum {string}
|
|
892
|
+
*/
|
|
893
|
+
billing_type: "postpaid" | "prepaid" | "one_time";
|
|
894
|
+
/** @description Total tax after discounts, including any tax already included in the price. */
|
|
895
|
+
tax_amount?: string;
|
|
896
|
+
/** @description The part of tax_amount already included in gross_amount; it is not charged again. */
|
|
897
|
+
tax_included_amount?: string;
|
|
898
|
+
/** Format: uuid */
|
|
899
|
+
id: string;
|
|
900
|
+
/** Format: uuid */
|
|
901
|
+
order_id?: string;
|
|
902
|
+
/** Format: uuid */
|
|
903
|
+
price_id: string;
|
|
904
|
+
/** @description Which service this line belongs to. */
|
|
905
|
+
product_id?: components["schemas"]["ProductID"];
|
|
906
|
+
product?: components["schemas"]["Product"];
|
|
907
|
+
/**
|
|
908
|
+
* Format: uuid
|
|
909
|
+
* @description Which plan was bought.
|
|
910
|
+
*/
|
|
911
|
+
plan_id: string;
|
|
912
|
+
/**
|
|
913
|
+
* @description What it was called when bought. It does not follow later catalogue renames and is
|
|
914
|
+
* not translated.
|
|
915
|
+
*/
|
|
916
|
+
plan_name: string;
|
|
917
|
+
quantity: string;
|
|
918
|
+
unit_amount?: components["schemas"]["Money"];
|
|
919
|
+
gross_amount?: components["schemas"]["Money"];
|
|
920
|
+
discount_amount?: components["schemas"]["Money"];
|
|
921
|
+
amount?: components["schemas"]["Money"];
|
|
922
|
+
currency: string;
|
|
923
|
+
/** Format: date-time */
|
|
924
|
+
period_start?: string | null;
|
|
925
|
+
/** Format: date-time */
|
|
926
|
+
period_end?: string | null;
|
|
927
|
+
status: components["schemas"]["OrderItemStatus"];
|
|
928
|
+
};
|
|
929
|
+
OrderItemList: {
|
|
930
|
+
items: components["schemas"]["OrderItem"][];
|
|
931
|
+
/** Format: int64 */
|
|
932
|
+
total_count?: number;
|
|
933
|
+
};
|
|
934
|
+
Allowance: {
|
|
935
|
+
/** @description Optional issuance key, unique within this billing account. */
|
|
936
|
+
idempotency_key?: string;
|
|
937
|
+
/** Format: uuid */
|
|
938
|
+
subscription_id?: string;
|
|
939
|
+
/** Format: uuid */
|
|
940
|
+
id: string;
|
|
941
|
+
/** Format: int64 */
|
|
942
|
+
billing_account_id?: number;
|
|
943
|
+
product: components["schemas"]["Product"];
|
|
944
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
945
|
+
/** @description The unit it is counted in, such as `MiB`. */
|
|
946
|
+
unit?: string;
|
|
947
|
+
/**
|
|
948
|
+
* @description `included` came with a recurring purchase and ends with its subscription, `promotional` was
|
|
949
|
+
* granted.
|
|
950
|
+
* @enum {string}
|
|
951
|
+
*/
|
|
952
|
+
source_type: "included" | "promotional";
|
|
953
|
+
name: string;
|
|
954
|
+
/** @description How much was granted. */
|
|
955
|
+
quantity: string;
|
|
956
|
+
/** @description How much is left. */
|
|
957
|
+
remaining_quantity: string;
|
|
958
|
+
/**
|
|
959
|
+
* @description Lower values are consumed first. At equal priority, earlier expiry and then earlier issuance take
|
|
960
|
+
* precedence.
|
|
961
|
+
*/
|
|
962
|
+
priority?: number;
|
|
963
|
+
/** @enum {string} */
|
|
964
|
+
status: "active" | "depleted" | "expired" | "voided";
|
|
965
|
+
/** Format: date-time */
|
|
966
|
+
valid_from: string;
|
|
967
|
+
/**
|
|
968
|
+
* Format: date-time
|
|
969
|
+
* @description When it lapses. Anything unused at that point is lost; it is not refunded and does
|
|
970
|
+
* not carry over. Absent when it does not expire on its own.
|
|
971
|
+
*/
|
|
972
|
+
valid_until?: string | null;
|
|
973
|
+
};
|
|
974
|
+
AllowanceList: {
|
|
975
|
+
items: components["schemas"]["Allowance"][];
|
|
976
|
+
/** Format: int64 */
|
|
977
|
+
total_count?: number;
|
|
978
|
+
};
|
|
979
|
+
Entitlement: {
|
|
980
|
+
product: components["schemas"]["Product"];
|
|
981
|
+
feature: components["schemas"]["ObjectIdentity"];
|
|
982
|
+
name?: string;
|
|
983
|
+
enabled: boolean;
|
|
984
|
+
/**
|
|
985
|
+
* Format: date-time
|
|
986
|
+
* @description When the subscription providing it ends. Absent for a metered subscription, which
|
|
987
|
+
* has no end date.
|
|
988
|
+
*/
|
|
989
|
+
expires_at?: string | null;
|
|
990
|
+
};
|
|
991
|
+
EntitlementList: {
|
|
992
|
+
items: components["schemas"]["Entitlement"][];
|
|
993
|
+
/** Format: int64 */
|
|
994
|
+
total_count?: number;
|
|
995
|
+
};
|
|
996
|
+
/** @description Purchase-related invoice amounts, without account contact details or payment methods. Absent on an order with no immediate invoice. */
|
|
997
|
+
InvoiceSummary: {
|
|
998
|
+
/** Format: uuid */
|
|
999
|
+
id: string;
|
|
1000
|
+
number?: string;
|
|
1001
|
+
currency: string;
|
|
1002
|
+
status: components["schemas"]["InvoiceStatus"];
|
|
1003
|
+
/**
|
|
1004
|
+
* @description Sum of the line amounts before discounts. Where prices include tax, the tax contained in
|
|
1005
|
+
* each line's discounted amount is taken out here, so that total = subtotal -
|
|
1006
|
+
* discount_amount + tax_amount always holds.
|
|
1007
|
+
*/
|
|
1008
|
+
subtotal: string;
|
|
1009
|
+
/** @description Sum of the line discounts, taken off before tax. */
|
|
1010
|
+
discount_amount: string;
|
|
1011
|
+
tax_amount: string;
|
|
1012
|
+
total: string;
|
|
1013
|
+
amount_paid: string;
|
|
1014
|
+
amount_refunded: string;
|
|
1015
|
+
/** Format: date-time */
|
|
1016
|
+
due_at?: string;
|
|
1017
|
+
};
|
|
1018
|
+
/** @description A catalog object inlined for display. */
|
|
1019
|
+
ObjectIdentity: {
|
|
1020
|
+
lookup_key?: string;
|
|
1021
|
+
/** Format: uuid */
|
|
1022
|
+
id: string;
|
|
1023
|
+
name: string;
|
|
1024
|
+
};
|
|
1025
|
+
/**
|
|
1026
|
+
* @description A decimal string, in the currency stated alongside it.
|
|
1027
|
+
*
|
|
1028
|
+
* **The currency is not part of this type.** It is carried by a `currency` field next to the
|
|
1029
|
+
* amount, or by the account the amount belongs to. Reading an amount without that field is
|
|
1030
|
+
* reading a number with no unit.
|
|
1031
|
+
*
|
|
1032
|
+
* It is a string rather than a JSON number because a JSON number is a float in most parsers,
|
|
1033
|
+
* and a float loses precision on the first arithmetic. Nothing on this platform puts an amount
|
|
1034
|
+
* through a float.
|
|
1035
|
+
* @example 10.2500000000
|
|
1036
|
+
*/
|
|
1037
|
+
Money: string;
|
|
1038
|
+
/**
|
|
1039
|
+
* @description Which object this is, together with what a person currently calls it.
|
|
1040
|
+
*
|
|
1041
|
+
* The name is for display. It is chosen by whoever owns the object, it changes, it is not unique
|
|
1042
|
+
* between objects, and it may be empty when nobody has named it yet — so it must not be used to
|
|
1043
|
+
* address, match or deduplicate anything. Addressing is by id.
|
|
1044
|
+
*
|
|
1045
|
+
* This differs from an identity carrying a lookup key: a lookup key is written once by an operator,
|
|
1046
|
+
* is unique, and can be used to fetch the object. A name cannot.
|
|
1047
|
+
*/
|
|
1048
|
+
NamedIdentity: {
|
|
1049
|
+
/** Format: uuid */
|
|
1050
|
+
id: string;
|
|
1051
|
+
name: string;
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
responses: {
|
|
1055
|
+
/** @description Error */
|
|
1056
|
+
Error: {
|
|
1057
|
+
headers: {
|
|
1058
|
+
[name: string]: unknown;
|
|
1059
|
+
};
|
|
1060
|
+
content: {
|
|
1061
|
+
"application/json": components["schemas"]["Error"];
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
parameters: {
|
|
1066
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
1067
|
+
Page: number;
|
|
1068
|
+
/** @description How many per page, 100 at most. */
|
|
1069
|
+
PageSize: number;
|
|
1070
|
+
From: string;
|
|
1071
|
+
/** @description Exclusive. */
|
|
1072
|
+
To: string;
|
|
1073
|
+
ProjectId: string;
|
|
1074
|
+
OrderId: string;
|
|
1075
|
+
SubscriptionId: string;
|
|
1076
|
+
FromRequired: string;
|
|
1077
|
+
/** @description Exclusive. One month is `[2026-09-01, 2026-10-01)`. */
|
|
1078
|
+
ToRequired: string;
|
|
1079
|
+
};
|
|
1080
|
+
requestBodies: never;
|
|
1081
|
+
headers: never;
|
|
1082
|
+
pathItems: never;
|
|
1083
|
+
}
|
|
1084
|
+
export type $defs = Record<string, never>;
|
|
1085
|
+
export interface operations {
|
|
1086
|
+
"get-project-billing-account": {
|
|
1087
|
+
parameters: {
|
|
1088
|
+
query?: never;
|
|
1089
|
+
header?: never;
|
|
1090
|
+
path: {
|
|
1091
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1092
|
+
};
|
|
1093
|
+
cookie?: never;
|
|
1094
|
+
};
|
|
1095
|
+
requestBody?: never;
|
|
1096
|
+
responses: {
|
|
1097
|
+
/** @description OK */
|
|
1098
|
+
200: {
|
|
1099
|
+
headers: {
|
|
1100
|
+
[name: string]: unknown;
|
|
1101
|
+
};
|
|
1102
|
+
content: {
|
|
1103
|
+
"application/json": components["schemas"]["ProjectBillingAccount"];
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
default: components["responses"]["Error"];
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
"list-project-spend": {
|
|
1110
|
+
parameters: {
|
|
1111
|
+
query: {
|
|
1112
|
+
from: components["parameters"]["FromRequired"];
|
|
1113
|
+
/** @description Exclusive. One month is `[2026-09-01, 2026-10-01)`. */
|
|
1114
|
+
to: components["parameters"]["ToRequired"];
|
|
1115
|
+
/**
|
|
1116
|
+
* @description `resource` groups by the resource each charge names. Items billed under their own
|
|
1117
|
+
* identifier — a disk, a public address — appear as their own rows rather than under
|
|
1118
|
+
* the machine they are attached to, since the relationship between them is known to
|
|
1119
|
+
* the owning service and not here.
|
|
1120
|
+
*/
|
|
1121
|
+
group_by?: "product" | "plan" | "resource";
|
|
1122
|
+
/** @description Filter by the fixed platform service ID. */
|
|
1123
|
+
product_id?: components["schemas"]["ProductID"];
|
|
1124
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
1125
|
+
page?: components["parameters"]["Page"];
|
|
1126
|
+
/** @description How many per page, 100 at most. */
|
|
1127
|
+
page_size?: components["parameters"]["PageSize"];
|
|
1128
|
+
};
|
|
1129
|
+
header?: never;
|
|
1130
|
+
path: {
|
|
1131
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1132
|
+
};
|
|
1133
|
+
cookie?: never;
|
|
1134
|
+
};
|
|
1135
|
+
requestBody?: never;
|
|
1136
|
+
responses: {
|
|
1137
|
+
/** @description OK */
|
|
1138
|
+
200: {
|
|
1139
|
+
headers: {
|
|
1140
|
+
[name: string]: unknown;
|
|
1141
|
+
};
|
|
1142
|
+
content: {
|
|
1143
|
+
"application/json": components["schemas"]["SpendRowList"];
|
|
1144
|
+
};
|
|
1145
|
+
};
|
|
1146
|
+
default: components["responses"]["Error"];
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
"list-project-usage-charges": {
|
|
1150
|
+
parameters: {
|
|
1151
|
+
query?: {
|
|
1152
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
1153
|
+
page?: components["parameters"]["Page"];
|
|
1154
|
+
/** @description How many per page, 100 at most. */
|
|
1155
|
+
page_size?: components["parameters"]["PageSize"];
|
|
1156
|
+
resource_id?: string;
|
|
1157
|
+
product_id?: components["schemas"]["ProductID"];
|
|
1158
|
+
/** @description Filter by the meter UUID. */
|
|
1159
|
+
meter_id?: string;
|
|
1160
|
+
from?: components["parameters"]["From"];
|
|
1161
|
+
/** @description Exclusive. */
|
|
1162
|
+
to?: components["parameters"]["To"];
|
|
1163
|
+
};
|
|
1164
|
+
header?: never;
|
|
1165
|
+
path: {
|
|
1166
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1167
|
+
};
|
|
1168
|
+
cookie?: never;
|
|
1169
|
+
};
|
|
1170
|
+
requestBody?: never;
|
|
1171
|
+
responses: {
|
|
1172
|
+
/** @description OK */
|
|
1173
|
+
200: {
|
|
1174
|
+
headers: {
|
|
1175
|
+
[name: string]: unknown;
|
|
1176
|
+
};
|
|
1177
|
+
content: {
|
|
1178
|
+
"application/json": components["schemas"]["UsageChargeList"];
|
|
1179
|
+
};
|
|
1180
|
+
};
|
|
1181
|
+
default: components["responses"]["Error"];
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1184
|
+
"list-project-subscriptions": {
|
|
1185
|
+
parameters: {
|
|
1186
|
+
query?: {
|
|
1187
|
+
expiring_before?: string;
|
|
1188
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
1189
|
+
page?: components["parameters"]["Page"];
|
|
1190
|
+
/** @description How many per page, 100 at most. */
|
|
1191
|
+
page_size?: components["parameters"]["PageSize"];
|
|
1192
|
+
};
|
|
1193
|
+
header?: never;
|
|
1194
|
+
path: {
|
|
1195
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1196
|
+
};
|
|
1197
|
+
cookie?: never;
|
|
1198
|
+
};
|
|
1199
|
+
requestBody?: never;
|
|
1200
|
+
responses: {
|
|
1201
|
+
/** @description OK */
|
|
1202
|
+
200: {
|
|
1203
|
+
headers: {
|
|
1204
|
+
[name: string]: unknown;
|
|
1205
|
+
};
|
|
1206
|
+
content: {
|
|
1207
|
+
"application/json": components["schemas"]["SubscriptionList"];
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
default: components["responses"]["Error"];
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
"set-project-auto-renew": {
|
|
1214
|
+
parameters: {
|
|
1215
|
+
query?: never;
|
|
1216
|
+
header?: never;
|
|
1217
|
+
path: {
|
|
1218
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1219
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
1220
|
+
};
|
|
1221
|
+
cookie?: never;
|
|
1222
|
+
};
|
|
1223
|
+
requestBody: {
|
|
1224
|
+
content: {
|
|
1225
|
+
"application/json": components["schemas"]["AutoRenewSet"];
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
responses: {
|
|
1229
|
+
/** @description OK */
|
|
1230
|
+
200: {
|
|
1231
|
+
headers: {
|
|
1232
|
+
[name: string]: unknown;
|
|
1233
|
+
};
|
|
1234
|
+
content: {
|
|
1235
|
+
"application/json": components["schemas"]["Subscription"];
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1238
|
+
default: components["responses"]["Error"];
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
"list-project-orders": {
|
|
1242
|
+
parameters: {
|
|
1243
|
+
query?: {
|
|
1244
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
1245
|
+
page?: components["parameters"]["Page"];
|
|
1246
|
+
/** @description How many per page, 100 at most. */
|
|
1247
|
+
page_size?: components["parameters"]["PageSize"];
|
|
1248
|
+
status?: components["schemas"]["OrderStatus"];
|
|
1249
|
+
from?: components["parameters"]["From"];
|
|
1250
|
+
/** @description Exclusive. */
|
|
1251
|
+
to?: components["parameters"]["To"];
|
|
1252
|
+
};
|
|
1253
|
+
header?: never;
|
|
1254
|
+
path: {
|
|
1255
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1256
|
+
};
|
|
1257
|
+
cookie?: never;
|
|
1258
|
+
};
|
|
1259
|
+
requestBody?: never;
|
|
1260
|
+
responses: {
|
|
1261
|
+
/** @description OK */
|
|
1262
|
+
200: {
|
|
1263
|
+
headers: {
|
|
1264
|
+
[name: string]: unknown;
|
|
1265
|
+
};
|
|
1266
|
+
content: {
|
|
1267
|
+
"application/json": components["schemas"]["OrderList"];
|
|
1268
|
+
};
|
|
1269
|
+
};
|
|
1270
|
+
default: components["responses"]["Error"];
|
|
1271
|
+
};
|
|
1272
|
+
};
|
|
1273
|
+
"get-project-order": {
|
|
1274
|
+
parameters: {
|
|
1275
|
+
query?: never;
|
|
1276
|
+
header?: never;
|
|
1277
|
+
path: {
|
|
1278
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1279
|
+
orderId: components["parameters"]["OrderId"];
|
|
1280
|
+
};
|
|
1281
|
+
cookie?: never;
|
|
1282
|
+
};
|
|
1283
|
+
requestBody?: never;
|
|
1284
|
+
responses: {
|
|
1285
|
+
/** @description OK */
|
|
1286
|
+
200: {
|
|
1287
|
+
headers: {
|
|
1288
|
+
[name: string]: unknown;
|
|
1289
|
+
};
|
|
1290
|
+
content: {
|
|
1291
|
+
"application/json": components["schemas"]["Order"];
|
|
1292
|
+
};
|
|
1293
|
+
};
|
|
1294
|
+
default: components["responses"]["Error"];
|
|
1295
|
+
};
|
|
1296
|
+
};
|
|
1297
|
+
"list-project-active-resources": {
|
|
1298
|
+
parameters: {
|
|
1299
|
+
query?: {
|
|
1300
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
1301
|
+
page?: components["parameters"]["Page"];
|
|
1302
|
+
/** @description How many per page, 100 at most. */
|
|
1303
|
+
page_size?: components["parameters"]["PageSize"];
|
|
1304
|
+
resource_id?: string;
|
|
1305
|
+
};
|
|
1306
|
+
header?: never;
|
|
1307
|
+
path: {
|
|
1308
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1309
|
+
};
|
|
1310
|
+
cookie?: never;
|
|
1311
|
+
};
|
|
1312
|
+
requestBody?: never;
|
|
1313
|
+
responses: {
|
|
1314
|
+
/** @description OK */
|
|
1315
|
+
200: {
|
|
1316
|
+
headers: {
|
|
1317
|
+
[name: string]: unknown;
|
|
1318
|
+
};
|
|
1319
|
+
content: {
|
|
1320
|
+
"application/json": components["schemas"]["ActiveResourceList"];
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
default: components["responses"]["Error"];
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1326
|
+
"create-project-quote": {
|
|
1327
|
+
parameters: {
|
|
1328
|
+
query?: never;
|
|
1329
|
+
header?: never;
|
|
1330
|
+
path: {
|
|
1331
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1332
|
+
};
|
|
1333
|
+
cookie?: never;
|
|
1334
|
+
};
|
|
1335
|
+
requestBody: {
|
|
1336
|
+
content: {
|
|
1337
|
+
"application/json": components["schemas"]["QuoteRequest"];
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1340
|
+
responses: {
|
|
1341
|
+
/** @description OK */
|
|
1342
|
+
200: {
|
|
1343
|
+
headers: {
|
|
1344
|
+
[name: string]: unknown;
|
|
1345
|
+
};
|
|
1346
|
+
content: {
|
|
1347
|
+
"application/json": components["schemas"]["Quote"];
|
|
1348
|
+
};
|
|
1349
|
+
};
|
|
1350
|
+
default: components["responses"]["Error"];
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
"list-project-order-items": {
|
|
1354
|
+
parameters: {
|
|
1355
|
+
query?: {
|
|
1356
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
1357
|
+
page?: components["parameters"]["Page"];
|
|
1358
|
+
/** @description How many per page, 100 at most. */
|
|
1359
|
+
page_size?: components["parameters"]["PageSize"];
|
|
1360
|
+
};
|
|
1361
|
+
header?: never;
|
|
1362
|
+
path: {
|
|
1363
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1364
|
+
orderId: components["parameters"]["OrderId"];
|
|
1365
|
+
};
|
|
1366
|
+
cookie?: never;
|
|
1367
|
+
};
|
|
1368
|
+
requestBody?: never;
|
|
1369
|
+
responses: {
|
|
1370
|
+
/** @description OK */
|
|
1371
|
+
200: {
|
|
1372
|
+
headers: {
|
|
1373
|
+
[name: string]: unknown;
|
|
1374
|
+
};
|
|
1375
|
+
content: {
|
|
1376
|
+
"application/json": components["schemas"]["OrderItemList"];
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1379
|
+
default: components["responses"]["Error"];
|
|
1380
|
+
};
|
|
1381
|
+
};
|
|
1382
|
+
"list-project-allowances": {
|
|
1383
|
+
parameters: {
|
|
1384
|
+
query?: {
|
|
1385
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
1386
|
+
page?: components["parameters"]["Page"];
|
|
1387
|
+
/** @description How many per page, 100 at most. */
|
|
1388
|
+
page_size?: components["parameters"]["PageSize"];
|
|
1389
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
1390
|
+
meter_id?: string;
|
|
1391
|
+
product_id?: components["schemas"]["ProductID"];
|
|
1392
|
+
};
|
|
1393
|
+
header?: never;
|
|
1394
|
+
path: {
|
|
1395
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1396
|
+
};
|
|
1397
|
+
cookie?: never;
|
|
1398
|
+
};
|
|
1399
|
+
requestBody?: never;
|
|
1400
|
+
responses: {
|
|
1401
|
+
/** @description OK */
|
|
1402
|
+
200: {
|
|
1403
|
+
headers: {
|
|
1404
|
+
[name: string]: unknown;
|
|
1405
|
+
};
|
|
1406
|
+
content: {
|
|
1407
|
+
"application/json": components["schemas"]["AllowanceList"];
|
|
1408
|
+
};
|
|
1409
|
+
};
|
|
1410
|
+
default: components["responses"]["Error"];
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
"list-project-entitlements": {
|
|
1414
|
+
parameters: {
|
|
1415
|
+
query?: {
|
|
1416
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
1417
|
+
page?: components["parameters"]["Page"];
|
|
1418
|
+
/** @description How many per page, 100 at most. */
|
|
1419
|
+
page_size?: components["parameters"]["PageSize"];
|
|
1420
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
1421
|
+
product_id?: components["schemas"]["ProductID"];
|
|
1422
|
+
};
|
|
1423
|
+
header?: never;
|
|
1424
|
+
path: {
|
|
1425
|
+
projectId: components["parameters"]["ProjectId"];
|
|
1426
|
+
};
|
|
1427
|
+
cookie?: never;
|
|
1428
|
+
};
|
|
1429
|
+
requestBody?: never;
|
|
1430
|
+
responses: {
|
|
1431
|
+
/** @description OK */
|
|
1432
|
+
200: {
|
|
1433
|
+
headers: {
|
|
1434
|
+
[name: string]: unknown;
|
|
1435
|
+
};
|
|
1436
|
+
content: {
|
|
1437
|
+
"application/json": components["schemas"]["EntitlementList"];
|
|
1438
|
+
};
|
|
1439
|
+
};
|
|
1440
|
+
default: components["responses"]["Error"];
|
|
1441
|
+
};
|
|
1442
|
+
};
|
|
1443
|
+
}
|