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
@@ -75,7 +75,7 @@ class LemmaClient {
75
75
  return this._currentPodId;
76
76
  };
77
77
  this.tables = new tables_js_1.TablesNamespace(this._generated, podIdFn);
78
- this.records = new records_js_1.RecordsNamespace(this._generated, this._http, podIdFn);
78
+ this.records = new records_js_1.RecordsNamespace(this._generated, podIdFn);
79
79
  this.files = new files_js_1.FilesNamespace(this._generated, this._http, podIdFn);
80
80
  this.functions = new functions_js_1.FunctionsNamespace(this._generated, podIdFn);
81
81
  this.agents = new agents_js_1.AgentsNamespace(this._generated, podIdFn);
@@ -173,11 +173,11 @@ function resolveConfig(overrides = {}) {
173
173
  const apiUrl = overrides.apiUrl ??
174
174
  win.apiUrl ??
175
175
  fromEnv("API_URL") ??
176
- "https://api.asur.work";
176
+ "https://api.lemma.work";
177
177
  const authUrl = overrides.authUrl ??
178
178
  win.authUrl ??
179
179
  fromEnv("AUTH_URL") ??
180
- "https://auth.asur.work";
180
+ "https://lemma.work/auth";
181
181
  const podId = overrides.podId ??
182
182
  win.podId ??
183
183
  fromEnv("POD_ID");
@@ -2287,16 +2287,9 @@ class FilesNamespace {
2287
2287
  },
2288
2288
  };
