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,49 +0,0 @@
|
|
|
1
|
-
import type { AssistantListResponse } from '../models/AssistantListResponse.js';
|
|
2
|
-
import type { AssistantResponse } from '../models/AssistantResponse.js';
|
|
3
|
-
import type { CreateAssistantRequest } from '../models/CreateAssistantRequest.js';
|
|
4
|
-
import type { UpdateAssistantRequest } from '../models/UpdateAssistantRequest.js';
|
|
5
|
-
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
-
export declare class AssistantsService {
|
|
7
|
-
/**
|
|
8
|
-
* List Assistants
|
|
9
|
-
* @param podId
|
|
10
|
-
* @param limit
|
|
11
|
-
* @param pageToken
|
|
12
|
-
* @returns AssistantListResponse Successful Response
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
static assistantList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<AssistantListResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Create Assistant
|
|
18
|
-
* @param podId
|
|
19
|
-
* @param requestBody
|
|
20
|
-
* @returns AssistantResponse Successful Response
|
|
21
|
-
* @throws ApiError
|
|
22
|
-
*/
|
|
23
|
-
static assistantCreate(podId: string, requestBody: CreateAssistantRequest): CancelablePromise<AssistantResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Delete Assistant
|
|
26
|
-
* @param podId
|
|
27
|
-
* @param assistantName
|
|
28
|
-
* @returns void
|
|
29
|
-
* @throws ApiError
|
|
30
|
-
*/
|
|
31
|
-
static assistantDelete(podId: string, assistantName: string): CancelablePromise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Get Assistant
|
|
34
|
-
* @param podId
|
|
35
|
-
* @param assistantName
|
|
36
|
-
* @returns AssistantResponse Successful Response
|
|
37
|
-
* @throws ApiError
|
|
38
|
-
*/
|
|
39
|
-
static assistantGet(podId: string, assistantName: string): CancelablePromise<AssistantResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* Update Assistant
|
|
42
|
-
* @param podId
|
|
43
|
-
* @param assistantName
|
|
44
|
-
* @param requestBody
|
|
45
|
-
* @returns AssistantResponse Successful Response
|
|
46
|
-
* @throws ApiError
|
|
47
|
-
*/
|
|
48
|
-
static assistantUpdate(podId: string, assistantName: string, requestBody: UpdateAssistantRequest): CancelablePromise<AssistantResponse>;
|
|
49
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
-
import { request as __request } from '../core/request.js';
|
|
3
|
-
export class AssistantsService {
|
|
4
|
-
/**
|
|
5
|
-
* List Assistants
|
|
6
|
-
* @param podId
|
|
7
|
-
* @param limit
|
|
8
|
-
* @param pageToken
|
|
9
|
-
* @returns AssistantListResponse Successful Response
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static assistantList(podId, limit = 100, pageToken) {
|
|
13
|
-
return __request(OpenAPI, {
|
|
14
|
-
method: 'GET',
|
|
15
|
-
url: '/pods/{pod_id}/assistants',
|
|
16
|
-
path: {
|
|
17
|
-
'pod_id': podId,
|
|
18
|
-
},
|
|
19
|
-
query: {
|
|
20
|
-
'limit': limit,
|
|
21
|
-
'page_token': pageToken,
|
|
22
|
-
},
|
|
23
|
-
errors: {
|
|
24
|
-
422: `Validation Error`,
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Create Assistant
|
|
30
|
-
* @param podId
|
|
31
|
-
* @param requestBody
|
|
32
|
-
* @returns AssistantResponse Successful Response
|
|
33
|
-
* @throws ApiError
|
|
34
|
-
*/
|
|
35
|
-
static assistantCreate(podId, requestBody) {
|
|
36
|
-
return __request(OpenAPI, {
|
|
37
|
-
method: 'POST',
|
|
38
|
-
url: '/pods/{pod_id}/assistants',
|
|
39
|
-
path: {
|
|
40
|
-
'pod_id': podId,
|
|
41
|
-
},
|
|
42
|
-
body: requestBody,
|
|
43
|
-
mediaType: 'application/json',
|
|
44
|
-
errors: {
|
|
45
|
-
422: `Validation Error`,
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Delete Assistant
|
|
51
|
-
* @param podId
|
|
52
|
-
* @param assistantName
|
|
53
|
-
* @returns void
|
|
54
|
-
* @throws ApiError
|
|
55
|
-
*/
|
|
56
|
-
static assistantDelete(podId, assistantName) {
|
|
57
|
-
return __request(OpenAPI, {
|
|
58
|
-
method: 'DELETE',
|
|
59
|
-
url: '/pods/{pod_id}/assistants/{assistant_name}',
|
|
60
|
-
path: {
|
|
61
|
-
'pod_id': podId,
|
|
62
|
-
'assistant_name': assistantName,
|
|
63
|
-
},
|
|
64
|
-
errors: {
|
|
65
|
-
422: `Validation Error`,
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Get Assistant
|
|
71
|
-
* @param podId
|
|
72
|
-
* @param assistantName
|
|
73
|
-
* @returns AssistantResponse Successful Response
|
|
74
|
-
* @throws ApiError
|
|
75
|
-
*/
|
|
76
|
-
static assistantGet(podId, assistantName) {
|
|
77
|
-
return __request(OpenAPI, {
|
|
78
|
-
method: 'GET',
|
|
79
|
-
url: '/pods/{pod_id}/assistants/{assistant_name}',
|
|
80
|
-
path: {
|
|
81
|
-
'pod_id': podId,
|
|
82
|
-
'assistant_name': assistantName,
|
|
83
|
-
},
|
|
84
|
-
errors: {
|
|
85
|
-
422: `Validation Error`,
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Update Assistant
|
|
91
|
-
* @param podId
|
|
92
|
-
* @param assistantName
|
|
93
|
-
* @param requestBody
|
|
94
|
-
* @returns AssistantResponse Successful Response
|
|
95
|
-
* @throws ApiError
|
|
96
|
-
*/
|
|
97
|
-
static assistantUpdate(podId, assistantName, requestBody) {
|
|
98
|
-
return __request(OpenAPI, {
|
|
99
|
-
method: 'PATCH',
|
|
100
|
-
url: '/pods/{pod_id}/assistants/{assistant_name}',
|
|
101
|
-
path: {
|
|
102
|
-
'pod_id': podId,
|
|
103
|
-
'assistant_name': assistantName,
|
|
104
|
-
},
|
|
105
|
-
body: requestBody,
|
|
106
|
-
mediaType: 'application/json',
|
|
107
|
-
errors: {
|
|
108
|
-
422: `Validation Error`,
|
|
109
|
-
},
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import type { AvailableModelsListResponse } from '../models/AvailableModelsListResponse.js';
|
|
2
|
-
import type { ConversationListResponse } from '../models/ConversationListResponse.js';
|
|
3
|
-
import type { ConversationMessageListResponse } from '../models/ConversationMessageListResponse.js';
|
|
4
|
-
import type { ConversationResponse } from '../models/ConversationResponse.js';
|
|
5
|
-
import type { CreateConversationRequest } from '../models/CreateConversationRequest.js';
|
|
6
|
-
import type { CreateMessageRequest } from '../models/CreateMessageRequest.js';
|
|
7
|
-
import type { UpdateConversationRequest } from '../models/UpdateConversationRequest.js';
|
|
8
|
-
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
9
|
-
export declare class ConversationsService {
|
|
10
|
-
/**
|
|
11
|
-
* List Conversations
|
|
12
|
-
* @param assistantName
|
|
13
|
-
* @param podId
|
|
14
|
-
* @param organizationId
|
|
15
|
-
* @param globalOnly
|
|
16
|
-
* @param pageToken
|
|
17
|
-
* @param limit
|
|
18
|
-
* @returns ConversationListResponse Successful Response
|
|
19
|
-
* @throws ApiError
|
|
20
|
-
*/
|
|
21
|
-
static conversationList(assistantName?: (string | null), podId?: (string | null), organizationId?: (string | null), globalOnly?: boolean, pageToken?: (string | null), limit?: number): CancelablePromise<ConversationListResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Create Conversation
|
|
24
|
-
* @param requestBody
|
|
25
|
-
* @returns ConversationResponse Successful Response
|
|
26
|
-
* @throws ApiError
|
|
27
|
-
*/
|
|
28
|
-
static conversationCreate(requestBody: CreateConversationRequest): CancelablePromise<ConversationResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* Get Conversation
|
|
31
|
-
* @param conversationId
|
|
32
|
-
* @param podId
|
|
33
|
-
* @returns ConversationResponse Successful Response
|
|
34
|
-
* @throws ApiError
|
|
35
|
-
*/
|
|
36
|
-
static conversationGet(conversationId: string, podId?: (string | null)): CancelablePromise<ConversationResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* Update Conversation
|
|
39
|
-
* @param conversationId
|
|
40
|
-
* @param requestBody
|
|
41
|
-
* @param podId
|
|
42
|
-
* @returns ConversationResponse Successful Response
|
|
43
|
-
* @throws ApiError
|
|
44
|
-
*/
|
|
45
|
-
static conversationUpdate(conversationId: string, requestBody: UpdateConversationRequest, podId?: (string | null)): CancelablePromise<ConversationResponse>;
|
|
46
|
-
/**
|
|
47
|
-
* List Messages
|
|
48
|
-
* List messages in a conversation with token pagination. Use `page_token` to fetch older messages.
|
|
49
|
-
* @param conversationId
|
|
50
|
-
* @param pageToken
|
|
51
|
-
* @param limit
|
|
52
|
-
* @returns ConversationMessageListResponse Successful Response
|
|
53
|
-
* @throws ApiError
|
|
54
|
-
*/
|
|
55
|
-
static conversationMessageList(conversationId: string, pageToken?: (string | null), limit?: number): CancelablePromise<ConversationMessageListResponse>;
|
|
56
|
-
/**
|
|
57
|
-
* Send Message (Stream)
|
|
58
|
-
* @param conversationId
|
|
59
|
-
* @param requestBody
|
|
60
|
-
* @param podId
|
|
61
|
-
* @returns any Server-Sent Events
|
|
62
|
-
* @throws ApiError
|
|
63
|
-
*/
|
|
64
|
-
static conversationMessageCreate(conversationId: string, requestBody: CreateMessageRequest, podId?: (string | null)): CancelablePromise<any>;
|
|
65
|
-
/**
|
|
66
|
-
* Stop Conversation Run
|
|
67
|
-
* @param conversationId
|
|
68
|
-
* @param podId
|
|
69
|
-
* @returns any Successful Response
|
|
70
|
-
* @throws ApiError
|
|
71
|
-
*/
|
|
72
|
-
static conversationRunStop(conversationId: string, podId?: (string | null)): CancelablePromise<any>;
|
|
73
|
-
/**
|
|
74
|
-
* Resume Conversation Stream
|
|
75
|
-
* @param conversationId
|
|
76
|
-
* @param podId
|
|
77
|
-
* @returns any Server-Sent Events for an already-running conversation.
|
|
78
|
-
* @throws ApiError
|
|
79
|
-
*/
|
|
80
|
-
static conversationStreamResume(conversationId: string, podId?: (string | null)): CancelablePromise<any>;
|
|
81
|
-
/**
|
|
82
|
-
* List Available Models
|
|
83
|
-
* Get list of all available models in the system.
|
|
84
|
-
* @returns AvailableModelsListResponse Successful Response
|
|
85
|
-
* @throws ApiError
|
|
86
|
-
*/
|
|
87
|
-
static conversationModelsList(): CancelablePromise<AvailableModelsListResponse>;
|
|
88
|
-
}
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
-
import { request as __request } from '../core/request.js';
|
|
3
|
-
export class ConversationsService {
|
|
4
|
-
/**
|
|
5
|
-
* List Conversations
|
|
6
|
-
* @param assistantName
|
|
7
|
-
* @param podId
|
|
8
|
-
* @param organizationId
|
|
9
|
-
* @param globalOnly
|
|
10
|
-
* @param pageToken
|
|
11
|
-
* @param limit
|
|
12
|
-
* @returns ConversationListResponse Successful Response
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
static conversationList(assistantName, podId, organizationId, globalOnly = false, pageToken, limit = 20) {
|
|
16
|
-
return __request(OpenAPI, {
|
|
17
|
-
method: 'GET',
|
|
18
|
-
url: '/conversations',
|
|
19
|
-
query: {
|
|
20
|
-
'assistant_name': assistantName,
|
|
21
|
-
'pod_id': podId,
|
|
22
|
-
'organization_id': organizationId,
|
|
23
|
-
'global_only': globalOnly,
|
|
24
|
-
'page_token': pageToken,
|
|
25
|
-
'limit': limit,
|
|
26
|
-
},
|
|
27
|
-
errors: {
|
|
28
|
-
422: `Validation Error`,
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Create Conversation
|
|
34
|
-
* @param requestBody
|
|
35
|
-
* @returns ConversationResponse Successful Response
|
|
36
|
-
* @throws ApiError
|
|
37
|
-
*/
|
|
38
|
-
static conversationCreate(requestBody) {
|
|
39
|
-
return __request(OpenAPI, {
|
|
40
|
-
method: 'POST',
|
|
41
|
-
url: '/conversations',
|
|
42
|
-
body: requestBody,
|
|
43
|
-
mediaType: 'application/json',
|
|
44
|
-
errors: {
|
|
45
|
-
422: `Validation Error`,
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Get Conversation
|
|
51
|
-
* @param conversationId
|
|
52
|
-
* @param podId
|
|
53
|
-
* @returns ConversationResponse Successful Response
|
|
54
|
-
* @throws ApiError
|
|
55
|
-
*/
|
|
56
|
-
static conversationGet(conversationId, podId) {
|
|
57
|
-
return __request(OpenAPI, {
|
|
58
|
-
method: 'GET',
|
|
59
|
-
url: '/conversations/{conversation_id}',
|
|
60
|
-
path: {
|
|
61
|
-
'conversation_id': conversationId,
|
|
62
|
-
},
|
|
63
|
-
query: {
|
|
64
|
-
'pod_id': podId,
|
|
65
|
-
},
|
|
66
|
-
errors: {
|
|
67
|
-
422: `Validation Error`,
|
|
68
|
-
},
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Update Conversation
|
|
73
|
-
* @param conversationId
|
|
74
|
-
* @param requestBody
|
|
75
|
-
* @param podId
|
|
76
|
-
* @returns ConversationResponse Successful Response
|
|
77
|
-
* @throws ApiError
|
|
78
|
-
*/
|
|
79
|
-
static conversationUpdate(conversationId, requestBody, podId) {
|
|
80
|
-
return __request(OpenAPI, {
|
|
81
|
-
method: 'PATCH',
|
|
82
|
-
url: '/conversations/{conversation_id}',
|
|
83
|
-
path: {
|
|
84
|
-
'conversation_id': conversationId,
|
|
85
|
-
},
|
|
86
|
-
query: {
|
|
87
|
-
'pod_id': podId,
|
|
88
|
-
},
|
|
89
|
-
body: requestBody,
|
|
90
|
-
mediaType: 'application/json',
|
|
91
|
-
errors: {
|
|
92
|
-
422: `Validation Error`,
|
|
93
|
-
},
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* List Messages
|
|
98
|
-
* List messages in a conversation with token pagination. Use `page_token` to fetch older messages.
|
|
99
|
-
* @param conversationId
|
|
100
|
-
* @param pageToken
|
|
101
|
-
* @param limit
|
|
102
|
-
* @returns ConversationMessageListResponse Successful Response
|
|
103
|
-
* @throws ApiError
|
|
104
|
-
*/
|
|
105
|
-
static conversationMessageList(conversationId, pageToken, limit = 20) {
|
|
106
|
-
return __request(OpenAPI, {
|
|
107
|
-
method: 'GET',
|
|
108
|
-
url: '/conversations/{conversation_id}/messages',
|
|
109
|
-
path: {
|
|
110
|
-
'conversation_id': conversationId,
|
|
111
|
-
},
|
|
112
|
-
query: {
|
|
113
|
-
'page_token': pageToken,
|
|
114
|
-
'limit': limit,
|
|
115
|
-
},
|
|
116
|
-
errors: {
|
|
117
|
-
422: `Validation Error`,
|
|
118
|
-
},
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Send Message (Stream)
|
|
123
|
-
* @param conversationId
|
|
124
|
-
* @param requestBody
|
|
125
|
-
* @param podId
|
|
126
|
-
* @returns any Server-Sent Events
|
|
127
|
-
* @throws ApiError
|
|
128
|
-
*/
|
|
129
|
-
static conversationMessageCreate(conversationId, requestBody, podId) {
|
|
130
|
-
return __request(OpenAPI, {
|
|
131
|
-
method: 'POST',
|
|
132
|
-
url: '/conversations/{conversation_id}/messages',
|
|
133
|
-
path: {
|
|
134
|
-
'conversation_id': conversationId,
|
|
135
|
-
},
|
|
136
|
-
query: {
|
|
137
|
-
'pod_id': podId,
|
|
138
|
-
},
|
|
139
|
-
body: requestBody,
|
|
140
|
-
mediaType: 'application/json',
|
|
141
|
-
errors: {
|
|
142
|
-
422: `Validation Error`,
|
|
143
|
-
},
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Stop Conversation Run
|
|
148
|
-
* @param conversationId
|
|
149
|
-
* @param podId
|
|
150
|
-
* @returns any Successful Response
|
|
151
|
-
* @throws ApiError
|
|
152
|
-
*/
|
|
153
|
-
static conversationRunStop(conversationId, podId) {
|
|
154
|
-
return __request(OpenAPI, {
|
|
155
|
-
method: 'PATCH',
|
|
156
|
-
url: '/conversations/{conversation_id}/stop',
|
|
157
|
-
path: {
|
|
158
|
-
'conversation_id': conversationId,
|
|
159
|
-
},
|
|
160
|
-
query: {
|
|
161
|
-
'pod_id': podId,
|
|
162
|
-
},
|
|
163
|
-
errors: {
|
|
164
|
-
422: `Validation Error`,
|
|
165
|
-
},
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Resume Conversation Stream
|
|
170
|
-
* @param conversationId
|
|
171
|
-
* @param podId
|
|
172
|
-
* @returns any Server-Sent Events for an already-running conversation.
|
|
173
|
-
* @throws ApiError
|
|
174
|
-
*/
|
|
175
|
-
static conversationStreamResume(conversationId, podId) {
|
|
176
|
-
return __request(OpenAPI, {
|
|
177
|
-
method: 'GET',
|
|
178
|
-
url: '/conversations/{conversation_id}/stream',
|
|
179
|
-
path: {
|
|
180
|
-
'conversation_id': conversationId,
|
|
181
|
-
},
|
|
182
|
-
query: {
|
|
183
|
-
'pod_id': podId,
|
|
184
|
-
},
|
|
185
|
-
errors: {
|
|
186
|
-
422: `Validation Error`,
|
|
187
|
-
},
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* List Available Models
|
|
192
|
-
* Get list of all available models in the system.
|
|
193
|
-
* @returns AvailableModelsListResponse Successful Response
|
|
194
|
-
* @throws ApiError
|
|
195
|
-
*/
|
|
196
|
-
static conversationModelsList() {
|
|
197
|
-
return __request(OpenAPI, {
|
|
198
|
-
method: 'GET',
|
|
199
|
-
url: '/models',
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import type { AddMessageRequest } from '../models/AddMessageRequest.js';
|
|
2
|
-
import type { CreateTaskRequest } from '../models/CreateTaskRequest.js';
|
|
3
|
-
import type { TaskListResponse } from '../models/TaskListResponse.js';
|
|
4
|
-
import type { TaskMessageListResponse } from '../models/TaskMessageListResponse.js';
|
|
5
|
-
import type { TaskResponse } from '../models/TaskResponse.js';
|
|
6
|
-
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
|
-
export declare class TasksService {
|
|
8
|
-
/**
|
|
9
|
-
* List Tasks
|
|
10
|
-
* List all tasks in a pod
|
|
11
|
-
* @param podId
|
|
12
|
-
* @param agentName
|
|
13
|
-
* @param limit
|
|
14
|
-
* @param pageToken
|
|
15
|
-
* @returns TaskListResponse Successful Response
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
static taskList(podId: string, agentName?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<TaskListResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Create Task
|
|
21
|
-
* Create and start a new task
|
|
22
|
-
* @param podId
|
|
23
|
-
* @param requestBody
|
|
24
|
-
* @returns TaskResponse Successful Response
|
|
25
|
-
* @throws ApiError
|
|
26
|
-
*/
|
|
27
|
-
static taskCreate(podId: string, requestBody: CreateTaskRequest): CancelablePromise<TaskResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Get Task
|
|
30
|
-
* Get a task by ID
|
|
31
|
-
* @param podId
|
|
32
|
-
* @param taskId
|
|
33
|
-
* @returns TaskResponse Successful Response
|
|
34
|
-
* @throws ApiError
|
|
35
|
-
*/
|
|
36
|
-
static taskGet(podId: string, taskId: string): CancelablePromise<TaskResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* List Messages
|
|
39
|
-
* List messages for a task
|
|
40
|
-
* @param podId
|
|
41
|
-
* @param taskId
|
|
42
|
-
* @param limit
|
|
43
|
-
* @param pageToken
|
|
44
|
-
* @returns TaskMessageListResponse Successful Response
|
|
45
|
-
* @throws ApiError
|
|
46
|
-
*/
|
|
47
|
-
static taskMessageList(podId: string, taskId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<TaskMessageListResponse>;
|
|
48
|
-
/**
|
|
49
|
-
* Add Message
|
|
50
|
-
* Add a message to a task
|
|
51
|
-
* @param podId
|
|
52
|
-
* @param taskId
|
|
53
|
-
* @param requestBody
|
|
54
|
-
* @returns TaskResponse Successful Response
|
|
55
|
-
* @throws ApiError
|
|
56
|
-
*/
|
|
57
|
-
static taskMessageAdd(podId: string, taskId: string, requestBody: AddMessageRequest): CancelablePromise<TaskResponse>;
|
|
58
|
-
/**
|
|
59
|
-
* Stop Task
|
|
60
|
-
* Stop a running task
|
|
61
|
-
* @param podId
|
|
62
|
-
* @param taskId
|
|
63
|
-
* @returns TaskResponse Successful Response
|
|
64
|
-
* @throws ApiError
|
|
65
|
-
*/
|
|
66
|
-
static taskStop(podId: string, taskId: string): CancelablePromise<TaskResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* Stream Task Updates
|
|
69
|
-
* Stream task updates via Server-Sent Events
|
|
70
|
-
* @param podId
|
|
71
|
-
* @param taskId
|
|
72
|
-
* @returns any Successful Response
|
|
73
|
-
* @throws ApiError
|
|
74
|
-
*/
|
|
75
|
-
static taskStream(podId: string, taskId: string): CancelablePromise<any>;
|
|
76
|
-
}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
-
import { request as __request } from '../core/request.js';
|
|
3
|
-
export class TasksService {
|
|
4
|
-
/**
|
|
5
|
-
* List Tasks
|
|
6
|
-
* List all tasks in a pod
|
|
7
|
-
* @param podId
|
|
8
|
-
* @param agentName
|
|
9
|
-
* @param limit
|
|
10
|
-
* @param pageToken
|
|
11
|
-
* @returns TaskListResponse Successful Response
|
|
12
|
-
* @throws ApiError
|
|
13
|
-
*/
|
|
14
|
-
static taskList(podId, agentName, limit = 100, pageToken) {
|
|
15
|
-
return __request(OpenAPI, {
|
|
16
|
-
method: 'GET',
|
|
17
|
-
url: '/pods/{pod_id}/tasks',
|
|
18
|
-
path: {
|
|
19
|
-
'pod_id': podId,
|
|
20
|
-
},
|
|
21
|
-
query: {
|
|
22
|
-
'agent_name': agentName,
|
|
23
|
-
'limit': limit,
|
|
24
|
-
'page_token': pageToken,
|
|
25
|
-
},
|
|
26
|
-
errors: {
|
|
27
|
-
422: `Validation Error`,
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Create Task
|
|
33
|
-
* Create and start a new task
|
|
34
|
-
* @param podId
|
|
35
|
-
* @param requestBody
|
|
36
|
-
* @returns TaskResponse Successful Response
|
|
37
|
-
* @throws ApiError
|
|
38
|
-
*/
|
|
39
|
-
static taskCreate(podId, requestBody) {
|
|
40
|
-
return __request(OpenAPI, {
|
|
41
|
-
method: 'POST',
|
|
42
|
-
url: '/pods/{pod_id}/tasks',
|
|
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
|
-
* Get Task
|
|
55
|
-
* Get a task by ID
|
|
56
|
-
* @param podId
|
|
57
|
-
* @param taskId
|
|
58
|
-
* @returns TaskResponse Successful Response
|
|
59
|
-
* @throws ApiError
|
|
60
|
-
*/
|
|
61
|
-
static taskGet(podId, taskId) {
|
|
62
|
-
return __request(OpenAPI, {
|
|
63
|
-
method: 'GET',
|
|
64
|
-
url: '/pods/{pod_id}/tasks/{task_id}',
|
|
65
|
-
path: {
|
|
66
|
-
'pod_id': podId,
|
|
67
|
-
'task_id': taskId,
|
|
68
|
-
},
|
|
69
|
-
errors: {
|
|
70
|
-
422: `Validation Error`,
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* List Messages
|
|
76
|
-
* List messages for a task
|
|
77
|
-
* @param podId
|
|
78
|
-
* @param taskId
|
|
79
|
-
* @param limit
|
|
80
|
-
* @param pageToken
|
|
81
|
-
* @returns TaskMessageListResponse Successful Response
|
|
82
|
-
* @throws ApiError
|
|
83
|
-
*/
|
|
84
|
-
static taskMessageList(podId, taskId, limit = 100, pageToken) {
|
|
85
|
-
return __request(OpenAPI, {
|
|
86
|
-
method: 'GET',
|
|
87
|
-
url: '/pods/{pod_id}/tasks/{task_id}/messages',
|
|
88
|
-
path: {
|
|
89
|
-
'pod_id': podId,
|
|
90
|
-
'task_id': taskId,
|
|
91
|
-
},
|
|
92
|
-
query: {
|
|
93
|
-
'limit': limit,
|
|
94
|
-
'page_token': pageToken,
|
|
95
|
-
},
|
|
96
|
-
errors: {
|
|
97
|
-
422: `Validation Error`,
|
|
98
|
-
},
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Add Message
|
|
103
|
-
* Add a message to a task
|
|
104
|
-
* @param podId
|
|
105
|
-
* @param taskId
|
|
106
|
-
* @param requestBody
|
|
107
|
-
* @returns TaskResponse Successful Response
|
|
108
|
-
* @throws ApiError
|
|
109
|
-
*/
|
|
110
|
-
static taskMessageAdd(podId, taskId, requestBody) {
|
|
111
|
-
return __request(OpenAPI, {
|
|
112
|
-
method: 'POST',
|
|
113
|
-
url: '/pods/{pod_id}/tasks/{task_id}/messages',
|
|
114
|
-
path: {
|
|
115
|
-
'pod_id': podId,
|
|
116
|
-
'task_id': taskId,
|
|
117
|
-
},
|
|
118
|
-
body: requestBody,
|
|
119
|
-
mediaType: 'application/json',
|
|
120
|
-
errors: {
|
|
121
|
-
422: `Validation Error`,
|
|
122
|
-
},
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Stop Task
|
|
127
|
-
* Stop a running task
|
|
128
|
-
* @param podId
|
|
129
|
-
* @param taskId
|
|
130
|
-
* @returns TaskResponse Successful Response
|
|
131
|
-
* @throws ApiError
|
|
132
|
-
*/
|
|
133
|
-
static taskStop(podId, taskId) {
|
|
134
|
-
return __request(OpenAPI, {
|
|
135
|
-
method: 'PATCH',
|
|
136
|
-
url: '/pods/{pod_id}/tasks/{task_id}/stop',
|
|
137
|
-
path: {
|
|
138
|
-
'pod_id': podId,
|
|
139
|
-
'task_id': taskId,
|
|
140
|
-
},
|
|
141
|
-
errors: {
|
|
142
|
-
422: `Validation Error`,
|
|
143
|
-
},
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Stream Task Updates
|
|
148
|
-
* Stream task updates via Server-Sent Events
|
|
149
|
-
* @param podId
|
|
150
|
-
* @param taskId
|
|
151
|
-
* @returns any Successful Response
|
|
152
|
-
* @throws ApiError
|
|
153
|
-
*/
|
|
154
|
-
static taskStream(podId, taskId) {
|
|
155
|
-
return __request(OpenAPI, {
|
|
156
|
-
method: 'GET',
|
|
157
|
-
url: '/pods/{pod_id}/tasks/{task_id}/stream',
|
|
158
|
-
path: {
|
|
159
|
-
'pod_id': podId,
|
|
160
|
-
'task_id': taskId,
|
|
161
|
-
},
|
|
162
|
-
errors: {
|
|
163
|
-
422: `Validation Error`,
|
|
164
|
-
},
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
}
|
|
File without changes
|
|
File without changes
|
/package/dist/openapi_client/models/{AssistantListResponse.js → IntegrationHelperAgentRequest.js}
RENAMED
|
File without changes
|