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.
- package/README.md +126 -43
- package/dist/browser/lemma-client.js +456 -169
- package/dist/client.d.ts +1 -2
- package/dist/client.js +1 -3
- package/dist/index.d.ts +1 -1
- package/dist/namespaces/agents.js +1 -1
- package/dist/namespaces/conversations.d.ts +73 -0
- package/dist/namespaces/conversations.js +174 -0
- package/dist/namespaces/files.d.ts +24 -6
- package/dist/namespaces/files.js +25 -12
- package/dist/namespaces/integrations.d.ts +10 -2
- package/dist/namespaces/integrations.js +17 -2
- package/dist/namespaces/pod-surfaces.d.ts +1 -1
- package/dist/namespaces/pod-surfaces.js +6 -6
- package/dist/namespaces/tasks.d.ts +1 -5
- package/dist/namespaces/tasks.js +54 -12
- package/dist/openapi_client/index.d.ts +27 -34
- package/dist/openapi_client/index.js +9 -12
- package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +2 -2
- package/dist/openapi_client/models/AgentListResponse.d.ts +2 -4
- package/dist/openapi_client/models/AgentMessageResponse.d.ts +0 -3
- package/dist/openapi_client/models/{AvailableModels.d.ts → AgentModelName.d.ts} +4 -1
- package/dist/openapi_client/models/AgentModelName.js +18 -0
- package/dist/openapi_client/models/AgentResponse.d.ts +18 -13
- package/dist/openapi_client/models/AgentSurfaceListResponse.d.ts +6 -0
- package/dist/openapi_client/models/{AssistantSurfaceResponse.d.ts → AgentSurfaceResponse.d.ts} +6 -5
- package/dist/openapi_client/models/{AssistantSurfaceStatus.d.ts → AgentSurfaceStatus.d.ts} +1 -1
- package/dist/openapi_client/models/AgentSurfaceStatus.js +10 -0
- package/dist/openapi_client/models/{ToolSet.d.ts → AgentToolset.d.ts} +3 -5
- package/dist/openapi_client/models/AgentToolset.js +17 -0
- package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +3 -5
- package/dist/openapi_client/models/ApplicationMode.d.ts +3 -3
- package/dist/openapi_client/models/ApplicationMode.js +3 -3
- package/dist/openapi_client/models/ConversationResponse.d.ts +9 -20
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +11 -7
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -8
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -5
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +2 -2
- package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +1 -1
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +2 -2
- package/dist/openapi_client/models/FeedbackCategory.d.ts +7 -0
- package/dist/openapi_client/models/FeedbackCategory.js +12 -0
- package/dist/openapi_client/models/FileNamespace.d.ts +4 -0
- package/dist/openapi_client/models/FileNamespace.js +9 -0
- package/dist/openapi_client/models/FileResponse.d.ts +2 -2
- package/dist/openapi_client/models/FlowRunEntity.d.ts +11 -1
- package/dist/openapi_client/models/FunctionResponse.d.ts +2 -2
- package/dist/openapi_client/models/HarnessKind.d.ts +7 -0
- package/dist/openapi_client/models/HarnessKind.js +12 -0
- package/dist/openapi_client/models/IntegrationHelperAgentRequest.d.ts +13 -0
- package/dist/openapi_client/models/IntegrationHelperAgentResponse.d.ts +25 -0
- package/dist/openapi_client/models/MessageListResponse.d.ts +6 -0
- package/dist/openapi_client/models/MessageResponse.d.ts +17 -0
- package/dist/openapi_client/models/OperationDetail.d.ts +3 -0
- package/dist/openapi_client/models/OperationDetailsBatchRequest.d.ts +9 -0
- package/dist/openapi_client/models/OperationDetailsBatchResponse.d.ts +18 -0
- package/dist/openapi_client/models/OperationDiscoverResponse.d.ts +26 -0
- package/dist/openapi_client/models/OperationSummary.d.ts +3 -0
- package/dist/openapi_client/models/OrganizationCreateRequest.d.ts +2 -0
- package/dist/openapi_client/models/OrganizationInvitationRequest.d.ts +1 -0
- package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +4 -0
- package/dist/openapi_client/models/OrganizationMessageResponse.d.ts +1 -0
- package/dist/openapi_client/models/OrganizationResponse.d.ts +2 -0
- package/dist/openapi_client/models/OrganizationSlugAvailabilityResponse.d.ts +7 -0
- package/dist/openapi_client/models/ReportFeedbackRequest.d.ts +30 -0
- package/dist/openapi_client/models/ReportFeedbackResponse.d.ts +25 -0
- package/dist/openapi_client/models/ResourceType.d.ts +0 -1
- package/dist/openapi_client/models/ResourceType.js +0 -1
- package/dist/openapi_client/models/SendMessageRequest.d.ts +5 -0
- package/dist/openapi_client/models/{ToolCallRequest.d.ts → ToolCallContent.d.ts} +1 -1
- package/dist/openapi_client/models/{ToolCallResponse.d.ts → ToolReturnContent.d.ts} +2 -1
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +11 -7
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -5
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +2 -2
- package/dist/openapi_client/models/WorkflowInstallListResponse.d.ts +4 -0
- package/dist/openapi_client/models/app__modules__agent__domain__value_objects__TableAccessEntry.d.ts +8 -0
- package/dist/openapi_client/models/{TableAccessEntry.d.ts → app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts} +1 -1
- package/dist/openapi_client/models/update.d.ts +2 -2
- package/dist/openapi_client/services/AgentConversationsService.d.ts +97 -0
- package/dist/openapi_client/services/AgentConversationsService.js +217 -0
- package/dist/openapi_client/services/{AssistantSurfacesIngressService.d.ts → AgentSurfacesIngressService.d.ts} +2 -2
- package/dist/openapi_client/services/{AssistantSurfacesIngressService.js → AgentSurfacesIngressService.js} +2 -2
- package/dist/openapi_client/services/{AssistantSurfacesService.d.ts → AgentSurfacesService.d.ts} +11 -11
- package/dist/openapi_client/services/{AssistantSurfacesService.js → AgentSurfacesService.js} +10 -10
- package/dist/openapi_client/services/AgentToolsService.d.ts +24 -4
- package/dist/openapi_client/services/AgentToolsService.js +40 -4
- package/dist/openapi_client/services/AgentsService.d.ts +7 -7
- package/dist/openapi_client/services/AgentsService.js +8 -8
- package/dist/openapi_client/services/ApplicationsService.d.ts +10 -9
- package/dist/openapi_client/services/ApplicationsService.js +11 -10
- package/dist/openapi_client/services/FilesService.d.ts +17 -8
- package/dist/openapi_client/services/FilesService.js +25 -8
- package/dist/openapi_client/services/IntegrationsService.d.ts +3 -2
- package/dist/openapi_client/services/IntegrationsService.js +4 -2
- package/dist/openapi_client/services/OrganizationsService.d.ts +18 -0
- package/dist/openapi_client/services/OrganizationsService.js +40 -0
- package/dist/openapi_client/services/WorkflowsService.d.ts +10 -0
- package/dist/openapi_client/services/WorkflowsService.js +21 -0
- package/dist/react/useAgentRun.d.ts +28 -7
- package/dist/react/useAgentRun.js +120 -27
- package/dist/react/useAssistantController.d.ts +6 -2
- package/dist/react/useAssistantController.js +57 -14
- package/dist/react/useAssistantSession.d.ts +15 -3
- package/dist/react/useAssistantSession.js +19 -15
- package/dist/react/useConversationMessages.d.ts +6 -2
- package/dist/react/useConversationMessages.js +2 -1
- package/dist/react/useConversations.d.ts +6 -2
- package/dist/react/useConversations.js +7 -5
- package/dist/react/useCreateFolder.d.ts +4 -2
- package/dist/react/useCreateFolder.js +6 -3
- package/dist/react/useDeleteFile.d.ts +4 -1
- package/dist/react/useDeleteFile.js +3 -3
- package/dist/react/useFile.d.ts +4 -2
- package/dist/react/useFile.js +3 -3
- package/dist/react/useFilePreview.d.ts +4 -1
- package/dist/react/useFilePreview.js +5 -4
- package/dist/react/useFileTree.d.ts +4 -2
- package/dist/react/useFileTree.js +3 -2
- package/dist/react/useFiles.d.ts +4 -2
- package/dist/react/useFiles.js +5 -3
- package/dist/react/useUpdateFile.d.ts +4 -2
- package/dist/react/useUpdateFile.js +6 -3
- package/dist/react/useUploadFile.d.ts +4 -2
- package/dist/react/useUploadFile.js +6 -3
- package/dist/react/useWorkflowRun.js +1 -1
- package/dist/react/useWorkflowStart.js +1 -1
- package/dist/run-utils.d.ts +2 -1
- package/dist/types.d.ts +62 -6
- package/package.json +1 -1
- package/dist/namespaces/assistants.d.ts +0 -96
- package/dist/namespaces/assistants.js +0 -160
- package/dist/openapi_client/models/AddMessageRequest.d.ts +0 -6
- package/dist/openapi_client/models/AppDescriptorResponse.d.ts +0 -5
- package/dist/openapi_client/models/AssistantListResponse.d.ts +0 -6
- package/dist/openapi_client/models/AssistantResponse.d.ts +0 -23
- package/dist/openapi_client/models/AssistantSurfaceListResponse.d.ts +0 -6
- package/dist/openapi_client/models/AssistantSurfaceStatus.js +0 -10
- package/dist/openapi_client/models/AvailableModelInfo.d.ts +0 -8
- package/dist/openapi_client/models/AvailableModels.js +0 -15
- package/dist/openapi_client/models/AvailableModelsListResponse.d.ts +0 -7
- package/dist/openapi_client/models/ConversationMessageListResponse.d.ts +0 -6
- package/dist/openapi_client/models/ConversationMessageResponse.d.ts +0 -19
- package/dist/openapi_client/models/ConversationStatus.d.ts +0 -7
- package/dist/openapi_client/models/ConversationStatus.js +0 -12
- package/dist/openapi_client/models/ConversationType.d.ts +0 -8
- package/dist/openapi_client/models/ConversationType.js +0 -13
- package/dist/openapi_client/models/CreateAssistantRequest.d.ts +0 -18
- package/dist/openapi_client/models/CreateMessageRequest.d.ts +0 -6
- package/dist/openapi_client/models/CreateTaskRequest.d.ts +0 -10
- package/dist/openapi_client/models/FileVisibility.d.ts +0 -4
- package/dist/openapi_client/models/FileVisibility.js +0 -9
- package/dist/openapi_client/models/OperationListResponse.d.ts +0 -6
- package/dist/openapi_client/models/TaskListResponse.d.ts +0 -9
- package/dist/openapi_client/models/TaskMessageListResponse.d.ts +0 -9
- package/dist/openapi_client/models/TaskMessageResponse.d.ts +0 -15
- package/dist/openapi_client/models/TaskResponse.d.ts +0 -16
- package/dist/openapi_client/models/TaskResponse.js +0 -1
- package/dist/openapi_client/models/TaskStatus.d.ts +0 -12
- package/dist/openapi_client/models/TaskStatus.js +0 -17
- package/dist/openapi_client/models/ToolCallRequest.js +0 -1
- package/dist/openapi_client/models/ToolCallResponse.js +0 -1
- package/dist/openapi_client/models/ToolSet.js +0 -19
- package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +0 -17
- package/dist/openapi_client/models/UpdateAssistantRequest.js +0 -1
- package/dist/openapi_client/services/AssistantsService.d.ts +0 -49
- package/dist/openapi_client/services/AssistantsService.js +0 -112
- package/dist/openapi_client/services/ConversationsService.d.ts +0 -88
- package/dist/openapi_client/services/ConversationsService.js +0 -202
- package/dist/openapi_client/services/TasksService.d.ts +0 -76
- package/dist/openapi_client/services/TasksService.js +0 -167
- /package/dist/openapi_client/models/{AddMessageRequest.js → AgentSurfaceListResponse.js} +0 -0
- /package/dist/openapi_client/models/{AppDescriptorResponse.js → AgentSurfaceResponse.js} +0 -0
- /package/dist/openapi_client/models/{AssistantListResponse.js → IntegrationHelperAgentRequest.js} +0 -0
- /package/dist/openapi_client/models/{AssistantResponse.js → IntegrationHelperAgentResponse.js} +0 -0
- /package/dist/openapi_client/models/{AssistantSurfaceListResponse.js → MessageListResponse.js} +0 -0
- /package/dist/openapi_client/models/{AssistantSurfaceResponse.js → MessageResponse.js} +0 -0
- /package/dist/openapi_client/models/{AvailableModelInfo.js → OperationDetailsBatchRequest.js} +0 -0
- /package/dist/openapi_client/models/{AvailableModelsListResponse.js → OperationDetailsBatchResponse.js} +0 -0
- /package/dist/openapi_client/models/{ConversationMessageListResponse.js → OperationDiscoverResponse.js} +0 -0
- /package/dist/openapi_client/models/{ConversationMessageResponse.js → OrganizationSlugAvailabilityResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateAssistantRequest.js → ReportFeedbackRequest.js} +0 -0
- /package/dist/openapi_client/models/{CreateMessageRequest.js → ReportFeedbackResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateTaskRequest.js → SendMessageRequest.js} +0 -0
- /package/dist/openapi_client/models/{OperationListResponse.js → ToolCallContent.js} +0 -0
- /package/dist/openapi_client/models/{TableAccessEntry.js → ToolReturnContent.js} +0 -0
- /package/dist/openapi_client/models/{TaskListResponse.js → WorkflowInstallListResponse.js} +0 -0
- /package/dist/openapi_client/models/{TaskMessageListResponse.js → app__modules__agent__domain__value_objects__TableAccessEntry.js} +0 -0
- /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 {
|
|
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
|
-
|
|
9
|
-
|
|
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
|
-
|
|
6
|
+
metadata?: (Record<string, any> | null);
|
|
7
|
+
model_name?: (AgentModelName | null);
|
|
17
8
|
organization_id?: (string | null);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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 {
|
|
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<
|
|
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
|
-
|
|
21
|
+
toolsets?: Array<AgentToolset>;
|
|
18
22
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/**
|
|
3
|
-
* Request to create a conversation.
|
|
4
|
-
*/
|
|
1
|
+
import type { AgentModelName } from './AgentModelName.js';
|
|
5
2
|
export type CreateConversationRequest = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 {
|
|
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<
|
|
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
|
-
|
|
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 {
|
|
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,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,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 {
|
|
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
|
-
|
|
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<
|
|
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,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,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
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -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;
|
|
@@ -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,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 {
|
|
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<
|
|
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
|
-
|
|
20
|
+
toolsets?: (Array<AgentToolset> | null);
|
|
17
21
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/**
|
|
3
|
-
* Request to update a conversation.
|
|
4
|
-
*/
|
|
1
|
+
import type { AgentModelName } from './AgentModelName.js';
|
|
5
2
|
export type UpdateConversationRequest = {
|
|
6
|
-
|
|
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<
|
|
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);
|