@truefoundry/trueforge-sdk 0.1.4-rc.1 → 0.2.0-rc.3

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 (307) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +2 -2
  4. package/dist/cjs/Client.js +4 -4
  5. package/dist/cjs/api/resources/index.d.ts +2 -0
  6. package/dist/cjs/api/resources/index.js +2 -0
  7. package/dist/cjs/api/resources/internal/client/Client.d.ts +24 -1
  8. package/dist/cjs/api/resources/internal/client/Client.js +134 -0
  9. package/dist/cjs/api/resources/internal/client/index.d.ts +1 -1
  10. package/dist/cjs/api/resources/internal/client/index.js +15 -0
  11. package/dist/cjs/api/resources/internal/client/requests/ListPermissionsRequest.d.ts +13 -0
  12. package/dist/cjs/api/resources/internal/client/requests/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/internal/client/requests/index.js +2 -0
  14. package/dist/cjs/api/resources/internal/resources/agents/client/Client.d.ts +2 -1
  15. package/dist/cjs/api/resources/internal/resources/agents/client/Client.js +14 -5
  16. package/dist/cjs/api/resources/internal/resources/agents/client/index.d.ts +1 -1
  17. package/dist/cjs/api/resources/internal/resources/agents/client/index.js +15 -0
  18. package/dist/cjs/api/resources/internal/resources/agents/client/requests/GetCodeSnippetsAgentsRequest.d.ts +8 -0
  19. package/dist/cjs/api/resources/internal/resources/agents/client/requests/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/internal/resources/agents/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/internal/resources/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/internal/resources/index.js +4 -3
  23. package/dist/cjs/api/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.d.ts +1 -0
  24. package/dist/cjs/api/resources/mcpServers/client/Client.d.ts +19 -4
  25. package/dist/cjs/api/resources/mcpServers/client/Client.js +117 -72
  26. package/dist/cjs/api/resources/mcpServers/client/requests/index.d.ts +0 -1
  27. package/dist/cjs/api/resources/schedules/client/Client.d.ts +3 -2
  28. package/dist/cjs/api/resources/schedules/client/Client.js +80 -51
  29. package/dist/cjs/api/resources/{mcpServers/client/requests/ListMcpServersRequest.d.ts → schedules/client/requests/ListRunsSchedulesRequest.d.ts} +2 -2
  30. package/dist/cjs/api/resources/schedules/client/requests/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/sessions/client/Client.d.ts +1 -1
  32. package/dist/cjs/api/resources/sessions/client/Client.js +12 -2
  33. package/dist/cjs/api/resources/sessions/client/requests/DownloadSandboxFileSessionsRequest.d.ts +1 -1
  34. package/dist/cjs/api/resources/sessions/client/requests/ListSessionsRequest.d.ts +6 -0
  35. package/dist/cjs/api/resources/settings/resources/mcpServers/client/Client.d.ts +3 -4
  36. package/dist/cjs/api/resources/settings/resources/mcpServers/client/Client.js +52 -81
  37. package/dist/cjs/api/resources/settings/resources/mcpServers/client/requests/index.d.ts +0 -1
  38. package/dist/cjs/api/resources/settings/resources/skills/client/Client.d.ts +2 -0
  39. package/dist/cjs/api/resources/settings/resources/skills/client/Client.js +18 -0
  40. package/dist/cjs/api/resources/skills/client/Client.d.ts +17 -0
  41. package/dist/cjs/api/resources/skills/client/Client.js +75 -0
  42. package/dist/cjs/api/resources/skills/client/index.d.ts +1 -1
  43. package/dist/cjs/api/resources/skills/client/index.js +15 -0
  44. package/dist/cjs/api/resources/skills/client/requests/ListVersionsSkillsRequest.d.ts +10 -0
  45. package/dist/cjs/api/resources/skills/client/requests/ListVersionsSkillsRequest.js +3 -0
  46. package/dist/cjs/api/resources/skills/client/requests/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/skills/client/requests/index.js +2 -0
  48. package/dist/cjs/api/types/AgentCodeSnippets.d.ts +1 -1
  49. package/dist/cjs/api/types/AgentSpec.d.ts +1 -1
  50. package/dist/cjs/api/types/AvailableSkill.d.ts +4 -2
  51. package/dist/cjs/api/types/CatalogSkill.d.ts +1 -1
  52. package/dist/cjs/api/types/CatalogSkillType.d.ts +1 -0
  53. package/dist/cjs/api/types/CatalogSkillType.js +3 -0
  54. package/dist/cjs/api/types/ConfiguredSkill.d.ts +1 -1
  55. package/dist/cjs/api/types/GetAvailableMcpServerResponse.d.ts +4 -0
  56. package/dist/cjs/api/types/GetAvailableMcpServerResponse.js +3 -0
  57. package/dist/cjs/api/types/GitSkill.d.ts +13 -0
  58. package/dist/cjs/api/types/GitSkill.js +3 -0
  59. package/dist/cjs/api/types/ListAvailableMcpServersResponse.d.ts +0 -1
  60. package/dist/cjs/api/types/ListMcpServersResponse.d.ts +0 -1
  61. package/dist/cjs/api/types/ListPermissionsResponse.d.ts +5 -0
  62. package/dist/cjs/api/types/ListPermissionsResponse.js +3 -0
  63. package/dist/cjs/api/types/ListScheduleRunsResponse.d.ts +1 -0
  64. package/dist/cjs/api/types/ListSkillVersionsResponse.d.ts +4 -0
  65. package/dist/cjs/api/types/ListSkillVersionsResponse.js +3 -0
  66. package/dist/cjs/api/types/PermissionResourceType.d.ts +7 -0
  67. package/dist/cjs/api/types/PermissionResourceType.js +10 -0
  68. package/dist/cjs/api/types/ResourcePermission.d.ts +7 -0
  69. package/dist/cjs/api/types/ResourcePermission.js +10 -0
  70. package/dist/cjs/api/types/ScheduleRun.d.ts +1 -0
  71. package/dist/cjs/api/types/Session.d.ts +1 -0
  72. package/dist/cjs/api/types/SessionMetrics.d.ts +2 -1
  73. package/dist/cjs/api/types/SessionSource.d.ts +11 -0
  74. package/dist/cjs/api/types/SessionSource.js +3 -0
  75. package/dist/cjs/api/types/SessionSourceSchedule.d.ts +8 -0
  76. package/dist/cjs/api/types/SessionSourceSchedule.js +3 -0
  77. package/dist/cjs/api/types/SessionSourceType.d.ts +4 -0
  78. package/dist/cjs/api/types/SessionSourceType.js +3 -0
  79. package/dist/cjs/api/types/Skill.d.ts +3 -1
  80. package/dist/cjs/api/types/SkillManifest.d.ts +1 -12
  81. package/dist/cjs/api/types/SkillVersion.d.ts +7 -0
  82. package/dist/cjs/api/types/SkillVersion.js +3 -0
  83. package/dist/cjs/api/types/TrueFoundryRegistrySkill.d.ts +10 -0
  84. package/dist/cjs/api/types/TrueFoundryRegistrySkill.js +3 -0
  85. package/dist/cjs/api/types/index.d.ts +12 -1
  86. package/dist/cjs/api/types/index.js +12 -1
  87. package/dist/cjs/serialization/resources/index.d.ts +1 -0
  88. package/dist/cjs/serialization/resources/index.js +1 -0
  89. package/dist/cjs/serialization/resources/internal/client/index.d.ts +1 -0
  90. package/dist/cjs/serialization/resources/internal/client/index.js +17 -0
  91. package/dist/cjs/serialization/resources/internal/client/requests/ListPermissionsRequest.d.ts +11 -0
  92. package/dist/cjs/serialization/resources/internal/client/requests/ListPermissionsRequest.js +43 -0
  93. package/dist/cjs/serialization/resources/internal/client/requests/index.d.ts +1 -0
  94. package/dist/cjs/serialization/resources/internal/client/requests/index.js +5 -0
  95. package/dist/cjs/serialization/resources/internal/index.d.ts +1 -0
  96. package/dist/cjs/serialization/resources/internal/index.js +1 -0
  97. package/dist/cjs/serialization/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.d.ts +2 -0
  98. package/dist/cjs/serialization/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.js +2 -0
  99. package/dist/cjs/serialization/types/AvailableSkill.d.ts +2 -2
  100. package/dist/cjs/serialization/types/AvailableSkill.js +2 -2
  101. package/dist/cjs/serialization/types/CatalogSkill.d.ts +2 -2
  102. package/dist/cjs/serialization/types/CatalogSkill.js +2 -2
  103. package/dist/cjs/serialization/types/{SkillType.d.ts → CatalogSkillType.d.ts} +2 -2
  104. package/dist/cjs/serialization/types/{SkillType.js → CatalogSkillType.js} +2 -2
  105. package/dist/cjs/serialization/types/ConfiguredSkill.d.ts +1 -2
  106. package/dist/cjs/serialization/types/ConfiguredSkill.js +1 -2
  107. package/dist/cjs/serialization/types/GetAvailableMcpServerResponse.d.ts +10 -0
  108. package/dist/cjs/serialization/types/GetAvailableMcpServerResponse.js +42 -0
  109. package/dist/cjs/serialization/types/GitSkill.d.ts +15 -0
  110. package/dist/cjs/serialization/types/GitSkill.js +47 -0
  111. package/dist/cjs/serialization/types/ListAvailableMcpServersResponse.d.ts +0 -2
  112. package/dist/cjs/serialization/types/ListAvailableMcpServersResponse.js +0 -2
  113. package/dist/cjs/serialization/types/ListMcpServersResponse.d.ts +0 -2
  114. package/dist/cjs/serialization/types/ListMcpServersResponse.js +0 -2
  115. package/dist/cjs/serialization/types/ListPermissionsResponse.d.ts +10 -0
  116. package/dist/cjs/serialization/types/ListPermissionsResponse.js +42 -0
  117. package/dist/cjs/serialization/types/ListScheduleRunsResponse.d.ts +2 -0
  118. package/dist/cjs/serialization/types/ListScheduleRunsResponse.js +2 -0
  119. package/dist/cjs/serialization/types/ListSkillVersionsResponse.d.ts +10 -0
  120. package/dist/cjs/serialization/types/ListSkillVersionsResponse.js +42 -0
  121. package/dist/cjs/serialization/types/PermissionResourceType.d.ts +7 -0
  122. package/dist/cjs/serialization/types/PermissionResourceType.js +39 -0
  123. package/dist/cjs/serialization/types/ResourcePermission.d.ts +7 -0
  124. package/dist/cjs/serialization/types/ResourcePermission.js +39 -0
  125. package/dist/cjs/serialization/types/ScheduleRun.d.ts +1 -0
  126. package/dist/cjs/serialization/types/ScheduleRun.js +1 -0
  127. package/dist/cjs/serialization/types/Session.d.ts +2 -0
  128. package/dist/cjs/serialization/types/Session.js +2 -0
  129. package/dist/cjs/serialization/types/SessionMetrics.d.ts +1 -1
  130. package/dist/cjs/serialization/types/SessionMetrics.js +1 -1
  131. package/dist/cjs/serialization/types/SessionSource.d.ts +11 -0
  132. package/dist/cjs/serialization/types/SessionSource.js +43 -0
  133. package/dist/cjs/serialization/types/SessionSourceSchedule.d.ts +11 -0
  134. package/dist/cjs/serialization/types/SessionSourceSchedule.js +43 -0
  135. package/dist/cjs/serialization/types/SessionSourceType.d.ts +7 -0
  136. package/dist/cjs/serialization/types/SessionSourceType.js +39 -0
  137. package/dist/cjs/serialization/types/Skill.d.ts +1 -0
  138. package/dist/cjs/serialization/types/Skill.js +1 -0
  139. package/dist/cjs/serialization/types/SkillManifest.d.ts +4 -11
  140. package/dist/cjs/serialization/types/SkillManifest.js +3 -10
  141. package/dist/cjs/serialization/types/SkillVersion.d.ts +12 -0
  142. package/dist/cjs/serialization/types/SkillVersion.js +44 -0
  143. package/dist/cjs/serialization/types/TrueFoundryRegistrySkill.d.ts +14 -0
  144. package/dist/cjs/serialization/types/TrueFoundryRegistrySkill.js +46 -0
  145. package/dist/cjs/serialization/types/index.d.ts +12 -1
  146. package/dist/cjs/serialization/types/index.js +12 -1
  147. package/dist/cjs/version.d.ts +1 -1
  148. package/dist/cjs/version.js +1 -1
  149. package/dist/esm/BaseClient.mjs +2 -2
  150. package/dist/esm/Client.d.mts +2 -2
  151. package/dist/esm/Client.mjs +4 -4
  152. package/dist/esm/api/resources/index.d.mts +2 -0
  153. package/dist/esm/api/resources/index.mjs +2 -0
  154. package/dist/esm/api/resources/internal/client/Client.d.mts +24 -1
  155. package/dist/esm/api/resources/internal/client/Client.mjs +101 -0
  156. package/dist/esm/api/resources/internal/client/index.d.mts +1 -1
  157. package/dist/esm/api/resources/internal/client/index.mjs +1 -1
  158. package/dist/esm/api/resources/internal/client/requests/ListPermissionsRequest.d.mts +13 -0
  159. package/dist/esm/api/resources/internal/client/requests/index.d.mts +1 -0
  160. package/dist/esm/api/resources/internal/client/requests/index.mjs +1 -0
  161. package/dist/esm/api/resources/internal/resources/agents/client/Client.d.mts +2 -1
  162. package/dist/esm/api/resources/internal/resources/agents/client/Client.mjs +14 -5
  163. package/dist/esm/api/resources/internal/resources/agents/client/index.d.mts +1 -1
  164. package/dist/esm/api/resources/internal/resources/agents/client/index.mjs +1 -1
  165. package/dist/esm/api/resources/internal/resources/agents/client/requests/GetCodeSnippetsAgentsRequest.d.mts +8 -0
  166. package/dist/esm/api/resources/internal/resources/agents/client/requests/index.d.mts +1 -0
  167. package/dist/esm/api/resources/internal/resources/agents/client/requests/index.mjs +1 -0
  168. package/dist/esm/api/resources/internal/resources/index.d.mts +1 -0
  169. package/dist/esm/api/resources/internal/resources/index.mjs +1 -0
  170. package/dist/esm/api/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.d.mts +1 -0
  171. package/dist/esm/api/resources/mcpServers/client/Client.d.mts +19 -4
  172. package/dist/esm/api/resources/mcpServers/client/Client.mjs +117 -72
  173. package/dist/esm/api/resources/mcpServers/client/requests/index.d.mts +0 -1
  174. package/dist/esm/api/resources/schedules/client/Client.d.mts +3 -2
  175. package/dist/esm/api/resources/schedules/client/Client.mjs +80 -51
  176. package/dist/esm/api/resources/{settings/resources/mcpServers/client/requests/ListMcpServersRequest.d.mts → schedules/client/requests/ListRunsSchedulesRequest.d.mts} +2 -2
  177. package/dist/esm/api/resources/schedules/client/requests/index.d.mts +1 -0
  178. package/dist/esm/api/resources/sessions/client/Client.d.mts +1 -1
  179. package/dist/esm/api/resources/sessions/client/Client.mjs +12 -2
  180. package/dist/esm/api/resources/sessions/client/requests/DownloadSandboxFileSessionsRequest.d.mts +1 -1
  181. package/dist/esm/api/resources/sessions/client/requests/ListSessionsRequest.d.mts +6 -0
  182. package/dist/esm/api/resources/settings/resources/mcpServers/client/Client.d.mts +3 -4
  183. package/dist/esm/api/resources/settings/resources/mcpServers/client/Client.mjs +52 -81
  184. package/dist/esm/api/resources/settings/resources/mcpServers/client/requests/index.d.mts +0 -1
  185. package/dist/esm/api/resources/settings/resources/skills/client/Client.d.mts +2 -0
  186. package/dist/esm/api/resources/settings/resources/skills/client/Client.mjs +18 -0
  187. package/dist/esm/api/resources/skills/client/Client.d.mts +17 -0
  188. package/dist/esm/api/resources/skills/client/Client.mjs +75 -0
  189. package/dist/esm/api/resources/skills/client/index.d.mts +1 -1
  190. package/dist/esm/api/resources/skills/client/index.mjs +1 -1
  191. package/dist/esm/api/resources/skills/client/requests/ListVersionsSkillsRequest.d.mts +10 -0
  192. package/dist/esm/api/resources/skills/client/requests/ListVersionsSkillsRequest.mjs +2 -0
  193. package/dist/esm/api/resources/skills/client/requests/index.d.mts +1 -0
  194. package/dist/esm/api/resources/skills/client/requests/index.mjs +1 -0
  195. package/dist/esm/api/types/AgentCodeSnippets.d.mts +1 -1
  196. package/dist/esm/api/types/AgentSpec.d.mts +1 -1
  197. package/dist/esm/api/types/AvailableSkill.d.mts +4 -2
  198. package/dist/esm/api/types/CatalogSkill.d.mts +1 -1
  199. package/dist/esm/api/types/CatalogSkillType.d.mts +1 -0
  200. package/dist/esm/api/types/CatalogSkillType.mjs +2 -0
  201. package/dist/esm/api/types/ConfiguredSkill.d.mts +1 -1
  202. package/dist/esm/api/types/GetAvailableMcpServerResponse.d.mts +4 -0
  203. package/dist/esm/api/types/GetAvailableMcpServerResponse.mjs +2 -0
  204. package/dist/esm/api/types/GitSkill.d.mts +13 -0
  205. package/dist/esm/api/types/GitSkill.mjs +2 -0
  206. package/dist/esm/api/types/ListAvailableMcpServersResponse.d.mts +0 -1
  207. package/dist/esm/api/types/ListMcpServersResponse.d.mts +0 -1
  208. package/dist/esm/api/types/ListPermissionsResponse.d.mts +5 -0
  209. package/dist/esm/api/types/ListPermissionsResponse.mjs +2 -0
  210. package/dist/esm/api/types/ListScheduleRunsResponse.d.mts +1 -0
  211. package/dist/esm/api/types/ListSkillVersionsResponse.d.mts +4 -0
  212. package/dist/esm/api/types/ListSkillVersionsResponse.mjs +2 -0
  213. package/dist/esm/api/types/PermissionResourceType.d.mts +7 -0
  214. package/dist/esm/api/types/PermissionResourceType.mjs +7 -0
  215. package/dist/esm/api/types/ResourcePermission.d.mts +7 -0
  216. package/dist/esm/api/types/ResourcePermission.mjs +7 -0
  217. package/dist/esm/api/types/ScheduleRun.d.mts +1 -0
  218. package/dist/esm/api/types/Session.d.mts +1 -0
  219. package/dist/esm/api/types/SessionMetrics.d.mts +2 -1
  220. package/dist/esm/api/types/SessionSource.d.mts +11 -0
  221. package/dist/esm/api/types/SessionSource.mjs +2 -0
  222. package/dist/esm/api/types/SessionSourceSchedule.d.mts +8 -0
  223. package/dist/esm/api/types/SessionSourceSchedule.mjs +2 -0
  224. package/dist/esm/api/types/SessionSourceType.d.mts +4 -0
  225. package/dist/esm/api/types/SessionSourceType.mjs +2 -0
  226. package/dist/esm/api/types/Skill.d.mts +3 -1
  227. package/dist/esm/api/types/SkillManifest.d.mts +1 -12
  228. package/dist/esm/api/types/SkillVersion.d.mts +7 -0
  229. package/dist/esm/api/types/SkillVersion.mjs +2 -0
  230. package/dist/esm/api/types/TrueFoundryRegistrySkill.d.mts +10 -0
  231. package/dist/esm/api/types/TrueFoundryRegistrySkill.mjs +2 -0
  232. package/dist/esm/api/types/index.d.mts +12 -1
  233. package/dist/esm/api/types/index.mjs +12 -1
  234. package/dist/esm/serialization/resources/index.d.mts +1 -0
  235. package/dist/esm/serialization/resources/index.mjs +1 -0
  236. package/dist/esm/serialization/resources/internal/client/index.d.mts +1 -0
  237. package/dist/esm/serialization/resources/internal/client/index.mjs +1 -0
  238. package/dist/esm/serialization/resources/internal/client/requests/ListPermissionsRequest.d.mts +11 -0
  239. package/dist/esm/serialization/resources/internal/client/requests/ListPermissionsRequest.mjs +7 -0
  240. package/dist/esm/serialization/resources/internal/client/requests/index.d.mts +1 -0
  241. package/dist/esm/serialization/resources/internal/client/requests/index.mjs +1 -0
  242. package/dist/esm/serialization/resources/internal/index.d.mts +1 -0
  243. package/dist/esm/serialization/resources/internal/index.mjs +1 -0
  244. package/dist/esm/serialization/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.d.mts +2 -0
  245. package/dist/esm/serialization/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.mjs +2 -0
  246. package/dist/esm/serialization/types/AvailableSkill.d.mts +2 -2
  247. package/dist/esm/serialization/types/AvailableSkill.mjs +2 -2
  248. package/dist/esm/serialization/types/CatalogSkill.d.mts +2 -2
  249. package/dist/esm/serialization/types/CatalogSkill.mjs +2 -2
  250. package/dist/esm/serialization/types/{SkillType.d.mts → CatalogSkillType.d.mts} +2 -2
  251. package/dist/esm/serialization/types/{SkillType.mjs → CatalogSkillType.mjs} +1 -1
  252. package/dist/esm/serialization/types/ConfiguredSkill.d.mts +1 -2
  253. package/dist/esm/serialization/types/ConfiguredSkill.mjs +1 -2
  254. package/dist/esm/serialization/types/GetAvailableMcpServerResponse.d.mts +10 -0
  255. package/dist/esm/serialization/types/GetAvailableMcpServerResponse.mjs +6 -0
  256. package/dist/esm/serialization/types/GitSkill.d.mts +15 -0
  257. package/dist/esm/serialization/types/GitSkill.mjs +11 -0
  258. package/dist/esm/serialization/types/ListAvailableMcpServersResponse.d.mts +0 -2
  259. package/dist/esm/serialization/types/ListAvailableMcpServersResponse.mjs +0 -2
  260. package/dist/esm/serialization/types/ListMcpServersResponse.d.mts +0 -2
  261. package/dist/esm/serialization/types/ListMcpServersResponse.mjs +0 -2
  262. package/dist/esm/serialization/types/ListPermissionsResponse.d.mts +10 -0
  263. package/dist/esm/serialization/types/ListPermissionsResponse.mjs +6 -0
  264. package/dist/esm/serialization/types/ListScheduleRunsResponse.d.mts +2 -0
  265. package/dist/esm/serialization/types/ListScheduleRunsResponse.mjs +2 -0
  266. package/dist/esm/serialization/types/ListSkillVersionsResponse.d.mts +10 -0
  267. package/dist/esm/serialization/types/ListSkillVersionsResponse.mjs +6 -0
  268. package/dist/esm/serialization/types/PermissionResourceType.d.mts +7 -0
  269. package/dist/esm/serialization/types/PermissionResourceType.mjs +3 -0
  270. package/dist/esm/serialization/types/ResourcePermission.d.mts +7 -0
  271. package/dist/esm/serialization/types/ResourcePermission.mjs +3 -0
  272. package/dist/esm/serialization/types/ScheduleRun.d.mts +1 -0
  273. package/dist/esm/serialization/types/ScheduleRun.mjs +1 -0
  274. package/dist/esm/serialization/types/Session.d.mts +2 -0
  275. package/dist/esm/serialization/types/Session.mjs +2 -0
  276. package/dist/esm/serialization/types/SessionMetrics.d.mts +1 -1
  277. package/dist/esm/serialization/types/SessionMetrics.mjs +1 -1
  278. package/dist/esm/serialization/types/SessionSource.d.mts +11 -0
  279. package/dist/esm/serialization/types/SessionSource.mjs +7 -0
  280. package/dist/esm/serialization/types/SessionSourceSchedule.d.mts +11 -0
  281. package/dist/esm/serialization/types/SessionSourceSchedule.mjs +7 -0
  282. package/dist/esm/serialization/types/SessionSourceType.d.mts +7 -0
  283. package/dist/esm/serialization/types/SessionSourceType.mjs +3 -0
  284. package/dist/esm/serialization/types/Skill.d.mts +1 -0
  285. package/dist/esm/serialization/types/Skill.mjs +1 -0
  286. package/dist/esm/serialization/types/SkillManifest.d.mts +4 -11
  287. package/dist/esm/serialization/types/SkillManifest.mjs +3 -10
  288. package/dist/esm/serialization/types/SkillVersion.d.mts +12 -0
  289. package/dist/esm/serialization/types/SkillVersion.mjs +8 -0
  290. package/dist/esm/serialization/types/TrueFoundryRegistrySkill.d.mts +14 -0
  291. package/dist/esm/serialization/types/TrueFoundryRegistrySkill.mjs +10 -0
  292. package/dist/esm/serialization/types/index.d.mts +12 -1
  293. package/dist/esm/serialization/types/index.mjs +12 -1
  294. package/dist/esm/version.d.mts +1 -1
  295. package/dist/esm/version.mjs +1 -1
  296. package/package.json +12 -12
  297. package/reference.md +211 -16
  298. package/dist/cjs/api/resources/settings/resources/mcpServers/client/requests/ListMcpServersRequest.d.ts +0 -10
  299. package/dist/cjs/api/types/SkillType.d.ts +0 -1
  300. package/dist/esm/api/resources/mcpServers/client/requests/ListMcpServersRequest.d.mts +0 -10
  301. package/dist/esm/api/types/SkillType.d.mts +0 -1
  302. /package/dist/cjs/api/resources/{mcpServers/client/requests/ListMcpServersRequest.js → internal/client/requests/ListPermissionsRequest.js} +0 -0
  303. /package/dist/cjs/api/resources/{settings/resources/mcpServers/client/requests/ListMcpServersRequest.js → internal/resources/agents/client/requests/GetCodeSnippetsAgentsRequest.js} +0 -0
  304. /package/dist/cjs/api/{types/SkillType.js → resources/schedules/client/requests/ListRunsSchedulesRequest.js} +0 -0
  305. /package/dist/esm/api/resources/{mcpServers/client/requests/ListMcpServersRequest.mjs → internal/client/requests/ListPermissionsRequest.mjs} +0 -0
  306. /package/dist/esm/api/resources/{settings/resources/mcpServers/client/requests/ListMcpServersRequest.mjs → internal/resources/agents/client/requests/GetCodeSnippetsAgentsRequest.mjs} +0 -0
  307. /package/dist/esm/api/{types/SkillType.mjs → resources/schedules/client/requests/ListRunsSchedulesRequest.mjs} +0 -0
