lemma-sdk 0.2.35 → 0.2.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/README.md +126 -43
  2. package/dist/browser/lemma-client.js +456 -169
  3. package/dist/client.d.ts +1 -2
  4. package/dist/client.js +1 -3
  5. package/dist/index.d.ts +1 -1
  6. package/dist/namespaces/agents.js +1 -1
  7. package/dist/namespaces/conversations.d.ts +73 -0
  8. package/dist/namespaces/conversations.js +174 -0
  9. package/dist/namespaces/files.d.ts +24 -6
  10. package/dist/namespaces/files.js +25 -12
  11. package/dist/namespaces/integrations.d.ts +10 -2
  12. package/dist/namespaces/integrations.js +17 -2
  13. package/dist/namespaces/pod-surfaces.d.ts +1 -1
  14. package/dist/namespaces/pod-surfaces.js +6 -6
  15. package/dist/namespaces/tasks.d.ts +1 -5
  16. package/dist/namespaces/tasks.js +54 -12
  17. package/dist/openapi_client/index.d.ts +27 -34
  18. package/dist/openapi_client/index.js +9 -12
  19. package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +2 -2
  20. package/dist/openapi_client/models/AgentListResponse.d.ts +2 -4
  21. package/dist/openapi_client/models/AgentMessageResponse.d.ts +0 -3
  22. package/dist/openapi_client/models/{AvailableModels.d.ts → AgentModelName.d.ts} +4 -1
  23. package/dist/openapi_client/models/AgentModelName.js +18 -0
  24. package/dist/openapi_client/models/AgentResponse.d.ts +18 -13
  25. package/dist/openapi_client/models/AgentSurfaceListResponse.d.ts +6 -0
  26. package/dist/openapi_client/models/{AssistantSurfaceResponse.d.ts → AgentSurfaceResponse.d.ts} +6 -5
  27. package/dist/openapi_client/models/{AssistantSurfaceStatus.d.ts → AgentSurfaceStatus.d.ts} +1 -1
  28. package/dist/openapi_client/models/AgentSurfaceStatus.js +10 -0
  29. package/dist/openapi_client/models/{ToolSet.d.ts → AgentToolset.d.ts} +3 -5
  30. package/dist/openapi_client/models/AgentToolset.js +17 -0
  31. package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +3 -5
  32. package/dist/openapi_client/models/ApplicationMode.d.ts +3 -3
  33. package/dist/openapi_client/models/ApplicationMode.js +3 -3
  34. package/dist/openapi_client/models/ConversationResponse.d.ts +9 -20
  35. package/dist/openapi_client/models/CreateAgentRequest.d.ts +11 -7
  36. package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -8
  37. package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -5
  38. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +2 -2
  39. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +1 -1
  40. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +2 -2
  41. package/dist/openapi_client/models/FeedbackCategory.d.ts +7 -0
  42. package/dist/openapi_client/models/FeedbackCategory.js +12 -0
  43. package/dist/openapi_client/models/FileNamespace.d.ts +4 -0
  44. package/dist/openapi_client/models/FileNamespace.js +9 -0
  45. package/dist/openapi_client/models/FileResponse.d.ts +2 -2
  46. package/dist/openapi_client/models/FlowRunEntity.d.ts +11 -1
  47. package/dist/openapi_client/models/FunctionResponse.d.ts +2 -2
  48. package/dist/openapi_client/models/HarnessKind.d.ts +7 -0
  49. package/dist/openapi_client/models/HarnessKind.js +12 -0
  50. package/dist/openapi_client/models/IntegrationHelperAgentRequest.d.ts +13 -0
  51. package/dist/openapi_client/models/IntegrationHelperAgentResponse.d.ts +25 -0
  52. package/dist/openapi_client/models/MessageListResponse.d.ts +6 -0
  53. package/dist/openapi_client/models/MessageResponse.d.ts +17 -0
  54. package/dist/openapi_client/models/OperationDetail.d.ts +3 -0
  55. package/dist/openapi_client/models/OperationDetailsBatchRequest.d.ts +9 -0
  56. package/dist/openapi_client/models/OperationDetailsBatchResponse.d.ts +18 -0
  57. package/dist/openapi_client/models/OperationDiscoverResponse.d.ts +26 -0
  58. package/dist/openapi_client/models/OperationSummary.d.ts +3 -0
  59. package/dist/openapi_client/models/OrganizationCreateRequest.d.ts +2 -0
  60. package/dist/openapi_client/models/OrganizationInvitationRequest.d.ts +1 -0
  61. package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +4 -0
  62. package/dist/openapi_client/models/OrganizationMessageResponse.d.ts +1 -0
  63. package/dist/openapi_client/models/OrganizationResponse.d.ts +2 -0
  64. package/dist/openapi_client/models/OrganizationSlugAvailabilityResponse.d.ts +7 -0
  65. package/dist/openapi_client/models/ReportFeedbackRequest.d.ts +30 -0
  66. package/dist/openapi_client/models/ReportFeedbackResponse.d.ts +25 -0
  67. package/dist/openapi_client/models/ResourceType.d.ts +0 -1
  68. package/dist/openapi_client/models/ResourceType.js +0 -1
  69. package/dist/openapi_client/models/SendMessageRequest.d.ts +5 -0
  70. package/dist/openapi_client/models/{ToolCallRequest.d.ts → ToolCallContent.d.ts} +1 -1
  71. package/dist/openapi_client/models/{ToolCallResponse.d.ts → ToolReturnContent.d.ts} +2 -1
  72. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +11 -7
  73. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -5
  74. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +2 -2
  75. package/dist/openapi_client/models/WorkflowInstallListResponse.d.ts +4 -0
  76. package/dist/openapi_client/models/app__modules__agent__domain__value_objects__TableAccessEntry.d.ts +8 -0
  77. package/dist/openapi_client/models/{TableAccessEntry.d.ts → app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts} +1 -1
  78. package/dist/openapi_client/models/update.d.ts +2 -2
  79. package/dist/openapi_client/services/AgentConversationsService.d.ts +97 -0
  80. package/dist/openapi_client/services/AgentConversationsService.js +217 -0
  81. package/dist/openapi_client/services/{AssistantSurfacesIngressService.d.ts → AgentSurfacesIngressService.d.ts} +2 -2
  82. package/dist/openapi_client/services/{AssistantSurfacesIngressService.js → AgentSurfacesIngressService.js} +2 -2
  83. package/dist/openapi_client/services/{AssistantSurfacesService.d.ts → AgentSurfacesService.d.ts} +11 -11
  84. package/dist/openapi_client/services/{AssistantSurfacesService.js → AgentSurfacesService.js} +10 -10
  85. package/dist/openapi_client/services/AgentToolsService.d.ts +24 -4
  86. package/dist/openapi_client/services/AgentToolsService.js +40 -4
  87. package/dist/openapi_client/services/AgentsService.d.ts +7 -7
  88. package/dist/openapi_client/services/AgentsService.js +8 -8
  89. package/dist/openapi_client/services/ApplicationsService.d.ts +10 -9
  90. package/dist/openapi_client/services/ApplicationsService.js +11 -10
  91. package/dist/openapi_client/services/FilesService.d.ts +17 -8
  92. package/dist/openapi_client/services/FilesService.js +25 -8
  93. package/dist/openapi_client/services/IntegrationsService.d.ts +3 -2
  94. package/dist/openapi_client/services/IntegrationsService.js +4 -2
  95. package/dist/openapi_client/services/OrganizationsService.d.ts +18 -0
  96. package/dist/openapi_client/services/OrganizationsService.js +40 -0
  97. package/dist/openapi_client/services/WorkflowsService.d.ts +10 -0
  98. package/dist/openapi_client/services/WorkflowsService.js +21 -0
  99. package/dist/react/useAgentRun.d.ts +28 -7
  100. package/dist/react/useAgentRun.js +120 -27
  101. package/dist/react/useAssistantController.d.ts +6 -2
  102. package/dist/react/useAssistantController.js +57 -14
  103. package/dist/react/useAssistantSession.d.ts +15 -3
  104. package/dist/react/useAssistantSession.js +19 -15
  105. package/dist/react/useConversationMessages.d.ts +6 -2
  106. package/dist/react/useConversationMessages.js +2 -1
  107. package/dist/react/useConversations.d.ts +6 -2
  108. package/dist/react/useConversations.js +7 -5
  109. package/dist/react/useCreateFolder.d.ts +4 -2
  110. package/dist/react/useCreateFolder.js +6 -3
  111. package/dist/react/useDeleteFile.d.ts +4 -1
  112. package/dist/react/useDeleteFile.js +3 -3
  113. package/dist/react/useFile.d.ts +4 -2
  114. package/dist/react/useFile.js +3 -3
  115. package/dist/react/useFilePreview.d.ts +4 -1
  116. package/dist/react/useFilePreview.js +5 -4
  117. package/dist/react/useFileTree.d.ts +4 -2
  118. package/dist/react/useFileTree.js +3 -2
  119. package/dist/react/useFiles.d.ts +4 -2
  120. package/dist/react/useFiles.js +5 -3
  121. package/dist/react/useUpdateFile.d.ts +4 -2
  122. package/dist/react/useUpdateFile.js +6 -3
  123. package/dist/react/useUploadFile.d.ts +4 -2
  124. package/dist/react/useUploadFile.js +6 -3
  125. package/dist/react/useWorkflowRun.js +1 -1
  126. package/dist/react/useWorkflowStart.js +1 -1
  127. package/dist/run-utils.d.ts +2 -1
  128. package/dist/types.d.ts +62 -6
  129. package/package.json +1 -1
  130. package/dist/namespaces/assistants.d.ts +0 -96
  131. package/dist/namespaces/assistants.js +0 -160
  132. package/dist/openapi_client/models/AddMessageRequest.d.ts +0 -6
  133. package/dist/openapi_client/models/AppDescriptorResponse.d.ts +0 -5
  134. package/dist/openapi_client/models/AssistantListResponse.d.ts +0 -6
  135. package/dist/openapi_client/models/AssistantResponse.d.ts +0 -23
  136. package/dist/openapi_client/models/AssistantSurfaceListResponse.d.ts +0 -6
  137. package/dist/openapi_client/models/AssistantSurfaceStatus.js +0 -10
  138. package/dist/openapi_client/models/AvailableModelInfo.d.ts +0 -8
  139. package/dist/openapi_client/models/AvailableModels.js +0 -15
  140. package/dist/openapi_client/models/AvailableModelsListResponse.d.ts +0 -7
  141. package/dist/openapi_client/models/ConversationMessageListResponse.d.ts +0 -6
  142. package/dist/openapi_client/models/ConversationMessageResponse.d.ts +0 -19
  143. package/dist/openapi_client/models/ConversationStatus.d.ts +0 -7
  144. package/dist/openapi_client/models/ConversationStatus.js +0 -12
  145. package/dist/openapi_client/models/ConversationType.d.ts +0 -8
  146. package/dist/openapi_client/models/ConversationType.js +0 -13
  147. package/dist/openapi_client/models/CreateAssistantRequest.d.ts +0 -18
  148. package/dist/openapi_client/models/CreateMessageRequest.d.ts +0 -6
  149. package/dist/openapi_client/models/CreateTaskRequest.d.ts +0 -10
  150. package/dist/openapi_client/models/FileVisibility.d.ts +0 -4
  151. package/dist/openapi_client/models/FileVisibility.js +0 -9
  152. package/dist/openapi_client/models/OperationListResponse.d.ts +0 -6
  153. package/dist/openapi_client/models/TaskListResponse.d.ts +0 -9
  154. package/dist/openapi_client/models/TaskMessageListResponse.d.ts +0 -9
  155. package/dist/openapi_client/models/TaskMessageResponse.d.ts +0 -15
  156. package/dist/openapi_client/models/TaskResponse.d.ts +0 -16
  157. package/dist/openapi_client/models/TaskResponse.js +0 -1
  158. package/dist/openapi_client/models/TaskStatus.d.ts +0 -12
  159. package/dist/openapi_client/models/TaskStatus.js +0 -17
  160. package/dist/openapi_client/models/ToolCallRequest.js +0 -1
  161. package/dist/openapi_client/models/ToolCallResponse.js +0 -1
  162. package/dist/openapi_client/models/ToolSet.js +0 -19
  163. package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +0 -17
  164. package/dist/openapi_client/models/UpdateAssistantRequest.js +0 -1
  165. package/dist/openapi_client/services/AssistantsService.d.ts +0 -49
  166. package/dist/openapi_client/services/AssistantsService.js +0 -112
  167. package/dist/openapi_client/services/ConversationsService.d.ts +0 -88
  168. package/dist/openapi_client/services/ConversationsService.js +0 -202
  169. package/dist/openapi_client/services/TasksService.d.ts +0 -76
  170. package/dist/openapi_client/services/TasksService.js +0 -167
  171. /package/dist/openapi_client/models/{AddMessageRequest.js → AgentSurfaceListResponse.js} +0 -0
  172. /package/dist/openapi_client/models/{AppDescriptorResponse.js → AgentSurfaceResponse.js} +0 -0
  173. /package/dist/openapi_client/models/{AssistantListResponse.js → IntegrationHelperAgentRequest.js} +0 -0
  174. /package/dist/openapi_client/models/{AssistantResponse.js → IntegrationHelperAgentResponse.js} +0 -0
  175. /package/dist/openapi_client/models/{AssistantSurfaceListResponse.js → MessageListResponse.js} +0 -0
  176. /package/dist/openapi_client/models/{AssistantSurfaceResponse.js → MessageResponse.js} +0 -0
  177. /package/dist/openapi_client/models/{AvailableModelInfo.js → OperationDetailsBatchRequest.js} +0 -0
  178. /package/dist/openapi_client/models/{AvailableModelsListResponse.js → OperationDetailsBatchResponse.js} +0 -0
  179. /package/dist/openapi_client/models/{ConversationMessageListResponse.js → OperationDiscoverResponse.js} +0 -0
  180. /package/dist/openapi_client/models/{ConversationMessageResponse.js → OrganizationSlugAvailabilityResponse.js} +0 -0
  181. /package/dist/openapi_client/models/{CreateAssistantRequest.js → ReportFeedbackRequest.js} +0 -0
  182. /package/dist/openapi_client/models/{CreateMessageRequest.js → ReportFeedbackResponse.js} +0 -0
  183. /package/dist/openapi_client/models/{CreateTaskRequest.js → SendMessageRequest.js} +0 -0
  184. /package/dist/openapi_client/models/{OperationListResponse.js → ToolCallContent.js} +0 -0
  185. /package/dist/openapi_client/models/{TableAccessEntry.js → ToolReturnContent.js} +0 -0
  186. /package/dist/openapi_client/models/{TaskListResponse.js → WorkflowInstallListResponse.js} +0 -0
  187. /package/dist/openapi_client/models/{TaskMessageListResponse.js → app__modules__agent__domain__value_objects__TableAccessEntry.js} +0 -0
  188. /package/dist/openapi_client/models/{TaskMessageResponse.js → app__modules__function__api__schemas__function_schemas__TableAccessEntry.js} +0 -0
