lemma-sdk 0.2.36 → 0.2.37

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 (161) hide show
  1. package/README.md +28 -22
  2. package/dist/browser/lemma-client.js +290 -165
  3. package/dist/client.d.ts +1 -2
  4. package/dist/client.js +1 -3
  5. package/dist/index.d.ts +1 -1
  6. package/dist/namespaces/agents.js +1 -1
  7. package/dist/namespaces/conversations.d.ts +73 -0
  8. package/dist/namespaces/conversations.js +174 -0
  9. package/dist/namespaces/files.d.ts +24 -6
  10. package/dist/namespaces/files.js +25 -12
  11. package/dist/namespaces/integrations.js +1 -1
  12. package/dist/namespaces/pod-surfaces.d.ts +1 -1
  13. package/dist/namespaces/pod-surfaces.js +6 -6
  14. package/dist/namespaces/tasks.d.ts +1 -5
  15. package/dist/namespaces/tasks.js +54 -12
  16. package/dist/openapi_client/index.d.ts +17 -32
  17. package/dist/openapi_client/index.js +8 -12
  18. package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +2 -2
  19. package/dist/openapi_client/models/AgentListResponse.d.ts +2 -4
  20. package/dist/openapi_client/models/AgentMessageResponse.d.ts +0 -3
  21. package/dist/openapi_client/models/{AvailableModels.d.ts → AgentModelName.d.ts} +4 -1
  22. package/dist/openapi_client/models/AgentModelName.js +18 -0
  23. package/dist/openapi_client/models/AgentResponse.d.ts +18 -13
  24. package/dist/openapi_client/models/AgentSurfaceListResponse.d.ts +6 -0
  25. package/dist/openapi_client/models/{AssistantSurfaceResponse.d.ts → AgentSurfaceResponse.d.ts} +6 -5
  26. package/dist/openapi_client/models/{AssistantSurfaceStatus.d.ts → AgentSurfaceStatus.d.ts} +1 -1
  27. package/dist/openapi_client/models/AgentSurfaceStatus.js +10 -0
  28. package/dist/openapi_client/models/{ToolSet.d.ts → AgentToolset.d.ts} +3 -5
  29. package/dist/openapi_client/models/AgentToolset.js +17 -0
  30. package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +3 -5
  31. package/dist/openapi_client/models/ApplicationMode.d.ts +3 -3
  32. package/dist/openapi_client/models/ApplicationMode.js +3 -3
  33. package/dist/openapi_client/models/ConversationResponse.d.ts +9 -20
  34. package/dist/openapi_client/models/CreateAgentRequest.d.ts +11 -7
  35. package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -8
  36. package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -5
  37. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +2 -2
  38. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +1 -1
  39. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +2 -2
  40. package/dist/openapi_client/models/FileNamespace.d.ts +4 -0
  41. package/dist/openapi_client/models/FileNamespace.js +9 -0
  42. package/dist/openapi_client/models/FileResponse.d.ts +2 -2
  43. package/dist/openapi_client/models/FlowRunEntity.d.ts +10 -1
  44. package/dist/openapi_client/models/FunctionResponse.d.ts +2 -2
  45. package/dist/openapi_client/models/HarnessKind.d.ts +7 -0
  46. package/dist/openapi_client/models/HarnessKind.js +12 -0
  47. package/dist/openapi_client/models/MessageListResponse.d.ts +6 -0
  48. package/dist/openapi_client/models/MessageResponse.d.ts +17 -0
  49. package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +1 -0
  50. package/dist/openapi_client/models/ReportFeedbackResponse.d.ts +0 -4
  51. package/dist/openapi_client/models/ResourceType.d.ts +0 -1
  52. package/dist/openapi_client/models/ResourceType.js +0 -1
  53. package/dist/openapi_client/models/SendMessageRequest.d.ts +5 -0
  54. package/dist/openapi_client/models/{ToolCallRequest.d.ts → ToolCallContent.d.ts} +1 -1
  55. package/dist/openapi_client/models/{ToolCallResponse.d.ts → ToolReturnContent.d.ts} +2 -1
  56. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +11 -7
  57. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -5
  58. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +2 -2
  59. package/dist/openapi_client/models/app__modules__agent__domain__value_objects__TableAccessEntry.d.ts +8 -0
  60. package/dist/openapi_client/models/{TableAccessEntry.d.ts → app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts} +1 -1
  61. package/dist/openapi_client/models/update.d.ts +2 -2
  62. package/dist/openapi_client/services/AgentConversationsService.d.ts +97 -0
  63. package/dist/openapi_client/services/AgentConversationsService.js +217 -0
  64. package/dist/openapi_client/services/{AssistantSurfacesIngressService.d.ts → AgentSurfacesIngressService.d.ts} +2 -2
  65. package/dist/openapi_client/services/{AssistantSurfacesIngressService.js → AgentSurfacesIngressService.js} +2 -2
  66. package/dist/openapi_client/services/{AssistantSurfacesService.d.ts → AgentSurfacesService.d.ts} +11 -11
  67. package/dist/openapi_client/services/{AssistantSurfacesService.js → AgentSurfacesService.js} +10 -10
  68. package/dist/openapi_client/services/AgentToolsService.d.ts +8 -8
  69. package/dist/openapi_client/services/AgentToolsService.js +8 -8
  70. package/dist/openapi_client/services/AgentsService.d.ts +7 -7
  71. package/dist/openapi_client/services/AgentsService.js +8 -8
  72. package/dist/openapi_client/services/FilesService.d.ts +17 -8
  73. package/dist/openapi_client/services/FilesService.js +25 -8
  74. package/dist/openapi_client/services/WorkflowsService.d.ts +1 -1
  75. package/dist/openapi_client/services/WorkflowsService.js +1 -1
  76. package/dist/react/useAgentRun.d.ts +28 -7
  77. package/dist/react/useAgentRun.js +120 -27
  78. package/dist/react/useAssistantController.d.ts +6 -2
  79. package/dist/react/useAssistantController.js +57 -14
  80. package/dist/react/useAssistantSession.d.ts +15 -3
  81. package/dist/react/useAssistantSession.js +19 -15
  82. package/dist/react/useConversationMessages.d.ts +6 -2
  83. package/dist/react/useConversationMessages.js +2 -1
  84. package/dist/react/useConversations.d.ts +6 -2
  85. package/dist/react/useConversations.js +7 -5
  86. package/dist/react/useCreateFolder.d.ts +4 -2
  87. package/dist/react/useCreateFolder.js +6 -3
  88. package/dist/react/useDeleteFile.d.ts +4 -1
  89. package/dist/react/useDeleteFile.js +3 -3
  90. package/dist/react/useFile.d.ts +4 -2
  91. package/dist/react/useFile.js +3 -3
  92. package/dist/react/useFilePreview.d.ts +4 -1
  93. package/dist/react/useFilePreview.js +5 -4
  94. package/dist/react/useFileTree.d.ts +4 -2
  95. package/dist/react/useFileTree.js +3 -2
  96. package/dist/react/useFiles.d.ts +4 -2
  97. package/dist/react/useFiles.js +5 -3
  98. package/dist/react/useUpdateFile.d.ts +4 -2
  99. package/dist/react/useUpdateFile.js +6 -3
  100. package/dist/react/useUploadFile.d.ts +4 -2
  101. package/dist/react/useUploadFile.js +6 -3
  102. package/dist/react/useWorkflowRun.js +1 -1
  103. package/dist/react/useWorkflowStart.js +1 -1
  104. package/dist/run-utils.d.ts +2 -1
  105. package/dist/types.d.ts +62 -6
  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/openapi_client/models/AddMessageRequest.d.ts +0 -6
  110. package/dist/openapi_client/models/AssistantListResponse.d.ts +0 -6
  111. package/dist/openapi_client/models/AssistantResponse.d.ts +0 -23
  112. package/dist/openapi_client/models/AssistantSurfaceListResponse.d.ts +0 -6
  113. package/dist/openapi_client/models/AssistantSurfaceStatus.js +0 -10
  114. package/dist/openapi_client/models/AvailableModelInfo.d.ts +0 -8
  115. package/dist/openapi_client/models/AvailableModels.js +0 -15
  116. package/dist/openapi_client/models/AvailableModelsListResponse.d.ts +0 -7
  117. package/dist/openapi_client/models/ConversationMessageListResponse.d.ts +0 -6
  118. package/dist/openapi_client/models/ConversationMessageResponse.d.ts +0 -19
  119. package/dist/openapi_client/models/ConversationStatus.d.ts +0 -7
  120. package/dist/openapi_client/models/ConversationStatus.js +0 -12
  121. package/dist/openapi_client/models/ConversationType.d.ts +0 -8
  122. package/dist/openapi_client/models/ConversationType.js +0 -13
  123. package/dist/openapi_client/models/CreateAssistantRequest.d.ts +0 -18
  124. package/dist/openapi_client/models/CreateAssistantRequest.js +0 -1
  125. package/dist/openapi_client/models/CreateMessageRequest.d.ts +0 -6
  126. package/dist/openapi_client/models/CreateMessageRequest.js +0 -1
  127. package/dist/openapi_client/models/CreateTaskRequest.d.ts +0 -10
  128. package/dist/openapi_client/models/CreateTaskRequest.js +0 -1
  129. package/dist/openapi_client/models/FileVisibility.d.ts +0 -4
  130. package/dist/openapi_client/models/FileVisibility.js +0 -9
  131. package/dist/openapi_client/models/TableAccessEntry.js +0 -1
  132. package/dist/openapi_client/models/TaskListResponse.d.ts +0 -9
  133. package/dist/openapi_client/models/TaskListResponse.js +0 -1
  134. package/dist/openapi_client/models/TaskMessageListResponse.d.ts +0 -9
  135. package/dist/openapi_client/models/TaskMessageListResponse.js +0 -1
  136. package/dist/openapi_client/models/TaskMessageResponse.d.ts +0 -15
  137. package/dist/openapi_client/models/TaskMessageResponse.js +0 -1
  138. package/dist/openapi_client/models/TaskResponse.d.ts +0 -16
  139. package/dist/openapi_client/models/TaskResponse.js +0 -1
  140. package/dist/openapi_client/models/TaskStatus.d.ts +0 -12
  141. package/dist/openapi_client/models/TaskStatus.js +0 -17
  142. package/dist/openapi_client/models/ToolCallRequest.js +0 -1
  143. package/dist/openapi_client/models/ToolCallResponse.js +0 -1
  144. package/dist/openapi_client/models/ToolSet.js +0 -19
  145. package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +0 -17
  146. package/dist/openapi_client/models/UpdateAssistantRequest.js +0 -1
  147. package/dist/openapi_client/services/AssistantsService.d.ts +0 -49
  148. package/dist/openapi_client/services/AssistantsService.js +0 -112
  149. package/dist/openapi_client/services/ConversationsService.d.ts +0 -88
  150. package/dist/openapi_client/services/ConversationsService.js +0 -202
  151. package/dist/openapi_client/services/TasksService.d.ts +0 -76
  152. package/dist/openapi_client/services/TasksService.js +0 -167
  153. /package/dist/openapi_client/models/{AddMessageRequest.js → AgentSurfaceListResponse.js} +0 -0
  154. /package/dist/openapi_client/models/{AssistantListResponse.js → AgentSurfaceResponse.js} +0 -0
  155. /package/dist/openapi_client/models/{AssistantResponse.js → MessageListResponse.js} +0 -0
  156. /package/dist/openapi_client/models/{AssistantSurfaceListResponse.js → MessageResponse.js} +0 -0
  157. /package/dist/openapi_client/models/{AssistantSurfaceResponse.js → SendMessageRequest.js} +0 -0
  158. /package/dist/openapi_client/models/{AvailableModelInfo.js → ToolCallContent.js} +0 -0
  159. /package/dist/openapi_client/models/{AvailableModelsListResponse.js → ToolReturnContent.js} +0 -0
  160. /package/dist/openapi_client/models/{ConversationMessageListResponse.js → app__modules__agent__domain__value_objects__TableAccessEntry.js} +0 -0
  161. /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
