lemma-sdk 0.2.35 → 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 (188) hide show
  1. package/README.md +126 -43
  2. package/dist/browser/lemma-client.js +456 -169
  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.d.ts +10 -2
  12. package/dist/namespaces/integrations.js +17 -2
  13. package/dist/namespaces/pod-surfaces.d.ts +1 -1
  14. package/dist/namespaces/pod-surfaces.js +6 -6
  15. package/dist/namespaces/tasks.d.ts +1 -5
  16. package/dist/namespaces/tasks.js +54 -12
  17. package/dist/openapi_client/index.d.ts +27 -34
  18. package/dist/openapi_client/index.js +9 -12
  19. package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +2 -2
  20. package/dist/openapi_client/models/AgentListResponse.d.ts +2 -4
  21. package/dist/openapi_client/models/AgentMessageResponse.d.ts +0 -3
  22. package/dist/openapi_client/models/{AvailableModels.d.ts → AgentModelName.d.ts} +4 -1
  23. package/dist/openapi_client/models/AgentModelName.js +18 -0
  24. package/dist/openapi_client/models/AgentResponse.d.ts +18 -13
  25. package/dist/openapi_client/models/AgentSurfaceListResponse.d.ts +6 -0
  26. package/dist/openapi_client/models/{AssistantSurfaceResponse.d.ts → AgentSurfaceResponse.d.ts} +6 -5
  27. package/dist/openapi_client/models/{AssistantSurfaceStatus.d.ts → AgentSurfaceStatus.d.ts} +1 -1
  28. package/dist/openapi_client/models/AgentSurfaceStatus.js +10 -0
  29. package/dist/openapi_client/models/{ToolSet.d.ts → AgentToolset.d.ts} +3 -5
  30. package/dist/openapi_client/models/AgentToolset.js +17 -0
  31. package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +3 -5
  32. package/dist/openapi_client/models/ApplicationMode.d.ts +3 -3
  33. package/dist/openapi_client/models/ApplicationMode.js +3 -3
  34. package/dist/openapi_client/models/ConversationResponse.d.ts +9 -20
  35. package/dist/openapi_client/models/CreateAgentRequest.d.ts +11 -7
  36. package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -8
  37. package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -5
  38. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +2 -2
  39. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +1 -1
  40. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +2 -2
  41. package/dist/openapi_client/models/FeedbackCategory.d.ts +7 -0
  42. package/dist/openapi_client/models/FeedbackCategory.js +12 -0
  43. package/dist/openapi_client/models/FileNamespace.d.ts +4 -0
  44. package/dist/openapi_client/models/FileNamespace.js +9 -0
  45. package/dist/openapi_client/models/FileResponse.d.ts +2 -2
  46. package/dist/openapi_client/models/FlowRunEntity.d.ts +11 -1
  47. package/dist/openapi_client/models/FunctionResponse.d.ts +2 -2
  48. package/dist/openapi_client/models/HarnessKind.d.ts +7 -0
  49. package/dist/openapi_client/models/HarnessKind.js +12 -0
  50. package/dist/openapi_client/models/IntegrationHelperAgentRequest.d.ts +13 -0
  51. package/dist/openapi_client/models/IntegrationHelperAgentResponse.d.ts +25 -0
  52. package/dist/openapi_client/models/MessageListResponse.d.ts +6 -0
  53. package/dist/openapi_client/models/MessageResponse.d.ts +17 -0
  54. package/dist/openapi_client/models/OperationDetail.d.ts +3 -0
  55. package/dist/openapi_client/models/OperationDetailsBatchRequest.d.ts +9 -0
  56. package/dist/openapi_client/models/OperationDetailsBatchResponse.d.ts +18 -0
  57. package/dist/openapi_client/models/OperationDiscoverResponse.d.ts +26 -0
  58. package/dist/openapi_client/models/OperationSummary.d.ts +3 -0
  59. package/dist/openapi_client/models/OrganizationCreateRequest.d.ts +2 -0
  60. package/dist/openapi_client/models/OrganizationInvitationRequest.d.ts +1 -0
  61. package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +4 -0
  62. package/dist/openapi_client/models/OrganizationMessageResponse.d.ts +1 -0
  63. package/dist/openapi_client/models/OrganizationResponse.d.ts +2 -0
  64. package/dist/openapi_client/models/OrganizationSlugAvailabilityResponse.d.ts +7 -0
  65. package/dist/openapi_client/models/ReportFeedbackRequest.d.ts +30 -0
  66. package/dist/openapi_client/models/ReportFeedbackResponse.d.ts +25 -0
  67. package/dist/openapi_client/models/ResourceType.d.ts +0 -1
  68. package/dist/openapi_client/models/ResourceType.js +0 -1
  69. package/dist/openapi_client/models/SendMessageRequest.d.ts +5 -0
  70. package/dist/openapi_client/models/{ToolCallRequest.d.ts → ToolCallContent.d.ts} +1 -1
  71. package/dist/openapi_client/models/{ToolCallResponse.d.ts → ToolReturnContent.d.ts} +2 -1
  72. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +11 -7
  73. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -5
  74. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +2 -2
  75. package/dist/openapi_client/models/WorkflowInstallListResponse.d.ts +4 -0
  76. package/dist/openapi_client/models/app__modules__agent__domain__value_objects__TableAccessEntry.d.ts +8 -0
  77. package/dist/openapi_client/models/{TableAccessEntry.d.ts → app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts} +1 -1
  78. package/dist/openapi_client/models/update.d.ts +2 -2
  79. package/dist/openapi_client/services/AgentConversationsService.d.ts +97 -0
  80. package/dist/openapi_client/services/AgentConversationsService.js +217 -0
  81. package/dist/openapi_client/services/{AssistantSurfacesIngressService.d.ts → AgentSurfacesIngressService.d.ts} +2 -2
  82. package/dist/openapi_client/services/{AssistantSurfacesIngressService.js → AgentSurfacesIngressService.js} +2 -2
  83. package/dist/openapi_client/services/{AssistantSurfacesService.d.ts → AgentSurfacesService.d.ts} +11 -11
  84. package/dist/openapi_client/services/{AssistantSurfacesService.js → AgentSurfacesService.js} +10 -10
  85. package/dist/openapi_client/services/AgentToolsService.d.ts +24 -4
  86. package/dist/openapi_client/services/AgentToolsService.js +40 -4
  87. package/dist/openapi_client/services/AgentsService.d.ts +7 -7
  88. package/dist/openapi_client/services/AgentsService.js +8 -8
  89. package/dist/openapi_client/services/ApplicationsService.d.ts +10 -9
  90. package/dist/openapi_client/services/ApplicationsService.js +11 -10
  91. package/dist/openapi_client/services/FilesService.d.ts +17 -8
  92. package/dist/openapi_client/services/FilesService.js +25 -8
  93. package/dist/openapi_client/services/IntegrationsService.d.ts +3 -2
  94. package/dist/openapi_client/services/IntegrationsService.js +4 -2
  95. package/dist/openapi_client/services/OrganizationsService.d.ts +18 -0
  96. package/dist/openapi_client/services/OrganizationsService.js +40 -0
  97. package/dist/openapi_client/services/WorkflowsService.d.ts +10 -0
  98. package/dist/openapi_client/services/WorkflowsService.js +21 -0
  99. package/dist/react/useAgentRun.d.ts +28 -7
  100. package/dist/react/useAgentRun.js +120 -27
  101. package/dist/react/useAssistantController.d.ts +6 -2
  102. package/dist/react/useAssistantController.js +57 -14
  103. package/dist/react/useAssistantSession.d.ts +15 -3
  104. package/dist/react/useAssistantSession.js +19 -15
  105. package/dist/react/useConversationMessages.d.ts +6 -2
  106. package/dist/react/useConversationMessages.js +2 -1
  107. package/dist/react/useConversations.d.ts +6 -2
  108. package/dist/react/useConversations.js +7 -5
  109. package/dist/react/useCreateFolder.d.ts +4 -2
  110. package/dist/react/useCreateFolder.js +6 -3
  111. package/dist/react/useDeleteFile.d.ts +4 -1
  112. package/dist/react/useDeleteFile.js +3 -3
  113. package/dist/react/useFile.d.ts +4 -2
  114. package/dist/react/useFile.js +3 -3
  115. package/dist/react/useFilePreview.d.ts +4 -1
  116. package/dist/react/useFilePreview.js +5 -4
  117. package/dist/react/useFileTree.d.ts +4 -2
  118. package/dist/react/useFileTree.js +3 -2
  119. package/dist/react/useFiles.d.ts +4 -2
  120. package/dist/react/useFiles.js +5 -3
  121. package/dist/react/useUpdateFile.d.ts +4 -2
  122. package/dist/react/useUpdateFile.js +6 -3
  123. package/dist/react/useUploadFile.d.ts +4 -2
  124. package/dist/react/useUploadFile.js +6 -3
  125. package/dist/react/useWorkflowRun.js +1 -1
  126. package/dist/react/useWorkflowStart.js +1 -1
  127. package/dist/run-utils.d.ts +2 -1
  128. package/dist/types.d.ts +62 -6
  129. package/package.json +1 -1
  130. package/dist/namespaces/assistants.d.ts +0 -96
  131. package/dist/namespaces/assistants.js +0 -160
  132. package/dist/openapi_client/models/AddMessageRequest.d.ts +0 -6
  133. package/dist/openapi_client/models/AppDescriptorResponse.d.ts +0 -5
  134. package/dist/openapi_client/models/AssistantListResponse.d.ts +0 -6
  135. package/dist/openapi_client/models/AssistantResponse.d.ts +0 -23
  136. package/dist/openapi_client/models/AssistantSurfaceListResponse.d.ts +0 -6
  137. package/dist/openapi_client/models/AssistantSurfaceStatus.js +0 -10
  138. package/dist/openapi_client/models/AvailableModelInfo.d.ts +0 -8
  139. package/dist/openapi_client/models/AvailableModels.js +0 -15
  140. package/dist/openapi_client/models/AvailableModelsListResponse.d.ts +0 -7
  141. package/dist/openapi_client/models/ConversationMessageListResponse.d.ts +0 -6
  142. package/dist/openapi_client/models/ConversationMessageResponse.d.ts +0 -19
  143. package/dist/openapi_client/models/ConversationStatus.d.ts +0 -7
  144. package/dist/openapi_client/models/ConversationStatus.js +0 -12
  145. package/dist/openapi_client/models/ConversationType.d.ts +0 -8
  146. package/dist/openapi_client/models/ConversationType.js +0 -13
  147. package/dist/openapi_client/models/CreateAssistantRequest.d.ts +0 -18
  148. package/dist/openapi_client/models/CreateMessageRequest.d.ts +0 -6
  149. package/dist/openapi_client/models/CreateTaskRequest.d.ts +0 -10
  150. package/dist/openapi_client/models/FileVisibility.d.ts +0 -4
  151. package/dist/openapi_client/models/FileVisibility.js +0 -9
  152. package/dist/openapi_client/models/OperationListResponse.d.ts +0 -6
  153. package/dist/openapi_client/models/TaskListResponse.d.ts +0 -9
  154. package/dist/openapi_client/models/TaskMessageListResponse.d.ts +0 -9
  155. package/dist/openapi_client/models/TaskMessageResponse.d.ts +0 -15
  156. package/dist/openapi_client/models/TaskResponse.d.ts +0 -16
  157. package/dist/openapi_client/models/TaskResponse.js +0 -1
  158. package/dist/openapi_client/models/TaskStatus.d.ts +0 -12
  159. package/dist/openapi_client/models/TaskStatus.js +0 -17
  160. package/dist/openapi_client/models/ToolCallRequest.js +0 -1
  161. package/dist/openapi_client/models/ToolCallResponse.js +0 -1
  162. package/dist/openapi_client/models/ToolSet.js +0 -19
  163. package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +0 -17
  164. package/dist/openapi_client/models/UpdateAssistantRequest.js +0 -1
  165. package/dist/openapi_client/services/AssistantsService.d.ts +0 -49
  166. package/dist/openapi_client/services/AssistantsService.js +0 -112
  167. package/dist/openapi_client/services/ConversationsService.d.ts +0 -88
  168. package/dist/openapi_client/services/ConversationsService.js +0 -202
  169. package/dist/openapi_client/services/TasksService.d.ts +0 -76
  170. package/dist/openapi_client/services/TasksService.js +0 -167
  171. /package/dist/openapi_client/models/{AddMessageRequest.js → AgentSurfaceListResponse.js} +0 -0
  172. /package/dist/openapi_client/models/{AppDescriptorResponse.js → AgentSurfaceResponse.js} +0 -0
  173. /package/dist/openapi_client/models/{AssistantListResponse.js → IntegrationHelperAgentRequest.js} +0 -0
  174. /package/dist/openapi_client/models/{AssistantResponse.js → IntegrationHelperAgentResponse.js} +0 -0
  175. /package/dist/openapi_client/models/{AssistantSurfaceListResponse.js → MessageListResponse.js} +0 -0
  176. /package/dist/openapi_client/models/{AssistantSurfaceResponse.js → MessageResponse.js} +0 -0
  177. /package/dist/openapi_client/models/{AvailableModelInfo.js → OperationDetailsBatchRequest.js} +0 -0
  178. /package/dist/openapi_client/models/{AvailableModelsListResponse.js → OperationDetailsBatchResponse.js} +0 -0
  179. /package/dist/openapi_client/models/{ConversationMessageListResponse.js → OperationDiscoverResponse.js} +0 -0
  180. /package/dist/openapi_client/models/{ConversationMessageResponse.js → OrganizationSlugAvailabilityResponse.js} +0 -0
  181. /package/dist/openapi_client/models/{CreateAssistantRequest.js → ReportFeedbackRequest.js} +0 -0
  182. /package/dist/openapi_client/models/{CreateMessageRequest.js → ReportFeedbackResponse.js} +0 -0
  183. /package/dist/openapi_client/models/{CreateTaskRequest.js → SendMessageRequest.js} +0 -0
  184. /package/dist/openapi_client/models/{OperationListResponse.js → ToolCallContent.js} +0 -0
  185. /package/dist/openapi_client/models/{TableAccessEntry.js → ToolReturnContent.js} +0 -0
  186. /package/dist/openapi_client/models/{TaskListResponse.js → WorkflowInstallListResponse.js} +0 -0
  187. /package/dist/openapi_client/models/{TaskMessageListResponse.js → app__modules__agent__domain__value_objects__TableAccessEntry.js} +0 -0
  188. /package/dist/openapi_client/models/{TaskMessageResponse.js → app__modules__function__api__schemas__function_schemas__TableAccessEntry.js} +0 -0
