@archildata/api-types 0.0.105 → 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.
Files changed (2) hide show
  1. package/index.d.ts +78 -6
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -639,12 +639,12 @@ export interface paths {
639
639
  };
640
640
  /**
641
641
  * Get IP allowlist
642
- * @description Returns the current IP allowlist for a disk.
642
+ * @description Returns the resolved IP allowlist for a disk. A branch's non-empty allowlist overrides the root disk's list. If the branch has no entries, this returns the root disk's list instead.
643
643
  */
644
644
  get: operations["getAllowedIPs"];
645
645
  /**
646
646
  * Set IP allowlist
647
- * @description Replaces the IP allowlist for a disk. When non-empty, only clients connecting from listed IPs or CIDR ranges can mount the disk. Pass an empty array to remove all restrictions. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
647
+ * @description Replaces the IP allowlist for a disk. When non-empty, only clients connecting from listed IPs or CIDR ranges can mount the disk. A non-empty branch allowlist overrides the root disk's list. Pass an empty array on a branch to remove its override and fall back to the root's list. Pass an empty array on a root disk to remove its restriction; branch overrides remain unchanged. The response returns the saved list, while GET returns the resolved list (including root fallback). Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
648
648
  */
649
649
  put: operations["setAllowedIPs"];
650
650
  post?: never;
@@ -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;
@@ -2775,7 +2801,7 @@ export interface components {
2775
2801
  /** @description Storage mount to attach. Omit for archil-managed storage. */
2776
2802
  mounts?: components["schemas"]["MountConfig"][];
2777
2803
  /**
2778
- * @description IP allowlist for mount access. When non-empty, only clients connecting from these IPs or CIDR ranges can mount the disk. An empty list (default) allows all IPs. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
2804
+ * @description IP allowlist for mount access. When non-empty, only clients connecting from these IPs or CIDR ranges can mount the disk. An empty list (default) allows all IPs on a root disk. Branches inherit the root's list unless they have a non-empty override. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
2779
2805
  * @example [
2780
2806
  * "203.0.113.0/24",
2781
2807
  * "198.51.100.42"
@@ -3119,7 +3145,7 @@ export interface components {
3119
3145
  connectedClients?: components["schemas"]["ConnectedClient"][];
3120
3146
  authorizedUsers?: components["schemas"]["AuthorizedUser"][];
3121
3147
  /**
3122
- * @description IP allowlist for mount access. Empty means all IPs are allowed. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
3148
+ * @description Resolved IP allowlist. A non-empty branch list overrides its root; an empty branch list falls back to the root's list. An empty resolved list allows all IPs. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
3123
3149
  * @example [
3124
3150
  * "203.0.113.0/24"
3125
3151
  * ]
@@ -3292,7 +3318,7 @@ export interface components {
3292
3318
  success: boolean;
3293
3319
  data: {
3294
3320
  /**
3295
- * @description Configured IP allowlist. Empty means all IPs are allowed. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
3321
+ * @description IP allowlist. GET returns the resolved list: a non-empty branch list overrides its root, while an empty branch list inherits the root's list. PUT returns the list saved on the requested disk; saving an empty branch list resumes root inheritance. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
3296
3322
  * @example [
3297
3323
  * "203.0.113.0/24",
3298
3324
  * "198.51.100.42"
@@ -5454,7 +5480,7 @@ export interface operations {
5454
5480
  content: {
5455
5481
  "application/json": {
5456
5482
  /**
5457
- * @description List of IPs or CIDR ranges. Empty array removes restrictions. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
5483
+ * @description This disk's own IPs or CIDR ranges. A non-empty branch list overrides its root. An empty branch list resumes inheritance from the root. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
5458
5484
  * @example [
5459
5485
  * "203.0.113.0/24",
5460
5486
  * "198.51.100.42"
@@ -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.105",
3
+ "version": "0.0.107",
4
4
  "description": "Public API types for Archil",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",