lemma-sdk 0.2.43 → 0.2.44

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 (340) hide show
  1. package/README.md +2 -5
  2. package/dist/assistant-events.d.ts +1 -0
  3. package/dist/assistant-events.js +25 -3
  4. package/dist/browser/lemma-client.js +1082 -296
  5. package/dist/client.d.ts +8 -0
  6. package/dist/client.js +13 -1
  7. package/dist/index.d.ts +4 -0
  8. package/dist/namespaces/agent-runtime.d.ts +28 -0
  9. package/dist/namespaces/agent-runtime.js +34 -0
  10. package/dist/namespaces/agents.d.ts +8 -3
  11. package/dist/namespaces/agents.js +4 -0
  12. package/dist/namespaces/conversations.d.ts +35 -7
  13. package/dist/namespaces/conversations.js +103 -22
  14. package/dist/namespaces/desks.d.ts +3 -3
  15. package/dist/namespaces/files.d.ts +12 -5
  16. package/dist/namespaces/files.js +12 -3
  17. package/dist/namespaces/functions.d.ts +8 -3
  18. package/dist/namespaces/functions.js +4 -0
  19. package/dist/namespaces/integrations.d.ts +54 -12
  20. package/dist/namespaces/integrations.js +52 -16
  21. package/dist/namespaces/pod-members.d.ts +1 -0
  22. package/dist/namespaces/pod-members.js +4 -1
  23. package/dist/namespaces/pod-permissions.d.ts +14 -0
  24. package/dist/namespaces/pod-permissions.js +18 -0
  25. package/dist/namespaces/pod-roles.d.ts +16 -0
  26. package/dist/namespaces/pod-roles.js +25 -0
  27. package/dist/namespaces/resource-access.d.ts +11 -0
  28. package/dist/namespaces/resource-access.js +18 -0
  29. package/dist/namespaces/schedules.d.ts +3 -3
  30. package/dist/namespaces/tables.d.ts +4 -4
  31. package/dist/namespaces/workflows.d.ts +4 -4
  32. package/dist/openapi_client/index.d.ts +76 -30
  33. package/dist/openapi_client/index.js +20 -7
  34. package/dist/openapi_client/models/AccountCreateSchema.d.ts +18 -0
  35. package/dist/openapi_client/models/AccountResponseSchema.d.ts +3 -0
  36. package/dist/openapi_client/models/AgentActionResponse.d.ts +20 -0
  37. package/dist/openapi_client/models/AgentDetailResponse.d.ts +22 -0
  38. package/dist/openapi_client/models/AgentHarnessInfo.d.ts +9 -0
  39. package/dist/openapi_client/models/AgentHarnessListResponse.d.ts +4 -0
  40. package/dist/openapi_client/models/AgentListResponse.d.ts +2 -2
  41. package/dist/openapi_client/models/AgentPermissionsReplaceRequest.d.ts +4 -0
  42. package/dist/openapi_client/models/AgentPermissionsResponse.d.ts +6 -0
  43. package/dist/openapi_client/models/AgentResourcePermissionRequest.d.ts +6 -0
  44. package/dist/openapi_client/models/AgentResourcePermissionResponse.d.ts +6 -0
  45. package/dist/openapi_client/models/AgentRunApprovalDecision.d.ts +8 -0
  46. package/dist/openapi_client/models/AgentRunApprovalDecision.js +13 -0
  47. package/dist/openapi_client/models/AgentRuntimeConfig.d.ts +7 -0
  48. package/dist/openapi_client/models/AgentRuntimeProfileListResponse.d.ts +6 -0
  49. package/dist/openapi_client/models/AgentRuntimeProfileResponse.d.ts +22 -0
  50. package/dist/openapi_client/models/AgentSurfaceResponse.d.ts +11 -4
  51. package/dist/openapi_client/models/ApplicationDetailResponseSchema.d.ts +3 -3
  52. package/dist/openapi_client/models/ApplicationResponseSchema.d.ts +3 -3
  53. package/dist/openapi_client/models/AuthConfigCreateSchema.d.ts +7 -0
  54. package/dist/openapi_client/models/AuthConfigListResponseSchema.d.ts +6 -0
  55. package/dist/openapi_client/models/AuthConfigResponseSchema.d.ts +13 -0
  56. package/dist/openapi_client/models/AuthScheme.d.ts +5 -0
  57. package/dist/openapi_client/models/AuthScheme.js +10 -0
  58. package/dist/openapi_client/models/BillingInterval.d.ts +2 -2
  59. package/dist/openapi_client/models/BillingInterval.js +2 -2
  60. package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +0 -2
  61. package/dist/openapi_client/models/ComposioProviderCapabilityResponseSchema.d.ts +9 -0
  62. package/dist/openapi_client/models/ConnectRequestInitiateSchema.d.ts +5 -1
  63. package/dist/openapi_client/models/ConnectRequestResponseSchema.d.ts +2 -0
  64. package/dist/openapi_client/models/ConversationResponse.d.ts +2 -2
  65. package/dist/openapi_client/models/ConvertedArtifactResponse.d.ts +1 -0
  66. package/dist/openapi_client/models/ConvertedFileResponse.d.ts +4 -0
  67. package/dist/openapi_client/models/ConvertedPageResponse.d.ts +8 -0
  68. package/dist/openapi_client/models/CreateAgentRequest.d.ts +4 -12
  69. package/dist/openapi_client/models/CreateAnthropicCompatibleRuntimeProfileRequest.d.ts +11 -0
  70. package/dist/openapi_client/models/CreateConversationRequest.d.ts +2 -2
  71. package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -1
  72. package/dist/openapi_client/models/CreateFolderRequest.d.ts +1 -1
  73. package/dist/openapi_client/models/CreateFunctionRequest.d.ts +2 -6
  74. package/dist/openapi_client/models/CreateOpenAICompatibleRuntimeProfileRequest.d.ts +11 -0
  75. package/dist/openapi_client/models/CreateScheduleRequest.d.ts +13 -1
  76. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +12 -14
  77. package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -1
  78. package/dist/openapi_client/models/CreateUserDaemonRuntimeProfileRequest.d.ts +9 -0
  79. package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -1
  80. package/dist/openapi_client/models/DeskBundleUploadResponse.d.ts +2 -2
  81. package/dist/openapi_client/models/{DeskResponse.d.ts → DeskDetailResponse.d.ts} +2 -2
  82. package/dist/openapi_client/models/DeskListResponse.d.ts +2 -2
  83. package/dist/openapi_client/models/DeskServingConfigResponse.d.ts +11 -0
  84. package/dist/openapi_client/models/DeskServingConfigResponse.js +8 -0
  85. package/dist/openapi_client/models/EventFlowStartInput.d.ts +0 -8
  86. package/dist/openapi_client/models/EventFlowStartOutput.d.ts +0 -8
  87. package/dist/openapi_client/models/{FileResponse.d.ts → FileDetailResponse.d.ts} +2 -2
  88. package/dist/openapi_client/models/FileListResponse.d.ts +2 -2
  89. package/dist/openapi_client/models/{FlowResponse.d.ts → FlowDetailResponse.d.ts} +2 -2
  90. package/dist/openapi_client/models/{FunctionResponse.d.ts → FunctionActionResponse.d.ts} +3 -10
  91. package/dist/openapi_client/models/FunctionActionResponse.js +1 -0
  92. package/dist/openapi_client/models/FunctionDetailResponse.d.ts +34 -0
  93. package/dist/openapi_client/models/FunctionDetailResponse.js +1 -0
  94. package/dist/openapi_client/models/FunctionListResponse.d.ts +2 -2
  95. package/dist/openapi_client/models/FunctionPermissionsReplaceRequest.d.ts +4 -0
  96. package/dist/openapi_client/models/FunctionPermissionsReplaceRequest.js +1 -0
  97. package/dist/openapi_client/models/FunctionPermissionsResponse.d.ts +6 -0
  98. package/dist/openapi_client/models/FunctionPermissionsResponse.js +1 -0
  99. package/dist/openapi_client/models/FunctionResourcePermissionRequest.d.ts +6 -0
  100. package/dist/openapi_client/models/FunctionResourcePermissionRequest.js +1 -0
  101. package/dist/openapi_client/models/FunctionResourcePermissionResponse.d.ts +6 -0
  102. package/dist/openapi_client/models/FunctionResourcePermissionResponse.js +1 -0
  103. package/dist/openapi_client/models/FunctionRunListResponse.d.ts +2 -2
  104. package/dist/openapi_client/models/FunctionRunSummaryResponse.d.ts +13 -0
  105. package/dist/openapi_client/models/FunctionRunSummaryResponse.js +1 -0
  106. package/dist/openapi_client/models/GmailSurfaceConfig.d.ts +1 -1
  107. package/dist/openapi_client/models/HarnessKind.d.ts +4 -2
  108. package/dist/openapi_client/models/HarnessKind.js +4 -2
  109. package/dist/openapi_client/models/LemmaProviderCapabilityResponseSchema.d.ts +12 -0
  110. package/dist/openapi_client/models/LemmaProviderCapabilityResponseSchema.js +1 -0
  111. package/dist/openapi_client/models/OAuth2DefaultsResponseSchema.d.ts +10 -0
  112. package/dist/openapi_client/models/OAuth2DefaultsResponseSchema.js +1 -0
  113. package/dist/openapi_client/models/OperationSummary.d.ts +4 -0
  114. package/dist/openapi_client/models/OutlookSurfaceConfig.d.ts +1 -1
  115. package/dist/openapi_client/models/PlanResponse.d.ts +3 -2
  116. package/dist/openapi_client/models/PlanType.d.ts +7 -0
  117. package/dist/openapi_client/models/PlanType.js +12 -0
  118. package/dist/openapi_client/models/PodConfig.d.ts +6 -0
  119. package/dist/openapi_client/models/PodConfig.js +1 -0
  120. package/dist/openapi_client/models/PodCreateRequest.d.ts +2 -0
  121. package/dist/openapi_client/models/PodEffectivePermissionsResponse.d.ts +4 -0
  122. package/dist/openapi_client/models/PodEffectivePermissionsResponse.js +1 -0
  123. package/dist/openapi_client/models/PodPermissionCatalogResponse.d.ts +4 -0
  124. package/dist/openapi_client/models/PodPermissionCatalogResponse.js +1 -0
  125. package/dist/openapi_client/models/PodPermissionResponse.d.ts +7 -0
  126. package/dist/openapi_client/models/PodPermissionResponse.js +1 -0
  127. package/dist/openapi_client/models/PodResponse.d.ts +2 -0
  128. package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +2 -0
  129. package/dist/openapi_client/models/PodRolePermissionsReplaceRequest.d.ts +4 -0
  130. package/dist/openapi_client/models/PodRolePermissionsReplaceRequest.js +1 -0
  131. package/dist/openapi_client/models/PodRolePermissionsResponse.d.ts +6 -0
  132. package/dist/openapi_client/models/PodRolePermissionsResponse.js +1 -0
  133. package/dist/openapi_client/models/PodRoleResourcePermissionRequest.d.ts +6 -0
  134. package/dist/openapi_client/models/PodRoleResourcePermissionRequest.js +1 -0
  135. package/dist/openapi_client/models/PodRoleResourcePermissionResponse.d.ts +6 -0
  136. package/dist/openapi_client/models/PodRoleResourcePermissionResponse.js +1 -0
  137. package/dist/openapi_client/models/PodRoleResponse.d.ts +3 -0
  138. package/dist/openapi_client/models/PodUpdateRequest.d.ts +2 -0
  139. package/dist/openapi_client/models/ResolveUserApprovalRequest.d.ts +5 -0
  140. package/dist/openapi_client/models/ResolveUserApprovalRequest.js +1 -0
  141. package/dist/openapi_client/models/ResourceAccessGrantRequest.d.ts +3 -0
  142. package/dist/openapi_client/models/ResourceAccessGrantRequest.js +1 -0
  143. package/dist/openapi_client/models/ResourceAccessGrantResponse.d.ts +12 -0
  144. package/dist/openapi_client/models/ResourceAccessGrantResponse.js +1 -0
  145. package/dist/openapi_client/models/ResourceAccessResponse.d.ts +7 -0
  146. package/dist/openapi_client/models/ResourceAccessResponse.js +1 -0
  147. package/dist/openapi_client/models/ResourceType.d.ts +19 -0
  148. package/dist/openapi_client/models/ResourceType.js +24 -0
  149. package/dist/openapi_client/models/ResourceVisibility.d.ts +6 -0
  150. package/dist/openapi_client/models/ResourceVisibility.js +11 -0
  151. package/dist/openapi_client/models/RuntimeModelCapability.d.ts +8 -0
  152. package/dist/openapi_client/models/RuntimeModelCapability.js +13 -0
  153. package/dist/openapi_client/models/RuntimeModelCatalogEntry.d.ts +9 -0
  154. package/dist/openapi_client/models/RuntimeModelCatalogEntry.js +1 -0
  155. package/dist/openapi_client/models/RuntimeProfileKind.d.ts +4 -0
  156. package/dist/openapi_client/models/RuntimeProfileKind.js +9 -0
  157. package/dist/openapi_client/models/RuntimeProfileProtocol.d.ts +9 -0
  158. package/dist/openapi_client/models/RuntimeProfileProtocol.js +14 -0
  159. package/dist/openapi_client/models/RuntimeProfileScope.d.ts +4 -0
  160. package/dist/openapi_client/models/RuntimeProfileScope.js +9 -0
  161. package/dist/openapi_client/models/RuntimeProfileStatus.d.ts +5 -0
  162. package/dist/openapi_client/models/RuntimeProfileStatus.js +10 -0
  163. package/dist/openapi_client/models/{ScheduleResponse.d.ts → ScheduleDetailResponse.d.ts} +3 -3
  164. package/dist/openapi_client/models/ScheduleDetailResponse.js +1 -0
  165. package/dist/openapi_client/models/ScheduleListResponse.d.ts +2 -2
  166. package/dist/openapi_client/models/SlackSurfaceConfig.d.ts +1 -4
  167. package/dist/openapi_client/models/SubscriptionResponse.d.ts +2 -2
  168. package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +2 -2
  169. package/dist/openapi_client/models/SurfaceBehaviorConfigInput.d.ts +3 -0
  170. package/dist/openapi_client/models/SurfaceBehaviorConfigInput.js +1 -0
  171. package/dist/openapi_client/models/SurfaceEventMode.d.ts +6 -0
  172. package/dist/openapi_client/models/SurfaceEventMode.js +11 -0
  173. package/dist/openapi_client/models/SurfaceMode.d.ts +5 -0
  174. package/dist/openapi_client/models/SurfaceMode.js +10 -0
  175. package/dist/openapi_client/models/SurfaceSetupMode.d.ts +2 -3
  176. package/dist/openapi_client/models/SurfaceSetupMode.js +1 -2
  177. package/dist/openapi_client/models/{TableResponse.d.ts → TableDetailResponse.d.ts} +3 -3
  178. package/dist/openapi_client/models/TableDetailResponse.js +1 -0
  179. package/dist/openapi_client/models/TableListResponse.d.ts +2 -2
  180. package/dist/openapi_client/models/TeamsSurfaceConfig.d.ts +1 -3
  181. package/dist/openapi_client/models/TelegramSurfaceConfig.d.ts +1 -0
  182. package/dist/openapi_client/models/UpdateAgentRequest.d.ts +4 -12
  183. package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -2
  184. package/dist/openapi_client/models/UpdateDeskRequest.d.ts +0 -1
  185. package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +2 -6
  186. package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -1
  187. package/dist/openapi_client/models/UpdateSurfaceRequest.d.ts +11 -14
  188. package/dist/openapi_client/models/UpdateTableRequest.d.ts +1 -1
  189. package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +2 -3
  190. package/dist/openapi_client/models/UsageLimitsResponse.d.ts +1 -4
  191. package/dist/openapi_client/models/UsageListResponse.d.ts +0 -3
  192. package/dist/openapi_client/models/UsageRecordResponse.d.ts +10 -14
  193. package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +1 -4
  194. package/dist/openapi_client/models/UsageStatsResponse.d.ts +0 -3
  195. package/dist/openapi_client/models/UsageSummaryResponse.d.ts +4 -6
  196. package/dist/openapi_client/models/UserApprovalListResponse.d.ts +4 -0
  197. package/dist/openapi_client/models/UserApprovalListResponse.js +1 -0
  198. package/dist/openapi_client/models/VerifyTokenResponse.d.ts +5 -0
  199. package/dist/openapi_client/models/WhatsAppSurfaceConfig.d.ts +1 -0
  200. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +2 -1
  201. package/dist/openapi_client/models/WorkflowListResponse.d.ts +2 -2
  202. package/dist/openapi_client/models/WorkflowRunListResponse.d.ts +2 -2
  203. package/dist/openapi_client/models/WorkflowRunSummaryResponse.d.ts +18 -0
  204. package/dist/openapi_client/models/WorkflowRunSummaryResponse.js +1 -0
  205. package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +2 -1
  206. package/dist/openapi_client/models/WorkspaceAppAccessRequest.d.ts +6 -0
  207. package/dist/openapi_client/models/WorkspaceAppAccessRequest.js +1 -0
  208. package/dist/openapi_client/models/WorkspaceAppAccessResponse.d.ts +5 -0
  209. package/dist/openapi_client/models/WorkspaceAppAccessResponse.js +1 -0
  210. package/dist/openapi_client/models/WorkspaceMeApp.d.ts +5 -0
  211. package/dist/openapi_client/models/WorkspaceMeApp.js +1 -0
  212. package/dist/openapi_client/models/WorkspaceMeResponse.d.ts +9 -0
  213. package/dist/openapi_client/models/WorkspaceMeResponse.js +1 -0
  214. package/dist/openapi_client/models/WorkspaceMeSandbox.d.ts +10 -0
  215. package/dist/openapi_client/models/WorkspaceMeSandbox.js +1 -0
  216. package/dist/openapi_client/models/WorkspaceMeSession.d.ts +6 -0
  217. package/dist/openapi_client/models/WorkspaceMeSession.js +1 -0
  218. package/dist/openapi_client/models/update.d.ts +1 -1
  219. package/dist/openapi_client/services/AgentConversationsService.d.ts +28 -3
  220. package/dist/openapi_client/services/AgentConversationsService.js +54 -3
  221. package/dist/openapi_client/services/AgentRuntimeService.d.ts +30 -0
  222. package/dist/openapi_client/services/AgentRuntimeService.js +54 -0
  223. package/dist/openapi_client/services/AgentSurfacesIngressService.d.ts +15 -20
  224. package/dist/openapi_client/services/AgentSurfacesIngressService.js +23 -28
  225. package/dist/openapi_client/services/AgentSurfacesService.d.ts +8 -8
  226. package/dist/openapi_client/services/AgentSurfacesService.js +20 -20
  227. package/dist/openapi_client/services/AgentToolsService.d.ts +0 -10
  228. package/dist/openapi_client/services/AgentToolsService.js +0 -18
  229. package/dist/openapi_client/services/AgentsService.d.ts +31 -9
  230. package/dist/openapi_client/services/AgentsService.js +50 -5
  231. package/dist/openapi_client/services/ApplicationsService.d.ts +12 -8
  232. package/dist/openapi_client/services/ApplicationsService.js +24 -16
  233. package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +3 -2
  234. package/dist/openapi_client/services/BillingSubscriptionsService.js +3 -3
  235. package/dist/openapi_client/services/DesksService.d.ts +7 -7
  236. package/dist/openapi_client/services/DesksService.js +3 -3
  237. package/dist/openapi_client/services/FilesService.d.ts +18 -9
  238. package/dist/openapi_client/services/FilesService.js +28 -4
  239. package/dist/openapi_client/services/FunctionsService.d.ts +29 -7
  240. package/dist/openapi_client/services/FunctionsService.js +48 -3
  241. package/dist/openapi_client/services/IntegrationsService.d.ts +65 -14
  242. package/dist/openapi_client/services/IntegrationsService.js +144 -23
  243. package/dist/openapi_client/services/OrganizationsService.d.ts +8 -0
  244. package/dist/openapi_client/services/OrganizationsService.js +19 -0
  245. package/dist/openapi_client/services/PodMembersService.d.ts +0 -10
  246. package/dist/openapi_client/services/PodMembersService.js +0 -24
  247. package/dist/openapi_client/services/PodPermissionsService.d.ts +19 -0
  248. package/dist/openapi_client/services/PodPermissionsService.js +40 -0
  249. package/dist/openapi_client/services/PodResourceAccessService.d.ts +38 -0
  250. package/dist/openapi_client/services/PodResourceAccessService.js +81 -0
  251. package/dist/openapi_client/services/PodRolesService.d.ts +28 -0
  252. package/dist/openapi_client/services/PodRolesService.js +66 -0
  253. package/dist/openapi_client/services/PublicDesksService.d.ts +10 -0
  254. package/dist/openapi_client/services/PublicDesksService.js +15 -0
  255. package/dist/openapi_client/services/SchedulesService.d.ts +7 -7
  256. package/dist/openapi_client/services/SchedulesService.js +3 -3
  257. package/dist/openapi_client/services/TablesService.d.ts +9 -9
  258. package/dist/openapi_client/services/TablesService.js +4 -4
  259. package/dist/openapi_client/services/UsageService.d.ts +96 -0
  260. package/dist/openapi_client/services/UsageService.js +210 -0
  261. package/dist/openapi_client/services/WorkflowsService.d.ts +9 -9
  262. package/dist/openapi_client/services/WorkflowsService.js +4 -4
  263. package/dist/openapi_client/services/WorkspaceAppsService.d.ts +12 -0
  264. package/dist/openapi_client/services/WorkspaceAppsService.js +21 -0
  265. package/dist/openapi_client/services/WorkspaceService.d.ts +10 -0
  266. package/dist/openapi_client/services/WorkspaceService.js +15 -0
  267. package/dist/react/AuthGuard.d.ts +16 -2
  268. package/dist/react/AuthGuard.js +169 -130
  269. package/dist/react/index.d.ts +1 -1
  270. package/dist/react/useAssistantController.d.ts +26 -3
  271. package/dist/react/useAssistantController.js +187 -69
  272. package/dist/react/useAssistantSession.d.ts +10 -7
  273. package/dist/react/useAssistantSession.js +106 -5
  274. package/dist/react/useConversations.d.ts +1 -7
  275. package/dist/react/useConversations.js +4 -10
  276. package/dist/react/useFlowRunHistory.d.ts +4 -4
  277. package/dist/react/useFlowRunHistory.js +9 -4
  278. package/dist/react/useFlowSession.d.ts +2 -2
  279. package/dist/react/useFunctionRun.d.ts +2 -2
  280. package/dist/react/useFunctionRuns.d.ts +5 -5
  281. package/dist/react/useFunctionSession.d.ts +2 -2
  282. package/dist/react/useWorkflowRun.d.ts +2 -2
  283. package/dist/react/useWorkflowRuns.d.ts +5 -5
  284. package/dist/react/useWorkflowStart.d.ts +2 -2
  285. package/dist/types.d.ts +45 -8
  286. package/package.json +2 -2
  287. package/dist/openapi_client/models/AgentModelName.d.ts +0 -13
  288. package/dist/openapi_client/models/AgentModelName.js +0 -18
  289. package/dist/openapi_client/models/AgentResponse.d.ts +0 -29
  290. package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +0 -18
  291. package/dist/openapi_client/models/ApplicationMode.d.ts +0 -7
  292. package/dist/openapi_client/models/ApplicationMode.js +0 -12
  293. package/dist/openapi_client/models/BillingScope.d.ts +0 -7
  294. package/dist/openapi_client/models/BillingScope.js +0 -12
  295. package/dist/openapi_client/models/FunctionTableAccessEntry.d.ts +0 -5
  296. package/dist/openapi_client/models/GmailSurfaceConfigInput.d.ts +0 -4
  297. package/dist/openapi_client/models/OutlookSurfaceConfigInput.d.ts +0 -4
  298. package/dist/openapi_client/models/RecentUsageResponse.d.ts +0 -9
  299. package/dist/openapi_client/models/SlackCredentialsInput.d.ts +0 -5
  300. package/dist/openapi_client/models/SlackSurfaceConfigInput.d.ts +0 -6
  301. package/dist/openapi_client/models/SurfaceCredentialMode.d.ts +0 -4
  302. package/dist/openapi_client/models/SurfaceCredentialMode.js +0 -9
  303. package/dist/openapi_client/models/SurfaceWebhookMode.d.ts +0 -4
  304. package/dist/openapi_client/models/SurfaceWebhookMode.js +0 -9
  305. package/dist/openapi_client/models/TableAccessEntry.d.ts +0 -8
  306. package/dist/openapi_client/models/TableAccessMode.d.ts +0 -7
  307. package/dist/openapi_client/models/TableAccessMode.js +0 -12
  308. package/dist/openapi_client/models/TeamsCredentialsInput.d.ts +0 -6
  309. package/dist/openapi_client/models/TeamsSurfaceConfigInput.d.ts +0 -6
  310. package/dist/openapi_client/models/TelegramCredentialsInput.d.ts +0 -5
  311. package/dist/openapi_client/models/TelegramSurfaceConfigInput.d.ts +0 -6
  312. package/dist/openapi_client/models/WebSearchAgentRequest.d.ts +0 -9
  313. package/dist/openapi_client/models/WebSearchAgentResponse.d.ts +0 -25
  314. package/dist/openapi_client/models/WhatsAppCredentialsInput.d.ts +0 -8
  315. package/dist/openapi_client/models/WhatsAppSurfaceConfigInput.d.ts +0 -6
  316. package/dist/openapi_client/services/BillingUsageService.d.ts +0 -138
  317. package/dist/openapi_client/services/BillingUsageService.js +0 -302
  318. /package/dist/openapi_client/models/{AgentResponse.js → AccountCreateSchema.js} +0 -0
  319. /package/dist/openapi_client/models/{ApplicationAccessConfig.js → AgentActionResponse.js} +0 -0
  320. /package/dist/openapi_client/models/{DeskResponse.js → AgentDetailResponse.js} +0 -0
  321. /package/dist/openapi_client/models/{FileResponse.js → AgentHarnessInfo.js} +0 -0
  322. /package/dist/openapi_client/models/{FlowResponse.js → AgentHarnessListResponse.js} +0 -0
  323. /package/dist/openapi_client/models/{FunctionResponse.js → AgentPermissionsReplaceRequest.js} +0 -0
  324. /package/dist/openapi_client/models/{FunctionTableAccessEntry.js → AgentPermissionsResponse.js} +0 -0
  325. /package/dist/openapi_client/models/{GmailSurfaceConfigInput.js → AgentResourcePermissionRequest.js} +0 -0
  326. /package/dist/openapi_client/models/{OutlookSurfaceConfigInput.js → AgentResourcePermissionResponse.js} +0 -0
  327. /package/dist/openapi_client/models/{RecentUsageResponse.js → AgentRuntimeConfig.js} +0 -0
  328. /package/dist/openapi_client/models/{ScheduleResponse.js → AgentRuntimeProfileListResponse.js} +0 -0
  329. /package/dist/openapi_client/models/{SlackCredentialsInput.js → AgentRuntimeProfileResponse.js} +0 -0
  330. /package/dist/openapi_client/models/{SlackSurfaceConfigInput.js → AuthConfigCreateSchema.js} +0 -0
  331. /package/dist/openapi_client/models/{TableAccessEntry.js → AuthConfigListResponseSchema.js} +0 -0
  332. /package/dist/openapi_client/models/{TableResponse.js → AuthConfigResponseSchema.js} +0 -0
  333. /package/dist/openapi_client/models/{TeamsCredentialsInput.js → ComposioProviderCapabilityResponseSchema.js} +0 -0
  334. /package/dist/openapi_client/models/{TeamsSurfaceConfigInput.js → ConvertedPageResponse.js} +0 -0
  335. /package/dist/openapi_client/models/{TelegramCredentialsInput.js → CreateAnthropicCompatibleRuntimeProfileRequest.js} +0 -0
  336. /package/dist/openapi_client/models/{TelegramSurfaceConfigInput.js → CreateOpenAICompatibleRuntimeProfileRequest.js} +0 -0
  337. /package/dist/openapi_client/models/{WebSearchAgentRequest.js → CreateUserDaemonRuntimeProfileRequest.js} +0 -0
  338. /package/dist/openapi_client/models/{WebSearchAgentResponse.js → DeskDetailResponse.js} +0 -0
  339. /package/dist/openapi_client/models/{WhatsAppCredentialsInput.js → FileDetailResponse.js} +0 -0
  340. /package/dist/openapi_client/models/{WhatsAppSurfaceConfigInput.js → FlowDetailResponse.js} +0 -0