2289
2289
  this.converted = {
2290
- get: (path, options = {}) => this.client.request(() => {
2291
- void options;
2292
- return FilesService_js_1.FilesService.fileConvertedGet(this.podId(), path);
2293
- }),
2294
- render: (path, options = {}) => this.client.request(() => {
2295
- void options;
2296
- return FilesService_js_1.FilesService.fileConvertedRender(this.podId(), path);
2297
- }),
2298
- download: (path, artifact = "document.md", options = {}) => {
2299
- void options;
2290
+ get: (path) => this.client.request(() => FilesService_js_1.FilesService.fileConvertedGet(this.podId(), path)),
2291
+ render: (path) => this.client.request(() => FilesService_js_1.FilesService.fileConvertedRender(this.podId(), path)),
2292
+ download: (path, artifact = "document.md") => {
2300
2293
  const encodedPath = encodeURIComponent(path);
2301
2294
  const encodedArtifact = encodeURIComponent(artifact);
2302
2295
  return this.http.requestBytes("GET", `/pods/${this.podId()}/datastore/files/converted/download?path=${encodedPath}&artifact=${encodedArtifact}`);
@@ -2307,12 +2300,10 @@ class FilesNamespace {
2307
2300
  const directoryPath = options.directoryPath ?? options.parentId ?? "/";
2308
2301
  return this.client.request(() => FilesService_js_1.FilesService.fileList(this.podId(), directoryPath, options.limit ?? 100, options.pageToken));
2309
2302
  }
2310
- get(path, options = {}) {
2311
- void options;
2303
+ get(path) {
2312
2304
  return this.client.request(() => FilesService_js_1.FilesService.fileGet(this.podId(), path));
2313
2305
  }
2314
- delete(path, options = {}) {
2315
- void options;
2306
+ delete(path) {
2316
2307
  return this.client.request(() => FilesService_js_1.FilesService.fileDelete(this.podId(), path));
2317
2308
  }
2318
2309
  search(query, options = {}) {
@@ -2324,8 +2315,7 @@ class FilesNamespace {
2324
2315
  search_method: (options.searchMethod ?? SearchMethod_js_1.SearchMethod.HYBRID),
2325
2316
  }));
2326
2317
  }
2327
- download(path, options = {}) {
2328
- void options;
2318
+ download(path) {
2329
2319
  const encodedPath = encodeURIComponent(path);
2330
2320
  return this.http.requestBytes("GET", `/pods/${this.podId()}/datastore/files/download?path=${encodedPath}`);
2331
2321
  }
@@ -2439,7 +2429,7 @@ class FilesService {
2439
2429
  * Delete File Or Folder
2440
2430
  * @param podId
2441
2431
  * @param path
2442
- * @returns DatastoreMessageResponse Successful Response
2432
+ * @returns void
2443
2433
  * @throws ApiError
2444
2434
  */
2445
2435
  static fileDelete(podId, path) {
@@ -2759,7 +2749,7 @@ class FunctionsService {
2759
2749
  }
2760
2750
  /**
2761
2751
  * Create Function
2762
- * Create a new function in a pod. Do not send input_schema or output_schema; the platform derives those schemas from the function code and returns them in the response.
2752
+ * Create a new function in a pod. Do not send input_schema, output_schema, or config_schema; the platform derives those schemas from the function code and returns them in the response.
2763
2753
  * @param podId
2764
2754
  * @param requestBody
2765
2755
  * @returns FunctionActionResponse Successful Response
@@ -3069,8 +3059,8 @@ class IntegrationsNamespace {
3069
3059
  },
3070
3060
  };
3071
3061
  this.triggers = {
3072
- list: (options = {}) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationTriggerList(options.applicationId, options.search, options.limit ?? 100, options.pageToken)),
3073
- get: (triggerId) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationTriggerGet(triggerId)),
3062
+ list: (scope, options = {}) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationTriggerList(scope.organizationId, scope.authConfigName, options.search, options.limit ?? 100)),
3063
+ get: (scope, triggerName) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationTriggerGet(scope.organizationId, scope.authConfigName, triggerName)),
3074
3064
  };
3075
3065
  this.accounts = {
3076
3066
  list: (organizationId, options = {}) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountList(organizationId, options.applicationId, options.limit ?? 100, options.pageToken)),
@@ -3091,10 +3081,10 @@ class IntegrationsNamespace {
3091
3081
  }),
3092
3082
  };
3093
3083
  this.authConfigs = {
3094
- list: (organizationId, options = {}) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.listAuthConfigsOrganizationsOrganizationIdIntegrationsAuthConfigsGet(organizationId, options.limit ?? 100, options.pageToken)),
3095
- create: (organizationId, payload) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.createAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsPost(organizationId, payload)),
3096
- get: (organizationId, authConfigName) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.getAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsAuthConfigNameGet(organizationId, authConfigName)),
3097
- delete: (organizationId, authConfigName) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.deleteAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsAuthConfigNameDelete(organizationId, authConfigName)),
3084
+ list: (organizationId, options = {}) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAuthConfigList(organizationId, options.limit ?? 100, options.pageToken)),
3085
+ create: (organizationId, payload) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAuthConfigCreate(organizationId, payload)),
3086
+ get: (organizationId, authConfigName) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAuthConfigGet(organizationId, authConfigName)),
3087
+ delete: (organizationId, authConfigName) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAuthConfigDelete(organizationId, authConfigName)),
3098
3088
  };
3099
3089
  }
3100
3090
  list(options = {}) {
@@ -3225,43 +3215,18 @@ class ApplicationsService {
3225
3215
  });
3226
3216
  }
3227
3217
  /**
3228
- * List Triggers
3229
- * Get all triggers. Optionally filter by application_id and search in description
3218
+ * Get Application
3219
+ * Get a specific application by ID along with its operation catalog
3230
3220
  * @param applicationId
3231
- * @param search
3232
- * @param limit
3233
- * @param pageToken
3234
- * @returns AppTriggerListResponseSchema Successful Response
3235
- * @throws ApiError
3236
- */
3237
- static applicationTriggerList(applicationId, search, limit = 100, pageToken) {
3238
- return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3239
- method: 'GET',
3240
- url: '/integrations/applications/triggers',
3241
- query: {
3242
- 'application_id': applicationId,
3243
- 'search': search,
3244
- 'limit': limit,
3245
- 'page_token': pageToken,
3246
- },
3247
- errors: {
3248
- 422: `Validation Error`,
3249
- },
3250
- });
3251
- }
3252
- /**
3253
- * Get Trigger
3254
- * Get a specific trigger by ID
3255
- * @param triggerId
3256
- * @returns AppTriggerResponseSchema Successful Response
3221
+ * @returns ApplicationDetailResponseSchema Successful Response
3257
3222
  * @throws ApiError
3258
3223
  */
3259
- static applicationTriggerGet(triggerId) {
3224
+ static applicationGet(applicationId) {
3260
3225
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3261
3226
  method: 'GET',
3262
- url: '/integrations/applications/triggers/{trigger_id}',
3227
+ url: '/integrations/applications/{application_id}',
3263
3228
  path: {
3264
- 'trigger_id': triggerId,
3229
+ 'application_id': applicationId,
3265
3230
  },
3266
3231
  errors: {
3267
3232
  422: `Validation Error`,
@@ -3269,19 +3234,23 @@ class ApplicationsService {
3269
3234
  });
3270
3235
  }
3271
3236
  /**
3272
- * Get Application
3273
- * Get a specific application by ID along with its operation catalog
3237
+ * Get Application Skill
3238
+ * Get the skill guide markdown for an application. Pass `provider=lemma` or `provider=composio` to get provider-specific instructions when the app supports both. Falls back to the generic doc if no provider-specific file exists. Returns 404 if no skill doc has been generated yet.
3274
3239
  * @param applicationId
3275
- * @returns ApplicationDetailResponseSchema Successful Response
3240
+ * @param provider Provider override: lemma or composio
3241
+ * @returns ApplicationSkillResponse Successful Response
3276
3242
  * @throws ApiError
3277
3243
  */
3278
- static applicationGet(applicationId) {
3244
+ static applicationSkillGet(applicationId, provider) {
3279
3245
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3280
3246
  method: 'GET',
3281
- url: '/integrations/applications/{application_id}',
3247
+ url: '/integrations/applications/{application_id}/skill',
3282
3248
  path: {
3283
3249
  'application_id': applicationId,
3284
3250
  },
3251
+ query: {
3252
+ 'provider': provider,
3253
+ },
3285
3254
  errors: {
3286
3255
  422: `Validation Error`,
3287
3256
  },
@@ -3383,6 +3352,54 @@ class ApplicationsService {
3383
3352
  },
3384
3353
  });
3385
3354
  }
3355
+ /**
3356
+ * List Application Triggers
3357
+ * @param organizationId
3358
+ * @param authConfigName
3359
+ * @param search
3360
+ * @param limit
3361
+ * @returns AppTriggerListResponseSchema Successful Response
3362
+ * @throws ApiError
3363
+ */
3364
+ static applicationTriggerList(organizationId, authConfigName, search, limit = 100) {
3365
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3366
+ method: 'GET',
3367
+ url: '/organizations/{organization_id}/integrations/{auth_config_name}/triggers',
3368
+ path: {
3369
+ 'organization_id': organizationId,
3370
+ 'auth_config_name': authConfigName,
3371
+ },
3372
+ query: {
3373
+ 'search': search,
3374
+ 'limit': limit,
3375
+ },
3376
+ errors: {
3377
+ 422: `Validation Error`,
3378
+ },
3379
+ });
3380
+ }
3381
+ /**
3382
+ * Get Application Trigger
3383
+ * @param organizationId
3384
+ * @param authConfigName
3385
+ * @param triggerName
3386
+ * @returns AppTriggerResponseSchema Successful Response
3387
+ * @throws ApiError
3388
+ */
3389
+ static applicationTriggerGet(organizationId, authConfigName, triggerName) {
3390
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3391
+ method: 'GET',
3392
+ url: '/organizations/{organization_id}/integrations/{auth_config_name}/triggers/{trigger_name}',
3393
+ path: {
3394
+ 'organization_id': organizationId,
3395
+ 'auth_config_name': authConfigName,
3396
+ 'trigger_name': triggerName,
3397
+ },
3398
+ errors: {
3399
+ 422: `Validation Error`,
3400
+ },
3401
+ });
3402
+ }
3386
3403
  }
3387
3404
  exports.ApplicationsService = ApplicationsService;
3388
3405
 
