@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
@@ -21,12 +21,10 @@ export class McpServersClient {
21
21
  this._options = normalizeClientOptionsWithAuth(options);
22
22
  }
23
23
  /**
24
- * Paginated MCP servers with auth_status. Header secrets are redacted.
24
+ * Configured MCP servers with auth_status. Header secrets are redacted.
25
25
  *
26
- * @param {TrueForge.settings.ListMcpServersRequest} request
27
26
  * @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
28
27
  *
29
- * @throws {@link TrueForge.BadRequestError}
30
28
  * @throws {@link TrueForge.UnauthorizedError}
31
29
  * @throws {@link TrueForge.ForbiddenError}
32
30
  * @throws {@link errors.TrueForgeError}
@@ -35,91 +33,64 @@ export class McpServersClient {
35
33
  * @example
36
34
  * await client.settings.mcpServers.list()
37
35
  */
38
- list() {
39
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
40
- const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
41
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
42
- const { limit = 100, pageToken } = request;
43
- const _queryParams = {
44
- limit,
45
- page_token: pageToken,
36
+ list(requestOptions) {
37
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
38
+ }
39
+ __list(requestOptions) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
42
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
43
+ 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);
44
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
45
+ 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/settings/mcp-servers"),
46
+ method: "GET",
47
+ headers: _headers,
48
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
49
+ 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,
50
+ 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,
51
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
52
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
53
+ logging: this._options.logging,
54
+ });
55
+ if (_response.ok) {
56
+ return {
57
+ data: serializers.ListMcpServersResponse.parseOrThrow(_response.body, {
58
+ unrecognizedObjectKeys: "passthrough",
59
+ allowUnrecognizedUnionMembers: true,
60
+ allowUnrecognizedEnumValues: true,
61
+ skipValidation: true,
62
+ breadcrumbsPrefix: ["response"],
63
+ }),
64
+ rawResponse: _response.rawResponse,
46
65
  };
47
- const _authRequest = yield this._options.authProvider.getAuthRequest();
48
- 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);
49
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
50
- 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/settings/mcp-servers"),
51
- method: "GET",
52
- headers: _headers,
53
- queryString: core.url
54
- .queryBuilder()
55
- .addMany(_queryParams)
56
- .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
57
- .build(),
58
- 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,
59
- 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,
60
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
61
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
62
- logging: this._options.logging,
63
- });
64
- if (_response.ok) {
65
- return {
66
- data: serializers.ListMcpServersResponse.parseOrThrow(_response.body, {
66
+ }
67
+ if (_response.error.reason === "status-code") {
68
+ switch (_response.error.statusCode) {
69
+ case 401:
70
+ throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
67
71
  unrecognizedObjectKeys: "passthrough",
68
72
  allowUnrecognizedUnionMembers: true,
69
73
  allowUnrecognizedEnumValues: true,
70
74
  skipValidation: true,
71
75
  breadcrumbsPrefix: ["response"],
72
- }),
73
- rawResponse: _response.rawResponse,
74
- };
75
- }
76
- if (_response.error.reason === "status-code") {
77
- switch (_response.error.statusCode) {
78
- case 400:
79
- throw new TrueForge.BadRequestError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
80
- unrecognizedObjectKeys: "passthrough",
81
- allowUnrecognizedUnionMembers: true,
82
- allowUnrecognizedEnumValues: true,
83
- skipValidation: true,
84
- breadcrumbsPrefix: ["response"],
85
- }), _response.rawResponse);
86
- case 401:
87
- throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
88
- unrecognizedObjectKeys: "passthrough",
89
- allowUnrecognizedUnionMembers: true,
90
- allowUnrecognizedEnumValues: true,
91
- skipValidation: true,
92
- breadcrumbsPrefix: ["response"],
93
- }), _response.rawResponse);
94
- case 403:
95
- throw new TrueForge.ForbiddenError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
96
- unrecognizedObjectKeys: "passthrough",
97
- allowUnrecognizedUnionMembers: true,
98
- allowUnrecognizedEnumValues: true,
99
- skipValidation: true,
100
- breadcrumbsPrefix: ["response"],
101
- }), _response.rawResponse);
102
- default:
103
- throw new errors.TrueForgeError({
104
- statusCode: _response.error.statusCode,
105
- body: _response.error.body,
106
- rawResponse: _response.rawResponse,
107
- });
108
- }
76
+ }), _response.rawResponse);
77
+ case 403:
78
+ throw new TrueForge.ForbiddenError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
79
+ unrecognizedObjectKeys: "passthrough",
80
+ allowUnrecognizedUnionMembers: true,
81
+ allowUnrecognizedEnumValues: true,
82
+ skipValidation: true,
83
+ breadcrumbsPrefix: ["response"],
84
+ }), _response.rawResponse);
85
+ default:
86
+ throw new errors.TrueForgeError({
87
+ statusCode: _response.error.statusCode,
88
+ body: _response.error.body,
89
+ rawResponse: _response.rawResponse,
90
+ });
109
91
  }
