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
@@ -0,0 +1,2 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export {};
@@ -1,9 +1,9 @@
1
1
  import type { HttpClient } from "../http.js";
2
+ import type { ApprovalDecisionResponse } from "../openapi_client/models/ApprovalDecisionResponse.js";
2
3
  import type { AgentRuntimeConfig } from "../openapi_client/models/AgentRuntimeConfig.js";
3
4
  import type { ConversationListResponse } from "../openapi_client/models/ConversationListResponse.js";
4
5
  import type { CreateConversationRequest } from "../openapi_client/models/CreateConversationRequest.js";
5
6
  import type { HarnessKind } from "../openapi_client/models/HarnessKind.js";
6
- import type { MessageResponse } from "../openapi_client/models/MessageResponse.js";
7
7
  import type { ResolveUserApprovalRequest } from "../openapi_client/models/ResolveUserApprovalRequest.js";
8
8
  import type { SendMessageRequest } from "../openapi_client/models/SendMessageRequest.js";
9
9
  import type { UpdateConversationRequest } from "../openapi_client/models/UpdateConversationRequest.js";
@@ -96,7 +96,7 @@ export declare class ConversationsNamespace {
96
96
  }) => Promise<UserApprovalListResponse>;
97
97
  resolve: (conversationId: string, approvalId: string, payload: ResolveUserApprovalInput, options?: {
98
98
  pod_id?: string | null;
99
- }) => Promise<MessageResponse>;
99
+ }) => Promise<ApprovalDecisionResponse>;
100
100
  };
101
101
  }
102
102
  export {};
@@ -4,7 +4,6 @@ import type { ConvertedFileResponse } from "../openapi_client/models/ConvertedFi
4
4
  import type { DirectoryTreeResponse } from "../openapi_client/models/DirectoryTreeResponse.js";
5
5
  import { FileSearchScopeMode } from "../openapi_client/models/FileSearchScopeMode.js";
6
6
  import { SearchMethod } from "../openapi_client/models/SearchMethod.js";
7
- import type { DatastoreFileNamespace } from "../types.js";
8
7
  type SearchMethodInput = SearchMethod | `${SearchMethod}`;
9
8
  type FileSearchScopeModeInput = FileSearchScopeMode | `${FileSearchScopeMode}`;
10
9
  export declare class FilesNamespace {
@@ -17,27 +16,19 @@ export declare class FilesNamespace {
17
16
  pageToken?: string;
18
17
  directoryPath?: string;
19
18
  parentId?: string;
20
- namespace?: DatastoreFileNamespace | null;
21
19
  }): Promise<import("../types.js").FileListResponse>;
22
- get(path: string, options?: {
23
- namespace?: DatastoreFileNamespace | null;
24
- }): Promise<import("../types.js").FileDetailResponse>;
25
- delete(path: string, options?: {
26
- namespace?: DatastoreFileNamespace | null;
27
- }): Promise<import("../types.js").DatastoreMessageResponse>;
20
+ get(path: string): Promise<import("../types.js").FileDetailResponse>;
21
+ delete(path: string): Promise<void>;
28
22
  search(query: string, options?: {
29
23
  limit?: number;
30
24
  scopeMode?: FileSearchScopeModeInput;
31
25
  scopePath?: string | null;
32
26
  searchMethod?: SearchMethodInput;
33
27
  }): Promise<import("../types.js").FileSearchResponse>;
34
- download(path: string, options?: {
35
- namespace?: DatastoreFileNamespace | null;
36
- }): Promise<Blob>;
28
+ download(path: string): Promise<Blob>;
37
29
  tree(options?: {
38
30
  rootPath?: string;
39
31
  filesPerDirectory?: number;
40
- namespace?: DatastoreFileNamespace | null;
41
32
  }): Promise<DirectoryTreeResponse>;
