@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
@@ -57,12 +57,10 @@ class McpServersClient {
57
57
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
58
58
  }
59
59
  /**
60
- * Paginated MCP servers with auth_status. Header secrets are redacted.
60
+ * Configured MCP servers with auth_status. Header secrets are redacted.
61
61
  *
62
- * @param {TrueForge.settings.ListMcpServersRequest} request
63
62
  * @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
64
63
  *
65
- * @throws {@link TrueForge.BadRequestError}
66
64
  * @throws {@link TrueForge.UnauthorizedError}
67
65
  * @throws {@link TrueForge.ForbiddenError}
68
66
  * @throws {@link errors.TrueForgeError}
@@ -71,91 +69,64 @@ class McpServersClient {
71
69
  * @example
72
70
  * await client.settings.mcpServers.list()
73
71
  */
74
- list() {
75
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
76
- const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
77
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
78
- const { limit = 100, pageToken } = request;
79
- const _queryParams = {
80
- limit,
81
- page_token: pageToken,
72
+ list(requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
74
+ }
75
+ __list(requestOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
78
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
79
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
80
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
81
+ 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"),
82
+ method: "GET",
83
+ headers: _headers,
84
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
85
+ 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,
86
+ 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,
87
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
88
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
89
+ logging: this._options.logging,
90
+ });
91
+ if (_response.ok) {
92
+ return {
93
+ data: serializers.ListMcpServersResponse.parseOrThrow(_response.body, {
94
+ unrecognizedObjectKeys: "passthrough",
95
+ allowUnrecognizedUnionMembers: true,
96
+ allowUnrecognizedEnumValues: true,
97
+ skipValidation: true,
98
+ breadcrumbsPrefix: ["response"],
99
+ }),
100
+ rawResponse: _response.rawResponse,
82
101
  };
83
- const _authRequest = yield this._options.authProvider.getAuthRequest();
84
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
85
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
86
- 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"),
87
- method: "GET",
88
- headers: _headers,
89
- queryString: core.url
90
- .queryBuilder()
91
- .addMany(_queryParams)
92
- .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
93
- .build(),
94
- 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,
95
- 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,
96
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
97
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
98
- logging: this._options.logging,
99
- });
100
- if (_response.ok) {
101
- return {
102
- data: serializers.ListMcpServersResponse.parseOrThrow(_response.body, {
102
+ }
103
+ if (_response.error.reason === "status-code") {
104
+ switch (_response.error.statusCode) {
105
+ case 401:
106
+ throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
103
107
  unrecognizedObjectKeys: "passthrough",
104
108
  allowUnrecognizedUnionMembers: true,
105
109
  allowUnrecognizedEnumValues: true,
106
110
  skipValidation: true,
107
111
  breadcrumbsPrefix: ["response"],
108
- }),
109
- rawResponse: _response.rawResponse,
110
- };
111
- }
112
- if (_response.error.reason === "status-code") {
113
- switch (_response.error.statusCode) {
114
- case 400:
115
- throw new TrueForge.BadRequestError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
116
- unrecognizedObjectKeys: "passthrough",
117
- allowUnrecognizedUnionMembers: true,
118
- allowUnrecognizedEnumValues: true,
119
- skipValidation: true,
120
- breadcrumbsPrefix: ["response"],
121
- }), _response.rawResponse);
122
- case 401:
123
- throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
124
- unrecognizedObjectKeys: "passthrough",
125
- allowUnrecognizedUnionMembers: true,
126
- allowUnrecognizedEnumValues: true,
127
- skipValidation: true,
128
- breadcrumbsPrefix: ["response"],
129
- }), _response.rawResponse);
130
- case 403:
131
- throw new TrueForge.ForbiddenError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
132
- unrecognizedObjectKeys: "passthrough",
133
- allowUnrecognizedUnionMembers: true,
134
- allowUnrecognizedEnumValues: true,
135
- skipValidation: true,
136
- breadcrumbsPrefix: ["response"],
137
- }), _response.rawResponse);
138
- default:
139
- throw new errors.TrueForgeError({
140
- statusCode: _response.error.statusCode,
141
- body: _response.error.body,
142
- rawResponse: _response.rawResponse,
143
- });
144
- }
112
+ }), _response.rawResponse);
113
+ case 403:
114
+ throw new TrueForge.ForbiddenError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
115
+ unrecognizedObjectKeys: "passthrough",
116
+ allowUnrecognizedUnionMembers: true,
117
+ allowUnrecognizedEnumValues: true,
118
+ skipValidation: true,
119
+ breadcrumbsPrefix: ["response"],
120
+ }), _response.rawResponse);
121
+ default:
122
+ throw new errors.TrueForgeError({
123
+ statusCode: _response.error.statusCode,
124
+ body: _response.error.body,
125
+ rawResponse: _response.rawResponse,
126
+ });
145
127
  }