+ };
@@ -0,0 +1,17 @@
1
+ import type { NotificationContent } from './NotificationContent.js';
2
+ import type { TextContent } from './TextContent.js';
3
+ import type { ThinkingContent } from './ThinkingContent.js';
4
+ import type { ToolCallContent } from './ToolCallContent.js';
5
+ import type { ToolReturnContent } from './ToolReturnContent.js';
6
+ export type MessageResponse = {
7
+ agent_run_id?: (string | null);
8
+ content: (NotificationContent | TextContent | ThinkingContent | ToolCallContent | ToolReturnContent);
9
+ conversation_id: string;
10
+ created_at: string;
11
+ id: string;
12
+ metadata?: (Record<string, any> | null);
13
+ role: string;
14
+ sequence: number;
15
+ tool_call_id?: (string | null);
16
+ tool_name?: (string | null);
17
+ };
@@ -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,97 @@
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
+ * Send Pod Conversation Message
31
+ * Create or continue a pod-scoped assistant or agent conversation and stream runtime events over Server-Sent Events until the active run completes. Provide agent_name to target a pod agent; omit it for the default pod assistant.
32
+ * @param podId
33
+ * @param requestBody
34
+ * @returns any Successful Response
35
+ * @throws ApiError
36
+ */
37
+ static agentConversationMessageSendOrCreate(podId: string, requestBody: SendMessageRequest): CancelablePromise<any>;
38
+ /**
39
+ * Get Pod Conversation
40
+ * Get a single pod-scoped assistant or agent conversation by id.
41
+ * @param podId
42
+ * @param conversationId
43
+ * @returns ConversationResponse Successful Response
44
+ * @throws ApiError
45
+ */
46
+ static agentConversationGet(podId: string, conversationId: string): CancelablePromise<ConversationResponse>;
47
+ /**
48
+ * Update Pod Conversation
49
+ * 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.
50
+ * @param podId
51
+ * @param conversationId
52
+ * @param requestBody
53
+ * @returns ConversationResponse Successful Response
54
+ * @throws ApiError
55
+ */
56
+ static agentConversationUpdate(podId: string, conversationId: string, requestBody: UpdateConversationRequest): CancelablePromise<ConversationResponse>;
57
+ /**
58
+ * List Pod Conversation Messages
59
+ * List persisted messages in a pod-scoped conversation in sequence order.
60
+ * @param podId
61
+ * @param conversationId
62
+ * @param afterSequence
63
+ * @param limit
64
+ * @returns MessageListResponse Successful Response
65
+ * @throws ApiError
66
+ */
67
+ static agentConversationMessageList(podId: string, conversationId: string, afterSequence?: (number | null), limit?: number): CancelablePromise<MessageListResponse>;
68
+ /**
69
+ * Send Pod Conversation Message
70
+ * Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active run completes. User messages can also be appended while a run is already active; the next harness step sees the new message in persisted history.
71
+ * @param podId
72
+ * @param conversationId
73
+ * @param requestBody
74
+ * @returns any Successful Response
75
+ * @throws ApiError
76
+ */
77
+ static agentConversationMessageSend(podId: string, conversationId: string, requestBody: SendMessageRequest): CancelablePromise<any>;
78
+ /**
79
+ * Stop Pod Conversation
80
+ * Request cancellation of the active internal run for a conversation.
81
+ * @param podId
82
+ * @param conversationId
83
+ * @returns ConversationResponse Successful Response
84
+ * @throws ApiError
85
+ */
86
+ static agentConversationStop(podId: string, conversationId: string): CancelablePromise<ConversationResponse>;
87
+ /**
88
+ * Stream Pod Conversation
89
+ * Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active run. Optionally filter to a specific internal run id for reconnects.
90
+ * @param podId
91
+ * @param conversationId
92
+ * @param agentRunId
93
+ * @returns any Successful Response
94
+ * @throws ApiError
95
+ */
96
+ static agentConversationStream(podId: string, conversationId: string, agentRunId?: (string | null)): CancelablePromise<any>;
97
+ }
@@ -0,0 +1,217 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class AgentConversationsService {
4
+ /**
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
+ * @param podId
8
+ * @param agentName
9
+ * @param pageToken
10
+ * @param limit
11
+ * @returns ConversationListResponse Successful Response
12
+ * @throws ApiError
13
+ */
14
+ static agentConversationList(podId, agentName, pageToken, limit = 20) {
15
+ return __request(OpenAPI, {
16
+ method: 'GET',
17
+ url: '/pods/{pod_id}/conversations',
18
+ path: {
19
+ 'pod_id': podId,
20
+ },
21
+ query: {
22
+ 'agent_name': agentName,
23
+ 'page_token': pageToken,
24
+ 'limit': limit,
25
+ },
26
+ errors: {
27
+ 422: `Validation Error`,
28
+ },
29
+ });
30
+ }
31
+ /**
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
35
+ * @param requestBody
36
+ * @returns ConversationResponse Successful Response
37
+ * @throws ApiError
38
+ */
39
+ static agentConversationCreate(podId, requestBody) {
40
+ return __request(OpenAPI, {
41
+ method: 'POST',
42
+ url: '/pods/{pod_id}/conversations',
43
+ path: {
44
+ 'pod_id': podId,
45
+ },
46
+ body: requestBody,
47
+ mediaType: 'application/json',
48
+ errors: {
49
+ 422: `Validation Error`,
50
+ },
51
+ });
52
+ }
53
+ /**
54
+ * Send Pod Conversation Message
55
+ * Create or continue a pod-scoped assistant or agent conversation and stream runtime events over Server-Sent Events until the active run completes. Provide agent_name to target a pod agent; omit it for the default pod assistant.
56
+ * @param podId
57
+ * @param requestBody
58
+ * @returns any Successful Response
59
+ * @throws ApiError
60
+ */
61
+ static agentConversationMessageSendOrCreate(podId, requestBody) {
62
+ return __request(OpenAPI, {
63
+ method: 'POST',
64
+ url: '/pods/{pod_id}/conversations/messages',
65
+ path: {
66
+ 'pod_id': podId,
67
+ },
68
+ body: requestBody,
69
+ mediaType: 'application/json',
70
+ errors: {
71
+ 422: `Validation Error`,
72
+ },
73
+ });
74
+ }
75
+ /**
76
+ * Get Pod Conversation
77
+ * Get a single pod-scoped assistant or agent conversation by id.
78
+ * @param podId
79
+ * @param conversationId
80
+ * @returns ConversationResponse Successful Response
81
+ * @throws ApiError
82
+ */
83
+ static agentConversationGet(podId, conversationId) {
84
+ return __request(OpenAPI, {
85
+ method: 'GET',
86
+ url: '/pods/{pod_id}/conversations/{conversation_id}',
87
+ path: {
88
+ 'pod_id': podId,
89
+ 'conversation_id': conversationId,
90
+ },
91
+ errors: {
92
+ 422: `Validation Error`,
93
+ },
94
+ });
95
+ }
96
+ /**
97
+ * Update Pod Conversation
98
+ * 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.
99
+ * @param podId
100
+ * @param conversationId
101
+ * @param requestBody
102
+ * @returns ConversationResponse Successful Response
103
+ * @throws ApiError
104
+ */
105
+ static agentConversationUpdate(podId, conversationId, requestBody) {
106
+ return __request(OpenAPI, {
107
+ method: 'PATCH',
108
+ url: '/pods/{pod_id}/conversations/{conversation_id}',
109
+ path: {
110
+ 'pod_id': podId,
111
+ 'conversation_id': conversationId,
112
+ },
113
+ body: requestBody,
114
+ mediaType: 'application/json',
115
+ errors: {
116
+ 422: `Validation Error`,
117
+ },
118
+ });
119
+ }
120
+ /**
121
+ * List Pod Conversation Messages
122
+ * List persisted messages in a pod-scoped conversation in sequence order.
123
+ * @param podId
124
+ * @param conversationId
125
+ * @param afterSequence
126
+ * @param limit
127
+ * @returns MessageListResponse Successful Response
128
+ * @throws ApiError
129
+ */
130
+ static agentConversationMessageList(podId, conversationId, afterSequence, limit = 100) {
131
+ return __request(OpenAPI, {
132
+ method: 'GET',
133
+ url: '/pods/{pod_id}/conversations/{conversation_id}/messages',
134
+ path: {
135
+ 'pod_id': podId,
136
+ 'conversation_id': conversationId,
137
+ },
138
+ query: {
139
+ 'after_sequence': afterSequence,
140
+ 'limit': limit,
141
+ },
142
+ errors: {
143
+ 422: `Validation Error`,
144
+ },
145
+ });
146
+ }
147
+ /**
148
+ * Send Pod Conversation Message
149
+ * Append a user message to a pod-scoped conversation and stream runtime events over Server-Sent Events until the active run completes. User messages can also be appended while a run is already active; the next harness step sees the new message in persisted history.
150
+ * @param podId
151
+ * @param conversationId
152
+ * @param requestBody
153
+ * @returns any Successful Response
154
+ * @throws ApiError
155
+ */
156
+ static agentConversationMessageSend(podId, conversationId, requestBody) {
157
+ return __request(OpenAPI, {
158
+ method: 'POST',
159
+ url: '/pods/{pod_id}/conversations/{conversation_id}/messages',
160
+ path: {
161
+ 'pod_id': podId,
162
+ 'conversation_id': conversationId,
163
+ },
164
+ body: requestBody,
165
+ mediaType: 'application/json',
166
+ errors: {
167
+ 422: `Validation Error`,
168
+ },
169
+ });
170
+ }
171
+ /**
172
+ * Stop Pod Conversation
173
+ * Request cancellation of the active internal run for a conversation.
174
+ * @param podId
175
+ * @param conversationId
176
+ * @returns ConversationResponse Successful Response
177
+ * @throws ApiError
178
+ */
179
+ static agentConversationStop(podId, conversationId) {
180
+ return __request(OpenAPI, {
181
+ method: 'POST',
182
+ url: '/pods/{pod_id}/conversations/{conversation_id}/stop',
183
+ path: {
184
+ 'pod_id': podId,
185
+ 'conversation_id': conversationId,
186
+ },
187
+ errors: {
188
+ 422: `Validation Error`,
189
+ },
190
+ });
191
+ }
192
+ /**
193
+ * Stream Pod Conversation
194
+ * Subscribe to Server-Sent Events for an existing pod-scoped conversation. The stream closes immediately when the conversation has no active run. Optionally filter to a specific internal run id for reconnects.
195
+ * @param podId
196
+ * @param conversationId
197
+ * @param agentRunId
198
+ * @returns any Successful Response
199
+ * @throws ApiError
200
+ */
201
+ static agentConversationStream(podId, conversationId, agentRunId) {
202
+ return __request(OpenAPI, {
203
+ method: 'GET',
204
+ url: '/pods/{pod_id}/conversations/{conversation_id}/stream',
205
+ path: {
206
+ 'pod_id': podId,
207
+ 'conversation_id': conversationId,
208
+ },
209
+ query: {
210
+ 'agent_run_id': agentRunId,
211
+ },
212
+ errors: {
213
+ 422: `Validation Error`,
214
+ },
215
+ });
216
+ }
217
+ }
@@ -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',