@@ -56,12 +56,10 @@ class McpServersClient {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
- * Paginated MCP servers as a slim name/url list for the composer.
59
+ * Configured MCP servers as a slim name/url list for the composer.
60
60
  *
61
- * @param {TrueForge.ListMcpServersRequest} request
62
61
  * @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
63
62
  *
64
- * @throws {@link TrueForge.BadRequestError}
65
63
  * @throws {@link TrueForge.UnauthorizedError}
66
64
  * @throws {@link errors.TrueForgeError}
67
65
  * @throws {@link errors.TrueForgeTimeoutError}
@@ -69,83 +67,130 @@ class McpServersClient {
69
67
  * @example
70
68
  * await client.mcpServers.list()
71
69
  */
72
- list() {
73
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
74
- const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
75
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
76
- const { limit = 100, pageToken } = request;
77
- const _queryParams = {
78
- limit,
79
- page_token: pageToken,
70
+ list(requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
72
+ }
73
+ __list(requestOptions) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
76
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
77
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
78
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
79
+ url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)), "api/v1/mcp-servers"),
80
+ method: "GET",
81
+ headers: _headers,
82
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
83
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
84
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
85
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
87
+ logging: this._options.logging,
88
+ });
89
+ if (_response.ok) {
90
+ return {
91
+ data: serializers.ListAvailableMcpServersResponse.parseOrThrow(_response.body, {
92
+ unrecognizedObjectKeys: "passthrough",
93
+ allowUnrecognizedUnionMembers: true,
94
+ allowUnrecognizedEnumValues: true,
95
+ skipValidation: true,
96
+ breadcrumbsPrefix: ["response"],
97
+ }),
98
+ rawResponse: _response.rawResponse,
80
99
  };
81
- const _authRequest = yield this._options.authProvider.getAuthRequest();
82
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
83
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
84
- url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)), "api/v1/mcp-servers"),
85
- method: "GET",
86
- headers: _headers,
87
- queryString: core.url
88
- .queryBuilder()
89
- .addMany(_queryParams)
90
- .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
91
- .build(),
92
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
93
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
94
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
95
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
96
- logging: this._options.logging,
97
- });
98
- if (_response.ok) {
99
- return {
100
- data: serializers.ListAvailableMcpServersResponse.parseOrThrow(_response.body, {
100
+ }
101
+ if (_response.error.reason === "status-code") {
102
+ switch (_response.error.statusCode) {
103
+ case 401:
104
+ throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
101
105
  unrecognizedObjectKeys: "passthrough",
102
106
  allowUnrecognizedUnionMembers: true,
103
107
  allowUnrecognizedEnumValues: true,
104
108
  skipValidation: true,
105
109
  breadcrumbsPrefix: ["response"],
106
- }),
107
- rawResponse: _response.rawResponse,
108
- };
109
- }
110
- if (_response.error.reason === "status-code") {
111
- switch (_response.error.statusCode) {
112
- case 400:
113
- throw new TrueForge.BadRequestError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
114
- unrecognizedObjectKeys: "passthrough",
115
- allowUnrecognizedUnionMembers: true,
116
- allowUnrecognizedEnumValues: true,
117
- skipValidation: true,
118
- breadcrumbsPrefix: ["response"],
119
- }), _response.rawResponse);
120
- case 401:
121
- throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
122
- unrecognizedObjectKeys: "passthrough",
123
- allowUnrecognizedUnionMembers: true,
124
- allowUnrecognizedEnumValues: true,
125
- skipValidation: true,
126
- breadcrumbsPrefix: ["response"],
127
- }), _response.rawResponse);
128
- default:
129
- throw new errors.TrueForgeError({
130
- statusCode: _response.error.statusCode,
131
- body: _response.error.body,
132
- rawResponse: _response.rawResponse,
133
- });
134
- }
110
+ }), _response.rawResponse);
111
+ default:
112
+ throw new errors.TrueForgeError({
113
+ statusCode: _response.error.statusCode,
114
+ body: _response.error.body,
115
+ rawResponse: _response.rawResponse,
116
+ });
135
117
  }
