lemma-sdk 0.2.36 → 0.2.38

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 (171) hide show
  1. package/README.md +45 -30
  2. package/dist/browser/lemma-client.js +224 -212
  3. package/dist/client.d.ts +1 -4
  4. package/dist/client.js +1 -6
  5. package/dist/index.d.ts +2 -5
  6. package/dist/index.js +1 -2
  7. package/dist/namespaces/agents.js +1 -1
  8. package/dist/namespaces/conversations.d.ts +68 -0
  9. package/dist/namespaces/conversations.js +159 -0
  10. package/dist/namespaces/files.d.ts +24 -6
  11. package/dist/namespaces/files.js +25 -12
  12. package/dist/namespaces/integrations.js +1 -1
  13. package/dist/namespaces/pod-surfaces.d.ts +1 -1
  14. package/dist/namespaces/pod-surfaces.js +6 -6
  15. package/dist/openapi_client/index.d.ts +17 -32
  16. package/dist/openapi_client/index.js +8 -12
  17. package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +2 -2
  18. package/dist/openapi_client/models/AgentListResponse.d.ts +2 -4
  19. package/dist/openapi_client/models/AgentMessageResponse.d.ts +0 -3
  20. package/dist/openapi_client/models/{AvailableModels.d.ts → AgentModelName.d.ts} +4 -1
  21. package/dist/openapi_client/models/AgentModelName.js +18 -0
  22. package/dist/openapi_client/models/AgentResponse.d.ts +18 -13
  23. package/dist/openapi_client/models/AgentSurfaceListResponse.d.ts +6 -0
  24. package/dist/openapi_client/models/{AssistantSurfaceResponse.d.ts → AgentSurfaceResponse.d.ts} +6 -5
  25. package/dist/openapi_client/models/{AssistantSurfaceStatus.d.ts → AgentSurfaceStatus.d.ts} +1 -1
  26. package/dist/openapi_client/models/AgentSurfaceStatus.js +10 -0
  27. package/dist/openapi_client/models/{ToolSet.d.ts → AgentToolset.d.ts} +3 -5
  28. package/dist/openapi_client/models/AgentToolset.js +17 -0
  29. package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +3 -5
  30. package/dist/openapi_client/models/ApplicationMode.d.ts +3 -3
  31. package/dist/openapi_client/models/ApplicationMode.js +3 -3
  32. package/dist/openapi_client/models/ConversationResponse.d.ts +9 -20
  33. package/dist/openapi_client/models/CreateAgentRequest.d.ts +11 -7
  34. package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -8
  35. package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -5
  36. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +2 -2
  37. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +1 -1
  38. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +2 -2
  39. package/dist/openapi_client/models/FileNamespace.d.ts +4 -0
  40. package/dist/openapi_client/models/FileNamespace.js +9 -0
  41. package/dist/openapi_client/models/FileResponse.d.ts +2 -2
  42. package/dist/openapi_client/models/FlowRunEntity.d.ts +10 -1
  43. package/dist/openapi_client/models/FunctionResponse.d.ts +2 -2
  44. package/dist/openapi_client/models/HarnessKind.d.ts +7 -0
  45. package/dist/openapi_client/models/HarnessKind.js +12 -0
  46. package/dist/openapi_client/models/MessageListResponse.d.ts +6 -0
  47. package/dist/openapi_client/models/{TaskMessageResponse.d.ts → MessageResponse.d.ts} +8 -7
  48. package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +1 -0
  49. package/dist/openapi_client/models/ReportFeedbackResponse.d.ts +0 -4
  50. package/dist/openapi_client/models/ResourceType.d.ts +0 -1
  51. package/dist/openapi_client/models/ResourceType.js +0 -1
  52. package/dist/openapi_client/models/SendMessageRequest.d.ts +5 -0
  53. package/dist/openapi_client/models/{ToolCallRequest.d.ts → ToolCallContent.d.ts} +1 -1
  54. package/dist/openapi_client/models/{ToolCallResponse.d.ts → ToolReturnContent.d.ts} +2 -1
  55. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +11 -7
  56. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -5
  57. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +2 -2
  58. package/dist/openapi_client/models/app__modules__agent__domain__value_objects__TableAccessEntry.d.ts +8 -0
  59. package/dist/openapi_client/models/{TableAccessEntry.d.ts → app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts} +1 -1
  60. package/dist/openapi_client/models/update.d.ts +2 -2
  61. package/dist/openapi_client/services/AgentConversationsService.d.ts +87 -0
  62. package/dist/openapi_client/services/{ConversationsService.js → AgentConversationsService.js} +61 -72
  63. package/dist/openapi_client/services/{AssistantSurfacesIngressService.d.ts → AgentSurfacesIngressService.d.ts} +2 -2
  64. package/dist/openapi_client/services/{AssistantSurfacesIngressService.js → AgentSurfacesIngressService.js} +2 -2
  65. package/dist/openapi_client/services/{AssistantSurfacesService.d.ts → AgentSurfacesService.d.ts} +11 -11
  66. package/dist/openapi_client/services/{AssistantSurfacesService.js → AgentSurfacesService.js} +10 -10
  67. package/dist/openapi_client/services/AgentToolsService.d.ts +8 -8
  68. package/dist/openapi_client/services/AgentToolsService.js +8 -8
  69. package/dist/openapi_client/services/AgentsService.d.ts +7 -7
  70. package/dist/openapi_client/services/AgentsService.js +8 -8
  71. package/dist/openapi_client/services/FilesService.d.ts +17 -8
  72. package/dist/openapi_client/services/FilesService.js +25 -8
  73. package/dist/openapi_client/services/WorkflowsService.d.ts +1 -1
  74. package/dist/openapi_client/services/WorkflowsService.js +1 -1
  75. package/dist/react/index.d.ts +0 -8
  76. package/dist/react/index.js +0 -4
  77. package/dist/react/useAssistantController.d.ts +6 -2
  78. package/dist/react/useAssistantController.js +56 -15
  79. package/dist/react/useAssistantSession.d.ts +15 -5
  80. package/dist/react/useAssistantSession.js +24 -26
  81. package/dist/react/useConversationMessages.d.ts +6 -2
  82. package/dist/react/useConversationMessages.js +2 -1
  83. package/dist/react/useConversations.d.ts +6 -2
  84. package/dist/react/useConversations.js +7 -5
  85. package/dist/react/useCreateFolder.d.ts +4 -2
  86. package/dist/react/useCreateFolder.js +6 -3
  87. package/dist/react/useDeleteFile.d.ts +4 -1
  88. package/dist/react/useDeleteFile.js +3 -3
  89. package/dist/react/useFile.d.ts +4 -2
  90. package/dist/react/useFile.js +3 -3
  91. package/dist/react/useFilePreview.d.ts +4 -1
  92. package/dist/react/useFilePreview.js +5 -4
  93. package/dist/react/useFileTree.d.ts +4 -2
  94. package/dist/react/useFileTree.js +3 -2
  95. package/dist/react/useFiles.d.ts +4 -2
  96. package/dist/react/useFiles.js +5 -3
  97. package/dist/react/useUpdateFile.d.ts +4 -2
  98. package/dist/react/useUpdateFile.js +6 -3
  99. package/dist/react/useUploadFile.d.ts +4 -2
  100. package/dist/react/useUploadFile.js +6 -3
  101. package/dist/react/useWorkflowRun.js +1 -1
  102. package/dist/react/useWorkflowStart.js +1 -1
  103. package/dist/run-utils.d.ts +2 -5
  104. package/dist/run-utils.js +0 -10
  105. package/dist/types.d.ts +24 -10
  106. package/package.json +1 -1
  107. package/dist/namespaces/assistants.d.ts +0 -96
  108. package/dist/namespaces/assistants.js +0 -160
  109. package/dist/namespaces/tasks.d.ts +0 -29
  110. package/dist/namespaces/tasks.js +0 -49
  111. package/dist/openapi_client/models/AddMessageRequest.d.ts +0 -6
  112. package/dist/openapi_client/models/AssistantListResponse.d.ts +0 -6
  113. package/dist/openapi_client/models/AssistantResponse.d.ts +0 -23
  114. package/dist/openapi_client/models/AssistantSurfaceListResponse.d.ts +0 -6
  115. package/dist/openapi_client/models/AssistantSurfaceStatus.js +0 -10
  116. package/dist/openapi_client/models/AvailableModelInfo.d.ts +0 -8
  117. package/dist/openapi_client/models/AvailableModels.js +0 -15
  118. package/dist/openapi_client/models/AvailableModelsListResponse.d.ts +0 -7
  119. package/dist/openapi_client/models/ConversationMessageListResponse.d.ts +0 -6
  120. package/dist/openapi_client/models/ConversationMessageResponse.d.ts +0 -19
  121. package/dist/openapi_client/models/ConversationStatus.d.ts +0 -7
  122. package/dist/openapi_client/models/ConversationStatus.js +0 -12
  123. package/dist/openapi_client/models/ConversationType.d.ts +0 -8
  124. package/dist/openapi_client/models/ConversationType.js +0 -13
  125. package/dist/openapi_client/models/CreateAssistantRequest.d.ts +0 -18
  126. package/dist/openapi_client/models/CreateAssistantRequest.js +0 -1
  127. package/dist/openapi_client/models/CreateMessageRequest.d.ts +0 -6
  128. package/dist/openapi_client/models/CreateMessageRequest.js +0 -1
  129. package/dist/openapi_client/models/CreateTaskRequest.d.ts +0 -10
  130. package/dist/openapi_client/models/CreateTaskRequest.js +0 -1
  131. package/dist/openapi_client/models/FileVisibility.d.ts +0 -4
  132. package/dist/openapi_client/models/FileVisibility.js +0 -9
  133. package/dist/openapi_client/models/TableAccessEntry.js +0 -1
  134. package/dist/openapi_client/models/TaskListResponse.d.ts +0 -9
  135. package/dist/openapi_client/models/TaskListResponse.js +0 -1
  136. package/dist/openapi_client/models/TaskMessageListResponse.d.ts +0 -9
  137. package/dist/openapi_client/models/TaskMessageListResponse.js +0 -1
  138. package/dist/openapi_client/models/TaskMessageResponse.js +0 -1
  139. package/dist/openapi_client/models/TaskResponse.d.ts +0 -16
  140. package/dist/openapi_client/models/TaskResponse.js +0 -1
  141. package/dist/openapi_client/models/TaskStatus.d.ts +0 -12
  142. package/dist/openapi_client/models/TaskStatus.js +0 -17
  143. package/dist/openapi_client/models/ToolCallRequest.js +0 -1
  144. package/dist/openapi_client/models/ToolCallResponse.js +0 -1
  145. package/dist/openapi_client/models/ToolSet.js +0 -19
  146. package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +0 -17
  147. package/dist/openapi_client/models/UpdateAssistantRequest.js +0 -1
  148. package/dist/openapi_client/services/AssistantsService.d.ts +0 -49
  149. package/dist/openapi_client/services/AssistantsService.js +0 -112
  150. package/dist/openapi_client/services/ConversationsService.d.ts +0 -88
  151. package/dist/openapi_client/services/TasksService.d.ts +0 -76
  152. package/dist/openapi_client/services/TasksService.js +0 -167
  153. package/dist/react/useAgentRun.d.ts +0 -17
  154. package/dist/react/useAgentRun.js +0 -56
  155. package/dist/react/useAgentRuns.d.ts +0 -33
  156. package/dist/react/useAgentRuns.js +0 -149
  157. package/dist/react/useAssistantRun.d.ts +0 -27
  158. package/dist/react/useAssistantRun.js +0 -47
  159. package/dist/react/useTaskSession.d.ts +0 -35
  160. package/dist/react/useTaskSession.js +0 -269
  161. package/dist/task-events.d.ts +0 -8
  162. package/dist/task-events.js +0 -115
  163. /package/dist/openapi_client/models/{AddMessageRequest.js → AgentSurfaceListResponse.js} +0 -0
  164. /package/dist/openapi_client/models/{AssistantListResponse.js → AgentSurfaceResponse.js} +0 -0
  165. /package/dist/openapi_client/models/{AssistantResponse.js → MessageListResponse.js} +0 -0
  166. /package/dist/openapi_client/models/{AssistantSurfaceListResponse.js → MessageResponse.js} +0 -0
  167. /package/dist/openapi_client/models/{AssistantSurfaceResponse.js → SendMessageRequest.js} +0 -0
  168. /package/dist/openapi_client/models/{AvailableModelInfo.js → ToolCallContent.js} +0 -0
  169. /package/dist/openapi_client/models/{AvailableModelsListResponse.js → ToolReturnContent.js} +0 -0
  170. /package/dist/openapi_client/models/{ConversationMessageListResponse.js → app__modules__agent__domain__value_objects__TableAccessEntry.js} +0 -0
  171. /package/dist/openapi_client/models/{ConversationMessageResponse.js → app__modules__function__api__schemas__function_schemas__TableAccessEntry.js} +0 -0
