@personaai/react 0.17.1 → 0.18.1

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
@@ -1208,6 +1208,51 @@ interface UseMcpAdminOptions {
1208
1208
  /** Free-text match against name/description. */
1209
1209
  search?: string;
1210
1210
  }
1211
+ /** `sms`, or `whatsapp` (also inferred from a `whatsapp:` prefix on `to`). */
1212
+ type PersonaMessageChannel = "sms" | "whatsapp";
1213
+ interface SendPersonaMessageInput {
1214
+ /** Recipient's E.164 number, e.g. `"+919876543210"`. */
1215
+ to: string;
1216
+ channel?: PersonaMessageChannel;
1217
+ /** Required unless {@link contentSid} supplies an approved WhatsApp template. */
1218
+ body?: string;
1219
+ mediaUrl?: string | string[];
1220
+ /** Approved WhatsApp template SID — required outside the 24-hour session window. */
1221
+ contentSid?: string;
1222
+ contentVariables?: Record<string, string> | string;
1223
+ }
1224
+ interface SendPersonaAgentMessageInput {
1225
+ agentId: string;
1226
+ /** Recipient's E.164 number — the same conversation is shared with SMS/WhatsApp/voice. */
1227
+ to: string;
1228
+ /** What the Agent should say (or act on) in its reply. */
1229
+ prompt: string;
1230
+ channel?: PersonaMessageChannel;
1231
+ /** Sender display name for channels that support one. */
1232
+ displayName?: string;
1233
+ }
1234
+ interface PersonaMessageDelivery {
1235
+ channel: PersonaMessageChannel;
1236
+ to: string;
1237
+ from: string | null;
1238
+ /** One Twilio SID per delivered part (long bodies are split). */
1239
+ messageSids: string[];
1240
+ status: string | null;
1241
+ parts: number;
1242
+ }
1243
+ interface PersonaAgentMessageDelivery extends PersonaMessageDelivery {
1244
+ agentId: string;
1245
+ }
1246
+ interface UseMessagesResult {
1247
+ /** True while either send is in flight. */
1248
+ isSending: boolean;
1249
+ /** The last failure, if any — the same error is also thrown from the call that failed. */
1250
+ error: Error | null;
1251
+ /** The most recent successful send, whichever method produced it. */
1252
+ lastDelivery: PersonaMessageDelivery | PersonaAgentMessageDelivery | null;
1253
+ send: (input: SendPersonaMessageInput) => Promise<PersonaMessageDelivery>;
1254
+ sendFromAgent: (input: SendPersonaAgentMessageInput) => Promise<PersonaAgentMessageDelivery>;
1255
+ }
1211
1256
 