110
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/settings/mcp-servers");
111
- }));
112
- const dataWithRawResponse = yield list(request).withRawResponse();
113
- return new core.Page({
114
- response: dataWithRawResponse.data,
115
- rawResponse: dataWithRawResponse.rawResponse,
116
- hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) != null &&
117
- !(typeof (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === "string" && (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === ""),
118
- getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
119
- loadPage: (response) => {
120
- return list(core.setObjectProperty(request, "pageToken", response === null || response === void 0 ? void 0 : response.pagination.nextPageToken));
121
- },
122
- });
92
+ }
93
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/settings/mcp-servers");
123
94
  });
124
95
  }
125
96
  /**
@@ -1,3 +1,2 @@
1
1
  export type { CreateMcpServerRequest } from "./CreateMcpServerRequest.mjs";
2
- export type { ListMcpServersRequest } from "./ListMcpServersRequest.mjs";
3
2
  export type { UpdateMcpServerRequest } from "./UpdateMcpServerRequest.mjs";
@@ -33,6 +33,7 @@ export declare class SkillsClient {
33
33
  *
34
34
  * @throws {@link TrueForge.BadRequestError}
35
35
  * @throws {@link TrueForge.ConflictError}
36
+ * @throws {@link TrueForge.FailedDependencyError}
36
37
  * @throws {@link errors.TrueForgeError}
37
38
  * @throws {@link errors.TrueForgeTimeoutError}
38
39
  *
@@ -56,6 +57,7 @@ export declare class SkillsClient {
56
57
  * @param {SkillsClient.RequestOptions} requestOptions - Request-specific configuration.
57
58
  *
58
59
  * @throws {@link TrueForge.BadRequestError}
60
+ * @throws {@link TrueForge.FailedDependencyError}
59
61
  * @throws {@link errors.TrueForgeError}
60
62
  * @throws {@link errors.TrueForgeTimeoutError}
61
63
  *
@@ -101,6 +101,7 @@ export class SkillsClient {
101
101
  *
102
102
  * @throws {@link TrueForge.BadRequestError}
103
103
  * @throws {@link TrueForge.ConflictError}
104
+ * @throws {@link TrueForge.FailedDependencyError}
104
105
  * @throws {@link errors.TrueForgeError}
105
106
  * @throws {@link errors.TrueForgeTimeoutError}
106
107
  *
@@ -172,6 +173,14 @@ export class SkillsClient {
172
173
  skipValidation: true,
173
174
  breadcrumbsPrefix: ["response"],
174
175
  }), _response.rawResponse);
176
+ case 424:
177
+ throw new TrueForge.FailedDependencyError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
178
+ unrecognizedObjectKeys: "passthrough",
179
+ allowUnrecognizedUnionMembers: true,
180
+ allowUnrecognizedEnumValues: true,
181
+ skipValidation: true,
182
+ breadcrumbsPrefix: ["response"],
183
+ }), _response.rawResponse);
175
184
  default:
176
185
  throw new errors.TrueForgeError({
177
186
  statusCode: _response.error.statusCode,
@@ -190,6 +199,7 @@ export class SkillsClient {
190
199
  * @param {SkillsClient.RequestOptions} requestOptions - Request-specific configuration.
191
200
  *
192
201
  * @throws {@link TrueForge.BadRequestError}
202
+ * @throws {@link TrueForge.FailedDependencyError}
193
203
  * @throws {@link errors.TrueForgeError}
194
204
  * @throws {@link errors.TrueForgeTimeoutError}
195
205
  *
@@ -253,6 +263,14 @@ export class SkillsClient {
253
263
  skipValidation: true,
254
264
  breadcrumbsPrefix: ["response"],
255
265
  }), _response.rawResponse);
266
+ case 424:
267
+ throw new TrueForge.FailedDependencyError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
268
+ unrecognizedObjectKeys: "passthrough",
269
+ allowUnrecognizedUnionMembers: true,
270
+ allowUnrecognizedEnumValues: true,
271
+ skipValidation: true,
272
+ breadcrumbsPrefix: ["response"],
273
+ }), _response.rawResponse);
256
274
  default:
257
275
  throw new errors.TrueForgeError({
258
276
  statusCode: _response.error.statusCode,
@@ -24,4 +24,21 @@ export declare class SkillsClient {
24
24
  */
