@archildata/api-types 0.0.74 → 0.0.76
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/index.d.ts +199 -213
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ export interface paths {
|
|
|
32
32
|
cookie?: never;
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
|
-
* Get metered usage over a window
|
|
36
|
-
* @description Returns what the account's meters recorded over a window, for the window as a whole and per interval, in each meter's own unit (vCPU-hours, GiB-hours, GiB-months
|
|
35
|
+
* Get metered usage and its cost over a window
|
|
36
|
+
* @description Returns what the account's meters recorded over a window, for the window as a whole and per interval, in each meter's own unit (such as vCPU-hours, GiB-hours, GiB-months or calls), and what that usage comes to at the account's rates, per meter and in total, before any grant and fixed fee: the cost of what was used, not what will be invoiced, which `/api/billing/summary` reports. The meters are the catalog's metered features, so a meter added there is reported from then on. A meter's rate is the price of the plan item its usage is billed from: the meter's own item, or the credit system whose rate card names it, at the plan's own prices and overrides; a meter the plan does not price has a zero rate, and a tiered item is priced at its first tier. Usage reaches billing once per reporter interval from every region, so an interval's figures can still grow for a few minutes after it ends, longer if a region's reporter is behind. The default window is the seven days (hourly: 24 hours) up to now; a window may be at most 31 days, and is widened to whole intervals. Money is in dollars, to the cent.
|
|
37
37
|
*/
|
|
38
38
|
get: operations["getBillingUsage"];
|
|
39
39
|
put?: never;
|
|
@@ -44,26 +44,6 @@ export interface paths {
|
|
|
44
44
|
patch?: never;
|
|
45
45
|
trace?: never;
|
|
46
46
|
};
|
|
47
|
-
"/api/billing/costs": {
|
|
48
|
-
parameters: {
|
|
49
|
-
query?: never;
|
|
50
|
-
header?: never;
|
|
51
|
-
path?: never;
|
|
52
|
-
cookie?: never;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Get the cost of metered usage over a window
|
|
56
|
-
* @description Returns the same usage as `/api/billing/usage` priced at the account's rates, for the window and per interval and meter, before the plan's included credits and base price: the cost of what was used, not what will be invoiced. Summed over the billing period it is the usage line of the invoice; `/api/billing/summary` applies the plan's base price and included credits on top. Money is in integer cents. On a plan that prices no usage, `priced` is false and every cost is zero.
|
|
57
|
-
*/
|
|
58
|
-
get: operations["getBillingCosts"];
|
|
59
|
-
put?: never;
|
|
60
|
-
post?: never;
|
|
61
|
-
delete?: never;
|
|
62
|
-
options?: never;
|
|
63
|
-
head?: never;
|
|
64
|
-
patch?: never;
|
|
65
|
-
trace?: never;
|
|
66
|
-
};
|
|
67
47
|
"/api/billing/summary": {
|
|
68
48
|
parameters: {
|
|
69
49
|
query?: never;
|
|
@@ -72,8 +52,8 @@ export interface paths {
|
|
|
72
52
|
cookie?: never;
|
|
73
53
|
};
|
|
74
54
|
/**
|
|
75
|
-
* Get a billing period's statement
|
|
76
|
-
* @description Returns a billing period's statement as
|
|
55
|
+
* Get a billing period's statement
|
|
56
|
+
* @description Returns a billing period's statement as billing itself states it: `lines`, each line invoiced for the period or previewed for its end (a fixed fee, a meter's usage billed past its grants, a credit taken off, anything else under its own name), and `billedCost`, their sum, which is what the period invoices or would if it ended now. On the current period also `credits`, the grants the account still draws on, and a projection to the period end at the recent daily pace. Nothing here is derived from the plan's terms: a plan billing can express, this route reports. Money is in dollars to the cent, before tax. A line is before discounts, as billing reports it, and what a reward takes off follows as an `other` line named `Discount`: off each line previewed for the period end, and off each invoice as a whole (its total under its lines' sum), on the span of the invoice's fixed fee when it has one, else of its first line on the period. So the sum is what the period invoiced, or will.
|
|
77
57
|
*/
|
|
78
58
|
get: operations["getBillingSummary"];
|
|
79
59
|
put?: never;
|
|
@@ -652,6 +632,26 @@ export interface paths {
|
|
|
652
632
|
patch?: never;
|
|
653
633
|
trace?: never;
|
|
654
634
|
};
|
|
635
|
+
"/api/disks/{id}/prefetch": {
|
|
636
|
+
parameters: {
|
|
637
|
+
query?: never;
|
|
638
|
+
header?: never;
|
|
639
|
+
path?: never;
|
|
640
|
+
cookie?: never;
|
|
641
|
+
};
|
|
642
|
+
get?: never;
|
|
643
|
+
put?: never;
|
|
644
|
+
/**
|
|
645
|
+
* Prefetch file ranges
|
|
646
|
+
* @description Warms byte ranges of files on a disk into Archil's cache, so later reads from any client are served without going to object storage. Each range names one file and an optional offset and length; a file may appear in several ranges. The response reports each range in request order and may arrive before the data is fully fetched. Paths are relative to the disk root. A path that does not exist reports `found: false`; a path that is not a regular file is found but warms nothing. If the disk is not mounted anywhere, prefetching loads it.
|
|
647
|
+
*/
|
|
648
|
+
post: operations["prefetchDisk"];
|
|
649
|
+
delete?: never;
|
|
650
|
+
options?: never;
|
|
651
|
+
head?: never;
|
|
652
|
+
patch?: never;
|
|
653
|
+
trace?: never;
|
|
654
|
+
};
|
|
655
655
|
"/api/disks/{id}/exec": {
|
|
656
656
|
parameters: {
|
|
657
657
|
query?: never;
|
|
@@ -1283,8 +1283,10 @@ export interface components {
|
|
|
1283
1283
|
BillingUsageQuantity: {
|
|
1284
1284
|
/** @description In the meter's own unit. */
|
|
1285
1285
|
quantity: number;
|
|
1286
|
-
/** @description vCPU-hours, GiB-hours, GiB-months or calls. */
|
|
1286
|
+
/** @description The meter's unit, such as vCPU-hours, GiB-hours, GiB-months or calls. */
|
|
1287
1287
|
unit: string;
|
|
1288
|
+
/** @description Quantity at the account's rate, in dollars to the cent; zero for a meter the plan does not price. */
|
|
1289
|
+
cost: number;
|
|
1288
1290
|
};
|
|
1289
1291
|
BillingUsageInterval: {
|
|
1290
1292
|
/**
|
|
@@ -1297,12 +1299,14 @@ export interface components {
|
|
|
1297
1299
|
* @description Unix timestamp in seconds, exclusive.
|
|
1298
1300
|
*/
|
|
1299
1301
|
end: number;
|
|
1300
|
-
/** @description
|
|
1302
|
+
/** @description The interval's usage at the account's rates, in dollars to the cent; the sum of `features`. */
|
|
1303
|
+
cost: number;
|
|
1304
|
+
/** @description Quantity and cost per meter in the interval, keyed by feature id. */
|
|
1301
1305
|
features: {
|
|
1302
1306
|
[key: string]: components["schemas"]["BillingUsageQuantity"];
|
|
1303
1307
|
};
|
|
1304
1308
|
};
|
|
1305
|
-
/** @description The window as a whole, the summary the intervals break down. */
|
|
1309
|
+
/** @description The window as a whole, the summary the intervals break down. Its quantities are the intervals' sums; its costs are priced over the whole span and rounded once per meter, so they are the same at any granularity, while the intervals, each rounded on its own, can add up to a little less. */
|
|
1306
1310
|
BillingUsageWindow: {
|
|
1307
1311
|
/**
|
|
1308
1312
|
* Format: int64
|
|
@@ -1314,7 +1318,9 @@ export interface components {
|
|
|
1314
1318
|
* @description Unix timestamp in seconds, exclusive.
|
|
1315
1319
|
*/
|
|
1316
1320
|
end: number;
|
|
1317
|
-
/** @description
|
|
1321
|
+
/** @description Usage over the window at the account's rates, in dollars to the cent. */
|
|
1322
|
+
cost: number;
|
|
1323
|
+
/** @description Quantity and cost per meter over the window, keyed by feature id. */
|
|
1318
1324
|
features: {
|
|
1319
1325
|
[key: string]: components["schemas"]["BillingUsageQuantity"];
|
|
1320
1326
|
};
|
|
@@ -1323,50 +1329,45 @@ export interface components {
|
|
|
1323
1329
|
/** @enum {string} */
|
|
1324
1330
|
granularity: "1d" | "1h";
|
|
1325
1331
|
timezone: string;
|
|
1332
|
+
currency: string;
|
|
1333
|
+
/** @description Cost of one unit of each meter, in dollars per unit as a decimal (a rate can be well below a cent), keyed by feature id; zero for a meter the plan does not price. */
|
|
1334
|
+
ratesPerUnit: {
|
|
1335
|
+
[key: string]: number;
|
|
1336
|
+
};
|
|
1326
1337
|
window: components["schemas"]["BillingUsageWindow"];
|
|
1327
1338
|
/** @description Newest first, each the window's share of one interval. Intervals after now are left out. */
|
|
1328
1339
|
intervals: components["schemas"]["BillingUsageInterval"][];
|
|
1340
|
+
/** @description The current billing period, which `/api/billing/summary` sums; absent on a plan without one. */
|
|
1341
|
+
billingPeriod?: components["schemas"]["BillingPeriod"];
|
|
1329
1342
|
};
|
|
1330
1343
|
ApiResponse_BillingUsage: {
|
|
1331
1344
|
success: boolean;
|
|
1332
1345
|
data: components["schemas"]["BillingUsage"];
|
|
1333
1346
|
};
|
|
1334
|
-
|
|
1335
|
-
/** @description
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
* Format: int64
|
|
1340
|
-
* @description Quantity at the account's rate, in integer cents.
|
|
1341
|
-
*/
|
|
1342
|
-
costCents: number;
|
|
1347
|
+
BillingSummaryPlan: {
|
|
1348
|
+
/** @description The plan id, such as `enterprise`. */
|
|
1349
|
+
id: string;
|
|
1350
|
+
/** @description The plan's name as billing shows it. */
|
|
1351
|
+
name: string;
|
|
1343
1352
|
};
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
* Format: int64
|
|
1347
|
-
* @description Unix timestamp in seconds.
|
|
1348
|
-
*/
|
|
1349
|
-
start: number;
|
|
1353
|
+
/** @description One line of the period's statement, as billing invoiced it or previews it. */
|
|
1354
|
+
BillingLine: {
|
|
1350
1355
|
/**
|
|
1351
|
-
*
|
|
1352
|
-
* @
|
|
1353
|
-
*/
|
|
1354
|
-
end: number;
|
|
1355
|
-
/**
|
|
1356
|
-
* Format: int64
|
|
1357
|
-
* @description The interval's usage at the account's rates, in integer cents; the sum of `features`.
|
|
1356
|
+
* @description The key to branch on. `fixed` is a charge over the whole period (the plan's base price; an item paid for up front per period, such as a block of sandboxes, on its feature with its quantity); `usage` is a meter's usage billed past its grants, with its quantity; `credit` is a credit taken off, on the feature it draws, in money (what is left of the grant is in `credits`); `other` is anything else billed inside the period, such as a proration, a one-off purchase or a reward (`Discount`), carried with its own `name`.
|
|
1357
|
+
* @enum {string}
|
|
1358
1358
|
*/
|
|
1359
|
-
|
|
1360
|
-
/** @description
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1359
|
+
type: "fixed" | "usage" | "credit" | "other";
|
|
1360
|
+
/** @description On a `usage` or `credit` line, and a `fixed` line for an item paid up front, the feature it is on. */
|
|
1361
|
+
featureId?: string;
|
|
1362
|
+
/** @description The line's label as billing wrote it. */
|
|
1363
|
+
name: string;
|
|
1364
|
+
/** @description On a line with a `featureId`, the quantity billed, in `unit`. */
|
|
1365
|
+
quantity?: number;
|
|
1366
|
+
/** @description The quantity's unit, such as vCPU-hours or USD. */
|
|
1367
|
+
unit?: string;
|
|
1367
1368
|
/**
|
|
1368
1369
|
* Format: int64
|
|
1369
|
-
* @description Unix timestamp in seconds.
|
|
1370
|
+
* @description Unix timestamp in seconds; the span the line covers. A line is on the period its span ends in, or for an item billed over several periods (a yearly add-on) the period it starts in, and on no other.
|
|
1370
1371
|
*/
|
|
1371
1372
|
start: number;
|
|
1372
1373
|
/**
|
|
@@ -1374,139 +1375,64 @@ export interface components {
|
|
|
1374
1375
|
* @description Unix timestamp in seconds, exclusive.
|
|
1375
1376
|
*/
|
|
1376
1377
|
end: number;
|
|
1377
|
-
/**
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
costCents: number;
|
|
1382
|
-
/** @description Quantity and cost per meter over the window, keyed by feature id. */
|
|
1383
|
-
features: {
|
|
1384
|
-
[key: string]: components["schemas"]["BillingFeatureCost"];
|
|
1385
|
-
};
|
|
1386
|
-
};
|
|
1387
|
-
BillingCosts: {
|
|
1388
|
-
/** @enum {string} */
|
|
1389
|
-
granularity: "1d" | "1h";
|
|
1390
|
-
timezone: string;
|
|
1391
|
-
currency: string;
|
|
1392
|
-
/** @description False when the plan prices no usage; every cost is then zero. */
|
|
1393
|
-
priced: boolean;
|
|
1394
|
-
/** @description Cost of one unit of each meter, in cents per unit as a decimal (a rate can be below a cent), keyed by feature id. */
|
|
1395
|
-
ratesCentsPerUnit: {
|
|
1396
|
-
[key: string]: number;
|
|
1397
|
-
};
|
|
1398
|
-
window: components["schemas"]["BillingCostWindow"];
|
|
1399
|
-
/** @description Newest first, each the window's share of one interval. Intervals after now are left out. */
|
|
1400
|
-
intervals: components["schemas"]["BillingCostInterval"][];
|
|
1401
|
-
/** @description The current billing period, which `/api/billing/summary` sums; absent on a plan without one. */
|
|
1402
|
-
billingPeriod?: components["schemas"]["BillingPeriod"];
|
|
1403
|
-
};
|
|
1404
|
-
ApiResponse_BillingCosts: {
|
|
1405
|
-
success: boolean;
|
|
1406
|
-
data: components["schemas"]["BillingCosts"];
|
|
1407
|
-
};
|
|
1408
|
-
BillingSummaryPlan: {
|
|
1409
|
-
/** @description The plan id, such as `enterprise`. */
|
|
1410
|
-
id: string;
|
|
1411
|
-
/**
|
|
1412
|
-
* Format: int64
|
|
1413
|
-
* @description The recurring fee per billing period, in integer cents.
|
|
1414
|
-
*/
|
|
1415
|
-
basePriceCents: number;
|
|
1416
|
-
/** @description Credits the plan grants each period. */
|
|
1417
|
-
includedCredits: number;
|
|
1418
|
-
/**
|
|
1419
|
-
* Format: int64
|
|
1420
|
-
* @description What each credit past the granted ones costs, in integer cents.
|
|
1421
|
-
*/
|
|
1422
|
-
overagePricePerCreditCents: number;
|
|
1378
|
+
/** @description In dollars to the cent; negative for a credit. */
|
|
1379
|
+
amount: number;
|
|
1380
|
+
/** @description The invoice the line is on, one of `invoices`; absent for a line previewed for the period end and not invoiced yet. */
|
|
1381
|
+
invoiceId?: string;
|
|
1423
1382
|
};
|
|
1424
|
-
|
|
1425
|
-
|
|
1383
|
+
/** @description One grant the account draws before it is billed, described by when it refills or expires rather than by a kind. */
|
|
1384
|
+
BillingCreditGrant: {
|
|
1385
|
+
/** @description The feature the grant is on, such as `prepaid_credit`. */
|
|
1386
|
+
featureId: string;
|
|
1387
|
+
/** @description The feature's name, such as `Prepaid credit (USD)`. */
|
|
1388
|
+
name: string;
|
|
1389
|
+
/** @description The unit the grant is counted in, such as USD or disks. */
|
|
1390
|
+
unit: string;
|
|
1391
|
+
/** @description What the grant carries, per period for one that refills. */
|
|
1426
1392
|
granted: number;
|
|
1427
|
-
/** @description
|
|
1428
|
-
used: number;
|
|
1429
|
-
/** @description Credits left before overage, rounded to two decimals. */
|
|
1393
|
+
/** @description What is left on it, rounded to two decimals. */
|
|
1430
1394
|
remaining: number;
|
|
1431
|
-
};
|
|
1432
|
-
BillingAdjustment: {
|
|
1433
1395
|
/**
|
|
1434
|
-
*
|
|
1435
|
-
* @
|
|
1396
|
+
* Format: int64
|
|
1397
|
+
* @description Unix timestamp in seconds when the grant refills; null for a one-time grant.
|
|
1436
1398
|
*/
|
|
1437
|
-
|
|
1438
|
-
/** @description The line's label, such as `Included credits` or `Base price`. */
|
|
1439
|
-
name: string;
|
|
1399
|
+
resetsAt: number | null;
|
|
1440
1400
|
/**
|
|
1441
1401
|
* Format: int64
|
|
1442
|
-
* @description
|
|
1402
|
+
* @description Unix timestamp in seconds when the grant lapses; null when it does not.
|
|
1443
1403
|
*/
|
|
1444
|
-
|
|
1404
|
+
expiresAt: number | null;
|
|
1445
1405
|
};
|
|
1446
1406
|
BillingSummaryProjection: {
|
|
1447
|
-
/**
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
meteredCostCents: number;
|
|
1452
|
-
/**
|
|
1453
|
-
* Format: int64
|
|
1454
|
-
* @description What that usage would invoice, in integer cents.
|
|
1455
|
-
*/
|
|
1456
|
-
billedCostCents: number;
|
|
1457
|
-
/**
|
|
1458
|
-
* Format: int64
|
|
1459
|
-
* @description The pace the projection extends, in integer cents per day; `meteredCostCents` so far plus `dailyRateCents` × `daysRemaining`.
|
|
1460
|
-
*/
|
|
1461
|
-
dailyRateCents: number;
|
|
1462
|
-
/**
|
|
1463
|
-
* Format: int64
|
|
1464
|
-
* @description Unix timestamp in seconds; the pace is the mean over the elapsed UTC days from here to `paceEnd`, the last ones before now inside the period.
|
|
1465
|
-
*/
|
|
1466
|
-
paceStart: number;
|
|
1467
|
-
/**
|
|
1468
|
-
* Format: int64
|
|
1469
|
-
* @description Unix timestamp in seconds, exclusive.
|
|
1470
|
-
*/
|
|
1471
|
-
paceEnd: number;
|
|
1472
|
-
/** @description Days from now to the period end. */
|
|
1473
|
-
daysRemaining: number;
|
|
1407
|
+
/** @description What the period is projected to invoice, in dollars; what is billed so far, plus the usage still to come once it has drawn what is left of each grant. */
|
|
1408
|
+
billedCost: number;
|
|
1409
|
+
/** @description The pace the projection extends, in dollars of usage per day; the mean over the last three elapsed UTC days inside the period. */
|
|
1410
|
+
dailyRate: number;
|
|
1474
1411
|
};
|
|
1475
1412
|
BillingIssuedInvoice: {
|
|
1476
1413
|
id: string;
|
|
1477
|
-
/**
|
|
1478
|
-
|
|
1414
|
+
/**
|
|
1415
|
+
* @description The invoice's status with the billing processor. `draft` is a renewal the processor has not finalized yet, for about an hour after the period rolls; it already carries every line it will bill. Voided invoices are not listed.
|
|
1416
|
+
* @enum {string}
|
|
1417
|
+
*/
|
|
1418
|
+
status: "draft" | "open" | "paid" | "uncollectible";
|
|
1479
1419
|
/** @description The invoice as the billing processor hosts it. */
|
|
1480
1420
|
hostedInvoiceUrl?: string;
|
|
1481
1421
|
};
|
|
1482
1422
|
BillingSummary: {
|
|
1483
|
-
/** @description False when the plan prices no usage; the quantities are still reported, the amounts are zero, and `credit` and `projected` are absent. */
|
|
1484
|
-
priced: boolean;
|
|
1485
1423
|
currency: string;
|
|
1486
1424
|
/** @description The period read; the UTC calendar month for an account without a billing cycle. */
|
|
1487
1425
|
billingPeriod: components["schemas"]["BillingPeriod"];
|
|
1488
1426
|
plan: components["schemas"]["BillingSummaryPlan"];
|
|
1489
|
-
/** @description
|
|
1490
|
-
|
|
1491
|
-
/**
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
/** @description The metered cost by meter, with quantities, keyed by feature id. Sums to `meteredCostCents`. */
|
|
1497
|
-
meteredCostBreakdown: {
|
|
1498
|
-
[key: string]: components["schemas"]["BillingFeatureCost"];
|
|
1499
|
-
};
|
|
1500
|
-
/** @description The lines between `meteredCostCents` and `billedCostCents`, which sum to their difference. */
|
|
1501
|
-
adjustments: components["schemas"]["BillingAdjustment"][];
|
|
1502
|
-
/**
|
|
1503
|
-
* Format: int64
|
|
1504
|
-
* @description What the period invoices, or would if it ended now; `meteredCostCents` plus the adjustments, to the cent.
|
|
1505
|
-
*/
|
|
1506
|
-
billedCostCents: number;
|
|
1507
|
-
/** @description The period end at the recent daily pace; absent for a past period or without an elapsed day of usage. */
|
|
1427
|
+
/** @description The statement's lines, oldest invoice first, then the lines previewed for the period end: on the current period, what was billed as it opened (the base price, a proration) and what billing will bill as it closes (the usage past the grants, the credits taken off); on a past period, everything the invoices issued for it carry. Empty on a plan that bills nothing. */
|
|
1428
|
+
lines: components["schemas"]["BillingLine"][];
|
|
1429
|
+
/** @description What the period invoices, or would if it ended now; the lines' sum, to the cent. */
|
|
1430
|
+
billedCost: number;
|
|
1431
|
+
/** @description The grants the account still draws on, on the current period only: each with something left or that will refill. A spent one-time grant and an expired one are not listed; a past period lists none (its `credit` lines show the draw). This is a grant's standing, not a charge: a `credit` line in `lines` is what a grant took off this period's bill, in money, and the two need not pair up. A grant nothing has drawn from yet has no line; an included quantity (tool calls, disks) is spent without one, since billing invoices only the usage past it; and several grants on one feature draw as one line. */
|
|
1432
|
+
credits: components["schemas"]["BillingCreditGrant"][];
|
|
1433
|
+
/** @description The period end at the recent daily pace; absent for a past period, a plan that prices no usage, or without an elapsed day of usage. */
|
|
1508
1434
|
projected?: components["schemas"]["BillingSummaryProjection"];
|
|
1509
|
-
/** @description
|
|
1435
|
+
/** @description The invoices the lines with an `invoiceId` are on, oldest first. Absent when nothing is invoiced for the period yet. */
|
|
1510
1436
|
invoices?: components["schemas"]["BillingIssuedInvoice"][];
|
|
1511
1437
|
};
|
|
1512
1438
|
ApiResponse_BillingSummary: {
|
|
@@ -1529,8 +1455,8 @@ export interface components {
|
|
|
1529
1455
|
status: "not_applicable" | "invoice_open" | "action_required" | "missing_payment_method" | "healthy";
|
|
1530
1456
|
hasDefaultPaymentMethod: boolean;
|
|
1531
1457
|
openInvoiceId?: string;
|
|
1532
|
-
/**
|
|
1533
|
-
|
|
1458
|
+
/** @description What is still owed on the open invoice, in dollars to the cent. */
|
|
1459
|
+
amountRemaining?: number;
|
|
1534
1460
|
openInvoiceCurrency?: string;
|
|
1535
1461
|
/** Format: int64 */
|
|
1536
1462
|
openInvoiceDueDate?: number;
|
|
@@ -1559,8 +1485,11 @@ export interface components {
|
|
|
1559
1485
|
billingMode: "not_setup" | "self_serve";
|
|
1560
1486
|
/** @enum {string} */
|
|
1561
1487
|
plan: "free" | "developer" | "team" | "enterprise" | "unknown";
|
|
1562
|
-
/**
|
|
1563
|
-
|
|
1488
|
+
/**
|
|
1489
|
+
* @description Current subscription status; `none` without a paid subscription, `past_due` while a failing payment is retried and the plan is kept.
|
|
1490
|
+
* @enum {string}
|
|
1491
|
+
*/
|
|
1492
|
+
subscriptionStatus: "none" | "active" | "past_due";
|
|
1564
1493
|
billingPeriod?: components["schemas"]["BillingPeriod"];
|
|
1565
1494
|
/**
|
|
1566
1495
|
* Format: int64
|
|
@@ -1886,8 +1815,11 @@ export interface components {
|
|
|
1886
1815
|
BillingSubscriptionState: {
|
|
1887
1816
|
/** @enum {string} */
|
|
1888
1817
|
plan: "free" | "developer" | "team" | "enterprise" | "unknown";
|
|
1889
|
-
/**
|
|
1890
|
-
|
|
1818
|
+
/**
|
|
1819
|
+
* @description Current subscription status; `none` without a paid subscription, `past_due` while a failing payment is retried and the plan is kept.
|
|
1820
|
+
* @enum {string}
|
|
1821
|
+
*/
|
|
1822
|
+
subscriptionStatus: "none" | "active" | "past_due";
|
|
1891
1823
|
billingPeriod?: components["schemas"]["BillingPeriod"];
|
|
1892
1824
|
/** Format: int64 */
|
|
1893
1825
|
scheduledCancellationAt?: number;
|
|
@@ -2908,6 +2840,54 @@ export interface components {
|
|
|
2908
2840
|
*/
|
|
2909
2841
|
clientId: string;
|
|
2910
2842
|
};
|
|
2843
|
+
PrefetchRequest: {
|
|
2844
|
+
/** @description Byte ranges to warm. A request may name at most 1000. */
|
|
2845
|
+
ranges: components["schemas"]["PrefetchRange"][];
|
|
2846
|
+
};
|
|
2847
|
+
PrefetchRange: {
|
|
2848
|
+
/**
|
|
2849
|
+
* @description File path relative to the disk root.
|
|
2850
|
+
* @example models/weights.bin
|
|
2851
|
+
*/
|
|
2852
|
+
path: string;
|
|
2853
|
+
/**
|
|
2854
|
+
* Format: int64
|
|
2855
|
+
* @description First byte to warm. Defaults to 0.
|
|
2856
|
+
*/
|
|
2857
|
+
offset?: number;
|
|
2858
|
+
/**
|
|
2859
|
+
* Format: int64
|
|
2860
|
+
* @description Bytes to warm from `offset`. Defaults to the end of the file.
|
|
2861
|
+
*/
|
|
2862
|
+
length?: number;
|
|
2863
|
+
};
|
|
2864
|
+
PrefetchRangeResult: {
|
|
2865
|
+
/** @description Whether the path exists. */
|
|
2866
|
+
found: boolean;
|
|
2867
|
+
/**
|
|
2868
|
+
* Format: int64
|
|
2869
|
+
* @description Bytes of the range being warmed, including bytes that were already cached.
|
|
2870
|
+
*/
|
|
2871
|
+
bytesRequested: number;
|
|
2872
|
+
/**
|
|
2873
|
+
* Format: int64
|
|
2874
|
+
* @description Of `bytesRequested`, the bytes fetched (or still being fetched) from object storage.
|
|
2875
|
+
*/
|
|
2876
|
+
bytesWarmed: number;
|
|
2877
|
+
/**
|
|
2878
|
+
* @description Set when this range was not warmed: `retry` for a transient failure worth retrying, `failed` otherwise. Other ranges in the request are unaffected.
|
|
2879
|
+
* @enum {string}
|
|
2880
|
+
*/
|
|
2881
|
+
error?: "retry" | "failed";
|
|
2882
|
+
};
|
|
2883
|
+
ApiResponse_Prefetch: {
|
|
2884
|
+
/** @example true */
|
|
2885
|
+
success: boolean;
|
|
2886
|
+
data: {
|
|
2887
|
+
/** @description One result per requested range, in request order. */
|
|
2888
|
+
results: components["schemas"]["PrefetchRangeResult"][];
|
|
2889
|
+
};
|
|
2890
|
+
};
|
|
2911
2891
|
CreateApiTokenRequest: {
|
|
2912
2892
|
/** @description Token name */
|
|
2913
2893
|
name: string;
|
|
@@ -3331,7 +3311,7 @@ export interface components {
|
|
|
3331
3311
|
UsageEnd: string;
|
|
3332
3312
|
/** @description A named window relative to now in `timezone`, instead of `start` and `end`. Weeks start on Monday. A window may run past now; the intervals after it are left out. */
|
|
3333
3313
|
UsageFor: "today" | "yesterday" | "this-week" | "last-week" | "this-month" | "last-month";
|
|
3334
|
-
/** @description Which billing period: `current` (the default), or a YYYY-MM-DD date (UTC) inside a past period that has been invoiced; the day a period starts on selects it. A past period
|
|
3314
|
+
/** @description Which billing period: `current` (the default), or a YYYY-MM-DD date (UTC) inside a past period that has been invoiced; the day a period starts on selects it. A past period's lines are read whole from the invoices issued for it, named in `invoices`, under the plan they were issued for, whatever the account is on now. */
|
|
3335
3315
|
SummaryPeriod: string;
|
|
3336
3316
|
/** @description Width of each interval. Days are aligned to `timezone`; hours are UTC. */
|
|
3337
3317
|
UsageGranularity: "1d" | "1h";
|
|
@@ -3412,7 +3392,7 @@ export interface operations {
|
|
|
3412
3392
|
};
|
|
3413
3393
|
requestBody?: never;
|
|
3414
3394
|
responses: {
|
|
3415
|
-
/** @description Usage over the window and per interval */
|
|
3395
|
+
/** @description Usage and its cost over the window and per interval */
|
|
3416
3396
|
200: {
|
|
3417
3397
|
headers: {
|
|
3418
3398
|
[name: string]: unknown;
|
|
@@ -3426,44 +3406,10 @@ export interface operations {
|
|
|
3426
3406
|
502: components["responses"]["InternalError"];
|
|
3427
3407
|
};
|
|
3428
3408
|
};
|
|
3429
|
-
getBillingCosts: {
|
|
3430
|
-
parameters: {
|
|
3431
|
-
query?: {
|
|
3432
|
-
/** @description Start of the window, inclusive: an RFC 3339 timestamp, or a YYYY-MM-DD date taken at midnight in `timezone`. Defaults to seven days (hourly: 24 hours) before `end`. Not with `for`. */
|
|
3433
|
-
start?: components["parameters"]["UsageStart"];
|
|
3434
|
-
/** @description End of the window, exclusive, in the same forms as `start`. Defaults to now. Not with `for`. */
|
|
3435
|
-
end?: components["parameters"]["UsageEnd"];
|
|
3436
|
-
/** @description A named window relative to now in `timezone`, instead of `start` and `end`. Weeks start on Monday. A window may run past now; the intervals after it are left out. */
|
|
3437
|
-
for?: components["parameters"]["UsageFor"];
|
|
3438
|
-
/** @description Width of each interval. Days are aligned to `timezone`; hours are UTC. */
|
|
3439
|
-
granularity?: components["parameters"]["UsageGranularity"];
|
|
3440
|
-
/** @description IANA timezone that day intervals and dates are aligned to. */
|
|
3441
|
-
timezone?: components["parameters"]["UsageTimezone"];
|
|
3442
|
-
};
|
|
3443
|
-
header?: never;
|
|
3444
|
-
path?: never;
|
|
3445
|
-
cookie?: never;
|
|
3446
|
-
};
|
|
3447
|
-
requestBody?: never;
|
|
3448
|
-
responses: {
|
|
3449
|
-
/** @description Cost over the window and per interval */
|
|
3450
|
-
200: {
|
|
3451
|
-
headers: {
|
|
3452
|
-
[name: string]: unknown;
|
|
3453
|
-
};
|
|
3454
|
-
content: {
|
|
3455
|
-
"application/json": components["schemas"]["ApiResponse_BillingCosts"];
|
|
3456
|
-
};
|
|
3457
|
-
};
|
|
3458
|
-
400: components["responses"]["ValidationError"];
|
|
3459
|
-
401: components["responses"]["Unauthorized"];
|
|
3460
|
-
502: components["responses"]["InternalError"];
|
|
3461
|
-
};
|
|
3462
|
-
};
|
|
3463
3409
|
getBillingSummary: {
|
|
3464
3410
|
parameters: {
|
|
3465
3411
|
query?: {
|
|
3466
|
-
/** @description Which billing period: `current` (the default), or a YYYY-MM-DD date (UTC) inside a past period that has been invoiced; the day a period starts on selects it. A past period
|
|
3412
|
+
/** @description Which billing period: `current` (the default), or a YYYY-MM-DD date (UTC) inside a past period that has been invoiced; the day a period starts on selects it. A past period's lines are read whole from the invoices issued for it, named in `invoices`, under the plan they were issued for, whatever the account is on now. */
|
|
3467
3413
|
period?: components["parameters"]["SummaryPeriod"];
|
|
3468
3414
|
};
|
|
3469
3415
|
header?: never;
|
|
@@ -4779,6 +4725,46 @@ export interface operations {
|
|
|
4779
4725
|
500: components["responses"]["InternalError"];
|
|
4780
4726
|
};
|
|
4781
4727
|
};
|
|
4728
|
+
prefetchDisk: {
|
|
4729
|
+
parameters: {
|
|
4730
|
+
query?: never;
|
|
4731
|
+
header?: never;
|
|
4732
|
+
path: {
|
|
4733
|
+
/** @description Disk ID (format `dsk-{16 hex chars}`) */
|
|
4734
|
+
id: components["parameters"]["DiskId"];
|
|
4735
|
+
};
|
|
4736
|
+
cookie?: never;
|
|
4737
|
+
};
|
|
4738
|
+
requestBody: {
|
|
4739
|
+
content: {
|
|
4740
|
+
"application/json": components["schemas"]["PrefetchRequest"];
|
|
4741
|
+
};
|
|
4742
|
+
};
|
|
4743
|
+
responses: {
|
|
4744
|
+
/** @description Per-range prefetch results */
|
|
4745
|
+
200: {
|
|
4746
|
+
headers: {
|
|
4747
|
+
[name: string]: unknown;
|
|
4748
|
+
};
|
|
4749
|
+
content: {
|
|
4750
|
+
"application/json": components["schemas"]["ApiResponse_Prefetch"];
|
|
4751
|
+
};
|
|
4752
|
+
};
|
|
4753
|
+
400: components["responses"]["ValidationError"];
|
|
4754
|
+
401: components["responses"]["Unauthorized"];
|
|
4755
|
+
404: components["responses"]["NotFound"];
|
|
4756
|
+
500: components["responses"]["InternalError"];
|
|
4757
|
+
/** @description Temporarily unavailable; safe to retry. */
|
|
4758
|
+
503: {
|
|
4759
|
+
headers: {
|
|
4760
|
+
[name: string]: unknown;
|
|
4761
|
+
};
|
|
4762
|
+
content: {
|
|
4763
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
4764
|
+
};
|
|
4765
|
+
};
|
|
4766
|
+
};
|
|
4767
|
+
};
|
|
4782
4768
|
execDisk: {
|
|
4783
4769
|
parameters: {
|
|
4784
4770
|
query?: never;
|