@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
@@ -20,12 +20,10 @@ export class McpServersClient {
20
20
  this._options = normalizeClientOptionsWithAuth(options);
21
21
  }
22
22
  /**
23
- * Paginated MCP servers as a slim name/url list for the composer.
23
+ * Configured MCP servers as a slim name/url list for the composer.
24
24
  *
25
- * @param {TrueForge.ListMcpServersRequest} request
26
25
  * @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
27
26
  *
28
- * @throws {@link TrueForge.BadRequestError}
29
27
  * @throws {@link TrueForge.UnauthorizedError}
30
28
  * @throws {@link errors.TrueForgeError}
31
29
  * @throws {@link errors.TrueForgeTimeoutError}
@@ -33,83 +31,130 @@ export class McpServersClient {
33
31
  * @example
34
32
  * await client.mcpServers.list()
35
33
  */
36
- list() {
37
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
38
- const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
39
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
40
- const { limit = 100, pageToken } = request;
41
- const _queryParams = {
42
- limit,
43
- page_token: pageToken,
34
+ list(requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
36
+ }
37
+ __list(requestOptions) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
40
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
41
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
42
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
43
+ 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"),
44
+ method: "GET",
45
+ headers: _headers,
46
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
47
+ 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,
48
+ 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,
49
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
50
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
51
+ logging: this._options.logging,
52
+ });
53
+ if (_response.ok) {
54
+ return {
55
+ data: serializers.ListAvailableMcpServersResponse.parseOrThrow(_response.body, {
56
+ unrecognizedObjectKeys: "passthrough",
57
+ allowUnrecognizedUnionMembers: true,
58
+ allowUnrecognizedEnumValues: true,
59
+ skipValidation: true,
60
+ breadcrumbsPrefix: ["response"],
61
+ }),
62
+ rawResponse: _response.rawResponse,
44
63
  };
45
- const _authRequest = yield this._options.authProvider.getAuthRequest();
46
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
47
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
48
- 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"),
49
- method: "GET",
50
- headers: _headers,
51
- queryString: core.url
52
- .queryBuilder()
53
- .addMany(_queryParams)
54
- .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
55
- .build(),
56
- 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,
57
- 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,
58
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
59
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
60
- logging: this._options.logging,
61
- });
62
- if (_response.ok) {
63
- return {
64
- data: serializers.ListAvailableMcpServersResponse.parseOrThrow(_response.body, {
64
+ }
65
+ if (_response.error.reason === "status-code") {
66
+ switch (_response.error.statusCode) {
67
+ case 401:
68
+ throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
65
69
  unrecognizedObjectKeys: "passthrough",
66
70
  allowUnrecognizedUnionMembers: true,
67
71
  allowUnrecognizedEnumValues: true,
68
72
  skipValidation: true,
69
73
  breadcrumbsPrefix: ["response"],
70
- }),
71
- rawResponse: _response.rawResponse,
72
- };
73
- }
74
- if (_response.error.reason === "status-code") {
75
- switch (_response.error.statusCode) {
76
- case 400:
77
- throw new TrueForge.BadRequestError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
78
- unrecognizedObjectKeys: "passthrough",
79
- allowUnrecognizedUnionMembers: true,
80
- allowUnrecognizedEnumValues: true,
81
- skipValidation: true,
82
- breadcrumbsPrefix: ["response"],
83
- }), _response.rawResponse);
84
- case 401:
85
- throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
86
- unrecognizedObjectKeys: "passthrough",
87
- allowUnrecognizedUnionMembers: true,
88
- allowUnrecognizedEnumValues: true,
89
- skipValidation: true,
90
- breadcrumbsPrefix: ["response"],
91
- }), _response.rawResponse);
92
- default:
93
- throw new errors.TrueForgeError({
94
- statusCode: _response.error.statusCode,
95
- body: _response.error.body,
96
- rawResponse: _response.rawResponse,
97
- });
98
- }
74
+ }), _response.rawResponse);
75
+ default:
76
+ throw new errors.TrueForgeError({
77
+ statusCode: _response.error.statusCode,
78
+ body: _response.error.body,
79
+ rawResponse: _response.rawResponse,
80
+ });
99
81
  }
