lemma-sdk 0.2.44 → 0.2.46

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 (308) hide show
  1. package/README.md +1 -1
  2. package/dist/assistant-events.d.ts +1 -0
  3. package/dist/assistant-events.js +37 -2
  4. package/dist/browser/lemma-client.js +312 -228
  5. package/dist/client.js +1 -1
  6. package/dist/config.d.ts +2 -2
  7. package/dist/config.js +2 -2
  8. package/dist/hey_client/client/client.gen.d.ts +2 -0
  9. package/dist/hey_client/client/client.gen.js +216 -0
  10. package/dist/hey_client/client/index.d.ts +10 -0
  11. package/dist/hey_client/client/index.js +6 -0
  12. package/dist/hey_client/client/types.gen.d.ts +120 -0
  13. package/dist/hey_client/client/types.gen.js +2 -0
  14. package/dist/hey_client/client/utils.gen.d.ts +37 -0
  15. package/dist/hey_client/client/utils.gen.js +228 -0
  16. package/dist/hey_client/client.gen.d.ts +12 -0
  17. package/dist/hey_client/client.gen.js +3 -0
  18. package/dist/hey_client/core/auth.gen.d.ts +25 -0
  19. package/dist/hey_client/core/auth.gen.js +14 -0
  20. package/dist/hey_client/core/bodySerializer.gen.d.ts +25 -0
  21. package/dist/hey_client/core/bodySerializer.gen.js +57 -0
  22. package/dist/hey_client/core/params.gen.d.ts +43 -0
  23. package/dist/hey_client/core/params.gen.js +100 -0
  24. package/dist/hey_client/core/pathSerializer.gen.d.ts +33 -0
  25. package/dist/hey_client/core/pathSerializer.gen.js +106 -0
  26. package/dist/hey_client/core/queryKeySerializer.gen.d.ts +18 -0
  27. package/dist/hey_client/core/queryKeySerializer.gen.js +92 -0
  28. package/dist/hey_client/core/serverSentEvents.gen.d.ts +71 -0
  29. package/dist/hey_client/core/serverSentEvents.gen.js +132 -0
  30. package/dist/hey_client/core/types.gen.d.ts +83 -0
  31. package/dist/hey_client/core/types.gen.js +2 -0
  32. package/dist/hey_client/core/utils.gen.d.ts +19 -0
  33. package/dist/hey_client/core/utils.gen.js +87 -0
  34. package/dist/hey_client/index.d.ts +2 -0
  35. package/dist/hey_client/index.js +2 -0
  36. package/dist/hey_client/sdk.gen.d.ts +1005 -0
  37. package/dist/hey_client/sdk.gen.js +1438 -0
  38. package/dist/hey_client/types.gen.d.ts +12992 -0
  39. package/dist/hey_client/types.gen.js +2 -0
  40. package/dist/namespaces/conversations.d.ts +2 -2
  41. package/dist/namespaces/files.d.ts +6 -24
  42. package/dist/namespaces/files.js +6 -16
  43. package/dist/namespaces/integrations.d.ts +2 -4
  44. package/dist/namespaces/integrations.js +6 -6
  45. package/dist/namespaces/pod-surfaces.d.ts +8 -3
  46. package/dist/namespaces/pod-surfaces.js +15 -6
  47. package/dist/namespaces/pods.d.ts +2 -3
  48. package/dist/namespaces/pods.js +1 -6
  49. package/dist/namespaces/records.d.ts +10 -16
  50. package/dist/namespaces/records.js +4 -33
  51. package/dist/namespaces/resource-access.d.ts +3 -3
  52. package/dist/namespaces/resource-access.js +6 -6
  53. package/dist/namespaces/schedules.d.ts +1 -0
  54. package/dist/namespaces/schedules.js +1 -1
  55. package/dist/namespaces/tables.d.ts +2 -2
  56. package/dist/namespaces/workflows.d.ts +12 -8
  57. package/dist/namespaces/workflows.js +9 -18
  58. package/dist/openapi_client/index.d.ts +23 -42
  59. package/dist/openapi_client/index.js +5 -11
  60. package/dist/openapi_client/models/AgentHarnessInfo.d.ts +2 -0
  61. package/dist/openapi_client/models/AgentNode.d.ts +1 -1
  62. package/dist/openapi_client/models/AgentNodeConfig.d.ts +1 -1
  63. package/dist/openapi_client/models/AgentResourcePermissionRequest.d.ts +1 -1
  64. package/dist/openapi_client/models/AgentResourcePermissionResponse.d.ts +1 -1
  65. package/dist/openapi_client/models/AgentRuntimeProfileResponse.d.ts +6 -0
  66. package/dist/openapi_client/models/AgentSurfaceResponse.d.ts +6 -17
  67. package/dist/openapi_client/models/AgentSurfaceStatus.d.ts +3 -1
  68. package/dist/openapi_client/models/AgentSurfaceStatus.js +2 -0
  69. package/dist/openapi_client/models/AgentToolset.d.ts +2 -1
  70. package/dist/openapi_client/models/AgentToolset.js +1 -0
  71. package/dist/openapi_client/models/AppTriggerResponseSchema.d.ts +2 -0
  72. package/dist/openapi_client/models/ApplicationSkillResponse.d.ts +6 -0
  73. package/dist/openapi_client/models/ApprovalDecisionResponse.d.ts +6 -0
  74. package/dist/openapi_client/models/AuthProvider.d.ts +4 -0
  75. package/dist/openapi_client/models/AuthProvider.js +9 -0
  76. package/dist/openapi_client/models/ConnectedAccountSummary.d.ts +7 -0
  77. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +0 -1
  78. package/dist/openapi_client/models/CreateScheduleRequest.d.ts +4 -0
  79. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +3 -10
  80. package/dist/openapi_client/models/CreateUserDaemonRuntimeProfileRequest.d.ts +2 -0
  81. package/dist/openapi_client/models/DataStoreFlowStartInput.d.ts +1 -1
  82. package/dist/openapi_client/models/DataStoreFlowStartOutput.d.ts +1 -1
  83. package/dist/openapi_client/models/DatastoreCountResponse.d.ts +6 -0
  84. package/dist/openapi_client/models/DecisionNode.d.ts +2 -1
  85. package/dist/openapi_client/models/DecisionRule.d.ts +3 -0
  86. package/dist/openapi_client/models/EndNode.d.ts +1 -1
  87. package/dist/openapi_client/models/ExpressionInputBinding.d.ts +6 -2
  88. package/dist/openapi_client/models/FileListResponse.d.ts +1 -0
  89. package/dist/openapi_client/models/FileSearchResponse.d.ts +2 -2
  90. package/dist/openapi_client/models/FlowRunStatus.d.ts +5 -1
  91. package/dist/openapi_client/models/FlowRunStatus.js +5 -1
  92. package/dist/openapi_client/models/FormNode.d.ts +2 -1
  93. package/dist/openapi_client/models/FormNodeConfig.d.ts +1 -1
  94. package/dist/openapi_client/models/FunctionNode.d.ts +2 -1
  95. package/dist/openapi_client/models/FunctionResourcePermissionRequest.d.ts +1 -1
  96. package/dist/openapi_client/models/FunctionResourcePermissionResponse.d.ts +1 -1
  97. package/dist/openapi_client/models/InstalledAppSummary.d.ts +7 -0
  98. package/dist/openapi_client/models/IntegrationStatusResponse.d.ts +6 -0
  99. package/dist/openapi_client/models/LoopNode.d.ts +2 -1
  100. package/dist/openapi_client/models/LoopNodeConfig.d.ts +3 -3
  101. package/dist/openapi_client/models/MessageKind.d.ts +14 -0
  102. package/dist/openapi_client/models/MessageKind.js +19 -0
  103. package/dist/openapi_client/models/MessageResponse.d.ts +5 -6
  104. package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -3
  105. package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +0 -2
  106. package/dist/openapi_client/models/PodMemberResponse.d.ts +0 -2
  107. package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +1 -3
  108. package/dist/openapi_client/models/PodRoleResourcePermissionRequest.d.ts +1 -1
  109. package/dist/openapi_client/models/PodRoleResourcePermissionResponse.d.ts +1 -1
  110. package/dist/openapi_client/models/ResourceAccessGrantResponse.d.ts +1 -1
  111. package/dist/openapi_client/models/ResourceAccessResponse.d.ts +1 -1
  112. package/dist/openapi_client/models/RuntimeProfileScope.d.ts +2 -1
  113. package/dist/openapi_client/models/RuntimeProfileScope.js +1 -0
  114. package/dist/openapi_client/models/ScheduleDetailResponse.d.ts +6 -0
  115. package/dist/openapi_client/models/ScheduleFireStatus.d.ts +8 -0
  116. package/dist/openapi_client/models/ScheduleFireStatus.js +13 -0
  117. package/dist/openapi_client/models/StepRecordResponse.d.ts +10 -0
  118. package/dist/openapi_client/models/StepStatus.d.ts +7 -0
  119. package/dist/openapi_client/models/StepStatus.js +12 -0
  120. package/dist/openapi_client/models/SurfaceBehaviorConfigInput.d.ts +4 -0
  121. package/dist/openapi_client/models/SurfaceChannelRouteInput.d.ts +6 -0
  122. package/dist/openapi_client/models/SurfaceChannelRouteResponse.d.ts +6 -0
  123. package/dist/openapi_client/models/SurfaceConfigResponse.d.ts +10 -0
  124. package/dist/openapi_client/models/SurfaceCredentialMode.d.ts +4 -0
  125. package/dist/openapi_client/models/SurfaceCredentialMode.js +9 -0
  126. package/dist/openapi_client/models/SurfaceIdentityConfigInput.d.ts +4 -0
  127. package/dist/openapi_client/models/SurfaceIdentityConfigResponse.d.ts +4 -0
  128. package/dist/openapi_client/models/SurfaceSetupStatusResponse.d.ts +10 -0
  129. package/dist/openapi_client/models/TableListResponse.d.ts +2 -0
  130. package/dist/openapi_client/models/ToggleSurfaceRequest.d.ts +1 -1
  131. package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
  132. package/dist/openapi_client/models/UpdateSurfaceChannelsRequest.d.ts +4 -0
  133. package/dist/openapi_client/models/UpdateSurfaceRequest.d.ts +4 -11
  134. package/dist/openapi_client/models/UpsertSurfaceRequest.d.ts +9 -0
  135. package/dist/openapi_client/models/UserProfileRequest.d.ts +1 -0
  136. package/dist/openapi_client/models/UserResponse.d.ts +1 -0
  137. package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
  138. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +16 -0
  139. package/dist/openapi_client/models/WorkflowRunFormSubmitRequest.d.ts +13 -0
  140. package/dist/openapi_client/models/WorkflowRunResponse.d.ts +28 -0
  141. package/dist/openapi_client/models/WorkflowRunSummaryResponse.d.ts +2 -3
  142. package/dist/openapi_client/models/WorkflowRunWaitAssignment.d.ts +4 -4
  143. package/dist/openapi_client/models/{WorkflowRunWaitEntity.d.ts → WorkflowRunWaitResponse.d.ts} +4 -8
  144. package/dist/openapi_client/models/WorkflowRunWaitType.d.ts +1 -2
  145. package/dist/openapi_client/models/WorkflowRunWaitType.js +0 -1
  146. package/dist/openapi_client/models/WorkspaceAppAccessRequest.d.ts +0 -3
  147. package/dist/openapi_client/models/WorkspaceMeSandbox.d.ts +1 -4
  148. package/dist/openapi_client/services/AgentConversationsService.d.ts +5 -5
  149. package/dist/openapi_client/services/AgentConversationsService.js +3 -3
  150. package/dist/openapi_client/services/AgentSurfacesService.d.ts +39 -10
  151. package/dist/openapi_client/services/AgentSurfacesService.js +86 -20
  152. package/dist/openapi_client/services/ApplicationsService.d.ts +29 -19
  153. package/dist/openapi_client/services/ApplicationsService.js +63 -36
  154. package/dist/openapi_client/services/FilesService.d.ts +2 -3
  155. package/dist/openapi_client/services/FilesService.js +1 -1
  156. package/dist/openapi_client/services/FunctionsService.d.ts +1 -1
  157. package/dist/openapi_client/services/FunctionsService.js +1 -1
  158. package/dist/openapi_client/services/IntegrationsService.d.ts +12 -4
  159. package/dist/openapi_client/services/IntegrationsService.js +22 -4
  160. package/dist/openapi_client/services/PodResourceAccessService.d.ts +6 -6
  161. package/dist/openapi_client/services/PodResourceAccessService.js +12 -12
  162. package/dist/openapi_client/services/RecordsService.d.ts +22 -25
  163. package/dist/openapi_client/services/RecordsService.js +14 -18
  164. package/dist/openapi_client/services/SchedulesService.d.ts +2 -1
  165. package/dist/openapi_client/services/SchedulesService.js +3 -1
  166. package/dist/openapi_client/services/TablesService.d.ts +4 -5
  167. package/dist/openapi_client/services/TablesService.js +2 -2
  168. package/dist/openapi_client/services/WorkflowsService.d.ts +35 -26
  169. package/dist/openapi_client/services/WorkflowsService.js +57 -39
  170. package/dist/react/assistant-output.d.ts +6 -0
  171. package/dist/react/assistant-output.js +16 -0
  172. package/dist/react/useAddPodMember.js +1 -1
  173. package/dist/react/useAssistantController.d.ts +9 -1
  174. package/dist/react/useAssistantController.js +92 -251
  175. package/dist/react/useAssistantRuntime.js +6 -17
  176. package/dist/react/useAssistantSession.d.ts +5 -2
  177. package/dist/react/useAssistantSession.js +47 -7
  178. package/dist/react/useBulkRecords.d.ts +5 -5
  179. package/dist/react/useBulkRecords.js +5 -5
  180. package/dist/react/useConversationMessages.d.ts +2 -2
  181. package/dist/react/useConversationMessages.js +3 -5
  182. package/dist/react/useCreateFolder.d.ts +2 -4
  183. package/dist/react/useCreateFolder.js +2 -3
  184. package/dist/react/useCreateRecord.d.ts +2 -2
  185. package/dist/react/useCreateRecord.js +1 -1
  186. package/dist/react/useDeleteFile.d.ts +1 -4
  187. package/dist/react/useDeleteFile.js +3 -3
  188. package/dist/react/useDeleteRecord.d.ts +1 -2
  189. package/dist/react/useDeleteRecord.js +3 -3
  190. package/dist/react/useFile.d.ts +2 -4
  191. package/dist/react/useFile.js +3 -3
  192. package/dist/react/useFilePreview.d.ts +1 -4
  193. package/dist/react/useFilePreview.js +4 -5
  194. package/dist/react/useFileSearch.d.ts +5 -1
  195. package/dist/react/useFileSearch.js +6 -4
  196. package/dist/react/useFileTree.d.ts +2 -4
  197. package/dist/react/useFileTree.js +2 -3
  198. package/dist/react/useFiles.d.ts +2 -4
  199. package/dist/react/useFiles.js +3 -5
  200. package/dist/react/useFlowSession.d.ts +3 -1
  201. package/dist/react/useFlowSession.js +24 -17
  202. package/dist/react/useGlobalSearch.js +1 -1
  203. package/dist/react/useRecord.d.ts +2 -2
  204. package/dist/react/useRecord.js +1 -1
  205. package/dist/react/useRecordForm.d.ts +2 -2
  206. package/dist/react/useRecordForm.js +2 -2
  207. package/dist/react/useRecords.d.ts +1 -1
  208. package/dist/react/useRecords.js +2 -13
  209. package/dist/react/useReferencingRecords.d.ts +4 -6
  210. package/dist/react/useReferencingRecords.js +5 -5
  211. package/dist/react/useReverseRelatedRecords.d.ts +3 -4
  212. package/dist/react/useReverseRelatedRecords.js +6 -6
  213. package/dist/react/useUpdateFile.d.ts +2 -4
  214. package/dist/react/useUpdateFile.js +2 -3
  215. package/dist/react/useUpdateRecord.d.ts +2 -2
  216. package/dist/react/useUpdateRecord.js +1 -1
  217. package/dist/react/useUploadFile.d.ts +2 -4
  218. package/dist/react/useUploadFile.js +2 -3
  219. package/dist/react/useWorkflowResume.d.ts +1 -0
  220. package/dist/react/useWorkflowResume.js +10 -1
  221. package/dist/react/useWorkflowRun.js +1 -3
  222. package/dist/react/useWorkflowStart.js +11 -26
  223. package/dist/react/utils.js +2 -0
  224. package/dist/types.d.ts +15 -9
  225. package/package.json +7 -2
  226. package/dist/openapi_client/models/BillingHistoryResponse.d.ts +0 -8
  227. package/dist/openapi_client/models/BillingInterval.d.ts +0 -7
  228. package/dist/openapi_client/models/BillingInterval.js +0 -12
  229. package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +0 -27
  230. package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +0 -10
  231. package/dist/openapi_client/models/BillingInvoiceStatus.js +0 -15
  232. package/dist/openapi_client/models/CancelSubscriptionResponse.d.ts +0 -10
  233. package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +0 -7
  234. package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +0 -8
  235. package/dist/openapi_client/models/DatastoreMessageResponse.d.ts +0 -6
  236. package/dist/openapi_client/models/DeskServingConfigResponse.d.ts +0 -11
  237. package/dist/openapi_client/models/DeskServingConfigResponse.js +0 -8
  238. package/dist/openapi_client/models/FlowRunEntity.d.ts +0 -36
  239. package/dist/openapi_client/models/GmailSurfaceConfig.d.ts +0 -7
  240. package/dist/openapi_client/models/NotificationContent.d.ts +0 -4
  241. package/dist/openapi_client/models/OutlookSurfaceConfig.d.ts +0 -7
  242. package/dist/openapi_client/models/PlanListResponse.d.ts +0 -8
  243. package/dist/openapi_client/models/PlanResponse.d.ts +0 -18
  244. package/dist/openapi_client/models/PlanType.d.ts +0 -7
  245. package/dist/openapi_client/models/PlanType.js +0 -12
  246. package/dist/openapi_client/models/RecordResponse.d.ts +0 -9
  247. package/dist/openapi_client/models/SeatInfoResponse.d.ts +0 -10
  248. package/dist/openapi_client/models/SlackSurfaceConfig.d.ts +0 -7
  249. package/dist/openapi_client/models/StackFrame.d.ts +0 -11
  250. package/dist/openapi_client/models/StartSubscriptionRequest.d.ts +0 -14
  251. package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +0 -9
  252. package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +0 -6
  253. package/dist/openapi_client/models/StartTeamBillingRequest.js +0 -1
  254. package/dist/openapi_client/models/StepExecution.d.ts +0 -13
  255. package/dist/openapi_client/models/StepExecution.js +0 -1
  256. package/dist/openapi_client/models/SubscriptionResponse.d.ts +0 -22
  257. package/dist/openapi_client/models/SubscriptionResponse.js +0 -1
  258. package/dist/openapi_client/models/SubscriptionStatus.d.ts +0 -10
  259. package/dist/openapi_client/models/SubscriptionStatus.js +0 -15
  260. package/dist/openapi_client/models/SubscriptionStatusResponse.d.ts +0 -10
  261. package/dist/openapi_client/models/SubscriptionStatusResponse.js +0 -1
  262. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +0 -22
  263. package/dist/openapi_client/models/SubscriptionWithPlanResponse.js +0 -1
  264. package/dist/openapi_client/models/SurfaceEventMode.d.ts +0 -6
  265. package/dist/openapi_client/models/SurfaceEventMode.js +0 -11
  266. package/dist/openapi_client/models/SurfaceMode.d.ts +0 -5
  267. package/dist/openapi_client/models/SurfaceMode.js +0 -10
  268. package/dist/openapi_client/models/SurfaceRoutingScope.d.ts +0 -4
  269. package/dist/openapi_client/models/SurfaceRoutingScope.js +0 -9
  270. package/dist/openapi_client/models/TeamsSurfaceConfig.d.ts +0 -7
  271. package/dist/openapi_client/models/TeamsSurfaceConfig.js +0 -1
  272. package/dist/openapi_client/models/TelegramSurfaceConfig.d.ts +0 -7
  273. package/dist/openapi_client/models/TelegramSurfaceConfig.js +0 -1
  274. package/dist/openapi_client/models/TextContent.d.ts +0 -4
  275. package/dist/openapi_client/models/TextContent.js +0 -1
  276. package/dist/openapi_client/models/ThinkingContent.d.ts +0 -4
  277. package/dist/openapi_client/models/ThinkingContent.js +0 -1
  278. package/dist/openapi_client/models/ToolCallContent.d.ts +0 -6
  279. package/dist/openapi_client/models/ToolCallContent.js +0 -1
  280. package/dist/openapi_client/models/ToolReturnContent.d.ts +0 -6
  281. package/dist/openapi_client/models/ToolReturnContent.js +0 -1
  282. package/dist/openapi_client/models/WhatsAppSurfaceConfig.d.ts +0 -7
  283. package/dist/openapi_client/models/WhatsAppSurfaceConfig.js +0 -1
  284. package/dist/openapi_client/models/WorkflowRunWaitEntity.js +0 -1
  285. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +0 -117
  286. package/dist/openapi_client/services/BillingSubscriptionsService.js +0 -230
  287. package/dist/openapi_client/services/BillingWebhooksService.d.ts +0 -12
  288. package/dist/openapi_client/services/BillingWebhooksService.js +0 -25
  289. package/dist/openapi_client/services/PublicDesksService.d.ts +0 -10
  290. package/dist/openapi_client/services/PublicDesksService.js +0 -15
  291. /package/dist/openapi_client/models/{BillingHistoryResponse.js → ApplicationSkillResponse.js} +0 -0
  292. /package/dist/openapi_client/models/{BillingInvoiceResponse.js → ApprovalDecisionResponse.js} +0 -0
  293. /package/dist/openapi_client/models/{CancelSubscriptionResponse.js → ConnectedAccountSummary.js} +0 -0
  294. /package/dist/openapi_client/models/{CreateInvoicePaymentUrlRequest.js → DatastoreCountResponse.js} +0 -0
  295. /package/dist/openapi_client/models/{CreateInvoicePaymentUrlResponse.js → InstalledAppSummary.js} +0 -0
  296. /package/dist/openapi_client/models/{DatastoreMessageResponse.js → IntegrationStatusResponse.js} +0 -0
  297. /package/dist/openapi_client/models/{FlowRunEntity.js → StepRecordResponse.js} +0 -0
  298. /package/dist/openapi_client/models/{GmailSurfaceConfig.js → SurfaceChannelRouteInput.js} +0 -0
  299. /package/dist/openapi_client/models/{NotificationContent.js → SurfaceChannelRouteResponse.js} +0 -0
  300. /package/dist/openapi_client/models/{OutlookSurfaceConfig.js → SurfaceConfigResponse.js} +0 -0
  301. /package/dist/openapi_client/models/{PlanListResponse.js → SurfaceIdentityConfigInput.js} +0 -0
  302. /package/dist/openapi_client/models/{PlanResponse.js → SurfaceIdentityConfigResponse.js} +0 -0
  303. /package/dist/openapi_client/models/{RecordResponse.js → SurfaceSetupStatusResponse.js} +0 -0
  304. /package/dist/openapi_client/models/{SeatInfoResponse.js → UpdateSurfaceChannelsRequest.js} +0 -0
  305. /package/dist/openapi_client/models/{SlackSurfaceConfig.js → UpsertSurfaceRequest.js} +0 -0
  306. /package/dist/openapi_client/models/{StackFrame.js → WorkflowRunFormSubmitRequest.js} +0 -0
  307. /package/dist/openapi_client/models/{StartSubscriptionRequest.js → WorkflowRunResponse.js} +0 -0
  308. /package/dist/openapi_client/models/{StartSubscriptionResponse.js → WorkflowRunWaitResponse.js} +0 -0
