lemma-sdk 0.2.44 → 0.2.45

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 (273) hide show
  1. package/README.md +1 -1
  2. package/dist/assistant-events.d.ts +1 -0
  3. package/dist/assistant-events.js +25 -0
  4. package/dist/browser/lemma-client.js +264 -152
  5. package/dist/config.d.ts +2 -2
  6. package/dist/config.js +2 -2
  7. package/dist/hey_client/client/client.gen.d.ts +2 -0
  8. package/dist/hey_client/client/client.gen.js +216 -0
  9. package/dist/hey_client/client/index.d.ts +10 -0
  10. package/dist/hey_client/client/index.js +6 -0
  11. package/dist/hey_client/client/types.gen.d.ts +120 -0
  12. package/dist/hey_client/client/types.gen.js +2 -0
  13. package/dist/hey_client/client/utils.gen.d.ts +37 -0
  14. package/dist/hey_client/client/utils.gen.js +228 -0
  15. package/dist/hey_client/client.gen.d.ts +12 -0
  16. package/dist/hey_client/client.gen.js +3 -0
  17. package/dist/hey_client/core/auth.gen.d.ts +25 -0
  18. package/dist/hey_client/core/auth.gen.js +14 -0
  19. package/dist/hey_client/core/bodySerializer.gen.d.ts +25 -0
  20. package/dist/hey_client/core/bodySerializer.gen.js +57 -0
  21. package/dist/hey_client/core/params.gen.d.ts +43 -0
  22. package/dist/hey_client/core/params.gen.js +100 -0
  23. package/dist/hey_client/core/pathSerializer.gen.d.ts +33 -0
  24. package/dist/hey_client/core/pathSerializer.gen.js +106 -0
  25. package/dist/hey_client/core/queryKeySerializer.gen.d.ts +18 -0
  26. package/dist/hey_client/core/queryKeySerializer.gen.js +92 -0
  27. package/dist/hey_client/core/serverSentEvents.gen.d.ts +71 -0
  28. package/dist/hey_client/core/serverSentEvents.gen.js +132 -0
  29. package/dist/hey_client/core/types.gen.d.ts +83 -0
  30. package/dist/hey_client/core/types.gen.js +2 -0
  31. package/dist/hey_client/core/utils.gen.d.ts +19 -0
  32. package/dist/hey_client/core/utils.gen.js +87 -0
  33. package/dist/hey_client/index.d.ts +2 -0
  34. package/dist/hey_client/index.js +2 -0
  35. package/dist/hey_client/sdk.gen.d.ts +1005 -0
  36. package/dist/hey_client/sdk.gen.js +1438 -0
  37. package/dist/hey_client/types.gen.d.ts +13004 -0
  38. package/dist/hey_client/types.gen.js +2 -0
  39. package/dist/namespaces/files.d.ts +6 -24
  40. package/dist/namespaces/files.js +6 -16
  41. package/dist/namespaces/integrations.js +4 -4
  42. package/dist/namespaces/pod-surfaces.d.ts +8 -3
  43. package/dist/namespaces/pod-surfaces.js +15 -6
  44. package/dist/namespaces/pods.d.ts +2 -3
  45. package/dist/namespaces/pods.js +1 -6
  46. package/dist/namespaces/records.d.ts +7 -7
  47. package/dist/namespaces/resource-access.d.ts +3 -3
  48. package/dist/namespaces/resource-access.js +6 -6
  49. package/dist/namespaces/schedules.d.ts +1 -0
  50. package/dist/namespaces/schedules.js +1 -1
  51. package/dist/namespaces/tables.d.ts +2 -2
  52. package/dist/namespaces/workflows.d.ts +12 -8
  53. package/dist/namespaces/workflows.js +9 -18
  54. package/dist/openapi_client/index.d.ts +20 -37
  55. package/dist/openapi_client/index.js +3 -11
  56. package/dist/openapi_client/models/AgentHarnessInfo.d.ts +2 -0
  57. package/dist/openapi_client/models/AgentNode.d.ts +1 -1
  58. package/dist/openapi_client/models/AgentNodeConfig.d.ts +1 -1
  59. package/dist/openapi_client/models/AgentResourcePermissionRequest.d.ts +1 -1
  60. package/dist/openapi_client/models/AgentResourcePermissionResponse.d.ts +1 -1
  61. package/dist/openapi_client/models/AgentRuntimeProfileResponse.d.ts +6 -0
  62. package/dist/openapi_client/models/AgentSurfaceResponse.d.ts +6 -17
  63. package/dist/openapi_client/models/AgentSurfaceStatus.d.ts +3 -1
  64. package/dist/openapi_client/models/AgentSurfaceStatus.js +2 -0
  65. package/dist/openapi_client/models/ApplicationSkillResponse.d.ts +6 -0
  66. package/dist/openapi_client/models/ConnectedAccountSummary.d.ts +7 -0
  67. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +0 -1
  68. package/dist/openapi_client/models/CreateScheduleRequest.d.ts +4 -0
  69. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +3 -10
  70. package/dist/openapi_client/models/CreateUserDaemonRuntimeProfileRequest.d.ts +2 -0
  71. package/dist/openapi_client/models/DataStoreFlowStartInput.d.ts +1 -1
  72. package/dist/openapi_client/models/DataStoreFlowStartOutput.d.ts +1 -1
  73. package/dist/openapi_client/models/DatastoreCountResponse.d.ts +6 -0
  74. package/dist/openapi_client/models/DecisionNode.d.ts +2 -1
  75. package/dist/openapi_client/models/DecisionRule.d.ts +3 -0
  76. package/dist/openapi_client/models/EndNode.d.ts +1 -1
  77. package/dist/openapi_client/models/ExpressionInputBinding.d.ts +6 -2
  78. package/dist/openapi_client/models/FileListResponse.d.ts +1 -0
  79. package/dist/openapi_client/models/FileSearchResponse.d.ts +2 -2
  80. package/dist/openapi_client/models/FlowRunStatus.d.ts +4 -1
  81. package/dist/openapi_client/models/FlowRunStatus.js +4 -1
  82. package/dist/openapi_client/models/FormNode.d.ts +2 -1
  83. package/dist/openapi_client/models/FormNodeConfig.d.ts +1 -1
  84. package/dist/openapi_client/models/FunctionNode.d.ts +2 -1
  85. package/dist/openapi_client/models/FunctionResourcePermissionRequest.d.ts +1 -1
  86. package/dist/openapi_client/models/FunctionResourcePermissionResponse.d.ts +1 -1
  87. package/dist/openapi_client/models/InstalledAppSummary.d.ts +7 -0
  88. package/dist/openapi_client/models/IntegrationStatusResponse.d.ts +6 -0
  89. package/dist/openapi_client/models/LoopNode.d.ts +2 -1
  90. package/dist/openapi_client/models/LoopNodeConfig.d.ts +3 -3
  91. package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -3
  92. package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +0 -2
  93. package/dist/openapi_client/models/PodMemberResponse.d.ts +0 -2
  94. package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +1 -3
  95. package/dist/openapi_client/models/PodRoleResourcePermissionRequest.d.ts +1 -1
  96. package/dist/openapi_client/models/PodRoleResourcePermissionResponse.d.ts +1 -1
  97. package/dist/openapi_client/models/ResourceAccessGrantResponse.d.ts +1 -1
  98. package/dist/openapi_client/models/ResourceAccessResponse.d.ts +1 -1
  99. package/dist/openapi_client/models/RuntimeProfileScope.d.ts +2 -1
  100. package/dist/openapi_client/models/RuntimeProfileScope.js +1 -0
  101. package/dist/openapi_client/models/ScheduleDetailResponse.d.ts +6 -0
  102. package/dist/openapi_client/models/ScheduleFireStatus.d.ts +8 -0
  103. package/dist/openapi_client/models/ScheduleFireStatus.js +13 -0
  104. package/dist/openapi_client/models/StepRecordResponse.d.ts +10 -0
  105. package/dist/openapi_client/models/StepStatus.d.ts +7 -0
  106. package/dist/openapi_client/models/StepStatus.js +12 -0
  107. package/dist/openapi_client/models/SurfaceBehaviorConfigInput.d.ts +4 -0
  108. package/dist/openapi_client/models/SurfaceChannelRouteInput.d.ts +6 -0
  109. package/dist/openapi_client/models/SurfaceChannelRouteResponse.d.ts +6 -0
  110. package/dist/openapi_client/models/SurfaceConfigResponse.d.ts +10 -0
  111. package/dist/openapi_client/models/SurfaceCredentialMode.d.ts +4 -0
  112. package/dist/openapi_client/models/SurfaceCredentialMode.js +9 -0
  113. package/dist/openapi_client/models/SurfaceIdentityConfigInput.d.ts +4 -0
  114. package/dist/openapi_client/models/SurfaceIdentityConfigResponse.d.ts +4 -0
  115. package/dist/openapi_client/models/SurfaceSetupStatusResponse.d.ts +10 -0
  116. package/dist/openapi_client/models/TableListResponse.d.ts +2 -0
  117. package/dist/openapi_client/models/ToggleSurfaceRequest.d.ts +1 -1
  118. package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
  119. package/dist/openapi_client/models/UpdateSurfaceChannelsRequest.d.ts +4 -0
  120. package/dist/openapi_client/models/UpdateSurfaceRequest.d.ts +4 -11
  121. package/dist/openapi_client/models/UpsertSurfaceRequest.d.ts +9 -0
  122. package/dist/openapi_client/models/UserProfileRequest.d.ts +1 -0
  123. package/dist/openapi_client/models/UserResponse.d.ts +1 -0
  124. package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
  125. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +16 -0
  126. package/dist/openapi_client/models/WorkflowRunFormSubmitRequest.d.ts +13 -0
  127. package/dist/openapi_client/models/WorkflowRunResponse.d.ts +28 -0
  128. package/dist/openapi_client/models/WorkflowRunSummaryResponse.d.ts +2 -3
  129. package/dist/openapi_client/models/WorkflowRunWaitAssignment.d.ts +4 -4
  130. package/dist/openapi_client/models/{WorkflowRunWaitEntity.d.ts → WorkflowRunWaitResponse.d.ts} +4 -8
  131. package/dist/openapi_client/models/WorkflowRunWaitType.d.ts +1 -2
  132. package/dist/openapi_client/models/WorkflowRunWaitType.js +0 -1
  133. package/dist/openapi_client/models/WorkspaceAppAccessRequest.d.ts +0 -3
  134. package/dist/openapi_client/models/WorkspaceMeSandbox.d.ts +1 -4
  135. package/dist/openapi_client/services/AgentSurfacesService.d.ts +39 -10
  136. package/dist/openapi_client/services/AgentSurfacesService.js +86 -20
  137. package/dist/openapi_client/services/ApplicationsService.d.ts +10 -0
  138. package/dist/openapi_client/services/ApplicationsService.js +23 -0
  139. package/dist/openapi_client/services/FilesService.d.ts +2 -3
  140. package/dist/openapi_client/services/FilesService.js +1 -1
  141. package/dist/openapi_client/services/FunctionsService.d.ts +1 -1
  142. package/dist/openapi_client/services/FunctionsService.js +1 -1
  143. package/dist/openapi_client/services/IntegrationsService.d.ts +12 -4
  144. package/dist/openapi_client/services/IntegrationsService.js +22 -4
  145. package/dist/openapi_client/services/PodResourceAccessService.d.ts +6 -6
  146. package/dist/openapi_client/services/PodResourceAccessService.js +12 -12
  147. package/dist/openapi_client/services/RecordsService.d.ts +21 -22
  148. package/dist/openapi_client/services/RecordsService.js +13 -13
  149. package/dist/openapi_client/services/SchedulesService.d.ts +2 -1
  150. package/dist/openapi_client/services/SchedulesService.js +3 -1
  151. package/dist/openapi_client/services/TablesService.d.ts +4 -5
  152. package/dist/openapi_client/services/TablesService.js +2 -2
  153. package/dist/openapi_client/services/WorkflowsService.d.ts +35 -26
  154. package/dist/openapi_client/services/WorkflowsService.js +57 -39
  155. package/dist/react/useAddPodMember.js +1 -1
  156. package/dist/react/useAssistantController.d.ts +1 -0
  157. package/dist/react/useAssistantController.js +5 -1
  158. package/dist/react/useAssistantSession.d.ts +1 -0
  159. package/dist/react/useAssistantSession.js +41 -0
  160. package/dist/react/useBulkRecords.d.ts +5 -5
  161. package/dist/react/useBulkRecords.js +5 -5
  162. package/dist/react/useCreateFolder.d.ts +2 -4
  163. package/dist/react/useCreateFolder.js +2 -3
  164. package/dist/react/useCreateRecord.d.ts +2 -2
  165. package/dist/react/useCreateRecord.js +1 -1
  166. package/dist/react/useDeleteFile.d.ts +1 -4
  167. package/dist/react/useDeleteFile.js +3 -3
  168. package/dist/react/useDeleteRecord.d.ts +1 -2
  169. package/dist/react/useDeleteRecord.js +3 -3
  170. package/dist/react/useFile.d.ts +2 -4
  171. package/dist/react/useFile.js +3 -3
  172. package/dist/react/useFilePreview.d.ts +1 -4
  173. package/dist/react/useFilePreview.js +4 -5
  174. package/dist/react/useFileSearch.d.ts +5 -1
  175. package/dist/react/useFileSearch.js +6 -4
  176. package/dist/react/useFileTree.d.ts +2 -4
  177. package/dist/react/useFileTree.js +2 -3
  178. package/dist/react/useFiles.d.ts +2 -4
  179. package/dist/react/useFiles.js +3 -5
  180. package/dist/react/useFlowSession.d.ts +3 -1
  181. package/dist/react/useFlowSession.js +24 -17
  182. package/dist/react/useGlobalSearch.js +1 -1
  183. package/dist/react/useRecord.d.ts +2 -2
  184. package/dist/react/useRecord.js +1 -1
  185. package/dist/react/useRecordForm.d.ts +2 -2
  186. package/dist/react/useRecordForm.js +2 -2
  187. package/dist/react/useReverseRelatedRecords.js +1 -1
  188. package/dist/react/useUpdateFile.d.ts +2 -4
  189. package/dist/react/useUpdateFile.js +2 -3
  190. package/dist/react/useUpdateRecord.d.ts +2 -2
  191. package/dist/react/useUpdateRecord.js +1 -1
  192. package/dist/react/useUploadFile.d.ts +2 -4
  193. package/dist/react/useUploadFile.js +2 -3
  194. package/dist/react/useWorkflowResume.d.ts +1 -0
  195. package/dist/react/useWorkflowResume.js +10 -1
  196. package/dist/react/useWorkflowRun.js +1 -3
  197. package/dist/react/useWorkflowStart.js +11 -26
  198. package/dist/react/utils.js +2 -0
  199. package/dist/types.d.ts +3 -3
  200. package/package.json +7 -2
  201. package/dist/openapi_client/models/BillingHistoryResponse.d.ts +0 -8
  202. package/dist/openapi_client/models/BillingInterval.d.ts +0 -7
  203. package/dist/openapi_client/models/BillingInterval.js +0 -12
  204. package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +0 -27
  205. package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +0 -10
  206. package/dist/openapi_client/models/BillingInvoiceStatus.js +0 -15
  207. package/dist/openapi_client/models/CancelSubscriptionResponse.d.ts +0 -10
  208. package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +0 -7
  209. package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +0 -8
  210. package/dist/openapi_client/models/DatastoreMessageResponse.d.ts +0 -6
  211. package/dist/openapi_client/models/DeskServingConfigResponse.d.ts +0 -11
  212. package/dist/openapi_client/models/DeskServingConfigResponse.js +0 -8
  213. package/dist/openapi_client/models/FlowRunEntity.d.ts +0 -36
  214. package/dist/openapi_client/models/GmailSurfaceConfig.d.ts +0 -7
  215. package/dist/openapi_client/models/OutlookSurfaceConfig.d.ts +0 -7
  216. package/dist/openapi_client/models/PlanListResponse.d.ts +0 -8
  217. package/dist/openapi_client/models/PlanResponse.d.ts +0 -18
  218. package/dist/openapi_client/models/PlanType.d.ts +0 -7
  219. package/dist/openapi_client/models/PlanType.js +0 -12
  220. package/dist/openapi_client/models/RecordResponse.d.ts +0 -9
  221. package/dist/openapi_client/models/SeatInfoResponse.d.ts +0 -10
  222. package/dist/openapi_client/models/SlackSurfaceConfig.d.ts +0 -7
  223. package/dist/openapi_client/models/StackFrame.d.ts +0 -11
  224. package/dist/openapi_client/models/StartSubscriptionRequest.d.ts +0 -14
  225. package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +0 -9
  226. package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +0 -6
  227. package/dist/openapi_client/models/StartTeamBillingRequest.js +0 -1
  228. package/dist/openapi_client/models/StepExecution.d.ts +0 -13
  229. package/dist/openapi_client/models/StepExecution.js +0 -1
  230. package/dist/openapi_client/models/SubscriptionResponse.d.ts +0 -22
  231. package/dist/openapi_client/models/SubscriptionResponse.js +0 -1
  232. package/dist/openapi_client/models/SubscriptionStatus.d.ts +0 -10
  233. package/dist/openapi_client/models/SubscriptionStatus.js +0 -15
  234. package/dist/openapi_client/models/SubscriptionStatusResponse.d.ts +0 -10
  235. package/dist/openapi_client/models/SubscriptionStatusResponse.js +0 -1
  236. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +0 -22
  237. package/dist/openapi_client/models/SubscriptionWithPlanResponse.js +0 -1
  238. package/dist/openapi_client/models/SurfaceEventMode.d.ts +0 -6
  239. package/dist/openapi_client/models/SurfaceEventMode.js +0 -11
  240. package/dist/openapi_client/models/SurfaceMode.d.ts +0 -5
  241. package/dist/openapi_client/models/SurfaceMode.js +0 -10
  242. package/dist/openapi_client/models/SurfaceRoutingScope.d.ts +0 -4
  243. package/dist/openapi_client/models/SurfaceRoutingScope.js +0 -9
  244. package/dist/openapi_client/models/TeamsSurfaceConfig.d.ts +0 -7
  245. package/dist/openapi_client/models/TeamsSurfaceConfig.js +0 -1
  246. package/dist/openapi_client/models/TelegramSurfaceConfig.d.ts +0 -7
  247. package/dist/openapi_client/models/TelegramSurfaceConfig.js +0 -1
  248. package/dist/openapi_client/models/WhatsAppSurfaceConfig.d.ts +0 -7
  249. package/dist/openapi_client/models/WhatsAppSurfaceConfig.js +0 -1
  250. package/dist/openapi_client/models/WorkflowRunWaitEntity.js +0 -1
  251. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +0 -117
  252. package/dist/openapi_client/services/BillingSubscriptionsService.js +0 -230
  253. package/dist/openapi_client/services/BillingWebhooksService.d.ts +0 -12
  254. package/dist/openapi_client/services/BillingWebhooksService.js +0 -25
  255. package/dist/openapi_client/services/PublicDesksService.d.ts +0 -10
  256. package/dist/openapi_client/services/PublicDesksService.js +0 -15
  257. /package/dist/openapi_client/models/{BillingHistoryResponse.js → ApplicationSkillResponse.js} +0 -0
  258. /package/dist/openapi_client/models/{BillingInvoiceResponse.js → ConnectedAccountSummary.js} +0 -0
  259. /package/dist/openapi_client/models/{CancelSubscriptionResponse.js → DatastoreCountResponse.js} +0 -0
  260. /package/dist/openapi_client/models/{CreateInvoicePaymentUrlRequest.js → InstalledAppSummary.js} +0 -0
  261. /package/dist/openapi_client/models/{CreateInvoicePaymentUrlResponse.js → IntegrationStatusResponse.js} +0 -0
  262. /package/dist/openapi_client/models/{DatastoreMessageResponse.js → StepRecordResponse.js} +0 -0
  263. /package/dist/openapi_client/models/{FlowRunEntity.js → SurfaceChannelRouteInput.js} +0 -0
  264. /package/dist/openapi_client/models/{GmailSurfaceConfig.js → SurfaceChannelRouteResponse.js} +0 -0
  265. /package/dist/openapi_client/models/{OutlookSurfaceConfig.js → SurfaceConfigResponse.js} +0 -0
  266. /package/dist/openapi_client/models/{PlanListResponse.js → SurfaceIdentityConfigInput.js} +0 -0
  267. /package/dist/openapi_client/models/{PlanResponse.js → SurfaceIdentityConfigResponse.js} +0 -0
  268. /package/dist/openapi_client/models/{RecordResponse.js → SurfaceSetupStatusResponse.js} +0 -0
  269. /package/dist/openapi_client/models/{SeatInfoResponse.js → UpdateSurfaceChannelsRequest.js} +0 -0
  270. /package/dist/openapi_client/models/{SlackSurfaceConfig.js → UpsertSurfaceRequest.js} +0 -0
  271. /package/dist/openapi_client/models/{StackFrame.js → WorkflowRunFormSubmitRequest.js} +0 -0
  272. /package/dist/openapi_client/models/{StartSubscriptionRequest.js → WorkflowRunResponse.js} +0 -0
  273. /package/dist/openapi_client/models/{StartSubscriptionResponse.js → WorkflowRunWaitResponse.js} +0 -0