@@ -37,6 +37,7 @@ const auth_js_1 = require("./auth.js");
37
37
  Object.defineProperty(exports, "AuthManager", { enumerable: true, get: function () { return auth_js_1.AuthManager; } });
38
38
  const generated_js_1 = require("./generated.js");
39
39
  const http_js_1 = require("./http.js");
40
+ const agent_runtime_js_1 = require("./namespaces/agent-runtime.js");
40
41
  const agents_js_1 = require("./namespaces/agents.js");
41
42
  const conversations_js_1 = require("./namespaces/conversations.js");
42
43
  const desks_js_1 = require("./namespaces/desks.js");
@@ -46,10 +47,13 @@ const icons_js_1 = require("./namespaces/icons.js");
46
47
  const integrations_js_1 = require("./namespaces/integrations.js");
47
48
  const organizations_js_1 = require("./namespaces/organizations.js");
48
49
  const pod_members_js_1 = require("./namespaces/pod-members.js");
50
+ const pod_permissions_js_1 = require("./namespaces/pod-permissions.js");
49
51
  const pod_join_requests_js_1 = require("./namespaces/pod-join-requests.js");
50
52
  const pods_js_1 = require("./namespaces/pods.js");
53
+ const pod_roles_js_1 = require("./namespaces/pod-roles.js");
51
54
  const pod_surfaces_js_1 = require("./namespaces/pod-surfaces.js");