136
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/mcp-servers");
137
- }));
138
- const dataWithRawResponse = yield list(request).withRawResponse();
139
- return new core.Page({
140
- response: dataWithRawResponse.data,
141
- rawResponse: dataWithRawResponse.rawResponse,
142
- hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) != null &&
143
- !(typeof (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === "string" && (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === ""),
144
- getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
145
- loadPage: (response) => {
146
- return list(core.setObjectProperty(request, "pageToken", response === null || response === void 0 ? void 0 : response.pagination.nextPageToken));
147
- },
118
+ }
119
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/mcp-servers");
120
+ });
121
+ }
122
+ /**
123
+ * A single MCP server as the slim chat projection, with live per-user auth_status.
124
+ *
125
+ * @param {string} name - MCP server name.
126
+ * @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
127
+ *
128
+ * @throws {@link TrueForge.UnauthorizedError}
129
+ * @throws {@link TrueForge.NotFoundError}
130
+ * @throws {@link errors.TrueForgeError}
131
+ * @throws {@link errors.TrueForgeTimeoutError}
132
+ *
133
+ * @example
134
+ * await client.mcpServers.get("name")
135
+ */
136
+ get(name, requestOptions) {
137
+ return core.HttpResponsePromise.fromPromise(this.__get(name, requestOptions));
138
+ }
139
+ __get(name, requestOptions) {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
142
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
143
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
144
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
145
+ url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)), `api/v1/mcp-servers/${core.url.encodePathParam(name)}`),
146
+ method: "GET",
147
+ headers: _headers,
148
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
149
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
150
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
151
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
152
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
153
+ logging: this._options.logging,
148
154
  });
