lemma-sdk 0.2.5 → 0.2.7

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 (207) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/lemma-client.js +674 -1004
  3. package/dist/client.d.ts +0 -2
  4. package/dist/client.js +0 -3
  5. package/dist/index.d.ts +0 -1
  6. package/dist/namespaces/files.d.ts +8 -8
  7. package/dist/namespaces/files.js +16 -16
  8. package/dist/namespaces/records.d.ts +10 -10
  9. package/dist/namespaces/records.js +24 -24
  10. package/dist/namespaces/tables.d.ts +7 -7
  11. package/dist/namespaces/tables.js +13 -13
  12. package/dist/namespaces/workflows.d.ts +4 -4
  13. package/dist/openapi_client/index.d.ts +16 -15
  14. package/dist/openapi_client/index.js +4 -2
  15. package/dist/openapi_client/models/AccountCredentialsResponseSchema.d.ts +1 -1
  16. package/dist/openapi_client/models/AccountResponseSchema.d.ts +6 -6
  17. package/dist/openapi_client/models/{AgentNode_Input.d.ts → AgentNode.d.ts} +2 -2
  18. package/dist/openapi_client/models/{AgentNode_Output.d.ts → AgentNodeResponse.d.ts} +2 -5
  19. package/dist/openapi_client/models/AgentResponse.d.ts +10 -8
  20. package/dist/openapi_client/models/AppTriggerResponseSchema.d.ts +4 -4
  21. package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +4 -4
  22. package/dist/openapi_client/models/ApplicationDetailResponseSchema.d.ts +6 -6
  23. package/dist/openapi_client/models/ApplicationResponseSchema.d.ts +5 -5
  24. package/dist/openapi_client/models/AssistantResponse.d.ts +9 -7
  25. package/dist/openapi_client/models/AssistantSurfaceResponse.d.ts +3 -3
  26. package/dist/openapi_client/models/CancelSubscriptionResponse.d.ts +3 -3
  27. package/dist/openapi_client/models/ColumnSchema.d.ts +22 -22
  28. package/dist/openapi_client/models/ConnectRequestResponseSchema.d.ts +4 -4
  29. package/dist/openapi_client/models/ConversationMessageResponse.d.ts +2 -2
  30. package/dist/openapi_client/models/ConversationResponse.d.ts +8 -8
  31. package/dist/openapi_client/models/CreateAgentRequest.d.ts +6 -4
  32. package/dist/openapi_client/models/CreateAssistantRequest.d.ts +5 -3
  33. package/dist/openapi_client/models/CreateConversationRequest.d.ts +3 -3
  34. package/dist/openapi_client/models/CreateDeskRequest.d.ts +2 -3
  35. package/dist/openapi_client/models/CreateFolderRequest.d.ts +6 -1
  36. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +8 -6
  37. package/dist/openapi_client/models/CreateTableRequest.d.ts +8 -8
  38. package/dist/openapi_client/models/CreateTriggerRequest.d.ts +3 -3
  39. package/dist/openapi_client/models/DataStoreFlowStart.d.ts +6 -6
  40. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +3 -1
  41. package/dist/openapi_client/models/{DecisionNode_Input.d.ts → DecisionNode.d.ts} +2 -2
  42. package/dist/openapi_client/models/{DecisionNode_Output.d.ts → DecisionNodeResponse.d.ts} +2 -5
  43. package/dist/openapi_client/models/DeskBundleUploadRequest.d.ts +1 -1
  44. package/dist/openapi_client/models/DeskBundleUploadResponse.d.ts +1 -1
  45. package/dist/openapi_client/models/DeskResponse.d.ts +6 -7
  46. package/dist/openapi_client/models/EmailSurfaceConfigCreate.d.ts +1 -1
  47. package/dist/openapi_client/models/EndNode.d.ts +1 -1
  48. package/dist/openapi_client/models/EndNodeResponse.d.ts +8 -0
  49. package/dist/openapi_client/models/EventFlowStart.d.ts +5 -5
  50. package/dist/openapi_client/models/FileInfo.d.ts +3 -3
  51. package/dist/openapi_client/models/FileResponse.d.ts +13 -9
  52. package/dist/openapi_client/models/FileSearchRequest.d.ts +2 -2
  53. package/dist/openapi_client/models/FileSearchResponse.d.ts +1 -1
  54. package/dist/openapi_client/models/FileSearchResultSchema.d.ts +1 -1
  55. package/dist/openapi_client/models/FileUploadResponse.d.ts +2 -2
  56. package/dist/openapi_client/models/FileVisibility.d.ts +4 -0
  57. package/dist/openapi_client/models/FileVisibility.js +9 -0
  58. package/dist/openapi_client/models/FlowInstallEntity.d.ts +5 -5
  59. package/dist/openapi_client/models/FlowResponse.d.ts +23 -0
  60. package/dist/openapi_client/models/FlowRunEntity.d.ts +10 -10
  61. package/dist/openapi_client/models/FlowStart.d.ts +4 -4
  62. package/dist/openapi_client/models/FormNode.d.ts +1 -1
  63. package/dist/openapi_client/models/FormNodeResponse.d.ts +8 -0
  64. package/dist/openapi_client/models/{FunctionNode_Input.d.ts → FunctionNode.d.ts} +2 -2
  65. package/dist/openapi_client/models/{FunctionNode_Output.d.ts → FunctionNodeResponse.d.ts} +2 -5
  66. package/dist/openapi_client/models/FunctionResponse.d.ts +13 -11
  67. package/dist/openapi_client/models/FunctionRunResponse.d.ts +7 -7
  68. package/dist/openapi_client/models/IconUploadResponse.d.ts +1 -1
  69. package/dist/openapi_client/models/LoopNode.d.ts +1 -1
  70. package/dist/openapi_client/models/LoopNodeConfig.d.ts +4 -4
  71. package/dist/openapi_client/models/LoopNodeResponse.d.ts +8 -0
  72. package/dist/openapi_client/models/NotificationContent.d.ts +1 -1
  73. package/dist/openapi_client/models/OperationDetail.d.ts +1 -1
  74. package/dist/openapi_client/models/OperationExecutionRequest.d.ts +1 -1
  75. package/dist/openapi_client/models/OperationSummary.d.ts +1 -1
  76. package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +5 -5
  77. package/dist/openapi_client/models/OrganizationMemberResponse.d.ts +3 -3
  78. package/dist/openapi_client/models/OrganizationResponse.d.ts +1 -1
  79. package/dist/openapi_client/models/PlanResponse.d.ts +6 -6
  80. package/dist/openapi_client/models/PodAppConfigItem.d.ts +3 -3
  81. package/dist/openapi_client/models/PodCreateRequest.d.ts +3 -3
  82. package/dist/openapi_client/models/PodFlowConfigItem.d.ts +3 -3
  83. package/dist/openapi_client/models/PodListResponse.d.ts +1 -1
  84. package/dist/openapi_client/models/PodMemberListResponse.d.ts +1 -1
  85. package/dist/openapi_client/models/PodMemberResponse.d.ts +2 -2
  86. package/dist/openapi_client/models/PodPermissionsResponse.d.ts +1 -1
  87. package/dist/openapi_client/models/PodResponse.d.ts +6 -6
  88. package/dist/openapi_client/models/PodUpdateRequest.d.ts +2 -2
  89. package/dist/openapi_client/models/RecentUsageResponse.d.ts +1 -1
  90. package/dist/openapi_client/models/RecordListResponse.d.ts +1 -1
  91. package/dist/openapi_client/models/RecordQueryRequest.d.ts +4 -4
  92. package/dist/openapi_client/models/RecordSort.d.ts +4 -4
  93. package/dist/openapi_client/models/SearchResult.d.ts +3 -3
  94. package/dist/openapi_client/models/SeatInfoResponse.d.ts +2 -2
  95. package/dist/openapi_client/models/SlackSurfaceConfigCreate.d.ts +1 -1
  96. package/dist/openapi_client/models/StackFrame.d.ts +3 -3
  97. package/dist/openapi_client/models/StartSubscriptionRequest.d.ts +4 -4
  98. package/dist/openapi_client/models/StepExecution.d.ts +4 -4
  99. package/dist/openapi_client/models/SubscriptionStatusResponse.d.ts +1 -1
  100. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +7 -7
  101. package/dist/openapi_client/models/TableAccessEntry.d.ts +5 -0
  102. package/dist/openapi_client/models/TableAccessMode.d.ts +7 -0
  103. package/dist/openapi_client/models/TableAccessMode.js +12 -0
  104. package/dist/openapi_client/models/TableResponse.d.ts +5 -5
  105. package/dist/openapi_client/models/TaskMessageResponse.d.ts +2 -2
  106. package/dist/openapi_client/models/TaskResponse.d.ts +5 -5
  107. package/dist/openapi_client/models/TeamsSurfaceConfigCreate.d.ts +1 -1
  108. package/dist/openapi_client/models/TextContent.d.ts +1 -1
  109. package/dist/openapi_client/models/ThinkingContent.d.ts +1 -1
  110. package/dist/openapi_client/models/ToolCallRequest.d.ts +2 -2
  111. package/dist/openapi_client/models/ToolCallResponse.d.ts +1 -1
  112. package/dist/openapi_client/models/TriggerResponse.d.ts +6 -6
  113. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +5 -3
  114. package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +4 -2
  115. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -1
  116. package/dist/openapi_client/models/UpdateDeskRequest.d.ts +1 -1
  117. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -4
  118. package/dist/openapi_client/models/UsageRecordResponse.d.ts +11 -11
  119. package/dist/openapi_client/models/UsageSummaryResponse.d.ts +5 -5
  120. package/dist/openapi_client/models/UserProfileRequest.d.ts +2 -2
  121. package/dist/openapi_client/models/UserResponse.d.ts +6 -6
  122. package/dist/openapi_client/models/ValidationError.d.ts +2 -2
  123. package/dist/openapi_client/models/VerifyTokenResponse.d.ts +1 -1
  124. package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
  125. package/dist/openapi_client/models/WaitUntilNodeResponse.d.ts +8 -0
  126. package/dist/openapi_client/models/WebSearchAgentResponse.d.ts +8 -8
  127. package/dist/openapi_client/models/WebSearchRequest.d.ts +4 -4
  128. package/dist/openapi_client/models/WebSearchResponse.d.ts +8 -8
  129. package/dist/openapi_client/models/WhatsAppSurfaceConfigCreate.d.ts +1 -1
  130. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +6 -6
  131. package/dist/openapi_client/models/WorkflowEdge.d.ts +1 -1
  132. package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +7 -7
  133. package/dist/openapi_client/models/WorkflowListResponse.d.ts +2 -2
  134. package/dist/openapi_client/models/update.d.ts +3 -1
  135. package/dist/openapi_client/services/AgentFilesService.d.ts +46 -0
  136. package/dist/openapi_client/services/AgentFilesService.js +103 -0
  137. package/dist/openapi_client/services/AgentsService.d.ts +15 -15
  138. package/dist/openapi_client/services/AgentsService.js +33 -33
  139. package/dist/openapi_client/services/ApplicationsService.d.ts +7 -7
  140. package/dist/openapi_client/services/ApplicationsService.js +16 -16
  141. package/dist/openapi_client/services/AssistantSurfacesService.d.ts +9 -9
  142. package/dist/openapi_client/services/AssistantSurfacesService.js +19 -19
  143. package/dist/openapi_client/services/AssistantsService.d.ts +13 -13
  144. package/dist/openapi_client/services/AssistantsService.js +31 -31
  145. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +15 -15
  146. package/dist/openapi_client/services/BillingSubscriptionsService.js +22 -22
  147. package/dist/openapi_client/services/BillingUsageService.d.ts +7 -7
  148. package/dist/openapi_client/services/BillingUsageService.js +10 -10
  149. package/dist/openapi_client/services/ConversationsService.d.ts +13 -13
  150. package/dist/openapi_client/services/ConversationsService.js +27 -27
  151. package/dist/openapi_client/services/DesksService.d.ts +13 -13
  152. package/dist/openapi_client/services/DesksService.js +31 -31
  153. package/dist/openapi_client/services/FilesService.d.ts +21 -72
  154. package/dist/openapi_client/services/FilesService.js +39 -154
  155. package/dist/openapi_client/services/FunctionsService.d.ts +21 -21
  156. package/dist/openapi_client/services/FunctionsService.js +45 -45
  157. package/dist/openapi_client/services/IntegrationsService.d.ts +24 -24
  158. package/dist/openapi_client/services/IntegrationsService.js +47 -47
  159. package/dist/openapi_client/services/OrganizationsService.d.ts +46 -46
  160. package/dist/openapi_client/services/OrganizationsService.js +88 -88
  161. package/dist/openapi_client/services/PodMembersService.d.ts +13 -13
  162. package/dist/openapi_client/services/PodMembersService.js +29 -29
  163. package/dist/openapi_client/services/PodsService.d.ts +18 -18
  164. package/dist/openapi_client/services/PodsService.js +34 -34
  165. package/dist/openapi_client/services/PublicDesksService.d.ts +10 -0
  166. package/dist/openapi_client/services/PublicDesksService.js +22 -0
  167. package/dist/openapi_client/services/RecordsService.d.ts +39 -48
  168. package/dist/openapi_client/services/RecordsService.js +71 -89
  169. package/dist/openapi_client/services/TablesService.d.ts +18 -25
  170. package/dist/openapi_client/services/TablesService.js +39 -53
  171. package/dist/openapi_client/services/TasksService.d.ts +19 -19
  172. package/dist/openapi_client/services/TasksService.js +39 -39
  173. package/dist/openapi_client/services/TriggersService.d.ts +16 -16
  174. package/dist/openapi_client/services/TriggersService.js +35 -35
  175. package/dist/openapi_client/services/WebhooksService.d.ts +8 -8
  176. package/dist/openapi_client/services/WebhooksService.js +18 -18
  177. package/dist/openapi_client/services/WorkflowsService.d.ts +59 -59
  178. package/dist/openapi_client/services/WorkflowsService.js +115 -115
  179. package/dist/react/useFunctionSession.d.ts +1 -1
  180. package/dist/react/useFunctionSession.js +9 -2
  181. package/package.json +1 -1
  182. package/dist/namespaces/datastores.d.ts +0 -18
  183. package/dist/namespaces/datastores.js +0 -28
  184. package/dist/openapi_client/models/CreateDatastoreRequest.d.ts +0 -21
  185. package/dist/openapi_client/models/DatastoreListResponse.d.ts +0 -9
  186. package/dist/openapi_client/models/DatastoreQueryRequest.d.ts +0 -9
  187. package/dist/openapi_client/models/DatastoreResponse.d.ts +0 -15
  188. package/dist/openapi_client/models/FlowEntity.d.ts +0 -26
  189. package/dist/openapi_client/models/RecordQueryResponse.d.ts +0 -13
  190. package/dist/openapi_client/models/UpdateDatastoreRequest.d.ts +0 -17
  191. package/dist/openapi_client/models/UpdateDatastoreRequest.js +0 -1
  192. package/dist/openapi_client/services/DatastoreService.d.ts +0 -67
  193. package/dist/openapi_client/services/DatastoreService.js +0 -141
  194. package/dist/openapi_client/services/PublicSdkService.d.ts +0 -17
  195. package/dist/openapi_client/services/PublicSdkService.js +0 -35
  196. /package/dist/openapi_client/models/{AgentNode_Input.js → AgentNode.js} +0 -0
  197. /package/dist/openapi_client/models/{AgentNode_Output.js → AgentNodeResponse.js} +0 -0
  198. /package/dist/openapi_client/models/{CreateDatastoreRequest.js → DecisionNode.js} +0 -0
  199. /package/dist/openapi_client/models/{DatastoreListResponse.js → DecisionNodeResponse.js} +0 -0
  200. /package/dist/openapi_client/models/{DatastoreQueryRequest.js → EndNodeResponse.js} +0 -0
  201. /package/dist/openapi_client/models/{DatastoreResponse.js → FlowResponse.js} +0 -0
  202. /package/dist/openapi_client/models/{DecisionNode_Input.js → FormNodeResponse.js} +0 -0
  203. /package/dist/openapi_client/models/{DecisionNode_Output.js → FunctionNode.js} +0 -0
  204. /package/dist/openapi_client/models/{FlowEntity.js → FunctionNodeResponse.js} +0 -0
  205. /package/dist/openapi_client/models/{FunctionNode_Input.js → LoopNodeResponse.js} +0 -0
  206. /package/dist/openapi_client/models/{FunctionNode_Output.js → TableAccessEntry.js} +0 -0
  207. /package/dist/openapi_client/models/{RecordQueryResponse.js → WaitUntilNodeResponse.js} +0 -0