146
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/settings/mcp-servers");
147
- }));
148
- const dataWithRawResponse = yield list(request).withRawResponse();
149
- return new core.Page({
150
- response: dataWithRawResponse.data,
151
- rawResponse: dataWithRawResponse.rawResponse,
152
- hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) != null &&
153
- !(typeof (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === "string" && (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === ""),
154
- getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
155
- loadPage: (response) => {
156
- return list(core.setObjectProperty(request, "pageToken", response === null || response === void 0 ? void 0 : response.pagination.nextPageToken));
157
- },
158
- });
128
+ }
129
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/settings/mcp-servers");
159
130
  });
160
131
  }
161
132
  /**
@@ -1,3 +1,2 @@
1
1
  export type { CreateMcpServerRequest } from "./CreateMcpServerRequest.js";
2
- export type { ListMcpServersRequest } from "./ListMcpServersRequest.js";
3
2
  export type { UpdateMcpServerRequest } from "./UpdateMcpServerRequest.js";
@@ -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
  *
@@ -137,6 +137,7 @@ class SkillsClient {
137
137
  *
138
138
  * @throws {@link TrueForge.BadRequestError}
139
139
  * @throws {@link TrueForge.ConflictError}
140
+ * @throws {@link TrueForge.FailedDependencyError}
140
141
  * @throws {@link errors.TrueForgeError}
141
142
  * @throws {@link errors.TrueForgeTimeoutError}
142
143
  *
@@ -208,6 +209,14 @@ class SkillsClient {
208
209
  skipValidation: true,
209
210
  breadcrumbsPrefix: ["response"],
210
211
  }), _response.rawResponse);
212
+ case 424:
213
+ throw new TrueForge.FailedDependencyError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
214
+ unrecognizedObjectKeys: "passthrough",
215
+ allowUnrecognizedUnionMembers: true,
216
+ allowUnrecognizedEnumValues: true,
217
+ skipValidation: true,
218
+ breadcrumbsPrefix: ["response"],
219
+ }), _response.rawResponse);
211
220
  default:
212
221
  throw new errors.TrueForgeError({
213
222
  statusCode: _response.error.statusCode,
@@ -226,6 +235,7 @@ class SkillsClient {
226
235
  * @param {SkillsClient.RequestOptions} requestOptions - Request-specific configuration.
227
236
  *
228
237
  * @throws {@link TrueForge.BadRequestError}
238
+ * @throws {@link TrueForge.FailedDependencyError}
229
239
  * @throws {@link errors.TrueForgeError}
230
240
  * @throws {@link errors.TrueForgeTimeoutError}
231
241
  *
@@ -289,6 +299,14 @@ class SkillsClient {
289
299
  skipValidation: true,
290
300
  breadcrumbsPrefix: ["response"],
291
301
  }), _response.rawResponse);
302
+ case 424:
303
+ throw new TrueForge.FailedDependencyError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
304
+ unrecognizedObjectKeys: "passthrough",
305
+ allowUnrecognizedUnionMembers: true,
306
+ allowUnrecognizedEnumValues: true,
307
+ skipValidation: true,
308
+ breadcrumbsPrefix: ["response"],
309
+ }), _response.rawResponse);
292
310
  default:
293
311
  throw new errors.TrueForgeError({
294
312
  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
  }
@@ -119,5 +119,80 @@ class SkillsClient {
119
119
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/skills");
120
120
  });
121
121
  }
122
+ /**
123
+ * Versions for one skill.
124
+ *
125
+ * @param {TrueForge.ListVersionsSkillsRequest} request
126
+ * @param {SkillsClient.RequestOptions} requestOptions - Request-specific configuration.
127
+ *
128
+ * @throws {@link TrueForge.UnauthorizedError}
129
+ * @throws {@link errors.TrueForgeError}
130
+ * @throws {@link errors.TrueForgeTimeoutError}
131
+ *
132
+ * @example
133
+ * await client.skills.listVersions({
134
+ * name: "name"
135
+ * })
136
+ */
137
+ listVersions(request, requestOptions) {
138
+ return core.HttpResponsePromise.fromPromise(this.__listVersions(request, requestOptions));
139
+ }
140
+ __listVersions(request, requestOptions) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
143
+ const { name } = request;
144
+ const _queryParams = {
145
+ name,
146
+ };
147
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
148
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
149
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
150
+ 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"),
151
+ method: "GET",
152
+ headers: _headers,
153
+ queryString: core.url
154
+ .queryBuilder()
155
+ .addMany(_queryParams)
156
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
157
+ .build(),
158
+ 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,
159
+ 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,
160
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
161
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
162
+ logging: this._options.logging,
163
+ });
164
+ if (_response.ok) {
165
+ return {
166
+ data: serializers.ListSkillVersionsResponse.parseOrThrow(_response.body, {
167
+ unrecognizedObjectKeys: "passthrough",
168
+ allowUnrecognizedUnionMembers: true,
169
+ allowUnrecognizedEnumValues: true,
170
+ skipValidation: true,
171
+ breadcrumbsPrefix: ["response"],
172
+ }),
173
+ rawResponse: _response.rawResponse,
174
+ };
175
+ }
176
+ if (_response.error.reason === "status-code") {
177
+ switch (_response.error.statusCode) {
178
+ case 401:
179
+ throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
180
+ unrecognizedObjectKeys: "passthrough",
181
+ allowUnrecognizedUnionMembers: true,
182
+ allowUnrecognizedEnumValues: true,
183
+ skipValidation: true,
184
+ breadcrumbsPrefix: ["response"],
185
+ }), _response.rawResponse);
186
+ default:
187
+ throw new errors.TrueForgeError({
188
+ statusCode: _response.error.statusCode,
189
+ body: _response.error.body,
190
+ rawResponse: _response.rawResponse,
191
+ });
192
+ }
193
+ }
194
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/skills/versions");
195
+ });
196
+ }
122
197
  }
123
198
  exports.SkillsClient = SkillsClient;
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests/index.js";
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { ListVersionsSkillsRequest } from "./ListVersionsSkillsRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  import type * as TrueForge from "../index.js";
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.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  import type * as TrueForge from "../index.js";
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.js";
2
+ export interface GetAvailableMcpServerResponse {
3
+ data: TrueForge.AvailableMcpServer;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type * as TrueForge from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,4 @@
1
1
  import type * as TrueForge from "../index.js";
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.js";
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.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  import type * as TrueForge from "../index.js";
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.js";
2
+ export interface ListSkillVersionsResponse {
3
+ data: TrueForge.SkillVersion[];
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PermissionResourceType = void 0;
5
+ /** Resource type to evaluate permissions for. */
6
+ exports.PermissionResourceType = {
7
+ Agent: "agent",
8
+ Schedule: "schedule",
9
+ Session: "session",
10
+ };
@@ -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,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ResourcePermission = void 0;
5
+ /** Granted action on a resource. */
6
+ exports.ResourcePermission = {
7
+ Use: "USE",
8
+ Manage: "MANAGE",
9
+ Delete: "DELETE",
10
+ };
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });