lemma-sdk 0.2.36 → 0.2.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/README.md +45 -30
  2. package/dist/browser/lemma-client.js +224 -212
  3. package/dist/client.d.ts +1 -4
  4. package/dist/client.js +1 -6
  5. package/dist/index.d.ts +2 -5
  6. package/dist/index.js +1 -2
  7. package/dist/namespaces/agents.js +1 -1
  8. package/dist/namespaces/conversations.d.ts +68 -0
  9. package/dist/namespaces/conversations.js +159 -0
  10. package/dist/namespaces/files.d.ts +24 -6
  11. package/dist/namespaces/files.js +25 -12
  12. package/dist/namespaces/integrations.js +1 -1
  13. package/dist/namespaces/pod-surfaces.d.ts +1 -1
  14. package/dist/namespaces/pod-surfaces.js +6 -6
  15. package/dist/openapi_client/index.d.ts +17 -32
  16. package/dist/openapi_client/index.js +8 -12
  17. package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +2 -2
  18. package/dist/openapi_client/models/AgentListResponse.d.ts +2 -4
  19. package/dist/openapi_client/models/AgentMessageResponse.d.ts +0 -3
  20. package/dist/openapi_client/models/{AvailableModels.d.ts → AgentModelName.d.ts} +4 -1
  21. package/dist/openapi_client/models/AgentModelName.js +18 -0
  22. package/dist/openapi_client/models/AgentResponse.d.ts +18 -13
  23. package/dist/openapi_client/models/AgentSurfaceListResponse.d.ts +6 -0
  24. package/dist/openapi_client/models/{AssistantSurfaceResponse.d.ts → AgentSurfaceResponse.d.ts} +6 -5
  25. package/dist/openapi_client/models/{AssistantSurfaceStatus.d.ts → AgentSurfaceStatus.d.ts} +1 -1
  26. package/dist/openapi_client/models/AgentSurfaceStatus.js +10 -0
  27. package/dist/openapi_client/models/{ToolSet.d.ts → AgentToolset.d.ts} +3 -5
  28. package/dist/openapi_client/models/AgentToolset.js +17 -0
  29. package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +3 -5
  30. package/dist/openapi_client/models/ApplicationMode.d.ts +3 -3
  31. package/dist/openapi_client/models/ApplicationMode.js +3 -3
  32. package/dist/openapi_client/models/ConversationResponse.d.ts +9 -20
  33. package/dist/openapi_client/models/CreateAgentRequest.d.ts +11 -7
  34. package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -8
  35. package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -5
  36. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +2 -2
  37. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +1 -1
  38. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +2 -2
  39. package/dist/openapi_client/models/FileNamespace.d.ts +4 -0
  40. package/dist/openapi_client/models/FileNamespace.js +9 -0
  41. package/dist/openapi_client/models/FileResponse.d.ts +2 -2
  42. package/dist/openapi_client/models/FlowRunEntity.d.ts +10 -1
  43. package/dist/openapi_client/models/FunctionResponse.d.ts +2 -2
  44. package/dist/openapi_client/models/HarnessKind.d.ts +7 -0
  45. package/dist/openapi_client/models/HarnessKind.js +12 -0
  46. package/dist/openapi_client/models/MessageListResponse.d.ts +6 -0
  47. package/dist/openapi_client/models/{TaskMessageResponse.d.ts → MessageResponse.d.ts} +8 -7
  48. package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +1 -0
  49. package/dist/openapi_client/models/ReportFeedbackResponse.d.ts +0 -4
  50. package/dist/openapi_client/models/ResourceType.d.ts +0 -1
  51. package/dist/openapi_client/models/ResourceType.js +0 -1
  52. package/dist/openapi_client/models/SendMessageRequest.d.ts +5 -0
  53. package/dist/openapi_client/models/{ToolCallRequest.d.ts → ToolCallContent.d.ts} +1 -1
  54. package/dist/openapi_client/models/{ToolCallResponse.d.ts → ToolReturnContent.d.ts} +2 -1
  55. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +11 -7
  56. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -5
  57. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +2 -2
  58. package/dist/openapi_client/models/app__modules__agent__domain__value_objects__TableAccessEntry.d.ts +8 -0
  59. package/dist/openapi_client/models/{TableAccessEntry.d.ts → app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts} +1 -1
  60. package/dist/openapi_client/models/update.d.ts +2 -2
  61. package/dist/openapi_client/services/AgentConversationsService.d.ts +87 -0
  62. package/dist/openapi_client/services/{ConversationsService.js → AgentConversationsService.js} +61 -72
  63. package/dist/openapi_client/services/{AssistantSurfacesIngressService.d.ts → AgentSurfacesIngressService.d.ts} +2 -2
  64. package/dist/openapi_client/services/{AssistantSurfacesIngressService.js → AgentSurfacesIngressService.js} +2 -2
  65. package/dist/openapi_client/services/{AssistantSurfacesService.d.ts → AgentSurfacesService.d.ts} +11 -11
  66. package/dist/openapi_client/services/{AssistantSurfacesService.js → AgentSurfacesService.js} +10 -10
  67. package/dist/openapi_client/services/AgentToolsService.d.ts +8 -8
  68. package/dist/openapi_client/services/AgentToolsService.js +8 -8
  69. package/dist/openapi_client/services/AgentsService.d.ts +7 -7
  70. package/dist/openapi_client/services/AgentsService.js +8 -8
  71. package/dist/openapi_client/services/FilesService.d.ts +17 -8
  72. package/dist/openapi_client/services/FilesService.js +25 -8
  73. package/dist/openapi_client/services/WorkflowsService.d.ts +1 -1
  74. package/dist/openapi_client/services/WorkflowsService.js +1 -1
  75. package/dist/react/index.d.ts +0 -8
  76. package/dist/react/index.js +0 -4
  77. package/dist/react/useAssistantController.d.ts +6 -2
  78. package/dist/react/useAssistantController.js +56 -15
  79. package/dist/react/useAssistantSession.d.ts +15 -5
  80. package/dist/react/useAssistantSession.js +24 -26
  81. package/dist/react/useConversationMessages.d.ts +6 -2
  82. package/dist/react/useConversationMessages.js +2 -1
  83. package/dist/react/useConversations.d.ts +6 -2
  84. package/dist/react/useConversations.js +7 -5
  85. package/dist/react/useCreateFolder.d.ts +4 -2
  86. package/dist/react/useCreateFolder.js +6 -3
  87. package/dist/react/useDeleteFile.d.ts +4 -1
  88. package/dist/react/useDeleteFile.js +3 -3
  89. package/dist/react/useFile.d.ts +4 -2
  90. package/dist/react/useFile.js +3 -3
  91. package/dist/react/useFilePreview.d.ts +4 -1
  92. package/dist/react/useFilePreview.js +5 -4
  93. package/dist/react/useFileTree.d.ts +4 -2
  94. package/dist/react/useFileTree.js +3 -2
  95. package/dist/react/useFiles.d.ts +4 -2
  96. package/dist/react/useFiles.js +5 -3
  97. package/dist/react/useUpdateFile.d.ts +4 -2
  98. package/dist/react/useUpdateFile.js +6 -3
  99. package/dist/react/useUploadFile.d.ts +4 -2
  100. package/dist/react/useUploadFile.js +6 -3
  101. package/dist/react/useWorkflowRun.js +1 -1
  102. package/dist/react/useWorkflowStart.js +1 -1
  103. package/dist/run-utils.d.ts +2 -5
  104. package/dist/run-utils.js +0 -10
  105. package/dist/types.d.ts +24 -10
  106. package/package.json +1 -1
  107. package/dist/namespaces/assistants.d.ts +0 -96
  108. package/dist/namespaces/assistants.js +0 -160
  109. package/dist/namespaces/tasks.d.ts +0 -29
  110. package/dist/namespaces/tasks.js +0 -49
  111. package/dist/openapi_client/models/AddMessageRequest.d.ts +0 -6
  112. package/dist/openapi_client/models/AssistantListResponse.d.ts +0 -6
  113. package/dist/openapi_client/models/AssistantResponse.d.ts +0 -23
  114. package/dist/openapi_client/models/AssistantSurfaceListResponse.d.ts +0 -6
  115. package/dist/openapi_client/models/AssistantSurfaceStatus.js +0 -10
  116. package/dist/openapi_client/models/AvailableModelInfo.d.ts +0 -8
  117. package/dist/openapi_client/models/AvailableModels.js +0 -15
  118. package/dist/openapi_client/models/AvailableModelsListResponse.d.ts +0 -7
  119. package/dist/openapi_client/models/ConversationMessageListResponse.d.ts +0 -6
  120. package/dist/openapi_client/models/ConversationMessageResponse.d.ts +0 -19
  121. package/dist/openapi_client/models/ConversationStatus.d.ts +0 -7
  122. package/dist/openapi_client/models/ConversationStatus.js +0 -12
  123. package/dist/openapi_client/models/ConversationType.d.ts +0 -8
  124. package/dist/openapi_client/models/ConversationType.js +0 -13
  125. package/dist/openapi_client/models/CreateAssistantRequest.d.ts +0 -18
  126. package/dist/openapi_client/models/CreateAssistantRequest.js +0 -1
  127. package/dist/openapi_client/models/CreateMessageRequest.d.ts +0 -6
  128. package/dist/openapi_client/models/CreateMessageRequest.js +0 -1
  129. package/dist/openapi_client/models/CreateTaskRequest.d.ts +0 -10
  130. package/dist/openapi_client/models/CreateTaskRequest.js +0 -1
  131. package/dist/openapi_client/models/FileVisibility.d.ts +0 -4
  132. package/dist/openapi_client/models/FileVisibility.js +0 -9
  133. package/dist/openapi_client/models/TableAccessEntry.js +0 -1
  134. package/dist/openapi_client/models/TaskListResponse.d.ts +0 -9
  135. package/dist/openapi_client/models/TaskListResponse.js +0 -1
  136. package/dist/openapi_client/models/TaskMessageListResponse.d.ts +0 -9
  137. package/dist/openapi_client/models/TaskMessageListResponse.js +0 -1
  138. package/dist/openapi_client/models/TaskMessageResponse.js +0 -1
  139. package/dist/openapi_client/models/TaskResponse.d.ts +0 -16
  140. package/dist/openapi_client/models/TaskResponse.js +0 -1
  141. package/dist/openapi_client/models/TaskStatus.d.ts +0 -12
  142. package/dist/openapi_client/models/TaskStatus.js +0 -17
  143. package/dist/openapi_client/models/ToolCallRequest.js +0 -1
  144. package/dist/openapi_client/models/ToolCallResponse.js +0 -1
  145. package/dist/openapi_client/models/ToolSet.js +0 -19
  146. package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +0 -17
  147. package/dist/openapi_client/models/UpdateAssistantRequest.js +0 -1
  148. package/dist/openapi_client/services/AssistantsService.d.ts +0 -49
  149. package/dist/openapi_client/services/AssistantsService.js +0 -112
  150. package/dist/openapi_client/services/ConversationsService.d.ts +0 -88
  151. package/dist/openapi_client/services/TasksService.d.ts +0 -76
  152. package/dist/openapi_client/services/TasksService.js +0 -167
  153. package/dist/react/useAgentRun.d.ts +0 -17
  154. package/dist/react/useAgentRun.js +0 -56
  155. package/dist/react/useAgentRuns.d.ts +0 -33
  156. package/dist/react/useAgentRuns.js +0 -149
  157. package/dist/react/useAssistantRun.d.ts +0 -27
  158. package/dist/react/useAssistantRun.js +0 -47
  159. package/dist/react/useTaskSession.d.ts +0 -35
  160. package/dist/react/useTaskSession.js +0 -269
  161. package/dist/task-events.d.ts +0 -8
  162. package/dist/task-events.js +0 -115
  163. /package/dist/openapi_client/models/{AddMessageRequest.js → AgentSurfaceListResponse.js} +0 -0
  164. /package/dist/openapi_client/models/{AssistantListResponse.js → AgentSurfaceResponse.js} +0 -0
  165. /package/dist/openapi_client/models/{AssistantResponse.js → MessageListResponse.js} +0 -0
  166. /package/dist/openapi_client/models/{AssistantSurfaceListResponse.js → MessageResponse.js} +0 -0
  167. /package/dist/openapi_client/models/{AssistantSurfaceResponse.js → SendMessageRequest.js} +0 -0
  168. /package/dist/openapi_client/models/{AvailableModelInfo.js → ToolCallContent.js} +0 -0
  169. /package/dist/openapi_client/models/{AvailableModelsListResponse.js → ToolReturnContent.js} +0 -0
  170. /package/dist/openapi_client/models/{ConversationMessageListResponse.js → app__modules__agent__domain__value_objects__TableAccessEntry.js} +0 -0
  171. /package/dist/openapi_client/models/{ConversationMessageResponse.js → app__modules__function__api__schemas__function_schemas__TableAccessEntry.js} +0 -0
