@archildata/api-types 0.0.106 → 0.0.108

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 +74 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -937,6 +937,32 @@ export interface paths {
937
937
  patch?: never;
938
938
  trace?: never;
939
939
  };
940
+ "/api/exec/stream": {
941
+ parameters: {
942
+ query?: never;
943
+ header?: never;
944
+ path?: never;
945
+ cookie?: never;
946
+ };
947
+ /**
948
+ * Stream commands over a WebSocket
949
+ * @description Upgrades to a WebSocket speaking the `archil.connect.v2` subprotocol,
950
+ * the process protocol sandboxes use. Each `exec` message opens a channel
951
+ * that runs one command in a fresh VM, with its stdin, stdout and stderr
952
+ * streamed as the command runs. A connection runs up to 32 execs at once.
953
+ * Each exec takes the same permissions as `POST /api/exec`:
954
+ * `disk:exec:<id>` for each of its disks, or `workspace:exec` for one
955
+ * without a disk.
956
+ */
957
+ get: operations["execStream"];
958
+ put?: never;
959
+ post?: never;
960
+ delete?: never;
961
+ options?: never;
962
+ head?: never;
963
+ patch?: never;
964
+ trace?: never;
965
+ };
940
966
  "/api/tokens": {
941
967
  parameters: {
942
968
  query?: never;
@@ -3099,9 +3125,9 @@ export interface components {
3099
3125
  sandboxDisk: boolean;
3100
3126
  /**
3101
3127
  * Format: date-time
3102
- * @description Last access timestamp
3128
+ * @description Latest recorded time a client mounted the disk or refreshed its mount. A mounted client refreshes every few minutes, so while the disk is mounted this is normally within about ten minutes of now, whether or not it is reading or writing; a recording can occasionally be skipped under load, so this is not guaranteed. Reads and writes do not change it. Null if no mount has been recorded.
3103
3129
  */
3104
- lastAccessed?: string;
3130
+ lastMountedAt?: string | null;
3105
3131
  /**
3106
3132
  * Format: int64
3107
3133
  * @description Active data size in bytes (data in high-speed cache)
@@ -5953,6 +5979,52 @@ export interface operations {
5953
5979
  404: components["responses"]["NotFound"];
5954
5980
  };
5955
5981
  };
5982
+ execStream: {
5983
+ parameters: {
5984
+ query?: never;
5985
+ header?: never;
5986
+ path?: never;
5987
+ cookie?: never;
5988
+ };
5989
+ requestBody?: never;
5990
+ responses: {
5991
+ /** @description Switched to the `archil.connect.v2` WebSocket subprotocol */
5992
+ 101: {
5993
+ headers: {
5994
+ [name: string]: unknown;
5995
+ };
5996
+ content?: never;
5997
+ };
5998
+ 401: components["responses"]["Unauthorized"];
5999
+ /** @description The caller is no longer a member of the organization (`not_organization_member`) */
6000
+ 403: {
6001
+ headers: {
6002
+ [name: string]: unknown;
6003
+ };
6004
+ content: {
6005
+ "application/json": components["schemas"]["ErrorResponse"];
6006
+ };
6007
+ };
6008
+ /** @description Exec is not enabled on this deployment */
6009
+ 501: {
6010
+ headers: {
6011
+ [name: string]: unknown;
6012
+ };
6013
+ content: {
6014
+ "application/json": components["schemas"]["ErrorResponse"];
6015
+ };
6016
+ };
6017
+ /** @description Organization membership could not be verified (`membership_check_unavailable`) */
6018
+ 503: {
6019
+ headers: {
6020
+ [name: string]: unknown;
6021
+ };
6022
+ content: {
6023
+ "application/json": components["schemas"]["ErrorResponse"];
6024
+ };
6025
+ };
6026
+ };
6027
+ };
5956
6028
  listApiTokens: {
5957
6029
  parameters: {
5958
6030
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.106",
3
+ "version": "0.0.108",
4
4
  "description": "Public API types for Archil",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",