42
33
  upload(file: Blob, options?: {
43
34
  name?: string;
@@ -45,7 +36,6 @@ export declare class FilesNamespace {
45
36
  parentId?: string;
46
37
  searchEnabled?: boolean;
47
38
  description?: string;
48
- namespace?: DatastoreFileNamespace | null;
49
39
  }): Promise<import("../types.js").FileDetailResponse>;
50
40
  update(path: string, options?: {
51
41
  file?: Blob;
@@ -56,26 +46,18 @@ export declare class FilesNamespace {
56
46
  newPath?: string;
57
47
  searchEnabled?: boolean;
58
48
  visibility?: string | null;
59
- namespace?: DatastoreFileNamespace | null;
60
49
  }): Promise<import("../types.js").FileDetailResponse>;
61
50
  readonly folder: {
62
51
  create: (name: string, options?: {
63
52
  directoryPath?: string;
64
53
  parentId?: string;
65
54
  description?: string;
66
- namespace?: DatastoreFileNamespace | null;
67
55
  }) => Promise<import("../types.js").FileDetailResponse>;
68
56
  };
69
57
  readonly converted: {
70
- get: (path: string, options?: {
71
- namespace?: DatastoreFileNamespace | null;
72
- }) => Promise<ConvertedFileResponse>;
73
- render: (path: string, options?: {
74
- namespace?: DatastoreFileNamespace | null;
75
- }) => Promise<string>;
76
- download: (path: string, artifact?: string, options?: {
77
- namespace?: DatastoreFileNamespace | null;
78
- }) => Promise<Blob>;
58
+ get: (path: string) => Promise<ConvertedFileResponse>;
59
+ render: (path: string) => Promise<string>;
60
+ download: (path: string, artifact?: string) => Promise<Blob>;
79
61
  };
80
62
  }
81
63
  export {};
@@ -42,12 +42,10 @@ export class FilesNamespace {
42
42
  const directoryPath = options.directoryPath ?? options.parentId ?? "/";
43
43
  return this.client.request(() => FilesService.fileList(this.podId(), directoryPath, options.limit ?? 100, options.pageToken));
44
44
  }
45
- get(path, options = {}) {
46
- void options;
45
+ get(path) {
47
46
  return this.client.request(() => FilesService.fileGet(this.podId(), path));
48
47
  }
49
- delete(path, options = {}) {
50
- void options;
48
+ delete(path) {
51
49
  return this.client.request(() => FilesService.fileDelete(this.podId(), path));
52
50
  }
53
51
  search(query, options = {}) {
@@ -59,8 +57,7 @@ export class FilesNamespace {
59
57
  search_method: (options.searchMethod ?? SearchMethod.HYBRID),
60
58
  }));
61
59
  }
62
- download(path, options = {}) {
63
- void options;
60
+ download(path) {
64
61
  const encodedPath = encodeURIComponent(path);
65
62
  return this.http.requestBytes("GET", `/pods/${this.podId()}/datastore/files/download?path=${encodedPath}`);
66
63
  }
@@ -106,16 +103,9 @@ export class FilesNamespace {
106
103
  },
107
104
  };
108
105
  converted = {
109
- get: (path, options = {}) => this.client.request(() => {
110
- void options;
111
- return FilesService.fileConvertedGet(this.podId(), path);
112
- }),
113
- render: (path, options = {}) => this.client.request(() => {
114
- void options;
115
- return FilesService.fileConvertedRender(this.podId(), path);
116
- }),
117
- download: (path, artifact = "document.md", options = {}) => {
118
- void options;
106
+ get: (path) => this.client.request(() => FilesService.fileConvertedGet(this.podId(), path)),
107
+ render: (path) => this.client.request(() => FilesService.fileConvertedRender(this.podId(), path)),
108
+ download: (path, artifact = "document.md") => {
119
109
  const encodedPath = encodeURIComponent(path);
120
110
  const encodedArtifact = encodeURIComponent(artifact);
121
111
  return this.http.requestBytes("GET", `/pods/${this.podId()}/datastore/files/converted/download?path=${encodedPath}&artifact=${encodedArtifact}`);
@@ -44,13 +44,11 @@ export declare class IntegrationsNamespace {
44
44
  };
45
45
  helperAgent(goal: string, appNames: string[]): Promise<import("../types.js").IntegrationHelperAgentResponse>;
46
46
  readonly triggers: {
47
- list: (options?: {
48
- applicationId?: string;
47
+ list: (scope: OperationScope, options?: {
49
48
  search?: string;
50
49
  limit?: number;
51
- pageToken?: string;
52
50
  }) => Promise<import("../types.js").AppTriggerListResponseSchema>;
53
- get: (triggerId: string) => Promise<import("../types.js").AppTriggerResponseSchema>;
51
+ get: (scope: OperationScope, triggerName: string) => Promise<import("../types.js").AppTriggerResponseSchema>;
54
52
  };
55
53
  readonly accounts: {
56
54
  list: (organizationId: string, options?: {
@@ -41,8 +41,8 @@ export class IntegrationsNamespace {
41
41
  return this.client.request(() => AgentToolsService.agentToolIntegrationHelperAgent(body));
42
42
  }
43
43
  triggers = {
44
- list: (options = {}) => this.client.request(() => ApplicationsService.applicationTriggerList(options.applicationId, options.search, options.limit ?? 100, options.pageToken)),
45
- get: (triggerId) => this.client.request(() => ApplicationsService.applicationTriggerGet(triggerId)),
44
+ list: (scope, options = {}) => this.client.request(() => ApplicationsService.applicationTriggerList(scope.organizationId, scope.authConfigName, options.search, options.limit ?? 100)),
45
+ get: (scope, triggerName) => this.client.request(() => ApplicationsService.applicationTriggerGet(scope.organizationId, scope.authConfigName, triggerName)),
46
46
  };
47
47
  accounts = {
48
48
  list: (organizationId, options = {}) => this.client.request(() => IntegrationsService.integrationAccountList(organizationId, options.applicationId, options.limit ?? 100, options.pageToken)),
@@ -63,10 +63,10 @@ export class IntegrationsNamespace {
63
63
  }),
64
64
  };
65
65
  authConfigs = {
66
- list: (organizationId, options = {}) => this.client.request(() => IntegrationsService.listAuthConfigsOrganizationsOrganizationIdIntegrationsAuthConfigsGet(organizationId, options.limit ?? 100, options.pageToken)),
67
- create: (organizationId, payload) => this.client.request(() => IntegrationsService.createAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsPost(organizationId, payload)),
68
- get: (organizationId, authConfigName) => this.client.request(() => IntegrationsService.getAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsAuthConfigNameGet(organizationId, authConfigName)),
69
- delete: (organizationId, authConfigName) => this.client.request(() => IntegrationsService.deleteAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsAuthConfigNameDelete(organizationId, authConfigName)),
66
+ list: (organizationId, options = {}) => this.client.request(() => IntegrationsService.integrationAuthConfigList(organizationId, options.limit ?? 100, options.pageToken)),
67
+ create: (organizationId, payload) => this.client.request(() => IntegrationsService.integrationAuthConfigCreate(organizationId, payload)),
68
+ get: (organizationId, authConfigName) => this.client.request(() => IntegrationsService.integrationAuthConfigGet(organizationId, authConfigName)),
69
+ delete: (organizationId, authConfigName) => this.client.request(() => IntegrationsService.integrationAuthConfigDelete(organizationId, authConfigName)),
70
70
  };
71
71
  async enableApp(organizationId, applicationId, options = {}) {
72
72
  const configs = await this.authConfigs.list(organizationId, { limit: 100 });
@@ -1,6 +1,8 @@
1
1
  import type { GeneratedClientAdapter } from "../generated.js";
2
2
  import type { CreateSurfaceRequest } from "../openapi_client/models/CreateSurfaceRequest.js";
3
+ import type { UpdateSurfaceChannelsRequest } from "../openapi_client/models/UpdateSurfaceChannelsRequest.js";
3
4
  import type { UpdateSurfaceRequest } from "../openapi_client/models/UpdateSurfaceRequest.js";
5
+ import type { UpsertSurfaceRequest } from "../openapi_client/models/UpsertSurfaceRequest.js";
4
6
  export declare class PodSurfacesNamespace {
5
7
  private readonly client;
6
8
  constructor(client: GeneratedClientAdapter);
@@ -10,7 +12,10 @@ export declare class PodSurfacesNamespace {
10
12
  cursor?: string;
11
13
  }): Promise<import("../types.js").AgentSurfaceListResponse>;
12
14
  create(podId: string, payload: CreateSurfaceRequest): Promise<any>;
13
- get(podId: string, surfaceId: string): Promise<any>;
14
- updateConfig(podId: string, surfaceId: string, payload: UpdateSurfaceRequest): Promise<any>;
15
- toggle(podId: string, surfaceId: string, isActive: boolean): Promise<any>;
15
+ upsert(podId: string, platform: string, payload: UpsertSurfaceRequest): Promise<any>;
16
+ get(podId: string, surfaceRef: string): Promise<any>;
17
+ updateConfig(podId: string, surfaceRef: string, payload: UpdateSurfaceRequest): Promise<any>;
18
+ updateChannels(podId: string, surfaceRef: string, payload: UpdateSurfaceChannelsRequest): Promise<any>;
19
+ setupStatus(podId: string, surfaceRef: string): Promise<import("../types.js").SurfaceSetupStatusResponse>;
20
+ toggle(podId: string, surfaceRef: string, isEnabled: boolean): Promise<any>;
16
21
  }
@@ -10,13 +10,22 @@ export class PodSurfacesNamespace {
10
10
  create(podId, payload) {
11
11
  return this.client.request(() => AgentSurfacesService.agentSurfaceCreate(podId, payload));
12
12
  }
13
- get(podId, surfaceId) {
14
- return this.client.request(() => AgentSurfacesService.agentSurfaceGet(podId, surfaceId));
13
+ upsert(podId, platform, payload) {
14
+ return this.client.request(() => AgentSurfacesService.agentSurfaceUpsertByPlatform(podId, platform, payload));
15
15
  }
16
- updateConfig(podId, surfaceId, payload) {
17
- return this.client.request(() => AgentSurfacesService.agentSurfaceUpdate(podId, surfaceId, payload));
16
+ get(podId, surfaceRef) {
17
+ return this.client.request(() => AgentSurfacesService.agentSurfaceGet(podId, surfaceRef));
18
18
  }
19
- toggle(podId, surfaceId, isActive) {
20
- return this.client.request(() => AgentSurfacesService.agentSurfaceToggle(podId, surfaceId, { is_active: isActive }));
19
+ updateConfig(podId, surfaceRef, payload) {
20
+ return this.client.request(() => AgentSurfacesService.agentSurfaceUpdate(podId, surfaceRef, payload));
21
+ }
22
+ updateChannels(podId, surfaceRef, payload) {
23
+ return this.client.request(() => AgentSurfacesService.agentSurfaceUpdateChannels(podId, surfaceRef, payload));
24
+ }
25
+ setupStatus(podId, surfaceRef) {
26
+ return this.client.request(() => AgentSurfacesService.agentSurfaceSetupStatus(podId, surfaceRef));
27
+ }
28
+ toggle(podId, surfaceRef, isEnabled) {
29
+ return this.client.request(() => AgentSurfacesService.agentSurfaceToggle(podId, surfaceRef, { is_enabled: isEnabled }));
21
30
  }
22
31
  }
@@ -1,7 +1,6 @@
1
1
  import type { GeneratedClientAdapter } from "../generated.js";
2
2
  import type { HttpClient } from "../http.js";
3
3
  import type { PodCreateRequest } from "../openapi_client/models/PodCreateRequest.js";
4
- import type { PodListResponse } from "../openapi_client/models/PodListResponse.js";
5
4
  import type { PodUpdateRequest } from "../openapi_client/models/PodUpdateRequest.js";
6
5
  export declare class PodsNamespace {
7
6
  private readonly client;
@@ -12,12 +11,12 @@ export declare class PodsNamespace {
12
11
  limit?: number;
13
12
  pageToken?: string;
14
13
  cursor?: string;
15
- }): Promise<PodListResponse>;
14
+ }): Promise<import("../types.js").PodListResponse>;
16
15
  listByOrganization(organizationId: string, options?: {
17
16
  limit?: number;
18
17
  pageToken?: string;
19
18
  cursor?: string;
20
- }): Promise<PodListResponse>;
19
+ }): Promise<import("../types.js").PodListResponse>;
21
20
  get(podId: string): Promise<import("../types.js").PodResponse>;
22
21
  create(payload: PodCreateRequest): Promise<import("../types.js").PodResponse>;
23
22
  update(podId: string, payload: PodUpdateRequest): Promise<import("../types.js").PodResponse>;
@@ -13,12 +13,7 @@ export class PodsNamespace {
13
13
  pageToken: options.pageToken ?? options.cursor,
14
14
  });
15
15
  }
16
- return this.http.request("GET", "/pods", {
17
- params: {
18
- limit: options.limit ?? 100,
19
- page_token: options.pageToken ?? options.cursor,
20
- },
21
- });
16
+ throw new Error("organizationId is required for pods.list(). Use listByOrganization(organizationId).");
22
17
  }
23
18
  listByOrganization(organizationId, options = {}) {
24
19
  return this.client.request(() => PodsService.podList(organizationId, options.limit ?? 100, options.pageToken ?? options.cursor));
@@ -1,6 +1,4 @@
1
1
  import type { GeneratedClientAdapter } from "../generated.js";
2
- import type { HttpClient } from "../http.js";
3
- import type { RecordListResponse } from "../openapi_client/models/RecordListResponse.js";
4
2
  import type { ListRecordsOptions, RecordFilter, RecordSort } from "../types.js";
5
3
  export interface RecordQueryRequest {
6
4
  filters?: RecordFilter[];
@@ -8,24 +6,20 @@ export interface RecordQueryRequest {
8
6
  limit?: number;
9
7
  page_token?: string;
10
8
  offset?: number;
11
- sort_by?: string;
12
- order?: "asc" | "desc" | string;
13
9
  }
14
10
  export declare class RecordsNamespace {
15
11
  private readonly client;
16
- private readonly http;
17
12
  private readonly podId;
18
- constructor(client: GeneratedClientAdapter, http: HttpClient, podId: () => string);
19
- list(table: string, options?: ListRecordsOptions): Promise<RecordListResponse>;
20
- listWithParams(table: string, params: Record<string, string | number | boolean | undefined | null>): Promise<RecordListResponse>;
21
- create(table: string, data: Record<string, unknown>): Promise<import("../types.js").RecordResponse>;
22
- get(table: string, recordId: string): Promise<import("../types.js").RecordResponse>;
23
- update(table: string, recordId: string, data: Record<string, unknown>): Promise<import("../types.js").RecordResponse>;
24
- delete(table: string, recordId: string): Promise<import("../types.js").DatastoreMessageResponse>;
25
- query(table: string, payload: RecordQueryRequest): Promise<RecordListResponse>;
13
+ constructor(client: GeneratedClientAdapter, podId: () => string);
14
+ list(table: string, options?: ListRecordsOptions): Promise<import("../types.js").RecordListResponse>;
15
+ create(table: string, data: Record<string, unknown>): Promise<Record<string, any>>;
16
+ get(table: string, recordId: string): Promise<Record<string, any>>;
17
+ update(table: string, recordId: string, data: Record<string, unknown>): Promise<Record<string, any>>;
18
+ delete(table: string, recordId: string): Promise<void>;
19
+ query(table: string, payload: RecordQueryRequest): Promise<import("../types.js").RecordListResponse>;
26
20
  readonly bulk: {
27
- create: (table: string, records: Record<string, unknown>[]) => Promise<import("../types.js").DatastoreMessageResponse>;
28
- update: (table: string, records: Record<string, unknown>[]) => Promise<import("../types.js").DatastoreMessageResponse>;
29
- delete: (table: string, recordIds: Array<string | number>) => Promise<import("../types.js").DatastoreMessageResponse>;
21
+ create: (table: string, records: Record<string, unknown>[]) => Promise<import("../types.js").DatastoreCountResponse>;
22
+ update: (table: string, records: Record<string, unknown>[]) => Promise<import("../types.js").DatastoreCountResponse>;
23
+ delete: (table: string, recordIds: Array<string | number>) => Promise<import("../types.js").DatastoreCountResponse>;
30
24
  };
31
25
  }
@@ -1,7 +1,4 @@
1
1
  import { RecordsService } from "../openapi_client/services/RecordsService.js";
2
- function getRecordsPath(podId, table) {
3
- return `/pods/${encodeURIComponent(podId)}/datastore/tables/${encodeURIComponent(table)}/records`;
4
- }
5
2
  function serializeFilters(filters) {
6
3
  if (!filters || filters.length === 0) {
7
4
  return undefined;
@@ -16,40 +13,14 @@ function serializeSort(sort) {
16
13
  }
17
14
  export class RecordsNamespace {
18
15
  client;
19
- http;
20
16
  podId;
21
- constructor(client, http, podId) {
17
+ constructor(client, podId) {
22
18
  this.client = client;
23
- this.http = http;
24
19
  this.podId = podId;
25
20
  }
26
21
  list(table, options = {}) {
27
- const { filters, sort, limit, pageToken, offset, sortBy, order, params } = options;
28
- if (filters || sort) {
29
- return this.client.request(() => RecordsService.recordList(this.podId(), table, limit ?? 20, offset, sortBy ?? undefined, order ?? "asc", serializeFilters(filters), serializeSort(sort), pageToken));
30
- }
31
- const hasCustomParams = typeof offset === "number" ||
32
- typeof sortBy === "string" ||
33
- typeof order === "string" ||
34
- !!params;
35
- if (hasCustomParams) {
36
- return this.http.request("GET", getRecordsPath(this.podId(), table), {
37
- params: {
38
- limit: limit ?? 20,
39
- page_token: pageToken,
40
- offset,
41
- sort_by: sortBy,
42
- order,
43
- ...(params ?? {}),
44
- },
45
- });
46
- }
47
- return this.client.request(() => RecordsService.recordList(this.podId(), table, limit ?? 20, offset, sortBy ?? undefined, order ?? "asc", undefined, undefined, pageToken));
48
- }
49
- listWithParams(table, params) {
50
- return this.http.request("GET", getRecordsPath(this.podId(), table), {
51
- params,
52
- });
22
+ const { filters, sort, limit, pageToken, offset } = options;
23
+ return this.client.request(() => RecordsService.recordList(this.podId(), table, limit ?? 20, offset, serializeFilters(filters), serializeSort(sort), pageToken));
53
24
  }
54
25
  create(table, data) {
55
26
  return this.client.request(() => RecordsService.recordCreate(this.podId(), table, { data }));
@@ -64,7 +35,7 @@ export class RecordsNamespace {
64
35
  return this.client.request(() => RecordsService.recordDelete(this.podId(), table, recordId));
65
36
  }
66
37
  query(table, payload) {
67
- return this.client.request(() => 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));
38
+ return this.client.request(() => RecordsService.recordList(this.podId(), table, payload.limit ?? 20, payload.offset, serializeFilters(payload.filters), serializeSort(payload.sort), payload.page_token));
68
39
  }
69
40
  bulk = {
70
41
  create: (table, records) => {
@@ -5,7 +5,7 @@ export declare class ResourceAccessNamespace {
5
5
  private readonly client;
6
6
  private readonly podId;
7
7
  constructor(client: GeneratedClientAdapter, podId: () => string);
8
- get(resourceType: ResourceType | string, resourceId: string, podId?: string): Promise<import("../types.js").ResourceAccessResponse>;
9
- replaceGrant(resourceType: ResourceType | string, resourceId: string, granteeType: string, granteeId: string, payload: ResourceAccessGrantRequest, podId?: string): Promise<import("../types.js").ResourceAccessResponse>;
10
- deleteGrant(resourceType: ResourceType | string, resourceId: string, granteeType: string, granteeId: string, podId?: string): Promise<import("../types.js").ResourceAccessResponse>;
8
+ get(resourceType: ResourceType | string, resourceName: string, podId?: string): Promise<import("../types.js").ResourceAccessResponse>;
9
+ replaceGrant(resourceType: ResourceType | string, resourceName: string, granteeType: string, granteeId: string, payload: ResourceAccessGrantRequest, podId?: string): Promise<import("../types.js").ResourceAccessResponse>;
10
+ deleteGrant(resourceType: ResourceType | string, resourceName: string, granteeType: string, granteeId: string, podId?: string): Promise<import("../types.js").ResourceAccessResponse>;
11
11
  }
@@ -6,13 +6,13 @@ export class ResourceAccessNamespace {
6
6
  this.client = client;
7
7
  this.podId = podId;
8
8
  }
9
- get(resourceType, resourceId, podId) {
10
- return this.client.request(() => PodResourceAccessService.podResourceAccessGet(podId ?? this.podId(), resourceType, resourceId));
9
+ get(resourceType, resourceName, podId) {
10
+ return this.client.request(() => PodResourceAccessService.podResourceAccessGet(podId ?? this.podId(), resourceType, resourceName));
11
11
  }
12
- replaceGrant(resourceType, resourceId, granteeType, granteeId, payload, podId) {
13
- return this.client.request(() => PodResourceAccessService.podResourceAccessGrantReplace(podId ?? this.podId(), resourceType, resourceId, granteeType, granteeId, payload));
12
+ replaceGrant(resourceType, resourceName, granteeType, granteeId, payload, podId) {
13
+ return this.client.request(() => PodResourceAccessService.podResourceAccessGrantReplace(podId ?? this.podId(), resourceType, resourceName, granteeType, granteeId, payload));
14
14
  }
15
- deleteGrant(resourceType, resourceId, granteeType, granteeId, podId) {
16
- return this.client.request(() => PodResourceAccessService.podResourceAccessGrantDelete(podId ?? this.podId(), resourceType, resourceId, granteeType, granteeId));
15
+ deleteGrant(resourceType, resourceName, granteeType, granteeId, podId) {
16
+ return this.client.request(() => PodResourceAccessService.podResourceAccessGrantDelete(podId ?? this.podId(), resourceType, resourceName, granteeType, granteeId));
17
17
  }
18
18
  }
@@ -7,6 +7,7 @@ export interface ScheduleListOptions {
7
7
  isActive?: boolean | null;
8
8
  agentName?: string | null;
9
9
  workflowName?: string | null;
10
+ name?: string | null;
10
11
  limit?: number;
11
12
  pageToken?: string | null;
12
13
  }
@@ -7,7 +7,7 @@ export class SchedulesNamespace {
7
7
  this.podId = podId;
8
8
  }
9
9
  list(options = {}) {
10
- return this.client.request(() => SchedulesService.scheduleList(this.podId(), options.scheduleType, options.isActive, options.agentName, options.workflowName, options.limit ?? 100, options.pageToken));
10
+ return this.client.request(() => SchedulesService.scheduleList(this.podId(), options.scheduleType, options.isActive, options.agentName, options.workflowName, options.name, options.limit ?? 100, options.pageToken));
11
11
  }
12
12
  create(payload) {
13
13
  return this.client.request(() => SchedulesService.scheduleCreate(this.podId(), payload));
@@ -18,10 +18,10 @@ export declare class TablesNamespace {
18
18
  create(payload: CreateTableInput): Promise<import("../types.js").TableDetailResponse>;
19
19
  get(tableName: string): Promise<import("../types.js").TableDetailResponse>;
20
20
  update(tableName: string, payload: UpdateTableRequest): Promise<import("../types.js").TableDetailResponse>;
21
- delete(tableName: string): Promise<import("../types.js").DatastoreMessageResponse>;
21
+ delete(tableName: string): Promise<void>;
22
22
  readonly columns: {
23
23
  add: (tableName: string, request: AddColumnRequest | AddColumnRequest["column"]) => Promise<import("../types.js").TableDetailResponse>;
24
- remove: (tableName: string, columnName: string) => Promise<import("../types.js").DatastoreMessageResponse>;
24
+ remove: (tableName: string, columnName: string) => Promise<void>;
25
25
  };
26
26
  }
27
27
  export {};
@@ -1,9 +1,9 @@
1
1
  import type { GeneratedClientAdapter } from "../generated.js";
2
- import { type HttpClient } from "../http.js";
2
+ import type { HttpClient } from "../http.js";
3
3
  import type { WorkflowCreateRequest } from "../openapi_client/models/WorkflowCreateRequest.js";
4
4
  import type { WorkflowGraphUpdateRequest } from "../openapi_client/models/WorkflowGraphUpdateRequest.js";
5
+ import type { WorkflowRunFormSubmitRequest } from "../openapi_client/models/WorkflowRunFormSubmitRequest.js";
5
6
  import type { WorkflowUpdateRequest } from "../openapi_client/models/WorkflowUpdateRequest.js";
6
- import type { WorkflowRunInputs } from "../types.js";
7
7
  export declare class WorkflowsNamespace {
8
8
  private readonly client;
9
9
  private readonly http;
@@ -21,9 +21,13 @@ export declare class WorkflowsNamespace {
21
21
  readonly graph: {
22
22
  update: (workflowName: string, graph: WorkflowGraphUpdateRequest) => Promise<import("../types.js").FlowDetailResponse>;
23
23
  };
24
- private postRunAction;
25
24
  readonly runs: {
26
- start: (workflowName: string, inputs?: WorkflowRunInputs) => Promise<import("../types.js").FlowRunEntity>;
25
+ /**
26
+ * Create a run. Runs take no inputs: when the workflow starts with a
27
+ * form, the returned run is WAITING with `active_wait` describing the
28
+ * form to render and submit via `runs.submitForm`.
29
+ */
30
+ create: (workflowName: string) => Promise<import("../types.js").WorkflowRunResponse>;
27
31
  list: (workflowName: string, options?: {
28
32
  limit?: number;
29
33
  pageToken?: string;
@@ -32,10 +36,10 @@ export declare class WorkflowsNamespace {
32
36
  limit?: number;
33
37
  pageToken?: string;
34
38
  }) => Promise<import("../types.js").WorkflowRunWaitAssignmentListResponse>;
35
- get: (runId: string, podId?: string) => Promise<import("../types.js").FlowRunEntity>;
36
- resume: (runId: string, inputs?: WorkflowRunInputs, podId?: string) => Promise<import("../types.js").FlowRunEntity>;
39
+ get: (runId: string, podId?: string) => Promise<import("../types.js").WorkflowRunResponse>;
40
+ /** Submit the form a run is waiting on. node_id must match active_wait.node_id. */
41
+ submitForm: (runId: string, payload: WorkflowRunFormSubmitRequest, podId?: string) => Promise<import("../types.js").WorkflowRunResponse>;
37
42
  visualize: (runId: string, podId?: string) => Promise<string>;
38
- cancel: (runId: string, podId?: string) => Promise<Record<string, unknown>>;
39
- retry: (runId: string, podId?: string) => Promise<Record<string, unknown>>;
43
+ cancel: (runId: string, podId?: string) => Promise<import("../types.js").WorkflowRunResponse>;
40
44
  };
41
45
  }
@@ -1,4 +1,3 @@
1
- import { ApiError } from "../http.js";
2
1
  import { WorkflowsService } from "../openapi_client/services/WorkflowsService.js";
3
2
  export class WorkflowsNamespace {
4
3
  client;
@@ -30,27 +29,19 @@ export class WorkflowsNamespace {
30
29
  graph = {
31
30
  update: (workflowName, graph) => this.client.request(() => WorkflowsService.workflowGraphUpdate(this.podId(), workflowName, graph)),
32
31
  };
33
- async postRunAction(runId, action, podId) {
34
- const encodedPodId = encodeURIComponent(podId);
35
- const encodedRunId = encodeURIComponent(runId);
36
- try {
37
- return await this.http.request("POST", `/pods/${encodedPodId}/workflow-runs/${encodedRunId}/${action}`, { body: {} });
38
- }
39
- catch (error) {
40
- if (error instanceof ApiError && (error.statusCode === 404 || error.statusCode === 405)) {
41
- return this.http.request("POST", `/pods/${encodedPodId}/flow-runs/${encodedRunId}/${action}`, { body: {} });
42
- }
43
- throw error;
44
- }
45
- }
46
32
  runs = {
47
- start: (workflowName, inputs = {}) => this.client.request(() => WorkflowsService.workflowStart(this.podId(), workflowName, inputs)),
33
+ /**
34
+ * Create a run. Runs take no inputs: when the workflow starts with a
35
+ * form, the returned run is WAITING with `active_wait` describing the
36
+ * form to render and submit via `runs.submitForm`.
37
+ */
38
+ create: (workflowName) => this.client.request(() => WorkflowsService.workflowRunCreate(this.podId(), workflowName)),
48
39
  list: (workflowName, options = {}) => this.client.request(() => WorkflowsService.workflowRunList(this.podId(), workflowName, options.limit ?? 100, options.pageToken)),
49
40
  waitingAssignedToMe: (options = {}) => this.client.request(() => WorkflowsService.workflowRunWaitingAssignedToMe(this.podId(), options.limit ?? 100, options.pageToken)),
50
41
  get: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunGet(podId, runId)),
51
- resume: (runId, inputs = {}, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunResume(podId, runId, inputs)),
42
+ /** Submit the form a run is waiting on. node_id must match active_wait.node_id. */
43
+ submitForm: (runId, payload, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunFormSubmit(podId, runId, payload)),
52
44
  visualize: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunVisualize(podId, runId)),
53
- cancel: (runId, podId = this.podId()) => this.postRunAction(runId, "cancel", podId),
54
- retry: (runId, podId = this.podId()) => this.postRunAction(runId, "retry", podId),
45
+ cancel: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService.workflowRunCancel(podId, runId)),
55
46
  };
56
47
  }