@archildata/api-types 0.0.100 → 0.0.101

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 +59 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -883,7 +883,9 @@ export interface paths {
883
883
  };
884
884
  /**
885
885
  * Get an exec's status and result
886
- * @description `wait` waits up to that many seconds for the exec to end.
886
+ * @description `wait` waits up to that many seconds for the exec to end. Needs the
887
+ * permissions that started the exec: `disk:exec:<id>` for each of its
888
+ * disks, or `workspace:exec` for one without a disk.
887
889
  */
888
890
  get: operations["getExec"];
889
891
  put?: never;
@@ -894,6 +896,27 @@ export interface paths {
894
896
  patch?: never;
895
897
  trace?: never;
896
898
  };
899
+ "/api/exec/{execId}/cancel": {
900
+ parameters: {
901
+ query?: never;
902
+ header?: never;
903
+ path?: never;
904
+ cookie?: never;
905
+ };
906
+ get?: never;
907
+ put?: never;
908
+ /**
909
+ * Cancel an exec
910
+ * @description Needs the permissions that started the exec: `disk:exec:<id>` for each
911
+ * of its disks, or `workspace:exec` for one without a disk.
912
+ */
913
+ post: operations["cancelExec"];
914
+ delete?: never;
915
+ options?: never;
916
+ head?: never;
917
+ patch?: never;
918
+ trace?: never;
919
+ };
897
920
  "/api/tokens": {
898
921
  parameters: {
899
922
  query?: never;
@@ -3397,7 +3420,7 @@ export interface components {
3397
3420
  ExecStatus: {
3398
3421
  execId: string;
3399
3422
  /**
3400
- * @description `completed` when the command exited, whatever its exit code; `failed` when it timed out or couldn't run.
3423
+ * @description `completed` when the command exited, whatever its exit code; `failed` when it timed out, was cancelled, or couldn't run.
3401
3424
  * @enum {string}
3402
3425
  */
3403
3426
  status: "running" | "stopping" | "completed" | "failed";
@@ -3427,7 +3450,7 @@ export interface components {
3427
3450
  * @description Map of relative path under `/mnt/archil` to the disk to mount
3428
3451
  * there. Relative paths must be non-empty, non-absolute, and contain
3429
3452
  * no `.` or `..` segments. Running without disks needs the
3430
- * `sandbox:manage:create` permission.
3453
+ * `workspace:exec` permission.
3431
3454
  *
3432
3455
  * Each value is either a plain disk ID string (mounts the disk's
3433
3456
  * root, read-write) or an object that additionally selects a
@@ -5725,6 +5748,39 @@ export interface operations {
5725
5748
  404: components["responses"]["NotFound"];
5726
5749
  };
5727
5750
  };
5751
+ cancelExec: {
5752
+ parameters: {
5753
+ query?: never;
5754
+ header?: never;
5755
+ path: {
5756
+ execId: string;
5757
+ };
5758
+ cookie?: never;
5759
+ };
5760
+ requestBody?: never;
5761
+ responses: {
5762
+ /** @description The exec's status after the cancel */
5763
+ 200: {
5764
+ headers: {
5765
+ [name: string]: unknown;
5766
+ };
5767
+ content: {
5768
+ "application/json": components["schemas"]["ApiResponse_ExecStatus"];
5769
+ };
5770
+ };
5771
+ 401: components["responses"]["Unauthorized"];
5772
+ /** @description Not allowed to access this exec */
5773
+ 403: {
5774
+ headers: {
5775
+ [name: string]: unknown;
5776
+ };
5777
+ content: {
5778
+ "application/json": components["schemas"]["ErrorResponse"];
5779
+ };
5780
+ };
5781
+ 404: components["responses"]["NotFound"];
5782
+ };
5783
+ };
5728
5784
  listApiTokens: {
5729
5785
  parameters: {
5730
5786
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.100",
3
+ "version": "0.0.101",
4
4
  "description": "Public API types for Archil",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",