155
+ if (_response.ok) {
156
+ return {
157
+ data: serializers.GetAvailableMcpServerResponse.parseOrThrow(_response.body, {
158
+ unrecognizedObjectKeys: "passthrough",
159
+ allowUnrecognizedUnionMembers: true,
160
+ allowUnrecognizedEnumValues: true,
161
+ skipValidation: true,
162
+ breadcrumbsPrefix: ["response"],
163
+ }),
164
+ rawResponse: _response.rawResponse,
165
+ };
166
+ }
167
+ if (_response.error.reason === "status-code") {
168
+ switch (_response.error.statusCode) {
169
+ case 401:
170
+ throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
171
+ unrecognizedObjectKeys: "passthrough",
172
+ allowUnrecognizedUnionMembers: true,
173
+ allowUnrecognizedEnumValues: true,
174
+ skipValidation: true,
175
+ breadcrumbsPrefix: ["response"],
176
+ }), _response.rawResponse);
177
+ case 404:
178
+ throw new TrueForge.NotFoundError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
179
+ unrecognizedObjectKeys: "passthrough",
180
+ allowUnrecognizedUnionMembers: true,
181
+ allowUnrecognizedEnumValues: true,
182
+ skipValidation: true,
183
+ breadcrumbsPrefix: ["response"],
184
+ }), _response.rawResponse);
185
+ default:
186
+ throw new errors.TrueForgeError({
187
+ statusCode: _response.error.statusCode,
188
+ body: _response.error.body,
189
+ rawResponse: _response.rawResponse,
190
+ });
191
+ }
192
+ }
193
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/mcp-servers/{name}");
149
194
  });