@@ -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
@@ -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 = {}) {
@@ -3287,6 +3277,29 @@ class ApplicationsService {
3287
3277
  },
3288
3278
  });
3289
3279
  }
3280
+ /**
3281
+ * Get Application Skill
3282
+ * 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.
3283
+ * @param applicationId
3284
+ * @param provider Provider override: lemma or composio
3285
+ * @returns ApplicationSkillResponse Successful Response
3286
+ * @throws ApiError
3287
+ */
3288
+ static applicationSkillGet(applicationId, provider) {
3289
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3290
+ method: 'GET',
3291
+ url: '/integrations/applications/{application_id}/skill',
3292
+ path: {
3293
+ 'application_id': applicationId,
3294
+ },
3295
+ query: {
3296
+ 'provider': provider,
3297
+ },
3298
+ errors: {
3299
+ 422: `Validation Error`,
3300
+ },
3301
+ });
3302
+ }
3290
3303
  /**
3291
3304
  * Discover Application Operations
3292
3305
  * @param organizationId
@@ -3535,7 +3548,7 @@ class IntegrationsService {
3535
3548
  * @returns AuthConfigListResponseSchema Successful Response
3536
3549
  * @throws ApiError
3537
3550
  */
3538
- static listAuthConfigsOrganizationsOrganizationIdIntegrationsAuthConfigsGet(organizationId, limit = 100, pageToken) {
3551
+ static integrationAuthConfigList(organizationId, limit = 100, pageToken) {
3539
3552
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3540
3553
  method: 'GET',
3541
3554
  url: '/organizations/{organization_id}/integrations/auth-configs',
@@ -3558,7 +3571,7 @@ class IntegrationsService {
3558
3571
  * @returns AuthConfigResponseSchema Successful Response
3559
3572
  * @throws ApiError
3560
3573
  */
3561
- static createAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsPost(organizationId, requestBody) {
3574
+ static integrationAuthConfigCreate(organizationId, requestBody) {
3562
3575
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3563
3576
  method: 'POST',
3564
3577
  url: '/organizations/{organization_id}/integrations/auth-configs',
@@ -3579,7 +3592,7 @@ class IntegrationsService {
3579
3592
  * @returns boolean Successful Response
3580
3593
  * @throws ApiError
3581
3594
  */
3582
- static deleteAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsAuthConfigNameDelete(organizationId, authConfigName) {
3595
+ static integrationAuthConfigDelete(organizationId, authConfigName) {
3583
3596
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3584
3597
  method: 'DELETE',
3585
3598
  url: '/organizations/{organization_id}/integrations/auth-configs/{auth_config_name}',
@@ -3599,7 +3612,7 @@ class IntegrationsService {
3599
3612
  * @returns AuthConfigResponseSchema Successful Response
3600
3613
  * @throws ApiError
3601
3614
  */
3602
- static getAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsAuthConfigNameGet(organizationId, authConfigName) {
3615
+ static integrationAuthConfigGet(organizationId, authConfigName) {
3603
3616
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3604
3617
  method: 'GET',
3605
3618
  url: '/organizations/{organization_id}/integrations/auth-configs/{auth_config_name}',
@@ -3634,6 +3647,24 @@ class IntegrationsService {
3634
3647
  },
3635
3648
  });
3636
3649
  }
3650
+ /**
3651
+ * Get Integration Status
3652
+ * @param organizationId
3653
+ * @returns IntegrationStatusResponse Successful Response
3654
+ * @throws ApiError
3655
+ */
3656
+ static integrationStatusGet(organizationId) {
3657
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3658
+ method: 'GET',
3659
+ url: '/organizations/{organization_id}/integrations/status',
3660
+ path: {
3661
+ 'organization_id': organizationId,
3662
+ },
3663
+ errors: {
3664
+ 422: `Validation Error`,
3665
+ },
3666
+ });
3667
+ }
3637
3668
  }
3638
3669
  exports.IntegrationsService = IntegrationsService;
3639
3670
 
@@ -4502,12 +4533,7 @@ class PodsNamespace {
4502
4533
  pageToken: options.pageToken ?? options.cursor,
4503
4534
  });
4504
4535
  }
4505
- return this.http.request("GET", "/pods", {
4506
- params: {
4507
- limit: options.limit ?? 100,
4508
- page_token: options.pageToken ?? options.cursor,
4509
- },
4510
- });
4536
+ throw new Error("organizationId is required for pods.list(). Use listByOrganization(organizationId).");
4511
4537
  }
4512
4538
  listByOrganization(organizationId, options = {}) {
4513
4539
  return this.client.request(() => PodsService_js_1.PodsService.podList(organizationId, options.limit ?? 100, options.pageToken ?? options.cursor));
@@ -4845,14 +4871,23 @@ class PodSurfacesNamespace {
4845
4871
  create(podId, payload) {
4846
4872
  return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceCreate(podId, payload));
4847
4873
  }
4848
- get(podId, surfaceId) {
4849
- return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceGet(podId, surfaceId));
4874
+ upsert(podId, platform, payload) {
4875
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpsertByPlatform(podId, platform, payload));
4876
+ }
4877
+ get(podId, surfaceRef) {
4878
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceGet(podId, surfaceRef));
4850
4879
  }
4851
- updateConfig(podId, surfaceId, payload) {
4852
- return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpdate(podId, surfaceId, payload));
4880
+ updateConfig(podId, surfaceRef, payload) {
4881
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpdate(podId, surfaceRef, payload));
4853
4882
  }
