@archildata/api-types 0.0.78 → 0.0.80
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 +67 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -709,9 +709,10 @@ export interface paths {
|
|
|
709
709
|
* breadth-first and grep workers are dispatched as soon as each level
|
|
710
710
|
* finishes listing — listing and matching overlap.
|
|
711
711
|
*
|
|
712
|
-
* The matches returned when stopping early on `maxResults
|
|
713
|
-
*
|
|
714
|
-
*
|
|
712
|
+
* The matches returned when stopping early on `maxResults`, or on the
|
|
713
|
+
* 32 MiB limit on match and context text, are a sample of whichever
|
|
714
|
+
* workers reported first, not the lexicographically first N. The
|
|
715
|
+
* response surfaces `stoppedReason` so callers can distinguish
|
|
715
716
|
* completion from early termination.
|
|
716
717
|
*/
|
|
717
718
|
post: operations["grepDisk"];
|
|
@@ -2030,7 +2031,7 @@ export interface components {
|
|
|
2030
2031
|
readonly managed?: boolean;
|
|
2031
2032
|
};
|
|
2032
2033
|
SandboxTimeoutRequest: {
|
|
2033
|
-
/** @description Seconds from now until a running sandbox expires, capped at 24 hours after its session started, and the lifetime budget for its next powered-on session. */
|
|
2034
|
+
/** @description Seconds from now until a running sandbox expires, capped at the plan's session ceiling (24 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). */
|
|
2034
2035
|
timeout?: number;
|
|
2035
2036
|
/** @description Seconds without a direct process connection before the sandbox pauses. Zero disables idle expiry. */
|
|
2036
2037
|
idle_ttl_seconds?: number;
|
|
@@ -2043,7 +2044,7 @@ export interface components {
|
|
|
2043
2044
|
status: components["schemas"]["SandboxState"];
|
|
2044
2045
|
vcpu_count: number;
|
|
2045
2046
|
mem_size_mib: number;
|
|
2046
|
-
/** @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume. Defaults to 24 hours. The timeout endpoint can move the deadline, but no session runs longer than 24 hours. */
|
|
2047
|
+
/** @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume. Defaults to 24 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 24 hours. */
|
|
2047
2048
|
max_ttl_seconds: number;
|
|
2048
2049
|
/** @description Seconds without a direct process connection before the sandbox pauses, preserving memory and processes for resume. Zero disables idle expiry. */
|
|
2049
2050
|
idle_ttl_seconds: number;
|
|
@@ -2259,7 +2260,7 @@ export interface components {
|
|
|
2259
2260
|
/** @description Archil disks mounted inside the guest for the first session; `start` can replace them for later sessions. Inherited by forks. A sandbox with mounts must be stopped before it can be forked. */
|
|
2260
2261
|
mounts?: components["schemas"]["SandboxMount"][];
|
|
2261
2262
|
/**
|
|
2262
|
-
* @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume.
|
|
2263
|
+
* @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume. 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`).
|
|
2263
2264
|
* @default 86400
|
|
2264
2265
|
*/
|
|
2265
2266
|
max_ttl_seconds: number;
|
|
@@ -3239,7 +3240,8 @@ export interface components {
|
|
|
3239
3240
|
* batches errored (invalid regex, unreadable file, runtime issue) or
|
|
3240
3241
|
* exceeded the 4 MiB output limit.
|
|
3241
3242
|
* Results may be partial or wrong; do not rely on completeness.
|
|
3242
|
-
* - `max_results`: hit `maxResults
|
|
3243
|
+
* - `max_results`: hit `maxResults`, or the response size limit
|
|
3244
|
+
* (32 MiB of match and context text), before scanning everything.
|
|
3243
3245
|
* - `deadline`: hit `maxDurationSeconds`.
|
|
3244
3246
|
* - `list_failed`: directory listing failed; partial results
|
|
3245
3247
|
* may be present.
|
|
@@ -3339,6 +3341,42 @@ export interface components {
|
|
|
3339
3341
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
3340
3342
|
};
|
|
3341
3343
|
};
|
|
3344
|
+
/**
|
|
3345
|
+
* @description The account's plan has used its serverless tool call allowance for
|
|
3346
|
+
* the month. `code` is `allowance_exhausted`; `data` carries the
|
|
3347
|
+
* `feature`, the `limit` the plan grants, the `remaining` balance and
|
|
3348
|
+
* `nextResetAt` (Unix seconds). Paid plans are never refused.
|
|
3349
|
+
*/
|
|
3350
|
+
ToolCallAllowanceExhausted: {
|
|
3351
|
+
headers: {
|
|
3352
|
+
[name: string]: unknown;
|
|
3353
|
+
};
|
|
3354
|
+
content: {
|
|
3355
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3356
|
+
};
|
|
3357
|
+
};
|
|
3358
|
+
/**
|
|
3359
|
+
* @description The account's plan cannot cover this sandbox session. `code` is
|
|
3360
|
+
* `sandbox_ttl_limit_exceeded` (an explicit `max_ttl_seconds` is
|
|
3361
|
+
* longer than the plan's ceiling; `data.limit` is the ceiling in
|
|
3362
|
+
* minutes), `allowance_insufficient` (the session's vCPU-hours or
|
|
3363
|
+
* GiB-hours, allocation × timeout, exceed what is left of the month's
|
|
3364
|
+
* allowance; `data` carries `feature`, `limit`, `remaining`,
|
|
3365
|
+
* `requested` and `nextResetAt`) or `allowance_exhausted` (an
|
|
3366
|
+
* allowance is used up). A timeout the caller did not choose is
|
|
3367
|
+
* lowered to fit the plan rather than refused; a fork is judged as
|
|
3368
|
+
* one launch of the source's shape, and the fitted timeout applies to
|
|
3369
|
+
* the child and to the resumed source alike. Paid plans are never
|
|
3370
|
+
* refused.
|
|
3371
|
+
*/
|
|
3372
|
+
SandboxPlanLimit: {
|
|
3373
|
+
headers: {
|
|
3374
|
+
[name: string]: unknown;
|
|
3375
|
+
};
|
|
3376
|
+
content: {
|
|
3377
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3378
|
+
};
|
|
3379
|
+
};
|
|
3342
3380
|
};
|
|
3343
3381
|
parameters: {
|
|
3344
3382
|
/** @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`. */
|
|
@@ -4828,6 +4866,7 @@ export interface operations {
|
|
|
4828
4866
|
};
|
|
4829
4867
|
400: components["responses"]["ValidationError"];
|
|
4830
4868
|
401: components["responses"]["Unauthorized"];
|
|
4869
|
+
403: components["responses"]["ToolCallAllowanceExhausted"];
|
|
4831
4870
|
404: components["responses"]["NotFound"];
|
|
4832
4871
|
500: components["responses"]["InternalError"];
|
|
4833
4872
|
/** @description Command timed out */
|
|
@@ -4927,6 +4966,7 @@ export interface operations {
|
|
|
4927
4966
|
};
|
|
4928
4967
|
400: components["responses"]["ValidationError"];
|
|
4929
4968
|
401: components["responses"]["Unauthorized"];
|
|
4969
|
+
403: components["responses"]["ToolCallAllowanceExhausted"];
|
|
4930
4970
|
404: components["responses"]["NotFound"];
|
|
4931
4971
|
500: components["responses"]["InternalError"];
|
|
4932
4972
|
/** @description Command timed out */
|
|
@@ -5125,6 +5165,7 @@ export interface operations {
|
|
|
5125
5165
|
};
|
|
5126
5166
|
400: components["responses"]["ValidationError"];
|
|
5127
5167
|
401: components["responses"]["Unauthorized"];
|
|
5168
|
+
403: components["responses"]["SandboxPlanLimit"];
|
|
5128
5169
|
404: components["responses"]["NotFound"];
|
|
5129
5170
|
/** @description The requested sandbox name already exists in the account, or the requested `image_id` has no finished build yet */
|
|
5130
5171
|
409: {
|
|
@@ -5521,6 +5562,7 @@ export interface operations {
|
|
|
5521
5562
|
};
|
|
5522
5563
|
400: components["responses"]["ValidationError"];
|
|
5523
5564
|
401: components["responses"]["Unauthorized"];
|
|
5565
|
+
403: components["responses"]["SandboxPlanLimit"];
|
|
5524
5566
|
404: components["responses"]["NotFound"];
|
|
5525
5567
|
/** @description The source cannot be paused or its fork checkpoint is unavailable */
|
|
5526
5568
|
409: {
|
|
@@ -5570,6 +5612,7 @@ export interface operations {
|
|
|
5570
5612
|
};
|
|
5571
5613
|
400: components["responses"]["ValidationError"];
|
|
5572
5614
|
401: components["responses"]["Unauthorized"];
|
|
5615
|
+
403: components["responses"]["SandboxPlanLimit"];
|
|
5573
5616
|
404: components["responses"]["NotFound"];
|
|
5574
5617
|
/** @description The sandbox is not paused, is shutting down, or a cold start is already in progress */
|
|
5575
5618
|
409: {
|
|
@@ -5688,6 +5731,22 @@ export interface operations {
|
|
|
5688
5731
|
};
|
|
5689
5732
|
400: components["responses"]["ValidationError"];
|
|
5690
5733
|
401: components["responses"]["Unauthorized"];
|
|
5734
|
+
/**
|
|
5735
|
+
* @description The account's plan cannot cover the new session timeout: it is
|
|
5736
|
+
* longer than the plan's ceiling (`sandbox_ttl_limit_exceeded`), or
|
|
5737
|
+
* the sandbox's allocation over it exceeds what is left of the
|
|
5738
|
+
* month's allowance (`allowance_insufficient`, `allowance_exhausted`).
|
|
5739
|
+
* `data` carries the `feature`, `limit`, `remaining` and
|
|
5740
|
+
* `nextResetAt`. Paid plans are never refused.
|
|
5741
|
+
*/
|
|
5742
|
+
403: {
|
|
5743
|
+
headers: {
|
|
5744
|
+
[name: string]: unknown;
|
|
5745
|
+
};
|
|
5746
|
+
content: {
|
|
5747
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5748
|
+
};
|
|
5749
|
+
};
|
|
5691
5750
|
404: components["responses"]["NotFound"];
|
|
5692
5751
|
/** @description The sandbox is transitioning or its timeout changed concurrently */
|
|
5693
5752
|
409: {
|
|
@@ -5741,6 +5800,7 @@ export interface operations {
|
|
|
5741
5800
|
};
|
|
5742
5801
|
400: components["responses"]["ValidationError"];
|
|
5743
5802
|
401: components["responses"]["Unauthorized"];
|
|
5803
|
+
403: components["responses"]["SandboxPlanLimit"];
|
|
5744
5804
|
404: components["responses"]["NotFound"];
|
|
5745
5805
|
/** @description The previous VM is stopping or pausing, or a resume is already in progress */
|
|
5746
5806
|
409: {
|