@@ -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
@@ -1,12 +1,13 @@
1
- import type { AppDescriptorResponse } from '../models/AppDescriptorResponse.js';
2
1
  import type { ApplicationDetailResponseSchema } from '../models/ApplicationDetailResponseSchema.js';
3
2
  import type { ApplicationListResponseSchema } from '../models/ApplicationListResponseSchema.js';
4
3
  import type { AppTriggerListResponseSchema } from '../models/AppTriggerListResponseSchema.js';
5
4
  import type { AppTriggerResponseSchema } from '../models/AppTriggerResponseSchema.js';
6
5
  import type { OperationDetail } from '../models/OperationDetail.js';
6
+ import type { OperationDetailsBatchRequest } from '../models/OperationDetailsBatchRequest.js';
7
+ import type { OperationDetailsBatchResponse } from '../models/OperationDetailsBatchResponse.js';
8
+ import type { OperationDiscoverResponse } from '../models/OperationDiscoverResponse.js';
7
9
  import type { OperationExecutionRequest } from '../models/OperationExecutionRequest.js';
8
10
  import type { OperationExecutionResponse } from '../models/OperationExecutionResponse.js';
9
- import type { OperationListResponse } from '../models/OperationListResponse.js';
10
11
  import type { CancelablePromise } from '../core/CancelablePromise.js';
