@personaai/react 0.14.0 → 0.16.0

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/dist/index.d.cts CHANGED
@@ -170,7 +170,8 @@ interface PersonaFileItem {
170
170
  createdAt: string;
171
171
  }
172
172
  interface PersonaMemoryFile {
173
- scope?: "user" | "agent";
173
+ scope?: "user" | "agent" | "workspace";
174
+ /** Set when `scope` is `"agent"` or `"workspace"`. */
174
175
  agentId?: string;
175
176
  path: string;
176
177
  content: string;
@@ -178,7 +179,11 @@ interface PersonaMemoryFile {
178
179
  createdAt?: string;
179
180
  updatedAt?: string;
180
181
  }
181
- /** One agent's group of agent-scoped memory files, as returned by `GET /memory`. */
182
+ /**
183
+ * One agent's group of scoped memory files, as returned by `GET /memory` —
184
+ * used for both `agentMemories` (`scope: "agent"`) and `agentWorkspaces`
185
+ * (`scope: "workspace"`).
186
+ */
182
187
  interface PersonaMemoryAgentGroup {
183
188
  agentId: string;
184
189
  /** `null` if the agent no longer exists. */
@@ -188,6 +193,14 @@ interface PersonaMemoryAgentGroup {
188
193
  interface PersonaMemoryList {
189
194
  userFiles: PersonaMemoryFile[];
190
195
  agentMemories: PersonaMemoryAgentGroup[];
196
+ /**
197
+ * Files under an Agent's own `/workspace/` filesystem route — the SAME
198
+ * persistent store `write_file`/`read_file` tool calls under
199
+ * `/workspace/...` actually read and write. Scoped by Agent + Subject,
200
+ * shared across every Thread that Subject has with that Agent (not
201
+ * private to one conversation).
202
+ */
203
+ agentWorkspaces: PersonaMemoryAgentGroup[];
191
204
  }
192
205
  /**
193
206
  * AG-UI protocol events emitted during streaming — mirrors exactly what
@@ -1296,18 +1309,18 @@ declare function useMemory(autoFetch?: boolean): {
1296
1309
  refetch: () => Promise<PersonaMemoryList>;
1297
1310
  getFile: (params: {
1298
1311
  path: string;
1299
- scope?: "user" | "agent";
1312
+ scope?: "user" | "agent" | "workspace";
1300
1313
  agentId?: string;
1301
1314
  }) => Promise<PersonaMemoryFile>;
1302
1315
  writeFile: (params: {
1303
1316
  path: string;
1304
1317
  content: string;
1305
- scope?: "user" | "agent";
1318
+ scope?: "user" | "agent" | "workspace";
1306
1319
  agentId?: string;
1307
1320
  }) => Promise<PersonaMemoryFile>;
1308
1321
  deleteFile: (params: {
1309
1322
  path: string;
1310
- scope?: "user" | "agent";
1323
+ scope?: "user" | "agent" | "workspace";
1311
1324
  agentId?: string;
1312
1325
  }) => Promise<void>;
1313
1326
  };
@@ -1336,6 +1349,33 @@ declare function useThreads(autoFetch?: boolean): {
1336
1349
  getThread: (threadId: string) => Promise<PersonaThread>;
1337
1350
  };
1338
1351
 
1352
+ /**
1353
+ * CRUD over one Agent's `/workspace/` files — the SAME persistent store a
1354
+ * `write_file`/`read_file` tool call under `/workspace/...` actually reads
1355
+ * and writes (deepagents routes that path prefix to a Mongo-backed memory
1356
+ * store, NOT the LangGraph checkpoint's `files` state channel — a Thread's
1357
+ * live/checkpointed state is a different, much narrower thing that rarely
1358
+ * has anything in it, since agents are instructed to write all real output
1359
+ * under `/workspace/outputs/`). Scoped by Agent + Subject: shared across
1360
+ * every Thread that Subject has with that Agent, not private to one
1361
+ * conversation — the same model the platform's own Files panel uses.
1362
+ *
1363
+ * Thin wrapper over `client.memory` (`scope: "workspace"`) — no parallel
1364
+ * type vocabulary, `PersonaWorkspaceFile` here is just `PersonaMemoryFile`
1365
+ * reshaped to the `{content, size, createdAt, modifiedAt}` display shape
1366
+ * `useChat()`'s own (read-only, live-run) `files` snapshot already uses.
1367
+ */
1368
+ declare function useWorkspaceFiles(agentId: string | undefined, autoFetch?: boolean): {
1369
+ files: Record<string, PersonaWorkspaceFile>;
1370
+ isLoading: boolean;
1371
+ isSaving: boolean;
1372
+ error: Error | null;
1373
+ refetch: () => Promise<Record<string, PersonaWorkspaceFile>>;
1374
+ getFile: (path: string) => Promise<PersonaWorkspaceFile>;
1375
+ writeFile: (path: string, content: string) => Promise<PersonaWorkspaceFile>;
1376
+ deleteFile: (path: string) => Promise<void>;
1377
+ };
1378
+
1339
1379
  /**
1340
1380
  * Drives a real-time voice call with an Agent (powered by Gemini Live).
1341
1381
  *
@@ -1731,4 +1771,4 @@ declare function openSSEStream(opts: OpenSSEOptions): Promise<SSEStream>;
1731
1771
 
1732
1772
  declare const VERSION = "0.10.0";
1733
1773
 
1734
- export { ARCHITECT_AGENT_ID, type CreatePersonaAgentInput, type CreatePersonaKnowledgeBaseInput, type CreatePersonaMcpInput, type CreatePersonaRcpSourceInput, type CreatePersonaSkillInput, type CreatePersonaWorkflowInput, type OpenSSEOptions, type PersonaAgent, type PersonaAgentCategory, type PersonaAgentSnapshot, type PersonaAgentSocialLinks, type PersonaAgentVisibility, type PersonaBulkDeleteResult, type PersonaClarificationQuestion, type PersonaDeleteDocumentResult, type PersonaFileItem, type PersonaHealthInfo, type PersonaHitlActionRequest, type PersonaInterrupt, type PersonaKnowledgeBase, type PersonaKnowledgeBaseUsage, type PersonaKnowledgeDocument, type PersonaKnowledgeSearchResult, type PersonaMcp, type PersonaMcpAuthMode, type PersonaMcpAuthType, type PersonaMcpConnection, type PersonaMcpOAuthConfig, type PersonaMcpOAuthInput, type PersonaMcpResourceSummary, type PersonaMcpResourceTemplate, type PersonaMcpTestConnectionResult, type PersonaMcpTool, type PersonaMcpTransport, type PersonaMemoryAgentGroup, type PersonaMemoryFile, type PersonaMemoryList, type PersonaMessage, type PersonaNodeOnErrorAction, type PersonaNodeRetryPolicy, type PersonaNodeRun, type PersonaNodeRunState, type PersonaNodeRunStatus, type PersonaPagination, type PersonaPresentedFile, PersonaProvider, type PersonaProviderProps, type PersonaRcpParamContextMapEntry, type PersonaRcpSource, type PersonaRcpSourceTestResult, type PersonaRcpSourceToolParamSummary, type PersonaRcpSourceToolSummary, type PersonaResourceUsage, type PersonaResumeValue, type PersonaRole, type PersonaSandboxCommand, type PersonaSkill, type PersonaSkillFile, type PersonaSkillUsage, type PersonaStreamingEvent, type PersonaSubagentActivityEntry, type PersonaThread, type PersonaTodo, type PersonaToolCall, type PersonaUploadDocumentsResult, type PersonaVoiceEndReason, type PersonaVoiceState, type PersonaVoiceToolCall, type PersonaVoiceTranscriptLine, type PersonaWorkflow, type PersonaWorkflowDraft, type PersonaWorkflowEdge, type PersonaWorkflowNode, type PersonaWorkflowNodeData, type PersonaWorkflowNodeType, type PersonaWorkflowOwnerType, type PersonaWorkflowRun, type PersonaWorkflowRunStatus, type PersonaWorkflowTrigger, type PersonaWorkflowTriggerType, type PersonaWorkflowUsage, type PersonaWorkflowVersion, type PersonaWorkflowVisibility, type PersonaWorkspaceFile, type SSEReader, type SSEStream, type SendArchitectMessageOverride, type SendMessageOverride, type UpdatePersonaAgentInput, type UpdatePersonaKnowledgeBaseInput, type UpdatePersonaMcpInput, type UpdatePersonaRcpSourceInput, type UpdatePersonaSkillInput, type UpdatePersonaWorkflowInput, type UploadKnowledgeDocumentInput, type UseAgentsOptions, type UseArchitectChatOptions, type UseChatOptions, type UseKnowledgeBasesOptions, type UseMcpAdminOptions, type UseMcpConnectionsOptions, type UseMcpOptions, type UseRcpSourcesOptions, type UseSkillsOptions, type UseVoiceOptions, type UseVoiceResult, type UseWorkflowOptions, type UseWorkflowRunsOptions, type UseWorkflowStreamOptions, type UseWorkflowStreamResult, type UseWorkflowsOptions, VERSION, type WorkflowsPagination, openSSEStream, supportsStreamingFetch, useAgents, useArchitectChat, useChat, useConnection, useFiles, useKnowledgeBases, useMcp, useMcpAdmin, useMcpConnections, useMemory, usePersonaContext, useRcpSources, useSkills, useThreads, useVoice, useWorkflow, useWorkflowRuns, useWorkflowStream, useWorkflows };
1774
+ export { ARCHITECT_AGENT_ID, type CreatePersonaAgentInput, type CreatePersonaKnowledgeBaseInput, type CreatePersonaMcpInput, type CreatePersonaRcpSourceInput, type CreatePersonaSkillInput, type CreatePersonaWorkflowInput, type OpenSSEOptions, type PersonaAgent, type PersonaAgentCategory, type PersonaAgentSnapshot, type PersonaAgentSocialLinks, type PersonaAgentVisibility, type PersonaBulkDeleteResult, type PersonaClarificationQuestion, type PersonaDeleteDocumentResult, type PersonaFileItem, type PersonaHealthInfo, type PersonaHitlActionRequest, type PersonaInterrupt, type PersonaKnowledgeBase, type PersonaKnowledgeBaseUsage, type PersonaKnowledgeDocument, type PersonaKnowledgeSearchResult, type PersonaMcp, type PersonaMcpAuthMode, type PersonaMcpAuthType, type PersonaMcpConnection, type PersonaMcpOAuthConfig, type PersonaMcpOAuthInput, type PersonaMcpResourceSummary, type PersonaMcpResourceTemplate, type PersonaMcpTestConnectionResult, type PersonaMcpTool, type PersonaMcpTransport, type PersonaMemoryAgentGroup, type PersonaMemoryFile, type PersonaMemoryList, type PersonaMessage, type PersonaNodeOnErrorAction, type PersonaNodeRetryPolicy, type PersonaNodeRun, type PersonaNodeRunState, type PersonaNodeRunStatus, type PersonaPagination, type PersonaPresentedFile, PersonaProvider, type PersonaProviderProps, type PersonaRcpParamContextMapEntry, type PersonaRcpSource, type PersonaRcpSourceTestResult, type PersonaRcpSourceToolParamSummary, type PersonaRcpSourceToolSummary, type PersonaResourceUsage, type PersonaResumeValue, type PersonaRole, type PersonaSandboxCommand, type PersonaSkill, type PersonaSkillFile, type PersonaSkillUsage, type PersonaStreamingEvent, type PersonaSubagentActivityEntry, type PersonaThread, type PersonaTodo, type PersonaToolCall, type PersonaUploadDocumentsResult, type PersonaVoiceEndReason, type PersonaVoiceState, type PersonaVoiceToolCall, type PersonaVoiceTranscriptLine, type PersonaWorkflow, type PersonaWorkflowDraft, type PersonaWorkflowEdge, type PersonaWorkflowNode, type PersonaWorkflowNodeData, type PersonaWorkflowNodeType, type PersonaWorkflowOwnerType, type PersonaWorkflowRun, type PersonaWorkflowRunStatus, type PersonaWorkflowTrigger, type PersonaWorkflowTriggerType, type PersonaWorkflowUsage, type PersonaWorkflowVersion, type PersonaWorkflowVisibility, type PersonaWorkspaceFile, type SSEReader, type SSEStream, type SendArchitectMessageOverride, type SendMessageOverride, type UpdatePersonaAgentInput, type UpdatePersonaKnowledgeBaseInput, type UpdatePersonaMcpInput, type UpdatePersonaRcpSourceInput, type UpdatePersonaSkillInput, type UpdatePersonaWorkflowInput, type UploadKnowledgeDocumentInput, type UseAgentsOptions, type UseArchitectChatOptions, type UseChatOptions, type UseKnowledgeBasesOptions, type UseMcpAdminOptions, type UseMcpConnectionsOptions, type UseMcpOptions, type UseRcpSourcesOptions, type UseSkillsOptions, type UseVoiceOptions, type UseVoiceResult, type UseWorkflowOptions, type UseWorkflowRunsOptions, type UseWorkflowStreamOptions, type UseWorkflowStreamResult, type UseWorkflowsOptions, VERSION, type WorkflowsPagination, openSSEStream, supportsStreamingFetch, useAgents, useArchitectChat, useChat, useConnection, useFiles, useKnowledgeBases, useMcp, useMcpAdmin, useMcpConnections, useMemory, usePersonaContext, useRcpSources, useSkills, useThreads, useVoice, useWorkflow, useWorkflowRuns, useWorkflowStream, useWorkflows, useWorkspaceFiles };
package/dist/index.d.ts CHANGED
@@ -170,7 +170,8 @@ interface PersonaFileItem {
170
170
  createdAt: string;
171
171
  }
172
172
  interface PersonaMemoryFile {
173
- scope?: "user" | "agent";
173
+ scope?: "user" | "agent" | "workspace";
174
+ /** Set when `scope` is `"agent"` or `"workspace"`. */
174
175
  agentId?: string;
175
176
  path: string;
176
177
  content: string;
@@ -178,7 +179,11 @@ interface PersonaMemoryFile {
178
179
  createdAt?: string;
179
180
  updatedAt?: string;
180
181
  }
181
- /** One agent's group of agent-scoped memory files, as returned by `GET /memory`. */
182
+ /**
183
+ * One agent's group of scoped memory files, as returned by `GET /memory` —
184
+ * used for both `agentMemories` (`scope: "agent"`) and `agentWorkspaces`
185
+ * (`scope: "workspace"`).
186
+ */
182
187
  interface PersonaMemoryAgentGroup {
183
188
  agentId: string;
184
189
  /** `null` if the agent no longer exists. */
@@ -188,6 +193,14 @@ interface PersonaMemoryAgentGroup {
188
193
  interface PersonaMemoryList {
189
194
  userFiles: PersonaMemoryFile[];
190
195
  agentMemories: PersonaMemoryAgentGroup[];
196
+ /**
197
+ * Files under an Agent's own `/workspace/` filesystem route — the SAME
198
+ * persistent store `write_file`/`read_file` tool calls under
199
+ * `/workspace/...` actually read and write. Scoped by Agent + Subject,
200
+ * shared across every Thread that Subject has with that Agent (not
201
+ * private to one conversation).
202
+ */
203
+ agentWorkspaces: PersonaMemoryAgentGroup[];
191
204
  }
192
205
  /**
193
206
  * AG-UI protocol events emitted during streaming — mirrors exactly what
@@ -1296,18 +1309,18 @@ declare function useMemory(autoFetch?: boolean): {
1296
1309
  refetch: () => Promise<PersonaMemoryList>;
1297
1310
  getFile: (params: {
1298
1311
  path: string;
1299
- scope?: "user" | "agent";
1312
+ scope?: "user" | "agent" | "workspace";
1300
1313
  agentId?: string;
1301
1314
  }) => Promise<PersonaMemoryFile>;
1302
1315
  writeFile: (params: {
1303
1316
  path: string;
1304
1317
  content: string;
1305
- scope?: "user" | "agent";
1318
+ scope?: "user" | "agent" | "workspace";
1306
1319
  agentId?: string;
1307
1320
  }) => Promise<PersonaMemoryFile>;
1308
1321
  deleteFile: (params: {
1309
1322
  path: string;
1310
- scope?: "user" | "agent";
1323
+ scope?: "user" | "agent" | "workspace";
1311
1324
  agentId?: string;
1312
1325
  }) => Promise<void>;
1313
1326
  };
@@ -1336,6 +1349,33 @@ declare function useThreads(autoFetch?: boolean): {
1336
1349
  getThread: (threadId: string) => Promise<PersonaThread>;
1337
1350
  };
1338
1351
 
1352
+ /**
1353
+ * CRUD over one Agent's `/workspace/` files — the SAME persistent store a
1354
+ * `write_file`/`read_file` tool call under `/workspace/...` actually reads
1355
+ * and writes (deepagents routes that path prefix to a Mongo-backed memory
1356
+ * store, NOT the LangGraph checkpoint's `files` state channel — a Thread's
1357
+ * live/checkpointed state is a different, much narrower thing that rarely
1358
+ * has anything in it, since agents are instructed to write all real output
1359
+ * under `/workspace/outputs/`). Scoped by Agent + Subject: shared across
1360
+ * every Thread that Subject has with that Agent, not private to one
1361
+ * conversation — the same model the platform's own Files panel uses.
1362
+ *
1363
+ * Thin wrapper over `client.memory` (`scope: "workspace"`) — no parallel
1364
+ * type vocabulary, `PersonaWorkspaceFile` here is just `PersonaMemoryFile`
1365
+ * reshaped to the `{content, size, createdAt, modifiedAt}` display shape
1366
+ * `useChat()`'s own (read-only, live-run) `files` snapshot already uses.
1367
+ */
1368
+ declare function useWorkspaceFiles(agentId: string | undefined, autoFetch?: boolean): {
1369
+ files: Record<string, PersonaWorkspaceFile>;
1370
+ isLoading: boolean;
1371
+ isSaving: boolean;
1372
+ error: Error | null;
1373
+ refetch: () => Promise<Record<string, PersonaWorkspaceFile>>;
1374
+ getFile: (path: string) => Promise<PersonaWorkspaceFile>;
1375
+ writeFile: (path: string, content: string) => Promise<PersonaWorkspaceFile>;
1376
+ deleteFile: (path: string) => Promise<void>;
1377
+ };
1378
+
1339
1379
  /**
1340
1380
  * Drives a real-time voice call with an Agent (powered by Gemini Live).
1341
1381
  *
@@ -1731,4 +1771,4 @@ declare function openSSEStream(opts: OpenSSEOptions): Promise<SSEStream>;
1731
1771
 
1732
1772
  declare const VERSION = "0.10.0";
1733
1773
 
1734
- export { ARCHITECT_AGENT_ID, type CreatePersonaAgentInput, type CreatePersonaKnowledgeBaseInput, type CreatePersonaMcpInput, type CreatePersonaRcpSourceInput, type CreatePersonaSkillInput, type CreatePersonaWorkflowInput, type OpenSSEOptions, type PersonaAgent, type PersonaAgentCategory, type PersonaAgentSnapshot, type PersonaAgentSocialLinks, type PersonaAgentVisibility, type PersonaBulkDeleteResult, type PersonaClarificationQuestion, type PersonaDeleteDocumentResult, type PersonaFileItem, type PersonaHealthInfo, type PersonaHitlActionRequest, type PersonaInterrupt, type PersonaKnowledgeBase, type PersonaKnowledgeBaseUsage, type PersonaKnowledgeDocument, type PersonaKnowledgeSearchResult, type PersonaMcp, type PersonaMcpAuthMode, type PersonaMcpAuthType, type PersonaMcpConnection, type PersonaMcpOAuthConfig, type PersonaMcpOAuthInput, type PersonaMcpResourceSummary, type PersonaMcpResourceTemplate, type PersonaMcpTestConnectionResult, type PersonaMcpTool, type PersonaMcpTransport, type PersonaMemoryAgentGroup, type PersonaMemoryFile, type PersonaMemoryList, type PersonaMessage, type PersonaNodeOnErrorAction, type PersonaNodeRetryPolicy, type PersonaNodeRun, type PersonaNodeRunState, type PersonaNodeRunStatus, type PersonaPagination, type PersonaPresentedFile, PersonaProvider, type PersonaProviderProps, type PersonaRcpParamContextMapEntry, type PersonaRcpSource, type PersonaRcpSourceTestResult, type PersonaRcpSourceToolParamSummary, type PersonaRcpSourceToolSummary, type PersonaResourceUsage, type PersonaResumeValue, type PersonaRole, type PersonaSandboxCommand, type PersonaSkill, type PersonaSkillFile, type PersonaSkillUsage, type PersonaStreamingEvent, type PersonaSubagentActivityEntry, type PersonaThread, type PersonaTodo, type PersonaToolCall, type PersonaUploadDocumentsResult, type PersonaVoiceEndReason, type PersonaVoiceState, type PersonaVoiceToolCall, type PersonaVoiceTranscriptLine, type PersonaWorkflow, type PersonaWorkflowDraft, type PersonaWorkflowEdge, type PersonaWorkflowNode, type PersonaWorkflowNodeData, type PersonaWorkflowNodeType, type PersonaWorkflowOwnerType, type PersonaWorkflowRun, type PersonaWorkflowRunStatus, type PersonaWorkflowTrigger, type PersonaWorkflowTriggerType, type PersonaWorkflowUsage, type PersonaWorkflowVersion, type PersonaWorkflowVisibility, type PersonaWorkspaceFile, type SSEReader, type SSEStream, type SendArchitectMessageOverride, type SendMessageOverride, type UpdatePersonaAgentInput, type UpdatePersonaKnowledgeBaseInput, type UpdatePersonaMcpInput, type UpdatePersonaRcpSourceInput, type UpdatePersonaSkillInput, type UpdatePersonaWorkflowInput, type UploadKnowledgeDocumentInput, type UseAgentsOptions, type UseArchitectChatOptions, type UseChatOptions, type UseKnowledgeBasesOptions, type UseMcpAdminOptions, type UseMcpConnectionsOptions, type UseMcpOptions, type UseRcpSourcesOptions, type UseSkillsOptions, type UseVoiceOptions, type UseVoiceResult, type UseWorkflowOptions, type UseWorkflowRunsOptions, type UseWorkflowStreamOptions, type UseWorkflowStreamResult, type UseWorkflowsOptions, VERSION, type WorkflowsPagination, openSSEStream, supportsStreamingFetch, useAgents, useArchitectChat, useChat, useConnection, useFiles, useKnowledgeBases, useMcp, useMcpAdmin, useMcpConnections, useMemory, usePersonaContext, useRcpSources, useSkills, useThreads, useVoice, useWorkflow, useWorkflowRuns, useWorkflowStream, useWorkflows };
1774
+ export { ARCHITECT_AGENT_ID, type CreatePersonaAgentInput, type CreatePersonaKnowledgeBaseInput, type CreatePersonaMcpInput, type CreatePersonaRcpSourceInput, type CreatePersonaSkillInput, type CreatePersonaWorkflowInput, type OpenSSEOptions, type PersonaAgent, type PersonaAgentCategory, type PersonaAgentSnapshot, type PersonaAgentSocialLinks, type PersonaAgentVisibility, type PersonaBulkDeleteResult, type PersonaClarificationQuestion, type PersonaDeleteDocumentResult, type PersonaFileItem, type PersonaHealthInfo, type PersonaHitlActionRequest, type PersonaInterrupt, type PersonaKnowledgeBase, type PersonaKnowledgeBaseUsage, type PersonaKnowledgeDocument, type PersonaKnowledgeSearchResult, type PersonaMcp, type PersonaMcpAuthMode, type PersonaMcpAuthType, type PersonaMcpConnection, type PersonaMcpOAuthConfig, type PersonaMcpOAuthInput, type PersonaMcpResourceSummary, type PersonaMcpResourceTemplate, type PersonaMcpTestConnectionResult, type PersonaMcpTool, type PersonaMcpTransport, type PersonaMemoryAgentGroup, type PersonaMemoryFile, type PersonaMemoryList, type PersonaMessage, type PersonaNodeOnErrorAction, type PersonaNodeRetryPolicy, type PersonaNodeRun, type PersonaNodeRunState, type PersonaNodeRunStatus, type PersonaPagination, type PersonaPresentedFile, PersonaProvider, type PersonaProviderProps, type PersonaRcpParamContextMapEntry, type PersonaRcpSource, type PersonaRcpSourceTestResult, type PersonaRcpSourceToolParamSummary, type PersonaRcpSourceToolSummary, type PersonaResourceUsage, type PersonaResumeValue, type PersonaRole, type PersonaSandboxCommand, type PersonaSkill, type PersonaSkillFile, type PersonaSkillUsage, type PersonaStreamingEvent, type PersonaSubagentActivityEntry, type PersonaThread, type PersonaTodo, type PersonaToolCall, type PersonaUploadDocumentsResult, type PersonaVoiceEndReason, type PersonaVoiceState, type PersonaVoiceToolCall, type PersonaVoiceTranscriptLine, type PersonaWorkflow, type PersonaWorkflowDraft, type PersonaWorkflowEdge, type PersonaWorkflowNode, type PersonaWorkflowNodeData, type PersonaWorkflowNodeType, type PersonaWorkflowOwnerType, type PersonaWorkflowRun, type PersonaWorkflowRunStatus, type PersonaWorkflowTrigger, type PersonaWorkflowTriggerType, type PersonaWorkflowUsage, type PersonaWorkflowVersion, type PersonaWorkflowVisibility, type PersonaWorkspaceFile, type SSEReader, type SSEStream, type SendArchitectMessageOverride, type SendMessageOverride, type UpdatePersonaAgentInput, type UpdatePersonaKnowledgeBaseInput, type UpdatePersonaMcpInput, type UpdatePersonaRcpSourceInput, type UpdatePersonaSkillInput, type UpdatePersonaWorkflowInput, type UploadKnowledgeDocumentInput, type UseAgentsOptions, type UseArchitectChatOptions, type UseChatOptions, type UseKnowledgeBasesOptions, type UseMcpAdminOptions, type UseMcpConnectionsOptions, type UseMcpOptions, type UseRcpSourcesOptions, type UseSkillsOptions, type UseVoiceOptions, type UseVoiceResult, type UseWorkflowOptions, type UseWorkflowRunsOptions, type UseWorkflowStreamOptions, type UseWorkflowStreamResult, type UseWorkflowsOptions, VERSION, type WorkflowsPagination, openSSEStream, supportsStreamingFetch, useAgents, useArchitectChat, useChat, useConnection, useFiles, useKnowledgeBases, useMcp, useMcpAdmin, useMcpConnections, useMemory, usePersonaContext, useRcpSources, useSkills, useThreads, useVoice, useWorkflow, useWorkflowRuns, useWorkflowStream, useWorkflows, useWorkspaceFiles };