150
195
  }
151
196
  /**
@@ -1,2 +1 @@
1
1
  export type { AuthorizeMcpServersRequest } from "./AuthorizeMcpServersRequest.js";
2
- export type { ListMcpServersRequest } from "./ListMcpServersRequest.js";
@@ -131,8 +131,10 @@ export declare class SchedulesClient {
131
131
  * List runs of a schedule, newest `scheduled_for` first. Available to its creator or a manager of its agent.
132
132
  *
133
133
  * @param {string} schedule_id - Immutable schedule identifier.
134
+ * @param {TrueForge.ListRunsSchedulesRequest} request
134
135
  * @param {SchedulesClient.RequestOptions} requestOptions - Request-specific configuration.
135
136
  *
137
+ * @throws {@link TrueForge.BadRequestError}
136
138
  * @throws {@link TrueForge.ForbiddenError}
137
139
  * @throws {@link TrueForge.NotFoundError}
138
140
  * @throws {@link errors.TrueForgeError}
@@ -141,6 +143,5 @@ export declare class SchedulesClient {
141
143
  * @example
142
144
  * await client.schedules.listRuns("schedule_id")
143
145
  */
144
- listRuns(schedule_id: string, requestOptions?: SchedulesClient.RequestOptions): core.HttpResponsePromise<TrueForge.ListScheduleRunsResponse>;
145
- private __listRuns;
146
+ listRuns(schedule_id: string, request?: TrueForge.ListRunsSchedulesRequest, requestOptions?: SchedulesClient.RequestOptions): Promise<core.Page<TrueForge.ScheduleRun, TrueForge.ListScheduleRunsResponse>>;
146
147
  }
