@archildata/api-types 0.0.76 → 0.0.77

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 +14 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -921,9 +921,12 @@ export interface paths {
921
921
  put?: never;
922
922
  /**
923
923
  * Create a sandbox process connection
924
- * @description Returns a short-lived WebSocket URL used by the sandbox process API.
925
- * The URL contains a signed token that expires at `expires_at`; an open
926
- * WebSocket can remain connected after the token expires.
924
+ * @description Returns a short-lived, single-use credential for one WebSocket to the
925
+ * sandbox process API. Connect to `endpoint`, offering the subprotocols
926
+ * `archil.connect.v1` and `archil.token.<token>`; the server selects
927
+ * `archil.connect.v1`. `url` carries the same token in its query string
928
+ * for older clients. The token opens one WebSocket before `expires_at`;
929
+ * an open WebSocket can remain connected after the token expires.
927
930
  */
928
931
  post: operations["createSandboxConnection"];
929
932
  delete?: never;
@@ -2161,8 +2164,15 @@ export interface components {
2161
2164
  nextCursor?: string;
2162
2165
  };
2163
2166
  SandboxConnection: {
2164
- /** Format: uri */
2167
+ /**
2168
+ * Format: uri
2169
+ * @description `endpoint` with the token in its query string. Prefer `endpoint` and `token`, which keep the token out of request-line logs.
2170
+ */
2165
2171
  url: string;
2172
+ /** Format: uri */
2173
+ endpoint: string;
2174
+ /** @description Send as the `Sec-WebSocket-Protocol` value `archil.token.<token>`, alongside `archil.connect.v1`. */
2175
+ token: string;
2166
2176
  /** Format: date-time */
2167
2177
  expires_at: string;
2168
2178
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",