@archildata/api-types 0.0.89 → 0.0.91

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 +19 -5
  2. 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`. Mutually exclusive with `base_image`. */
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[];
@@ -3547,13 +3559,15 @@ export interface components {
3547
3559
  * minutes), `allowance_insufficient` (the session's vCPU-hours or
3548
3560
  * GiB-hours, allocation × timeout, exceed what is left of the month's
3549
3561
  * allowance; `data` carries `feature`, `limit`, `remaining`,
3550
- * `requested` and `nextResetAt`) or `allowance_exhausted` (an
3551
- * allowance is used up). A timeout the caller did not choose is
3562
+ * `requested` and `nextResetAt`), `allowance_exhausted` (an
3563
+ * allowance is used up) or `concurrent_sandbox_limit_reached` (the
3564
+ * account already has as many sandboxes pending or running as the
3565
+ * plan allows; paused and stopped sandboxes do not count, and
3566
+ * `data.limit` is the cap). A timeout the caller did not choose is
3552
3567
  * lowered to fit the plan rather than refused; a fork is judged as
3553
3568
  * one launch of the source's shape, and the fitted timeout applies to
3554
3569
  * the child and to the resumed source alike. `data.upgradeUrl` is the
3555
- * console's billing page, and `remaining` is never below zero. Paid
3556
- * plans are never refused.
3570
+ * console's billing page, and `remaining` is never below zero.
3557
3571
  */
3558
3572
  SandboxPlanLimit: {
3559
3573
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.89",
3
+ "version": "0.0.91",
4
4
  "description": "Public API types for Archil",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",