@@ -0,0 +1,9 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var FileNamespace;
6
+ (function (FileNamespace) {
7
+ FileNamespace["PERSONAL"] = "PERSONAL";
8
+ FileNamespace["POD"] = "POD";
9
+ })(FileNamespace || (FileNamespace = {}));
@@ -1,4 +1,4 @@
1
- import type { FileVisibility } from './FileVisibility.js';
1
+ import type { FileNamespace } from './FileNamespace.js';
2
2
  export type FileResponse = {
3
3
  created_at: string;
4
4
  description: (string | null);
@@ -9,6 +9,7 @@ export type FileResponse = {
9
9
  metadata?: (Record<string, any> | null);
10
10
  mime_type?: (string | null);
11
11
  name: string;
12
+ namespace?: FileNamespace;
12
13
  owner_user_id?: (string | null);
13
14
  path: string;
14
15
  pod_id: string;
@@ -16,5 +17,4 @@ export type FileResponse = {
16
17
  size_bytes?: number;
17
18
  status: string;
18
19
  updated_at: string;
19
- visibility?: FileVisibility;
20
20
  };
@@ -20,7 +20,16 @@ export type FlowRunEntity = {
20
20
  trigger_type?: string;
21
21
  updated_at?: string;
22
22
  user_id: string;
23
+ /**
24
+ * Agent conversation id when the workflow is waiting for a pod agent execution.
25
+ */
26
+ waiting_agent_conversation_id?: (string | null);
27
+ /**
28
+ * Function run id when the workflow is waiting for an async function.
29
+ */
23
30
  waiting_function_run_id?: (string | null);
24
- waiting_task_id?: (string | null);
31
+ /**
32
+ * Trigger id when the workflow is waiting for an external trigger.
33
+ */
25
34
  waiting_trigger_id?: (string | null);
26
35
  };
@@ -1,14 +1,14 @@
1
+ import type { app__modules__function__api__schemas__function_schemas__TableAccessEntry } from './app__modules__function__api__schemas__function_schemas__TableAccessEntry.js';
1
2
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
3
  import type { FunctionStatus } from './FunctionStatus.js';
3
4
  import type { FunctionType } from './FunctionType.js';
4
- import type { TableAccessEntry } from './TableAccessEntry.js';
5
5
  /**
6
6
  * Function response.
7
7
  */
8
8
  export type FunctionResponse = {
9
9
  accessible_applications: Array<ApplicationAccessConfig>;
10
10
  accessible_folders: Array<string>;
11
- accessible_tables: Array<TableAccessEntry>;
11
+ accessible_tables: Array<app__modules__function__api__schemas__function_schemas__TableAccessEntry>;
12
12
  code?: (string | null);
13
13
  code_path?: (string | null);
14
14
  config?: (Record<string, any> | null);
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Runtime framework used to execute an agent.
3
+ */
4
+ export declare enum HarnessKind {
5
+ PYDANTIC_AI = "pydantic_ai",
6
+ PYDANTIC_DEEP = "pydantic_deep"
7
+ }
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Runtime framework used to execute an agent.
7
+ */
8
+ export var HarnessKind;
9
+ (function (HarnessKind) {
10
+ HarnessKind["PYDANTIC_AI"] = "pydantic_ai";
11
+ HarnessKind["PYDANTIC_DEEP"] = "pydantic_deep";
12
+ })(HarnessKind || (HarnessKind = {}));
@@ -0,0 +1,6 @@
1
+ import type { MessageResponse } from './MessageResponse.js';
2
+ export type MessageListResponse = {
3
+ items: Array<MessageResponse>;
4
+ limit: number;
5
+ next_page_token?: (string | null);
6
+ };
@@ -1,15 +1,16 @@
1
1
  import type { NotificationContent } from './NotificationContent.js';
2
2
  import type { TextContent } from './TextContent.js';
3
3
  import type { ThinkingContent } from './ThinkingContent.js';
4
- import type { ToolCallRequest } from './ToolCallRequest.js';
5
- import type { ToolCallResponse } from './ToolCallResponse.js';
6
- /**
7
- * Response schema for task message.
8
- */
9
- export type TaskMessageResponse = {
10
- content: (NotificationContent | TextContent | ThinkingContent | ToolCallRequest | ToolCallResponse);
4
+ import type { ToolCallContent } from './ToolCallContent.js';
5
+ import type { ToolReturnContent } from './ToolReturnContent.js';
6
+ export type MessageResponse = {
7
+ content: (NotificationContent | TextContent | ThinkingContent | ToolCallContent | ToolReturnContent);
8
+ conversation_id: string;
11
9
  created_at: string;
12
10
  id: string;
13
11
  metadata?: (Record<string, any> | null);
14
12
  role: string;
13
+ sequence: number;
14
+ tool_call_id?: (string | null);
15
+ tool_name?: (string | null);
15
16
  };
@@ -10,6 +10,7 @@ export type OrganizationInvitationResponse = {
10
10
  expires_at: string;
11
11
  id: string;
12
12
  organization_id: string;
13
+ organization_name?: (string | null);
13
14
  pod_description?: (string | null);
14
15
  pod_id?: (string | null);
15
16
  pod_name?: (string | null);
@@ -6,10 +6,6 @@ export type ReportFeedbackResponse = {
6
6
  * Delegated agent associated with the report, if available.
7
7
  */
8
8
  agent_id?: (string | null);
9
- /**
10
- * Delegated assistant associated with the report, if available.
11
- */
12
- assistant_id?: (string | null);
13
9
  /**
14
10
  * Identifier of the created feedback report.
15
11
  */
@@ -1,5 +1,4 @@
1
1
  export declare enum ResourceType {
2
2
  POD = "pod",
3
- TASK = "task",
4
3
  CONVERSATION = "conversation"
5
4
  }
@@ -5,6 +5,5 @@
5
5
  export var ResourceType;
6
6
  (function (ResourceType) {
7
7
  ResourceType["POD"] = "pod";
8
- ResourceType["TASK"] = "task";
9
8
  ResourceType["CONVERSATION"] = "conversation";
10
9
  })(ResourceType || (ResourceType = {}));
@@ -0,0 +1,5 @@
1
+ export type SendMessageRequest = {
2
+ agent_name?: (string | null);
3
+ content: string;
4
+ conversation_id?: (string | null);
5
+ };
@@ -1,4 +1,4 @@
1
- export type ToolCallRequest = {
1
+ export type ToolCallContent = {
2
2
  tool_call_id: string;
3
3
  tool_input?: any;
4
4
  tool_name: string;
@@ -1,5 +1,6 @@
1
- export type ToolCallResponse = {
1
+ export type ToolReturnContent = {
2
2
  tool_call_id: string;
3
+ tool_name?: (string | null);
3
4
  tool_output?: any;
4
5
  type?: string;
5
6
  };
@@ -1,17 +1,21 @@
1
+ import type { AgentModelName } from './AgentModelName.js';
2
+ import type { AgentToolset } from './AgentToolset.js';
3
+ import type { app__modules__agent__domain__value_objects__TableAccessEntry } from './app__modules__agent__domain__value_objects__TableAccessEntry.js';
1
4
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
- import type { TableAccessEntry } from './TableAccessEntry.js';
3
- import type { ToolSet } from './ToolSet.js';
4
- /**
5
- * Request schema for updating an agent.
6
- */
5
+ import type { HarnessKind } from './HarnessKind.js';
7
6
  export type UpdateAgentRequest = {
8
7
  accessible_applications?: (Array<ApplicationAccessConfig> | null);
9
8
  accessible_folders?: (Array<string> | null);
10
- accessible_tables?: (Array<TableAccessEntry> | null);
9
+ accessible_tables?: (Array<app__modules__agent__domain__value_objects__TableAccessEntry> | null);
10
+ agent_names?: (Array<string> | null);
11
11
  description?: (string | null);
12
+ function_names?: (Array<string> | null);
13
+ harness_kind?: (HarnessKind | null);
12
14
  icon_url?: (string | null);
13
15
  input_schema?: (Record<string, any> | null);
14
16
  instruction?: (string | null);
17
+ metadata?: (Record<string, any> | null);
18
+ model_name?: (AgentModelName | null);
15
19
  output_schema?: (Record<string, any> | null);
16
- tool_sets?: (Array<ToolSet> | null);
20
+ toolsets?: (Array<AgentToolset> | null);
17
21
  };
@@ -1,8 +1,5 @@
1
- import type { AvailableModels } from './AvailableModels.js';
2
- /**
3
- * Request to update a conversation.
4
- */
1
+ import type { AgentModelName } from './AgentModelName.js';
5
2
  export type UpdateConversationRequest = {
6
- model?: (AvailableModels | null);
3
+ model_name?: (AgentModelName | null);
7
4
  title?: (string | null);
8
5
  };
@@ -1,13 +1,13 @@
1
+ import type { app__modules__function__api__schemas__function_schemas__TableAccessEntry } from './app__modules__function__api__schemas__function_schemas__TableAccessEntry.js';
1
2
  import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
3
  import type { FunctionType } from './FunctionType.js';
3
- import type { TableAccessEntry } from './TableAccessEntry.js';
4
4
  /**
5
5
  * Request to update a function.
6
6
  */
7
7
  export type UpdateFunctionRequest = {
8
8
  accessible_applications?: (Array<ApplicationAccessConfig> | null);
9
9
  accessible_folders?: (Array<string> | null);
10
- accessible_tables?: (Array<TableAccessEntry> | null);
10
+ accessible_tables?: (Array<app__modules__function__api__schemas__function_schemas__TableAccessEntry> | null);
11
11
  code?: (string | null);
12
12
  config?: (Record<string, any> | null);
13
13
  description?: (string | null);
@@ -0,0 +1,8 @@
1
+ import type { TableAccessMode } from './TableAccessMode.js';
2
+ /**
3
+ * Per-table access configuration for workloads.
4
+ */
5
+ export type app__modules__agent__domain__value_objects__TableAccessEntry = {
6
+ mode?: TableAccessMode;
7
+ table_name: string;
8
+ };
@@ -1,5 +1,5 @@
1
1
  import type { TableAccessMode } from './TableAccessMode.js';
2
- export type TableAccessEntry = {
2
+ export type app__modules__function__api__schemas__function_schemas__TableAccessEntry = {
3
3
  mode?: TableAccessMode;
4
4
  table_name: string;
5
5
  };
@@ -1,9 +1,9 @@
1
- import type { FileVisibility } from './FileVisibility.js';
1
+ import type { FileNamespace } from './FileNamespace.js';
2
2
  export type update = {
3
3
  data?: (string | null);
4
4
  description?: (string | null);
5
+ namespace?: (FileNamespace | null);
5
6
  new_path?: (string | null);
6
7
  path: string;
7
8
  search_enabled?: (boolean | null);
8
- visibility?: (FileVisibility | null);
9
9
  };
@@ -0,0 +1,87 @@
1
+ import type { ConversationListResponse } from '../models/ConversationListResponse.js';
2
+ import type { ConversationResponse } from '../models/ConversationResponse.js';
3
+ import type { CreateConversationRequest } from '../models/CreateConversationRequest.js';
4
+ import type { MessageListResponse } from '../models/MessageListResponse.js';
5
+ import type { SendMessageRequest } from '../models/SendMessageRequest.js';
6
+ import type { UpdateConversationRequest } from '../models/UpdateConversationRequest.js';
7
+ import type { CancelablePromise } from '../core/CancelablePromise.js';
8
+ export declare class AgentConversationsService {
9
+ /**
10
+ * List Pod Agent Conversations
11
+ * List root conversations for the current user in a pod. Use agent_name to list conversations for a specific pod agent; omit it to list default pod assistant conversations. Child conversations are omitted from this root list.
12
+ * @param podId
13
+ * @param agentName
14
+ * @param pageToken
15
+ * @param limit
16
+ * @returns ConversationListResponse Successful Response
17
+ * @throws ApiError
18
+ */
19
+ static agentConversationList(podId: string, agentName?: (string | null), pageToken?: (string | null), limit?: number): CancelablePromise<ConversationListResponse>;
20
+ /**
21
+ * Create Pod Agent Conversation
22
+ * Create a new pod-scoped conversation. When agent_name is omitted, the conversation uses the default pod assistant. Workflow and sub-agent executions also use conversations as their external execution handle.
23
+ * @param podId
24
+ * @param requestBody
25
+ * @returns ConversationResponse Successful Response
26
+ * @throws ApiError
27
+ */
28
+ static agentConversationCreate(podId: string, requestBody: CreateConversationRequest): CancelablePromise<ConversationResponse>;
29
+ /**
30
+ * Get Pod Conversation
31
+ * Get a single pod-scoped assistant or agent conversation by id.
32
+ * @param podId
33
+ * @param conversationId
34
+ * @returns ConversationResponse Successful Response
35
+ * @throws ApiError
36
+ */
37
+ static agentConversationGet(podId: string, conversationId: string): CancelablePromise<ConversationResponse>;
38
+ /**
39
+ * Update Pod Conversation
40
+ * Update mutable conversation settings for a pod-scoped conversation. The conversation model is used by future runs; message sends do not carry per-request model overrides.
41
+ * @param podId
42
+ * @param conversationId
43
+ * @param requestBody
44
+ * @returns ConversationResponse Successful Response
45
+ * @throws ApiError
46
+ */
47
+ static agentConversationUpdate(podId: string, conversationId: string, requestBody: UpdateConversationRequest): CancelablePromise<ConversationResponse>;
48
+ /**
49
+ * List Pod Conversation Messages
50
+ * List persisted messages in a pod-scoped conversation in sequence order.
51
+ * @param podId
52
+ * @param conversationId
53
+ * @param afterSequence
54
+ * @param limit
55
+ * @returns MessageListResponse Successful Response
56
+ * @throws ApiError
57
+ */
58
+ static agentConversationMessageList(podId: string, conversationId: string, afterSequence?: (number | null), limit?: number): CancelablePromise<MessageListResponse>;
59
+ /**
60
+ * Send Pod Conversation Message
61
+ * Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active turn completes. User messages can also be appended while work is already active; the next harness step sees the new message in persisted history.
62
+ * @param podId
63
+ * @param conversationId
64
+ * @param requestBody
65
+ * @returns any Successful Response
66
+ * @throws ApiError
67
+ */
68
+ static agentConversationMessageSend(podId: string, conversationId: string, requestBody: SendMessageRequest): CancelablePromise<any>;
69
+ /**
70
+ * Stop Pod Conversation
71
+ * Request cancellation of the active conversation work.
72
+ * @param podId
73
+ * @param conversationId
74
+ * @returns ConversationResponse Successful Response
75
+ * @throws ApiError
76
+ */
77
+ static agentConversationStop(podId: string, conversationId: string): CancelablePromise<ConversationResponse>;
78
+ /**
79
+ * Stream Pod Conversation
80
+ * Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active work.
81
+ * @param podId
82
+ * @param conversationId
83
+ * @returns any Successful Response
84
+ * @throws ApiError
85
+ */
86
+ static agentConversationStream(podId: string, conversationId: string): CancelablePromise<any>;
87
+ }
@@ -1,26 +1,25 @@
1
1
  import { OpenAPI } from '../core/OpenAPI.js';
2
2
  import { request as __request } from '../core/request.js';
3
- export class ConversationsService {
3
+ export class AgentConversationsService {
4
4
  /**
5
- * List Conversations
6
- * @param assistantName
5
+ * List Pod Agent Conversations
6
+ * List root conversations for the current user in a pod. Use agent_name to list conversations for a specific pod agent; omit it to list default pod assistant conversations. Child conversations are omitted from this root list.
7
7
  * @param podId
8
- * @param organizationId
9
- * @param globalOnly
8
+ * @param agentName
10
9
  * @param pageToken
11
10
  * @param limit
12
11
  * @returns ConversationListResponse Successful Response
13
12
  * @throws ApiError
14
13
  */
15
- static conversationList(assistantName, podId, organizationId, globalOnly = false, pageToken, limit = 20) {
14
+ static agentConversationList(podId, agentName, pageToken, limit = 20) {
16
15
  return __request(OpenAPI, {
17
16
  method: 'GET',
18
- url: '/conversations',
19
- query: {
20
- 'assistant_name': assistantName,
17
+ url: '/pods/{pod_id}/conversations',
18
+ path: {
21
19
  'pod_id': podId,
22
- 'organization_id': organizationId,
23
- 'global_only': globalOnly,
20
+ },
21
+ query: {
22
+ 'agent_name': agentName,
24
23
  'page_token': pageToken,
25
24
  'limit': limit,
26
25
  },
@@ -30,15 +29,20 @@ export class ConversationsService {
30
29
  });
31
30
  }
32
31
  /**
33
- * Create Conversation
32
+ * Create Pod Agent Conversation
33
+ * Create a new pod-scoped conversation. When agent_name is omitted, the conversation uses the default pod assistant. Workflow and sub-agent executions also use conversations as their external execution handle.
34
+ * @param podId
34
35
  * @param requestBody
35
36
  * @returns ConversationResponse Successful Response
36
37
  * @throws ApiError
37
38
  */
38
- static conversationCreate(requestBody) {
39
+ static agentConversationCreate(podId, requestBody) {
39
40
  return __request(OpenAPI, {
40
41
  method: 'POST',
41
- url: '/conversations',
42
+ url: '/pods/{pod_id}/conversations',
43
+ path: {
44
+ 'pod_id': podId,
45
+ },
42
46
  body: requestBody,
43
47
  mediaType: 'application/json',
44
48
  errors: {
@@ -47,21 +51,20 @@ export class ConversationsService {
47
51
  });
48
52
  }
49
53
  /**
50
- * Get Conversation
51
- * @param conversationId
54
+ * Get Pod Conversation
55
+ * Get a single pod-scoped assistant or agent conversation by id.
52
56
  * @param podId
57
+ * @param conversationId
53
58
  * @returns ConversationResponse Successful Response
54
59
  * @throws ApiError
55
60
  */
56
- static conversationGet(conversationId, podId) {
61
+ static agentConversationGet(podId, conversationId) {
57
62
  return __request(OpenAPI, {
58
63
  method: 'GET',
59
- url: '/conversations/{conversation_id}',
64
+ url: '/pods/{pod_id}/conversations/{conversation_id}',
60
65
  path: {
61
- 'conversation_id': conversationId,
62
- },
63
- query: {
64
66
  'pod_id': podId,
67
+ 'conversation_id': conversationId,
65
68
  },
66
69
  errors: {
67
70
  422: `Validation Error`,
@@ -69,22 +72,21 @@ export class ConversationsService {
69
72
  });
70
73
  }
71
74
  /**
72
- * Update Conversation
75
+ * Update Pod Conversation
76
+ * Update mutable conversation settings for a pod-scoped conversation. The conversation model is used by future runs; message sends do not carry per-request model overrides.
77
+ * @param podId
73
78
  * @param conversationId
74
79
  * @param requestBody
75
- * @param podId
76
80
  * @returns ConversationResponse Successful Response
77
81
  * @throws ApiError
78
82
  */
79
- static conversationUpdate(conversationId, requestBody, podId) {
83
+ static agentConversationUpdate(podId, conversationId, requestBody) {
80
84
  return __request(OpenAPI, {
81
85
  method: 'PATCH',
82
- url: '/conversations/{conversation_id}',
86
+ url: '/pods/{pod_id}/conversations/{conversation_id}',
83
87
  path: {
84
- 'conversation_id': conversationId,
85
- },
86
- query: {
87
88
  'pod_id': podId,
89
+ 'conversation_id': conversationId,
88
90
  },
89
91
  body: requestBody,
90
92
  mediaType: 'application/json',
@@ -94,23 +96,25 @@ export class ConversationsService {
94
96
  });
95
97
  }
96
98
  /**
97
- * List Messages
98
- * List messages in a conversation with token pagination. Use `page_token` to fetch older messages.
99
+ * List Pod Conversation Messages
100
+ * List persisted messages in a pod-scoped conversation in sequence order.
101
+ * @param podId
99
102
  * @param conversationId
100
- * @param pageToken
103
+ * @param afterSequence
101
104
  * @param limit
102
- * @returns ConversationMessageListResponse Successful Response
105
+ * @returns MessageListResponse Successful Response
103
106
  * @throws ApiError
104
107
  */
105
- static conversationMessageList(conversationId, pageToken, limit = 20) {
108
+ static agentConversationMessageList(podId, conversationId, afterSequence, limit = 100) {
106
109
  return __request(OpenAPI, {
107
110
  method: 'GET',
108
- url: '/conversations/{conversation_id}/messages',
111
+ url: '/pods/{pod_id}/conversations/{conversation_id}/messages',
109
112
  path: {
113
+ 'pod_id': podId,
110
114
  'conversation_id': conversationId,
111
115
  },
112
116
  query: {
113
- 'page_token': pageToken,
117
+ 'after_sequence': afterSequence,
114
118
  'limit': limit,
115
119
  },
116
120
  errors: {
@@ -119,22 +123,21 @@ export class ConversationsService {
119
123
  });
120
124
  }
121
125
  /**
122
- * Send Message (Stream)
126
+ * Send Pod Conversation Message
127
+ * Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active turn completes. User messages can also be appended while work is already active; the next harness step sees the new message in persisted history.
128
+ * @param podId
123
129
  * @param conversationId
124
130
  * @param requestBody
125
- * @param podId
126
- * @returns any Server-Sent Events
131
+ * @returns any Successful Response
127
132
  * @throws ApiError
128
133
  */
129
- static conversationMessageCreate(conversationId, requestBody, podId) {
134
+ static agentConversationMessageSend(podId, conversationId, requestBody) {
130
135
  return __request(OpenAPI, {
131
136
  method: 'POST',
132
- url: '/conversations/{conversation_id}/messages',
137
+ url: '/pods/{pod_id}/conversations/{conversation_id}/messages',
133
138
  path: {
134
- 'conversation_id': conversationId,
135
- },
136
- query: {
137
139
  'pod_id': podId,
140
+ 'conversation_id': conversationId,
138
141
  },
139
142
  body: requestBody,
140
143
  mediaType: 'application/json',
@@ -144,21 +147,20 @@ export class ConversationsService {
144
147
  });
145
148
  }
146
149
  /**
147
- * Stop Conversation Run
148
- * @param conversationId
150
+ * Stop Pod Conversation
151
+ * Request cancellation of the active conversation work.
149
152
  * @param podId
150
- * @returns any Successful Response
153
+ * @param conversationId
154
+ * @returns ConversationResponse Successful Response
151
155
  * @throws ApiError
152
156
  */
153
- static conversationRunStop(conversationId, podId) {
157
+ static agentConversationStop(podId, conversationId) {
154
158
  return __request(OpenAPI, {
155
- method: 'PATCH',
156
- url: '/conversations/{conversation_id}/stop',
159
+ method: 'POST',
160
+ url: '/pods/{pod_id}/conversations/{conversation_id}/stop',
157
161
  path: {
158
- 'conversation_id': conversationId,
159
- },
160
- query: {
161
162
  'pod_id': podId,
163
+ 'conversation_id': conversationId,
162
164
  },
163
165
  errors: {
164
166
  422: `Validation Error`,
@@ -166,37 +168,24 @@ export class ConversationsService {
166
168
  });
167
169
  }
168
170
  /**
169
- * Resume Conversation Stream
170
- * @param conversationId
171
+ * Stream Pod Conversation
172
+ * Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active work.
171
173
  * @param podId
172
- * @returns any Server-Sent Events for an already-running conversation.
174
+ * @param conversationId
175
+ * @returns any Successful Response
173
176
  * @throws ApiError
174
177
  */
175
- static conversationStreamResume(conversationId, podId) {
178
+ static agentConversationStream(podId, conversationId) {
176
179
  return __request(OpenAPI, {
177
180
  method: 'GET',
178
- url: '/conversations/{conversation_id}/stream',
181
+ url: '/pods/{pod_id}/conversations/{conversation_id}/stream',
179
182
  path: {
180
- 'conversation_id': conversationId,
181
- },
182
- query: {
183
183
  'pod_id': podId,
184
+ 'conversation_id': conversationId,
184
185
  },
185
186
  errors: {
186
187
  422: `Validation Error`,
187
188
  },
188
189
  });
189
190
  }
190
- /**
191
- * List Available Models
192
- * Get list of all available models in the system.
193
- * @returns AvailableModelsListResponse Successful Response
194
- * @throws ApiError
195
- */
196
- static conversationModelsList() {
197
- return __request(OpenAPI, {
198
- method: 'GET',
199
- url: '/models',
200
- });
201
- }
202
191
  }
@@ -1,5 +1,5 @@
1
1
  import type { CancelablePromise } from '../core/CancelablePromise.js';
2
- export declare class AssistantSurfacesIngressService {
2
+ export declare class AgentSurfacesIngressService {
3
3
  /**
4
4
  * Teams Admin Consent Callback
5
5
  * @param tenant
@@ -10,7 +10,7 @@ export declare class AssistantSurfacesIngressService {
10
10
  * @returns any Successful Response
11
11
  * @throws ApiError
12
12
  */
13
- static assistantSurfaceTeamsAdminConsentCallback(tenant?: (string | null), adminConsent?: (string | null), state?: (string | null), error?: (string | null), errorDescription?: (string | null)): CancelablePromise<any>;
13
+ static agentSurfaceTeamsAdminConsentCallback(tenant?: (string | null), adminConsent?: (string | null), state?: (string | null), error?: (string | null), errorDescription?: (string | null)): CancelablePromise<any>;
14
14
  /**
15
15
  * Handle per-surface webhook verification
16
16
  * @param surfaceId
@@ -1,6 +1,6 @@
1
1
  import { OpenAPI } from '../core/OpenAPI.js';
2
2
  import { request as __request } from '../core/request.js';
3
- export class AssistantSurfacesIngressService {
3
+ export class AgentSurfacesIngressService {
4
4
  /**
5
5
  * Teams Admin Consent Callback
6
6
  * @param tenant
@@ -11,7 +11,7 @@ export class AssistantSurfacesIngressService {
11
11
  * @returns any Successful Response
12
12
  * @throws ApiError
13
13
  */
14
- static assistantSurfaceTeamsAdminConsentCallback(tenant, adminConsent, state, error, errorDescription) {
14
+ static agentSurfaceTeamsAdminConsentCallback(tenant, adminConsent, state, error, errorDescription) {
15
15
  return __request(OpenAPI, {
16
16
  method: 'GET',
17
17
  url: '/surfaces/teams/admin-consent/callback',