@@ -619,8 +619,10 @@ class SchedulesClient {
619
619
  * List runs of a schedule, newest `scheduled_for` first. Available to its creator or a manager of its agent.
620
620
  *
621
621
  * @param {string} schedule_id - Immutable schedule identifier.
622
+ * @param {TrueForge.ListRunsSchedulesRequest} request
622
623
  * @param {SchedulesClient.RequestOptions} requestOptions - Request-specific configuration.
623
624
  *
625
+ * @throws {@link TrueForge.BadRequestError}
624
626
  * @throws {@link TrueForge.ForbiddenError}
625
627
  * @throws {@link TrueForge.NotFoundError}
626
628
  * @throws {@link errors.TrueForgeError}
@@ -629,64 +631,91 @@ class SchedulesClient {
629
631
  * @example
630
632
  * await client.schedules.listRuns("schedule_id")
631
633
  */
632
- listRuns(schedule_id, requestOptions) {
633
- return core.HttpResponsePromise.fromPromise(this.__listRuns(schedule_id, requestOptions));
634
- }
635
- __listRuns(schedule_id, requestOptions) {
636
- return __awaiter(this, void 0, void 0, function* () {
637
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
638
- const _authRequest = yield this._options.authProvider.getAuthRequest();
639
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
640
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
641
- url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)), `api/v1/schedules/${core.url.encodePathParam(schedule_id)}/runs`),
642
- method: "GET",
643
- headers: _headers,
644
- queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
645
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
646
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
647
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
648
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
649
- logging: this._options.logging,
650
- });
651
- if (_response.ok) {
652
- return {
653
- data: serializers.ListScheduleRunsResponse.parseOrThrow(_response.body, {
654
- unrecognizedObjectKeys: "passthrough",
655
- allowUnrecognizedUnionMembers: true,
656
- allowUnrecognizedEnumValues: true,
657
- skipValidation: true,
658
- breadcrumbsPrefix: ["response"],
659
- }),
660
- rawResponse: _response.rawResponse,
634
+ listRuns(schedule_id_1) {
635
+ return __awaiter(this, arguments, void 0, function* (schedule_id, request = {}, requestOptions) {
636
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
637
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
638
+ const { limit = 25, pageToken } = request;
639
+ const _queryParams = {
640
+ limit,
641
+ page_token: pageToken,
661
642
  };
662
- }
663
- if (_response.error.reason === "status-code") {
664
- switch (_response.error.statusCode) {
665
- case 403:
666
- throw new TrueForge.ForbiddenError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
667
- unrecognizedObjectKeys: "passthrough",
668
- allowUnrecognizedUnionMembers: true,
669
- allowUnrecognizedEnumValues: true,
670
- skipValidation: true,
671
- breadcrumbsPrefix: ["response"],
672
- }), _response.rawResponse);
673
- case 404:
674
- throw new TrueForge.NotFoundError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
643
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
644
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
645
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
646
+ url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)), `api/v1/schedules/${core.url.encodePathParam(schedule_id)}/runs`),
647
+ method: "GET",
648
+ headers: _headers,
649
+ queryString: core.url
650
+ .queryBuilder()
651
+ .addMany(_queryParams)
652
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
653
+ .build(),
654
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
655
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
656
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
657
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
658
+ logging: this._options.logging,
659
+ });
660
+ if (_response.ok) {
661
+ return {
662
+ data: serializers.ListScheduleRunsResponse.parseOrThrow(_response.body, {
675
663
  unrecognizedObjectKeys: "passthrough",
676
664
  allowUnrecognizedUnionMembers: true,
677
665
  allowUnrecognizedEnumValues: true,
678
666
  skipValidation: true,
679
667
  breadcrumbsPrefix: ["response"],
680
- }), _response.rawResponse);
681
- default:
682
- throw new errors.TrueForgeError({
683
- statusCode: _response.error.statusCode,
684
- body: _response.error.body,
685
- rawResponse: _response.rawResponse,
686
- });
668
+ }),
669
+ rawResponse: _response.rawResponse,
670
+ };
687
671
  }