52
55
  const records_js_1 = require("./namespaces/records.js");
56
+ const resource_access_js_1 = require("./namespaces/resource-access.js");
53
57
  const resources_js_1 = require("./namespaces/resources.js");
54
58
  const schedules_js_1 = require("./namespaces/schedules.js");
55
59
  const tables_js_1 = require("./namespaces/tables.js");
@@ -75,18 +79,22 @@ class LemmaClient {
75
79
  this.files = new files_js_1.FilesNamespace(this._generated, this._http, podIdFn);
76
80
  this.functions = new functions_js_1.FunctionsNamespace(this._generated, podIdFn);
77
81
  this.agents = new agents_js_1.AgentsNamespace(this._generated, podIdFn);
82
+ this.agentRuntime = new agent_runtime_js_1.AgentRuntimeNamespace(this._generated);
78
83
  this.conversations = new conversations_js_1.ConversationsNamespace(this._http, podIdFn);
79
84
  this.workflows = new workflows_js_1.WorkflowsNamespace(this._generated, this._http, podIdFn);
80
85
  this.desks = new desks_js_1.DesksNamespace(this._generated, this._http, podIdFn);
81
- this.integrations = new integrations_js_1.IntegrationsNamespace(this._generated);
86
+ this.integrations = new integrations_js_1.IntegrationsNamespace(this._generated, this._http);
82
87
  this.resources = new resources_js_1.ResourcesNamespace(this._http);
88
+ this.resourceAccess = new resource_access_js_1.ResourceAccessNamespace(this._generated, podIdFn);
83
89
  this.schedules = new schedules_js_1.SchedulesNamespace(this._generated, podIdFn);
84
90
  this.datastore = new datastore_js_1.DatastoreNamespace(this._generated, podIdFn);
85
91
  this.users = new users_js_1.UsersNamespace(this._generated);
86
92
  this.icons = new icons_js_1.IconsNamespace(this._generated);
87
93
  this.pods = new pods_js_1.PodsNamespace(this._generated, this._http);
88
94
  this.podMembers = new pod_members_js_1.PodMembersNamespace(this._generated);
95
+ this.podPermissions = new pod_permissions_js_1.PodPermissionsNamespace(this._generated, this._http, podIdFn);
89
96
  this.podJoinRequests = new pod_join_requests_js_1.PodJoinRequestsNamespace(this._generated);
97
+ this.podRoles = new pod_roles_js_1.PodRolesNamespace(this._generated, podIdFn);
90
98
  this.organizations = new organizations_js_1.OrganizationsNamespace(this._generated, this._http);
91
99
  this.podSurfaces = new pod_surfaces_js_1.PodSurfacesNamespace(this._generated);
92
100
  }
@@ -998,125 +1006,76 @@ exports.OpenAPI = {
998
1006
  };
999
1007
 
1000
1008
  },
1001
- "./namespaces/agents.js": function (module, exports, require) {
1009
+ "./namespaces/agent-runtime.js": function (module, exports, require) {
1002
1010
  "use strict";
1003
1011
  Object.defineProperty(exports, "__esModule", { value: true });
1004
- exports.AgentsNamespace = void 0;
1005
- const AgentsService_js_1 = require("./openapi_client/services/AgentsService.js");
1006
- class AgentsNamespace {
1007
- constructor(client, podId) {
1012
+ exports.AgentRuntimeNamespace = void 0;
1013
+ const AgentRuntimeService_js_1 = require("./openapi_client/services/AgentRuntimeService.js");
1014
+ class AgentRuntimeNamespace {
1015
+ constructor(client) {
1008
1016
  this.client = client;
1009
- this.podId = podId;
1010
1017
  }
1011
- list(options = {}) {
1012
- return this.client.request(() => AgentsService_js_1.AgentsService.agentList(this.podId(), options.pageToken, options.limit ?? 100));
1018
+ listHarnesses() {
1019
+ return this.client.request(() => AgentRuntimeService_js_1.AgentRuntimeService.agentRuntimeHarnessesList());
1013
1020
  }
1014
- create(payload) {
1015
- return this.client.request(() => AgentsService_js_1.AgentsService.agentCreate(this.podId(), payload));
1021
+ listAvailableHarnesses() {
1022
+ return this.listHarnesses();
1016
1023
  }
1017
- get(agentName) {
1018
- return this.client.request(() => AgentsService_js_1.AgentsService.agentGet(this.podId(), agentName));
1024
+ listRuntimes(orgId) {
1025
+ return this.listProfiles(orgId);
1019
1026
  }
1020
- update(agentName, payload) {
1021
- return this.client.request(() => AgentsService_js_1.AgentsService.agentUpdate(this.podId(), agentName, payload));
1027
+ listProfiles(orgId) {
1028
+ return this.client.request(() => AgentRuntimeService_js_1.AgentRuntimeService.agentRuntimeProfilesList(orgId));
1022
1029
  }
1023
- delete(agentName) {
1024
- return this.client.request(() => AgentsService_js_1.AgentsService.agentDelete(this.podId(), agentName));
1030
+ createRuntime(orgId, request) {
1031
+ return this.createProfile(orgId, request);
1032
+ }
1033
+ createProfile(orgId, request) {
1034
+ return this.client.request(() => AgentRuntimeService_js_1.AgentRuntimeService.agentRuntimeProfilesCreate(orgId, request));
1035
+ }
1036
+ /**
1037
+ * @deprecated Runtime defaults are now pod config (`default_profile_id`) or
1038
+ * organization Agent Runtimes. The backend no longer exposes a global
1039
+ * default-runtime mutation endpoint.
1040
+ */
1041
+ updateDefault(agentRuntime) {
1042
+ void agentRuntime;
1043
+ return Promise.reject(new Error("agentRuntime.updateDefault is no longer supported. Update pod config.default_profile_id instead."));
1025
1044
  }
1026
1045
  }
1027
- exports.AgentsNamespace = AgentsNamespace;
1046
+ exports.AgentRuntimeNamespace = AgentRuntimeNamespace;
1028
1047
 
1029
1048
  },
1030
- "./openapi_client/services/AgentsService.js": function (module, exports, require) {
1049
+ "./openapi_client/services/AgentRuntimeService.js": function (module, exports, require) {
1031
1050
  "use strict";
1032
1051
  Object.defineProperty(exports, "__esModule", { value: true });
1033
- exports.AgentsService = void 0;
1052
+ exports.AgentRuntimeService = void 0;
1034
1053
  const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
1035
1054
  const request_js_1 = require("./openapi_client/core/request.js");
1036
- class AgentsService {
1055
+ class AgentRuntimeService {
1037
1056
  /**
1038
- * List Agents
1039
- * List pod-owned agent definitions visible to the current user.
1040
- * @param podId
1041
- * @param pageToken
1042
- * @param limit
1043
- * @returns AgentListResponse Successful Response
1057
+ * List Available Agent Harnesses
1058
+ * @returns AgentHarnessListResponse Successful Response
1044
1059
  * @throws ApiError
1045
1060
  */
1046
- static agentList(podId, pageToken, limit = 100) {
1061
+ static agentRuntimeHarnessesList() {
1047
1062
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1048
1063
  method: 'GET',
1049
- url: '/pods/{pod_id}/agents',
1050
- path: {
1051
- 'pod_id': podId,
1052
- },
1053
- query: {
1054
- 'page_token': pageToken,
1055
- 'limit': limit,
1056
- },
1057
- errors: {
1058
- 422: `Validation Error`,
1059
- },
1064
+ url: '/agent-runtime/harnesses',
1060
1065
  });
1061
1066
  }
1062
1067
  /**
1063
- * Create Agent
1064
- * Create a pod-owned agent definition with model, harness, toolsets, resource access grants, callable functions, and callable child agents.
1065
- * @param podId
1066
- * @param requestBody
1067
- * @returns AgentResponse Successful Response
1068
- * @throws ApiError
1069
- */
1070
- static agentCreate(podId, requestBody) {
1071
- return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1072
- method: 'POST',
1073
- url: '/pods/{pod_id}/agents',
1074
- path: {
1075
- 'pod_id': podId,
1076
- },
1077
- body: requestBody,
1078
- mediaType: 'application/json',
1079
- errors: {
1080
- 422: `Validation Error`,
1081
- },
1082
- });
1083
- }
1084
- /**
1085
- * Delete Agent
1086
- * Delete a pod-owned agent definition by name.
1087
- * @param podId
1088
- * @param agentName
1089
- * @returns AgentMessageResponse Successful Response
1090
- * @throws ApiError
1091
- */
1092
- static agentDelete(podId, agentName) {
1093
- return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1094
- method: 'DELETE',
1095
- url: '/pods/{pod_id}/agents/{agent_name}',
1096
- path: {
1097
- 'pod_id': podId,
1098
- 'agent_name': agentName,
1099
- },
1100
- errors: {
1101
- 422: `Validation Error`,
1102
- },
1103
- });
1104
- }
1105
- /**
1106
- * Get Agent
1107
- * Get one pod-owned agent definition by its stable name.
1108
- * @param podId
1109
- * @param agentName
1110
- * @returns AgentResponse Successful Response
1068
+ * List Available Agent Runtime Profiles
1069
+ * @param orgId
1070
+ * @returns AgentRuntimeProfileListResponse Successful Response
1111
1071
  * @throws ApiError
1112
1072
  */
1113
- static agentGet(podId, agentName) {
1073
+ static agentRuntimeProfilesList(orgId) {
1114
1074
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1115
1075
  method: 'GET',
1116
- url: '/pods/{pod_id}/agents/{agent_name}',
1076
+ url: '/organizations/{org_id}/agent-runtime/profiles',
1117
1077
  path: {
1118
- 'pod_id': podId,
1119
- 'agent_name': agentName,
1078
+ 'org_id': orgId,
1120
1079
  },
1121
1080
  errors: {
1122
1081
  422: `Validation Error`,
@@ -1124,21 +1083,18 @@ class AgentsService {
1124
1083
  });
1125
1084
  }
1126
1085
  /**
1127
- * Update Agent
1128
- * Update an agent definition, including prompt instruction, model, toolsets, schemas, and resource/tool grants.
1129
- * @param podId
1130
- * @param agentName
1086
+ * Create Agent Runtime Profile
1087
+ * @param orgId
1131
1088
  * @param requestBody
1132
- * @returns AgentResponse Successful Response
1089
+ * @returns AgentRuntimeProfileResponse Successful Response
1133
1090
  * @throws ApiError
1134
1091
  */
1135
- static agentUpdate(podId, agentName, requestBody) {
1092
+ static agentRuntimeProfilesCreate(orgId, requestBody) {
1136
1093
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1137
- method: 'PATCH',
1138
- url: '/pods/{pod_id}/agents/{agent_name}',
1094
+ method: 'POST',
1095
+ url: '/organizations/{org_id}/agent-runtime/profiles',
1139
1096
  path: {
1140
- 'pod_id': podId,
1141
- 'agent_name': agentName,
1097
+ 'org_id': orgId,
1142
1098
  },
1143
1099
  body: requestBody,
1144
1100
  mediaType: 'application/json',
@@ -1148,7 +1104,7 @@ class AgentsService {
1148
1104
  });
1149
1105
  }
1150
1106
  }
1151
- exports.AgentsService = AgentsService;
1107
+ exports.AgentRuntimeService = AgentRuntimeService;
1152
1108
 
1153
1109
  },
1154
1110
  "./openapi_client/core/request.js": function (module, exports, require) {
@@ -1566,19 +1522,220 @@ class CancelablePromise {
1566
1522
  }
1567
1523
  exports.CancelablePromise = CancelablePromise;
1568
1524
 
1525
+ },
1526
+ "./namespaces/agents.js": function (module, exports, require) {
1527
+ "use strict";
1528
+ Object.defineProperty(exports, "__esModule", { value: true });
1529
+ exports.AgentsNamespace = void 0;
1530
+ const AgentsService_js_1 = require("./openapi_client/services/AgentsService.js");
1531
+ class AgentsNamespace {
1532
+ constructor(client, podId) {
1533
+ this.client = client;
1534
+ this.podId = podId;
1535
+ this.permissions = {
1536
+ get: (agentName) => this.client.request(() => AgentsService_js_1.AgentsService.agentPermissionsGet(this.podId(), agentName)),
1537
+ replace: (agentName, payload) => this.client.request(() => AgentsService_js_1.AgentsService.agentPermissionsReplace(this.podId(), agentName, payload)),
1538
+ };
1539
+ }
1540
+ list(options = {}) {
1541
+ return this.client.request(() => AgentsService_js_1.AgentsService.agentList(this.podId(), options.pageToken, options.limit ?? 100));
1542
+ }
1543
+ create(payload) {
1544
+ return this.client.request(() => AgentsService_js_1.AgentsService.agentCreate(this.podId(), payload));
1545
+ }
1546
+ get(agentName) {
1547
+ return this.client.request(() => AgentsService_js_1.AgentsService.agentGet(this.podId(), agentName));
1548
+ }
1549
+ update(agentName, payload) {
1550
+ return this.client.request(() => AgentsService_js_1.AgentsService.agentUpdate(this.podId(), agentName, payload));
1551
+ }
1552
+ delete(agentName) {
1553
+ return this.client.request(() => AgentsService_js_1.AgentsService.agentDelete(this.podId(), agentName));
1554
+ }
1555
+ }
1556
+ exports.AgentsNamespace = AgentsNamespace;
1557
+
1558
+ },
1559
+ "./openapi_client/services/AgentsService.js": function (module, exports, require) {
1560
+ "use strict";
1561
+ Object.defineProperty(exports, "__esModule", { value: true });
1562
+ exports.AgentsService = void 0;
1563
+ const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
1564
+ const request_js_1 = require("./openapi_client/core/request.js");
1565
+ class AgentsService {
1566
+ /**
1567
+ * List Agents
1568
+ * List pod-owned agent definitions visible to the current user.
1569
+ * @param podId
1570
+ * @param pageToken
1571
+ * @param limit
1572
+ * @returns AgentListResponse Successful Response
1573
+ * @throws ApiError
1574
+ */
1575
+ static agentList(podId, pageToken, limit = 100) {
1576
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1577
+ method: 'GET',
1578
+ url: '/pods/{pod_id}/agents',
1579
+ path: {
1580
+ 'pod_id': podId,
1581
+ },
1582
+ query: {
1583
+ 'page_token': pageToken,
1584
+ 'limit': limit,
1585
+ },
1586
+ errors: {
1587
+ 422: `Validation Error`,
1588
+ },
1589
+ });
1590
+ }
1591
+ /**
1592
+ * Create Agent
1593
+ * Create a pod-owned agent definition with runtime, toolsets, and schemas.
1594
+ * @param podId
1595
+ * @param requestBody
1596
+ * @returns AgentActionResponse Successful Response
1597
+ * @throws ApiError
1598
+ */
1599
+ static agentCreate(podId, requestBody) {
1600
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1601
+ method: 'POST',
1602
+ url: '/pods/{pod_id}/agents',
1603
+ path: {
1604
+ 'pod_id': podId,
1605
+ },
1606
+ body: requestBody,
1607
+ mediaType: 'application/json',
1608
+ errors: {
1609
+ 422: `Validation Error`,
1610
+ },
1611
+ });
1612
+ }
1613
+ /**
1614
+ * Delete Agent
1615
+ * Delete a pod-owned agent definition by name.
1616
+ * @param podId
1617
+ * @param agentName
1618
+ * @returns AgentMessageResponse Successful Response
1619
+ * @throws ApiError
1620
+ */
1621
+ static agentDelete(podId, agentName) {
1622
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1623
+ method: 'DELETE',
1624
+ url: '/pods/{pod_id}/agents/{agent_name}',
1625
+ path: {
1626
+ 'pod_id': podId,
1627
+ 'agent_name': agentName,
1628
+ },
1629
+ errors: {
1630
+ 422: `Validation Error`,
1631
+ },
1632
+ });
1633
+ }
1634
+ /**
1635
+ * Get Agent
1636
+ * Get one pod-owned agent definition by its stable name.
1637
+ * @param podId
1638
+ * @param agentName
1639
+ * @returns AgentDetailResponse Successful Response
1640
+ * @throws ApiError
1641
+ */
1642
+ static agentGet(podId, agentName) {
1643
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1644
+ method: 'GET',
1645
+ url: '/pods/{pod_id}/agents/{agent_name}',
1646
+ path: {
1647
+ 'pod_id': podId,
1648
+ 'agent_name': agentName,
1649
+ },
1650
+ errors: {
1651
+ 422: `Validation Error`,
1652
+ },
1653
+ });
1654
+ }
1655
+ /**
1656
+ * Update Agent
1657
+ * Update an agent definition, including prompt instruction, runtime, toolsets, and schemas.
1658
+ * @param podId
1659
+ * @param agentName
1660
+ * @param requestBody
1661
+ * @returns AgentActionResponse Successful Response
1662
+ * @throws ApiError
1663
+ */
1664
+ static agentUpdate(podId, agentName, requestBody) {
1665
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1666
+ method: 'PATCH',
1667
+ url: '/pods/{pod_id}/agents/{agent_name}',
1668
+ path: {
1669
+ 'pod_id': podId,
1670
+ 'agent_name': agentName,
1671
+ },
1672
+ body: requestBody,
1673
+ mediaType: 'application/json',
1674
+ errors: {
1675
+ 422: `Validation Error`,
1676
+ },
1677
+ });
1678
+ }
1679
+ /**
1680
+ * Get Agent Resource Permissions
1681
+ * Get explicit resource grants assigned to an agent.
1682
+ * @param podId
1683
+ * @param agentName
1684
+ * @returns AgentPermissionsResponse Successful Response
1685
+ * @throws ApiError
1686
+ */
1687
+ static agentPermissionsGet(podId, agentName) {
1688
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1689
+ method: 'GET',
1690
+ url: '/pods/{pod_id}/agents/{agent_name}/permissions',
1691
+ path: {
1692
+ 'pod_id': podId,
1693
+ 'agent_name': agentName,
1694
+ },
1695
+ errors: {
1696
+ 422: `Validation Error`,
1697
+ },
1698
+ });
1699
+ }
1700
+ /**
1701
+ * Replace Agent Resource Permissions
1702
+ * Replace explicit resource grants assigned to an agent.
1703
+ * @param podId
1704
+ * @param agentName
1705
+ * @param requestBody
1706
+ * @returns AgentPermissionsResponse Successful Response
1707
+ * @throws ApiError
1708
+ */
1709
+ static agentPermissionsReplace(podId, agentName, requestBody) {
1710
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
1711
+ method: 'PUT',
1712
+ url: '/pods/{pod_id}/agents/{agent_name}/permissions',
1713
+ path: {
1714
+ 'pod_id': podId,
1715
+ 'agent_name': agentName,
1716
+ },
1717
+ body: requestBody,
1718
+ mediaType: 'application/json',
1719
+ errors: {
1720
+ 422: `Validation Error`,
1721
+ },
1722
+ });
1723
+ }
1724
+ }
1725
+ exports.AgentsService = AgentsService;
1726
+
1569
1727
  },