4854
- toggle(podId, surfaceId, isActive) {
4855
- return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceToggle(podId, surfaceId, { is_active: isActive }));
4883
+ updateChannels(podId, surfaceRef, payload) {
4884
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceUpdateChannels(podId, surfaceRef, payload));
4885
+ }
4886
+ setupStatus(podId, surfaceRef) {
4887
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceSetupStatus(podId, surfaceRef));
4888
+ }
4889
+ toggle(podId, surfaceRef, isEnabled) {
4890
+ return this.client.request(() => AgentSurfacesService_js_1.AgentSurfacesService.agentSurfaceToggle(podId, surfaceRef, { is_enabled: isEnabled }));
4856
4891
  }
4857
4892
  }
4858
4893
  exports.PodSurfacesNamespace = PodSurfacesNamespace;
@@ -4930,20 +4965,43 @@ class AgentSurfacesService {
4930
4965
  },
4931
4966
  });
4932
4967
  }
4968
+ /**
4969
+ * Upsert Surface By Platform
4970
+ * @param podId
4971
+ * @param platform
4972
+ * @param requestBody
4973
+ * @returns any Successful Response
4974
+ * @throws ApiError
4975
+ */
4976
+ static agentSurfaceUpsertByPlatform(podId, platform, requestBody) {
4977
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4978
+ method: 'PUT',
4979
+ url: '/pods/{pod_id}/surfaces/{platform}',
4980
+ path: {
4981
+ 'pod_id': podId,
4982
+ 'platform': platform,
4983
+ },
4984
+ body: requestBody,
4985
+ mediaType: 'application/json',
4986
+ errors: {
4987
+ 422: `Validation Error`,
4988
+ },
4989
+ });
4990
+ }
4933
4991
  /**
4934
4992
  * Delete Surface
4935
4993
  * @param podId
4936
- * @param surfaceId
4994
+ * @param surfaceRef
4937
4995
  * @returns void
4938
4996
  * @throws ApiError
4939
4997
  */