688
- }
689
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/schedules/{schedule_id}/runs");
672
+ if (_response.error.reason === "status-code") {
673
+ switch (_response.error.statusCode) {
674
+ case 400:
675
+ throw new TrueForge.BadRequestError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
676
+ unrecognizedObjectKeys: "passthrough",
677
+ allowUnrecognizedUnionMembers: true,
678
+ allowUnrecognizedEnumValues: true,
679
+ skipValidation: true,
680
+ breadcrumbsPrefix: ["response"],
681
+ }), _response.rawResponse);
682
+ case 403:
683
+ throw new TrueForge.ForbiddenError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
684
+ unrecognizedObjectKeys: "passthrough",
685
+ allowUnrecognizedUnionMembers: true,
686
+ allowUnrecognizedEnumValues: true,
687
+ skipValidation: true,
688
+ breadcrumbsPrefix: ["response"],
689
+ }), _response.rawResponse);
690
+ case 404:
691
+ throw new TrueForge.NotFoundError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
692
+ unrecognizedObjectKeys: "passthrough",
693
+ allowUnrecognizedUnionMembers: true,
694
+ allowUnrecognizedEnumValues: true,
695
+ skipValidation: true,
696
+ breadcrumbsPrefix: ["response"],
697
+ }), _response.rawResponse);
698
+ default:
699
+ throw new errors.TrueForgeError({
700
+ statusCode: _response.error.statusCode,
701
+ body: _response.error.body,
702
+ rawResponse: _response.rawResponse,
703
+ });
704
+ }
705
+ }
706
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/schedules/{schedule_id}/runs");
707
+ }));
708
+ const dataWithRawResponse = yield list(request).withRawResponse();
709
+ return new core.Page({
710
+ response: dataWithRawResponse.data,
711
+ rawResponse: dataWithRawResponse.rawResponse,
712
+ hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) != null &&
713
+ !(typeof (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === "string" && (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === ""),
714
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
715
+ loadPage: (response) => {
716
+ return list(core.setObjectProperty(request, "pageToken", response === null || response === void 0 ? void 0 : response.pagination.nextPageToken));
717
+ },
718
+ });
690
719
  });