100
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/mcp-servers");
101
- }));
102
- const dataWithRawResponse = yield list(request).withRawResponse();
103
- return new core.Page({
104
- response: dataWithRawResponse.data,
105
- rawResponse: dataWithRawResponse.rawResponse,
106
- hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) != null &&
107
- !(typeof (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === "string" && (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === ""),
108
- getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
109
- loadPage: (response) => {
110
- return list(core.setObjectProperty(request, "pageToken", response === null || response === void 0 ? void 0 : response.pagination.nextPageToken));
111
- },
82
+ }
83
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/mcp-servers");
84
+ });
85
+ }
86
+ /**
87
+ * A single MCP server as the slim chat projection, with live per-user auth_status.
88
+ *
89
+ * @param {string} name - MCP server name.
90
+ * @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
91
+ *
92
+ * @throws {@link TrueForge.UnauthorizedError}
93
+ * @throws {@link TrueForge.NotFoundError}
94
+ * @throws {@link errors.TrueForgeError}
95
+ * @throws {@link errors.TrueForgeTimeoutError}
96
+ *
97
+ * @example
98
+ * await client.mcpServers.get("name")
99
+ */
100
+ get(name, requestOptions) {
101
+ return core.HttpResponsePromise.fromPromise(this.__get(name, requestOptions));
102
+ }
103
+ __get(name, requestOptions) {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
106
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
107
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
108
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
109
+ 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)}`),
110
+ method: "GET",
111
+ headers: _headers,
112
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
113
+ 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,
114
+ 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,
115
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
116
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
117
+ logging: this._options.logging,
112
118
  });
119
+ if (_response.ok) {
120
+ return {
121
+ data: serializers.GetAvailableMcpServerResponse.parseOrThrow(_response.body, {
122
+ unrecognizedObjectKeys: "passthrough",
123
+ allowUnrecognizedUnionMembers: true,
124
+ allowUnrecognizedEnumValues: true,
125
+ skipValidation: true,
126
+ breadcrumbsPrefix: ["response"],
127
+ }),
128
+ rawResponse: _response.rawResponse,
129
+ };
130
+ }
131
+ if (_response.error.reason === "status-code") {
132
+ switch (_response.error.statusCode) {
133
+ case 401:
134
+ throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
135
+ unrecognizedObjectKeys: "passthrough",
136
+ allowUnrecognizedUnionMembers: true,
137
+ allowUnrecognizedEnumValues: true,
138
+ skipValidation: true,
139
+ breadcrumbsPrefix: ["response"],
140
+ }), _response.rawResponse);
141
+ case 404:
142
+ throw new TrueForge.NotFoundError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
143
+ unrecognizedObjectKeys: "passthrough",
144
+ allowUnrecognizedUnionMembers: true,
145
+ allowUnrecognizedEnumValues: true,
146
+ skipValidation: true,
147
+ breadcrumbsPrefix: ["response"],
148
+ }), _response.rawResponse);
149
+ default:
150
+ throw new errors.TrueForgeError({
151
+ statusCode: _response.error.statusCode,
152
+ body: _response.error.body,
153
+ rawResponse: _response.rawResponse,
154
+ });
155
+ }
156
+ }
157
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/mcp-servers/{name}");
113
158
  });
114
159
  }
115
160
  /**
@@ -1,2 +1 @@
1
1
  export type { AuthorizeMcpServersRequest } from "./AuthorizeMcpServersRequest.mjs";
2
- export type { ListMcpServersRequest } from "./ListMcpServersRequest.mjs";
@@ -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
  }
@@ -583,8 +583,10 @@ export class SchedulesClient {
583
583
  * List runs of a schedule, newest `scheduled_for` first. Available to its creator or a manager of its agent.
584
584
  *
585
585
  * @param {string} schedule_id - Immutable schedule identifier.
586
+ * @param {TrueForge.ListRunsSchedulesRequest} request
586
587
  * @param {SchedulesClient.RequestOptions} requestOptions - Request-specific configuration.
587
588
  *
589
+ * @throws {@link TrueForge.BadRequestError}
588
590
  * @throws {@link TrueForge.ForbiddenError}
589
591
  * @throws {@link TrueForge.NotFoundError}
590
592
  * @throws {@link errors.TrueForgeError}
@@ -593,64 +595,91 @@ export class SchedulesClient {
593
595
  * @example
594
596
  * await client.schedules.listRuns("schedule_id")
595
597
  */
596
- listRuns(schedule_id, requestOptions) {
597
- return core.HttpResponsePromise.fromPromise(this.__listRuns(schedule_id, requestOptions));
598
- }
599
- __listRuns(schedule_id, requestOptions) {
600
- return __awaiter(this, void 0, void 0, function* () {
601
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
602
- const _authRequest = yield this._options.authProvider.getAuthRequest();
603
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
604
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
605
- 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`),
606
- method: "GET",
607
- headers: _headers,
608
- queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
609
- 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,
610
- 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,
611
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
612
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
613
- logging: this._options.logging,
614
- });
615
- if (_response.ok) {
616
- return {
617
- data: serializers.ListScheduleRunsResponse.parseOrThrow(_response.body, {
618
- unrecognizedObjectKeys: "passthrough",
619
- allowUnrecognizedUnionMembers: true,
620
- allowUnrecognizedEnumValues: true,
621
- skipValidation: true,
622
- breadcrumbsPrefix: ["response"],
623
- }),
624
- rawResponse: _response.rawResponse,
598
+ listRuns(schedule_id_1) {
599
+ return __awaiter(this, arguments, void 0, function* (schedule_id, request = {}, requestOptions) {
600
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
601
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
602
+ const { limit = 25, pageToken } = request;
603
+ const _queryParams = {
604
+ limit,
605
+ page_token: pageToken,
625
606
  };
626
- }
627
- if (_response.error.reason === "status-code") {
628
- switch (_response.error.statusCode) {
629
- case 403:
630
- throw new TrueForge.ForbiddenError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
631
- unrecognizedObjectKeys: "passthrough",
632
- allowUnrecognizedUnionMembers: true,
633
- allowUnrecognizedEnumValues: true,
634
- skipValidation: true,
635
- breadcrumbsPrefix: ["response"],
636
- }), _response.rawResponse);
637
- case 404:
638
- throw new TrueForge.NotFoundError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
607
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
608
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
609
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
610
+ 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`),
611
+ method: "GET",
612
+ headers: _headers,
613
+ queryString: core.url
614
+ .queryBuilder()
615
+ .addMany(_queryParams)
616
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
617
+ .build(),
618
+ 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,
619
+ 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,
620
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
621
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
622
+ logging: this._options.logging,
623
+ });
624
+ if (_response.ok) {
625
+ return {
626
+ data: serializers.ListScheduleRunsResponse.parseOrThrow(_response.body, {
639
627
  unrecognizedObjectKeys: "passthrough",
640
628
  allowUnrecognizedUnionMembers: true,
641
629
  allowUnrecognizedEnumValues: true,
642
630
  skipValidation: true,
643
631
  breadcrumbsPrefix: ["response"],
644
- }), _response.rawResponse);
645
- default:
646
- throw new errors.TrueForgeError({
647
- statusCode: _response.error.statusCode,
648
- body: _response.error.body,
649
- rawResponse: _response.rawResponse,
650
- });
632
+ }),
633
+ rawResponse: _response.rawResponse,
634
+ };
651
635
  }
652
- }
653
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/schedules/{schedule_id}/runs");
636
+ if (_response.error.reason === "status-code") {
637
+ switch (_response.error.statusCode) {
638
+ case 400:
639
+ throw new TrueForge.BadRequestError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
640
+ unrecognizedObjectKeys: "passthrough",
641
+ allowUnrecognizedUnionMembers: true,
642
+ allowUnrecognizedEnumValues: true,
643
+ skipValidation: true,
644
+ breadcrumbsPrefix: ["response"],
645
+ }), _response.rawResponse);
646
+ case 403:
647
+ throw new TrueForge.ForbiddenError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
648
+ unrecognizedObjectKeys: "passthrough",
649
+ allowUnrecognizedUnionMembers: true,
650
+ allowUnrecognizedEnumValues: true,
651
+ skipValidation: true,
652
+ breadcrumbsPrefix: ["response"],
653
+ }), _response.rawResponse);
654
+ case 404:
655
+ throw new TrueForge.NotFoundError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
656
+ unrecognizedObjectKeys: "passthrough",
657
+ allowUnrecognizedUnionMembers: true,
658
+ allowUnrecognizedEnumValues: true,
659
+ skipValidation: true,
660
+ breadcrumbsPrefix: ["response"],
661
+ }), _response.rawResponse);
662
+ default:
663
+ throw new errors.TrueForgeError({
664
+ statusCode: _response.error.statusCode,
665
+ body: _response.error.body,
666
+ rawResponse: _response.rawResponse,
667
+ });
668
+ }
669
+ }
670
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/schedules/{schedule_id}/runs");
671
+ }));
672
+ const dataWithRawResponse = yield list(request).withRawResponse();
673
+ return new core.Page({
674
+ response: dataWithRawResponse.data,
675
+ rawResponse: dataWithRawResponse.rawResponse,
676
+ hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) != null &&
677
+ !(typeof (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === "string" && (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === ""),
678
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
679
+ loadPage: (response) => {
680
+ return list(core.setObjectProperty(request, "pageToken", response === null || response === void 0 ? void 0 : response.pagination.nextPageToken));
681
+ },
682
+ });
654
683
  });
655
684
  }
656
685
  }
@@ -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.mjs";
2
2
  export type { CreateScheduleRunRequest } from "./CreateScheduleRunRequest.mjs";
3
+ export type { ListRunsSchedulesRequest } from "./ListRunsSchedulesRequest.mjs";
3
4
  export type { ListSchedulesRequest } from "./ListSchedulesRequest.mjs";
4
5
  export type { UpdateScheduleRequest } from "./UpdateScheduleRequest.mjs";
@@ -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.
@@ -21,7 +21,7 @@ export class SessionsClient {
21
21
  this._options = normalizeClientOptionsWithAuth(options);
22
22
  }
23
23
  /**
24
- * List the caller's sessions (newest first by default).
24
+ * List the sessions (newest first by default).
25
25
  *
26
26
  * @param {TrueForge.ListSessionsRequest} request
27
27
  * @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -37,7 +37,7 @@ export class SessionsClient {
37
37
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
38
38
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
39
39
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
40
- const { limit = 25, order, pageToken, startTimestamp, endTimestamp, agentId, createdByMe } = request;
40
+ const { limit = 25, order, pageToken, startTimestamp, endTimestamp, agentId, createdByMe, metadata, sourceType, sourceId, } = request;
41
41
  const _queryParams = {
42
42
  limit,
43
43
  order: order != null
@@ -53,6 +53,16 @@ export class SessionsClient {
53
53
  end_timestamp: endTimestamp != null ? endTimestamp === null || endTimestamp === void 0 ? void 0 : endTimestamp.toISOString() : undefined,
54
54
  agent_id: agentId,
55
55
  created_by_me: createdByMe,
56
+ metadata,
57
+ source_type: sourceType != null
58
+ ? serializers.SessionSourceType.jsonOrThrow(sourceType, {
59
+ unrecognizedObjectKeys: "passthrough",
60
+ allowUnrecognizedUnionMembers: true,
61
+ allowUnrecognizedEnumValues: true,
62
+ omitUndefined: true,
63
+ })
64
+ : undefined,
65
+ source_id: sourceId,
56
66
  };
57
67
  const _authRequest = yield this._options.authProvider.getAuthRequest();
58
68
  const _headers = 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
  *