@crossworks/client-types 0.232.69 → 0.232.73

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/package.json +1 -1
  2. package/src/index.ts +25 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/client-types",
3
- "version": "0.232.69",
3
+ "version": "0.232.73",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -75,6 +75,7 @@ export type ToolHandler =
75
75
  timeoutMs?: number;
76
76
  }
77
77
  | { kind: 'shell'; cmd: string }
78
+ | { kind: 'mcp'; group: string; toolName: string; vanishedAt?: string }
78
79
  | { kind: 'recipe'; steps: RecipeStep[]; output?: unknown };
79
80
 
80
81
  /** A tool as returned by `GET /api/tools`. */
@@ -121,6 +122,30 @@ export interface ToolGroupIntegrationDTO {
121
122
  docsUpdatedAt?: string;
122
123
  /** Slug of the usage skill that travels with this group's grant. */
123
124
  skillSlug?: string;
125
+ /** Set when the group is an MCP CONNECTOR — a mirror of an external MCP
126
+ * server's tools. `secretRef` is a `service/label` vault pointer; the
127
+ * sync-bookkeeping fields are written by the connector sync. */
128
+ mcp?: {
129
+ url: string;
130
+ secretRef?: string;
131
+ authHeader?: string;
132
+ authScheme?: string;
133
+ /** OAuth bookkeeping when the server uses the MCP auth flow. Tokens and
134
+ * the client registration are vault-sealed and never cross this wire. */
135
+ oauth?: {
136
+ enabled: true;
137
+ status: 'pending' | 'connected' | 'needs_reconnect';
138
+ clientId?: string;
139
+ pending?: { state: string; redirectUri: string; startedAt: string };
140
+ redirectUri?: string;
141
+ tokenExpiresAt?: string;
142
+ connectedAt?: string;
143
+ lastError?: string;
144
+ };
145
+ lastSyncAt?: string;
146
+ toolCount?: number;
147
+ serverInfo?: { name?: string; version?: string };
148
+ };
124
149
  }
125
150
 
126
151
  /** A tool group — a named bundle of tool slugs granted to agents wholesale. */