25
25
  list(requestOptions?: SkillsClient.RequestOptions): core.HttpResponsePromise<TrueForge.ListAvailableSkillsResponse>;
26
26
  private __list;
27
+ /**
28
+ * Versions for one skill.
29
+ *
30
+ * @param {TrueForge.ListVersionsSkillsRequest} request
31
+ * @param {SkillsClient.RequestOptions} requestOptions - Request-specific configuration.
32
+ *
33
+ * @throws {@link TrueForge.UnauthorizedError}
34
+ * @throws {@link errors.TrueForgeError}
35
+ * @throws {@link errors.TrueForgeTimeoutError}
36
+ *
37
+ * @example
38
+ * await client.skills.listVersions({
39
+ * name: "name"
40
+ * })
41
+ */
42
+ listVersions(request: TrueForge.ListVersionsSkillsRequest, requestOptions?: SkillsClient.RequestOptions): core.HttpResponsePromise<TrueForge.ListSkillVersionsResponse>;
43
+ private __listVersions;
27
44
  }
@@ -83,4 +83,79 @@ export class SkillsClient {
83
83
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/skills");
84
84
  });
85
85
  }
86
+ /**
87
+ * Versions for one skill.
88
+ *
89
+ * @param {TrueForge.ListVersionsSkillsRequest} request
90
+ * @param {SkillsClient.RequestOptions} requestOptions - Request-specific configuration.
91
+ *
92
+ * @throws {@link TrueForge.UnauthorizedError}
93
+ * @throws {@link errors.TrueForgeError}
94
+ * @throws {@link errors.TrueForgeTimeoutError}
95
+ *
96
+ * @example
97
+ * await client.skills.listVersions({
98
+ * name: "name"
99
+ * })
100
+ */
101
+ listVersions(request, requestOptions) {
102
+ return core.HttpResponsePromise.fromPromise(this.__listVersions(request, requestOptions));
103
+ }
104
+ __listVersions(request, requestOptions) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
107
+ const { name } = request;
108
+ const _queryParams = {
109
+ name,
110
+ };
111
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
112
+ 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);
113
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
114
+ 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/skills/versions"),
115
+ method: "GET",
116
+ headers: _headers,
117
+ queryString: core.url
118
+ .queryBuilder()
119
+ .addMany(_queryParams)
120
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
121
+ .build(),
122
+ 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,
123
+ 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,
124
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
125
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
126
+ logging: this._options.logging,
127
+ });
128
+ if (_response.ok) {
129
+ return {
130
+ data: serializers.ListSkillVersionsResponse.parseOrThrow(_response.body, {
131
+ unrecognizedObjectKeys: "passthrough",
132
+ allowUnrecognizedUnionMembers: true,
133
+ allowUnrecognizedEnumValues: true,
134
+ skipValidation: true,
135
+ breadcrumbsPrefix: ["response"],
136
+ }),
137
+ rawResponse: _response.rawResponse,
138
+ };
139
+ }
140
+ if (_response.error.reason === "status-code") {
141
+ switch (_response.error.statusCode) {
142
+ case 401:
143
+ throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
144
+ unrecognizedObjectKeys: "passthrough",
145
+ allowUnrecognizedUnionMembers: true,
146
+ allowUnrecognizedEnumValues: true,
147
+ skipValidation: true,
148
+ breadcrumbsPrefix: ["response"],
149
+ }), _response.rawResponse);
150
+ default:
151
+ throw new errors.TrueForgeError({
152
+ statusCode: _response.error.statusCode,
153
+ body: _response.error.body,
154
+ rawResponse: _response.rawResponse,
155
+ });
156
+ }
157
+ }
158
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/skills/versions");
159
+ });
160
+ }
86
161
  }
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests/index.mjs";
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "name"
5
+ * }
6
+ */
7
+ export interface ListVersionsSkillsRequest {
8
+ /** Skill name. */
9
+ name: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type { ListVersionsSkillsRequest } from "./ListVersionsSkillsRequest.mjs";
@@ -1,6 +1,6 @@
1
1
  import type * as TrueForge from "../index.mjs";
2
2
  export interface AgentCodeSnippets {
3
- /** Origin to pass as the TrueForge SDK `baseUrl`. */
3
+ /** Public base URL for the TrueForge SDK `baseUrl`. */
4
4
  baseUrl: string;
5
5
  snippets: TrueForge.AgentCodeSnippet[];
6
6
  }
@@ -12,6 +12,6 @@ export interface AgentSpec {
12
12
  messages?: TrueForge.InitialUserMessage[];
13
13
  model: TrueForge.Model;
14
14
  responseFormat?: TrueForge.ResponseFormat;
15
- /** Optional name-only skill references. Requires `config.sandbox.enabled: true`. */
15
+ /** Skills used in this agent. */
16
16
  skills?: TrueForge.Skill[];
17
17
  }
@@ -1,6 +1,8 @@
1
- import type * as TrueForge from "../index.mjs";
2
1
  export interface AvailableSkill {
3
2
  /** Concise guidance for when the agent should use the skill. */
4
3
  description: string;
5
- name: TrueForge.ResourceName;
4
+ /** Optional skill metadata. */
5
+ metadata?: Record<string, string>;
6
+ /** Skill name. */
7
+ name: string;
6
8
  }
@@ -7,7 +7,7 @@ export interface CatalogSkill {
7
7
  path?: string;
8
8
  /** Git ref — branch name, tag, or commit SHA. */
9
9
  ref: string;
10
- type: TrueForge.SkillType;
10
+ type: TrueForge.CatalogSkillType;
11
11
  /** Full HTTPS URL of a GitHub or GitLab repository. */
12
12
  url: string;
13
13
  }
@@ -0,0 +1 @@
1
+ export type CatalogSkillType = "git";
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type * as TrueForge from "../index.mjs";
2
2
  export interface ConfiguredSkill {
3
3
  manifest: TrueForge.SkillManifest;
4
- name: TrueForge.ResourceName;
4
+ name: string;
5
5
  }
@@ -0,0 +1,4 @@
1
+ import type * as TrueForge from "../index.mjs";
2
+ export interface GetAvailableMcpServerResponse {
3
+ data: TrueForge.AvailableMcpServer;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,13 @@
1
+ import type * as TrueForge from "../index.mjs";
2
+ export interface GitSkill {
3
+ /** Concise guidance for when the agent should use the skill. */
4
+ description: string;
5
+ name: TrueForge.ResourceName;
6
+ /** Path to the skill directory within the repository. Omit to use the repository root. */
7
+ path?: string;
8
+ /** Git ref — branch name, tag, or commit SHA. */
9
+ ref: string;
10
+ type: "git";
11
+ /** Full HTTPS URL of a GitHub or GitLab repository. */
12
+ url: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,5 +1,4 @@
1
1
  import type * as TrueForge from "../index.mjs";
2
2
  export interface ListAvailableMcpServersResponse {
3
3
  data: TrueForge.AvailableMcpServer[];
4
- pagination: TrueForge.TokenPagination;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import type * as TrueForge from "../index.mjs";
2
2
  export interface ListMcpServersResponse {
3
3
  data: TrueForge.ConfiguredMcpServer[];
4
- pagination: TrueForge.TokenPagination;
5
4
  }
@@ -0,0 +1,5 @@
1
+ import type * as TrueForge from "../index.mjs";
2
+ export interface ListPermissionsResponse {
3
+ /** Permissions granted to the caller, keyed by resource id. Missing or inaccessible ids are `[]`. */
4
+ data: Record<string, TrueForge.ResourcePermission[]>;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,4 +1,5 @@
1
1
  import type * as TrueForge from "../index.mjs";
2
2
  export interface ListScheduleRunsResponse {
3
3
  data: TrueForge.ScheduleRun[];
4
+ pagination: TrueForge.TokenPagination;
4
5
  }
@@ -0,0 +1,4 @@
1
+ import type * as TrueForge from "../index.mjs";
2
+ export interface ListSkillVersionsResponse {
3
+ data: TrueForge.SkillVersion[];
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ /** Resource type to evaluate permissions for. */
2
+ export declare const PermissionResourceType: {
3
+ readonly Agent: "agent";
4
+ readonly Schedule: "schedule";
5
+ readonly Session: "session";
6
+ };
7
+ export type PermissionResourceType = (typeof PermissionResourceType)[keyof typeof PermissionResourceType];
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Resource type to evaluate permissions for. */
3
+ export const PermissionResourceType = {
4
+ Agent: "agent",
5
+ Schedule: "schedule",
6
+ Session: "session",
7
+ };
@@ -0,0 +1,7 @@
1
+ /** Granted action on a resource. */
2
+ export declare const ResourcePermission: {
3
+ readonly Use: "USE";
4
+ readonly Manage: "MANAGE";
5
+ readonly Delete: "DELETE";
6
+ };
7
+ export type ResourcePermission = (typeof ResourcePermission)[keyof typeof ResourcePermission];
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Granted action on a resource. */
3
+ export const ResourcePermission = {
4
+ Use: "USE",
5
+ Manage: "MANAGE",
6
+ Delete: "DELETE",
7
+ };
@@ -4,6 +4,7 @@ export interface ScheduleRun {
4
4
  createdBySubject: TrueForge.CreatedBySubject;
5
5
  id: string;
6
6
  name: string;
7
+ reason: string | null;
7
8
  scheduleId: string;
8
9
  scheduledFor: Date;
9
10
  status: TrueForge.ScheduleRunStatus;
@@ -8,6 +8,7 @@ export interface Session {
8
8
  id: string;
9
9
  metadata: TrueForge.SessionMetadata;
10
10
  metrics: TrueForge.SessionMetrics;
11
+ source: TrueForge.SessionSource | null;
11
12
  /** Optional human-readable title; null until set. */
12
13
  title: string | null;
13
14
  /** ISO 8601 last-update timestamp. */
@@ -2,7 +2,8 @@
2
2
  * Rolled-up cost, duration, and turn counters for a session.
3
3
  */
4
4
  export interface SessionMetrics {
5
- totalCostInUsd: number;
5
+ /** Estimated total cost in USD for this session */
6
+ totalCostInUsd?: number;
6
7
  totalDurationMs: number;
7
8
  totalTurns: number;
8
9
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * How this session was created (e.g. a schedule run). Null for interactive sessions.
3
+ */
4
+ export interface SessionSource {
5
+ /** Schedule id. */
6
+ id: string;
7
+ /** Schedule run id. */
8
+ runId: string;
9
+ /** Session was created by a schedule run. */
10
+ type: "schedule";
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface SessionSourceSchedule {
2
+ /** Schedule id. */
3
+ id: string;
4
+ /** Schedule run id. */
5
+ runId: string;
6
+ /** Session was created by a schedule run. */
7
+ type: "schedule";
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * When set, returns only sessions created by this source type.
3
+ */
4
+ export type SessionSourceType = "schedule";
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,4 +1,6 @@
1
1
  export interface Skill {
2
- /** Name of a configured skill (also used as the skill directory name in the sandbox). */
2
+ /** Skill name. */
3
3
  name: string;
4
+ /** Inline SKILL.md into the prompt. */
5
+ preload?: boolean;
4
6
  }
@@ -1,13 +1,2 @@
1
1
  import type * as TrueForge from "../index.mjs";
2
- export interface SkillManifest {
3
- /** Concise guidance for when the agent should use the skill. */
4
- description: string;
5
- name: TrueForge.ResourceName;
6
- /** Path to the skill directory within the repository. Omit to use the repository root. */
7
- path?: string;
8
- /** Git ref — branch name, tag, or commit SHA. */
9
- ref: string;
10
- type: TrueForge.SkillType;
11
- /** Full HTTPS URL of a GitHub or GitLab repository. */
12
- url: string;
13
- }
2
+ export type SkillManifest = TrueForge.GitSkill | TrueForge.TrueFoundryRegistrySkill;
@@ -0,0 +1,7 @@
1
+ export interface SkillVersion {
2
+ /** Concise guidance for when the agent should use the skill. */
3
+ description: string;
4
+ displayName: string;
5
+ name: string;
6
+ version: number;
7
+ }