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,11 +1,15 @@
1
1
  /**
2
2
  * Status of a flow run.
3
+ *
4
+ * PENDING exists only in memory before the first advance; persisted runs
5
+ * are RUNNING, WAITING, or terminal. WAITING is reserved for human form
6
+ * waits. Runs suspended on platform work such as an agent, function job, or
7
+ * timer remain RUNNING; the active wait row records the exact wait_type.
3
8
  */
4
9
  export declare enum FlowRunStatus {
5
10
  PENDING = "PENDING",
6
11
  RUNNING = "RUNNING",
7
12
  WAITING = "WAITING",
8
- EXECUTING = "EXECUTING",
9
13
  COMPLETED = "COMPLETED",
10
14
  FAILED = "FAILED",
11
15
  CANCELLED = "CANCELLED"
@@ -4,13 +4,17 @@
4
4
  /* eslint-disable */
5
5
  /**
6
6
  * Status of a flow run.
7
+ *
8
+ * PENDING exists only in memory before the first advance; persisted runs
9
+ * are RUNNING, WAITING, or terminal. WAITING is reserved for human form
10
+ * waits. Runs suspended on platform work such as an agent, function job, or
11
+ * timer remain RUNNING; the active wait row records the exact wait_type.
7
12
  */
8
13
  export var FlowRunStatus;
9
14
  (function (FlowRunStatus) {
10
15
  FlowRunStatus["PENDING"] = "PENDING";
11
16
  FlowRunStatus["RUNNING"] = "RUNNING";
12
17
  FlowRunStatus["WAITING"] = "WAITING";
13
- FlowRunStatus["EXECUTING"] = "EXECUTING";
14
18
  FlowRunStatus["COMPLETED"] = "COMPLETED";
15
19
  FlowRunStatus["FAILED"] = "FAILED";
16
20
  FlowRunStatus["CANCELLED"] = "CANCELLED";
@@ -1,6 +1,7 @@
1
1
  import type { FormNodeConfig } from './FormNodeConfig.js';
2
2
  /**
3
- * Form node for user input.
3
+ * Form node for user input. The run waits on it until the form is
4
+ * submitted via the form-submit endpoint.
4
5
  */
5
6
  export type FormNode = {
6
7
  config: FormNodeConfig;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Configuration for Form node (User Input).
2
+ * Configuration for Form node (user input).
3
3
  */
4
4
  export type FormNodeConfig = {
5
5
  /**
@@ -1,6 +1,7 @@
1
1
  import type { FunctionNodeConfig } from './FunctionNodeConfig.js';
2
2
  /**
3
- * Function node.
3
+ * Function node. Completes inline for synchronous functions or waits on
4
+ * the function run for asynchronous ones.
4
5
  */
5
6
  export type FunctionNode = {
6
7
  config: FunctionNodeConfig;
@@ -1,6 +1,6 @@
1
1
  import type { ResourceType } from './ResourceType.js';
2
2
  export type FunctionResourcePermissionRequest = {
3
3
  permission_ids?: Array<string>;
4
- resource_id: string;
4
+ resource_name: string;
5
5
  resource_type: ResourceType;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import type { ResourceType } from './ResourceType.js';
2
2
  export type FunctionResourcePermissionResponse = {
3
3
  permission_ids?: Array<string>;
4
- resource_id: string;
4
+ resource_name: string;
5
5
  resource_type: ResourceType;
6
6
  };
@@ -0,0 +1,7 @@
1
+ export type InstalledAppSummary = {
2
+ application_id: string;
3
+ name: string;
4
+ provider: string;
5
+ status: string;
6
+ title?: (string | null);
7
+ };
@@ -0,0 +1,6 @@
1
+ import type { ConnectedAccountSummary } from './ConnectedAccountSummary.js';
2
+ import type { InstalledAppSummary } from './InstalledAppSummary.js';
3
+ export type IntegrationStatusResponse = {
4
+ accounts: Array<ConnectedAccountSummary>;
5
+ installed: Array<InstalledAppSummary>;
6
+ };
@@ -1,6 +1,7 @@
1
1
  import type { LoopNodeConfig } from './LoopNodeConfig.js';
2
2
  /**
3
- * Loop node.
3
+ * Loop node. Iterates the body chain once per item; the aggregated
4
+ * output is `{results: [...], count: n}` under the loop node id.
4
5
  */
5
6
  export type LoopNode = {
6
7
  config: LoopNodeConfig;
@@ -3,15 +3,15 @@
3
3
  */
4
4
  export type LoopNodeConfig = {
5
5
  /**
6
- * ID of the node to execute for each item
6
+ * Id of the first node of the loop body executed per item.
7
7
  */
8
8
  child_node_id: string;
9
9
  /**
10
- * Variable name for current item
10
+ * Alias for the current item inside the loop body, available as `loop.<item_var_name>` (the item is always available as `loop.item`).
11
11
  */
12
12
  item_var_name?: string;
13
13
  /**
14
- * Path to array in execution state
14
+ * JMESPath to an array in the run context to iterate over.
15
15
  */
16
16
  items_path: string;
17
17
  };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Discriminates the flat message body.
3
+ *
4
+ * A message carries exactly one kind. Textual kinds use ``text``; tool kinds
5
+ * use ``tool_name``/``tool_call_id`` plus ``tool_args`` (call) or
6
+ * ``tool_result`` (return). There is no nested ``content`` object.
7
+ */
8
+ export declare enum MessageKind {
9
+ TEXT = "text",
10
+ NOTIFICATION = "notification",
11
+ THINKING = "thinking",
12
+ TOOL_CALL = "tool_call",
13
+ TOOL_RETURN = "tool_return"
14
+ }
@@ -0,0 +1,19 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Discriminates the flat message body.
7
+ *
8
+ * A message carries exactly one kind. Textual kinds use ``text``; tool kinds
9
+ * use ``tool_name``/``tool_call_id`` plus ``tool_args`` (call) or
10
+ * ``tool_result`` (return). There is no nested ``content`` object.
11
+ */
12
+ export var MessageKind;
13
+ (function (MessageKind) {
14
+ MessageKind["TEXT"] = "text";
15
+ MessageKind["NOTIFICATION"] = "notification";
16
+ MessageKind["THINKING"] = "thinking";
17
+ MessageKind["TOOL_CALL"] = "tool_call";
18
+ MessageKind["TOOL_RETURN"] = "tool_return";
19
+ })(MessageKind || (MessageKind = {}));
@@ -1,16 +1,15 @@
1
- import type { NotificationContent } from './NotificationContent.js';
2
- import type { TextContent } from './TextContent.js';
3
- import type { ThinkingContent } from './ThinkingContent.js';
4
- import type { ToolCallContent } from './ToolCallContent.js';
5
- import type { ToolReturnContent } from './ToolReturnContent.js';
1
+ import type { MessageKind } from './MessageKind.js';
6
2
  export type MessageResponse = {
7
- content: (NotificationContent | TextContent | ThinkingContent | ToolCallContent | ToolReturnContent);
8
3
  conversation_id: string;
9
4
  created_at: string;
10
5
  id: string;
6
+ kind: MessageKind;
11
7
  metadata?: (Record<string, any> | null);
12
8
  role: string;
13
9
  sequence: number;
10
+ text?: (string | null);
11
+ tool_args?: null;
14
12
  tool_call_id?: (string | null);
15
13
  tool_name?: (string | null);
14
+ tool_result?: null;
16
15
  };
@@ -1,9 +1,7 @@
1
- import type { PodRole } from './PodRole.js';
2
1
  /**
3
2
  * Pod member add request schema.
4
3
  */
5
4
  export type PodMemberAddRequest = {
6
5
  organization_member_id: string;
7
- role: PodRole;
8
- roles?: (Array<string> | null);
6
+ roles: Array<string>;
9
7
  };
@@ -1,4 +1,3 @@
1
- import type { PodRole } from './PodRole.js';
2
1
  import type { UserResponse } from './UserResponse.js';
3
2
  /**
4
3
  * Pod member detail response schema.
@@ -7,7 +6,6 @@ export type PodMemberDetailResponse = {
7
6
  created_at: string;
8
7
  email: string;
9
8
  pod_member_id: string;
10
- role: PodRole;
11
9
  roles?: Array<string>;
12
10
  updated_at: string;
13
11
  user?: (UserResponse | null);
@@ -1,4 +1,3 @@
1
- import type { PodRole } from './PodRole.js';
2
1
  /**
3
2
  * Pod member response schema.
4
3
  */
@@ -6,7 +5,6 @@ export type PodMemberResponse = {
6
5
  created_at: string;
7
6
  email: string;
8
7
  pod_member_id: string;
9
- role: PodRole;
10
8
  roles?: Array<string>;
11
9
  updated_at: string;
12
10
  user_email: string;
@@ -1,8 +1,6 @@
1
- import type { PodRole } from './PodRole.js';
2
1
  /**
3
2
  * Pod member role update request schema.
4
3
  */
5
4
  export type PodMemberUpdateRoleRequest = {
6
- role?: (PodRole | null);
7
- roles?: (Array<string> | null);
5
+ roles: Array<string>;
8
6
  };
@@ -1,6 +1,6 @@
1
1
  import type { ResourceType } from './ResourceType.js';
2
2
  export type PodRoleResourcePermissionRequest = {
3
3
  permission_ids?: Array<string>;
4
- resource_id: string;
4
+ resource_name: string;
5
5
  resource_type: ResourceType;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import type { ResourceType } from './ResourceType.js';
2
2
  export type PodRoleResourcePermissionResponse = {
3
3
  permission_ids?: Array<string>;
4
- resource_id: string;
4
+ resource_name: string;
5
5
  resource_type: ResourceType;
6
6
  };
@@ -5,7 +5,7 @@ export type ResourceAccessGrantResponse = {
5
5
  grantee_id: string;
6
6
  grantee_type: string;
7
7
  permission_ids?: Array<string>;
8
- resource_id: string;
8
+ resource_name: string;
9
9
  resource_type: ResourceType;
10
10
  role_name?: (string | null);
11
11
  user_id?: (string | null);
@@ -2,6 +2,6 @@ import type { ResourceAccessGrantResponse } from './ResourceAccessGrantResponse.
2
2
  import type { ResourceType } from './ResourceType.js';
3
3
  export type ResourceAccessResponse = {
4
4
  grants?: Array<ResourceAccessGrantResponse>;
5
- resource_id: string;
5
+ resource_name: string;
6
6
  resource_type: ResourceType;
7
7
  };
@@ -1,4 +1,5 @@
1
1
  export declare enum RuntimeProfileScope {
2
2
  SYSTEM = "SYSTEM",
3
- ORGANIZATION = "ORGANIZATION"
3
+ ORGANIZATION = "ORGANIZATION",
4
+ PERSONAL = "PERSONAL"
4
5
  }
@@ -6,4 +6,5 @@ export var RuntimeProfileScope;
6
6
  (function (RuntimeProfileScope) {
7
7
  RuntimeProfileScope["SYSTEM"] = "SYSTEM";
8
8
  RuntimeProfileScope["ORGANIZATION"] = "ORGANIZATION";
9
+ RuntimeProfileScope["PERSONAL"] = "PERSONAL";
9
10
  })(RuntimeProfileScope || (RuntimeProfileScope = {}));
@@ -1,3 +1,4 @@
1
+ import type { ScheduleFireStatus } from './ScheduleFireStatus.js';
1
2
  import type { ScheduleType } from './ScheduleType.js';
2
3
  /**
3
4
  * Schedule detail response.
@@ -15,6 +16,11 @@ export type ScheduleDetailResponse = {
15
16
  id: string;
16
17
  is_active: boolean;
17
18
  is_internal: boolean;
19
+ last_error?: (string | null);
20
+ last_fire_status?: (ScheduleFireStatus | null);
21
+ last_fired_at?: (string | null);
22
+ last_run_id?: (string | null);
23
+ name: (string | null);
18
24
  pod_id: (string | null);
19
25
  schedule_type: ScheduleType;
20
26
  updated_at: string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Outcome of the most recent fire attempt, recorded for debuggability.
3
+ */
4
+ export declare enum ScheduleFireStatus {
5
+ TRIGGERED = "TRIGGERED",
6
+ FILTERED = "FILTERED",
7
+ ERROR = "ERROR"
8
+ }
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Outcome of the most recent fire attempt, recorded for debuggability.
7
+ */
8
+ export var ScheduleFireStatus;
9
+ (function (ScheduleFireStatus) {
10
+ ScheduleFireStatus["TRIGGERED"] = "TRIGGERED";
11
+ ScheduleFireStatus["FILTERED"] = "FILTERED";
12
+ ScheduleFireStatus["ERROR"] = "ERROR";
13
+ })(ScheduleFireStatus || (ScheduleFireStatus = {}));
@@ -0,0 +1,10 @@
1
+ import type { StepStatus } from './StepStatus.js';
2
+ export type StepRecordResponse = {
3
+ completed_at?: (string | null);
4
+ error?: (string | null);
5
+ node_id: string;
6
+ output_data?: null;
7
+ started_at: string;
8
+ status: StepStatus;
9
+ step_index: number;
10
+ };
@@ -0,0 +1,7 @@
1
+ export declare enum StepStatus {
2
+ RUNNING = "RUNNING",
3
+ WAITING = "WAITING",
4
+ COMPLETED = "COMPLETED",
5
+ FAILED = "FAILED",
6
+ CANCELLED = "CANCELLED"
7
+ }
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var StepStatus;
6
+ (function (StepStatus) {
7
+ StepStatus["RUNNING"] = "RUNNING";
8
+ StepStatus["WAITING"] = "WAITING";
9
+ StepStatus["COMPLETED"] = "COMPLETED";
10
+ StepStatus["FAILED"] = "FAILED";
11
+ StepStatus["CANCELLED"] = "CANCELLED";
12
+ })(StepStatus || (StepStatus = {}));
@@ -1,3 +1,7 @@
1
+ import type { SurfaceChannelRouteInput } from './SurfaceChannelRouteInput.js';
2
+ import type { SurfaceIdentityConfigInput } from './SurfaceIdentityConfigInput.js';
1
3
  export type SurfaceBehaviorConfigInput = {
4
+ channels?: Array<SurfaceChannelRouteInput>;
2
5
  dm_conversation_reset_after_hours?: number;
6
+ identity?: SurfaceIdentityConfigInput;
3
7
  };
@@ -0,0 +1,6 @@
1
+ export type SurfaceChannelRouteInput = {
2
+ agent_name?: (string | null);
3
+ channel_id?: (string | null);
4
+ channel_name?: (string | null);
5
+ requires_mention?: boolean;
6
+ };
@@ -0,0 +1,6 @@
1
+ export type SurfaceChannelRouteResponse = {
2
+ agent_name?: (string | null);
3
+ channel_id?: (string | null);
4
+ channel_name?: (string | null);
5
+ requires_mention?: boolean;
6
+ };
@@ -0,0 +1,10 @@
1
+ import type { SurfaceChannelRouteResponse } from './SurfaceChannelRouteResponse.js';
2
+ import type { SurfaceIdentityConfigResponse } from './SurfaceIdentityConfigResponse.js';
3
+ /**
4
+ * Mirrors SurfaceBehaviorConfigInput: what you send is what you get back.
5
+ */
6
+ export type SurfaceConfigResponse = {
7
+ channels?: Array<SurfaceChannelRouteResponse>;
8
+ dm_conversation_reset_after_hours?: number;
9
+ identity?: SurfaceIdentityConfigResponse;
10
+ };
@@ -0,0 +1,4 @@
1
+ export declare enum SurfaceCredentialMode {
2
+ SYSTEM = "SYSTEM",
3
+ CUSTOM = "CUSTOM"
4
+ }
@@ -0,0 +1,9 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var SurfaceCredentialMode;
6
+ (function (SurfaceCredentialMode) {
7
+ SurfaceCredentialMode["SYSTEM"] = "SYSTEM";
8
+ SurfaceCredentialMode["CUSTOM"] = "CUSTOM";
9
+ })(SurfaceCredentialMode || (SurfaceCredentialMode = {}));
@@ -0,0 +1,4 @@
1
+ export type SurfaceIdentityConfigInput = {
2
+ allowed_domains?: Array<string>;
3
+ allowed_email_addresses?: Array<string>;
4
+ };
@@ -0,0 +1,4 @@
1
+ export type SurfaceIdentityConfigResponse = {
2
+ allowed_domains?: Array<string>;
3
+ allowed_email_addresses?: Array<string>;
4
+ };
@@ -0,0 +1,10 @@
1
+ import type { AgentSurfaceStatus } from './AgentSurfaceStatus.js';
2
+ import type { SurfacePlatform } from './SurfacePlatform.js';
3
+ export type SurfaceSetupStatusResponse = {
4
+ automatic_setup_supported?: boolean;
5
+ manual_steps?: Array<Record<string, string>>;
6
+ platform: SurfacePlatform;
7
+ status: AgentSurfaceStatus;
8
+ webhook_configured?: boolean;
9
+ webhook_url?: (string | null);
10
+ };
@@ -4,5 +4,7 @@ import type { TableDetailResponse } from './TableDetailResponse.js';
4
4
  */
5
5
  export type TableListResponse = {
6
6
  items: Array<TableDetailResponse>;
7
+ limit: number;
7
8
  next_page_token?: (string | null);
9
+ total?: (number | null);
8
10
  };
@@ -1,3 +1,3 @@
1
1
  export type ToggleSurfaceRequest = {
2
- is_active: boolean;
2
+ is_enabled: boolean;
3
3
  };
@@ -7,6 +7,7 @@ export type UpdateScheduleRequest = {
7
7
  filter_instruction?: (string | null);
8
8
  filter_output_schema?: (Record<string, any> | null);
9
9
  is_active?: (boolean | null);
10
+ name?: (string | null);
10
11
  visibility?: (string | null);
11
12
  workflow_name?: (string | null);
12
13
  };
@@ -0,0 +1,4 @@
1
+ import type { SurfaceChannelRouteInput } from './SurfaceChannelRouteInput.js';
2
+ export type UpdateSurfaceChannelsRequest = {
3
+ channels?: Array<SurfaceChannelRouteInput>;
4
+ };
@@ -1,16 +1,9 @@
1
1
  import type { SurfaceBehaviorConfigInput } from './SurfaceBehaviorConfigInput.js';
2
- import type { SurfaceEventMode } from './SurfaceEventMode.js';
3
- import type { SurfaceMode } from './SurfaceMode.js';
4
- import type { SurfaceRoutingScope } from './SurfaceRoutingScope.js';
2
+ import type { SurfaceCredentialMode } from './SurfaceCredentialMode.js';
5
3
  export type UpdateSurfaceRequest = {
6
4
  account_id?: (string | null);
7
- agent_name?: (string | null);
8
5
  config?: (SurfaceBehaviorConfigInput | null);
9
- event_mode?: (SurfaceEventMode | null);
10
- external_channel_id?: (string | null);
11
- external_tenant_id?: (string | null);
12
- external_workspace_id?: (string | null);
13
- is_active?: (boolean | null);
14
- mode?: (SurfaceMode | null);
15
- routing_scope?: (SurfaceRoutingScope | null);
6
+ credential_mode?: (SurfaceCredentialMode | null);
7
+ default_agent_name?: (string | null);
8
+ is_enabled?: (boolean | null);
16
9
  };
@@ -0,0 +1,9 @@
1
+ import type { SurfaceBehaviorConfigInput } from './SurfaceBehaviorConfigInput.js';
2
+ import type { SurfaceCredentialMode } from './SurfaceCredentialMode.js';
3
+ export type UpsertSurfaceRequest = {
4
+ account_id?: (string | null);
5
+ config?: SurfaceBehaviorConfigInput;
6
+ credential_mode?: SurfaceCredentialMode;
7
+ default_agent_name?: (string | null);
8
+ is_enabled?: boolean;
9
+ };
@@ -7,5 +7,6 @@ export type UserProfileRequest = {
7
7
  first_name?: (string | null);
8
8
  last_name?: (string | null);
9
9
  mobile_number?: (string | null);
10
+ telegram_username?: (string | null);
10
11
  timezone?: (string | null);
11
12
  };
@@ -13,6 +13,7 @@ export type UserResponse = {
13
13
  is_verified: boolean;
14
14
  last_name?: (string | null);
15
15
  mobile_number?: (string | null);
16
+ telegram_username?: (string | null);
16
17
  timezone?: (string | null);
17
18
  updated_at: string;
18
19
  };
@@ -1,6 +1,6 @@
1
1
  import type { WaitUntilNodeConfig } from './WaitUntilNodeConfig.js';
2
2
  /**
3
- * Wait Until node.
3
+ * Wait node. Suspends the run until the scheduler wakes it.
4
4
  */
5
5
  export type WaitUntilNode = {
6
6
  config: WaitUntilNodeConfig;
@@ -1,14 +1,26 @@
1
+ import type { AgentNode } from './AgentNode.js';
1
2
  import type { DataStoreWorkflowStartInput } from './DataStoreWorkflowStartInput.js';
3
+ import type { DecisionNode } from './DecisionNode.js';
4
+ import type { EndNode } from './EndNode.js';
2
5
  import type { EventWorkflowStartInput } from './EventWorkflowStartInput.js';
6
+ import type { FormNode } from './FormNode.js';
7
+ import type { FunctionNode } from './FunctionNode.js';
8
+ import type { LoopNode } from './LoopNode.js';
3
9
  import type { ManualWorkflowStartInput } from './ManualWorkflowStartInput.js';
4
10
  import type { ResourceVisibility } from './ResourceVisibility.js';
5
11
  import type { ScheduledWorkflowStartInput } from './ScheduledWorkflowStartInput.js';
12
+ import type { WaitUntilNode } from './WaitUntilNode.js';
13
+ import type { WorkflowEdge } from './WorkflowEdge.js';
6
14
  import type { WorkflowMode } from './WorkflowMode.js';
7
15
  export type WorkflowCreateRequest = {
8
16
  /**
9
17
  * Optional workflow description.
10
18
  */
11
19
  description?: (string | null);
20
+ /**
21
+ * Optional initial graph edges connecting the provided nodes.
22
+ */
23
+ edges?: Array<WorkflowEdge>;
12
24
  /**
13
25
  * Optional public icon URL for the workflow.
14
26
  */
@@ -21,6 +33,10 @@ export type WorkflowCreateRequest = {
21
33
  * Workflow name.
22
34
  */
23
35
  name: string;
36
+ /**
37
+ * Optional initial graph nodes. When provided, the graph is stored at creation time so a separate `workflow.graph.update` call is not required. Omit (or pass an empty list) to create a shell and upload the graph later. Node `input_mapping` entries must use explicit typed bindings like `{"type": "expression", "value": "start.payload.x"}`.
38
+ */
39
+ nodes?: Array<(FormNode | AgentNode | FunctionNode | DecisionNode | LoopNode | WaitUntilNode | EndNode)>;
24
40
  /**
25
41
  * Start configuration. If omitted, the workflow can be started manually via `workflow.start`.
26
42
  */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Canonical form submission payload — identical across web, SDKs, CLI.
3
+ */
4
+ export type WorkflowRunFormSubmitRequest = {
5
+ /**
6
+ * Form field values keyed by field name.
7
+ */
8
+ inputs?: Record<string, any>;
9
+ /**
10
+ * Id of the FORM node being submitted. Must match the run's active wait; mismatches return 422.
11
+ */
12
+ node_id: string;
13
+ };
@@ -0,0 +1,28 @@
1
+ import type { FlowRunStatus } from './FlowRunStatus.js';
2
+ import type { StepRecordResponse } from './StepRecordResponse.js';
3
+ import type { WorkflowRunWaitResponse } from './WorkflowRunWaitResponse.js';
4
+ /**
5
+ * Full run state. `execution_context` is the same flat view that
6
+ * workflow expressions resolve against (`<node_id>.<field>`, `start.*`,
7
+ * `loop.*`). `active_wait` is set when the run is suspended, including
8
+ * WAITING form waits and RUNNING platform waits.
9
+ */
10
+ export type WorkflowRunResponse = {
11
+ active_wait?: (WorkflowRunWaitResponse | null);
12
+ completed_at?: (string | null);
13
+ created_at?: (string | null);
14
+ current_node_id?: (string | null);
15
+ error?: (string | null);
16
+ execution_context?: Record<string, any>;
17
+ failed_node_id?: (string | null);
18
+ flow_id: string;
19
+ id: string;
20
+ pod_id: string;
21
+ schedule_event_id?: (string | null);
22
+ start_type?: string;
23
+ started_at?: (string | null);
24
+ status?: FlowRunStatus;
25
+ step_history?: Array<StepRecordResponse>;
26
+ updated_at?: (string | null);
27
+ user_id: string;
28
+ };
@@ -3,6 +3,8 @@ export type WorkflowRunSummaryResponse = {
3
3
  completed_at?: (string | null);
4
4
  created_at?: (string | null);
5
5
  current_node_id?: (string | null);
6
+ error?: (string | null);
7
+ failed_node_id?: (string | null);
6
8
  flow_id: string;
7
9
  id: string;
8
10
  pod_id: string;
@@ -12,7 +14,4 @@ export type WorkflowRunSummaryResponse = {
12
14
  status?: FlowRunStatus;
13
15
  updated_at?: (string | null);
14
16
  user_id: string;
15
- waiting_agent_conversation_id?: (string | null);
16
- waiting_function_run_id?: (string | null);
17
- waiting_timer_id?: (string | null);
18
17
  };