@archildata/api-types 0.0.106 → 0.0.107
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 +72 -0
- 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;
|
|
@@ -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?: {
|