4940
- static agentSurfaceDelete(podId, surfaceId) {
4998
+ static agentSurfaceDelete(podId, surfaceRef) {
4941
4999
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4942
5000
  method: 'DELETE',
4943
- url: '/pods/{pod_id}/surfaces/{surface_id}',
5001
+ url: '/pods/{pod_id}/surfaces/{surface_ref}',
4944
5002
  path: {
4945
5003
  'pod_id': podId,
4946
- 'surface_id': surfaceId,
5004
+ 'surface_ref': surfaceRef,
4947
5005
  },
4948
5006
  errors: {
4949
5007
  422: `Validation Error`,
@@ -4953,17 +5011,17 @@ class AgentSurfacesService {
4953
5011
  /**
4954
5012
  * Get Surface
4955
5013
  * @param podId
4956
- * @param surfaceId
5014
+ * @param surfaceRef
4957
5015
  * @returns any Successful Response
4958
5016
  * @throws ApiError
4959
5017
  */
4960
- static agentSurfaceGet(podId, surfaceId) {
5018
+ static agentSurfaceGet(podId, surfaceRef) {
4961
5019
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4962
5020
  method: 'GET',
4963
- url: '/pods/{pod_id}/surfaces/{surface_id}',
5021
+ url: '/pods/{pod_id}/surfaces/{surface_ref}',
4964
5022
  path: {
4965
5023
  'pod_id': podId,
4966
- 'surface_id': surfaceId,
5024
+ 'surface_ref': surfaceRef,
4967
5025
  },
4968
5026
  errors: {
4969
5027
  422: `Validation Error`,
@@ -4973,18 +5031,18 @@ class AgentSurfacesService {
4973
5031
  /**
4974
5032
  * Update Surface
4975
5033
  * @param podId
4976
- * @param surfaceId
5034
+ * @param surfaceRef
4977
5035
  * @param requestBody
4978
5036
  * @returns any Successful Response
4979
5037
  * @throws ApiError
4980
5038
  */
4981
- static agentSurfaceUpdate(podId, surfaceId, requestBody) {
5039
+ static agentSurfaceUpdate(podId, surfaceRef, requestBody) {
4982
5040
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4983
5041
  method: 'PATCH',
4984
- url: '/pods/{pod_id}/surfaces/{surface_id}',
5042
+ url: '/pods/{pod_id}/surfaces/{surface_ref}',
4985
5043
  path: {
4986
5044
  'pod_id': podId,
4987
- 'surface_id': surfaceId,
5045
+ 'surface_ref': surfaceRef,
4988
5046
  },
4989
5047
  body: requestBody,
4990
5048
  mediaType: 'application/json',
@@ -4996,17 +5054,60 @@ class AgentSurfacesService {
4996
5054
  /**
4997
5055
  * Get Admin Consent Info
4998
5056
  * @param podId
4999
- * @param surfaceId
5057
+ * @param surfaceRef
5000
5058
  * @returns AdminConsentInfoResponse Successful Response
5001
5059
  * @throws ApiError
5002
5060
  */
5003
- static agentSurfaceAdminConsentInfo(podId, surfaceId) {
5061
+ static agentSurfaceAdminConsentInfo(podId, surfaceRef) {
5004
5062
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5005
5063
  method: 'GET',
5006
- url: '/pods/{pod_id}/surfaces/{surface_id}/admin-consent',
5064
+ url: '/pods/{pod_id}/surfaces/{surface_ref}/admin-consent',
5065
+ path: {
5066
+ 'pod_id': podId,
5067
+ 'surface_ref': surfaceRef,
5068
+ },
5069
+ errors: {
5070
+ 422: `Validation Error`,
5071
+ },
5072
+ });
5073
+ }
5074
+ /**
5075
+ * Update Surface Channels
5076
+ * @param podId
5077
+ * @param surfaceRef
5078
+ * @param requestBody
5079
+ * @returns any Successful Response
5080
+ * @throws ApiError
5081
+ */
5082
+ static agentSurfaceUpdateChannels(podId, surfaceRef, requestBody) {
5083
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5084
+ method: 'PUT',
5085
+ url: '/pods/{pod_id}/surfaces/{surface_ref}/channels',
5007
5086
  path: {
5008
5087
  'pod_id': podId,
5009
- 'surface_id': surfaceId,
5088
+ 'surface_ref': surfaceRef,
5089
+ },
5090
+ body: requestBody,
5091
+ mediaType: 'application/json',
5092
+ errors: {
5093
+ 422: `Validation Error`,
5094
+ },
5095
+ });
5096
+ }
5097
+ /**
5098
+ * Get Surface Setup Status
5099
+ * @param podId
5100
+ * @param surfaceRef
5101
+ * @returns SurfaceSetupStatusResponse Successful Response
5102
+ * @throws ApiError
5103
+ */
5104
+ static agentSurfaceSetupStatus(podId, surfaceRef) {
5105
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5106
+ method: 'GET',
5107
+ url: '/pods/{pod_id}/surfaces/{surface_ref}/setup',
5108
+ path: {
5109
+ 'pod_id': podId,
5110
+ 'surface_ref': surfaceRef,
5010
5111
  },
5011
5112
  errors: {
5012
5113
  422: `Validation Error`,
@@ -5016,18 +5117,18 @@ class AgentSurfacesService {
5016
5117
  /**
5017
5118
  * Toggle Surface
5018
5119
  * @param podId
5019
- * @param surfaceId
5120
+ * @param surfaceRef
5020
5121
  * @param requestBody
5021
5122
  * @returns any Successful Response
5022
5123
  * @throws ApiError
5023
5124
  */
5024
- static agentSurfaceToggle(podId, surfaceId, requestBody) {
5125
+ static agentSurfaceToggle(podId, surfaceRef, requestBody) {
5025
5126
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5026
5127
  method: 'PATCH',
5027
- url: '/pods/{pod_id}/surfaces/{surface_id}/toggle',
5128
+ url: '/pods/{pod_id}/surfaces/{surface_ref}/toggle',
5028
5129
  path: {
5029
5130
  'pod_id': podId,
5030
- 'surface_id': surfaceId,
5131
+ 'surface_ref': surfaceRef,
5031
5132
  },
5032
5133
  body: requestBody,
5033
5134
  mediaType: 'application/json',
@@ -5173,11 +5274,11 @@ class RecordsService {
5173
5274
  }
5174
5275
  /**
5175
5276
  * Create Record
5176
- * Insert a record into a table. Reserved tables (`reserved_*`) are system-managed and cannot be mutated through record write endpoints.
5277
+ * 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
5278
  * @param podId
5178
5279
  * @param tableName
5179
5280
  * @param requestBody
5180
- * @returns RecordResponse Successful Response
5281
+ * @returns any Successful Response
5181
5282
  * @throws ApiError
5182
5283
  */
5183
5284
  static recordCreate(podId, tableName, requestBody) {
@@ -5197,11 +5298,11 @@ class RecordsService {
5197
5298
  }
5198
5299
  /**
5199
5300
  * Bulk Create
5200
- * Insert multiple records in one request.
5301
+ * Insert multiple records in one request. Returns the affected-row count.
5201
5302
  * @param podId
5202
5303
  * @param tableName
5203
5304
  * @param requestBody
5204
- * @returns DatastoreMessageResponse Successful Response
5305
+ * @returns DatastoreCountResponse Successful Response
5205
5306
  * @throws ApiError
5206
5307
  */
5207
5308
  static recordBulkCreate(podId, tableName, requestBody) {
@@ -5221,11 +5322,11 @@ class RecordsService {
5221
5322
  }
5222
5323
  /**
5223
5324
  * Bulk Delete
5224
- * Delete multiple records by primary key values.
5325
+ * Delete multiple records by primary key values. Returns the affected-row count.
5225
5326
  * @param podId
5226
5327
  * @param tableName
5227
5328
  * @param requestBody
5228
- * @returns DatastoreMessageResponse Successful Response
5329
+ * @returns DatastoreCountResponse Successful Response
5229
5330
  * @throws ApiError
5230
5331
  */
5231
5332
  static recordBulkDelete(podId, tableName, requestBody) {
@@ -5245,11 +5346,11 @@ class RecordsService {
5245
5346
  }
5246
5347
  /**
5247
5348
  * Bulk Update
5248
- * Update multiple records in one request (each item needs primary key).
5349
+ * Update multiple records in one request (each item needs primary key). Returns the affected-row count.
5249
5350
  * @param podId
5250
5351
  * @param tableName
5251
5352
  * @param requestBody
5252
- * @returns DatastoreMessageResponse Successful Response
5353
+ * @returns DatastoreCountResponse Successful Response
5253
5354
  * @throws ApiError
5254
5355
  */
5255
5356
  static recordBulkUpdate(podId, tableName, requestBody) {
@@ -5273,7 +5374,7 @@ class RecordsService {
5273
5374
  * @param podId
5274
5375
  * @param tableName
5275
5376
  * @param recordId
5276
- * @returns DatastoreMessageResponse Successful Response
5377
+ * @returns void
5277
5378
  * @throws ApiError
5278
5379
  */
5279
5380
  static recordDelete(podId, tableName, recordId) {
@@ -5292,11 +5393,11 @@ class RecordsService {
5292
5393
  }
5293
5394
  /**
5294
5395
  * 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.
5396
+ * 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
5397
  * @param podId
5297
5398
  * @param tableName
5298
5399
  * @param recordId
5299
- * @returns RecordResponse Successful Response
5400
+ * @returns any Successful Response
5300
5401
  * @throws ApiError
5301
5402
  */
5302
5403
  static recordGet(podId, tableName, recordId) {
@@ -5315,12 +5416,12 @@ class RecordsService {
5315
5416
  }
5316
5417
  /**
5317
5418
  * Update Record
5318
- * Patch a record by primary key.
5419
+ * Patch a record by primary key. Returns the updated record object (no envelope).
5319
5420
  * @param podId
5320
5421
  * @param tableName
5321
5422
  * @param recordId
5322
5423
  * @param requestBody
5323
- * @returns RecordResponse Successful Response
5424
+ * @returns any Successful Response
5324
5425
  * @throws ApiError
5325
5426
  */
5326
5427
  static recordUpdate(podId, tableName, recordId, requestBody) {
@@ -5353,14 +5454,14 @@ class ResourceAccessNamespace {
5353
5454
  this.client = client;
5354
5455
  this.podId = podId;
5355
5456
  }
5356
- get(resourceType, resourceId, podId) {
5357
- return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGet(podId ?? this.podId(), resourceType, resourceId));
5457
+ get(resourceType, resourceName, podId) {
5458
+ return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGet(podId ?? this.podId(), resourceType, resourceName));
5358
5459
  }
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));
5460
+ replaceGrant(resourceType, resourceName, granteeType, granteeId, payload, podId) {
5461
+ return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGrantReplace(podId ?? this.podId(), resourceType, resourceName, granteeType, granteeId, payload));
5361
5462
  }
5362
- deleteGrant(resourceType, resourceId, granteeType, granteeId, podId) {
5363
- return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGrantDelete(podId ?? this.podId(), resourceType, resourceId, granteeType, granteeId));
5463
+ deleteGrant(resourceType, resourceName, granteeType, granteeId, podId) {
5464
+ return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGrantDelete(podId ?? this.podId(), resourceType, resourceName, granteeType, granteeId));
5364
5465
  }
5365
5466
  }
5366
5467
  exports.ResourceAccessNamespace = ResourceAccessNamespace;
@@ -5377,18 +5478,18 @@ class PodResourceAccessService {
5377
5478
  * Get Resource Access
5378
5479
  * @param podId
5379
5480
  * @param resourceType
5380
- * @param resourceId
5481
+ * @param resourceName
5381
5482
  * @returns ResourceAccessResponse Successful Response
5382
5483
  * @throws ApiError
5383
5484
  */
5384
- static podResourceAccessGet(podId, resourceType, resourceId) {
5485
+ static podResourceAccessGet(podId, resourceType, resourceName) {
5385
5486
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5386
5487
  method: 'GET',
5387
- url: '/pods/{pod_id}/resources/{resource_type}/{resource_id}/access',
5488
+ url: '/pods/{pod_id}/resources/{resource_type}/{resource_name}/access',
5388
5489
  path: {
5389
5490
  'pod_id': podId,
5390
5491
  'resource_type': resourceType,
5391
- 'resource_id': resourceId,
5492
+ 'resource_name': resourceName,
5392
5493
  },
5393
5494
  errors: {
5394
5495
  422: `Validation Error`,
@@ -5399,20 +5500,20 @@ class PodResourceAccessService {
5399
5500
  * Delete Resource Access Grant
5400
5501
  * @param podId
5401
5502
  * @param resourceType
5402
- * @param resourceId
5503
+ * @param resourceName
5403
5504
  * @param granteeType
5404
5505
  * @param granteeId
5405
5506
  * @returns ResourceAccessResponse Successful Response
5406
5507
  * @throws ApiError
5407
5508
  */
5408
- static podResourceAccessGrantDelete(podId, resourceType, resourceId, granteeType, granteeId) {
5509
+ static podResourceAccessGrantDelete(podId, resourceType, resourceName, granteeType, granteeId) {
5409
5510
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5410
5511
  method: 'DELETE',
5411
- url: '/pods/{pod_id}/resources/{resource_type}/{resource_id}/access/grantees/{grantee_type}/{grantee_id}',
5512
+ url: '/pods/{pod_id}/resources/{resource_type}/{resource_name}/access/grantees/{grantee_type}/{grantee_id}',
5412
5513
  path: {
5413
5514
  'pod_id': podId,
5414
5515
  'resource_type': resourceType,
5415
- 'resource_id': resourceId,
5516
+ 'resource_name': resourceName,
5416
5517
  'grantee_type': granteeType,
5417
5518
  'grantee_id': granteeId,
5418
5519
  },
@@ -5425,21 +5526,21 @@ class PodResourceAccessService {
5425
5526
  * Replace Resource Access Grant
5426
5527
  * @param podId
5427
5528
  * @param resourceType
5428
- * @param resourceId
5529
+ * @param resourceName
5429
5530
  * @param granteeType
5430
5531
  * @param granteeId
5431
5532
  * @param requestBody
5432
5533
  * @returns ResourceAccessResponse Successful Response
5433
5534
  * @throws ApiError
5434
5535
  */
5435
- static podResourceAccessGrantReplace(podId, resourceType, resourceId, granteeType, granteeId, requestBody) {
5536
+ static podResourceAccessGrantReplace(podId, resourceType, resourceName, granteeType, granteeId, requestBody) {
5436
5537
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5437
5538
  method: 'PUT',
5438
- url: '/pods/{pod_id}/resources/{resource_type}/{resource_id}/access/grantees/{grantee_type}/{grantee_id}',
5539
+ url: '/pods/{pod_id}/resources/{resource_type}/{resource_name}/access/grantees/{grantee_type}/{grantee_id}',
5439
5540
  path: {
5440
5541
  'pod_id': podId,
5441
5542
  'resource_type': resourceType,
5442
- 'resource_id': resourceId,
5543
+ 'resource_name': resourceName,
5443
5544
  'grantee_type': granteeType,
5444
5545
  'grantee_id': granteeId,
5445
5546
  },
@@ -5504,7 +5605,7 @@ class SchedulesNamespace {
5504
5605
  this.podId = podId;
5505
5606
  }
5506
5607
  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));
5608
+ 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
5609
  }
5509
5610
  create(payload) {
5510
5611
  return this.client.request(() => SchedulesService_js_1.SchedulesService.scheduleCreate(this.podId(), payload));
@@ -5537,12 +5638,13 @@ class SchedulesService {
5537
5638
  * @param isActive
5538
5639
  * @param agentName
5539
5640
  * @param workflowName
5641
+ * @param name
5540
5642
  * @param limit
5541
5643
  * @param pageToken
5542
5644
  * @returns ScheduleListResponse Successful Response
5543
5645
  * @throws ApiError
5544
5646
  */
5545
- static scheduleList(podId, scheduleType, isActive, agentName, workflowName, limit = 100, pageToken) {
5647
+ static scheduleList(podId, scheduleType, isActive, agentName, workflowName, name, limit = 100, pageToken) {
5546
5648
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5547
5649
  method: 'GET',
5548
5650
  url: '/pods/{pod_id}/schedules',
@@ -5554,6 +5656,7 @@ class SchedulesService {
5554
5656
  'is_active': isActive,
5555
5657
  'agent_name': agentName,
5556
5658
  'workflow_name': workflowName,
5659
+ 'name': name,
5557
5660
  'limit': limit,
5558
5661
  'page_token': pageToken,
5559
5662
  },
@@ -5759,7 +5862,7 @@ class TablesService {
5759
5862
  * Delete a table and all records in it.
5760
5863
  * @param podId
5761
5864
  * @param tableName
5762
- * @returns DatastoreMessageResponse Successful Response
5865
+ * @returns void
5763
5866
  * @throws ApiError
5764
5867
  */
5765
5868
  static tableDelete(podId, tableName) {
@@ -5850,7 +5953,7 @@ class TablesService {
5850
5953
  * @param podId
5851
5954
  * @param tableName
5852
5955
  * @param columnName
5853
- * @returns DatastoreMessageResponse Successful Response
5956
+ * @returns void
5854
5957
  * @throws ApiError
5855
5958
  */
5856
5959
  static tableColumnRemove(podId, tableName, columnName) {
@@ -5950,7 +6053,6 @@ exports.UsersService = UsersService;
5950
6053
  "use strict";
5951
6054
  Object.defineProperty(exports, "__esModule", { value: true });
5952
6055
  exports.WorkflowsNamespace = void 0;
5953
- const http_js_1 = require("./http.js");
5954
6056
  const WorkflowsService_js_1 = require("./openapi_client/services/WorkflowsService.js");
5955
6057
  class WorkflowsNamespace {
5956
6058
  constructor(client, http, podId) {
@@ -5961,14 +6063,19 @@ class WorkflowsNamespace {
5961
6063
  update: (workflowName, graph) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowGraphUpdate(this.podId(), workflowName, graph)),
5962
6064
  };
5963
6065
  this.runs = {
5964
- start: (workflowName, inputs = {}) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowStart(this.podId(), workflowName, inputs)),
6066
+ /**
6067
+ * Create a run. Runs take no inputs: when the workflow starts with a
6068
+ * form, the returned run is WAITING with `active_wait` describing the
6069
+ * form to render and submit via `runs.submitForm`.
6070
+ */
6071
+ create: (workflowName) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunCreate(this.podId(), workflowName)),
5965
6072
  list: (workflowName, options = {}) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunList(this.podId(), workflowName, options.limit ?? 100, options.pageToken)),
5966
6073
  waitingAssignedToMe: (options = {}) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunWaitingAssignedToMe(this.podId(), options.limit ?? 100, options.pageToken)),
5967
6074
  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)),
6075
+ /** Submit the form a run is waiting on. node_id must match active_wait.node_id. */
6076
+ submitForm: (runId, payload, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunFormSubmit(podId, runId, payload)),
5969
6077
  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),
6078
+ cancel: (runId, podId = this.podId()) => this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowRunCancel(podId, runId)),
5972
6079
  };
5973
6080
  }
5974
6081
  list(options = {}) {
@@ -5989,19 +6096,6 @@ class WorkflowsNamespace {
5989
6096
  visualize(workflowName) {
5990
6097
  return this.client.request(() => WorkflowsService_js_1.WorkflowsService.workflowVisualize(this.podId(), workflowName));
5991
6098
  }
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
6099
  }
6006
6100
  exports.WorkflowsNamespace = WorkflowsNamespace;
6007
6101
 
@@ -6015,7 +6109,7 @@ const request_js_1 = require("./openapi_client/core/request.js");
6015
6109
  class WorkflowsService {
6016
6110
  /**
6017
6111
  * List Workflow Runs Waiting For Current User
6018
- * List active human form waits assigned to the current pod member.
6112
+ * The current user's approval queue: active form waits assigned to them, with the owning run.
6019
6113
  * @param podId
6020
6114
  * @param limit
6021
6115
  * @param pageToken
@@ -6040,10 +6134,10 @@ class WorkflowsService {
6040
6134
  }
6041
6135
  /**
6042
6136
  * Get Workflow Run
6043
- * Get current state, context, and step history of a workflow run.
6137
+ * Get current state, context, step history, and the active wait (when WAITING) of a workflow run.
6044
6138
  * @param podId
6045
6139
  * @param runId
6046
- * @returns FlowRunEntity Successful Response
6140
+ * @returns WorkflowRunResponse Successful Response
6047
6141
  * @throws ApiError
6048
6142
  */
6049
6143
  static workflowRunGet(podId, runId) {
@@ -6060,71 +6154,65 @@ class WorkflowsService {
6060
6154
  });
6061
6155
  }
6062
6156
  /**
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.
6157
+ * Cancel Workflow Run
6158
+ * 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
6159
  * @param podId
6066
6160
  * @param runId
6067
- * @param requestBody
6068
- * @returns FlowRunEntity Successful Response
6161
+ * @returns WorkflowRunResponse Successful Response
6069
6162
  * @throws ApiError
6070
6163
  */
6071
- static workflowRunResume(podId, runId, requestBody) {
6164
+ static workflowRunCancel(podId, runId) {
6072
6165
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
6073
6166
  method: 'POST',
6074
- url: '/pods/{pod_id}/workflow-runs/{run_id}/resume',
6167
+ url: '/pods/{pod_id}/workflow-runs/{run_id}/cancel',
6075
6168
  path: {
6076
6169
  'pod_id': podId,
6077
6170
  'run_id': runId,
6078
6171
  },
6079
- body: requestBody,
6080
- mediaType: 'application/json',
6081
6172
  errors: {
6082
6173
  422: `Validation Error`,
6083
6174
  },
6084
6175
  });
6085
6176
  }
6086
6177
  /**
6087
- * Visualize Workflow Run
6088
- * Render an HTML view of a run overlaid on its workflow graph.
6178
+ * Submit Workflow Run Form
6179
+ * 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
6180
  * @param podId
6090
6181
  * @param runId
6091
- * @returns string Successful Response
6182
+ * @param requestBody
6183
+ * @returns WorkflowRunResponse Successful Response
6092
6184
  * @throws ApiError
6093
6185
  */
6094
- static workflowRunVisualize(podId, runId) {
6186
+ static workflowRunFormSubmit(podId, runId, requestBody) {
6095
6187
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
6096
- method: 'GET',
6097
- url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
6188
+ method: 'POST',
6189
+ url: '/pods/{pod_id}/workflow-runs/{run_id}/form',
6098
6190
  path: {
6099
6191
  'pod_id': podId,
6100
6192
  'run_id': runId,
6101
6193
  },
6194
+ body: requestBody,
6195
+ mediaType: 'application/json',
6102
6196
  errors: {
6103
6197
  422: `Validation Error`,
6104
6198
  },
6105
6199
  });
6106
6200
  }
6107
6201
  /**
6108
- * List Workflow Runs
6109
- * List recent runs for a given workflow.
6202
+ * Visualize Workflow Run
6203
+ * Render an HTML view of a run overlaid on its workflow graph.
6110
6204
  * @param podId
6111
- * @param workflowName
6112
- * @param limit
6113
- * @param pageToken
6114
- * @returns WorkflowRunListResponse Successful Response
6205
+ * @param runId
6206
+ * @returns string Successful Response
6115
6207
  * @throws ApiError
6116
6208
  */
6117
- static workflowRunList(podId, workflowName, limit = 100, pageToken) {
6209
+ static workflowRunVisualize(podId, runId) {
6118
6210
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
6119
6211
  method: 'GET',
6120
- url: '/pods/{pod_id}/workflow-runs/{workflow_name}/runs',
6212
+ url: '/pods/{pod_id}/workflow-runs/{run_id}/visualize',
6121
6213
  path: {
6122
6214
  'pod_id': podId,
6123
- 'workflow_name': workflowName,
6124
- },
6125
- query: {
6126
- 'limit': limit,
6127
- 'page_token': pageToken,
6215
+ 'run_id': runId,
6128
6216
  },
6129
6217
  errors: {
6130
6218
  422: `Validation Error`,
@@ -6158,7 +6246,7 @@ class WorkflowsService {
6158
6246
  }
6159
6247
  /**
6160
6248
  * Create Workflow
6161
- * Create a workflow definition. Use this before uploading graph nodes/edges with `workflow.graph.update`.
6249
+ * 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
6250
  * @param podId
6163
6251
  * @param requestBody
6164
6252
  * @returns FlowDetailResponse Successful Response
@@ -6269,24 +6357,48 @@ class WorkflowsService {
6269
6357
  });
6270
6358
  }
6271
6359
  /**
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.
6360
+ * List Workflow Runs
6361
+ * List recent runs for a given workflow.
6274
6362
  * @param podId
6275
6363
  * @param workflowName
6276
- * @param requestBody
6277
- * @returns FlowRunEntity Successful Response
6364
+ * @param limit
6365
+ * @param pageToken
6366
+ * @returns WorkflowRunListResponse Successful Response
6367
+ * @throws ApiError
6368
+ */
6369
+ static workflowRunList(podId, workflowName, limit = 100, pageToken) {
6370
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
6371
+ method: 'GET',
6372
+ url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
6373
+ path: {
6374
+ 'pod_id': podId,
6375
+ 'workflow_name': workflowName,
6376
+ },
6377
+ query: {
6378
+ 'limit': limit,
6379
+ 'page_token': pageToken,
6380
+ },
6381
+ errors: {
6382
+ 422: `Validation Error`,
6383
+ },
6384
+ });
6385
+ }
6386
+ /**
6387
+ * Create Workflow Run
6388
+ * 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.
6389
+ * @param podId
6390
+ * @param workflowName
6391
+ * @returns WorkflowRunResponse Successful Response
6278
6392
  * @throws ApiError
6279
6393
  */
6280
- static workflowStart(podId, workflowName, requestBody) {
6394
+ static workflowRunCreate(podId, workflowName) {
6281
6395
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
6282
6396
  method: 'POST',
6283
- url: '/pods/{pod_id}/workflows/{workflow_name}/start',
6397
+ url: '/pods/{pod_id}/workflows/{workflow_name}/runs',
6284
6398
  path: {
6285
6399
  'pod_id': podId,
6286
6400
  'workflow_name': workflowName,
6287
6401
  },
6288
- body: requestBody,
6289
- mediaType: 'application/json',
6290
6402
  errors: {
6291
6403
  422: `Validation Error`,
6292
6404
  },