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,20 +1,20 @@
1
1
  import type { AdminConsentInfoResponse } from '../models/AdminConsentInfoResponse.js';
2
- import type { AssistantSurfaceListResponse } from '../models/AssistantSurfaceListResponse.js';
2
+ import type { AgentSurfaceListResponse } from '../models/AgentSurfaceListResponse.js';
3
3
  import type { CreateSurfaceRequest } from '../models/CreateSurfaceRequest.js';
4
4
  import type { SurfacePlatformSetupGuideResponse } from '../models/SurfacePlatformSetupGuideResponse.js';
5
5
  import type { ToggleSurfaceRequest } from '../models/ToggleSurfaceRequest.js';
6
6
  import type { UpdateSurfaceRequest } from '../models/UpdateSurfaceRequest.js';
7
7
  import type { CancelablePromise } from '../core/CancelablePromise.js';
8
- export declare class AssistantSurfacesService {
8
+ export declare class AgentSurfacesService {
9
9
  /**
10
10
  * List Surfaces
11
11
  * @param podId
12
12
  * @param limit
13
13
  * @param pageToken
14
- * @returns AssistantSurfaceListResponse Successful Response
14
+ * @returns AgentSurfaceListResponse Successful Response
15
15
  * @throws ApiError
16
16
  */
17
- static assistantSurfaceList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<AssistantSurfaceListResponse>;
17
+ static agentSurfaceList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<AgentSurfaceListResponse>;
18
18
  /**
19
19
  * Create Surface
20
20
  * @param podId
@@ -22,7 +22,7 @@ export declare class AssistantSurfacesService {
22
22
  * @returns any Successful Response
23
23
  * @throws ApiError
24
24
  */
25
- static assistantSurfaceCreate(podId: string, requestBody: CreateSurfaceRequest): CancelablePromise<any>;
25
+ static agentSurfaceCreate(podId: string, requestBody: CreateSurfaceRequest): CancelablePromise<any>;
26
26
  /**
27
27
  * Get Surface Platform Checklist
28
28
  * @param podId
@@ -30,7 +30,7 @@ export declare class AssistantSurfacesService {
30
30
  * @returns SurfacePlatformSetupGuideResponse Successful Response
31
31
  * @throws ApiError
32
32
  */
33
- static assistantSurfacePlatformChecklist(podId: string, platform: string): CancelablePromise<SurfacePlatformSetupGuideResponse>;
33
+ static agentSurfacePlatformChecklist(podId: string, platform: string): CancelablePromise<SurfacePlatformSetupGuideResponse>;
34
34
  /**
35
35
  * Get Surface
36
36
  * @param podId
@@ -38,7 +38,7 @@ export declare class AssistantSurfacesService {
38
38
  * @returns any Successful Response
39
39
  * @throws ApiError
40
40
  */
41
- static assistantSurfaceGet(podId: string, surfaceId: string): CancelablePromise<any>;
41
+ static agentSurfaceGet(podId: string, surfaceId: string): CancelablePromise<any>;
42
42
  /**
43
43
  * Update Surface
44
44
  * @param podId
@@ -47,7 +47,7 @@ export declare class AssistantSurfacesService {
47
47
  * @returns any Successful Response
48
48
  * @throws ApiError
49
49
  */
50
- static assistantSurfaceUpdate(podId: string, surfaceId: string, requestBody: UpdateSurfaceRequest): CancelablePromise<any>;
50
+ static agentSurfaceUpdate(podId: string, surfaceId: string, requestBody: UpdateSurfaceRequest): CancelablePromise<any>;
51
51
  /**
52
52
  * Get Admin Consent Info
53
53
  * @param podId
@@ -55,7 +55,7 @@ export declare class AssistantSurfacesService {
55
55
  * @returns AdminConsentInfoResponse Successful Response
56
56
  * @throws ApiError
57
57
  */
58
- static assistantSurfaceAdminConsentInfo(podId: string, surfaceId: string): CancelablePromise<AdminConsentInfoResponse>;
58
+ static agentSurfaceAdminConsentInfo(podId: string, surfaceId: string): CancelablePromise<AdminConsentInfoResponse>;
59
59
  /**
60
60
  * Toggle Surface
61
61
  * @param podId
@@ -64,7 +64,7 @@ export declare class AssistantSurfacesService {
64
64
  * @returns any Successful Response
65
65
  * @throws ApiError
66
66
  */
67
- static assistantSurfaceToggle(podId: string, surfaceId: string, requestBody: ToggleSurfaceRequest): CancelablePromise<any>;
67
+ static agentSurfaceToggle(podId: string, surfaceId: string, requestBody: ToggleSurfaceRequest): CancelablePromise<any>;
68
68
  /**
69
69
  * Get Webhook Url
70
70
  * @param podId
@@ -72,5 +72,5 @@ export declare class AssistantSurfacesService {
72
72
  * @returns any Successful Response
73
73
  * @throws ApiError
74
74
  */
75
- static assistantSurfaceWebhookUrl(podId: string, surfaceId: string): CancelablePromise<any>;
75
+ static agentSurfaceWebhookUrl(podId: string, surfaceId: string): CancelablePromise<any>;
76
76
  }
@@ -1,15 +1,15 @@
1
1
  import { OpenAPI } from '../core/OpenAPI.js';
2
2
  import { request as __request } from '../core/request.js';
3
- export class AssistantSurfacesService {
3
+ export class AgentSurfacesService {
4
4
  /**
5
5
  * List Surfaces
6
6
  * @param podId
7
7
  * @param limit
8
8
  * @param pageToken
9
- * @returns AssistantSurfaceListResponse Successful Response
9
+ * @returns AgentSurfaceListResponse Successful Response
10
10
  * @throws ApiError
11
11
  */
12
- static assistantSurfaceList(podId, limit = 100, pageToken) {
12
+ static agentSurfaceList(podId, limit = 100, pageToken) {
13
13
  return __request(OpenAPI, {
14
14
  method: 'GET',
15
15
  url: '/pods/{pod_id}/surfaces',
@@ -32,7 +32,7 @@ export class AssistantSurfacesService {
32
32
  * @returns any Successful Response
33
33
  * @throws ApiError
34
34
  */
35
- static assistantSurfaceCreate(podId, requestBody) {
35
+ static agentSurfaceCreate(podId, requestBody) {
36
36
  return __request(OpenAPI, {
37
37
  method: 'POST',
38
38
  url: '/pods/{pod_id}/surfaces',
@@ -53,7 +53,7 @@ export class AssistantSurfacesService {
53
53
  * @returns SurfacePlatformSetupGuideResponse Successful Response
54
54
  * @throws ApiError
55
55
  */
56
- static assistantSurfacePlatformChecklist(podId, platform) {
56
+ static agentSurfacePlatformChecklist(podId, platform) {
57
57
  return __request(OpenAPI, {
58
58
  method: 'GET',
59
59
  url: '/pods/{pod_id}/surfaces/platforms/{platform}/checklist',
@@ -73,7 +73,7 @@ export class AssistantSurfacesService {
73
73
  * @returns any Successful Response
74
74
  * @throws ApiError
75
75
  */
76
- static assistantSurfaceGet(podId, surfaceId) {
76
+ static agentSurfaceGet(podId, surfaceId) {
77
77
  return __request(OpenAPI, {
78
78
  method: 'GET',
79
79
  url: '/pods/{pod_id}/surfaces/{surface_id}',
@@ -94,7 +94,7 @@ export class AssistantSurfacesService {
94
94
  * @returns any Successful Response
95
95
  * @throws ApiError
96
96
  */
97
- static assistantSurfaceUpdate(podId, surfaceId, requestBody) {
97
+ static agentSurfaceUpdate(podId, surfaceId, requestBody) {
98
98
  return __request(OpenAPI, {
99
99
  method: 'PATCH',
100
100
  url: '/pods/{pod_id}/surfaces/{surface_id}',
@@ -116,7 +116,7 @@ export class AssistantSurfacesService {
116
116
  * @returns AdminConsentInfoResponse Successful Response
117
117
  * @throws ApiError
118
118
  */
119
- static assistantSurfaceAdminConsentInfo(podId, surfaceId) {
119
+ static agentSurfaceAdminConsentInfo(podId, surfaceId) {
120
120
  return __request(OpenAPI, {
121
121
  method: 'GET',
122
122
  url: '/pods/{pod_id}/surfaces/{surface_id}/admin-consent',
@@ -137,7 +137,7 @@ export class AssistantSurfacesService {
137
137
  * @returns any Successful Response
138
138
  * @throws ApiError
139
139
  */
140
- static assistantSurfaceToggle(podId, surfaceId, requestBody) {
140
+ static agentSurfaceToggle(podId, surfaceId, requestBody) {
141
141
  return __request(OpenAPI, {
142
142
  method: 'PATCH',
143
143
  url: '/pods/{pod_id}/surfaces/{surface_id}/toggle',
@@ -159,7 +159,7 @@ export class AssistantSurfacesService {
159
159
  * @returns any Successful Response
160
160
  * @throws ApiError
161
161
  */
162
- static assistantSurfaceWebhookUrl(podId, surfaceId) {
162
+ static agentSurfaceWebhookUrl(podId, surfaceId) {
163
163
  return __request(OpenAPI, {
164
164
  method: 'GET',
165
165
  url: '/pods/{pod_id}/surfaces/{surface_id}/webhook-url',
@@ -9,35 +9,35 @@ import type { WebSearchResponse } from '../models/WebSearchResponse.js';
9
9
  import type { CancelablePromise } from '../core/CancelablePromise.js';
10
10
  export declare class AgentToolsService {
11
11
  /**
12
- * Integration Helper Agent
12
+ * Agent Integration Helper Agent
13
13
  * Plan how to use one or more integration applications for a goal and return recommended operations.
14
14
  * @param requestBody
15
15
  * @returns IntegrationHelperAgentResponse Successful Response
16
16
  * @throws ApiError
17
17
  */
18
- static toolIntegrationHelperAgent(requestBody: IntegrationHelperAgentRequest): CancelablePromise<IntegrationHelperAgentResponse>;
18
+ static agentToolIntegrationHelperAgent(requestBody: IntegrationHelperAgentRequest): CancelablePromise<IntegrationHelperAgentResponse>;
19
19
  /**
20
- * Report Feedback
20
+ * Agent Report Feedback
21
21
  * Record a maintainer-facing feedback report about system issues, skill issues, incorrect knowledge, or other unexpected behavior.
22
22
  * @param requestBody
23
23
  * @returns ReportFeedbackResponse Successful Response
24
24
  * @throws ApiError
25
25
  */
26
- static toolReportFeedback(requestBody: ReportFeedbackRequest): CancelablePromise<ReportFeedbackResponse>;
26
+ static agentToolReportFeedback(requestBody: ReportFeedbackRequest): CancelablePromise<ReportFeedbackResponse>;
27
27
  /**
28
- * Web Search
28
+ * Agent Web Search
29
29
  * Run a raw web search and return structured results.
30
30
  * @param requestBody
31
31
  * @returns WebSearchResponse Successful Response
32
32
  * @throws ApiError
33
33
  */
34
- static toolWebSearch(requestBody: WebSearchRequest): CancelablePromise<WebSearchResponse>;
34
+ static agentToolWebSearch(requestBody: WebSearchRequest): CancelablePromise<WebSearchResponse>;
35
35
  /**
36
- * Web Search Agent
36
+ * Agent Web Search Agent
37
37
  * Run the multi-step web search agent and return a synthesized answer.
38
38
  * @param requestBody
39
39
  * @returns WebSearchAgentResponse Successful Response
40
40
  * @throws ApiError
41
41
  */
42
- static toolWebSearchAgent(requestBody: WebSearchAgentRequest): CancelablePromise<WebSearchAgentResponse>;
42
+ static agentToolWebSearchAgent(requestBody: WebSearchAgentRequest): CancelablePromise<WebSearchAgentResponse>;
43
43
  }
@@ -2,13 +2,13 @@ import { OpenAPI } from '../core/OpenAPI.js';
2
2
  import { request as __request } from '../core/request.js';
3
3
  export class AgentToolsService {
4
4
  /**
5
- * Integration Helper Agent
5
+ * Agent Integration Helper Agent
6
6
  * Plan how to use one or more integration applications for a goal and return recommended operations.
7
7
  * @param requestBody
8
8
  * @returns IntegrationHelperAgentResponse Successful Response
9
9
  * @throws ApiError
10
10
  */
11
- static toolIntegrationHelperAgent(requestBody) {
11
+ static agentToolIntegrationHelperAgent(requestBody) {
12
12
  return __request(OpenAPI, {
13
13
  method: 'POST',
14
14
  url: '/tools/integration-helper-agent',
@@ -20,13 +20,13 @@ export class AgentToolsService {
20
20
  });
21
21
  }
22
22
  /**
23
- * Report Feedback
23
+ * Agent Report Feedback
24
24
  * Record a maintainer-facing feedback report about system issues, skill issues, incorrect knowledge, or other unexpected behavior.
25
25
  * @param requestBody
26
26
  * @returns ReportFeedbackResponse Successful Response
27
27
  * @throws ApiError
28
28
  */
29
- static toolReportFeedback(requestBody) {
29
+ static agentToolReportFeedback(requestBody) {
30
30
  return __request(OpenAPI, {
31
31
  method: 'POST',
32
32
  url: '/tools/report-feedback',
@@ -38,13 +38,13 @@ export class AgentToolsService {
38
38
  });
39
39
  }
40
40
  /**
41
- * Web Search
41
+ * Agent Web Search
42
42
  * Run a raw web search and return structured results.
43
43
  * @param requestBody
44
44
  * @returns WebSearchResponse Successful Response
45
45
  * @throws ApiError
46
46
  */
47
- static toolWebSearch(requestBody) {
47
+ static agentToolWebSearch(requestBody) {
48
48
  return __request(OpenAPI, {
49
49
  method: 'POST',
50
50
  url: '/tools/web-search',
@@ -56,13 +56,13 @@ export class AgentToolsService {
56
56
  });
57
57
  }
58
58
  /**
59
- * Web Search Agent
59
+ * Agent Web Search Agent
60
60
  * Run the multi-step web search agent and return a synthesized answer.
61
61
  * @param requestBody
62
62
  * @returns WebSearchAgentResponse Successful Response
63
63
  * @throws ApiError
64
64
  */
65
- static toolWebSearchAgent(requestBody) {
65
+ static agentToolWebSearchAgent(requestBody) {
66
66
  return __request(OpenAPI, {
67
67
  method: 'POST',
68
68
  url: '/tools/web-search-agent',
@@ -7,17 +7,17 @@ import type { CancelablePromise } from '../core/CancelablePromise.js';
7
7
  export declare class AgentsService {
8
8
  /**
9
9
  * List Agents
10
- * List all agents in a pod
10
+ * List pod-owned agent definitions visible to the current user.
11
11
  * @param podId
12
- * @param limit
13
12
  * @param pageToken
13
+ * @param limit
14
14
  * @returns AgentListResponse Successful Response
15
15
  * @throws ApiError
16
16
  */
17
- static agentList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<AgentListResponse>;
17
+ static agentList(podId: string, pageToken?: (string | null), limit?: number): CancelablePromise<AgentListResponse>;
18
18
  /**
19
19
  * Create Agent
20
- * Create a new agent in a pod
20
+ * Create a pod-owned agent definition with model, harness, toolsets, resource access grants, callable functions, and callable child agents.
21
21
  * @param podId
22
22
  * @param requestBody
23
23
  * @returns AgentResponse Successful Response
@@ -26,7 +26,7 @@ export declare class AgentsService {
26
26
  static agentCreate(podId: string, requestBody: CreateAgentRequest): CancelablePromise<AgentResponse>;
27
27
  /**
28
28
  * Delete Agent
29
- * Delete an agent
29
+ * Delete a pod-owned agent definition by name.
30
30
  * @param podId
31
31
  * @param agentName
32
32
  * @returns AgentMessageResponse Successful Response
@@ -35,7 +35,7 @@ export declare class AgentsService {
35
35
  static agentDelete(podId: string, agentName: string): CancelablePromise<AgentMessageResponse>;
36
36
  /**
37
37
  * Get Agent
38
- * Get an agent by name
38
+ * Get one pod-owned agent definition by its stable name.
39
39
  * @param podId
40
40
  * @param agentName
41
41
  * @returns AgentResponse Successful Response
@@ -44,7 +44,7 @@ export declare class AgentsService {
44
44
  static agentGet(podId: string, agentName: string): CancelablePromise<AgentResponse>;
45
45
  /**
46
46
  * Update Agent
47
- * Update an agent
47
+ * Update an agent definition, including prompt instruction, model, toolsets, schemas, and resource/tool grants.
48
48
  * @param podId
49
49
  * @param agentName
50
50
  * @param requestBody
@@ -3,14 +3,14 @@ import { request as __request } from '../core/request.js';
3
3
  export class AgentsService {
4
4
  /**
5
5
  * List Agents
6
- * List all agents in a pod
6
+ * List pod-owned agent definitions visible to the current user.
7
7
  * @param podId
8
- * @param limit
9
8
  * @param pageToken
9
+ * @param limit
10
10
  * @returns AgentListResponse Successful Response
11
11
  * @throws ApiError
12
12
  */
13
- static agentList(podId, limit = 100, pageToken) {
13
+ static agentList(podId, pageToken, limit = 100) {
14
14
  return __request(OpenAPI, {
15
15
  method: 'GET',
16
16
  url: '/pods/{pod_id}/agents',
@@ -18,8 +18,8 @@ export class AgentsService {
18
18
  'pod_id': podId,
19
19
  },
20
20
  query: {
21
- 'limit': limit,
22
21
  'page_token': pageToken,
22
+ 'limit': limit,
23
23
  },
24
24
  errors: {
25
25
  422: `Validation Error`,
@@ -28,7 +28,7 @@ export class AgentsService {
28
28
  }
29
29
  /**
30
30
  * Create Agent
31
- * Create a new agent in a pod
31
+ * Create a pod-owned agent definition with model, harness, toolsets, resource access grants, callable functions, and callable child agents.
32
32
  * @param podId
33
33
  * @param requestBody
34
34
  * @returns AgentResponse Successful Response
@@ -50,7 +50,7 @@ export class AgentsService {
50
50
  }
51
51
  /**
52
52
  * Delete Agent
53
- * Delete an agent
53
+ * Delete a pod-owned agent definition by name.
54
54
  * @param podId
55
55
  * @param agentName
56
56
  * @returns AgentMessageResponse Successful Response
@@ -71,7 +71,7 @@ export class AgentsService {
71
71
  }
72
72
  /**
73
73
  * Get Agent
74
- * Get an agent by name
74
+ * Get one pod-owned agent definition by its stable name.
75
75
  * @param podId
76
76
  * @param agentName
77
77
  * @returns AgentResponse Successful Response
@@ -92,7 +92,7 @@ export class AgentsService {
92
92
  }
93
93
  /**
94
94
  * Update Agent
95
- * Update an agent
95
+ * Update an agent definition, including prompt instruction, model, toolsets, schemas, and resource/tool grants.
96
96
  * @param podId
97
97
  * @param agentName
98
98
  * @param requestBody
@@ -4,6 +4,7 @@ import type { DatastoreFileUploadRequest } from '../models/DatastoreFileUploadRe
4
4
  import type { DatastoreMessageResponse } from '../models/DatastoreMessageResponse.js';
5
5
  import type { DirectoryTreeResponse } from '../models/DirectoryTreeResponse.js';
6
6
  import type { FileListResponse } from '../models/FileListResponse.js';
7
+ import { FileNamespace } from '../models/FileNamespace.js';
7
8
  import type { FileResponse } from '../models/FileResponse.js';
8
9
  import type { FileSearchRequest } from '../models/FileSearchRequest.js';
9
10
  import type { FileSearchResponse } from '../models/FileSearchResponse.js';
@@ -14,12 +15,13 @@ export declare class FilesService {
14
15
  * List Files
15
16
  * @param podId
16
17
  * @param directoryPath
18
+ * @param namespace
17
19
  * @param limit
18
20
  * @param pageToken
19
21
  * @returns FileListResponse Successful Response
20
22
  * @throws ApiError
21
23
  */
22
- static fileList(podId: string, directoryPath?: string, limit?: number, pageToken?: (string | null)): CancelablePromise<FileListResponse>;
24
+ static fileList(podId: string, directoryPath?: string, namespace?: FileNamespace, limit?: number, pageToken?: (string | null)): CancelablePromise<FileListResponse>;
23
25
  /**
24
26
  * Upload File
25
27
  * @param podId
@@ -32,18 +34,20 @@ export declare class FilesService {
32
34
  * Delete File Or Folder
33
35
  * @param podId
34
36
  * @param path
37
+ * @param namespace
35
38
  * @returns DatastoreMessageResponse Successful Response
36
39
  * @throws ApiError
37
40
  */
38
- static fileDelete(podId: string, path: string): CancelablePromise<DatastoreMessageResponse>;
41
+ static fileDelete(podId: string, path: string, namespace?: FileNamespace): CancelablePromise<DatastoreMessageResponse>;
39
42
  /**
40
43
  * Get File
41
44
  * @param podId
42
45
  * @param path
46
+ * @param namespace
43
47
  * @returns FileResponse Successful Response
44
48
  * @throws ApiError
45
49
  */
46
- static fileGet(podId: string, path: string): CancelablePromise<FileResponse>;
50
+ static fileGet(podId: string, path: string, namespace?: FileNamespace): CancelablePromise<FileResponse>;
47
51
  /**
48
52
  * Update File
49
53
  * @param podId
@@ -56,35 +60,39 @@ export declare class FilesService {
56
60
  * Get Converted File Metadata
57
61
  * @param podId
58
62
  * @param path
63
+ * @param namespace
59
64
  * @returns ConvertedFileResponse Successful Response
60
65
  * @throws ApiError
61
66
  */
62
- static fileConvertedGet(podId: string, path: string): CancelablePromise<ConvertedFileResponse>;
67
+ static fileConvertedGet(podId: string, path: string, namespace?: FileNamespace): CancelablePromise<ConvertedFileResponse>;
63
68
  /**
64
69
  * Download Converted File Artifact
65
70
  * @param podId
66
71
  * @param path
67
72
  * @param artifact
73
+ * @param namespace
68
74
  * @returns any Successful Response
69
75
  * @throws ApiError
70
76
  */
71
- static fileConvertedDownload(podId: string, path: string, artifact?: string): CancelablePromise<any>;
77
+ static fileConvertedDownload(podId: string, path: string, artifact?: string, namespace?: FileNamespace): CancelablePromise<any>;
72
78
  /**
73
79
  * Render Converted File As HTML
74
80
  * @param podId
75
81
  * @param path
82
+ * @param namespace
76
83
  * @returns any Successful Response
77
84
  * @throws ApiError
78
85
  */
79
- static fileConvertedRender(podId: string, path: string): CancelablePromise<any>;
86
+ static fileConvertedRender(podId: string, path: string, namespace?: FileNamespace): CancelablePromise<any>;
80
87
  /**
81
88
  * Download File
82
89
  * @param podId
83
90
  * @param path
91
+ * @param namespace
84
92
  * @returns any Successful Response
85
93
  * @throws ApiError
86
94
  */
87
- static fileDownload(podId: string, path: string): CancelablePromise<any>;
95
+ static fileDownload(podId: string, path: string, namespace?: FileNamespace): CancelablePromise<any>;
88
96
  /**
89
97
  * Create Folder
90
98
  * @param podId
@@ -105,9 +113,10 @@ export declare class FilesService {
105
113
  * Get Directory Tree
106
114
  * @param podId
107
115
  * @param rootPath
116
+ * @param namespace
108
117
  * @param filesPerDirectory
109
118
  * @returns DirectoryTreeResponse Successful Response
110
119
  * @throws ApiError
111
120
  */
112
- static fileTree(podId: string, rootPath?: string, filesPerDirectory?: number): CancelablePromise<DirectoryTreeResponse>;
121
+ static fileTree(podId: string, rootPath?: string, namespace?: FileNamespace, filesPerDirectory?: number): CancelablePromise<DirectoryTreeResponse>;
113
122
  }
@@ -1,3 +1,4 @@
1
+ import { FileNamespace } from '../models/FileNamespace.js';
1
2
  import { OpenAPI } from '../core/OpenAPI.js';
2
3
  import { request as __request } from '../core/request.js';
3
4
  export class FilesService {
@@ -5,12 +6,13 @@ export class FilesService {
5
6
  * List Files
6
7
  * @param podId
7
8
  * @param directoryPath
9
+ * @param namespace
8
10
  * @param limit
9
11
  * @param pageToken
10
12
  * @returns FileListResponse Successful Response
11
13
  * @throws ApiError
12
14
  */
13
- static fileList(podId, directoryPath = '/', limit = 100, pageToken) {
15
+ static fileList(podId, directoryPath = '/', namespace = FileNamespace.PERSONAL, limit = 100, pageToken) {
14
16
  return __request(OpenAPI, {
15
17
  method: 'GET',
16
18
  url: '/pods/{pod_id}/datastore/files',
@@ -19,6 +21,7 @@ export class FilesService {
19
21
  },
20
22
  query: {
21
23
  'directory_path': directoryPath,
24
+ 'namespace': namespace,
22
25
  'limit': limit,
23
26
  'page_token': pageToken,
24
27
  },
@@ -52,10 +55,11 @@ export class FilesService {
52
55
  * Delete File Or Folder
53
56
  * @param podId
54
57
  * @param path
58
+ * @param namespace
55
59
  * @returns DatastoreMessageResponse Successful Response
56
60
  * @throws ApiError
57
61
  */
58
- static fileDelete(podId, path) {
62
+ static fileDelete(podId, path, namespace = FileNamespace.PERSONAL) {
59
63
  return __request(OpenAPI, {
60
64
  method: 'DELETE',
61
65
  url: '/pods/{pod_id}/datastore/files/by-path',
@@ -64,6 +68,7 @@ export class FilesService {
64
68
  },
65
69
  query: {
66
70
  'path': path,
71
+ 'namespace': namespace,
67
72
  },
68
73
  errors: {
69
74
  422: `Validation Error`,
@@ -74,10 +79,11 @@ export class FilesService {
74
79
  * Get File
75
80
  * @param podId
76
81
  * @param path
82
+ * @param namespace
77
83
  * @returns FileResponse Successful Response
78
84
  * @throws ApiError
79
85
  */
80
- static fileGet(podId, path) {
86
+ static fileGet(podId, path, namespace = FileNamespace.PERSONAL) {
81
87
  return __request(OpenAPI, {
82
88
  method: 'GET',
83
89
  url: '/pods/{pod_id}/datastore/files/by-path',
@@ -86,6 +92,7 @@ export class FilesService {
86
92
  },
87
93
  query: {
88
94
  'path': path,
95
+ 'namespace': namespace,
89
96
  },
90
97
  errors: {
91
98
  422: `Validation Error`,
@@ -117,10 +124,11 @@ export class FilesService {
117
124
  * Get Converted File Metadata
118
125
  * @param podId
119
126
  * @param path
127
+ * @param namespace
120
128
  * @returns ConvertedFileResponse Successful Response
121
129
  * @throws ApiError
122
130
  */
123
- static fileConvertedGet(podId, path) {
131
+ static fileConvertedGet(podId, path, namespace = FileNamespace.PERSONAL) {
124
132
  return __request(OpenAPI, {
125
133
  method: 'GET',
126
134
  url: '/pods/{pod_id}/datastore/files/converted/by-path',
@@ -129,6 +137,7 @@ export class FilesService {
129
137
  },
130
138
  query: {
131
139
  'path': path,
140
+ 'namespace': namespace,
132
141
  },
133
142
  errors: {
134
143
  422: `Validation Error`,
@@ -140,10 +149,11 @@ export class FilesService {
140
149
  * @param podId
141
150
  * @param path
142
151
  * @param artifact
152
+ * @param namespace
143
153
  * @returns any Successful Response
144
154
  * @throws ApiError
145
155
  */
146
- static fileConvertedDownload(podId, path, artifact = 'document.md') {
156
+ static fileConvertedDownload(podId, path, artifact = 'document.md', namespace = FileNamespace.PERSONAL) {
147
157
  return __request(OpenAPI, {
148
158
  method: 'GET',
149
159
  url: '/pods/{pod_id}/datastore/files/converted/download',
@@ -153,6 +163,7 @@ export class FilesService {
153
163
  query: {
154
164
  'path': path,
155
165
  'artifact': artifact,
166
+ 'namespace': namespace,
156
167
  },
157
168
  errors: {
158
169
  422: `Validation Error`,
@@ -163,10 +174,11 @@ export class FilesService {
163
174
  * Render Converted File As HTML
164
175
  * @param podId
165
176
  * @param path
177
+ * @param namespace
166
178
  * @returns any Successful Response
167
179
  * @throws ApiError
168
180
  */
169
- static fileConvertedRender(podId, path) {
181
+ static fileConvertedRender(podId, path, namespace = FileNamespace.PERSONAL) {
170
182
  return __request(OpenAPI, {
171
183
  method: 'GET',
172
184
  url: '/pods/{pod_id}/datastore/files/converted/render',
@@ -175,6 +187,7 @@ export class FilesService {
175
187
  },
176
188
  query: {
177
189
  'path': path,
190
+ 'namespace': namespace,
178
191
  },
179
192
  errors: {
180
193
  422: `Validation Error`,
@@ -185,10 +198,11 @@ export class FilesService {
185
198
  * Download File
186
199
  * @param podId
187
200
  * @param path
201
+ * @param namespace
188
202
  * @returns any Successful Response
189
203
  * @throws ApiError
190
204
  */
191
- static fileDownload(podId, path) {
205
+ static fileDownload(podId, path, namespace = FileNamespace.PERSONAL) {
192
206
  return __request(OpenAPI, {
193
207
  method: 'GET',
194
208
  url: '/pods/{pod_id}/datastore/files/download',
@@ -197,6 +211,7 @@ export class FilesService {
197
211
  },
198
212
  query: {
199
213
  'path': path,
214
+ 'namespace': namespace,
200
215
  },
201
216
  errors: {
202
217
  422: `Validation Error`,
@@ -249,11 +264,12 @@ export class FilesService {
249
264
  * Get Directory Tree
250
265
  * @param podId
251
266
  * @param rootPath
267
+ * @param namespace
252
268
  * @param filesPerDirectory
253
269
  * @returns DirectoryTreeResponse Successful Response
254
270
  * @throws ApiError
255
271
  */
256
- static fileTree(podId, rootPath = '/', filesPerDirectory = 3) {
272
+ static fileTree(podId, rootPath = '/', namespace = FileNamespace.PERSONAL, filesPerDirectory = 3) {
257
273
  return __request(OpenAPI, {
258
274
  method: 'GET',
259
275
  url: '/pods/{pod_id}/datastore/files/tree',
@@ -262,6 +278,7 @@ export class FilesService {
262
278
  },
263
279
  query: {
264
280
  'root_path': rootPath,
281
+ 'namespace': namespace,
265
282
  'files_per_directory': filesPerDirectory,
266
283
  },
267
284
  errors: {
@@ -118,7 +118,7 @@ export declare class WorkflowsService {
118
118
  static workflowInstallCreate(podId: string, workflowName: string, requestBody: WorkflowInstallRequest): CancelablePromise<FlowInstallResponse>;
119
119
  /**
120
120
  * List Workflow Installs
121
- * List the current user's installations for a workflow.
121
+ * List workflow installations visible to the current user. `GLOBAL` workflows return the pod-level install; `USER` workflows return the current user's install.
122
122
  * @param podId
123
123
  * @param workflowName
124
124
  * @returns WorkflowInstallListResponse Successful Response