@@ -1,25 +1,14 @@
1
- import type { AvailableModels } from './AvailableModels.js';
2
- import type { ConversationStatus } from './ConversationStatus.js';
3
- import type { ConversationType } from './ConversationType.js';
4
- /**
5
- * Response for conversation.
6
- */
1
+ import type { AgentModelName } from './AgentModelName.js';
7
2
  export type ConversationResponse = {
8
- assistant_id: (string | null);
9
- assistant_name?: (string | null);
10
- conversation_type?: ConversationType;
11
- created_at: any;
12
- external_channel_id?: (string | null);
13
- external_thread_id?: (string | null);
14
- external_user_id?: (string | null);
3
+ agent_id?: (string | null);
4
+ created_at: string;
15
5
  id: string;
16
- model?: (AvailableModels | null);
6
+ metadata?: (Record<string, any> | null);
7
+ model_name?: (AgentModelName | null);
17
8
  organization_id?: (string | null);
18
- pod_id: (string | null);
19
- status: ConversationStatus;
20
- surface_installation_id?: (string | null);
21
- surface_type?: (string | null);
22
- title: (string | null);
23
- updated_at: any;
9
+ parent_id?: (string | null);
10
+ pod_id: string;
11
+ title?: (string | null);
12
+ updated_at: string;
24
13
  user_id: string;
25
14
  };