@@ -25,27 +25,15 @@ export class BillingSubscriptionsService {
25
25
  });
26
26
  }
27
27
  /**
28
- * Get My Subscription
29
- * Get the current organization's subscription.
30
- * @returns SubscriptionWithPlanResponse Successful Response
31
- * @throws ApiError
32
- */
33
- static billingSubscriptionsMy() {
34
- return __request(OpenAPI, {
35
- method: 'GET',
36
- url: '/billing/subscriptions/my',
37
- });
38
- }
39
- /**
40
- * Get Subscription Status
41
- * Get simple subscription status for the organization.
42
- * @returns SubscriptionStatusResponse Successful Response
28
+ * Get Seat Info
29
+ * Get seat availability information.
30
+ * @returns SeatInfoResponse Successful Response
43
31
  * @throws ApiError
44
32
  */
45
- static billingSubscriptionsStatus() {
33
+ static billingSeatsInfo() {
46
34
  return __request(OpenAPI, {
47
35
  method: 'GET',
48
- url: '/billing/subscriptions/status',
36
+ url: '/billing/seats',
49
37
  });
50
38
  }
51
39
  /**
@@ -79,15 +67,27 @@ export class BillingSubscriptionsService {
79
67
  });
80
68
  }
81
69
  /**
82
- * Get Seat Info
83
- * Get seat availability information.
84
- * @returns SeatInfoResponse Successful Response
70
+ * Get My Subscription
71
+ * Get the current organization's subscription.
72
+ * @returns SubscriptionWithPlanResponse Successful Response
85
73
  * @throws ApiError
86
74
  */
87
- static billingSeatsInfo() {
75
+ static billingSubscriptionsMy() {
88
76
  return __request(OpenAPI, {
89
77
  method: 'GET',
90
- url: '/billing/seats',
78
+ url: '/billing/subscriptions/my',
79
+ });
80
+ }
81
+ /**
82
+ * Get Subscription Status
83
+ * Get simple subscription status for the organization.
84
+ * @returns SubscriptionStatusResponse Successful Response
85
+ * @throws ApiError
86
+ */
87
+ static billingSubscriptionsStatus() {
88
+ return __request(OpenAPI, {
89
+ method: 'GET',
90
+ url: '/billing/subscriptions/status',
91
91
  });
92
92
  }
93
93
  }
@@ -15,10 +15,9 @@ export declare class BillingUsageService {
15
15
  */
16
16
  static billingUsageOrganizationSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
17
17
  /**
18
- * Get Pod Usage Summary
19
- * Get usage summary for a specific pod within an organization.
18
+ * Get My Organization Usage Summary
19
+ * Get usage summary for the current user within an organization.
20
20
  * @param organizationId
21
- * @param podId
22
21
  * @param start
23
22
  * @param end
24
23
  * @param modelName
@@ -26,11 +25,12 @@ export declare class BillingUsageService {
26
25
  * @returns UsageSummaryResponse Successful Response
27
26
  * @throws ApiError
28
27
  */
29
- static billingUsageOrganizationPodSummaryGet(organizationId: string, podId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
28
+ static billingUsageOrganizationMeSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
30
29
  /**
31
- * Get My Organization Usage Summary
32
- * Get usage summary for the current user within an organization.
30
+ * Get Pod Usage Summary
31
+ * Get usage summary for a specific pod within an organization.
33
32
  * @param organizationId
33
+ * @param podId
34
34
  * @param start
35
35
  * @param end
36
36
  * @param modelName
@@ -38,7 +38,7 @@ export declare class BillingUsageService {
38
38
  * @returns UsageSummaryResponse Successful Response
39
39
  * @throws ApiError
40
40
  */
41
- static billingUsageOrganizationMeSummaryGet(organizationId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
41
+ static billingUsageOrganizationPodSummaryGet(organizationId: string, podId: string, start?: (string | null), end?: (string | null), modelName?: (string | null), days?: number): CancelablePromise<UsageSummaryResponse>;
42
42
  /**
43
43
  * Get Organization Recent Usage
44
44
  * Get recent usage records for a specific organization.
@@ -31,10 +31,9 @@ export class BillingUsageService {
31
31
  });
32
32
  }
33
33
  /**
34
- * Get Pod Usage Summary
35
- * Get usage summary for a specific pod within an organization.
34
+ * Get My Organization Usage Summary
35
+ * Get usage summary for the current user within an organization.
36
36
  * @param organizationId
37
- * @param podId
38
37
  * @param start
39
38
  * @param end
40
39
  * @param modelName
@@ -42,13 +41,12 @@ export class BillingUsageService {
42
41
  * @returns UsageSummaryResponse Successful Response
43
42
  * @throws ApiError
44
43
  */
45
- static billingUsageOrganizationPodSummaryGet(organizationId, podId, start, end, modelName, days = 30) {
44
+ static billingUsageOrganizationMeSummaryGet(organizationId, start, end, modelName, days = 30) {
46
45
  return __request(OpenAPI, {
47
46
  method: 'GET',
48
- url: '/billing/usage/organizations/{organization_id}/pods/{pod_id}',
47
+ url: '/billing/usage/organizations/{organization_id}/me',
49
48
  path: {
50
49
  'organization_id': organizationId,
51
- 'pod_id': podId,
52
50
  },
53
51
  query: {
54
52
  'start': start,
@@ -62,9 +60,10 @@ export class BillingUsageService {
62
60
  });
63
61
  }
64
62
  /**
65
- * Get My Organization Usage Summary
66
- * Get usage summary for the current user within an organization.
63
+ * Get Pod Usage Summary
64
+ * Get usage summary for a specific pod within an organization.
67
65
  * @param organizationId
66
+ * @param podId
68
67
  * @param start
69
68
  * @param end
70
69
  * @param modelName
@@ -72,12 +71,13 @@ export class BillingUsageService {
72
71
  * @returns UsageSummaryResponse Successful Response
73
72
  * @throws ApiError
74
73
  */
75
- static billingUsageOrganizationMeSummaryGet(organizationId, start, end, modelName, days = 30) {
74
+ static billingUsageOrganizationPodSummaryGet(organizationId, podId, start, end, modelName, days = 30) {
76
75
  return __request(OpenAPI, {
77
76
  method: 'GET',
78
- url: '/billing/usage/organizations/{organization_id}/me',
77
+ url: '/billing/usage/organizations/{organization_id}/pods/{pod_id}',
79
78
  path: {
80
79
  'organization_id': organizationId,
80
+ 'pod_id': podId,
81
81
  },
82
82
  query: {
83
83
  'start': start,
@@ -6,13 +6,6 @@ import type { CreateMessageRequest } from '../models/CreateMessageRequest.js';
6
6
  import type { UpdateConversationRequest } from '../models/UpdateConversationRequest.js';
7
7
  import type { CancelablePromise } from '../core/CancelablePromise.js';
8
8
  export declare class ConversationsService {
9
- /**
10
- * Create Conversation
11
- * @param requestBody
12
- * @returns ConversationResponse Successful Response
13
- * @throws ApiError
14
- */
15
- static conversationCreate(requestBody: CreateConversationRequest): CancelablePromise<ConversationResponse>;
16
9
  /**
17
10
  * List Conversations
18
11
  * @param assistantId
@@ -24,6 +17,13 @@ export declare class ConversationsService {
24
17
  * @throws ApiError
25
18
  */
26
19
  static conversationList(assistantId?: (string | null), podId?: (string | null), organizationId?: (string | null), pageToken?: (string | null), limit?: number): CancelablePromise<ConversationListResponse>;
20
+ /**
21
+ * Create Conversation
22
+ * @param requestBody
23
+ * @returns ConversationResponse Successful Response
24
+ * @throws ApiError
25
+ */
26
+ static conversationCreate(requestBody: CreateConversationRequest): CancelablePromise<ConversationResponse>;
27
27
  /**
28
28
  * Get Conversation
29
29
  * @param conversationId
@@ -62,19 +62,19 @@ export declare class ConversationsService {
62
62
  */
63
63
  static conversationMessageCreate(conversationId: string, requestBody: CreateMessageRequest, podId?: (string | null)): CancelablePromise<any>;
64
64
  /**
65
- * Resume Conversation Stream
65
+ * Stop Conversation Run
66
66
  * @param conversationId
67
67
  * @param podId
68
- * @returns any Server-Sent Events for an already-running conversation.
68
+ * @returns any Successful Response
69
69
  * @throws ApiError
70
70
  */
71
- static conversationStreamResume(conversationId: string, podId?: (string | null)): CancelablePromise<any>;
71
+ static conversationRunStop(conversationId: string, podId?: (string | null)): CancelablePromise<any>;
72
72
  /**
73
- * Stop Conversation Run
73
+ * Resume Conversation Stream
74
74
  * @param conversationId
75
75
  * @param podId
76
- * @returns any Successful Response
76
+ * @returns any Server-Sent Events for an already-running conversation.
77
77
  * @throws ApiError
78
78
  */
79
- static conversationRunStop(conversationId: string, podId?: (string | null)): CancelablePromise<any>;
79
+ static conversationStreamResume(conversationId: string, podId?: (string | null)): CancelablePromise<any>;
80
80
  }
@@ -1,23 +1,6 @@
1
1
  import { OpenAPI } from '../core/OpenAPI.js';
2
2
  import { request as __request } from '../core/request.js';
3
3
  export class ConversationsService {
4
- /**
5
- * Create Conversation
6
- * @param requestBody
7
- * @returns ConversationResponse Successful Response
8
- * @throws ApiError
9
- */
10
- static conversationCreate(requestBody) {
11
- return __request(OpenAPI, {
12
- method: 'POST',
13
- url: '/conversations',
14
- body: requestBody,
15
- mediaType: 'application/json',
16
- errors: {
17
- 422: `Validation Error`,
18
- },
19
- });
20
- }
21
4
  /**
22
5
  * List Conversations
23
6
  * @param assistantId
@@ -44,6 +27,23 @@ export class ConversationsService {
44
27
  },
45
28
  });
46
29
  }
30
+ /**
31
+ * Create Conversation
32
+ * @param requestBody
33
+ * @returns ConversationResponse Successful Response
34
+ * @throws ApiError
35
+ */
36
+ static conversationCreate(requestBody) {
37
+ return __request(OpenAPI, {
38
+ method: 'POST',
39
+ url: '/conversations',
40
+ body: requestBody,
41
+ mediaType: 'application/json',
42
+ errors: {
43
+ 422: `Validation Error`,
44
+ },
45
+ });
46
+ }
47
47
  /**
48
48
  * Get Conversation
49
49
  * @param conversationId
@@ -144,16 +144,16 @@ export class ConversationsService {
144
144
  });
145
145
  }
146
146
  /**
147
- * Resume Conversation Stream
147
+ * Stop Conversation Run
148
148
  * @param conversationId
149
149
  * @param podId
150
- * @returns any Server-Sent Events for an already-running conversation.
150
+ * @returns any Successful Response
151
151
  * @throws ApiError
152
152
  */
153
- static conversationStreamResume(conversationId, podId) {
153
+ static conversationRunStop(conversationId, podId) {
154
154
  return __request(OpenAPI, {
155
- method: 'GET',
156
- url: '/conversations/{conversation_id}/stream',
155
+ method: 'PATCH',
156
+ url: '/conversations/{conversation_id}/stop',
157
157
  path: {
158
158
  'conversation_id': conversationId,
159
159
  },
@@ -166,16 +166,16 @@ export class ConversationsService {
166
166
  });
167
167
  }
168
168
  /**
169
- * Stop Conversation Run
169
+ * Resume Conversation Stream
170
170
  * @param conversationId
171
171
  * @param podId
172
- * @returns any Successful Response
172
+ * @returns any Server-Sent Events for an already-running conversation.
173
173
  * @throws ApiError
174
174
  */
175
- static conversationRunStop(conversationId, podId) {
175
+ static conversationStreamResume(conversationId, podId) {
176
176
  return __request(OpenAPI, {
177
- method: 'PATCH',
178
- url: '/conversations/{conversation_id}/stop',
177
+ method: 'GET',
178
+ url: '/conversations/{conversation_id}/stream',
179
179
  path: {
180
180
  'conversation_id': conversationId,
181
181
  },
@@ -7,6 +7,15 @@ import type { DeskResponse } from '../models/DeskResponse.js';
7
7
  import type { UpdateDeskRequest } from '../models/UpdateDeskRequest.js';
8
8
  import type { CancelablePromise } from '../core/CancelablePromise.js';
9
9
  export declare class DesksService {
10
+ /**
11
+ * List Desks
12
+ * @param podId
13
+ * @param limit
14
+ * @param pageToken
15
+ * @returns DeskListResponse Successful Response
16
+ * @throws ApiError
17
+ */
18
+ static deskList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<DeskListResponse>;
10
19
  /**
11
20
  * Create Desk
12
21
  * @param podId
@@ -16,14 +25,13 @@ export declare class DesksService {
16
25
  */
17
26
  static deskCreate(podId: string, requestBody: CreateDeskRequest): CancelablePromise<DeskResponse>;
18
27
  /**
19
- * List Desks
28
+ * Delete Desk
20
29
  * @param podId
21
- * @param limit
22
- * @param pageToken
23
- * @returns DeskListResponse Successful Response
30
+ * @param deskName
31
+ * @returns DeskMessageResponse Successful Response
24
32
  * @throws ApiError
25
33
  */
26
- static deskList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<DeskListResponse>;
34
+ static deskDelete(podId: string, deskName: string): CancelablePromise<DeskMessageResponse>;
27
35
  /**
28
36
  * Get Desk
29
37
  * @param podId
@@ -41,14 +49,6 @@ export declare class DesksService {
41
49
  * @throws ApiError
42
50
  */
43
51
  static deskUpdate(podId: string, deskName: string, requestBody: UpdateDeskRequest): CancelablePromise<DeskResponse>;
44
- /**
45
- * Delete Desk
46
- * @param podId
47
- * @param deskName
48
- * @returns DeskMessageResponse Successful Response
49
- * @throws ApiError
50
- */
51
- static deskDelete(podId: string, deskName: string): CancelablePromise<DeskMessageResponse>;
52
52
  /**
53
53
  * Upload Desk Bundle
54
54
  * @param podId
@@ -2,60 +2,60 @@ import { OpenAPI } from '../core/OpenAPI.js';
2
2
  import { request as __request } from '../core/request.js';
3
3
  export class DesksService {
4
4
  /**
5
- * Create Desk
5
+ * List Desks
6
6
  * @param podId
7
- * @param requestBody
8
- * @returns DeskResponse Successful Response
7
+ * @param limit
8
+ * @param pageToken
9
+ * @returns DeskListResponse Successful Response
9
10
  * @throws ApiError
10
11
  */
11
- static deskCreate(podId, requestBody) {
12
+ static deskList(podId, limit = 100, pageToken) {
12
13
  return __request(OpenAPI, {
13
- method: 'POST',
14
+ method: 'GET',
14
15
  url: '/pods/{pod_id}/desks',
15
16
  path: {
16
17
  'pod_id': podId,
17
18
  },
18
- body: requestBody,
19
- mediaType: 'application/json',
19
+ query: {
20
+ 'limit': limit,
21
+ 'page_token': pageToken,
22
+ },
20
23
  errors: {
21
24
  422: `Validation Error`,
22
25
  },
23
26
  });
24
27
  }
25
28
  /**
26
- * List Desks
29
+ * Create Desk
27
30
  * @param podId
28
- * @param limit
29
- * @param pageToken
30
- * @returns DeskListResponse Successful Response
31
+ * @param requestBody
32
+ * @returns DeskResponse Successful Response
31
33
  * @throws ApiError
32
34
  */
33
- static deskList(podId, limit = 100, pageToken) {
35
+ static deskCreate(podId, requestBody) {
34
36
  return __request(OpenAPI, {
35
- method: 'GET',
37
+ method: 'POST',
36
38
  url: '/pods/{pod_id}/desks',
37
39
  path: {
38
40
  'pod_id': podId,
39
41
  },
40
- query: {
41
- 'limit': limit,
42
- 'page_token': pageToken,
43
- },
42
+ body: requestBody,
43
+ mediaType: 'application/json',
44
44
  errors: {
45
45
  422: `Validation Error`,
46
46
  },
47
47
  });
48
48
  }
49
49
  /**
50
- * Get Desk
50
+ * Delete Desk
51
51
  * @param podId
52
52
  * @param deskName
53
- * @returns DeskResponse Successful Response
53
+ * @returns DeskMessageResponse Successful Response
54
54
  * @throws ApiError
55
55
  */
56
- static deskGet(podId, deskName) {
56
+ static deskDelete(podId, deskName) {
57
57
  return __request(OpenAPI, {
58
- method: 'GET',
58
+ method: 'DELETE',
59
59
  url: '/pods/{pod_id}/desks/{desk_name}',
60
60
  path: {
61
61
  'pod_id': podId,
@@ -67,43 +67,43 @@ export class DesksService {
67
67
  });
68
68
  }
69
69
  /**
70
- * Update Desk
70
+ * Get Desk
71
71
  * @param podId
72
72
  * @param deskName
73
- * @param requestBody
74
73
  * @returns DeskResponse Successful Response
75
74
  * @throws ApiError
76
75
  */
77
- static deskUpdate(podId, deskName, requestBody) {
76
+ static deskGet(podId, deskName) {
78
77
  return __request(OpenAPI, {
79
- method: 'PATCH',
78
+ method: 'GET',
80
79
  url: '/pods/{pod_id}/desks/{desk_name}',
81
80
  path: {
82
81
  'pod_id': podId,
83
82
  'desk_name': deskName,
84
83
  },
85
- body: requestBody,
86
- mediaType: 'application/json',
87
84
  errors: {
88
85
  422: `Validation Error`,
89
86
  },
90
87
  });
91
88
  }
92
89
  /**
93
- * Delete Desk
90
+ * Update Desk
94
91
  * @param podId
95
92
  * @param deskName
96
- * @returns DeskMessageResponse Successful Response
93
+ * @param requestBody
94
+ * @returns DeskResponse Successful Response
97
95
  * @throws ApiError
98
96
  */
99
- static deskDelete(podId, deskName) {
97
+ static deskUpdate(podId, deskName, requestBody) {
100
98
  return __request(OpenAPI, {
101
- method: 'DELETE',
99
+ method: 'PATCH',
102
100
  url: '/pods/{pod_id}/desks/{desk_name}',
103
101
  path: {
104
102
  'pod_id': podId,
105
103
  'desk_name': deskName,
106
104
  },
105
+ body: requestBody,
106
+ mediaType: 'application/json',
107
107
  errors: {
108
108
  422: `Validation Error`,
109
109
  },
@@ -1,4 +1,3 @@
1
- import type { Body_upload_file_files__resource_type___resource_id__upload_post } from '../models/Body_upload_file_files__resource_type___resource_id__upload_post.js';
2
1
  import type { CreateFolderRequest } from '../models/CreateFolderRequest.js';
3
2
  import type { DatastoreFileUploadRequest } from '../models/DatastoreFileUploadRequest.js';
4
3
  import type { DatastoreMessageResponse } from '../models/DatastoreMessageResponse.js';
@@ -6,124 +5,74 @@ import type { FileListResponse } from '../models/FileListResponse.js';
6
5
  import type { FileResponse } from '../models/FileResponse.js';
7
6
  import type { FileSearchRequest } from '../models/FileSearchRequest.js';
8
7
  import type { FileSearchResponse } from '../models/FileSearchResponse.js';
9
- import type { FileUploadResponse } from '../models/FileUploadResponse.js';
10
- import type { ResourceFileListResponse } from '../models/ResourceFileListResponse.js';
11
- import type { ResourceType } from '../models/ResourceType.js';
12
8
  import type { update } from '../models/update.js';
13
9
  import type { CancelablePromise } from '../core/CancelablePromise.js';
14
10
  export declare class FilesService {
15
11
  /**
16
12
  * List Files
17
- * @param resourceType
18
- * @param resourceId
19
- * @param path
13
+ * @param podId
14
+ * @param parentId
20
15
  * @param limit
21
16
  * @param pageToken
22
- * @returns ResourceFileListResponse Successful Response
17
+ * @returns FileListResponse Successful Response
23
18
  * @throws ApiError
24
19
  */
25
- static listFilesFilesResourceTypeResourceIdListGet(resourceType: ResourceType, resourceId: string, path?: string, limit?: number, pageToken?: (string | null)): CancelablePromise<ResourceFileListResponse>;
20
+ static fileList(podId: string, parentId?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<FileListResponse>;
26
21
  /**
27
22
  * Upload File
28
- * @param resourceType
29
- * @param resourceId
23
+ * @param podId
30
24
  * @param formData
31
- * @param path
32
- * @returns FileUploadResponse Successful Response
33
- * @throws ApiError
34
- */
35
- static uploadFileFilesResourceTypeResourceIdUploadPost(resourceType: ResourceType, resourceId: string, formData: Body_upload_file_files__resource_type___resource_id__upload_post, path?: (string | null)): CancelablePromise<FileUploadResponse>;
36
- /**
37
- * Download File
38
- * @param resourceType
39
- * @param resourceId
40
- * @param filePath
41
- * @returns any Successful Response
42
- * @throws ApiError
43
- */
44
- static downloadFileFilesResourceTypeResourceIdDownloadFilePathGet(resourceType: ResourceType, resourceId: string, filePath: string): CancelablePromise<any>;
45
- /**
46
- * Delete File
47
- * @param resourceType
48
- * @param resourceId
49
- * @param filePath
50
- * @returns any Successful Response
25
+ * @returns FileResponse Successful Response
51
26
  * @throws ApiError
52
27
  */
53
- static deleteFileFilesResourceTypeResourceIdDeleteFilePathDelete(resourceType: ResourceType, resourceId: string, filePath: string): CancelablePromise<Record<string, any>>;
28
+ static fileUpload(podId: string, formData: DatastoreFileUploadRequest): CancelablePromise<FileResponse>;
54
29
  /**
55
- * Upload File
30
+ * Create Folder
56
31
  * @param podId
57
- * @param datastoreName
58
- * @param formData
32
+ * @param requestBody
59
33
  * @returns FileResponse Successful Response
60
34
  * @throws ApiError
61
35
  */
62
- static fileUpload(podId: string, datastoreName: string, formData: DatastoreFileUploadRequest): CancelablePromise<FileResponse>;
36
+ static fileFolderCreate(podId: string, requestBody: CreateFolderRequest): CancelablePromise<FileResponse>;
63
37
  /**
64
- * List Files
38
+ * Search Files
65
39
  * @param podId
66
- * @param datastoreName
67
- * @param parentId
68
- * @param limit
69
- * @param pageToken
70
- * @returns FileListResponse Successful Response
40
+ * @param requestBody
41
+ * @returns FileSearchResponse Successful Response
71
42
  * @throws ApiError
72
43
  */
73
- static fileList(podId: string, datastoreName: string, parentId?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<FileListResponse>;
44
+ static fileSearch(podId: string, requestBody: FileSearchRequest): CancelablePromise<FileSearchResponse>;
74
45
  /**
75
- * Create Folder
46
+ * Delete File
76
47
  * @param podId
77
- * @param datastoreName
78
- * @param requestBody
79
- * @returns FileResponse Successful Response
48
+ * @param fileId
49
+ * @returns DatastoreMessageResponse Successful Response
80
50
  * @throws ApiError
81
51
  */
82
- static fileFolderCreate(podId: string, datastoreName: string, requestBody: CreateFolderRequest): CancelablePromise<FileResponse>;
52
+ static fileDelete(podId: string, fileId: string): CancelablePromise<DatastoreMessageResponse>;
83
53
  /**
84
54
  * Get File
85
55
  * @param podId
86
- * @param datastoreName
87
56
  * @param fileId
88
57
  * @returns FileResponse Successful Response
89
58
  * @throws ApiError
90
59
  */
91
- static fileGet(podId: string, datastoreName: string, fileId: string): CancelablePromise<FileResponse>;
60
+ static fileGet(podId: string, fileId: string): CancelablePromise<FileResponse>;
92
61
  /**
93
62
  * Update File
94
63
  * @param podId
95
- * @param datastoreName
96
64
  * @param fileId
97
65
  * @param formData
98
66
  * @returns FileResponse Successful Response
99
67
  * @throws ApiError
100
68
  */
101
- static fileUpdate(podId: string, datastoreName: string, fileId: string, formData?: update): CancelablePromise<FileResponse>;
102
- /**
103
- * Delete File
104
- * @param podId
105
- * @param datastoreName
106
- * @param fileId
107
- * @returns DatastoreMessageResponse Successful Response
108
- * @throws ApiError
109
- */
110
- static fileDelete(podId: string, datastoreName: string, fileId: string): CancelablePromise<DatastoreMessageResponse>;
69
+ static fileUpdate(podId: string, fileId: string, formData?: update): CancelablePromise<FileResponse>;
111
70
  /**
112
71
  * Download File
113
72
  * @param podId
114
- * @param datastoreName
115
73
  * @param fileId
116
74
  * @returns any Successful Response
117
75
  * @throws ApiError
118
76
  */
119
- static fileDownload(podId: string, datastoreName: string, fileId: string): CancelablePromise<any>;
120
- /**
121
- * Search Files
122
- * @param podId
123
- * @param datastoreName
124
- * @param requestBody
125
- * @returns FileSearchResponse Successful Response
126
- * @throws ApiError
127
- */
128
- static fileSearch(podId: string, datastoreName: string, requestBody: FileSearchRequest): CancelablePromise<FileSearchResponse>;
77
+ static fileDownload(podId: string, fileId: string): CancelablePromise<any>;
129
78
  }