@@ -3535,7 +3552,7 @@ class IntegrationsService {
3535
3552
  * @returns AuthConfigListResponseSchema Successful Response
3536
3553
  * @throws ApiError
3537
3554
  */
3538
- static listAuthConfigsOrganizationsOrganizationIdIntegrationsAuthConfigsGet(organizationId, limit = 100, pageToken) {
3555
+ static integrationAuthConfigList(organizationId, limit = 100, pageToken) {
3539
3556
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3540
3557
  method: 'GET',
3541
3558
  url: '/organizations/{organization_id}/integrations/auth-configs',
@@ -3558,7 +3575,7 @@ class IntegrationsService {
3558
3575
  * @returns AuthConfigResponseSchema Successful Response
3559
3576
  * @throws ApiError
3560
3577
  */
3561
- static createAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsPost(organizationId, requestBody) {
3578
+ static integrationAuthConfigCreate(organizationId, requestBody) {
3562
3579
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3563
3580
  method: 'POST',
3564
3581
  url: '/organizations/{organization_id}/integrations/auth-configs',
@@ -3579,7 +3596,7 @@ class IntegrationsService {
3579
3596
  * @returns boolean Successful Response
3580
3597
  * @throws ApiError
3581
3598
  */
3582
- static deleteAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsAuthConfigNameDelete(organizationId, authConfigName) {
3599
+ static integrationAuthConfigDelete(organizationId, authConfigName) {
3583
3600
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3584
3601
  method: 'DELETE',
3585
3602
  url: '/organizations/{organization_id}/integrations/auth-configs/{auth_config_name}',
@@ -3599,7 +3616,7 @@ class IntegrationsService {
3599
3616
  * @returns AuthConfigResponseSchema Successful Response
3600
3617
  * @throws ApiError
3601
3618
  */
3602
- static getAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsAuthConfigNameGet(organizationId, authConfigName) {
3619
+ static integrationAuthConfigGet(organizationId, authConfigName) {
3603
3620
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3604
3621
  method: 'GET',
3605
3622
  url: '/organizations/{organization_id}/integrations/auth-configs/{auth_config_name}',
@@ -3634,6 +3651,24 @@ class IntegrationsService {
3634
3651
  },
3635
3652
  });
3636
3653
  }
3654
+ /**
3655
+ * Get Integration Status
3656
+ * @param organizationId
3657
+ * @returns IntegrationStatusResponse Successful Response
3658
+ * @throws ApiError
3659
+ */
3660
+ static integrationStatusGet(organizationId) {
3661
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3662
+ method: 'GET',
3663
+ url: '/organizations/{organization_id}/integrations/status',
3664
+ path: {
3665
+ 'organization_id': organizationId,
3666
+ },
3667
+ errors: {
3668
+ 422: `Validation Error`,
3669
+ },
3670
+ });
3671
+ }
3637
3672
  }
3638
3673
  exports.IntegrationsService = IntegrationsService;
3639
3674
 
@@ -4502,12 +4537,7 @@ class PodsNamespace {
4502
4537
  pageToken: options.pageToken ?? options.cursor,
4503
4538
  });
4504
4539
  }
4505
- return this.http.request("GET", "/pods", {
4506
- params: {
4507
- limit: options.limit ?? 100,
4508
- page_token: options.pageToken ?? options.cursor,
4509
- },
4510
- });
4540
+ throw new Error("organizationId is required for pods.list(). Use listByOrganization(organizationId).");
4511
4541
  }
4512
4542
  listByOrganization(organizationId, options = {}) {
4513
4543
  return this.client.request(() => PodsService_js_1.PodsService.podList(organizationId, options.limit ?? 100, options.pageToken ?? options.cursor));
@@ -4845,14 +4875,23 @@ class PodSurfacesNamespace {
4845
4875
  create(podId, payload) {
4846
4876
  return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceCreate(podId, payload));
4847
4877
  }
4848
- get(podId, surfaceId) {
4849
- return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceGet(podId, surfaceId));
4878
+ upsert(podId, platform, payload) {
4879
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpsertByPlatform(podId, platform, payload));
4880
+ }
4881
+ get(podId, surfaceRef) {
4882
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceGet(podId, surfaceRef));
4883
+ }
4884
+ updateConfig(podId, surfaceRef, payload) {
4885
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpdate(podId, surfaceRef, payload));
4886
+ }
4887
+ updateChannels(podId, surfaceRef, payload) {
4888
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpdateChannels(podId, surfaceRef, payload));
4850
4889
  }
4851
- updateConfig(podId, surfaceId, payload) {
4852
- return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpdate(podId, surfaceId, payload));
4890
+ setupStatus(podId, surfaceRef) {
4891
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceSetupStatus(podId, surfaceRef));
4853
4892
  }
4854
- toggle(podId, surfaceId, isActive) {
4855
- return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceToggle(podId, surfaceId, { is_active: isActive }));
4893
+ toggle(podId, surfaceRef, isEnabled) {
4894
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceToggle(podId, surfaceRef, { is_enabled: isEnabled }));
4856
4895
  }
4857
4896
  }
4858
4897
  exports.PodSurfacesNamespace = PodSurfacesNamespace;
@@ -4930,20 +4969,43 @@ class AgentSurfacesService {
4930
4969
  },
4931
4970
  });
4932
4971
  }
4972
+ /**
4973
+ * Upsert Surface By Platform
4974
+ * @param podId
4975
+ * @param platform
4976
+ * @param requestBody
4977
+ * @returns any Successful Response
4978
+ * @throws ApiError
4979
+ */
4980
+ static agentSurfaceUpsertByPlatform(podId, platform, requestBody) {
4981
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4982
+ method: 'PUT',
4983
+ url: '/pods/{pod_id}/surfaces/{platform}',
4984
+ path: {
4985
+ 'pod_id': podId,
4986
+ 'platform': platform,
4987
+ },
4988
+ body: requestBody,
4989
+ mediaType: 'application/json',
4990
+ errors: {
4991
+ 422: `Validation Error`,
4992
+ },
4993
+ });
4994
+ }
4933
4995
  /**
4934
4996
  * Delete Surface
4935
4997
  * @param podId
4936
- * @param surfaceId
4998
+ * @param surfaceRef
4937
4999
  * @returns void
4938
5000
  * @throws ApiError
4939
5001
  */