1570
1728
  "./namespaces/conversations.js": function (module, exports, require) {
1571
1729
  "use strict";
1572
1730
  Object.defineProperty(exports, "__esModule", { value: true });
1573
1731
  exports.ConversationsNamespace = void 0;
1574
- const AgentModelName_js_1 = require("./openapi_client/models/AgentModelName.js");
1575
1732
  function normalizeConversation(conversation) {
1576
1733
  if (!conversation)
1577
1734
  return conversation;
1578
1735
  const record = conversation;
1579
1736
  return {
1580
1737
  ...record,
1581
- model: record.model ?? record.model_name ?? null,
1738
+ model: record.model ?? record.agent_runtime?.model_name ?? record.model_name ?? null,
1582
1739
  status: record.status ?? "waiting",
1583
1740
  };
1584
1741
  }
@@ -1592,25 +1749,19 @@ function normalizeConversationList(response) {
1592
1749
  function normalizeMessage(message) {
1593
1750
  return message;
1594
1751
  }
1595
- function buildModelList() {
1596
- return Object.values(AgentModelName_js_1.AgentModelName).map((model) => ({
1597
- id: model,
1598
- name: model,
1599
- }));
1600
- }
1601
1752
  class ConversationsNamespace {
1602
1753
  constructor(http, podId) {
1603
1754
  this.http = http;
1604
1755
  this.podId = podId;
1756
+ this.profileCatalogPromises = new Map();
1605
1757
  this.messages = {
1606
1758
  list: (conversationId, options = {}) => {
1607
1759
  const podId = this.requirePodId(options.pod_id);
1608
- const parsedPageToken = typeof options.page_token === "string" && options.page_token.trim().length > 0
1609
- ? Number(options.page_token)
1610
- : null;
1611
1760
  return this.http.request("GET", `/pods/${podId}/conversations/${conversationId}/messages`, {
1612
1761
  params: {
1613
- after_sequence: options.after_sequence ?? (Number.isFinite(parsedPageToken) ? parsedPageToken : undefined),
1762
+ page_token: options.page_token,
1763
+ before_sequence: options.before_sequence,
1764
+ after_sequence: options.after_sequence,
1614
1765
  limit: options.limit ?? 100,
1615
1766
  },
1616
1767
  }).then((response) => ({
@@ -1625,6 +1776,20 @@ class ConversationsNamespace {
1625
1776
  });
1626
1777
  },
1627
1778
  };
1779
+ this.approvals = {
1780
+ list: (conversationId, options = {}) => {
1781
+ const podId = this.requirePodId(options.pod_id);
1782
+ return this.http.request("GET", `/pods/${podId}/conversations/${conversationId}/approvals`);
1783
+ },
1784
+ resolve: (conversationId, approvalId, payload, options = {}) => {
1785
+ const podId = this.requirePodId(options.pod_id);
1786
+ const body = {
1787
+ ...payload,
1788
+ decision: payload.decision,
1789
+ };
1790
+ return this.http.request("POST", `/pods/${podId}/conversations/${conversationId}/approvals/${approvalId}/decision`, { body });
1791
+ },
1792
+ };
1628
1793
  }
1629
1794
  resolvePodId(explicitPodId) {
1630
1795
  if (typeof explicitPodId === "string") {
@@ -1644,13 +1809,68 @@ class ConversationsNamespace {
1644
1809
  }
1645
1810
  return podId;
1646
1811
  }
1812
+ listRuntimeCatalog() {
1813
+ this.runtimeCatalogPromise ?? (this.runtimeCatalogPromise = this.http.request("GET", "/agent-runtime/harnesses"));
1814
+ return this.runtimeCatalogPromise;
1815
+ }
1816
+ listProfileCatalog(orgId) {
1817
+ const key = orgId.trim();
1818
+ const existing = this.profileCatalogPromises.get(key);
1819
+ if (existing)
1820
+ return existing;
1821
+ const request = this.http.request("GET", `/organizations/${encodeURIComponent(key)}/agent-runtime/profiles`);
1822
+ this.profileCatalogPromises.set(key, request);
1823
+ return request;
1824
+ }
1825
+ modelOptionsFromProfiles(catalog) {
1826
+ return catalog.items.flatMap((profile) => {
1827
+ const catalogEntries = profile.model_catalog ?? [];
1828
+ const entries = catalogEntries.length > 0
1829
+ ? catalogEntries
1830
+ : profile.default_model_name
1831
+ ? [{
1832
+ name: profile.default_model_name,
1833
+ display_name: null,
1834
+ provider_model_name: profile.default_model_name,
1835
+ capabilities: [],
1836
+ default_model_settings: {},
1837
+ metadata: {},
1838
+ }]
1839
+ : [];
1840
+ return entries.map((model) => ({
1841
+ id: model.name,
1842
+ name: model.display_name ?? model.name,
1843
+ agentRuntime: profile,
1844
+ agentRuntimeId: profile.id,
1845
+ profile,
1846
+ profile_id: profile.id,
1847
+ harness_kind: profile.derived_harness_kind,
1848
+ description: profile.name,
1849
+ runtime: {
1850
+ profile_id: profile.id,
1851
+ model_name: model.name,
1852
+ },
1853
+ }));
1854
+ });
1855
+ }
1856
+ async resolveAgentRuntime(agentRuntime, model, harnessKind, profileId) {
1857
+ if (agentRuntime || !model) {
1858
+ return agentRuntime;
1859
+ }
1860
+ if (profileId) {
1861
+ return {
1862
+ profile_id: profileId,
1863
+ model_name: model,
1864
+ };
1865
+ }
1866
+ void harnessKind;
1867
+ return undefined;
1868
+ }
1647
1869
  list(options = {}) {
1648
1870
  const podId = this.requirePodId(options.pod_id);
1649
1871
  return this.http.request("GET", `/pods/${podId}/conversations`, {
1650
1872
  params: {
1651
1873
  agent_name: options.agent_name,
1652
- status: options.status,
1653
- type: options.type,
1654
1874
  limit: options.limit ?? 20,
1655
1875
  page_token: options.page_token,
1656
1876
  },
@@ -1659,21 +1879,38 @@ class ConversationsNamespace {
1659
1879
  listByAgent(agentName, options = {}) {
1660
1880
  return this.list({ ...options, agent_name: agentName });
1661
1881
  }
1662
- async listModels() {
1663
- const items = buildModelList();
1882
+ async listModels(options = {}) {
1883
+ const orgId = options.orgId?.trim();
1884
+ if (orgId) {
1885
+ const catalog = await this.listProfileCatalog(orgId);
1886
+ const items = this.modelOptionsFromProfiles(catalog);
1887
+ return {
1888
+ items,
1889
+ limit: items.length,
1890
+ next_page_token: null,
1891
+ };
1892
+ }
1893
+ const catalog = await this.listRuntimeCatalog();
1894
+ const items = catalog.items.flatMap((harness) => (harness.models ?? []).map((model) => ({
1895
+ id: model,
1896
+ name: model,
1897
+ harness_kind: harness.harness_kind,
1898
+ description: harness.daemon_display_name,
1899
+ })));
1664
1900
  return {
1665
1901
  items,
1666
1902
  limit: items.length,
1667
1903
  next_page_token: null,
1668
1904
  };
1669
1905
  }
1670
- create(payload = {}) {
1906
+ async create(payload = {}) {
1671
1907
  const podId = this.requirePodId(payload.pod_id);
1672
- const { agent_name, model, model_name, pod_id, ...requestBody } = payload;
1908
+ const { agent_name, harness_kind, model, model_name, pod_id, profile_id, ...requestBody } = payload;
1909
+ const agentRuntime = await this.resolveAgentRuntime(requestBody.agent_runtime, model_name ?? model, harness_kind, profile_id);
1673
1910
  const body = {
1674
1911
  ...requestBody,
1675
1912
  agent_name: agent_name ?? undefined,
1676
- model_name: model_name ?? model,
1913
+ agent_runtime: agentRuntime,
1677
1914
  };
1678
1915
  void pod_id;
1679
1916
  return this.http.request("POST", `/pods/${podId}/conversations`, {
@@ -1691,12 +1928,13 @@ class ConversationsNamespace {
1691
1928
  return this.http.request("GET", `/pods/${podId}/conversations/${conversationId}`)
1692
1929
  .then(normalizeConversation);
1693
1930
  }
1694
- update(conversationId, payload, options = {}) {
1931
+ async update(conversationId, payload, options = {}) {
1695
1932
  const podId = this.requirePodId(options.pod_id);
1696
- const { model, model_name, ...requestBody } = payload;
1933
+ const { harness_kind, model, model_name, profile_id, ...requestBody } = payload;
1934
+ const agentRuntime = await this.resolveAgentRuntime(requestBody.agent_runtime, model_name ?? model, harness_kind, profile_id);
1697
1935
  const body = {
1698
1936
  ...requestBody,
1699
- model_name: model_name ?? model,
1937
+ agent_runtime: agentRuntime,
1700
1938
  };
1701
1939
  return this.http.request("PATCH", `/pods/${podId}/conversations/${conversationId}`, {
1702
1940
  body,
@@ -1732,30 +1970,6 @@ class ConversationsNamespace {
1732
1970
  }
1733
1971
  exports.ConversationsNamespace = ConversationsNamespace;
1734
1972
 
1735
- },
1736
- "./openapi_client/models/AgentModelName.js": function (module, exports, require) {
1737
- "use strict";
1738
- Object.defineProperty(exports, "__esModule", { value: true });
1739
- exports.AgentModelName = void 0;
1740
- /* generated using openapi-typescript-codegen -- do not edit */
1741
- /* istanbul ignore file */
1742
- /* tslint:disable */
1743
- /* eslint-disable */
1744
- /**
1745
- * Models that can be selected for an agent conversation.
1746
- */
1747
- var AgentModelName;
1748
- (function (AgentModelName) {
1749
- AgentModelName["GEMINI_PRO"] = "GEMINI_PRO";
1750
- AgentModelName["GEMINI_FLASH"] = "GEMINI_FLASH";
1751
- AgentModelName["GEMINI_FLASH_LITE"] = "GEMINI_FLASH_LITE";
1752
- AgentModelName["KIMI_K2"] = "KIMI_K2";
1753
- AgentModelName["GPT_OSS"] = "GPT_OSS";
1754
- AgentModelName["DEEPSEEK_V32"] = "DEEPSEEK_V32";
1755
- AgentModelName["GLM_5"] = "GLM_5";
1756
- AgentModelName["QWEN3_6"] = "QWEN3_6";
1757
- })(AgentModelName || (exports.AgentModelName = AgentModelName = {}));
1758
-
1759
1973
  },
1760
1974
  "./namespaces/desks.js": function (module, exports, require) {
1761
1975
  "use strict";
@@ -1834,7 +2048,7 @@ class DesksService {
1834
2048
  * Create Desk
1835
2049
  * @param podId
1836
2050
  * @param requestBody
1837
- * @returns DeskResponse Successful Response
2051
+ * @returns DeskDetailResponse Successful Response
1838
2052
  * @throws ApiError
1839
2053
  */
1840
2054
  static deskCreate(podId, requestBody) {
@@ -1875,7 +2089,7 @@ class DesksService {
1875
2089
  * Get Desk
1876
2090
  * @param podId
1877
2091
  * @param deskName
1878
- * @returns DeskResponse Successful Response
2092
+ * @returns DeskDetailResponse Successful Response
1879
2093
  * @throws ApiError
1880
2094
  */
1881
2095
  static deskGet(podId, deskName) {
@@ -1896,7 +2110,7 @@ class DesksService {
1896
2110
  * @param podId
1897
2111
  * @param deskName
1898
2112
  * @param requestBody
1899
- * @returns DeskResponse Successful Response
2113
+ * @returns DeskDetailResponse Successful Response
1900
2114
  * @throws ApiError
1901
2115
  */
1902
2116
  static deskUpdate(podId, deskName, requestBody) {
@@ -2073,8 +2287,14 @@ class FilesNamespace {
2073
2287
  },
2074
2288
  };
2075
2289
  this.converted = {
2076
- get: (path, options = {}) => (void options, this.client.request(() => FilesService_js_1.FilesService.fileConvertedGet(this.podId(), path))),
2077
- render: (path, options = {}) => (void options, this.client.request(() => FilesService_js_1.FilesService.fileConvertedRender(this.podId(), path))),
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
+ }),
2078
2298
  download: (path, artifact = "document.md", options = {}) => {
2079
2299
  void options;
2080
2300
  const encodedPath = encodeURIComponent(path);
@@ -2099,7 +2319,9 @@ class FilesNamespace {
2099
2319
  return this.client.request(() => FilesService_js_1.FilesService.fileSearch(this.podId(), {
2100
2320
  query,
2101
2321
  limit: options.limit ?? 10,
2102
- search_method: options.searchMethod ?? SearchMethod_js_1.SearchMethod.HYBRID,
2322
+ scope_mode: options.scopeMode,
2323
+ scope_path: options.scopePath,
2324
+ search_method: (options.searchMethod ?? SearchMethod_js_1.SearchMethod.HYBRID),
2103
2325
  }));
2104
2326
  }
2105
2327
  download(path, options = {}) {
@@ -2135,6 +2357,7 @@ class FilesNamespace {
2135
2357
  description: options.description,
2136
2358
  new_path: resolvedNewPath,
2137
2359
  search_enabled: options.searchEnabled,
2360
+ visibility: options.visibility,
2138
2361
  };
2139
2362
  return this.client.request(() => FilesService_js_1.FilesService.fileUpdate(this.podId(), payload));
2140
2363
  }
@@ -2195,7 +2418,7 @@ class FilesService {
2195
2418
  * Upload File
2196
2419
  * @param podId
2197
2420
  * @param formData
2198
- * @returns FileResponse Successful Response
2421
+ * @returns FileDetailResponse Successful Response
2199
2422
  * @throws ApiError
2200
2423
  */
2201
2424
  static fileUpload(podId, formData) {
@@ -2238,7 +2461,7 @@ class FilesService {
2238
2461
  * Get File
2239
2462
  * @param podId
2240
2463
  * @param path
2241
- * @returns FileResponse Successful Response
2464
+ * @returns FileDetailResponse Successful Response
2242
2465
  * @throws ApiError
2243
2466
  */
2244
2467
  static fileGet(podId, path) {
@@ -2257,21 +2480,45 @@ class FilesService {
2257
2480
  });
2258
2481
  }
2259
2482
  /**
2260
- * Update File
2483
+ * Update File
2484
+ * @param podId
2485
+ * @param formData
2486
+ * @returns FileDetailResponse Successful Response
2487
+ * @throws ApiError
2488
+ */
2489
+ static fileUpdate(podId, formData) {
2490
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
2491
+ method: 'PATCH',
2492
+ url: '/pods/{pod_id}/datastore/files/by-path',
2493
+ path: {
2494
+ 'pod_id': podId,
2495
+ },
2496
+ formData: formData,
2497
+ mediaType: 'multipart/form-data',
2498
+ errors: {
2499
+ 422: `Validation Error`,
2500
+ },
2501
+ });
2502
+ }
2503
+ /**
2504
+ * Download Converted File Archive
2261
2505
  * @param podId
2262
- * @param formData
2263
- * @returns FileResponse Successful Response
2506
+ * @param path
2507
+ * @param withAssets
2508
+ * @returns binary File bytes
2264
2509
  * @throws ApiError
2265
2510
  */
2266
- static fileUpdate(podId, formData) {
2511
+ static fileConvertedArchive(podId, path, withAssets = false) {
2267
2512
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
2268
- method: 'PATCH',
2269
- url: '/pods/{pod_id}/datastore/files/by-path',
2513
+ method: 'GET',
2514
+ url: '/pods/{pod_id}/datastore/files/converted/archive',
2270
2515
  path: {
2271
2516
  'pod_id': podId,
2272
2517
  },
2273
- formData: formData,
2274
- mediaType: 'multipart/form-data',
2518
+ query: {
2519
+ 'path': path,
2520
+ 'with_assets': withAssets,
2521
+ },
2275
2522
  errors: {
2276
2523
  422: `Validation Error`,
2277
2524
  },
@@ -2371,7 +2618,7 @@ class FilesService {
2371
2618
  * Create Folder
2372
2619
  * @param podId
2373
2620
  * @param requestBody
2374
- * @returns FileResponse Successful Response
2621
+ * @returns FileDetailResponse Successful Response
2375
2622
  * @throws ApiError
2376
2623
  */
2377
2624
  static fileFolderCreate(podId, requestBody) {
@@ -2446,6 +2693,10 @@ class FunctionsNamespace {
2446
2693
  constructor(client, podId) {
2447
2694
  this.client = client;
2448
2695
  this.podId = podId;
2696
+ this.permissions = {
2697
+ get: (name) => this.client.request(() => FunctionsService_js_1.FunctionsService.functionPermissionsGet(this.podId(), name)),
2698
+ replace: (name, payload) => this.client.request(() => FunctionsService_js_1.FunctionsService.functionPermissionsReplace(this.podId(), name, payload)),
2699
+ };
2449
2700
  this.runs = {
2450
2701
  create: (name, options = {}) => this.client.request(() => {
2451
2702
  const payload = { input_data: options.input };
@@ -2511,7 +2762,7 @@ class FunctionsService {
2511
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.
2512
2763
  * @param podId
2513
2764
  * @param requestBody
2514
- * @returns FunctionResponse Successful Response
2765
+ * @returns FunctionActionResponse Successful Response
2515
2766
  * @throws ApiError
2516
2767
  */
2517
2768
  static functionCreate(podId, requestBody) {
@@ -2554,7 +2805,7 @@ class FunctionsService {
2554
2805
  * Get a function by name
2555
2806
  * @param podId
2556
2807
  * @param functionName
2557
- * @returns FunctionResponse Successful Response
2808
+ * @returns FunctionDetailResponse Successful Response
2558
2809
  * @throws ApiError
2559
2810
  */
2560
2811
  static functionGet(podId, functionName) {
@@ -2576,7 +2827,7 @@ class FunctionsService {
2576
2827
  * @param podId
2577
2828
  * @param functionName
2578
2829
  * @param requestBody
2579
- * @returns FunctionResponse Successful Response
2830
+ * @returns FunctionActionResponse Successful Response
2580
2831
  * @throws ApiError
2581
2832
  */
2582
2833
  static functionUpdate(podId, functionName, requestBody) {
@@ -2594,6 +2845,51 @@ class FunctionsService {
2594
2845
  },
2595
2846
  });
2596
2847
  }
2848
+ /**
2849
+ * Get Function Resource Permissions
2850
+ * Get explicit resource grants assigned to a function.
2851
+ * @param podId
2852
+ * @param functionName
2853
+ * @returns FunctionPermissionsResponse Successful Response
2854
+ * @throws ApiError
2855
+ */
2856
+ static functionPermissionsGet(podId, functionName) {
2857
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
2858
+ method: 'GET',
2859
+ url: '/pods/{pod_id}/functions/{function_name}/permissions',
2860
+ path: {
2861
+ 'pod_id': podId,
2862
+ 'function_name': functionName,
2863
+ },
2864
+ errors: {
2865
+ 422: `Validation Error`,
2866
+ },
2867
+ });
2868
+ }
2869
+ /**
2870
+ * Replace Function Resource Permissions
2871
+ * Replace explicit resource grants assigned to a function.
2872
+ * @param podId
2873
+ * @param functionName
2874
+ * @param requestBody
2875
+ * @returns FunctionPermissionsResponse Successful Response
2876
+ * @throws ApiError
2877
+ */
2878
+ static functionPermissionsReplace(podId, functionName, requestBody) {
2879
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
2880
+ method: 'PUT',
2881
+ url: '/pods/{pod_id}/functions/{function_name}/permissions',
2882
+ path: {
2883
+ 'pod_id': podId,
2884
+ 'function_name': functionName,
2885
+ },
2886
+ body: requestBody,
2887
+ mediaType: 'application/json',
2888
+ errors: {
2889
+ 422: `Validation Error`,
2890
+ },
2891
+ });
2892
+ }
2597
2893
  /**
2598
2894
  * List Runs
2599
2895
  * List runs for a function
@@ -2749,23 +3045,27 @@ exports.IntegrationsNamespace = void 0;
2749
3045
  const AgentToolsService_js_1 = require("./openapi_client/services/AgentToolsService.js");
2750
3046
  const ApplicationsService_js_1 = require("./openapi_client/services/ApplicationsService.js");
2751
3047
  const IntegrationsService_js_1 = require("./openapi_client/services/IntegrationsService.js");
3048
+ function encodePath(value) {
3049
+ return encodeURIComponent(value);
3050
+ }
2752
3051
  class IntegrationsNamespace {
2753
- constructor(client) {
3052
+ constructor(client, http) {
2754
3053
  this.client = client;
3054
+ this.http = http;
2755
3055
  this.operations = {
2756
- discover: (applicationId, options = {}) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDiscover(applicationId, options.query, options.limit ?? 100)),
2757
- list: async (applicationId, options = {}) => {
2758
- const response = await this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDiscover(applicationId, options.query, options.limit ?? 100));
3056
+ discover: (scope, options = {}) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDiscover(scope.organizationId, scope.authConfigName, options.query, options.limit ?? 100)),
3057
+ list: async (scope, options = {}) => {
3058
+ const response = await this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDiscover(scope.organizationId, scope.authConfigName, options.query, options.limit ?? 100));
2759
3059
  return response.items ?? [];
2760
3060
  },
2761
- get: (applicationId, operationName) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDetail(applicationId, operationName)),
2762
- details: (applicationId, operationNames) => {
3061
+ get: (scope, operationName) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDetail(scope.organizationId, scope.authConfigName, operationName)),
3062
+ details: (scope, operationNames) => {
2763
3063
  const body = { operation_names: operationNames };
2764
- return this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDetailsBatch(applicationId, body));
3064
+ return this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationDetailsBatch(scope.organizationId, scope.authConfigName, body));
2765
3065
  },
2766
- execute: (applicationId, operationName, payload, accountId) => {
3066
+ execute: (scope, operationName, payload, accountId) => {
2767
3067
  const body = { payload, account_id: accountId };
2768
- return this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationExecute(applicationId, operationName, body));
3068
+ return this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationOperationExecute(scope.organizationId, scope.authConfigName, operationName, body));
2769
3069
  },
2770
3070
  };
2771
3071
  this.triggers = {
@@ -2773,10 +3073,28 @@ class IntegrationsNamespace {
2773
3073
  get: (triggerId) => this.client.request(() => ApplicationsService_js_1.ApplicationsService.applicationTriggerGet(triggerId)),
2774
3074
  };
2775
3075
  this.accounts = {
2776
- list: (options = {}) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountList(options.applicationId, options.limit ?? 100, options.pageToken)),
2777
- get: (accountId) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountGet(accountId)),
2778
- credentials: (accountId) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountCredentialsGet(accountId)),
2779
- delete: (accountId) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountDelete(accountId)),
3076
+ list: (organizationId, options = {}) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountList(organizationId, options.applicationId, options.limit ?? 100, options.pageToken)),
3077
+ create: (organizationId, payload) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountCreate(organizationId, payload)),
3078
+ get: (organizationId, accountId) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountGet(organizationId, accountId)),
3079
+ credentials: (organizationId, accountId) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountCredentialsGet(organizationId, accountId)),
3080
+ delete: (organizationId, accountId) => this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationAccountDelete(organizationId, accountId)),
3081
+ /**
3082
+ * @deprecated Use list/get/create with an organization id. Kept only for
3083
+ * callers that still need the response shape while migrating.
3084
+ */
3085
+ listOrgScoped: (organizationId, options = {}) => this.http.request("GET", `/organizations/${encodePath(organizationId)}/integrations/accounts`, {
3086
+ params: {
3087
+ application_id: options.applicationId,
3088
+ limit: options.limit ?? 100,
3089
+ page_token: options.pageToken,
3090
+ },
3091
+ }),
3092
+ };
3093
+ 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)),
2780
3098
  };
2781
3099
  }
2782
3100
  list(options = {}) {
@@ -2792,9 +3110,22 @@ class IntegrationsNamespace {
2792
3110
  };
2793
3111
  return this.client.request(() => AgentToolsService_js_1.AgentToolsService.agentToolIntegrationHelperAgent(body));
2794
3112
  }
2795
- createConnectRequest(applicationId) {
2796
- const payload = { application_id: applicationId };
2797
- return this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationConnectRequestCreate(payload));
3113
+ async enableApp(organizationId, applicationId, options = {}) {
3114
+ const configs = await this.authConfigs.list(organizationId, { limit: 100 });
3115
+ const existing = configs.items.find((config) => config.application_id === applicationId && config.status === "ACTIVE");
3116
+ if (existing)
3117
+ return existing;
3118
+ return this.authConfigs.create(organizationId, {
3119
+ application_id: applicationId,
3120
+ provider: options.provider,
3121
+ config_source: options.config_source ?? "SYSTEM_DEFAULT",
3122
+ credential_config: options.credential_config ?? options.provider_config,
3123
+ name: options.name,
3124
+ });
3125
+ }
3126
+ createConnectRequest(organizationId, input) {
3127
+ const payload = typeof input === "string" ? { application_id: input } : input;
3128
+ return this.client.request(() => IntegrationsService_js_1.IntegrationsService.integrationConnectRequestCreate(organizationId, payload));
2798
3129
  }
2799
3130
  }
2800
3131
  exports.IntegrationsNamespace = IntegrationsNamespace;
@@ -2861,24 +3192,6 @@ class AgentToolsService {
2861
3192
  },
2862
3193
  });
2863
3194
  }
2864
- /**
2865
- * Agent Web Search Agent
2866
- * Run the multi-step web search agent and return a synthesized answer.
2867
- * @param requestBody
2868
- * @returns WebSearchAgentResponse Successful Response
2869
- * @throws ApiError
2870
- */
2871
- static agentToolWebSearchAgent(requestBody) {
2872
- return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
2873
- method: 'POST',
2874
- url: '/tools/web-search-agent',
2875
- body: requestBody,
2876
- mediaType: 'application/json',
2877
- errors: {
2878
- 422: `Validation Error`,
2879
- },
2880
- });
2881
- }
2882
3195
  }
2883
3196
  exports.AgentToolsService = AgentToolsService;
2884
3197
 
@@ -2976,18 +3289,20 @@ class ApplicationsService {
2976
3289
  }
2977
3290
  /**
2978
3291
  * Discover Application Operations
2979
- * @param applicationId
3292
+ * @param organizationId
3293
+ * @param authConfigName
2980
3294
  * @param query
2981
3295
  * @param limit
2982
3296
  * @returns OperationDiscoverResponse Successful Response
2983
3297
  * @throws ApiError
2984
3298
  */
2985
- static applicationOperationDiscover(applicationId, query, limit = 100) {
3299
+ static applicationOperationDiscover(organizationId, authConfigName, query, limit = 100) {
2986
3300
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
2987
3301
  method: 'GET',
2988
- url: '/integrations/applications/{application_id}/operations',
3302
+ url: '/organizations/{organization_id}/integrations/{auth_config_name}/operations',
2989
3303
  path: {
2990
- 'application_id': applicationId,
3304
+ 'organization_id': organizationId,
3305
+ 'auth_config_name': authConfigName,
2991
3306
  },
2992
3307
  query: {
2993
3308
  'query': query,
@@ -3000,17 +3315,19 @@ class ApplicationsService {
3000
3315
  }
3001
3316
  /**
3002
3317
  * Get Application Operation Details In Batch
3003
- * @param applicationId
3318
+ * @param organizationId
3319
+ * @param authConfigName
3004
3320
  * @param requestBody
3005
3321
  * @returns OperationDetailsBatchResponse Successful Response
3006
3322
  * @throws ApiError
3007
3323
  */
3008
- static applicationOperationDetailsBatch(applicationId, requestBody) {
3324
+ static applicationOperationDetailsBatch(organizationId, authConfigName, requestBody) {
3009
3325
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3010
3326
  method: 'POST',
3011
- url: '/integrations/applications/{application_id}/operations/details',
3327
+ url: '/organizations/{organization_id}/integrations/{auth_config_name}/operations/details',
3012
3328
  path: {
3013
- 'application_id': applicationId,
3329
+ 'organization_id': organizationId,
3330
+ 'auth_config_name': authConfigName,
3014
3331
  },
3015
3332
  body: requestBody,
3016
3333
  mediaType: 'application/json',
@@ -3021,17 +3338,19 @@ class ApplicationsService {
3021
3338
  }
3022
3339
  /**
3023
3340
  * Get Application Operation Details
3024
- * @param applicationId
3341
+ * @param organizationId
3342
+ * @param authConfigName
3025
3343
  * @param operationName
3026
3344
  * @returns OperationDetail Successful Response
3027
3345
  * @throws ApiError
3028
3346
  */
3029
- static applicationOperationDetail(applicationId, operationName) {
3347
+ static applicationOperationDetail(organizationId, authConfigName, operationName) {
3030
3348
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3031
3349
  method: 'GET',
3032
- url: '/integrations/applications/{application_id}/operations/{operation_name}',
3350
+ url: '/organizations/{organization_id}/integrations/{auth_config_name}/operations/{operation_name}',
3033
3351
  path: {
3034
- 'application_id': applicationId,
3352
+ 'organization_id': organizationId,
3353
+ 'auth_config_name': authConfigName,
3035
3354
  'operation_name': operationName,
3036
3355
  },
3037
3356
  errors: {
@@ -3041,18 +3360,20 @@ class ApplicationsService {
3041
3360
  }
3042
3361
  /**
3043
3362
  * Execute Application Operation
3044
- * @param applicationId
3363
+ * @param organizationId
3364
+ * @param authConfigName
3045
3365
  * @param operationName
3046
3366
  * @param requestBody
3047
3367
  * @returns OperationExecutionResponse Successful Response
3048
3368
  * @throws ApiError
3049
3369
  */
3050
- static applicationOperationExecute(applicationId, operationName, requestBody) {
3370
+ static applicationOperationExecute(organizationId, authConfigName, operationName, requestBody) {
3051
3371
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3052
3372
  method: 'POST',
3053
- url: '/integrations/applications/{application_id}/operations/{operation_name}/execute',
3373
+ url: '/organizations/{organization_id}/integrations/{auth_config_name}/operations/{operation_name}/execute',
3054
3374
  path: {
3055
- 'application_id': applicationId,
3375
+ 'organization_id': organizationId,
3376
+ 'auth_config_name': authConfigName,
3056
3377
  'operation_name': operationName,
3057
3378
  },
3058
3379
  body: requestBody,
@@ -3073,19 +3394,44 @@ exports.IntegrationsService = void 0;
3073
3394
  const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
3074
3395
  const request_js_1 = require("./openapi_client/core/request.js");
3075
3396
  class IntegrationsService {
3397
+ /**
3398
+ * OAuth Callback
3399
+ * Handle OAuth callback and complete account connection. This endpoint is public and uses state parameter for security.
3400
+ * @param error
3401
+ * @param format
3402
+ * @returns string Successful Response
3403
+ * @throws ApiError
3404
+ */
3405
+ static integrationOauthCallback(error, format) {
3406
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3407
+ method: 'GET',
3408
+ url: '/integrations/connect-requests/oauth/callback',
3409
+ query: {
3410
+ 'error': error,
3411
+ 'format': format,
3412
+ },
3413
+ errors: {
3414
+ 422: `Validation Error`,
3415
+ },
3416
+ });
3417
+ }
3076
3418
  /**
3077
3419
  * List Accounts
3078
3420
  * Get all connected accounts for the current user. Optionally filter by application_id or application_name
3421
+ * @param organizationId
3079
3422
  * @param applicationId
3080
3423
  * @param limit
3081
3424
  * @param pageToken
3082
3425
  * @returns AccountListResponseSchema Successful Response
3083
3426
  * @throws ApiError
3084
3427
  */
3085
- static integrationAccountList(applicationId, limit = 100, pageToken) {
3428
+ static integrationAccountList(organizationId, applicationId, limit = 100, pageToken) {
3086
3429
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3087
3430
  method: 'GET',
3088
- url: '/integrations/accounts',
3431
+ url: '/organizations/{organization_id}/integrations/accounts',
3432
+ path: {
3433
+ 'organization_id': organizationId,
3434
+ },
3089
3435
  query: {
3090
3436
  'application_id': applicationId,
3091
3437
  'limit': limit,
@@ -3096,18 +3442,42 @@ class IntegrationsService {
3096
3442
  },
3097
3443
  });
3098
3444
  }
3445
+ /**
3446
+ * Create Account
3447
+ * Directly connect a credential-managed native account for an org auth config.
3448
+ * @param organizationId
3449
+ * @param requestBody
3450
+ * @returns AccountResponseSchema Successful Response
3451
+ * @throws ApiError
3452
+ */
3453
+ static integrationAccountCreate(organizationId, requestBody) {
3454
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3455
+ method: 'POST',
3456
+ url: '/organizations/{organization_id}/integrations/accounts',
3457
+ path: {
3458
+ 'organization_id': organizationId,
3459
+ },
3460
+ body: requestBody,
3461
+ mediaType: 'application/json',
3462
+ errors: {
3463
+ 422: `Validation Error`,
3464
+ },
3465
+ });
3466
+ }
3099
3467
  /**
3100
3468
  * Delete Account
3101
3469
  * Delete a connected account and revoke the connection
3470
+ * @param organizationId
3102
3471
  * @param accountId
3103
3472
  * @returns MessageResponseSchema Successful Response
3104
3473
  * @throws ApiError
3105
3474
  */
3106
- static integrationAccountDelete(accountId) {
3475
+ static integrationAccountDelete(organizationId, accountId) {
3107
3476
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3108
3477
  method: 'DELETE',
3109
- url: '/integrations/accounts/{account_id}',
3478
+ url: '/organizations/{organization_id}/integrations/accounts/{account_id}',
3110
3479
  path: {
3480
+ 'organization_id': organizationId,
3111
3481
  'account_id': accountId,
3112
3482
  },
3113
3483
  errors: {
@@ -3118,15 +3488,17 @@ class IntegrationsService {
3118
3488
  /**
3119
3489
  * Get Account
3120
3490
  * Get a specific account by ID
3491
+ * @param organizationId
3121
3492
  * @param accountId
3122
3493
  * @returns AccountResponseSchema Successful Response
3123
3494
  * @throws ApiError
3124
3495
  */
3125
- static integrationAccountGet(accountId) {
3496
+ static integrationAccountGet(organizationId, accountId) {
3126
3497
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3127
3498
  method: 'GET',
3128
- url: '/integrations/accounts/{account_id}',
3499
+ url: '/organizations/{organization_id}/integrations/accounts/{account_id}',
3129
3500
  path: {
3501
+ 'organization_id': organizationId,
3130
3502
  'account_id': accountId,
3131
3503
  },
3132
3504
  errors: {
@@ -3137,15 +3509,17 @@ class IntegrationsService {
3137
3509
  /**
3138
3510
  * Get Credentials
3139
3511
  * Get the credentials for a specific account
3512
+ * @param organizationId
3140
3513
  * @param accountId
3141
3514
  * @returns AccountCredentialsResponseSchema Successful Response
3142
3515
  * @throws ApiError
3143
3516
  */
3144
- static integrationAccountCredentialsGet(accountId) {
3517
+ static integrationAccountCredentialsGet(organizationId, accountId) {
3145
3518
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3146
3519
  method: 'GET',
3147
- url: '/integrations/accounts/{account_id}/credentials',
3520
+ url: '/organizations/{organization_id}/integrations/accounts/{account_id}/credentials',
3148
3521
  path: {
3522
+ 'organization_id': organizationId,
3149
3523
  'account_id': accountId,
3150
3524
  },
3151
3525
  errors: {
@@ -3154,16 +3528,43 @@ class IntegrationsService {
3154
3528
  });
3155
3529
  }
3156
3530
  /**
3157
- * Initiate Connect Request
3158
- * Initiate an OAuth connection request for an application
3531
+ * List Auth Configs
3532
+ * @param organizationId
3533
+ * @param limit
3534
+ * @param pageToken
3535
+ * @returns AuthConfigListResponseSchema Successful Response
3536
+ * @throws ApiError
3537
+ */
3538
+ static listAuthConfigsOrganizationsOrganizationIdIntegrationsAuthConfigsGet(organizationId, limit = 100, pageToken) {
3539
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3540
+ method: 'GET',
3541
+ url: '/organizations/{organization_id}/integrations/auth-configs',
3542
+ path: {
3543
+ 'organization_id': organizationId,
3544
+ },
3545
+ query: {
3546
+ 'limit': limit,
3547
+ 'page_token': pageToken,
3548
+ },
3549
+ errors: {
3550
+ 422: `Validation Error`,
3551
+ },
3552
+ });
3553
+ }
3554
+ /**
3555
+ * Create Auth Config
3556
+ * @param organizationId
3159
3557
  * @param requestBody
3160
- * @returns ConnectRequestResponseSchema Successful Response
3558
+ * @returns AuthConfigResponseSchema Successful Response
3161
3559
  * @throws ApiError
3162
3560
  */
3163
- static integrationConnectRequestCreate(requestBody) {
3561
+ static createAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsPost(organizationId, requestBody) {
3164
3562
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3165
3563
  method: 'POST',
3166
- url: '/integrations/connect-requests',
3564
+ url: '/organizations/{organization_id}/integrations/auth-configs',
3565
+ path: {
3566
+ 'organization_id': organizationId,
3567
+ },
3167
3568
  body: requestBody,
3168
3569
  mediaType: 'application/json',
3169
3570
  errors: {
@@ -3172,21 +3573,62 @@ class IntegrationsService {
3172
3573
  });
3173
3574
  }
3174
3575
  /**
3175
- * OAuth Callback
3176
- * Handle OAuth callback and complete account connection. This endpoint is public and uses state parameter for security.
3177
- * @param error
3178
- * @param format
3179
- * @returns string Successful Response
3576
+ * Delete Auth Config
3577
+ * @param organizationId
3578
+ * @param authConfigName
3579
+ * @returns boolean Successful Response
3180
3580
  * @throws ApiError
3181
3581
  */
3182
- static integrationOauthCallback(error, format) {
3582
+ static deleteAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsAuthConfigNameDelete(organizationId, authConfigName) {
3583
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3584
+ method: 'DELETE',
3585
+ url: '/organizations/{organization_id}/integrations/auth-configs/{auth_config_name}',
3586
+ path: {
3587
+ 'organization_id': organizationId,
3588
+ 'auth_config_name': authConfigName,
3589
+ },
3590
+ errors: {
3591
+ 422: `Validation Error`,
3592
+ },
3593
+ });
3594
+ }
3595
+ /**
3596
+ * Get Auth Config
3597
+ * @param organizationId
3598
+ * @param authConfigName
3599
+ * @returns AuthConfigResponseSchema Successful Response
3600
+ * @throws ApiError
3601
+ */
3602
+ static getAuthConfigOrganizationsOrganizationIdIntegrationsAuthConfigsAuthConfigNameGet(organizationId, authConfigName) {
3183
3603
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3184
3604
  method: 'GET',
3185
- url: '/integrations/connect-requests/oauth/callback',
3186
- query: {
3187
- 'error': error,
3188
- 'format': format,
3605
+ url: '/organizations/{organization_id}/integrations/auth-configs/{auth_config_name}',
3606
+ path: {
3607
+ 'organization_id': organizationId,
3608
+ 'auth_config_name': authConfigName,
3609
+ },
3610
+ errors: {
3611
+ 422: `Validation Error`,
3612
+ },
3613
+ });
3614
+ }
3615
+ /**
3616
+ * Initiate Connect Request
3617
+ * Initiate an OAuth connection request for an application
3618
+ * @param organizationId
3619
+ * @param requestBody
3620
+ * @returns ConnectRequestResponseSchema Successful Response
3621
+ * @throws ApiError
3622
+ */
3623
+ static integrationConnectRequestCreate(organizationId, requestBody) {
3624
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3625
+ method: 'POST',
3626
+ url: '/organizations/{organization_id}/integrations/connect-requests',
3627
+ path: {
3628
+ 'organization_id': organizationId,
3189
3629
  },
3630
+ body: requestBody,
3631
+ mediaType: 'application/json',
3190
3632
  errors: {
3191
3633
  422: `Validation Error`,
3192
3634
  },
@@ -3487,6 +3929,25 @@ class OrganizationsService {
3487
3929
  },
3488
3930
  });
3489
3931
  }
3932
+ /**
3933
+ * Join Auto-Join Organization
3934
+ * Join an organization when the current user's email domain is allowed to auto-join
3935
+ * @param orgId
3936
+ * @returns OrganizationResponse Successful Response
3937
+ * @throws ApiError
3938
+ */
3939
+ static orgJoinAutoJoin(orgId) {
3940
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3941
+ method: 'POST',
3942
+ url: '/organizations/{org_id}/join',
3943
+ path: {
3944
+ 'org_id': orgId,
3945
+ },
3946
+ errors: {
3947
+ 422: `Validation Error`,
3948
+ },
3949
+ });
3950
+ }
3490
3951
  /**
3491
3952
  * List Organization Members
3492
3953
  * Get all members of an organization
@@ -3606,7 +4067,10 @@ class PodMembersNamespace {
3606
4067
  return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberLookupByUserId(podId, userId));
3607
4068
  }
3608
4069
  updateRole(podId, podMemberId, role) {
3609
- return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberUpdateRole(podId, podMemberId, { role }));
4070
+ return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberUpdateRoles(podId, podMemberId, { roles: [role] }));
4071
+ }
4072
+ updateRoles(podId, podMemberId, roles) {
4073
+ return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberUpdateRoles(podId, podMemberId, { roles }));
3610
4074
  }
3611
4075
  remove(podId, podMemberId) {
3612
4076
  return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberRemove(podId, podMemberId));
@@ -3756,55 +4220,100 @@ class PodMembersService {
3756
4220
  });
3757
4221
  }
3758
4222
  /**
3759
- * Update Member Role
3760
- * Update a pod member's role
4223
+ * Update Member Roles
4224
+ * Update a pod member's roles
4225
+ * @param podId
4226
+ * @param podMemberId
4227
+ * @param requestBody
4228
+ * @returns PodMemberResponse Successful Response
4229
+ * @throws ApiError
4230
+ */
4231
+ static podMemberUpdateRoles(podId, podMemberId, requestBody) {
4232
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4233
+ method: 'PATCH',
4234
+ url: '/pods/{pod_id}/members/{pod_member_id}/roles',
4235
+ path: {
4236
+ 'pod_id': podId,
4237
+ 'pod_member_id': podMemberId,
4238
+ },
4239
+ body: requestBody,
4240
+ mediaType: 'application/json',
4241
+ errors: {
4242
+ 422: `Validation Error`,
4243
+ },
4244
+ });
4245
+ }
4246
+ }
4247
+ exports.PodMembersService = PodMembersService;
4248
+
4249
+ },
4250
+ "./namespaces/pod-permissions.js": function (module, exports, require) {
4251
+ "use strict";
4252
+ Object.defineProperty(exports, "__esModule", { value: true });
4253
+ exports.PodPermissionsNamespace = void 0;
4254
+ const PodPermissionsService_js_1 = require("./openapi_client/services/PodPermissionsService.js");
4255
+ class PodPermissionsNamespace {
4256
+ constructor(client, http, podId) {
4257
+ this.client = client;
4258
+ this.http = http;
4259
+ this.podId = podId;
4260
+ }
4261
+ catalog(podId) {
4262
+ return this.client.request(() => PodPermissionsService_js_1.PodPermissionsService.podPermissionsCatalog(podId ?? this.podId()));
4263
+ }
4264
+ me(podId) {
4265
+ const targetPodId = encodeURIComponent(podId ?? this.podId());
4266
+ return this.http.request("GET", `/pods/${targetPodId}/permissions/me`);
4267
+ }
4268
+ }
4269
+ exports.PodPermissionsNamespace = PodPermissionsNamespace;
4270
+
4271
+ },
4272
+ "./openapi_client/services/PodPermissionsService.js": function (module, exports, require) {
4273
+ "use strict";
4274
+ Object.defineProperty(exports, "__esModule", { value: true });
4275
+ exports.PodPermissionsService = void 0;
4276
+ const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
4277
+ const request_js_1 = require("./openapi_client/core/request.js");
4278
+ class PodPermissionsService {
4279
+ /**
4280
+ * Get Pod Permission Catalog
3761
4281
  * @param podId
3762
- * @param podMemberId
3763
- * @param requestBody
3764
- * @returns PodMemberResponse Successful Response
4282
+ * @returns PodPermissionCatalogResponse Successful Response
3765
4283
  * @throws ApiError
3766
4284
  */
3767
- static podMemberUpdateRole(podId, podMemberId, requestBody) {
4285
+ static podPermissionsCatalog(podId) {
3768
4286
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3769
- method: 'PATCH',
3770
- url: '/pods/{pod_id}/members/{pod_member_id}/role',
4287
+ method: 'GET',
4288
+ url: '/pods/{pod_id}/permissions/catalog',
3771
4289
  path: {
3772
4290
  'pod_id': podId,
3773
- 'pod_member_id': podMemberId,
3774
4291
  },
3775
- body: requestBody,
3776
- mediaType: 'application/json',
3777
4292
  errors: {
3778
4293
  422: `Validation Error`,
3779
4294
  },
3780
4295
  });
3781
4296
  }
3782
4297
  /**
3783
- * Update Member Roles
3784
- * Update a pod member's roles
4298
+ * Get My Pod Permissions
3785
4299
  * @param podId
3786
- * @param podMemberId
3787
- * @param requestBody
3788
- * @returns PodMemberResponse Successful Response
4300
+ * @returns PodEffectivePermissionsResponse Successful Response
3789
4301
  * @throws ApiError
3790
4302
  */
3791
- static podMemberUpdateRoles(podId, podMemberId, requestBody) {
4303
+ static podPermissionsMe(podId) {
3792
4304
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3793
- method: 'PATCH',
3794
- url: '/pods/{pod_id}/members/{pod_member_id}/roles',
4305
+ method: 'GET',
4306
+ url: '/pods/{pod_id}/permissions/me',
3795
4307
  path: {
3796
4308
  'pod_id': podId,
3797
- 'pod_member_id': podMemberId,
3798
4309
  },
3799
- body: requestBody,
3800
- mediaType: 'application/json',
3801
4310
  errors: {
3802
4311
  422: `Validation Error`,
3803
4312
  },
3804
4313
  });
3805
4314
  }
3806
4315
  }
3807
- exports.PodMembersService = PodMembersService;
4316
+ exports.PodPermissionsService = PodPermissionsService;
3808
4317
 
3809
4318
  },
3810
4319
  "./namespaces/pod-join-requests.js": function (module, exports, require) {
@@ -4154,6 +4663,172 @@ class PodsService {
4154
4663
  }
4155
4664
  exports.PodsService = PodsService;
4156
4665
 
4666
+ },
4667
+ "./namespaces/pod-roles.js": function (module, exports, require) {
4668
+ "use strict";
4669
+ Object.defineProperty(exports, "__esModule", { value: true });
4670
+ exports.PodRolesNamespace = void 0;
4671
+ const PodRolesService_js_1 = require("./openapi_client/services/PodRolesService.js");
4672
+ class PodRolesNamespace {
4673
+ constructor(client, podId) {
4674
+ this.client = client;
4675
+ this.podId = podId;
4676
+ this.permissions = {
4677
+ get: (roleName, podId) => this.client.request(() => PodRolesService_js_1.PodRolesService.podRolePermissionsGet(podId ?? this.podId(), roleName)),
4678
+ replace: (roleName, payload, podId) => this.client.request(() => PodRolesService_js_1.PodRolesService.podRolePermissionsReplace(podId ?? this.podId(), roleName, payload)),
4679
+ };
4680
+ }
4681
+ list(podId) {
4682
+ return this.client.request(() => PodRolesService_js_1.PodRolesService.podRolesList(podId ?? this.podId()));
4683
+ }
4684
+ create(payload, podId) {
4685
+ return this.client.request(() => PodRolesService_js_1.PodRolesService.podRolesCreate(podId ?? this.podId(), payload));
4686
+ }
4687
+ update(roleName, payload, podId) {
4688
+ return this.client.request(() => PodRolesService_js_1.PodRolesService.podRolesUpdate(podId ?? this.podId(), roleName, payload));
4689
+ }
4690
+ delete(roleName, podId) {
4691
+ return this.client.request(() => PodRolesService_js_1.PodRolesService.podRolesDelete(podId ?? this.podId(), roleName));
4692
+ }
4693
+ }
4694
+ exports.PodRolesNamespace = PodRolesNamespace;
4695
+
4696
+ },
4697
+ "./openapi_client/services/PodRolesService.js": function (module, exports, require) {
4698
+ "use strict";
4699
+ Object.defineProperty(exports, "__esModule", { value: true });
4700
+ exports.PodRolesService = void 0;
4701
+ const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
4702
+ const request_js_1 = require("./openapi_client/core/request.js");
4703
+ class PodRolesService {
4704
+ /**
4705
+ * List Pod Roles
4706
+ * @param podId
4707
+ * @returns PodRoleListResponse Successful Response
4708
+ * @throws ApiError
4709
+ */
4710
+ static podRolesList(podId) {
4711
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4712
+ method: 'GET',
4713
+ url: '/pods/{pod_id}/roles',
4714
+ path: {
4715
+ 'pod_id': podId,
4716
+ },
4717
+ errors: {
4718
+ 422: `Validation Error`,
4719
+ },
4720
+ });
4721
+ }
4722
+ /**
4723
+ * Create Pod Role
4724
+ * @param podId
4725
+ * @param requestBody
4726
+ * @returns PodRoleResponse Successful Response
4727
+ * @throws ApiError
4728
+ */
4729
+ static podRolesCreate(podId, requestBody) {
4730
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4731
+ method: 'POST',
4732
+ url: '/pods/{pod_id}/roles',
4733
+ path: {
4734
+ 'pod_id': podId,
4735
+ },
4736
+ body: requestBody,
4737
+ mediaType: 'application/json',
4738
+ errors: {
4739
+ 422: `Validation Error`,
4740
+ },
4741
+ });
4742
+ }
4743
+ /**
4744
+ * Delete Pod Role
4745
+ * @param podId
4746
+ * @param roleName
4747
+ * @returns void
4748
+ * @throws ApiError
4749
+ */
4750
+ static podRolesDelete(podId, roleName) {
4751
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4752
+ method: 'DELETE',
4753
+ url: '/pods/{pod_id}/roles/{role_name}',
4754
+ path: {
4755
+ 'pod_id': podId,
4756
+ 'role_name': roleName,
4757
+ },
4758
+ errors: {
4759
+ 422: `Validation Error`,
4760
+ },
4761
+ });
4762
+ }
4763
+ /**
4764
+ * Update Pod Role
4765
+ * @param podId
4766
+ * @param roleName
4767
+ * @param requestBody
4768
+ * @returns PodRoleResponse Successful Response
4769
+ * @throws ApiError
4770
+ */
4771
+ static podRolesUpdate(podId, roleName, requestBody) {
4772
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4773
+ method: 'PATCH',
4774
+ url: '/pods/{pod_id}/roles/{role_name}',
4775
+ path: {
4776
+ 'pod_id': podId,
4777
+ 'role_name': roleName,
4778
+ },
4779
+ body: requestBody,
4780
+ mediaType: 'application/json',
4781
+ errors: {
4782
+ 422: `Validation Error`,
4783
+ },
4784
+ });
4785
+ }
4786
+ /**
4787
+ * Get Pod Role Permissions
4788
+ * @param podId
4789
+ * @param roleName
4790
+ * @returns PodRolePermissionsResponse Successful Response
4791
+ * @throws ApiError
4792
+ */
4793
+ static podRolePermissionsGet(podId, roleName) {
4794
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4795
+ method: 'GET',
4796
+ url: '/pods/{pod_id}/roles/{role_name}/permissions',
4797
+ path: {
4798
+ 'pod_id': podId,
4799
+ 'role_name': roleName,
4800
+ },
4801
+ errors: {
4802
+ 422: `Validation Error`,
4803
+ },
4804
+ });
4805
+ }
4806
+ /**
4807
+ * Replace Pod Role Permissions
4808
+ * @param podId
4809
+ * @param roleName
4810
+ * @param requestBody
4811
+ * @returns PodRolePermissionsResponse Successful Response
4812
+ * @throws ApiError
4813
+ */
4814
+ static podRolePermissionsReplace(podId, roleName, requestBody) {
4815
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4816
+ method: 'PUT',
4817
+ url: '/pods/{pod_id}/roles/{role_name}/permissions',
4818
+ path: {
4819
+ 'pod_id': podId,
4820
+ 'role_name': roleName,
4821
+ },
4822
+ body: requestBody,
4823
+ mediaType: 'application/json',
4824
+ errors: {
4825
+ 422: `Validation Error`,
4826
+ },
4827
+ });
4828
+ }
4829
+ }
4830
+ exports.PodRolesService = PodRolesService;
4831
+
4157
4832
  },
4158
4833
  "./namespaces/pod-surfaces.js": function (module, exports, require) {
4159
4834
  "use strict";
@@ -4255,6 +4930,26 @@ class AgentSurfacesService {
4255
4930
  },
4256
4931
  });
4257
4932
  }
4933
+ /**
4934
+ * Delete Surface
4935
+ * @param podId
4936
+ * @param surfaceId
4937
+ * @returns void
4938
+ * @throws ApiError
4939
+ */
4940
+ static agentSurfaceDelete(podId, surfaceId) {
4941
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4942
+ method: 'DELETE',
4943
+ url: '/pods/{pod_id}/surfaces/{surface_id}',
4944
+ path: {
4945
+ 'pod_id': podId,
4946
+ 'surface_id': surfaceId,
4947
+ },
4948
+ errors: {
4949
+ 422: `Validation Error`,
4950
+ },
4951
+ });
4952
+ }
4258
4953
  /**
4259
4954
  * Get Surface
4260
4955
  * @param podId
@@ -4341,26 +5036,6 @@ class AgentSurfacesService {
4341
5036
  },
4342
5037
  });
4343
5038
  }
4344
- /**
4345
- * Get Webhook Url
4346
- * @param podId
4347
- * @param surfaceId
4348
- * @returns any Successful Response
4349
- * @throws ApiError
4350
- */
4351
- static agentSurfaceWebhookUrl(podId, surfaceId) {
4352
- return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
4353
- method: 'GET',
4354
- url: '/pods/{pod_id}/surfaces/{surface_id}/webhook-url',
4355
- path: {
4356
- 'pod_id': podId,
4357
- 'surface_id': surfaceId,
4358
- },
4359
- errors: {
4360
- 422: `Validation Error`,
4361
- },
4362
- });
4363
- }
4364
5039
  }
4365
5040
  exports.AgentSurfacesService = AgentSurfacesService;
4366
5041
 
@@ -4667,6 +5342,117 @@ class RecordsService {
4667
5342
  }
4668
5343
  exports.RecordsService = RecordsService;
4669
5344
 
5345
+ },
5346
+ "./namespaces/resource-access.js": function (module, exports, require) {
5347
+ "use strict";
5348
+ Object.defineProperty(exports, "__esModule", { value: true });
5349
+ exports.ResourceAccessNamespace = void 0;
5350
+ const PodResourceAccessService_js_1 = require("./openapi_client/services/PodResourceAccessService.js");
5351
+ class ResourceAccessNamespace {
5352
+ constructor(client, podId) {
5353
+ this.client = client;
5354
+ this.podId = podId;
5355
+ }
5356
+ get(resourceType, resourceId, podId) {
5357
+ return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGet(podId ?? this.podId(), resourceType, resourceId));
5358
+ }
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));
5361
+ }
5362
+ deleteGrant(resourceType, resourceId, granteeType, granteeId, podId) {
5363
+ return this.client.request(() => PodResourceAccessService_js_1.PodResourceAccessService.podResourceAccessGrantDelete(podId ?? this.podId(), resourceType, resourceId, granteeType, granteeId));
5364
+ }
5365
+ }
5366
+ exports.ResourceAccessNamespace = ResourceAccessNamespace;
5367
+
5368
+ },
5369
+ "./openapi_client/services/PodResourceAccessService.js": function (module, exports, require) {
5370
+ "use strict";
5371
+ Object.defineProperty(exports, "__esModule", { value: true });
5372
+ exports.PodResourceAccessService = void 0;
5373
+ const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
5374
+ const request_js_1 = require("./openapi_client/core/request.js");
5375
+ class PodResourceAccessService {
5376
+ /**
5377
+ * Get Resource Access
5378
+ * @param podId
5379
+ * @param resourceType
5380
+ * @param resourceId
5381
+ * @returns ResourceAccessResponse Successful Response
5382
+ * @throws ApiError
5383
+ */
5384
+ static podResourceAccessGet(podId, resourceType, resourceId) {
5385
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5386
+ method: 'GET',
5387
+ url: '/pods/{pod_id}/resources/{resource_type}/{resource_id}/access',
5388
+ path: {
5389
+ 'pod_id': podId,
5390
+ 'resource_type': resourceType,
5391
+ 'resource_id': resourceId,
5392
+ },
5393
+ errors: {
5394
+ 422: `Validation Error`,
5395
+ },
5396
+ });
5397
+ }
5398
+ /**
5399
+ * Delete Resource Access Grant
5400
+ * @param podId
5401
+ * @param resourceType
5402
+ * @param resourceId
5403
+ * @param granteeType
5404
+ * @param granteeId
5405
+ * @returns ResourceAccessResponse Successful Response
5406
+ * @throws ApiError
5407
+ */
5408
+ static podResourceAccessGrantDelete(podId, resourceType, resourceId, granteeType, granteeId) {
5409
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5410
+ method: 'DELETE',
5411
+ url: '/pods/{pod_id}/resources/{resource_type}/{resource_id}/access/grantees/{grantee_type}/{grantee_id}',
5412
+ path: {
5413
+ 'pod_id': podId,
5414
+ 'resource_type': resourceType,
5415
+ 'resource_id': resourceId,
5416
+ 'grantee_type': granteeType,
5417
+ 'grantee_id': granteeId,
5418
+ },
5419
+ errors: {
5420
+ 422: `Validation Error`,
5421
+ },
5422
+ });
5423
+ }
5424
+ /**
5425
+ * Replace Resource Access Grant
5426
+ * @param podId
5427
+ * @param resourceType
5428
+ * @param resourceId
5429
+ * @param granteeType
5430
+ * @param granteeId
5431
+ * @param requestBody
5432
+ * @returns ResourceAccessResponse Successful Response
5433
+ * @throws ApiError
5434
+ */
5435
+ static podResourceAccessGrantReplace(podId, resourceType, resourceId, granteeType, granteeId, requestBody) {
5436
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
5437
+ method: 'PUT',
5438
+ url: '/pods/{pod_id}/resources/{resource_type}/{resource_id}/access/grantees/{grantee_type}/{grantee_id}',
5439
+ path: {
5440
+ 'pod_id': podId,
5441
+ 'resource_type': resourceType,
5442
+ 'resource_id': resourceId,
5443
+ 'grantee_type': granteeType,
5444
+ 'grantee_id': granteeId,
5445
+ },
5446
+ body: requestBody,
5447
+ mediaType: 'application/json',
5448
+ errors: {
5449
+ 422: `Validation Error`,
5450
+ },
5451
+ });
5452
+ }
5453
+ }
5454
+ exports.PodResourceAccessService = PodResourceAccessService;
5455
+
4670
5456
  },