@@ -1,160 +0,0 @@
1
- export class AssistantsNamespace {
2
- http;
3
- podId;
4
- constructor(http, podId) {
5
- this.http = http;
6
- this.podId = podId;
7
- }
8
- list(options = {}) {
9
- return this.http.request("GET", `/pods/${this.podId()}/assistants`, {
10
- params: {
11
- limit: options.limit ?? 100,
12
- page_token: options.page_token,
13
- },
14
- });
15
- }
16
- create(payload) {
17
- return this.http.request("POST", `/pods/${this.podId()}/assistants`, { body: payload });
18
- }
19
- get(assistantName) {
20
- return this.http.request("GET", `/pods/${this.podId()}/assistants/${assistantName}`);
21
- }
22
- update(assistantName, payload) {
23
- return this.http.request("PATCH", `/pods/${this.podId()}/assistants/${assistantName}`, {
24
- body: payload,
25
- });
26
- }
27
- delete(assistantName) {
28
- return this.http.request("DELETE", `/pods/${this.podId()}/assistants/${assistantName}`);
29
- }
30
- }
31
- export class ConversationsNamespace {
32
- http;
33
- podId;
34
- constructor(http, podId) {
35
- this.http = http;
36
- this.podId = podId;
37
- }
38
- resolvePodId(explicitPodId) {
39
- if (typeof explicitPodId === "string") {
40
- return explicitPodId;
41
- }
42
- try {
43
- return this.podId();
44
- }
45
- catch {
46
- return undefined;
47
- }
48
- }
49
- requirePodId(explicitPodId) {
50
- const podId = this.resolvePodId(explicitPodId);
51
- if (!podId) {
52
- throw new Error("pod_id is required for this conversation operation.");
53
- }
54
- return podId;
55
- }
56
- list(options = {}) {
57
- return this.http.request("GET", "/conversations", {
58
- params: {
59
- assistant_name: options.assistant_name ?? options.assistant_id,
60
- pod_id: this.resolvePodId(options.pod_id),
61
- organization_id: options.organization_id,
62
- global_only: options.global_only ?? false,
63
- limit: options.limit ?? 20,
64
- page_token: options.page_token,
65
- },
66
- });
67
- }
68
- listByAssistant(assistantName, options = {}) {
69
- return this.list({ ...options, assistant_name: assistantName });
70
- }
71
- listByAssistantName(assistantName, options = {}) {
72
- return this.listByAssistant(assistantName, options);
73
- }
74
- listModels() {
75
- return this.http.request("GET", "/models");
76
- }
77
- create(payload) {
78
- const { assistant_id, ...requestBody } = payload;
79
- return this.http.request("POST", "/conversations", {
80
- body: {
81
- ...requestBody,
82
- pod_id: this.resolvePodId(requestBody.pod_id),
83
- assistant_name: requestBody.assistant_name ?? assistant_id,
84
- },
85
- });
86
- }
87
- createForAssistant(assistantName, payload = {}) {
88
- return this.create({
89
- ...payload,
90
- assistant_name: assistantName,
91
- });
92
- }
93
- get(conversationId, options = {}) {
94
- return this.http.request("GET", `/conversations/${conversationId}`, {
95
- params: {
96
- pod_id: this.resolvePodId(options.pod_id),
97
- },
98
- });
99
- }
100
- update(conversationId, payload, options = {}) {
101
- return this.http.request("PATCH", `/conversations/${conversationId}`, {
102
- params: {
103
- pod_id: this.resolvePodId(options.pod_id),
104
- },
105
- body: payload,
106
- });
107
- }
108
- delete(conversationId, options = {}) {
109
- const scopedPodId = this.requirePodId(options.pod_id);
110
- return this.http.request("DELETE", `/pods/${scopedPodId}/conversations/${conversationId}`);
111
- }
112
- sendMessageStream(conversationId, payload, options = {}) {
113
- return this.http.stream(`/conversations/${conversationId}/messages`, {
114
- method: "POST",
115
- params: {
116
- pod_id: this.resolvePodId(options.pod_id),
117
- },
118
- body: payload,
119
- signal: options.signal,
120
- headers: {
121
- "Content-Type": "application/json",
122
- Accept: "text/event-stream",
123
- },
124
- });
125
- }
126
- resumeStream(conversationId, options = {}) {
127
- return this.http.stream(`/conversations/${conversationId}/stream`, {
128
- params: {
129
- pod_id: this.resolvePodId(options.pod_id),
130
- },
131
- signal: options.signal,
132
- headers: {
133
- Accept: "text/event-stream",
134
- },
135
- });
136
- }
137
- stopRun(conversationId, options = {}) {
138
- return this.http.request("PATCH", `/conversations/${conversationId}/stop`, {
139
- params: {
140
- pod_id: this.resolvePodId(options.pod_id),
141
- },
142
- body: {},
143
- });
144
- }
145
- messages = {
146
- list: (conversationId, options = {}) => this.http.request("GET", `/conversations/${conversationId}/messages`, {
147
- params: {
148
- pod_id: this.resolvePodId(options.pod_id),
149
- limit: options.limit ?? 20,
150
- page_token: options.page_token,
151
- },
152
- }),
153
- send: (conversationId, payload, options = {}) => this.http.request("POST", `/conversations/${conversationId}/messages`, {
154
- params: {
155
- pod_id: this.resolvePodId(options.pod_id),
156
- },
157
- body: payload,
158
- }),
159
- };
160
- }
@@ -1,29 +0,0 @@
1
- import type { HttpClient } from "../http.js";
2
- import type { AddMessageRequest } from "../openapi_client/models/AddMessageRequest.js";
3
- import type { CreateTaskRequest } from "../openapi_client/models/CreateTaskRequest.js";
4
- import type { TaskListResponse } from "../openapi_client/models/TaskListResponse.js";
5
- import type { TaskMessageListResponse } from "../openapi_client/models/TaskMessageListResponse.js";
6
- import type { TaskResponse } from "../openapi_client/models/TaskResponse.js";
7
- export declare class TasksNamespace {
8
- private readonly http;
9
- private readonly podId;
10
- constructor(http: HttpClient, podId: () => string);
11
- list(options?: {
12
- agent_name?: string;
13
- limit?: number;
14
- page_token?: string;
15
- }): Promise<TaskListResponse>;
16
- create(payload: CreateTaskRequest): Promise<TaskResponse>;
17
- get(taskId: string): Promise<TaskResponse>;
18
- stop(taskId: string): Promise<TaskResponse>;
19
- stream(taskId: string, options?: {
20
- signal?: AbortSignal;
21
- }): Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
22
- readonly messages: {
23
- list: (taskId: string, options?: {
24
- limit?: number;
25
- page_token?: string;
26
- }) => Promise<TaskMessageListResponse>;
27
- add: (taskId: string, payload: AddMessageRequest) => Promise<TaskResponse>;
28
- };
29
- }
@@ -1,49 +0,0 @@
1
- export class TasksNamespace {
2
- http;
3
- podId;
4
- constructor(http, podId) {
5
- this.http = http;
6
- this.podId = podId;
7
- }
8
- list(options = {}) {
9
- return this.http.request("GET", `/pods/${this.podId()}/tasks`, {
10
- params: {
11
- agent_name: options.agent_name,
12
- limit: options.limit ?? 100,
13
- page_token: options.page_token,
14
- },
15
- });
16
- }
17
- create(payload) {
18
- return this.http.request("POST", `/pods/${this.podId()}/tasks`, {
19
- body: payload,
20
- });
21
- }
22
- get(taskId) {
23
- return this.http.request("GET", `/pods/${this.podId()}/tasks/${taskId}`);
24
- }
25
- stop(taskId) {
26
- return this.http.request("PATCH", `/pods/${this.podId()}/tasks/${taskId}/stop`);
27
- }
28
- stream(taskId, options = {}) {
29
- return this.http.stream(`/pods/${this.podId()}/tasks/${taskId}/stream`, {
30
- signal: options.signal,
31
- headers: {
32
- Accept: "text/event-stream",
33
- },
34
- });
35
- }
36
- messages = {
37
- list: (taskId, options = {}) => this.http.request("GET", `/pods/${this.podId()}/tasks/${taskId}/messages`, {
38
- params: {
39
- limit: options.limit ?? 100,
40
- page_token: options.page_token,
41
- },
42
- }),
43
- add: (taskId, payload) => {
44
- return this.http.request("POST", `/pods/${this.podId()}/tasks/${taskId}/messages`, {
45
- body: payload,
46
- });
47
- },
48
- };
49
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Request schema for adding a message to resume a task.
3
- */
4
- export type AddMessageRequest = {
5
- content: string;
6
- };
@@ -1,6 +0,0 @@
1
- import type { AssistantResponse } from './AssistantResponse.js';
2
- export type AssistantListResponse = {
3
- items: Array<AssistantResponse>;
4
- limit: number;
5
- next_page_token?: (string | null);
6
- };
@@ -1,23 +0,0 @@
1
- import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
- import type { TableAccessEntry } from './TableAccessEntry.js';
3
- import type { ToolSet } from './ToolSet.js';
4
- /**
5
- * Response for assistant.
6
- */
7
- export type AssistantResponse = {
8
- accessible_applications: Array<ApplicationAccessConfig>;
9
- accessible_folders: Array<string>;
10
- accessible_tables: Array<TableAccessEntry>;
11
- agent_names: Array<string>;
12
- created_at: any;
13
- description: (string | null);
14
- function_names: Array<string>;
15
- icon_url: (string | null);
16
- id: string;
17
- instruction: string;
18
- name: string;
19
- pod_id: string;
20
- tool_sets: Array<ToolSet>;
21
- updated_at: any;
22
- user_id: string;
23
- };
@@ -1,6 +0,0 @@
1
- import type { AssistantSurfaceResponse } from './AssistantSurfaceResponse.js';
2
- export type AssistantSurfaceListResponse = {
3
- items: Array<AssistantSurfaceResponse>;
4
- limit: number;
5
- next_page_token?: (string | null);
6
- };
@@ -1,10 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export var AssistantSurfaceStatus;
6
- (function (AssistantSurfaceStatus) {
7
- AssistantSurfaceStatus["ACTIVE"] = "ACTIVE";
8
- AssistantSurfaceStatus["PENDING_ADMIN_CONSENT"] = "PENDING_ADMIN_CONSENT";
9
- AssistantSurfaceStatus["INACTIVE"] = "INACTIVE";
10
- })(AssistantSurfaceStatus || (AssistantSurfaceStatus = {}));
@@ -1,8 +0,0 @@
1
- /**
2
- * Information about an available model.
3
- */
4
- export type AvailableModelInfo = {
5
- id: string;
6
- name: string;
7
- provider_model_name: string;
8
- };
@@ -1,15 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export var AvailableModels;
6
- (function (AvailableModels) {
7
- AvailableModels["GEMINI_PRO"] = "GEMINI_PRO";
8
- AvailableModels["GEMINI_FLASH"] = "GEMINI_FLASH";
9
- AvailableModels["GEMINI_FLASH_LITE"] = "GEMINI_FLASH_LITE";
10
- AvailableModels["KIMI_K2"] = "KIMI_K2";
11
- AvailableModels["GPT_OSS"] = "GPT_OSS";
12
- AvailableModels["DEEPSEEK_V32"] = "DEEPSEEK_V32";
13
- AvailableModels["GLM_5"] = "GLM_5";
14
- AvailableModels["QWEN3_6"] = "QWEN3_6";
15
- })(AvailableModels || (AvailableModels = {}));
@@ -1,7 +0,0 @@
1
- import type { AvailableModelInfo } from './AvailableModelInfo.js';
2
- /**
3
- * Response containing list of available models.
4
- */
5
- export type AvailableModelsListResponse = {
6
- items: Array<AvailableModelInfo>;
7
- };
@@ -1,6 +0,0 @@
1
- import type { ConversationMessageResponse } from './ConversationMessageResponse.js';
2
- export type ConversationMessageListResponse = {
3
- items: Array<ConversationMessageResponse>;
4
- limit: number;
5
- next_page_token?: (string | null);
6
- };
@@ -1,19 +0,0 @@
1
- import type { NotificationContent } from './NotificationContent.js';
2
- import type { TextContent } from './TextContent.js';
3
- import type { ThinkingContent } from './ThinkingContent.js';
4
- import type { ToolCallRequest } from './ToolCallRequest.js';
5
- import type { ToolCallResponse } from './ToolCallResponse.js';
6
- /**
7
- * Saved conversation message.
8
- */
9
- export type ConversationMessageResponse = {
10
- content: (NotificationContent | TextContent | ThinkingContent | ToolCallRequest | ToolCallResponse);
11
- conversation_id?: (string | null);
12
- created_at: string;
13
- external_message_id?: (string | null);
14
- external_user_id?: (string | null);
15
- id: string;
16
- metadata?: (Record<string, any> | null);
17
- role: string;
18
- user_id?: (string | null);
19
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * Execution state of a conversation.
3
- */
4
- export declare enum ConversationStatus {
5
- WAITING = "waiting",
6
- RUNNING = "running"
7
- }
@@ -1,12 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * Execution state of a conversation.
7
- */
8
- export var ConversationStatus;
9
- (function (ConversationStatus) {
10
- ConversationStatus["WAITING"] = "waiting";
11
- ConversationStatus["RUNNING"] = "running";
12
- })(ConversationStatus || (ConversationStatus = {}));
@@ -1,8 +0,0 @@
1
- /**
2
- * Conversation channel/source classification.
3
- */
4
- export declare enum ConversationType {
5
- INTERNAL = "INTERNAL",
6
- EXTERNAL_DM = "EXTERNAL_DM",
7
- EXTERNAL_GROUP = "EXTERNAL_GROUP"
8
- }
@@ -1,13 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * Conversation channel/source classification.
7
- */
8
- export var ConversationType;
9
- (function (ConversationType) {
10
- ConversationType["INTERNAL"] = "INTERNAL";
11
- ConversationType["EXTERNAL_DM"] = "EXTERNAL_DM";
12
- ConversationType["EXTERNAL_GROUP"] = "EXTERNAL_GROUP";
13
- })(ConversationType || (ConversationType = {}));
@@ -1,18 +0,0 @@
1
- import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
- import type { TableAccessEntry } from './TableAccessEntry.js';
3
- import type { ToolSet } from './ToolSet.js';
4
- /**
5
- * Request to create an assistant.
6
- */
7
- export type CreateAssistantRequest = {
8
- accessible_applications?: Array<ApplicationAccessConfig>;
9
- accessible_folders?: Array<string>;
10
- accessible_tables?: Array<TableAccessEntry>;
11
- agent_names?: Array<string>;
12
- description?: (string | null);
13
- function_names?: Array<string>;
14
- icon_url?: (string | null);
15
- instruction: string;
16
- name: string;
17
- tool_sets?: Array<ToolSet>;
18
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Request to add a message.
3
- */
4
- export type CreateMessageRequest = {
5
- content: string;
6
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Request schema for creating a task.
3
- */
4
- export type CreateTaskRequest = {
5
- /**
6
- * Agent name to execute. Agent names are immutable pod resource identifiers.
7
- */
8
- agent_name: string;
9
- input_data?: (Record<string, any> | null);
10
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- export declare enum FileVisibility {
2
- PRIVATE = "PRIVATE",
3
- POD = "POD"
4
- }
@@ -1,9 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export var FileVisibility;
6
- (function (FileVisibility) {
7
- FileVisibility["PRIVATE"] = "PRIVATE";
8
- FileVisibility["POD"] = "POD";
9
- })(FileVisibility || (FileVisibility = {}));
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import type { TaskResponse } from './TaskResponse.js';
2
- /**
3
- * Response schema for list of tasks.
4
- */
5
- export type TaskListResponse = {
6
- items: Array<TaskResponse>;
7
- limit: number;
8
- next_page_token: (string | null);
9
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import type { TaskMessageResponse } from './TaskMessageResponse.js';
2
- /**
3
- * Response schema for list of task messages.
4
- */
5
- export type TaskMessageListResponse = {
6
- items: Array<TaskMessageResponse>;
7
- limit: number;
8
- next_page_token: (string | null);
9
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +0,0 @@
1
- import type { TaskStatus } from './TaskStatus.js';
2
- /**
3
- * Response schema for task.
4
- */
5
- export type TaskResponse = {
6
- agent_id: string;
7
- created_at: string;
8
- error: (string | null);
9
- id: string;
10
- input_data: (Record<string, any> | null);
11
- output_data: (Record<string, any> | null);
12
- pod_id: string;
13
- status: TaskStatus;
14
- updated_at: string;
15
- user_id: string;
16
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * Status of a task execution.
3
- */
4
- export declare enum TaskStatus {
5
- PENDING = "PENDING",
6
- RUNNING = "RUNNING",
7
- WAITING = "WAITING",
8
- COMPLETED = "COMPLETED",
9
- FAILED = "FAILED",
10
- CANCELLED = "CANCELLED",
11
- STOPPED = "STOPPED"
12
- }
@@ -1,17 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * Status of a task execution.
7
- */
8
- export var TaskStatus;
9
- (function (TaskStatus) {
10
- TaskStatus["PENDING"] = "PENDING";
11
- TaskStatus["RUNNING"] = "RUNNING";
12
- TaskStatus["WAITING"] = "WAITING";
13
- TaskStatus["COMPLETED"] = "COMPLETED";
14
- TaskStatus["FAILED"] = "FAILED";
15
- TaskStatus["CANCELLED"] = "CANCELLED";
16
- TaskStatus["STOPPED"] = "STOPPED";
17
- })(TaskStatus || (TaskStatus = {}));
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * Tool sets available for agents.
7
- */
8
- export var ToolSet;
9
- (function (ToolSet) {
10
- ToolSet["FILE_SYSTEM"] = "FILE_SYSTEM";
11
- ToolSet["CODE_EXECUTOR"] = "CODE_EXECUTOR";
12
- ToolSet["WORKSPACE_CLI"] = "WORKSPACE_CLI";
13
- ToolSet["SKILLS"] = "SKILLS";
14
- ToolSet["WEB_SEARCH"] = "WEB_SEARCH";
15
- ToolSet["USER_INTERACTION"] = "USER_INTERACTION";
16
- ToolSet["IMAGE_GENERATION"] = "IMAGE_GENERATION";
17
- ToolSet["AUDIO_GENERATION"] = "AUDIO_GENERATION";
18
- ToolSet["WAIT_UNTIL"] = "WAIT_UNTIL";
19
- })(ToolSet || (ToolSet = {}));
@@ -1,17 +0,0 @@
1
- import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
2
- import type { TableAccessEntry } from './TableAccessEntry.js';
3
- import type { ToolSet } from './ToolSet.js';
4
- /**
5
- * Request to update an assistant.
6
- */
7
- export type UpdateAssistantRequest = {
8
- accessible_applications?: (Array<ApplicationAccessConfig> | null);
9
- accessible_folders?: (Array<string> | null);
10
- accessible_tables?: (Array<TableAccessEntry> | null);
11
- agent_names?: (Array<string> | null);
12
- description?: (string | null);
13
- function_names?: (Array<string> | null);
14
- icon_url?: (string | null);
15
- instruction?: (string | null);
16
- tool_sets?: (Array<ToolSet> | null);
17
- };
@@ -1 +0,0 @@
1
- export {};