@archildata/api-types 0.0.102 → 0.0.104
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 +102 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -654,6 +654,26 @@ export interface paths {
|
|
|
654
654
|
patch?: never;
|
|
655
655
|
trace?: never;
|
|
656
656
|
};
|
|
657
|
+
"/api/disks/{id}/metrics": {
|
|
658
|
+
parameters: {
|
|
659
|
+
query?: never;
|
|
660
|
+
header?: never;
|
|
661
|
+
path?: never;
|
|
662
|
+
cookie?: never;
|
|
663
|
+
};
|
|
664
|
+
/**
|
|
665
|
+
* Get a disk's metrics
|
|
666
|
+
* @description Returns points in time order, omitting intervals with no samples. The current interval updates about once a minute. History follows usage retention (90 days by default).
|
|
667
|
+
*/
|
|
668
|
+
get: operations["getDiskMetrics"];
|
|
669
|
+
put?: never;
|
|
670
|
+
post?: never;
|
|
671
|
+
delete?: never;
|
|
672
|
+
options?: never;
|
|
673
|
+
head?: never;
|
|
674
|
+
patch?: never;
|
|
675
|
+
trace?: never;
|
|
676
|
+
};
|
|
657
677
|
"/api/disks/{id}/sandbox-mount": {
|
|
658
678
|
parameters: {
|
|
659
679
|
query?: never;
|
|
@@ -1367,7 +1387,7 @@ export interface paths {
|
|
|
1367
1387
|
* Set a sandbox's timeouts
|
|
1368
1388
|
* @description Replaces one or both sandbox timeout settings. Updating `timeout` while
|
|
1369
1389
|
* the sandbox is running moves its hard expiration deadline to that many
|
|
1370
|
-
* seconds from now, but never past
|
|
1390
|
+
* seconds from now, but never past 36 hours after the session started.
|
|
1371
1391
|
* Updating `idle_ttl_seconds` resets the idle countdown when no direct
|
|
1372
1392
|
* process connection is active; zero disables idle expiry. Omitted
|
|
1373
1393
|
* settings remain unchanged. Updates are retained across later stops and
|
|
@@ -2384,7 +2404,7 @@ export interface components {
|
|
|
2384
2404
|
readonly managed?: boolean;
|
|
2385
2405
|
};
|
|
2386
2406
|
SandboxTimeoutRequest: {
|
|
2387
|
-
/** @description Seconds from now until a running sandbox expires, capped at the plan's session ceiling (
|
|
2407
|
+
/** @description Seconds from now until a running sandbox expires, capped at the plan's session ceiling (36 hours at most) after its session started, and the lifetime budget for its next powered-on session. Held to the plan's session ceiling and to what is left of its sandbox allowance (403). */
|
|
2388
2408
|
timeout?: number;
|
|
2389
2409
|
/** @description Seconds without a direct process connection before the sandbox pauses or is deleted, per its `on_timeout`. Zero disables idle expiry. */
|
|
2390
2410
|
idle_ttl_seconds?: number;
|
|
@@ -2398,7 +2418,7 @@ export interface components {
|
|
|
2398
2418
|
status: components["schemas"]["SandboxState"];
|
|
2399
2419
|
vcpu_count: number;
|
|
2400
2420
|
mem_size_mib: number;
|
|
2401
|
-
/** @description Lifetime budget applied independently to each powered-on session. Expiry pauses or deletes the sandbox, per `on_timeout`. Defaults to
|
|
2421
|
+
/** @description Lifetime budget applied independently to each powered-on session. Expiry pauses or deletes the sandbox, per `on_timeout`. Defaults to 36 hours, or to the longest session the plan allows; a start, resume or fork lowers a stored value the plan no longer allows. The timeout endpoint can move the deadline, but no session runs longer than 36 hours. */
|
|
2402
2422
|
max_ttl_seconds: number;
|
|
2403
2423
|
/** @description Seconds without a direct process connection before the sandbox pauses or is deleted, per `on_timeout`. Zero disables idle expiry. */
|
|
2404
2424
|
idle_ttl_seconds: number;
|
|
@@ -2703,7 +2723,7 @@ export interface components {
|
|
|
2703
2723
|
mounts?: components["schemas"]["SandboxMount"][];
|
|
2704
2724
|
/**
|
|
2705
2725
|
* @description Lifetime budget applied independently to each powered-on session. Expiry pauses or deletes the sandbox, per `on_timeout`. An omitted value is lowered to the longest session the plan allows for the sandbox's size (its session ceiling, then the remaining monthly allowance); an explicit value past that is refused with 403 (`sandbox_ttl_limit_exceeded` or `allowance_insufficient`).
|
|
2706
|
-
* @default
|
|
2726
|
+
* @default 129600
|
|
2707
2727
|
*/
|
|
2708
2728
|
max_ttl_seconds: number;
|
|
2709
2729
|
/**
|
|
@@ -3281,6 +3301,50 @@ export interface components {
|
|
|
3281
3301
|
allowedIps: string[];
|
|
3282
3302
|
};
|
|
3283
3303
|
};
|
|
3304
|
+
ApiResponse_DiskMetricSeries: {
|
|
3305
|
+
/** @example true */
|
|
3306
|
+
success: boolean;
|
|
3307
|
+
data: components["schemas"]["DiskMetricSeries"];
|
|
3308
|
+
};
|
|
3309
|
+
DiskMetricSeries: {
|
|
3310
|
+
/** @example dsk-0123456789abcdef */
|
|
3311
|
+
diskId: string;
|
|
3312
|
+
/**
|
|
3313
|
+
* Format: int64
|
|
3314
|
+
* @description Start of the range served, in Unix seconds.
|
|
3315
|
+
* @example 1794268800
|
|
3316
|
+
*/
|
|
3317
|
+
from: number;
|
|
3318
|
+
/**
|
|
3319
|
+
* Format: int64
|
|
3320
|
+
* @description End of the range served, in Unix seconds, exclusive.
|
|
3321
|
+
* @example 1794355200
|
|
3322
|
+
*/
|
|
3323
|
+
to: number;
|
|
3324
|
+
/**
|
|
3325
|
+
* @description Seconds each point covers.
|
|
3326
|
+
* @example 600
|
|
3327
|
+
*/
|
|
3328
|
+
step: number;
|
|
3329
|
+
/** @description Only metrics recorded in this region appear here. */
|
|
3330
|
+
series: {
|
|
3331
|
+
/** @description Mean active bytes over the sampled portion of each interval. */
|
|
3332
|
+
activeBytes?: components["schemas"]["DiskMetricPoint"][];
|
|
3333
|
+
};
|
|
3334
|
+
};
|
|
3335
|
+
DiskMetricPoint: {
|
|
3336
|
+
/**
|
|
3337
|
+
* Format: int64
|
|
3338
|
+
* @description Start of the interval, in Unix seconds.
|
|
3339
|
+
* @example 1794268800
|
|
3340
|
+
*/
|
|
3341
|
+
t: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* Format: int64
|
|
3344
|
+
* @example 1073741824
|
|
3345
|
+
*/
|
|
3346
|
+
v: number;
|
|
3347
|
+
};
|
|
3284
3348
|
ApiResponse_SandboxMount: {
|
|
3285
3349
|
/** @example true */
|
|
3286
3350
|
success: boolean;
|
|
@@ -5416,6 +5480,40 @@ export interface operations {
|
|
|
5416
5480
|
500: components["responses"]["InternalError"];
|
|
5417
5481
|
};
|
|
5418
5482
|
};
|
|
5483
|
+
getDiskMetrics: {
|
|
5484
|
+
parameters: {
|
|
5485
|
+
query?: {
|
|
5486
|
+
/** @description Start of the range, in Unix seconds. Defaults to 24 hours before `to`. Rounded down to a multiple of `step`. */
|
|
5487
|
+
from?: number;
|
|
5488
|
+
/** @description End of the range, in Unix seconds, exclusive. Defaults to now. */
|
|
5489
|
+
to?: number;
|
|
5490
|
+
/** @description Seconds each point covers, a multiple of 600. Defaults to 600 for a range up to a day, 1800 up to a week, and 3600 beyond. A range of more than 3,000 steps is refused. */
|
|
5491
|
+
step?: number;
|
|
5492
|
+
};
|
|
5493
|
+
header?: never;
|
|
5494
|
+
path: {
|
|
5495
|
+
/** @description Disk ID (format `dsk-{16 hex chars}`) */
|
|
5496
|
+
id: components["parameters"]["DiskId"];
|
|
5497
|
+
};
|
|
5498
|
+
cookie?: never;
|
|
5499
|
+
};
|
|
5500
|
+
requestBody?: never;
|
|
5501
|
+
responses: {
|
|
5502
|
+
/** @description The disk's metric series */
|
|
5503
|
+
200: {
|
|
5504
|
+
headers: {
|
|
5505
|
+
[name: string]: unknown;
|
|
5506
|
+
};
|
|
5507
|
+
content: {
|
|
5508
|
+
"application/json": components["schemas"]["ApiResponse_DiskMetricSeries"];
|
|
5509
|
+
};
|
|
5510
|
+
};
|
|
5511
|
+
400: components["responses"]["ValidationError"];
|
|
5512
|
+
401: components["responses"]["Unauthorized"];
|
|
5513
|
+
404: components["responses"]["NotFound"];
|
|
5514
|
+
500: components["responses"]["InternalError"];
|
|
5515
|
+
};
|
|
5516
|
+
};
|
|
5419
5517
|
getSandboxMount: {
|
|
5420
5518
|
parameters: {
|
|
5421
5519
|
query?: never;
|