@crossworks/client-types 0.300.130 → 0.300.133
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/package.json +1 -1
- package/src/dto/workspaces.ts +20 -0
- package/src/index.ts +3 -0
package/package.json
CHANGED
package/src/dto/workspaces.ts
CHANGED
|
@@ -197,6 +197,26 @@ export type WorkspaceResourceAddBody = {
|
|
|
197
197
|
/** PATCH /api/workspaces/:id/resources/:kind/:id. */
|
|
198
198
|
export type WorkspaceResourcePatchBody = { write: boolean };
|
|
199
199
|
|
|
200
|
+
/** How a connector reaches its tools: an MCP server, or an HTTP API. */
|
|
201
|
+
export type WorkspaceConnectorKind = 'mcp' | 'api';
|
|
202
|
+
|
|
203
|
+
/** One connector a workspace may hold: exactly the tool groups the attach
|
|
204
|
+
* (POST /api/workspaces/:id/resources, kind 'connector') accepts, MCP and
|
|
205
|
+
* HTTP API alike. `slug` is the id to attach it by; `held`: the workspace
|
|
206
|
+
* holds it already. */
|
|
207
|
+
export type WorkspaceConnectorOption = {
|
|
208
|
+
slug: string;
|
|
209
|
+
name: string;
|
|
210
|
+
kind: WorkspaceConnectorKind;
|
|
211
|
+
held: boolean;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
/** GET /api/workspaces/:id/connector-options: the "add connector" list.
|
|
215
|
+
* The same gate as the attach: an Admin user with the connectors area (403
|
|
216
|
+
* `admin_only` otherwise; 404 for a workspace the caller may not see; 409
|
|
217
|
+
* `archived` for an archived one). Sorted by name. */
|
|
218
|
+
export type WorkspaceConnectorOptionsResponse = { connectors: WorkspaceConnectorOption[] };
|
|
219
|
+
|
|
200
220
|
/** What /api/shell adds for the signed-in login: its live workspaces (for
|
|
201
221
|
* the switcher) and its Admin areas ([] when it is not an Admin user). */
|
|
202
222
|
export type ShellWorkspace = WorkspaceLook & {
|
package/src/index.ts
CHANGED
|
@@ -202,6 +202,9 @@ export type {
|
|
|
202
202
|
WorkspaceArchivePreview,
|
|
203
203
|
WorkspaceArchiveResponse,
|
|
204
204
|
WorkspaceArea,
|
|
205
|
+
WorkspaceConnectorKind,
|
|
206
|
+
WorkspaceConnectorOption,
|
|
207
|
+
WorkspaceConnectorOptionsResponse,
|
|
205
208
|
WorkspaceCreateBody,
|
|
206
209
|
WorkspaceDetailResponse,
|
|
207
210
|
WorkspaceError,
|