4940
- static agentSurfaceDelete(podId, surfaceId) {
5002
+ static agentSurfaceDelete(podId, surfaceRef) {
4941
5003
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4942
5004
  method: 'DELETE',
4943
- url: '/pods/{pod_id}/surfaces/{surface_id}',
5005
+ url: '/pods/{pod_id}/surfaces/{surface_ref}',
4944
5006
  path: {
4945
5007
  'pod_id': podId,
4946
- 'surface_id': surfaceId,
5008
+ 'surface_ref': surfaceRef,
4947
5009
  },
4948
5010
  errors: {
4949
5011
  422: `Validation Error`,
@@ -4953,17 +5015,17 @@ class AgentSurfacesService {
4953
5015
  /**
4954
5016
  * Get Surface
4955
5017
  * @param podId
4956
- * @param surfaceId
5018
+ * @param surfaceRef
4957
5019
  * @returns any Successful Response
4958
5020
  * @throws ApiError
4959
5021
  */
4960
- static agentSurfaceGet(podId, surfaceId) {
5022
+ static agentSurfaceGet(podId, surfaceRef) {
4961
5023
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4962
5024
  method: 'GET',
4963
- url: '/pods/{pod_id}/surfaces/{surface_id}',
5025
+ url: '/pods/{pod_id}/surfaces/{surface_ref}',
4964
5026
  path: {
4965
5027
  'pod_id': podId,
4966
- 'surface_id': surfaceId,
5028
+ 'surface_ref': surfaceRef,
4967
5029
  },
4968
5030
  errors: {
4969
5031
  422: `Validation Error`,
@@ -4973,18 +5035,18 @@ class AgentSurfacesService {
4973
5035
  /**
4974
5036
  * Update Surface
4975
5037
  * @param podId
4976
- * @param surfaceId
5038
+ * @param surfaceRef
4977
5039
  * @param requestBody
4978
5040
  * @returns any Successful Response
4979
5041
  * @throws ApiError
4980
5042
  */
4981
- static agentSurfaceUpdate(podId, surfaceId, requestBody) {
5043
+ static agentSurfaceUpdate(podId, surfaceRef, requestBody) {
4982
5044
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4983
5045
  method: 'PATCH',
4984
- url: '/pods/{pod_id}/surfaces/{surface_id}',
5046
+ url: '/pods/{pod_id}/surfaces/{surface_ref}',
4985
5047
  path: {
4986
5048
  'pod_id': podId,
4987
- 'surface_id': surfaceId,
5049
+ 'surface_ref': surfaceRef,
4988
5050
  },
4989
5051
  body: requestBody,
4990
5052
  mediaType: 'application/json',
@@ -4996,17 +5058,60 @@ class AgentSurfacesService {
4996
5058
  /**
4997
5059
  * Get Admin Consent Info
4998
5060
  * @param podId
4999
- * @param surfaceId
5061
+ * @param surfaceRef
5000
5062
  * @returns AdminConsentInfoResponse Successful Response
5001
5063
  * @throws ApiError
5002
5064
  */
5003
- static agentSurfaceAdminConsentInfo(podId, surfaceId) {
5065
+ static agentSurfaceAdminConsentInfo(podId, surfaceRef) {
5066
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5067
+ method: 'GET',
5068
+ url: '/pods/{pod_id}/surfaces/{surface_ref}/admin-consent',
5069
+ path: {
5070
+ 'pod_id': podId,
5071
+ 'surface_ref': surfaceRef,
5072
+ },
5073
+ errors: {
5074
+ 422: `Validation Error`,
5075
+ },
5076
+ });
5077
+ }
5078
+ /**
5079
+ * Update Surface Channels
5080
+ * @param podId
5081
+ * @param surfaceRef
5082
+ * @param requestBody
5083
+ * @returns any Successful Response
5084
+ * @throws ApiError
5085
+ */
5086
+ static agentSurfaceUpdateChannels(podId, surfaceRef, requestBody) {
5087
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5088
+ method: 'PUT',
5089
+ url: '/pods/{pod_id}/surfaces/{surface_ref}/channels',
5090
+ path: {
5091
+ 'pod_id': podId,
5092
+ 'surface_ref': surfaceRef,
5093
+ },
5094
+ body: requestBody,
5095
+ mediaType: 'application/json',
5096
+ errors: {
5097
+ 422: `Validation Error`,
5098
+ },
5099
+ });
5100
+ }
5101
+ /**
5102
+ * Get Surface Setup Status
5103
+ * @param podId
5104
+ * @param surfaceRef
5105
+ * @returns SurfaceSetupStatusResponse Successful Response
5106
+ * @throws ApiError
5107
+ */
5108
+ static agentSurfaceSetupStatus(podId, surfaceRef) {
5004
5109
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5005
5110
  method: 'GET',
5006
- url: '/pods/{pod_id}/surfaces/{surface_id}/admin-consent',
5111
+ url: '/pods/{pod_id}/surfaces/{surface_ref}/setup',
5007
5112
  path: {
5008
5113
  'pod_id': podId,
5009
- 'surface_id': surfaceId,
5114
+ 'surface_ref': surfaceRef,
5010
5115
  },
5011
5116
  errors: {
5012
5117
  422: `Validation Error`,
@@ -5016,18 +5121,18 @@ class AgentSurfacesService {
5016
5121
  /**
5017
5122
  * Toggle Surface
5018
5123
  * @param podId
5019
- * @param surfaceId
5124
+ * @param surfaceRef
5020
5125
  * @param requestBody
5021
5126
  * @returns any Successful Response
5022
5127
  * @throws ApiError
5023
5128
  */
5024
- static agentSurfaceToggle(podId, surfaceId, requestBody) {
5129
+ static agentSurfaceToggle(podId, surfaceRef, requestBody) {
5025
5130
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5026
5131
  method: 'PATCH',
5027
- url: '/pods/{pod_id}/surfaces/{surface_id}/toggle',
5132
+ url: '/pods/{pod_id}/surfaces/{surface_ref}/toggle',
5028
5133
  path: {
5029
5134
  'pod_id': podId,
5030
- 'surface_id': surfaceId,
5135
+ 'surface_ref': surfaceRef,
5031
5136
  },
5032
5137
  body: requestBody,
5033
5138
  mediaType: 'application/json',
@@ -5045,9 +5150,6 @@ exports.AgentSurfacesService = AgentSurfacesService;
5045
5150
  Object.defineProperty(exports, "__esModule", { value: true });
5046
5151
  exports.RecordsNamespace = void 0;
5047
5152
  const RecordsService_js_1 = require("./openapi_client/services/RecordsService.js");
5048
- function getRecordsPath(podId, table) {
5049
- return `/pods/${encodeURIComponent(podId)}/datastore/tables/${encodeURIComponent(table)}/records`;
5050
- }
5051
5153
  function serializeFilters(filters) {
5052
5154
  if (!filters || filters.length === 0) {
5053
5155
  return undefined;
@@ -5061,9 +5163,8 @@ function serializeSort(sort) {
5061
5163
  return sort.map((entry) => JSON.stringify(entry));
5062
5164
  }
5063
5165
  class RecordsNamespace {
5064
- constructor(client, http, podId) {
5166
+ constructor(client, podId) {
5065
5167
  this.client = client;
5066
- this.http = http;
5067
5168
  this.podId = podId;
5068
5169
  this.bulk = {
5069
5170
  create: (table, records) => {
@@ -5081,32 +5182,8 @@ class RecordsNamespace {
5081
5182
  };
5082
5183
  }
5083
5184
  list(table, options = {}) {
5084
- const { filters, sort, limit, pageToken, offset, sortBy, order, params } = options;
5085
- if (filters || sort) {
5086
- return this.client.request(() => RecordsService_js_1.RecordsService.recordList(this.podId(), table, limit ?? 20, offset, sortBy ?? undefined, order ?? "asc", serializeFilters(filters), serializeSort(sort), pageToken));
5087
- }
5088
- const hasCustomParams = typeof offset === "number" ||
5089
- typeof sortBy === "string" ||
5090
- typeof order === "string" ||
5091
- !!params;
5092
- if (hasCustomParams) {
5093
- return this.http.request("GET", getRecordsPath(this.podId(), table), {
5094
- params: {
5095
- limit: limit ?? 20,
5096
- page_token: pageToken,
5097
- offset,
5098
- sort_by: sortBy,
5099
- order,
5100
- ...(params ?? {}),
5101
- },
5102
- });
5103
- }
5104
- return this.client.request(() => RecordsService_js_1.RecordsService.recordList(this.podId(), table, limit ?? 20, offset, sortBy ?? undefined, order ?? "asc", undefined, undefined, pageToken));
5105
- }
5106
- listWithParams(table, params) {
5107
- return this.http.request("GET", getRecordsPath(this.podId(), table), {
5108
- params,
5109
- });
5185
+ const { filters, sort, limit, pageToken, offset } = options;
5186
+ return this.client.request(() => RecordsService_js_1.RecordsService.recordList(this.podId(), table, limit ?? 20, offset, serializeFilters(filters), serializeSort(sort), pageToken));
5110
5187
  }
5111
5188
  create(table, data) {
5112
5189
  return this.client.request(() => RecordsService_js_1.RecordsService.recordCreate(this.podId(), table, { data }));
@@ -5121,7 +5198,7 @@ class RecordsNamespace {
5121
5198
  return this.client.request(() => RecordsService_js_1.RecordsService.recordDelete(this.podId(), table, recordId));
5122
5199
  }
5123
5200
  query(table, payload) {
5124
- return this.client.request(() => RecordsService_js_1.RecordsService.recordList(this.podId(), table, payload.limit ?? 20, payload.offset, payload.sort_by ?? undefined, payload.order ?? "asc", serializeFilters(payload.filters), serializeSort(payload.sort), payload.page_token));
5201
+ return this.client.request(() => RecordsService_js_1.RecordsService.recordList(this.podId(), table, payload.limit ?? 20, payload.offset, serializeFilters(payload.filters), serializeSort(payload.sort), payload.page_token));
5125
5202
  }
5126
5203
  }
5127
5204
  exports.RecordsNamespace = RecordsNamespace;
@@ -5141,15 +5218,13 @@ class RecordsService {
5141
5218
  * @param tableName
5142
5219
  * @param limit Max number of rows to return.
5143
5220
  * @param offset Row offset for direct pagination.
5144
- * @param sortBy Optional column name to sort by.
5145
- * @param order Sort direction for `sort_by`: `asc` or `desc`.
5146
5221
  * @param filter Optional repeated JSON filters for advanced comparisons. Each `filter` value must be a JSON object with shape `{"field":"<column_name>","op":"<operator>","value":<comparison_value>}`. Allowed operators are: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `like`, `ilike`. Repeat the query parameter to combine multiple filters with AND semantics. Examples: `filter={"field":"amount","op":"gt","value":100}` and `filter={"field":"status","op":"eq","value":"OPEN"}`.
5147
5222
  * @param sort Optional repeated JSON sort clauses. Each `sort` value must be a JSON object with shape `{"field":"<column_name>","direction":"<direction>"}`. Allowed directions are: `asc`, `desc`. Repeat the query parameter to provide multi-column sorting in priority order. Example: `sort={"field":"created_at","direction":"desc"}`.
5148
5223
  * @param pageToken Opaque token from a previous response page.
5149
5224
  * @returns RecordListResponse Successful Response
5150
5225
  * @throws ApiError
5151
5226
  */
5152
- static recordList(podId, tableName, limit = 20, offset, sortBy, order = 'asc', filter, sort, pageToken) {
5227
+ static recordList(podId, tableName, limit = 20, offset, filter, sort, pageToken) {
5153
5228
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5154
5229
  method: 'GET',
5155
5230
  url: '/pods/{pod_id}/datastore/tables/{table_name}/records',
@@ -5160,8 +5235,6 @@ class RecordsService {
5160
5235
  query: {
5161
5236
  'limit': limit,
5162
5237
  'offset': offset,
5163
- 'sort_by': sortBy,
5164
- 'order': order,
5165
5238
  'filter': filter,
5166
5239
  'sort': sort,
5167
5240
  'page_token': pageToken,
@@ -5173,11 +5246,11 @@ class RecordsService {
5173
5246
  }
5174
5247
  /**
5175
5248
  * Create Record
5176
- * Insert a record into a table. Reserved tables (`reserved_*`) are system-managed and cannot be mutated through record write endpoints.
5249
+ * Insert a record into a table. Returns the created record object keyed by column name (no envelope). Reserved tables (`reserved_*`) are system-managed and cannot be mutated through record write endpoints.
5177
5250
  * @param podId
5178
5251
  * @param tableName
5179
5252
  * @param requestBody
5180
- * @returns RecordResponse Successful Response
5253
+ * @returns any Successful Response
5181
5254
  * @throws ApiError
5182
5255
  */
5183
5256
  static recordCreate(podId, tableName, requestBody) {
@@ -5197,11 +5270,11 @@ class RecordsService {
5197
5270
  }
5198
5271
  /**
5199
5272
  * Bulk Create
5200
- * Insert multiple records in one request.
5273
+ * Insert multiple records in one request. Returns the affected-row count.
5201
5274
  * @param podId
5202
5275
  * @param tableName
5203
5276
  * @param requestBody
5204
- * @returns DatastoreMessageResponse Successful Response
5277
+ * @returns DatastoreCountResponse Successful Response
5205
5278
  * @throws ApiError
5206
5279
  */
5207
5280
  static recordBulkCreate(podId, tableName, requestBody) {
@@ -5221,11 +5294,11 @@ class RecordsService {
5221
5294
  }
5222
5295
  /**
5223
5296
  * Bulk Delete
5224
- * Delete multiple records by primary key values.
5297
+ * Delete multiple records by primary key values. Returns the affected-row count.
5225
5298
  * @param podId
5226
5299
  * @param tableName
5227
5300
  * @param requestBody
5228
- * @returns DatastoreMessageResponse Successful Response
5301
+ * @returns DatastoreCountResponse Successful Response
5229
5302
  * @throws ApiError
5230
5303
  */
5231
5304
  static recordBulkDelete(podId, tableName, requestBody) {
@@ -5245,11 +5318,11 @@ class RecordsService {
5245
5318
  }
5246
5319
  /**
5247
5320
  * Bulk Update
5248
- * Update multiple records in one request (each item needs primary key).
5321
+ * Update multiple records in one request (each item needs primary key). Returns the affected-row count.
5249
5322
  * @param podId
5250
5323
  * @param tableName
5251
5324
  * @param requestBody
5252
- * @returns DatastoreMessageResponse Successful Response
5325
+ * @returns DatastoreCountResponse Successful Response
5253
5326
  * @throws ApiError
5254
5327
  */
5255
5328
  static recordBulkUpdate(podId, tableName, requestBody) {
@@ -5273,7 +5346,7 @@ class RecordsService {
5273
5346
  * @param podId
5274
5347
  * @param tableName
5275
5348
  * @param recordId
5276
- * @returns DatastoreMessageResponse Successful Response
5349
+ * @returns void
5277
5350
  * @throws ApiError
5278
5351
  */
5279
5352
  static recordDelete(podId, tableName, recordId) {
@@ -5292,11 +5365,11 @@ class RecordsService {
5292
5365
  }
5293
5366
  /**
5294
5367
  * Get Record
5295
- * Fetch one record by primary key value. The `record_id` path segment is the table's primary key value as stored in the table, not necessarily a UUID.
5368
+ * Fetch one record by primary key value (returns the record object, no envelope). The `record_id` path segment is the table's primary key value as stored in the table, not necessarily a UUID.
5296
5369
  * @param podId
5297
5370
  * @param tableName
5298
5371
  * @param recordId
5299
- * @returns RecordResponse Successful Response
5372
+ * @returns any Successful Response
5300
5373
  * @throws ApiError
5301
5374
  */
5302
5375
  static recordGet(podId, tableName, recordId) {
@@ -5315,12 +5388,12 @@ class RecordsService {
5315
5388
  }
5316
5389
  /**
5317
5390
  * Update Record
5318
- * Patch a record by primary key.
5391
+ * Patch a record by primary key. Returns the updated record object (no envelope).
5319
5392
  * @param podId
5320
5393
  * @param tableName
5321
5394
  * @param recordId
5322
5395
  * @param requestBody
5323
- * @returns RecordResponse Successful Response
5396
+ * @returns any Successful Response
5324
5397
  * @throws ApiError
5325
5398
  */
5326
5399
  static recordUpdate(podId, tableName, recordId, requestBody) {
@@ -5353,14 +5426,14 @@ class ResourceAccessNamespace {
5353
5426
  this.client = client;
5354
5427
  this.podId = podId;
5355
5428
  }
5356
- get(resourceType, resourceId, podId) {
5357
- return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGet(podId ?? this.podId(), resourceType, resourceId));
5429
+ get(resourceType, resourceName, podId) {
5430
+ return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGet(podId ?? this.podId(), resourceType, resourceName));
5358
5431
  }
5359
- replaceGrant(resourceType, resourceId, granteeType, granteeId, payload, podId) {
5360
- return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGrantReplace(podId ?? this.podId(), resourceType, resourceId, granteeType, granteeId, payload));
5432
+ replaceGrant(resourceType, resourceName, granteeType, granteeId, payload, podId) {
5433
+ return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGrantReplace(podId ?? this.podId(), resourceType, resourceName, granteeType, granteeId, payload));
5361
5434
  }
5362
- deleteGrant(resourceType, resourceId, granteeType, granteeId, podId) {
5363
- return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGrantDelete(podId ?? this.podId(), resourceType, resourceId, granteeType, granteeId));
5435
+ deleteGrant(resourceType, resourceName, granteeType, granteeId, podId) {
5436
+ return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGrantDelete(podId ?? this.podId(), resourceType, resourceName, granteeType, granteeId));
5364
5437
  }
5365
5438
  }
5366
5439
  exports.ResourceAccessNamespace = ResourceAccessNamespace;
@@ -5377,18 +5450,18 @@ class PodResourceAccessService {
5377
5450
  * Get Resource Access
5378
5451
  * @param podId
5379
5452
  * @param resourceType
5380
- * @param resourceId
5453
+ * @param resourceName
5381
5454
  * @returns ResourceAccessResponse Successful Response
5382
5455
  * @throws ApiError
5383
5456
  */
5384
- static podResourceAccessGet(podId, resourceType, resourceId) {
5457
+ static podResourceAccessGet(podId, resourceType, resourceName) {
5385
5458
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5386
5459
  method: 'GET',
5387
- url: '/pods/{pod_id}/resources/{resource_type}/{resource_id}/access',
5460
+ url: '/pods/{pod_id}/resources/{resource_type}/{resource_name}/access',
5388
5461
  path: {
5389
5462
  'pod_id': podId,
5390
5463
  'resource_type': resourceType,
5391
- 'resource_id': resourceId,
5464
+ 'resource_name': resourceName,
5392
5465
  },
5393
5466
  errors: {
5394
5467
  422: `Validation Error`,
@@ -5399,20 +5472,20 @@ class PodResourceAccessService {
5399
5472
  * Delete Resource Access Grant
5400
5473
  * @param podId
5401
5474
  * @param resourceType
5402
- * @param resourceId
5475
+ * @param resourceName
5403
5476
  * @param granteeType
5404
5477
  * @param granteeId
5405
5478
  * @returns ResourceAccessResponse Successful Response
5406
5479
  * @throws ApiError
5407
5480
  */
5408
- static podResourceAccessGrantDelete(podId, resourceType, resourceId, granteeType, granteeId) {
5481
+ static podResourceAccessGrantDelete(podId, resourceType, resourceName, granteeType, granteeId) {
5409
5482
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5410
5483
  method: 'DELETE',
5411
- url: '/pods/{pod_id}/resources/{resource_type}/{resource_id}/access/grantees/{grantee_type}/{grantee_id}',
5484
+ url: '/pods/{pod_id}/resources/{resource_type}/{resource_name}/access/grantees/{grantee_type}/{grantee_id}',
5412
5485
  path: {
5413
5486
  'pod_id': podId,
5414
5487
  'resource_type': resourceType,
5415
- 'resource_id': resourceId,
5488
+ 'resource_name': resourceName,
5416
5489
  'grantee_type': granteeType,
5417
5490
  'grantee_id': granteeId,
5418
5491
  },
@@ -5425,21 +5498,21 @@ class PodResourceAccessService {
5425
5498
  * Replace Resource Access Grant
5426
5499
  * @param podId
5427
5500
  * @param resourceType
5428
- * @param resourceId
5501
+ * @param resourceName
5429
5502
  * @param granteeType
5430
5503
  * @param granteeId
5431
5504
  * @param requestBody
5432
5505
  * @returns ResourceAccessResponse Successful Response
5433
5506
  * @throws ApiError
5434
5507
  */
5435
- static podResourceAccessGrantReplace(podId, resourceType, resourceId, granteeType, granteeId, requestBody) {
5508
+ static podResourceAccessGrantReplace(podId, resourceType, resourceName, granteeType, granteeId, requestBody) {
5436
5509
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5437
5510
  method: 'PUT',
5438
- url: '/pods/{pod_id}/resources/{resource_type}/{resource_id}/access/grantees/{grantee_type}/{grantee_id}',
5511
+ url: '/pods/{pod_id}/resources/{resource_type}/{resource_name}/access/grantees/{grantee_type}/{grantee_id}',
5439
5512
  path: {
5440
5513
  'pod_id': podId,
5441
5514
  'resource_type': resourceType,
5442
- 'resource_id': resourceId,
5515
+ 'resource_name': resourceName,
5443
5516
  'grantee_type': granteeType,
5444
5517
  'grantee_id': granteeId,
5445
5518
  },
@@ -5504,7 +5577,7 @@ class SchedulesNamespace {
5504
5577
  this.podId = podId;
5505
5578
  }
5506
5579
  list(options = {}) {
5507
- return this.client.request(() => SchedulesService_js_1.SchedulesService.scheduleList(this.podId(), options.scheduleType, options.isActive, options.agentName, options.workflowName, options.limit ?? 100, options.pageToken));
5580
+ return this.client.request(() => SchedulesService_js_1.SchedulesService.scheduleList(this.podId(), options.scheduleType, options.isActive, options.agentName, options.workflowName, options.name, options.limit ?? 100, options.pageToken));
5508
5581
  }
5509
5582
  create(payload) {
5510
5583
  return this.client.request(() => SchedulesService_js_1.SchedulesService.scheduleCreate(this.podId(), payload));
@@ -5537,12 +5610,13 @@ class SchedulesService {
5537
5610
  * @param isActive
5538
5611
  * @param agentName
5539
5612
  * @param workflowName
5613
+ * @param name
5540
5614
  * @param limit
5541
5615
  * @param pageToken
5542
5616
  * @returns ScheduleListResponse Successful Response
5543
5617
  * @throws ApiError
5544
5618
  */
5545
- static scheduleList(podId, scheduleType, isActive, agentName, workflowName, limit = 100, pageToken) {
5619
+ static scheduleList(podId, scheduleType, isActive, agentName, workflowName, name, limit = 100, pageToken) {
5546
5620
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5547
5621
  method: 'GET',
5548
5622
  url: '/pods/{pod_id}/schedules',
@@ -5554,6 +5628,7 @@ class SchedulesService {
5554
5628
  'is_active': isActive,
5555
5629
  'agent_name': agentName,
5556
5630
  'workflow_name': workflowName,
5631
+ 'name': name,
5557
5632
  'limit': limit,
5558
5633
  'page_token': pageToken,
5559
5634
  },
@@ -5759,7 +5834,7 @@ class TablesService {
5759
5834
  * Delete a table and all records in it.
5760
5835
  * @param podId
5761
5836
  * @param tableName
5762
- * @returns DatastoreMessageResponse Successful Response
5837
+ * @returns void
5763
5838
  * @throws ApiError
5764
5839
  */
5765
5840
  static tableDelete(podId, tableName) {
@@ -5850,7 +5925,7 @@ class TablesService {
5850
5925
  * @param podId
5851
5926
  * @param tableName
5852
5927
  * @param columnName
5853
- * @returns DatastoreMessageResponse Successful Response
5928
+ * @returns void
5854
5929
  * @throws ApiError
5855
5930
  */
5856
5931
  static tableColumnRemove(podId, tableName, columnName) {
@@ -5950,7 +6025,6 @@ exports.UsersService = UsersService;
5950
6025
  "use strict";
5951
6026
  Object.defineProperty(exports, "__esModule", { value: true });
5952
6027
  exports.WorkflowsNamespace = void 0;
5953
- const http_js_1 = require("./http.js");
5954
6028
  const WorkflowsService_js_1 = require("./openapi_client/services/WorkflowsService.js");
5955
6029
  class WorkflowsNamespace {
5956
6030
  constructor(client, http, podId) {
@@ -5961,14 +6035,19 @@ class WorkflowsNamespace {
5961
6035
  update: (workflowName, graph) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowGraphUpdate(this.podId(), workflowName, graph)),
5962
6036
  };
5963
6037
  this.runs = {
5964
- start: (workflowName, inputs = {}) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowStart(this.podId(), workflowName, inputs)),
6038
+ /**
6039
+ * Create a run. Runs take no inputs: when the workflow starts with a
6040
+ * form, the returned run is WAITING with `active_wait` describing the
6041
+ * form to render and submit via `runs.submitForm`.
6042
+ */
6043
+ create: (workflowName) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunCreate(this.podId(), workflowName)),
5965
6044
  list: (workflowName, options = {}) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunList(this.podId(), workflowName, options.limit ?? 100, options.pageToken)),
5966
6045
  waitingAssignedToMe: (options = {}) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunWaitingAssignedToMe(this.podId(), options.limit ?? 100, options.pageToken)),
5967
6046
  get: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunGet(podId, runId)),
5968
- resume: (runId, inputs = {}, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunResume(podId, runId, inputs)),
6047
+ /** Submit the form a run is waiting on. node_id must match active_wait.node_id. */
6048
+ submitForm: (runId, payload, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunFormSubmit(podId, runId, payload)),
5969
6049
  visualize: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunVisualize(podId, runId)),
5970
- cancel: (runId, podId = this.podId()) => this.postRunAction(runId, "cancel", podId),
5971
- retry: (runId, podId = this.podId()) => this.postRunAction(runId, "retry", podId),
6050
+ cancel: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunCancel(podId, runId)),
5972
6051
  };
5973
6052
  }
5974
6053
  list(options = {}) {
@@ -5989,19 +6068,6 @@ class WorkflowsNamespace {
5989
6068
  visualize(workflowName) {
5990
6069
  return this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowVisualize(this.podId(), workflowName));
5991
6070
  }
5992
- async postRunAction(runId, action, podId) {
5993
- const encodedPodId = encodeURIComponent(podId);
5994
- const encodedRunId = encodeURIComponent(runId);
5995
- try {
5996
- return await this.http.request("POST", `/pods/${encodedPodId}/workflow-runs/${encodedRunId}/${action}`, { body: {} });
5997
- }
5998
- catch (error) {
5999
- if (error instanceof http_js_1.ApiError && (error.statusCode === 404 || error.statusCode === 405)) {
6000
- return this.http.request("POST", `/pods/${encodedPodId}/flow-runs/${encodedRunId}/${action}`, { body: {} });
6001
- }
6002
- throw error;
6003
- }
6004
- }
6005
6071
  }
6006
6072
  exports.WorkflowsNamespace = WorkflowsNamespace;
6007
6073
 
@@ -6015,7 +6081,7 @@ const request_js_1 = require("./openapi_client/core/request.js");
6015
6081
  class WorkflowsService {
6016
6082
  /**
6017
6083
  * List Workflow Runs Waiting For Current User
6018
- * List active human form waits assigned to the current pod member.
6084
+ * The current user's approval queue: active form waits assigned to them, with the owning run.
6019
6085
  * @param podId
6020
6086
  * @param limit
6021
6087
  * @param pageToken
@@ -6040,10 +6106,10 @@ class WorkflowsService {
6040
6106
  }
6041
6107
  /**
6042
6108
  * Get Workflow Run
6043
- * Get current state, context, and step history of a workflow run.
6109
+ * Get current state, context, step history, and the active wait (when WAITING) of a workflow run.
6044
6110
  * @param podId
6045
6111
  * @param runId
6046
- * @returns FlowRunEntity Successful Response
6112
+ * @returns WorkflowRunResponse Successful Response
6047
6113
  * @throws ApiError
6048
6114
  */
6049
6115
  static workflowRunGet(podId, runId) {
@@ -6060,71 +6126,65 @@ class WorkflowsService {
6060
6126
  });
6061
6127
  }
6062
6128
  /**
6063
- * Resume Workflow Run
6064
- * Resume a run in WAITING or EXECUTING state. The payload is written back into the current waiting node output and execution continues.
6129
+ * Cancel Workflow Run
6130
+ * 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.
6065
6131
  * @param podId
6066
6132
  * @param runId
6067
- * @param requestBody
6068
- * @returns FlowRunEntity Successful Response
6133
+ * @returns WorkflowRunResponse Successful Response
6069
6134
  * @throws ApiError
6070
6135
  */
6071
- static workflowRunResume(podId, runId, requestBody) {
6136
+ static workflowRunCancel(podId, runId) {
6072
6137
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
6073
6138
  method: 'POST',
6074
- url: '/pods/{pod_id}/workflow-runs/{run_id}/resume',
6139
+ url: '/pods/{pod_id}/workflow-runs/{run_id}/cancel',
6075
6140
  path: {
6076
6141
  'pod_id': podId,
6077
6142
  'run_id': runId,
6078
6143
  },
6079
- body: requestBody,
6080
- mediaType: 'application/json',
6081
6144
  errors: {
6082
6145
  422: `Validation Error`,
6083
6146
  },
6084
6147
  });
6085
6148
  }
6086
6149
  /**
6087
- * Visualize Workflow Run
6088
- * Render an HTML view of a run overlaid on its workflow graph.
6150
+ * Submit Workflow Run Form
6151
+ * 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>`.
6089
6152
  * @param podId
6090
6153
  * @param runId
6091
- * @returns string Successful Response
6154
+ * @param requestBody
6155
+ * @returns WorkflowRunResponse Successful Response
6092
6156
  * @throws ApiError
6093
6157
  */
6094
- static workflowRunVisualize(podId, runId) {
6158
+ static workflowRunFormSubmit(podId, runId, requestBody) {
6095
6159
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
6096
- method: 'GET',
6097
- url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
6160
+ method: 'POST',
6161
+ url: '/pods/{pod_id}/workflow-runs/{run_id}/form',
6098
6162
  path: {
6099
6163
  'pod_id': podId,
6100
6164
  'run_id': runId,
6101
6165
  },
6166
+ body: requestBody,
6167
+ mediaType: 'application/json',
6102
6168
  errors: {
6103
6169
  422: `Validation Error`,
6104
6170
  },
6105
6171
  });
6106
6172
  }
6107
6173
  /**
6108
- * List Workflow Runs
6109
- * List recent runs for a given workflow.
6174
+ * Visualize Workflow Run
6175
+ * Render an HTML view of a run overlaid on its workflow graph.
6110
6176
  * @param podId
6111
- * @param workflowName
6112
- * @param limit
6113
- * @param pageToken
6114
- * @returns WorkflowRunListResponse Successful Response
6177
+ * @param runId
6178
+ * @returns string Successful Response
6115
6179
  * @throws ApiError
6116
6180
  */
6117
- static workflowRunList(podId, workflowName, limit = 100, pageToken) {
6181
+ static workflowRunVisualize(podId, runId) {
6118
6182
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
6119
6183
  method: 'GET',
6120
- url: '/pods/{pod_id}/workflow-runs/{workflow_name}/runs',
6184
+ url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
6121
6185
  path: {
6122
6186
  'pod_id': podId,
6123
- 'workflow_name': workflowName,
6124
- },
6125
- query: {
6126
- 'limit': limit,
6127
- 'page_token': pageToken,
6187
+ 'run_id': runId,
6128
6188
  },
6129
6189
  errors: {
6130
6190
  422: `Validation Error`,
@@ -6158,7 +6218,7 @@ class WorkflowsService {
6158
6218
  }
6159
6219
  /**
6160
6220
  * Create Workflow
6161
- * Create a workflow definition. Use this before uploading graph nodes/edges with `workflow.graph.update`.
6221
+ * 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`.
6162
6222
  * @param podId
6163
6223
  * @param requestBody
6164
6224
  * @returns FlowDetailResponse Successful Response
@@ -6269,24 +6329,48 @@ class WorkflowsService {
6269
6329
  });
6270
6330
  }
6271
6331
  /**
6272
- * Start Workflow
6273
- * Start a new workflow run. For event/scheduled/datastore starts, the request body is treated as initial trigger payload and merged into execution context.
6332
+ * List Workflow Runs
6333
+ * List recent runs for a given workflow.
6274
6334
  * @param podId
6275
6335
  * @param workflowName
6276
- * @param requestBody
6277
- * @returns FlowRunEntity Successful Response
6336
+ * @param limit
6337
+ * @param pageToken
6338
+ * @returns WorkflowRunListResponse Successful Response
6278
6339
  * @throws ApiError
6279
6340
  */
6280
- static workflowStart(podId, workflowName, requestBody) {
6341
+ static workflowRunList(podId, workflowName, limit = 100, pageToken) {
6342
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
6343
+ method: 'GET',
6344
+ url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
6345
+ path: {
6346
+ 'pod_id': podId,
6347
+ 'workflow_name': workflowName,
6348
+ },
6349
+ query: {
6350
+ 'limit': limit,
6351
+ 'page_token': pageToken,
6352
+ },
6353
+ errors: {
6354
+ 422: `Validation Error`,
6355
+ },
6356
+ });
6357
+ }
6358
+ /**
6359
+ * Create Workflow Run
6360
+ * 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.
6361
+ * @param podId
6362
+ * @param workflowName
6363
+ * @returns WorkflowRunResponse Successful Response
6364
+ * @throws ApiError
6365
+ */
6366
+ static workflowRunCreate(podId, workflowName) {
6281
6367
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
6282
6368
  method: 'POST',
6283
- url: '/pods/{pod_id}/workflows/{workflow_name}/start',
6369
+ url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
6284
6370
  path: {
6285
6371
  'pod_id': podId,
6286
6372
  'workflow_name': workflowName,
6287
6373
  },
6288
- body: requestBody,
6289
- mediaType: 'application/json',
6290
6374
  errors: {
6291
6375
  422: `Validation Error`,
6292
6376
  },