4671
5457
  "./namespaces/resources.js": function (module, exports, require) {
4672
5458
  "use strict";
@@ -4781,7 +5567,7 @@ class SchedulesService {
4781
5567
  * Create a new pod schedule.
4782
5568
  * @param podId
4783
5569
  * @param requestBody
4784
- * @returns ScheduleResponse Successful Response
5570
+ * @returns ScheduleDetailResponse Successful Response
4785
5571
  * @throws ApiError
4786
5572
  */
4787
5573
  static scheduleCreate(podId, requestBody) {
@@ -4824,7 +5610,7 @@ class SchedulesService {
4824
5610
  * Get a schedule by ID.
4825
5611
  * @param podId
4826
5612
  * @param scheduleId
4827
- * @returns ScheduleResponse Successful Response
5613
+ * @returns ScheduleDetailResponse Successful Response
4828
5614
  * @throws ApiError
4829
5615
  */
4830
5616
  static scheduleGet(podId, scheduleId) {
@@ -4846,7 +5632,7 @@ class SchedulesService {
4846
5632
  * @param podId
4847
5633
  * @param scheduleId
4848
5634
  * @param requestBody
4849
- * @returns ScheduleResponse Successful Response
5635
+ * @returns ScheduleDetailResponse Successful Response
4850
5636
  * @throws ApiError
4851
5637
  */
4852
5638
  static scheduleUpdate(podId, scheduleId, requestBody) {
@@ -4951,7 +5737,7 @@ class TablesService {
4951
5737
  * Create a table in a datastore. Define primary key, column schema, and optional RLS behavior.
4952
5738
  * @param podId
4953
5739
  * @param requestBody
4954
- * @returns TableResponse Successful Response
5740
+ * @returns TableDetailResponse Successful Response
4955
5741
  * @throws ApiError
4956
5742
  */
4957
5743
  static tableCreate(podId, requestBody) {
@@ -4994,7 +5780,7 @@ class TablesService {
4994
5780
  * Get table schema metadata by table name.
4995
5781
  * @param podId
4996
5782
  * @param tableName
4997
- * @returns TableResponse Successful Response
5783
+ * @returns TableDetailResponse Successful Response
4998
5784
  * @throws ApiError
4999
5785
  */
5000
5786
  static tableGet(podId, tableName) {
@@ -5016,7 +5802,7 @@ class TablesService {
5016
5802
  * @param podId
5017
5803
  * @param tableName
5018
5804
  * @param requestBody
5019
- * @returns TableResponse Successful Response
5805
+ * @returns TableDetailResponse Successful Response
5020
5806
  * @throws ApiError
5021
5807
  */
5022
5808
  static tableUpdate(podId, tableName, requestBody) {
@@ -5040,7 +5826,7 @@ class TablesService {
5040
5826
  * @param podId
5041
5827
  * @param tableName
5042
5828
  * @param requestBody
5043
- * @returns TableResponse Successful Response
5829
+ * @returns TableDetailResponse Successful Response
5044
5830
  * @throws ApiError
5045
5831
  */
5046
5832
  static tableColumnAdd(podId, tableName, requestBody) {
@@ -5375,7 +6161,7 @@ class WorkflowsService {
5375
6161
  * Create a workflow definition. Use this before uploading graph nodes/edges with `workflow.graph.update`.
5376
6162
  * @param podId
5377
6163
  * @param requestBody
5378
- * @returns FlowResponse Successful Response
6164
+ * @returns FlowDetailResponse Successful Response
5379
6165
  * @throws ApiError
5380
6166
  */
5381
6167
  static workflowCreate(podId, requestBody) {
@@ -5418,7 +6204,7 @@ class WorkflowsService {
5418
6204
  * Get a single workflow definition including graph and start configuration.
5419
6205
  * @param podId
5420
6206
  * @param workflowName
5421
- * @returns FlowResponse Successful Response
6207
+ * @returns FlowDetailResponse Successful Response
5422
6208
  * @throws ApiError
5423
6209
  */
5424
6210
  static workflowGet(podId, workflowName) {
@@ -5440,7 +6226,7 @@ class WorkflowsService {
5440
6226
  * @param podId
5441
6227
  * @param workflowName
5442
6228
  * @param requestBody
5443
- * @returns FlowResponse Successful Response
6229
+ * @returns FlowDetailResponse Successful Response
5444
6230
  * @throws ApiError
5445
6231
  */
5446
6232
  static workflowUpdate(podId, workflowName, requestBody) {
@@ -5464,7 +6250,7 @@ class WorkflowsService {
5464
6250
  * @param podId
5465
6251
  * @param workflowName
5466
6252
  * @param requestBody
5467
- * @returns FlowResponse Successful Response
6253
+ * @returns FlowDetailResponse Successful Response
5468
6254
  * @throws ApiError
5469
6255
  */
5470
6256
  static workflowGraphUpdate(podId, workflowName, requestBody) {