@@ -1,18 +1,22 @@
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 creating an agent.
6
- */
5
+ import type { HarnessKind } from './HarnessKind.js';
7
6
  export type CreateAgentRequest = {
8
7
  accessible_applications?: Array<ApplicationAccessConfig>;
9
8
  accessible_folders?: Array<string>;
10
- accessible_tables?: Array<TableAccessEntry>;
9
+ accessible_tables?: Array<app__modules__agent__domain__value_objects__TableAccessEntry>;
10
+ agent_names?: Array<string>;
11
11
  description?: (string | null);
12
+ function_names?: Array<string>;
13
+ harness_kind?: HarnessKind;
12
14
  icon_url?: (string | null);
13
15
  input_schema?: (Record<string, any> | null);
14
16
  instruction: string;
17
+ metadata?: (Record<string, any> | null);
18
+ model_name?: AgentModelName;
15
19
  name: string;
16
20
  output_schema?: (Record<string, any> | null);
17
- tool_sets?: Array<ToolSet>;
21
+ toolsets?: Array<AgentToolset>;
18
22
  };
@@ -1,11 +1,7 @@
1
- import type { AvailableModels } from './AvailableModels.js';
2
- /**
3
- * Request to create a conversation.
4
- */
1
+ import type { AgentModelName } from './AgentModelName.js';
5
2
  export type CreateConversationRequest = {
6
- assistant_name?: (string | null);
7
- model?: (AvailableModels | null);
8
- organization_id?: (string | null);
9
- pod_id?: (string | null);
3
+ agent_name?: (string | null);
4
+ model_name?: (AgentModelName | null);
5
+ parent_id?: (string | null);
10
6
  title?: (string | null);
11
7
  };