691
720
  }
692
721
  }
@@ -2,8 +2,8 @@
2
2
  * @example
3
3
  * {}
4
4
  */
5
- export interface ListMcpServersRequest {
6
- /** Page size. Defaults to 100, max 200. */
5
+ export interface ListRunsSchedulesRequest {
6
+ /** Page size. Defaults to 25 */
7
7
  limit?: number;
8
8
  /** Opaque token from a previous response `next_page_token`. */
9
9
  pageToken?: string;
@@ -1,4 +1,5 @@
1
1
  export type { CreateScheduleRequest } from "./CreateScheduleRequest.js";
2
2
  export type { CreateScheduleRunRequest } from "./CreateScheduleRunRequest.js";
3
+ export type { ListRunsSchedulesRequest } from "./ListRunsSchedulesRequest.js";
3
4
  export type { ListSchedulesRequest } from "./ListSchedulesRequest.js";
4
5
  export type { UpdateScheduleRequest } from "./UpdateScheduleRequest.js";
@@ -11,7 +11,7 @@ export declare class SessionsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<SessionsClient.Options>;
12
12
  constructor(options: SessionsClient.Options);
13
13
  /**
14
- * List the caller's sessions (newest first by default).
14
+ * List the sessions (newest first by default).
15
15
  *
16
16
  * @param {TrueForge.ListSessionsRequest} request
17
17
  * @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -57,7 +57,7 @@ class SessionsClient {
57
57
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
58
58
  }
59
59
  /**
60
- * List the caller's sessions (newest first by default).
60
+ * List the sessions (newest first by default).
61
61
  *
62
62
  * @param {TrueForge.ListSessionsRequest} request
63
63
  * @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -73,7 +73,7 @@ class SessionsClient {
73
73
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
74
74
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
75
75
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
76
- const { limit = 25, order, pageToken, startTimestamp, endTimestamp, agentId, createdByMe } = request;
76
+ const { limit = 25, order, pageToken, startTimestamp, endTimestamp, agentId, createdByMe, metadata, sourceType, sourceId, } = request;
77
77
  const _queryParams = {
78
78
  limit,
79
79
  order: order != null
@@ -89,6 +89,16 @@ class SessionsClient {
89
89
  end_timestamp: endTimestamp != null ? endTimestamp === null || endTimestamp === void 0 ? void 0 : endTimestamp.toISOString() : undefined,
90
90
  agent_id: agentId,
91
91
  created_by_me: createdByMe,
92
+ metadata,
93
+ source_type: sourceType != null
94
+ ? serializers.SessionSourceType.jsonOrThrow(sourceType, {
95
+ unrecognizedObjectKeys: "passthrough",
96
+ allowUnrecognizedUnionMembers: true,
97
+ allowUnrecognizedEnumValues: true,
98
+ omitUndefined: true,
99
+ })
100
+ : undefined,
101
+ source_id: sourceId,
92
102
  };
93
103
  const _authRequest = yield this._options.authProvider.getAuthRequest();
94
104
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -5,6 +5,6 @@
5
5
  * }
6
6
  */
7
7
  export interface DownloadSandboxFileSessionsRequest {
8
- /** Absolute path of the file inside the sandbox, as listed in the assistant's `sandbox_artifacts` block. */
8
+ /** Absolute or sandbox-working-directory-relative file path, as listed in the assistant's `sandbox_artifacts` block. */
9
9
  path: string;
10
10
  }
@@ -18,4 +18,10 @@ export interface ListSessionsRequest {
18
18
  agentId?: string;
19
19
  /** When true, only sessions created by the authenticated subject. */
20
20
  createdByMe?: boolean;
21
+ /** Exact metadata pairs as metadata[key]=value. Sessions must contain all pairs. */
22
+ metadata?: TrueForge.SessionMetadata;
23
+ /** When set, returns only sessions created by this source type. */
24
+ sourceType?: TrueForge.SessionSourceType;
25
+ /** When set, returns only sessions from this specific source. Requires source_type. */
26
+ sourceId?: string;
21
27
  }
@@ -11,12 +11,10 @@ export declare class McpServersClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<McpServersClient.Options>;
12
12
  constructor(options: McpServersClient.Options);
13
13
  /**
14
- * Paginated MCP servers with auth_status. Header secrets are redacted.
14
+ * Configured MCP servers with auth_status. Header secrets are redacted.
15
15
  *
16
- * @param {TrueForge.settings.ListMcpServersRequest} request
17
16
  * @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
18
17
  *
19
- * @throws {@link TrueForge.BadRequestError}
20
18
  * @throws {@link TrueForge.UnauthorizedError}
21
19
  * @throws {@link TrueForge.ForbiddenError}
22
20
  * @throws {@link errors.TrueForgeError}
@@ -25,7 +23,8 @@ export declare class McpServersClient {
25
23
  * @example
26
24
  * await client.settings.mcpServers.list()
27
25
  */
28
- list(request?: TrueForge.settings.ListMcpServersRequest, requestOptions?: McpServersClient.RequestOptions): Promise<core.Page<TrueForge.ConfiguredMcpServer, TrueForge.ListMcpServersResponse>>;
26
+ list(requestOptions?: McpServersClient.RequestOptions): core.HttpResponsePromise<TrueForge.ListMcpServersResponse>;
27
+ private __list;
29
28
  /**
30
29
  * Creates an MCP server by `name`. Fails if `name` is already taken. Runs DCR registration when `auth.type` is `dcr`. Header secrets: real value required; redacted with no stored value returns 400.
31
30
  *