@@ -1,16 +1,17 @@
1
1
  import type { FlowDetailResponse } from '../models/FlowDetailResponse.js';
2
- import type { FlowRunEntity } from '../models/FlowRunEntity.js';
3
2
  import type { WorkflowCreateRequest } from '../models/WorkflowCreateRequest.js';
4
3
  import type { WorkflowGraphUpdateRequest } from '../models/WorkflowGraphUpdateRequest.js';
5
4
  import type { WorkflowListResponse } from '../models/WorkflowListResponse.js';
5
+ import type { WorkflowRunFormSubmitRequest } from '../models/WorkflowRunFormSubmitRequest.js';
6
6
  import type { WorkflowRunListResponse } from '../models/WorkflowRunListResponse.js';
7
+ import type { WorkflowRunResponse } from '../models/WorkflowRunResponse.js';
7
8
  import type { WorkflowRunWaitAssignmentListResponse } from '../models/WorkflowRunWaitAssignmentListResponse.js';
8
9
  import type { WorkflowUpdateRequest } from '../models/WorkflowUpdateRequest.js';
9
10
  import type { CancelablePromise } from '../core/CancelablePromise.js';
10
11
  export declare class WorkflowsService {
11
12
  /**
12
13
  * List Workflow Runs Waiting For Current User
13
- * List active human form waits assigned to the current pod member.
14
+ * The current user's approval queue: active form waits assigned to them, with the owning run.
14
15
  * @param podId
15
16
  * @param limit
16
17
  * @param pageToken
@@ -20,23 +21,32 @@ export declare class WorkflowsService {
20
21
  static workflowRunWaitingAssignedToMe(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowRunWaitAssignmentListResponse>;
21
22
  /**
22
23
  * Get Workflow Run
23
- * Get current state, context, and step history of a workflow run.
24
+ * Get current state, context, step history, and the active wait (when WAITING) of a workflow run.
24
25
  * @param podId
25
26
  * @param runId
26
- * @returns FlowRunEntity Successful Response
27
+ * @returns WorkflowRunResponse Successful Response
27
28
  * @throws ApiError
28
29
  */
29
- static workflowRunGet(podId: string, runId: string): CancelablePromise<FlowRunEntity>;
30
+ static workflowRunGet(podId: string, runId: string): CancelablePromise<WorkflowRunResponse>;
30
31
  /**
31
- * Resume Workflow Run
32
- * Resume a run in WAITING or EXECUTING state. The payload is written back into the current waiting node output and execution continues.
32
+ * Cancel Workflow Run
33
+ * Cancel a non-terminal run. The active wait (if any) is cancelled in the same transaction; late completion events for cancelled waits are dropped. Cancelling a terminal run returns 409.
34
+ * @param podId
35
+ * @param runId
36
+ * @returns WorkflowRunResponse Successful Response
37
+ * @throws ApiError
38
+ */
39
+ static workflowRunCancel(podId: string, runId: string): CancelablePromise<WorkflowRunResponse>;
40
+ /**
41
+ * Submit Workflow Run Form
42
+ * Submit the form the run is waiting on. `node_id` must match the run's active HUMAN wait (409 when the run is not waiting on a form, 422 on node mismatch, 403 when the wait is assigned to someone else). The submitted `inputs` become the form node's output, available to later nodes as `<node_id>.<field>`.
33
43
  * @param podId
34
44
  * @param runId
35
45
  * @param requestBody
36
- * @returns FlowRunEntity Successful Response
46
+ * @returns WorkflowRunResponse Successful Response
37
47
  * @throws ApiError
38
48
  */
39
- static workflowRunResume(podId: string, runId: string, requestBody: Record<string, any>): CancelablePromise<FlowRunEntity>;
49
+ static workflowRunFormSubmit(podId: string, runId: string, requestBody: WorkflowRunFormSubmitRequest): CancelablePromise<WorkflowRunResponse>;
40
50
  /**
41
51
  * Visualize Workflow Run
42
52
  * Render an HTML view of a run overlaid on its workflow graph.
@@ -46,17 +56,6 @@ export declare class WorkflowsService {
46
56
  * @throws ApiError
47
57
  */
48
58
  static workflowRunVisualize(podId: string, runId: string): CancelablePromise<string>;
49
- /**
50
- * List Workflow Runs
51
- * List recent runs for a given workflow.
52
- * @param podId
53
- * @param workflowName
54
- * @param limit
55
- * @param pageToken
56
- * @returns WorkflowRunListResponse Successful Response
57
- * @throws ApiError
58
- */
59
- static workflowRunList(podId: string, workflowName: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowRunListResponse>;
60
59
  /**
61
60
  * List Workflows
62
61
  * List all workflows in a pod.
@@ -69,7 +68,7 @@ export declare class WorkflowsService {
69
68
  static workflowList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowListResponse>;
70
69
  /**
71
70
  * Create Workflow
72
- * Create a workflow definition. Use this before uploading graph nodes/edges with `workflow.graph.update`.
71
+ * Create a workflow definition. The graph (`nodes`/`edges`) can be included in this call to create a ready-to-run workflow in one step, or omitted to create a shell and upload the graph later with `workflow.graph.update`.
73
72
  * @param podId
74
73
  * @param requestBody
75
74
  * @returns FlowDetailResponse Successful Response
@@ -115,15 +114,25 @@ export declare class WorkflowsService {
115
114
  */
116
115
  static workflowGraphUpdate(podId: string, workflowName: string, requestBody: WorkflowGraphUpdateRequest): CancelablePromise<FlowDetailResponse>;
117
116
  /**
118
- * Start Workflow
119
- * Start a new workflow run. For event/scheduled/datastore starts, the request body is treated as initial trigger payload and merged into execution context.
117
+ * List Workflow Runs
118
+ * List recent runs for a given workflow.
120
119
  * @param podId
121
120
  * @param workflowName
122
- * @param requestBody
123
- * @returns FlowRunEntity Successful Response
121
+ * @param limit
122
+ * @param pageToken
123
+ * @returns WorkflowRunListResponse Successful Response
124
+ * @throws ApiError
125
+ */
126
+ static workflowRunList(podId: string, workflowName: string, limit?: number, pageToken?: (string | null)): CancelablePromise<WorkflowRunListResponse>;
127
+ /**
128
+ * Create Workflow Run
129
+ * Create a new run for this workflow. Takes no request body: if the workflow's entry node is a FORM node the run is created WAITING on it (see `active_wait` in the response) and input is submitted via `workflow.run.form.submit`; otherwise the run executes immediately. Trigger payloads for scheduled/event/datastore starts are supplied by the platform, not through this endpoint.
130
+ * @param podId
131
+ * @param workflowName
132
+ * @returns WorkflowRunResponse Successful Response
124
133
  * @throws ApiError
125
134
  */
126
- static workflowStart(podId: string, workflowName: string, requestBody: Record<string, any>): CancelablePromise<FlowRunEntity>;
135
+ static workflowRunCreate(podId: string, workflowName: string): CancelablePromise<WorkflowRunResponse>;
127
136
  /**
128
137
  * Visualize Workflow
129
138
  * Render an HTML visualization for debugging workflow graph structure.
@@ -3,7 +3,7 @@ import { request as __request } from '../core/request.js';
3
3
  export class WorkflowsService {
4
4
  /**
5
5
  * List Workflow Runs Waiting For Current User
6
- * List active human form waits assigned to the current pod member.
6
+ * The current user's approval queue: active form waits assigned to them, with the owning run.
7
7
  * @param podId
8
8
  * @param limit
9
9
  * @param pageToken
@@ -28,10 +28,10 @@ export class WorkflowsService {
28
28
  }
29
29
  /**
30
30
  * Get Workflow Run
31
- * Get current state, context, and step history of a workflow run.
31
+ * Get current state, context, step history, and the active wait (when WAITING) of a workflow run.
32
32
  * @param podId
33
33
  * @param runId
34
- * @returns FlowRunEntity Successful Response
34
+ * @returns WorkflowRunResponse Successful Response
35
35
  * @throws ApiError
36
36
  */
37
37
  static workflowRunGet(podId, runId) {
@@ -48,71 +48,65 @@ export class WorkflowsService {
48
48
  });
49
49
  }
50
50
  /**
51
- * Resume Workflow Run
52
- * Resume a run in WAITING or EXECUTING state. The payload is written back into the current waiting node output and execution continues.
51
+ * Cancel Workflow Run
52
+ * Cancel a non-terminal run. The active wait (if any) is cancelled in the same transaction; late completion events for cancelled waits are dropped. Cancelling a terminal run returns 409.
53
53
  * @param podId
54
54
  * @param runId
55
- * @param requestBody
56
- * @returns FlowRunEntity Successful Response
55
+ * @returns WorkflowRunResponse Successful Response
57
56
  * @throws ApiError
58
57
  */
59
- static workflowRunResume(podId, runId, requestBody) {
58
+ static workflowRunCancel(podId, runId) {
60
59
  return __request(OpenAPI, {
61
60
  method: 'POST',
62
- url: '/pods/{pod_id}/workflow-runs/{run_id}/resume',
61
+ url: '/pods/{pod_id}/workflow-runs/{run_id}/cancel',
63
62
  path: {
64
63
  'pod_id': podId,
65
64
  'run_id': runId,
66
65
  },
67
- body: requestBody,
68
- mediaType: 'application/json',
69
66
  errors: {
70
67
  422: `Validation Error`,
71
68
  },
72
69
  });
73
70
  }
74
71
  /**
75
- * Visualize Workflow Run
76
- * Render an HTML view of a run overlaid on its workflow graph.
72
+ * Submit Workflow Run Form
73
+ * Submit the form the run is waiting on. `node_id` must match the run's active HUMAN wait (409 when the run is not waiting on a form, 422 on node mismatch, 403 when the wait is assigned to someone else). The submitted `inputs` become the form node's output, available to later nodes as `<node_id>.<field>`.
77
74
  * @param podId
78
75
  * @param runId
79
- * @returns string Successful Response
76
+ * @param requestBody
77
+ * @returns WorkflowRunResponse Successful Response
80
78
  * @throws ApiError
81
79
  */
82
- static workflowRunVisualize(podId, runId) {
80
+ static workflowRunFormSubmit(podId, runId, requestBody) {
83
81
  return __request(OpenAPI, {
84
- method: 'GET',
85
- url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
82
+ method: 'POST',
83
+ url: '/pods/{pod_id}/workflow-runs/{run_id}/form',
86
84
  path: {
87
85
  'pod_id': podId,
88
86
  'run_id': runId,
89
87
  },
88
+ body: requestBody,
89
+ mediaType: 'application/json',
90
90
  errors: {
91
91
  422: `Validation Error`,
92
92
  },
93
93
  });
94
94
  }
95
95
  /**
96
- * List Workflow Runs
97
- * List recent runs for a given workflow.
96
+ * Visualize Workflow Run
97
+ * Render an HTML view of a run overlaid on its workflow graph.
98
98
  * @param podId
99
- * @param workflowName
100
- * @param limit
101
- * @param pageToken
102
- * @returns WorkflowRunListResponse Successful Response
99
+ * @param runId
100
+ * @returns string Successful Response
103
101
  * @throws ApiError
104
102
  */
105
- static workflowRunList(podId, workflowName, limit = 100, pageToken) {
103
+ static workflowRunVisualize(podId, runId) {
106
104
  return __request(OpenAPI, {
107
105
  method: 'GET',
108
- url: '/pods/{pod_id}/workflow-runs/{workflow_name}/runs',
106
+ url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
109
107
  path: {
110
108
  'pod_id': podId,
111
- 'workflow_name': workflowName,
112
- },
113
- query: {
114
- 'limit': limit,
115
- 'page_token': pageToken,
109
+ 'run_id': runId,
116
110
  },
117
111
  errors: {
118
112
  422: `Validation Error`,
@@ -146,7 +140,7 @@ export class WorkflowsService {
146
140
  }
147
141
  /**
148
142
  * Create Workflow
149
- * Create a workflow definition. Use this before uploading graph nodes/edges with `workflow.graph.update`.
143
+ * Create a workflow definition. The graph (`nodes`/`edges`) can be included in this call to create a ready-to-run workflow in one step, or omitted to create a shell and upload the graph later with `workflow.graph.update`.
150
144
  * @param podId
151
145
  * @param requestBody
152
146
  * @returns FlowDetailResponse Successful Response
@@ -257,24 +251,48 @@ export class WorkflowsService {
257
251
  });
258
252
  }
259
253
  /**
260
- * Start Workflow
261
- * Start a new workflow run. For event/scheduled/datastore starts, the request body is treated as initial trigger payload and merged into execution context.
254
+ * List Workflow Runs
255
+ * List recent runs for a given workflow.
262
256
  * @param podId
263
257
  * @param workflowName
264
- * @param requestBody
265
- * @returns FlowRunEntity Successful Response
258
+ * @param limit
259
+ * @param pageToken
260
+ * @returns WorkflowRunListResponse Successful Response
261
+ * @throws ApiError
262
+ */
263
+ static workflowRunList(podId, workflowName, limit = 100, pageToken) {
264
+ return __request(OpenAPI, {
265
+ method: 'GET',
266
+ url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
267
+ path: {
268
+ 'pod_id': podId,
269
+ 'workflow_name': workflowName,
270
+ },
271
+ query: {
272
+ 'limit': limit,
273
+ 'page_token': pageToken,
274
+ },
275
+ errors: {
276
+ 422: `Validation Error`,
277
+ },
278
+ });
279
+ }
280
+ /**
281
+ * Create Workflow Run
282
+ * Create a new run for this workflow. Takes no request body: if the workflow's entry node is a FORM node the run is created WAITING on it (see `active_wait` in the response) and input is submitted via `workflow.run.form.submit`; otherwise the run executes immediately. Trigger payloads for scheduled/event/datastore starts are supplied by the platform, not through this endpoint.
283
+ * @param podId
284
+ * @param workflowName
285
+ * @returns WorkflowRunResponse Successful Response
266
286
  * @throws ApiError
267
287
  */
268
- static workflowStart(podId, workflowName, requestBody) {
288
+ static workflowRunCreate(podId, workflowName) {
269
289
  return __request(OpenAPI, {
270
290
  method: 'POST',
271
- url: '/pods/{pod_id}/workflows/{workflow_name}/start',
291
+ url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
272
292
  path: {
273
293
  'pod_id': podId,
274
294
  'workflow_name': workflowName,
275
295
  },
276
- body: requestBody,
277
- mediaType: 'application/json',
278
296
  errors: {
279
297
  422: `Validation Error`,
280
298
  },
@@ -2,5 +2,11 @@ import type { ConversationMessage } from "../types.js";
2
2
  export declare function normalizeConversationStatus(status: unknown): string | undefined;
3
3
  export declare function isConversationRunningStatus(status: unknown): boolean;
4
4
  export declare function extractConversationMessageText(content: unknown): string;
5
+ /**
6
+ * Display text for a flat conversation message. Text/thinking/notification
7
+ * messages carry their body under `text`; tool_return messages may carry a
8
+ * human-readable payload under `tool_result`.
9
+ */
10
+ export declare function conversationMessageText(message: Pick<ConversationMessage, "text" | "tool_result"> | null | undefined): string;
5
11
  export declare function sortConversationMessagesByCreatedAt(messages: ConversationMessage[]): ConversationMessage[];
6
12
  export declare function getLatestAssistantMessage(messages: ConversationMessage[]): ConversationMessage | null;
@@ -72,6 +72,22 @@ export function extractConversationMessageText(content) {
72
72
  return content.text.trim();
73
73
  return extractTextFromStructuredContentEntry(content);
74
74
  }
75
+ /**
76
+ * Display text for a flat conversation message. Text/thinking/notification
77
+ * messages carry their body under `text`; tool_return messages may carry a
78
+ * human-readable payload under `tool_result`.
79
+ */
80
+ export function conversationMessageText(message) {
81
+ if (!message)
82
+ return "";
83
+ if (typeof message.text === "string" && message.text.trim().length > 0) {
84
+ return message.text.trim();
85
+ }
86
+ if (message.tool_result !== undefined && message.tool_result !== null) {
87
+ return extractConversationMessageText(message.tool_result);
88
+ }
89
+ return "";
90
+ }
75
91
  export function sortConversationMessagesByCreatedAt(messages) {
76
92
  return [...messages].sort((a, b) => {
77
93
  const aTime = Number.isFinite(new Date(a.created_at).getTime()) ? new Date(a.created_at).getTime() : 0;
@@ -20,7 +20,7 @@ export function useAddPodMember({ client, podId, enabled = true, defaultRole = P
20
20
  const resolvedPodId = resolvePodId(client, podId);
21
21
  const nextMember = await client.podMembers.add(resolvedPodId, {
22
22
  organization_member_id: organizationMemberId,
23
- role: input.role ?? defaultRole,
23
+ roles: [input.role ?? defaultRole],
24
24
  });
25
25
  setAddedMember(nextMember);
26
26
  onSuccessRef.current?.(nextMember);
@@ -1,5 +1,5 @@
1
1
  import type { LemmaClient } from "../client.js";
2
- import type { AgentRuntimeConfig, AvailableModelInfo, Conversation, ConversationModel } from "../types.js";
2
+ import type { AgentRuntimeConfig, AvailableModelInfo, Conversation, ConversationModel, MessageKind } from "../types.js";
3
3
  import { type AssistantStreamingTool } from "./useAssistantSession.js";
4
4
  export type { AssistantStreamingTool } from "./useAssistantSession.js";
5
5
  export interface AssistantConversationScope {
@@ -50,8 +50,12 @@ export interface AssistantRenderableMessage {
50
50
  agent_run_id?: string | null;
51
51
  metadata?: Record<string, unknown> | null;
52
52
  message_metadata?: Record<string, unknown> | null;
53
+ /** Flat message fields, passed through so consumers can inspect the raw kind. */
54
+ kind?: MessageKind;
53
55
  tool_call_id?: string | null;
54
56
  tool_name?: string | null;
57
+ tool_args?: unknown;
58
+ tool_result?: unknown;
55
59
  }
56
60
  export interface AssistantAction {
57
61
  id: string;
@@ -80,6 +84,7 @@ export interface UseAssistantControllerOptions extends AssistantConversationScop
80
84
  export interface SendAssistantControllerMessageOptions {
81
85
  forceNewConversation?: boolean;
82
86
  metadata?: Record<string, unknown> | null;
87
+ conversationMetadata?: Record<string, unknown> | null;
83
88
  instructions?: string | null;
84
89
  }
85
90
  export type AssistantUserApprovalDecision = "APPROVE_ONCE" | "APPROVE_FOR_SESSION" | "DENY";
@@ -93,6 +98,8 @@ export interface UseAssistantControllerResult {
93
98
  isActiveConversationRunning: boolean;
94
99
  isLoading: boolean;
95
100
  isLoadingConversations: boolean;
101
+ isLoadingMoreConversations: boolean;
102
+ hasMoreConversations: boolean;
96
103
  isLoadingMessages: boolean;
97
104
  isLoadingOlderMessages: boolean;
98
105
  hasOlderMessages: boolean;
@@ -112,6 +119,7 @@ export interface UseAssistantControllerResult {
112
119
  removePendingFile: (fileKey: string) => void;
113
120
  clearPendingFiles: () => void;
114
121
  loadOlderMessages: () => Promise<boolean>;
122
+ loadMoreConversations: () => Promise<Conversation[]>;
115
123
  resolveUserApproval: (approvalId: string, decision: AssistantUserApprovalDecision, response?: Record<string, unknown> | null) => Promise<void>;
116
124
  clearMessages: () => void;
117
125
  stop: () => void;