11
12
  export declare class ApplicationsService {
12
13
  /**
@@ -46,22 +47,22 @@ export declare class ApplicationsService {
46
47
  */
47
48
  static applicationGet(applicationId: string): CancelablePromise<ApplicationDetailResponseSchema>;
48
49
  /**
49
- * List Application Operations
50
+ * Discover Application Operations
50
51
  * @param applicationId
51
52
  * @param query
52
53
  * @param limit
53
- * @param pageToken
54
- * @returns OperationListResponse Successful Response
54
+ * @returns OperationDiscoverResponse Successful Response
55
55
  * @throws ApiError
56
56
  */
57
- static applicationOperationList(applicationId: string, query?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<OperationListResponse>;
57
+ static applicationOperationDiscover(applicationId: string, query?: (string | null), limit?: number): CancelablePromise<OperationDiscoverResponse>;
58
58
  /**
59
- * Get Application Descriptor
59
+ * Get Application Operation Details In Batch
60
60
  * @param applicationId
61
- * @returns AppDescriptorResponse Successful Response
61
+ * @param requestBody
62
+ * @returns OperationDetailsBatchResponse Successful Response
62
63
  * @throws ApiError
63
64
  */
64
- static applicationDescriptor(applicationId: string): CancelablePromise<AppDescriptorResponse>;
65
+ static applicationOperationDetailsBatch(applicationId: string, requestBody: OperationDetailsBatchRequest): CancelablePromise<OperationDetailsBatchResponse>;
65
66
  /**
66
67
  * Get Application Operation Details
67
68
  * @param applicationId
@@ -86,15 +86,14 @@ export class ApplicationsService {
86
86
  });
87
87
  }
88
88
  /**
89
- * List Application Operations
89
+ * Discover Application Operations
90
90
  * @param applicationId
91
91
  * @param query
92
92
  * @param limit
93
- * @param pageToken
94
- * @returns OperationListResponse Successful Response
93
+ * @returns OperationDiscoverResponse Successful Response
95
94
  * @throws ApiError
96
95
  */
97
- static applicationOperationList(applicationId, query, limit = 100, pageToken) {
96
+ static applicationOperationDiscover(applicationId, query, limit = 100) {
98
97
  return __request(OpenAPI, {
99
98
  method: 'GET',
100
99
  url: '/integrations/applications/{application_id}/operations',
@@ -104,7 +103,6 @@ export class ApplicationsService {
104
103
  query: {
105
104
  'query': query,
106
105
  'limit': limit,
107
- 'page_token': pageToken,
108
106
  },
109
107
  errors: {
110
108
  422: `Validation Error`,
@@ -112,18 +110,21 @@ export class ApplicationsService {
112
110
  });
113
111
  }
114
112
  /**
115
- * Get Application Descriptor
113
+ * Get Application Operation Details In Batch
116
114
  * @param applicationId
117
- * @returns AppDescriptorResponse Successful Response
115
+ * @param requestBody
116
+ * @returns OperationDetailsBatchResponse Successful Response
118
117
  * @throws ApiError
119
118
  */
120
- static applicationDescriptor(applicationId) {
119
+ static applicationOperationDetailsBatch(applicationId, requestBody) {
121
120
  return __request(OpenAPI, {
122
- method: 'GET',
123
- url: '/integrations/applications/{application_id}/operations/descriptor',
121
+ method: 'POST',
122
+ url: '/integrations/applications/{application_id}/operations/details',
124
123
  path: {
125
124
  'application_id': applicationId,
126
125
  },
126
+ body: requestBody,
127
+ mediaType: 'application/json',
127
128
  errors: {
128
129
  422: `Validation Error`,
129
130
  },
@@ -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: {
@@ -52,8 +52,9 @@ export declare class IntegrationsService {
52
52
  * OAuth Callback
53
53
  * Handle OAuth callback and complete account connection. This endpoint is public and uses state parameter for security.
54
54
  * @param error
55
- * @returns AccountResponseSchema Successful Response
55
+ * @param format
56
+ * @returns string Successful Response
56
57
  * @throws ApiError
57
58
  */
58
- static integrationOauthCallback(error?: (string | null)): CancelablePromise<AccountResponseSchema>;
59
+ static integrationOauthCallback(error?: (string | null), format?: (string | null)): CancelablePromise<string>;
59
60
  }
@@ -103,15 +103,17 @@ export class IntegrationsService {
103
103
  * OAuth Callback
104
104
  * Handle OAuth callback and complete account connection. This endpoint is public and uses state parameter for security.
105
105
  * @param error
106
- * @returns AccountResponseSchema Successful Response
106
+ * @param format
107
+ * @returns string Successful Response
107
108
  * @throws ApiError
108
109
  */
109
- static integrationOauthCallback(error) {
110
+ static integrationOauthCallback(error, format) {
110
111
  return __request(OpenAPI, {
111
112
  method: 'GET',
112
113
  url: '/integrations/connect-requests/oauth/callback',
113
114
  query: {
114
115
  'error': error,
116
+ 'format': format,
115
117
  },
116
118
  errors: {
117
119
  422: `Validation Error`,
@@ -8,6 +8,7 @@ import type { OrganizationMemberListResponse } from '../models/OrganizationMembe
8
8
  import type { OrganizationMemberResponse } from '../models/OrganizationMemberResponse.js';
9
9
  import type { OrganizationMessageResponse } from '../models/OrganizationMessageResponse.js';
10
10
  import type { OrganizationResponse } from '../models/OrganizationResponse.js';
11
+ import type { OrganizationSlugAvailabilityResponse } from '../models/OrganizationSlugAvailabilityResponse.js';
11
12
  import type { UpdateMemberRoleRequest } from '../models/UpdateMemberRoleRequest.js';
12
13
  import type { CancelablePromise } from '../core/CancelablePromise.js';
13
14
  export declare class OrganizationsService {
@@ -62,6 +63,23 @@ export declare class OrganizationsService {
62
63
  * @throws ApiError
63
64
  */
64
65
  static orgInvitationAccept(invitationId: string): CancelablePromise<OrganizationMessageResponse>;
66
+ /**
67
+ * Check Organization Slug Availability
68
+ * Check whether an organization slug is available
69
+ * @param slug
70
+ * @returns OrganizationSlugAvailabilityResponse Successful Response
71
+ * @throws ApiError
72
+ */
73
+ static orgSlugAvailability(slug: string): CancelablePromise<OrganizationSlugAvailabilityResponse>;
74
+ /**
75
+ * Get Suggested Organizations
76
+ * Get auto-join organizations matching the current user's email domain
77
+ * @param limit
78
+ * @param pageToken
79
+ * @returns OrganizationListResponse Successful Response
80
+ * @throws ApiError
81
+ */
82
+ static orgSuggested(limit?: number, pageToken?: (string | null)): CancelablePromise<OrganizationListResponse>;
65
83
  /**
66
84
  * Get Organization
67
85
  * Get organization details
@@ -121,6 +121,46 @@ export class OrganizationsService {
121
121
  },
122
122
  });
123
123
  }
124
+ /**
125
+ * Check Organization Slug Availability
126
+ * Check whether an organization slug is available
127
+ * @param slug
128
+ * @returns OrganizationSlugAvailabilityResponse Successful Response
129
+ * @throws ApiError
130
+ */
131
+ static orgSlugAvailability(slug) {
132
+ return __request(OpenAPI, {
133
+ method: 'GET',
134
+ url: '/organizations/slug-availability',
135
+ query: {
136
+ 'slug': slug,
137
+ },
138
+ errors: {
139
+ 422: `Validation Error`,
140
+ },
141
+ });
142
+ }
143
+ /**
144
+ * Get Suggested Organizations
145
+ * Get auto-join organizations matching the current user's email domain
146
+ * @param limit
147
+ * @param pageToken
148
+ * @returns OrganizationListResponse Successful Response
149
+ * @throws ApiError
150
+ */
151
+ static orgSuggested(limit = 100, pageToken) {
152
+ return __request(OpenAPI, {
153
+ method: 'GET',
154
+ url: '/organizations/suggested',
155
+ query: {
156
+ 'limit': limit,
157
+ 'page_token': pageToken,
158
+ },
159
+ errors: {
160
+ 422: `Validation Error`,
161
+ },
162
+ });
163
+ }
124
164
  /**
125
165
  * Get Organization
126
166
  * Get organization details
@@ -3,6 +3,7 @@ import type { FlowResponse } from '../models/FlowResponse.js';
3
3
  import type { FlowRunEntity } from '../models/FlowRunEntity.js';
4
4
  import type { WorkflowCreateRequest } from '../models/WorkflowCreateRequest.js';
5
5
  import type { WorkflowGraphUpdateRequest } from '../models/WorkflowGraphUpdateRequest.js';
6
+ import type { WorkflowInstallListResponse } from '../models/WorkflowInstallListResponse.js';
6
7
  import type { WorkflowInstallRequest } from '../models/WorkflowInstallRequest.js';
7
8
  import type { WorkflowListResponse } from '../models/WorkflowListResponse.js';
8
9
  import type { WorkflowRunListResponse } from '../models/WorkflowRunListResponse.js';
@@ -115,6 +116,15 @@ export declare class WorkflowsService {
115
116
  * @throws ApiError
116
117
  */
117
118
  static workflowInstallCreate(podId: string, workflowName: string, requestBody: WorkflowInstallRequest): CancelablePromise<FlowInstallResponse>;
119
+ /**
120
+ * List Workflow Installs
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
+ * @param podId
123
+ * @param workflowName
124
+ * @returns WorkflowInstallListResponse Successful Response
125
+ * @throws ApiError
126
+ */
127
+ static workflowInstallList(podId: string, workflowName: string): CancelablePromise<WorkflowInstallListResponse>;
118
128
  /**
119
129
  * Uninstall Workflow
120
130
  * Remove a previously created workflow installation binding.
@@ -255,6 +255,27 @@ export class WorkflowsService {
255
255
  },
256
256
  });
257
257
  }
258
+ /**
259
+ * List Workflow Installs
260
+ * List workflow installations visible to the current user. `GLOBAL` workflows return the pod-level install; `USER` workflows return the current user's install.
261
+ * @param podId
262
+ * @param workflowName
263
+ * @returns WorkflowInstallListResponse Successful Response
264
+ * @throws ApiError
265
+ */
266
+ static workflowInstallList(podId, workflowName) {
267
+ return __request(OpenAPI, {
268
+ method: 'GET',
269
+ url: '/pods/{pod_id}/workflows/{workflow_name}/installs',
270
+ path: {
271
+ 'pod_id': podId,
272
+ 'workflow_name': workflowName,
273
+ },
274
+ errors: {
275
+ 422: `Validation Error`,
276
+ },
277
+ });
278
+ }
258
279
  /**
259
280
  * Uninstall Workflow
260
281
  * Remove a previously created workflow installation binding.