1212
1257
  interface PersonaContextValue {
1213
1258
  baseUrl: string;
@@ -1216,6 +1261,16 @@ interface PersonaContextValue {
1216
1261
  fetchWithAuth: (path: string, init?: RequestInit) => Promise<Response>;
1217
1262
  logger: Logger;
1218
1263
  }
1264
+ /** Structured, trackable details of a non-ok API response. */
1265
+ interface PersonaHttpFailureInfo {
1266
+ status: number;
1267
+ code?: string;
1268
+ message?: string;
1269
+ }
1270
+ /** A Response whose error body has been parsed and attached by fetchWithAuth. */
1271
+ interface PersonaFailureResponse extends Response {
1272
+ personaError?: PersonaHttpFailureInfo;
1273
+ }
1219
1274
  declare function PersonaProvider({ baseUrl, getAuthToken, defaultAgentId, logLevel, logger: loggerProp, children, }: PersonaProviderProps): react__default.JSX.Element;
1220
1275
  declare function usePersonaContext(): PersonaContextValue;
1221
1276
 
@@ -1396,6 +1451,26 @@ declare function useWorkspaceFiles(agentId: string | undefined, autoFetch?: bool
1396
1451
  */
1397
1452
  declare function useVoice(options?: UseVoiceOptions): UseVoiceResult;
1398
1453
 
1454
+ /**
1455
+ * Outbound SMS/WhatsApp — `POST /messages` and `POST /messages/agent` on your
1456
+ * own backend (`createRuntime` or a framework adapter on top of it). Both
1457
+ * sends go through `fetchWithAuth`, exactly like every other hook here; the
1458
+ * Project credential never reaches the browser.
1459
+ *
1460
+ * Requires the host runtime to opt in with `capabilities: { messages: true }`
1461
+ * — unlike `chat`/`voice`, messaging isn't end-user-scoped server-side (`to`
1462
+ * is any E.164 number and each send spends the Project's Twilio balance), so
1463
+ * it's off by default and both routes 404 until enabled. Enabling it also
1464
+ * means every caller your `resolveUser` accepts on that mount can text
1465
+ * arbitrary numbers through it — gate it accordingly.
1466
+ *
1467
+ * Conversations are keyed by phone number, so an SMS, a WhatsApp message, and
1468
+ * a voice call with the same (Project, Agent, number) share one thread:
1469
+ * `sendFromAgent()` continues whatever conversation is already in progress
1470
+ * there rather than starting fresh.
1471
+ */
1472
+ declare function useMessages(): UseMessagesResult;
1473
+
1399
1474
  declare function useFiles(autoFetch?: boolean): {
1400
1475
  files: PersonaFileItem[];
1401
1476
  isLoading: boolean;
@@ -1770,6 +1845,6 @@ declare function supportsStreamingFetch(): boolean;
1770
1845
  */
1771
1846
  declare function openSSEStream(opts: OpenSSEOptions): Promise<SSEStream>;
1772
1847
 
1773
- declare const VERSION = "0.17.0";
1848
+ declare const VERSION = "0.18.1";
1774
1849
 
1775
- 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 };
1850
+ export { ARCHITECT_AGENT_ID, type CreatePersonaAgentInput, type CreatePersonaKnowledgeBaseInput, type CreatePersonaMcpInput, type CreatePersonaRcpSourceInput, type CreatePersonaSkillInput, type CreatePersonaWorkflowInput, type OpenSSEOptions, type PersonaAgent, type PersonaAgentCategory, type PersonaAgentMessageDelivery, type PersonaAgentSnapshot, type PersonaAgentSocialLinks, type PersonaAgentVisibility, type PersonaBulkDeleteResult, type PersonaClarificationQuestion, type PersonaDeleteDocumentResult, type PersonaFailureResponse, type PersonaFileItem, type PersonaHealthInfo, type PersonaHitlActionRequest, type PersonaHttpFailureInfo, 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 PersonaMessageChannel, type PersonaMessageDelivery, 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 SendPersonaAgentMessageInput, type SendPersonaMessageInput, 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 UseMessagesResult, 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, useMessages, usePersonaContext, useRcpSources, useSkills, useThreads, useVoice, useWorkflow, useWorkflowRuns, useWorkflowStream, useWorkflows, useWorkspaceFiles };
package/dist/index.d.ts CHANGED
@@ -1208,6 +1208,51 @@ interface UseMcpAdminOptions {
1208
1208
  /** Free-text match against name/description. */
1209
1209
  search?: string;
1210
1210
  }
1211
+ /** `sms`, or `whatsapp` (also inferred from a `whatsapp:` prefix on `to`). */
1212
+ type PersonaMessageChannel = "sms" | "whatsapp";
1213
+ interface SendPersonaMessageInput {
1214
+ /** Recipient's E.164 number, e.g. `"+919876543210"`. */
1215
+ to: string;
1216
+ channel?: PersonaMessageChannel;
1217
+ /** Required unless {@link contentSid} supplies an approved WhatsApp template. */
1218
+ body?: string;
1219
+ mediaUrl?: string | string[];
1220
+ /** Approved WhatsApp template SID — required outside the 24-hour session window. */
1221
+ contentSid?: string;
1222
+ contentVariables?: Record<string, string> | string;
1223
+ }
1224
+ interface SendPersonaAgentMessageInput {
1225
+ agentId: string;
1226
+ /** Recipient's E.164 number — the same conversation is shared with SMS/WhatsApp/voice. */
1227
+ to: string;
1228
+ /** What the Agent should say (or act on) in its reply. */
1229
+ prompt: string;
1230
+ channel?: PersonaMessageChannel;
1231
+ /** Sender display name for channels that support one. */
1232
+ displayName?: string;
1233
+ }
1234
+ interface PersonaMessageDelivery {
1235
+ channel: PersonaMessageChannel;
1236
+ to: string;
1237
+ from: string | null;
1238
+ /** One Twilio SID per delivered part (long bodies are split). */
1239
+ messageSids: string[];
1240
+ status: string | null;
1241
+ parts: number;
1242
+ }
1243
+ interface PersonaAgentMessageDelivery extends PersonaMessageDelivery {
1244
+ agentId: string;
1245
+ }
1246
+ interface UseMessagesResult {
1247
+ /** True while either send is in flight. */
1248
+ isSending: boolean;
1249
+ /** The last failure, if any — the same error is also thrown from the call that failed. */
1250
+ error: Error | null;
1251
+ /** The most recent successful send, whichever method produced it. */
1252
+ lastDelivery: PersonaMessageDelivery | PersonaAgentMessageDelivery | null;
1253
+ send: (input: SendPersonaMessageInput) => Promise<PersonaMessageDelivery>;
1254
+ sendFromAgent: (input: SendPersonaAgentMessageInput) => Promise<PersonaAgentMessageDelivery>;
1255
+ }
1211
1256
 
1212
1257
  interface PersonaContextValue {
1213
1258
  baseUrl: string;
@@ -1216,6 +1261,16 @@ interface PersonaContextValue {
1216
1261
  fetchWithAuth: (path: string, init?: RequestInit) => Promise<Response>;
1217
1262
  logger: Logger;
1218
1263
  }
1264
+ /** Structured, trackable details of a non-ok API response. */
1265
+ interface PersonaHttpFailureInfo {
1266
+ status: number;
1267
+ code?: string;
1268
+ message?: string;
1269
+ }
1270
+ /** A Response whose error body has been parsed and attached by fetchWithAuth. */
1271
+ interface PersonaFailureResponse extends Response {
1272
+ personaError?: PersonaHttpFailureInfo;
1273
+ }
1219
1274
  declare function PersonaProvider({ baseUrl, getAuthToken, defaultAgentId, logLevel, logger: loggerProp, children, }: PersonaProviderProps): react__default.JSX.Element;
1220
1275
  declare function usePersonaContext(): PersonaContextValue;
1221
1276
 
@@ -1396,6 +1451,26 @@ declare function useWorkspaceFiles(agentId: string | undefined, autoFetch?: bool
1396
1451
  */
1397
1452
  declare function useVoice(options?: UseVoiceOptions): UseVoiceResult;
1398
1453
 
1454
+ /**
1455
+ * Outbound SMS/WhatsApp — `POST /messages` and `POST /messages/agent` on your
1456
+ * own backend (`createRuntime` or a framework adapter on top of it). Both
1457
+ * sends go through `fetchWithAuth`, exactly like every other hook here; the
1458
+ * Project credential never reaches the browser.
1459
+ *
1460
+ * Requires the host runtime to opt in with `capabilities: { messages: true }`
1461
+ * — unlike `chat`/`voice`, messaging isn't end-user-scoped server-side (`to`
1462
+ * is any E.164 number and each send spends the Project's Twilio balance), so
1463
+ * it's off by default and both routes 404 until enabled. Enabling it also
1464
+ * means every caller your `resolveUser` accepts on that mount can text
1465
+ * arbitrary numbers through it — gate it accordingly.
1466
+ *
1467
+ * Conversations are keyed by phone number, so an SMS, a WhatsApp message, and
1468
+ * a voice call with the same (Project, Agent, number) share one thread:
1469
+ * `sendFromAgent()` continues whatever conversation is already in progress
1470
+ * there rather than starting fresh.
1471
+ */
1472
+ declare function useMessages(): UseMessagesResult;
1473
+
1399
1474
  declare function useFiles(autoFetch?: boolean): {
1400
1475
  files: PersonaFileItem[];
1401
1476
  isLoading: boolean;
@@ -1770,6 +1845,6 @@ declare function supportsStreamingFetch(): boolean;
1770
1845
  */
1771
1846
  declare function openSSEStream(opts: OpenSSEOptions): Promise<SSEStream>;
1772
1847
 
1773
- declare const VERSION = "0.17.0";
1848
+ declare const VERSION = "0.18.1";
1774
1849
 
1775
- 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 };
1850
+ export { ARCHITECT_AGENT_ID, type CreatePersonaAgentInput, type CreatePersonaKnowledgeBaseInput, type CreatePersonaMcpInput, type CreatePersonaRcpSourceInput, type CreatePersonaSkillInput, type CreatePersonaWorkflowInput, type OpenSSEOptions, type PersonaAgent, type PersonaAgentCategory, type PersonaAgentMessageDelivery, type PersonaAgentSnapshot, type PersonaAgentSocialLinks, type PersonaAgentVisibility, type PersonaBulkDeleteResult, type PersonaClarificationQuestion, type PersonaDeleteDocumentResult, type PersonaFailureResponse, type PersonaFileItem, type PersonaHealthInfo, type PersonaHitlActionRequest, type PersonaHttpFailureInfo, 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 PersonaMessageChannel, type PersonaMessageDelivery, 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 SendPersonaAgentMessageInput, type SendPersonaMessageInput, 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 UseMessagesResult, 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, useMessages, usePersonaContext, useRcpSources, useSkills, useThreads, useVoice, useWorkflow, useWorkflowRuns, useWorkflowStream, useWorkflows, useWorkspaceFiles };