@archildata/api-types 0.0.73 → 0.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +191 -213
  2. 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, calls) with no prices applied. 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.
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 as a sum
76
- * @description Returns a billing period's statement as a sum: `meteredCostCents`, the period's usage at the account's rates with a breakdown by meter; `adjustments`, the lines the plan applies (the included credits taken off, the base price added); and `billedCostCents`, what they come to, which is what the period invoices or would if it ended now. Also the account's standing on the plan's credit pool and, for the current period, a projection to its end at the recent daily pace. A past period's lines are read from the invoices issued for it. The only billing route where the plan's base price and included credits enter. Money is in integer cents. On a plan that prices no usage, `priced` is false and the amounts are zero.
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;
@@ -588,6 +568,30 @@ export interface paths {
588
568
  patch?: never;
589
569
  trace?: never;
590
570
  };
571
+ "/api/disks/{id}/sandbox-mount": {
572
+ parameters: {
573
+ query?: never;
574
+ header?: never;
575
+ path?: never;
576
+ cookie?: never;
577
+ };
578
+ /**
579
+ * Get sandbox mount setting
580
+ * @description Returns whether sandboxes and exec commands may mount a disk.
581
+ */
582
+ get: operations["getSandboxMount"];
583
+ /**
584
+ * Set sandbox mount setting
585
+ * @description Sets whether sandboxes and exec commands may mount a disk. Disks allow sandbox mounts by default. While disallowed, running an exec command against the disk or creating or starting a sandbox that mounts it fails; sandboxes already running keep their mounts. Disallowing it on a root disk also covers the root's branches.
586
+ */
587
+ put: operations["setSandboxMount"];
588
+ post?: never;
589
+ delete?: never;
590
+ options?: never;
591
+ head?: never;
592
+ patch?: never;
593
+ trace?: never;
594
+ };
591
595
  "/api/disks/{id}/delegations": {
592
596
  parameters: {
593
597
  query?: never;
@@ -1259,8 +1263,10 @@ export interface components {
1259
1263
  BillingUsageQuantity: {
1260
1264
  /** @description In the meter's own unit. */
1261
1265
  quantity: number;
1262
- /** @description vCPU-hours, GiB-hours, GiB-months or calls. */
1266
+ /** @description The meter's unit, such as vCPU-hours, GiB-hours, GiB-months or calls. */
1263
1267
  unit: string;
1268
+ /** @description Quantity at the account's rate, in dollars to the cent; zero for a meter the plan does not price. */
1269
+ cost: number;
1264
1270
  };
1265
1271
  BillingUsageInterval: {
1266
1272
  /**
@@ -1273,12 +1279,14 @@ export interface components {
1273
1279
  * @description Unix timestamp in seconds, exclusive.
1274
1280
  */
1275
1281
  end: number;
1276
- /** @description Quantity per meter in the interval, keyed by feature id. */
1282
+ /** @description The interval's usage at the account's rates, in dollars to the cent; the sum of `features`. */
1283
+ cost: number;
1284
+ /** @description Quantity and cost per meter in the interval, keyed by feature id. */
1277
1285
  features: {
1278
1286
  [key: string]: components["schemas"]["BillingUsageQuantity"];
1279
1287
  };
1280
1288
  };
1281
- /** @description The window as a whole, the summary the intervals break down. */
1289
+ /** @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. */
1282
1290
  BillingUsageWindow: {
1283
1291
  /**
1284
1292
  * Format: int64
@@ -1290,7 +1298,9 @@ export interface components {
1290
1298
  * @description Unix timestamp in seconds, exclusive.
1291
1299
  */
1292
1300
  end: number;
1293
- /** @description Quantity per meter over the window, keyed by feature id; the intervals' sums. */
1301
+ /** @description Usage over the window at the account's rates, in dollars to the cent. */
1302
+ cost: number;
1303
+ /** @description Quantity and cost per meter over the window, keyed by feature id. */
1294
1304
  features: {
1295
1305
  [key: string]: components["schemas"]["BillingUsageQuantity"];
1296
1306
  };
@@ -1299,50 +1309,45 @@ export interface components {
1299
1309
  /** @enum {string} */
1300
1310
  granularity: "1d" | "1h";
1301
1311
  timezone: string;
1312
+ currency: string;
1313
+ /** @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. */
1314
+ ratesPerUnit: {
1315
+ [key: string]: number;
1316
+ };
1302
1317
  window: components["schemas"]["BillingUsageWindow"];
1303
1318
  /** @description Newest first, each the window's share of one interval. Intervals after now are left out. */
1304
1319
  intervals: components["schemas"]["BillingUsageInterval"][];
1320
+ /** @description The current billing period, which `/api/billing/summary` sums; absent on a plan without one. */
1321
+ billingPeriod?: components["schemas"]["BillingPeriod"];
1305
1322
  };
1306
1323
  ApiResponse_BillingUsage: {
1307
1324
  success: boolean;
1308
1325
  data: components["schemas"]["BillingUsage"];
1309
1326
  };
1310
- BillingFeatureCost: {
1311
- /** @description In the meter's own unit. */
1312
- quantity: number;
1313
- unit: string;
1314
- /**
1315
- * Format: int64
1316
- * @description Quantity at the account's rate, in integer cents.
1317
- */
1318
- costCents: number;
1327
+ BillingSummaryPlan: {
1328
+ /** @description The plan id, such as `enterprise`. */
1329
+ id: string;
1330
+ /** @description The plan's name as billing shows it. */
1331
+ name: string;
1319
1332
  };
1320
- BillingCostInterval: {
1321
- /**
1322
- * Format: int64
1323
- * @description Unix timestamp in seconds.
1324
- */
1325
- start: number;
1333
+ /** @description One line of the period's statement, as billing invoiced it or previews it. */
1334
+ BillingLine: {
1326
1335
  /**
1327
- * Format: int64
1328
- * @description Unix timestamp in seconds, exclusive.
1329
- */
1330
- end: number;
1331
- /**
1332
- * Format: int64
1333
- * @description The interval's usage at the account's rates, in integer cents; the sum of `features`.
1336
+ * @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`.
1337
+ * @enum {string}
1334
1338
  */
1335
- costCents: number;
1336
- /** @description Quantity and cost per meter in the interval, keyed by feature id. */
1337
- features: {
1338
- [key: string]: components["schemas"]["BillingFeatureCost"];
1339
- };
1340
- };
1341
- /** @description The window as a whole, the summary the intervals break down. Its figures are priced over the whole span and rounded once per meter, so they are the same at any granularity and agree with `summary` over the billing period; the intervals, each rounded on its own, can add up to a little less. */
1342
- BillingCostWindow: {
1339
+ type: "fixed" | "usage" | "credit" | "other";
1340
+ /** @description On a `usage` or `credit` line, and a `fixed` line for an item paid up front, the feature it is on. */
1341
+ featureId?: string;
1342
+ /** @description The line's label as billing wrote it. */
1343
+ name: string;
1344
+ /** @description On a line with a `featureId`, the quantity billed, in `unit`. */
1345
+ quantity?: number;
1346
+ /** @description The quantity's unit, such as vCPU-hours or USD. */
1347
+ unit?: string;
1343
1348
  /**
1344
1349
  * Format: int64
1345
- * @description Unix timestamp in seconds.
1350
+ * @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.
1346
1351
  */
1347
1352
  start: number;
1348
1353
  /**
@@ -1350,139 +1355,64 @@ export interface components {
1350
1355
  * @description Unix timestamp in seconds, exclusive.
1351
1356
  */
1352
1357
  end: number;
1353
- /**
1354
- * Format: int64
1355
- * @description Usage over the window at the account's rates, in integer cents.
1356
- */
1357
- costCents: number;
1358
- /** @description Quantity and cost per meter over the window, keyed by feature id. */
1359
- features: {
1360
- [key: string]: components["schemas"]["BillingFeatureCost"];
1361
- };
1362
- };
1363
- BillingCosts: {
1364
- /** @enum {string} */
1365
- granularity: "1d" | "1h";
1366
- timezone: string;
1367
- currency: string;
1368
- /** @description False when the plan prices no usage; every cost is then zero. */
1369
- priced: boolean;
1370
- /** @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. */
1371
- ratesCentsPerUnit: {
1372
- [key: string]: number;
1373
- };
1374
- window: components["schemas"]["BillingCostWindow"];
1375
- /** @description Newest first, each the window's share of one interval. Intervals after now are left out. */
1376
- intervals: components["schemas"]["BillingCostInterval"][];
1377
- /** @description The current billing period, which `/api/billing/summary` sums; absent on a plan without one. */
1378
- billingPeriod?: components["schemas"]["BillingPeriod"];
1379
- };
1380
- ApiResponse_BillingCosts: {
1381
- success: boolean;
1382
- data: components["schemas"]["BillingCosts"];
1383
- };
1384
- BillingSummaryPlan: {
1385
- /** @description The plan id, such as `enterprise`. */
1386
- id: string;
1387
- /**
1388
- * Format: int64
1389
- * @description The recurring fee per billing period, in integer cents.
1390
- */
1391
- basePriceCents: number;
1392
- /** @description Credits the plan grants each period. */
1393
- includedCredits: number;
1394
- /**
1395
- * Format: int64
1396
- * @description What each credit past the granted ones costs, in integer cents.
1397
- */
1398
- overagePricePerCreditCents: number;
1358
+ /** @description In dollars to the cent; negative for a credit. */
1359
+ amount: number;
1360
+ /** @description The invoice the line is on, one of `invoices`; absent for a line previewed for the period end and not invoiced yet. */
1361
+ invoiceId?: string;
1399
1362
  };
1400
- BillingCreditStanding: {
1401
- /** @description Credits the period grants. */
1363
+ /** @description One grant the account draws before it is billed, described by when it refills or expires rather than by a kind. */
1364
+ BillingCreditGrant: {
1365
+ /** @description The feature the grant is on, such as `prepaid_credit`. */
1366
+ featureId: string;
1367
+ /** @description The feature's name, such as `Prepaid credit (USD)`. */
1368
+ name: string;
1369
+ /** @description The unit the grant is counted in, such as USD or disks. */
1370
+ unit: string;
1371
+ /** @description What the grant carries, per period for one that refills. */
1402
1372
  granted: number;
1403
- /** @description Credits drawn so far, rounded to two decimals. */
1404
- used: number;
1405
- /** @description Credits left before overage, rounded to two decimals. */
1373
+ /** @description What is left on it, rounded to two decimals. */
1406
1374
  remaining: number;
1407
- };
1408
- BillingAdjustment: {
1409
1375
  /**
1410
- * @description Which plan term the line applies; the key to branch on. `other` is a line the processor billed on a past period that is neither, such as a proration, carried with its own `name`.
1411
- * @enum {string}
1376
+ * Format: int64
1377
+ * @description Unix timestamp in seconds when the grant refills; null for a one-time grant.
1412
1378
  */
1413
- type: "included_credits" | "base_price" | "other";
1414
- /** @description The line's label, such as `Included credits` or `Base price`. */
1415
- name: string;
1379
+ resetsAt: number | null;
1416
1380
  /**
1417
1381
  * Format: int64
1418
- * @description In integer cents; negative for a discount.
1382
+ * @description Unix timestamp in seconds when the grant lapses; null when it does not.
1419
1383
  */
1420
- amountCents: number;
1384
+ expiresAt: number | null;
1421
1385
  };
1422
1386
  BillingSummaryProjection: {
1423
- /**
1424
- * Format: int64
1425
- * @description Usage at the account's rates the period is projected to reach, in integer cents.
1426
- */
1427
- meteredCostCents: number;
1428
- /**
1429
- * Format: int64
1430
- * @description What that usage would invoice, in integer cents.
1431
- */
1432
- billedCostCents: number;
1433
- /**
1434
- * Format: int64
1435
- * @description The pace the projection extends, in integer cents per day; `meteredCostCents` so far plus `dailyRateCents` × `daysRemaining`.
1436
- */
1437
- dailyRateCents: number;
1438
- /**
1439
- * Format: int64
1440
- * @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.
1441
- */
1442
- paceStart: number;
1443
- /**
1444
- * Format: int64
1445
- * @description Unix timestamp in seconds, exclusive.
1446
- */
1447
- paceEnd: number;
1448
- /** @description Days from now to the period end. */
1449
- daysRemaining: number;
1387
+ /** @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. */
1388
+ billedCost: number;
1389
+ /** @description The pace the projection extends, in dollars of usage per day; the mean over the last three elapsed UTC days inside the period. */
1390
+ dailyRate: number;
1450
1391
  };
1451
1392
  BillingIssuedInvoice: {
1452
1393
  id: string;
1453
- /** @description open, paid or uncollectible. */
1454
- status: string;
1394
+ /**
1395
+ * @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.
1396
+ * @enum {string}
1397
+ */
1398
+ status: "draft" | "open" | "paid" | "uncollectible";
1455
1399
  /** @description The invoice as the billing processor hosts it. */
1456
1400
  hostedInvoiceUrl?: string;
1457
1401
  };
1458
1402
  BillingSummary: {
1459
- /** @description False when the plan prices no usage; the quantities are still reported, the amounts are zero, and `credit` and `projected` are absent. */
1460
- priced: boolean;
1461
1403
  currency: string;
1462
1404
  /** @description The period read; the UTC calendar month for an account without a billing cycle. */
1463
1405
  billingPeriod: components["schemas"]["BillingPeriod"];
1464
1406
  plan: components["schemas"]["BillingSummaryPlan"];
1465
- /** @description Billing's own standing on the plan's credit pool, in credits, on the current period only (a past period's is not kept; its `adjustments` show the credits drawn). `used` equals `meteredCostCents` at the overage price unless a usage report arrived after a period boundary, which billing credits to the period it arrived in. */
1466
- credit?: components["schemas"]["BillingCreditStanding"];
1467
- /**
1468
- * Format: int64
1469
- * @description The period's usage at the account's rates, before any adjustment, in integer cents; the sum of `meteredCostBreakdown`. On a past period, as its invoice billed it.
1470
- */
1471
- meteredCostCents: number;
1472
- /** @description The metered cost by meter, with quantities, keyed by feature id. Sums to `meteredCostCents`. */
1473
- meteredCostBreakdown: {
1474
- [key: string]: components["schemas"]["BillingFeatureCost"];
1475
- };
1476
- /** @description The lines between `meteredCostCents` and `billedCostCents`, which sum to their difference. */
1477
- adjustments: components["schemas"]["BillingAdjustment"][];
1478
- /**
1479
- * Format: int64
1480
- * @description What the period invoices, or would if it ended now; `meteredCostCents` plus the adjustments, to the cent.
1481
- */
1482
- billedCostCents: number;
1483
- /** @description The period end at the recent daily pace; absent for a past period or without an elapsed day of usage. */
1407
+ /** @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. */
1408
+ lines: components["schemas"]["BillingLine"][];
1409
+ /** @description What the period invoices, or would if it ended now; the lines' sum, to the cent. */
1410
+ billedCost: number;
1411
+ /** @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. */
1412
+ credits: components["schemas"]["BillingCreditGrant"][];
1413
+ /** @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. */
1484
1414
  projected?: components["schemas"]["BillingSummaryProjection"];
1485
- /** @description On a past period, the invoices its lines were read from, oldest first; the base price is billed as a period starts and the usage as it ends. Absent on the current period, which is not invoiced yet. */
1415
+ /** @description The invoices the lines with an `invoiceId` are on, oldest first. Absent when nothing is invoiced for the period yet. */
1486
1416
  invoices?: components["schemas"]["BillingIssuedInvoice"][];
1487
1417
  };
1488
1418
  ApiResponse_BillingSummary: {
@@ -1505,8 +1435,8 @@ export interface components {
1505
1435
  status: "not_applicable" | "invoice_open" | "action_required" | "missing_payment_method" | "healthy";
1506
1436
  hasDefaultPaymentMethod: boolean;
1507
1437
  openInvoiceId?: string;
1508
- /** Format: int64 */
1509
- amountRemainingCents?: number;
1438
+ /** @description What is still owed on the open invoice, in dollars to the cent. */
1439
+ amountRemaining?: number;
1510
1440
  openInvoiceCurrency?: string;
1511
1441
  /** Format: int64 */
1512
1442
  openInvoiceDueDate?: number;
@@ -1535,8 +1465,11 @@ export interface components {
1535
1465
  billingMode: "not_setup" | "self_serve";
1536
1466
  /** @enum {string} */
1537
1467
  plan: "free" | "developer" | "team" | "enterprise" | "unknown";
1538
- /** @description Current subscription status, or `none`. */
1539
- subscriptionStatus: string;
1468
+ /**
1469
+ * @description Current subscription status; `none` without a paid subscription, `past_due` while a failing payment is retried and the plan is kept.
1470
+ * @enum {string}
1471
+ */
1472
+ subscriptionStatus: "none" | "active" | "past_due";
1540
1473
  billingPeriod?: components["schemas"]["BillingPeriod"];
1541
1474
  /**
1542
1475
  * Format: int64
@@ -1862,8 +1795,11 @@ export interface components {
1862
1795
  BillingSubscriptionState: {
1863
1796
  /** @enum {string} */
1864
1797
  plan: "free" | "developer" | "team" | "enterprise" | "unknown";
1865
- /** @description Current subscription status, or `none`. */
1866
- subscriptionStatus: string;
1798
+ /**
1799
+ * @description Current subscription status; `none` without a paid subscription, `past_due` while a failing payment is retried and the plan is kept.
1800
+ * @enum {string}
1801
+ */
1802
+ subscriptionStatus: "none" | "active" | "past_due";
1867
1803
  billingPeriod?: components["schemas"]["BillingPeriod"];
1868
1804
  /** Format: int64 */
1869
1805
  scheduledCancellationAt?: number;
@@ -2665,6 +2601,11 @@ export interface components {
2665
2601
  * ]
2666
2602
  */
2667
2603
  allowedIps?: string[];
2604
+ /**
2605
+ * @description Whether sandboxes and exec commands may mount the disk. A branch is mountable only when both it and its root disk allow it.
2606
+ * @example true
2607
+ */
2608
+ allowSandboxMount: boolean;
2668
2609
  /**
2669
2610
  * @description Capabilities supported by this disk. Determined at creation
2670
2611
  * time and immutable thereafter. Defined values:
@@ -2831,6 +2772,14 @@ export interface components {
2831
2772
  allowedIps: string[];
2832
2773
  };
2833
2774
  };
2775
+ ApiResponse_SandboxMount: {
2776
+ /** @example true */
2777
+ success: boolean;
2778
+ data: {
2779
+ /** @example true */
2780
+ allowSandboxMount: boolean;
2781
+ };
2782
+ };
2834
2783
  DelegationEntry: {
2835
2784
  /**
2836
2785
  * @description ID of the client holding the delegation.
@@ -3294,7 +3243,7 @@ export interface components {
3294
3243
  UsageEnd: string;
3295
3244
  /** @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. */
3296
3245
  UsageFor: "today" | "yesterday" | "this-week" | "last-week" | "this-month" | "last-month";
3297
- /** @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 is read whole from the invoices issued for it, named in `invoices`: its metered quantities and cost as billed, the included credits taken off, the base price, and any other line under its own name. */
3246
+ /** @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. */
3298
3247
  SummaryPeriod: string;
3299
3248
  /** @description Width of each interval. Days are aligned to `timezone`; hours are UTC. */
3300
3249
  UsageGranularity: "1d" | "1h";
@@ -3375,7 +3324,7 @@ export interface operations {
3375
3324
  };
3376
3325
  requestBody?: never;
3377
3326
  responses: {
3378
- /** @description Usage over the window and per interval */
3327
+ /** @description Usage and its cost over the window and per interval */
3379
3328
  200: {
3380
3329
  headers: {
3381
3330
  [name: string]: unknown;
@@ -3389,44 +3338,10 @@ export interface operations {
3389
3338
  502: components["responses"]["InternalError"];
3390
3339
  };
3391
3340
  };
3392
- getBillingCosts: {
3393
- parameters: {
3394
- query?: {
3395
- /** @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`. */
3396
- start?: components["parameters"]["UsageStart"];
3397
- /** @description End of the window, exclusive, in the same forms as `start`. Defaults to now. Not with `for`. */
3398
- end?: components["parameters"]["UsageEnd"];
3399
- /** @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. */
3400
- for?: components["parameters"]["UsageFor"];
3401
- /** @description Width of each interval. Days are aligned to `timezone`; hours are UTC. */
3402
- granularity?: components["parameters"]["UsageGranularity"];
3403
- /** @description IANA timezone that day intervals and dates are aligned to. */
3404
- timezone?: components["parameters"]["UsageTimezone"];
3405
- };
3406
- header?: never;
3407
- path?: never;
3408
- cookie?: never;
3409
- };
3410
- requestBody?: never;
3411
- responses: {
3412
- /** @description Cost over the window and per interval */
3413
- 200: {
3414
- headers: {
3415
- [name: string]: unknown;
3416
- };
3417
- content: {
3418
- "application/json": components["schemas"]["ApiResponse_BillingCosts"];
3419
- };
3420
- };
3421
- 400: components["responses"]["ValidationError"];
3422
- 401: components["responses"]["Unauthorized"];
3423
- 502: components["responses"]["InternalError"];
3424
- };
3425
- };
3426
3341
  getBillingSummary: {
3427
3342
  parameters: {
3428
3343
  query?: {
3429
- /** @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 is read whole from the invoices issued for it, named in `invoices`: its metered quantities and cost as billed, the included credits taken off, the base price, and any other line under its own name. */
3344
+ /** @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. */
3430
3345
  period?: components["parameters"]["SummaryPeriod"];
3431
3346
  };
3432
3347
  header?: never;
@@ -4622,6 +4537,69 @@ export interface operations {
4622
4537
  500: components["responses"]["InternalError"];
4623
4538
  };
4624
4539
  };
4540
+ getSandboxMount: {
4541
+ parameters: {
4542
+ query?: never;
4543
+ header?: never;
4544
+ path: {
4545
+ /** @description Disk ID (format `dsk-{16 hex chars}`) */
4546
+ id: components["parameters"]["DiskId"];
4547
+ };
4548
+ cookie?: never;
4549
+ };
4550
+ requestBody?: never;
4551
+ responses: {
4552
+ /** @description Current sandbox mount setting */
4553
+ 200: {
4554
+ headers: {
4555
+ [name: string]: unknown;
4556
+ };
4557
+ content: {
4558
+ "application/json": components["schemas"]["ApiResponse_SandboxMount"];
4559
+ };
4560
+ };
4561
+ 401: components["responses"]["Unauthorized"];
4562
+ 404: components["responses"]["NotFound"];
4563
+ 500: components["responses"]["InternalError"];
4564
+ };
4565
+ };
4566
+ setSandboxMount: {
4567
+ parameters: {
4568
+ query?: never;
4569
+ header?: never;
4570
+ path: {
4571
+ /** @description Disk ID (format `dsk-{16 hex chars}`) */
4572
+ id: components["parameters"]["DiskId"];
4573
+ };
4574
+ cookie?: never;
4575
+ };
4576
+ requestBody: {
4577
+ content: {
4578
+ "application/json": {
4579
+ /**
4580
+ * @description Whether sandboxes and exec commands may mount the disk.
4581
+ * @example false
4582
+ */
4583
+ allowSandboxMount: boolean;
4584
+ };
4585
+ };
4586
+ };
4587
+ responses: {
4588
+ /** @description Sandbox mount setting updated */
4589
+ 200: {
4590
+ headers: {
4591
+ [name: string]: unknown;
4592
+ };
4593
+ content: {
4594
+ "application/json": components["schemas"]["ApiResponse_SandboxMount"];
4595
+ };
4596
+ };
4597
+ 400: components["responses"]["ValidationError"];
4598
+ 401: components["responses"]["Unauthorized"];
4599
+ 404: components["responses"]["NotFound"];
4600
+ 500: components["responses"]["InternalError"];
4601
+ };
4602
+ };
4625
4603
  listDelegations: {
4626
4604
  parameters: {
4627
4605
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",