@@ -1,11 +1,8 @@
1
- import type { FileVisibility } from './FileVisibility.js';
1
+ import type { FileNamespace } from './FileNamespace.js';
2
2
  export type CreateFolderRequest = {
3
3
  description?: (string | null);
4
4
  name?: (string | null);
5
+ namespace?: (FileNamespace | null);
5
6
  parent_id?: (string | null);
6
7
  path?: (string | null);
7
- /**
8
- * Optional visibility override for the new folder.
9
- */
10
- visibility?: (FileVisibility | null);
11
8
  };
@@ -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 create a function.
6
6
  */
7
7
  export type CreateFunctionRequest = {
8
8
  accessible_applications?: Array<ApplicationAccessConfig>;
9
9
  accessible_folders?: Array<string>;
10
- accessible_tables?: Array<TableAccessEntry>;
10
+ accessible_tables?: Array<app__modules__function__api__schemas__function_schemas__TableAccessEntry>;
11
11
  code?: (string | null);
12
12
  config?: (Record<string, any> | null);
13
13
  config_schema?: (Record<string, any> | null);
@@ -11,7 +11,7 @@ import type { TelegramSurfaceConfigInput } from './TelegramSurfaceConfigInput.js
11
11
  import type { WhatsAppCredentialsInput } from './WhatsAppCredentialsInput.js';
12
12
  import type { WhatsAppSurfaceConfigInput } from './WhatsAppSurfaceConfigInput.js';
13
13
  export type CreateSurfaceRequest = {
14
- assistant_name: string;
14
+ agent_name?: (string | null);
15
15
  config: (SlackSurfaceConfigInput | TeamsSurfaceConfigInput | WhatsAppSurfaceConfigInput | TelegramSurfaceConfigInput | GmailSurfaceConfigInput | OutlookSurfaceConfigInput);
16
16
  credential_mode?: SurfaceCredentialMode;
17
17
  credentials?: ((SlackCredentialsInput | TeamsCredentialsInput | WhatsAppCredentialsInput | TelegramCredentialsInput) | null);
@@ -1,9 +1,9 @@
1
- import type { FileVisibility } from './FileVisibility.js';
1
+ import type { FileNamespace } from './FileNamespace.js';
2
2
  export type DatastoreFileUploadRequest = {
3
3
  data: string;
4
4
  description?: (string | null);
5
5
  directory_path?: string;
6
6
  name?: (string | null);
7
+ namespace?: (FileNamespace | null);
7
8
  search_enabled?: boolean;
8
- visibility?: (FileVisibility | null);
9
9
  };
@@ -0,0 +1,7 @@
1
+ export declare enum FeedbackCategory {
2
+ SYSTEM_ISSUE = "SYSTEM_ISSUE",
3
+ SKILL_ISSUE = "SKILL_ISSUE",
4
+ INCORRECT_KNOWLEDGE = "INCORRECT_KNOWLEDGE",
5
+ TOOLING_ISSUE = "TOOLING_ISSUE",
6
+ OTHER = "OTHER"
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
+ export var FeedbackCategory;
6
+ (function (FeedbackCategory) {
7
+ FeedbackCategory["SYSTEM_ISSUE"] = "SYSTEM_ISSUE";
8
+ FeedbackCategory["SKILL_ISSUE"] = "SKILL_ISSUE";
9
+ FeedbackCategory["INCORRECT_KNOWLEDGE"] = "INCORRECT_KNOWLEDGE";
10
+ FeedbackCategory["TOOLING_ISSUE"] = "TOOLING_ISSUE";
11
+ FeedbackCategory["OTHER"] = "OTHER";
12
+ })(FeedbackCategory || (FeedbackCategory = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum FileNamespace {
2
+ PERSONAL = "PERSONAL",
3
+ POD = "POD"
4
+ }
@@ -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
  };
@@ -16,10 +16,20 @@ export type FlowRunEntity = {
16
16
  started_at?: (string | null);
17
17
  status?: FlowRunStatus;
18
18
  step_history?: Array<StepExecution>;
19
+ trigger_event_id?: (string | null);
19
20
  trigger_type?: string;
20
21
  updated_at?: string;
21
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
+ */
22
30
  waiting_function_run_id?: (string | null);
23
- waiting_task_id?: (string | null);
31
+ /**
32
+ * Trigger id when the workflow is waiting for an external trigger.
33
+ */
24
34
  waiting_trigger_id?: (string | null);
25
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,13 @@
1
+ /**
2
+ * Request model for the integration helper agent.
3
+ */
4
+ export type IntegrationHelperAgentRequest = {
5
+ /**
6
+ * Application IDs the agent may use while planning the goal.
7
+ */
8
+ app_names: Array<string>;
9
+ /**
10
+ * What the caller wants to achieve with one or more integrations.
11
+ */
12
+ goal: string;
13
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Response model for the integration helper agent.
3
+ */
4
+ export type IntegrationHelperAgentResponse = {
5
+ /**
6
+ * Detailed markdown guidance for accomplishing the requested goal.
7
+ */
8
+ answer_markdown?: (string | null);
9
+ /**
10
+ * Error message when the helper agent fails.
11
+ */
12
+ error?: (string | null);
13
+ /**
14
+ * Human-readable status message.
15
+ */
16
+ message?: (string | null);
17
+ /**
18
+ * Recommended operation names grouped by application.
19
+ */
20
+ operations_by_app?: Record<string, Array<string>>;
21
+ /**
22
+ * Whether the helper agent completed successfully.
23
+ */
24
+ success: boolean;
25
+ };
@@ -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
+ };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Full operation metadata including input and output schemas.
3
+ */
1
4
  export type OperationDetail = {
2
5
  description?: (string | null);
3
6
  input_schema: Record<string, any>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Request multiple operation details in a single call.
3
+ */
4
+ export type OperationDetailsBatchRequest = {
5
+ /**
6
+ * Operation names to fetch. Omit or pass an empty list to return details for every operation in the application.
7
+ */
8
+ operation_names?: (Array<string> | null);
9
+ };
@@ -0,0 +1,18 @@
1
+ import type { OperationDetail } from './OperationDetail.js';
2
+ /**
3
+ * Batch response containing full metadata for multiple operations.
4
+ */
5
+ export type OperationDetailsBatchResponse = {
6
+ /**
7
+ * Application identifier.
8
+ */
9
+ application_id: string;
10
+ /**
11
+ * Operation details for the requested operations.
12
+ */
13
+ items: Array<OperationDetail>;
14
+ /**
15
+ * Number of operation details returned in this response.
16
+ */
17
+ returned_count: number;
18
+ };
@@ -0,0 +1,26 @@
1
+ import type { OperationSummary } from './OperationSummary.js';
2
+ /**
3
+ * Structured result for operation discovery within one application.
4
+ */
5
+ export type OperationDiscoverResponse = {
6
+ /**
7
+ * Application identifier.
8
+ */
9
+ application_id: string;
10
+ /**
11
+ * Matching operations with compact descriptions.
12
+ */
13
+ items: Array<OperationSummary>;
14
+ /**
15
+ * Optional discovery query used to rank or filter operations.
16
+ */
17
+ query?: (string | null);
18
+ /**
19
+ * Number of operations returned in this response.
20
+ */
21
+ returned_count: number;
22
+ /**
23
+ * Total operations available for the application.
24
+ */
25
+ total_operations: number;
26
+ };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Compact operation metadata for discovery flows.
3
+ */
1
4
  export type OperationSummary = {
2
5
  description?: (string | null);
3
6
  name: string;
@@ -2,5 +2,7 @@
2
2
  * Organization creation request schema.
3
3
  */
4
4
  export type OrganizationCreateRequest = {
5
+ allow_auto_join?: boolean;
6
+ email_domain?: (string | null);
5
7
  name: string;
6
8
  };
@@ -6,5 +6,6 @@ export type OrganizationInvitationRequest = {
6
6
  email: string;
7
7
  pod_id?: (string | null);
8
8
  pod_role?: (string | null);
9
+ redirect_uri?: (string | null);
9
10
  role: OrganizationRole;
10
11
  };
@@ -10,8 +10,12 @@ export type OrganizationInvitationResponse = {
10
10
  expires_at: string;
11
11
  id: string;
12
12
  organization_id: string;
13
+ organization_name?: (string | null);
14
+ pod_description?: (string | null);
13
15
  pod_id?: (string | null);
16
+ pod_name?: (string | null);
14
17
  pod_role?: (string | null);
18
+ redirect_uri?: (string | null);
15
19
  revoked_at?: (string | null);
16
20
  role: OrganizationRole;
17
21
  status: OrganizationInvitationStatus;
@@ -3,5 +3,6 @@
3
3
  */
4
4
  export type OrganizationMessageResponse = {
5
5
  message: string;
6
+ redirect_uri?: (string | null);
6
7
  success?: boolean;
7
8
  };
@@ -2,7 +2,9 @@
2
2
  * Organization response schema.
3
3
  */
4
4
  export type OrganizationResponse = {
5
+ allow_auto_join: boolean;
5
6
  created_at: string;
7
+ email_domain?: (string | null);
6
8
  id: string;
7
9
  name: string;
8
10
  slug: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Organization slug availability response.
3
+ */
4
+ export type OrganizationSlugAvailabilityResponse = {
5
+ available: boolean;
6
+ slug: string;
7
+ };
@@ -0,0 +1,30 @@
1
+ import type { FeedbackCategory } from './FeedbackCategory.js';
2
+ /**
3
+ * Request payload for maintainer feedback reports.
4
+ */
5
+ export type ReportFeedbackRequest = {
6
+ /**
7
+ * What actually happened.
8
+ */
9
+ actual_behavior: string;
10
+ /**
11
+ * High-level category for the feedback report.
12
+ */
13
+ category: FeedbackCategory;
14
+ /**
15
+ * What the caller expected to happen instead.
16
+ */
17
+ expected_behavior: string;
18
+ /**
19
+ * What issue, problem, or incorrect information was encountered.
20
+ */
21
+ issue_encountered: string;
22
+ /**
23
+ * Short subject line summarizing the report.
24
+ */
25
+ subject: string;
26
+ /**
27
+ * Optional proposed fixes, follow-ups, or next steps.
28
+ */
29
+ suggested_next_steps?: (string | null);
30
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Response payload for maintainer feedback reports.
3
+ */
4
+ export type ReportFeedbackResponse = {
5
+ /**
6
+ * Delegated agent associated with the report, if available.
7
+ */
8
+ agent_id?: (string | null);
9
+ /**
10
+ * Identifier of the created feedback report.
11
+ */
12
+ feedback_id?: (string | null);
13
+ /**
14
+ * Human-readable status message.
15
+ */
16
+ message?: (string | null);
17
+ /**
18
+ * Whether the feedback was recorded successfully.
19
+ */
20
+ success: boolean;
21
+ /**
22
+ * Authenticated user associated with the report.
23
+ */
24
+ user_id?: (string | null);
25
+ };
@@ -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,4 @@
1
+ import type { FlowInstallResponse } from './FlowInstallResponse.js';
2
+ export type WorkflowInstallListResponse = {
3
+ items: Array<FlowInstallResponse>;
4
+ };
@@ -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
  };