@archildata/api-types 0.0.89 → 0.0.90
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 +13 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -878,6 +878,11 @@ export interface paths {
|
|
|
878
878
|
* visible only to its account. The credentials are passed to the build
|
|
879
879
|
* and never stored. A failed build, or a build whose runtime host does
|
|
880
880
|
* not answer, builds again on the next request.
|
|
881
|
+
*
|
|
882
|
+
* An image has a size. Its build prepares sandboxes of that size to
|
|
883
|
+
* start from a snapshot, and sandboxes created from its `image_id` get
|
|
884
|
+
* that size unless they set their own; other sizes boot from scratch.
|
|
885
|
+
* Each size of a source is a separate image.
|
|
881
886
|
*/
|
|
882
887
|
post: operations["createImage"];
|
|
883
888
|
delete?: never;
|
|
@@ -2297,6 +2302,10 @@ export interface components {
|
|
|
2297
2302
|
/** @description Linux OCI image reference. Docker shorthand and tags are accepted. */
|
|
2298
2303
|
source: string;
|
|
2299
2304
|
registry_auth?: components["schemas"]["RegistryAuth"];
|
|
2305
|
+
/** @default 1 */
|
|
2306
|
+
vcpu_count: number;
|
|
2307
|
+
/** @default 2048 */
|
|
2308
|
+
mem_size_mib: number;
|
|
2300
2309
|
};
|
|
2301
2310
|
/** @enum {string} */
|
|
2302
2311
|
ImageState: "building" | "ready" | "failed";
|
|
@@ -2304,6 +2313,9 @@ export interface components {
|
|
|
2304
2313
|
image_id: string;
|
|
2305
2314
|
/** @description Normalized OCI reference the image is pulled from. */
|
|
2306
2315
|
source: string;
|
|
2316
|
+
/** @description The size sandboxes created from this image get by default. */
|
|
2317
|
+
vcpu_count: number;
|
|
2318
|
+
mem_size_mib: number;
|
|
2307
2319
|
/** @description Whether the image is pulled with registry credentials. */
|
|
2308
2320
|
private: boolean;
|
|
2309
2321
|
status: components["schemas"]["ImageState"];
|
|
@@ -2390,7 +2402,7 @@ export interface components {
|
|
|
2390
2402
|
mem_size_mib: number;
|
|
2391
2403
|
/** @description Public Linux OCI image reference. Docker shorthand and tags are accepted; the selected platform manifest is pinned at creation. Defaults to `node:24-bookworm` (Debian with Node.js, Python, git, and a C toolchain) when neither this nor `image_id` is set. Mutually exclusive with `image_id`. */
|
|
2392
2404
|
base_image?: string;
|
|
2393
|
-
/** @description An image from the images API, for images that need registry credentials. The sandbox boots the image's current `digest
|
|
2405
|
+
/** @description An image from the images API, for images that need registry credentials. The sandbox boots the image's current `digest`, at the image's size unless `vcpu_count` or `mem_size_mib` is set. Mutually exclusive with `base_image`. */
|
|
2394
2406
|
image_id?: string;
|
|
2395
2407
|
/** @description TCP ports to expose publicly when the sandbox is created. */
|
|
2396
2408
|
ports?: number[];
|