@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.
- package/README.md +3 -3
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +2 -2
- package/dist/cjs/Client.js +4 -4
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +2 -0
- package/dist/cjs/api/resources/internal/client/Client.d.ts +24 -1
- package/dist/cjs/api/resources/internal/client/Client.js +134 -0
- package/dist/cjs/api/resources/internal/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/internal/client/index.js +15 -0
- package/dist/cjs/api/resources/internal/client/requests/ListPermissionsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/internal/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/internal/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/internal/resources/agents/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/internal/resources/agents/client/Client.js +14 -5
- package/dist/cjs/api/resources/internal/resources/agents/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/internal/resources/agents/client/index.js +15 -0
- package/dist/cjs/api/resources/internal/resources/agents/client/requests/GetCodeSnippetsAgentsRequest.d.ts +8 -0
- package/dist/cjs/api/resources/internal/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/internal/resources/agents/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/internal/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/internal/resources/index.js +4 -3
- package/dist/cjs/api/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.d.ts +1 -0
- package/dist/cjs/api/resources/mcpServers/client/Client.d.ts +19 -4
- package/dist/cjs/api/resources/mcpServers/client/Client.js +117 -72
- package/dist/cjs/api/resources/mcpServers/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/schedules/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/schedules/client/Client.js +80 -51
- package/dist/cjs/api/resources/{mcpServers/client/requests/ListMcpServersRequest.d.ts → schedules/client/requests/ListRunsSchedulesRequest.d.ts} +2 -2
- package/dist/cjs/api/resources/schedules/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/sessions/client/Client.js +12 -2
- package/dist/cjs/api/resources/sessions/client/requests/DownloadSandboxFileSessionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsRequest.d.ts +6 -0
- package/dist/cjs/api/resources/settings/resources/mcpServers/client/Client.d.ts +3 -4
- package/dist/cjs/api/resources/settings/resources/mcpServers/client/Client.js +52 -81
- package/dist/cjs/api/resources/settings/resources/mcpServers/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/settings/resources/skills/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/settings/resources/skills/client/Client.js +18 -0
- package/dist/cjs/api/resources/skills/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/skills/client/Client.js +75 -0
- package/dist/cjs/api/resources/skills/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/skills/client/index.js +15 -0
- package/dist/cjs/api/resources/skills/client/requests/ListVersionsSkillsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/skills/client/requests/ListVersionsSkillsRequest.js +3 -0
- package/dist/cjs/api/resources/skills/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/skills/client/requests/index.js +2 -0
- package/dist/cjs/api/types/AgentCodeSnippets.d.ts +1 -1
- package/dist/cjs/api/types/AgentSpec.d.ts +1 -1
- package/dist/cjs/api/types/AvailableSkill.d.ts +4 -2
- package/dist/cjs/api/types/CatalogSkill.d.ts +1 -1
- package/dist/cjs/api/types/CatalogSkillType.d.ts +1 -0
- package/dist/cjs/api/types/CatalogSkillType.js +3 -0
- package/dist/cjs/api/types/ConfiguredSkill.d.ts +1 -1
- package/dist/cjs/api/types/GetAvailableMcpServerResponse.d.ts +4 -0
- package/dist/cjs/api/types/GetAvailableMcpServerResponse.js +3 -0
- package/dist/cjs/api/types/GitSkill.d.ts +13 -0
- package/dist/cjs/api/types/GitSkill.js +3 -0
- package/dist/cjs/api/types/ListAvailableMcpServersResponse.d.ts +0 -1
- package/dist/cjs/api/types/ListMcpServersResponse.d.ts +0 -1
- package/dist/cjs/api/types/ListPermissionsResponse.d.ts +5 -0
- package/dist/cjs/api/types/ListPermissionsResponse.js +3 -0
- package/dist/cjs/api/types/ListScheduleRunsResponse.d.ts +1 -0
- package/dist/cjs/api/types/ListSkillVersionsResponse.d.ts +4 -0
- package/dist/cjs/api/types/ListSkillVersionsResponse.js +3 -0
- package/dist/cjs/api/types/PermissionResourceType.d.ts +7 -0
- package/dist/cjs/api/types/PermissionResourceType.js +10 -0
- package/dist/cjs/api/types/ResourcePermission.d.ts +7 -0
- package/dist/cjs/api/types/ResourcePermission.js +10 -0
- package/dist/cjs/api/types/ScheduleRun.d.ts +1 -0
- package/dist/cjs/api/types/Session.d.ts +1 -0
- package/dist/cjs/api/types/SessionMetrics.d.ts +2 -1
- package/dist/cjs/api/types/SessionSource.d.ts +11 -0
- package/dist/cjs/api/types/SessionSource.js +3 -0
- package/dist/cjs/api/types/SessionSourceSchedule.d.ts +8 -0
- package/dist/cjs/api/types/SessionSourceSchedule.js +3 -0
- package/dist/cjs/api/types/SessionSourceType.d.ts +4 -0
- package/dist/cjs/api/types/SessionSourceType.js +3 -0
- package/dist/cjs/api/types/Skill.d.ts +3 -1
- package/dist/cjs/api/types/SkillManifest.d.ts +1 -12
- package/dist/cjs/api/types/SkillVersion.d.ts +7 -0
- package/dist/cjs/api/types/SkillVersion.js +3 -0
- package/dist/cjs/api/types/TrueFoundryRegistrySkill.d.ts +10 -0
- package/dist/cjs/api/types/TrueFoundryRegistrySkill.js +3 -0
- package/dist/cjs/api/types/index.d.ts +12 -1
- package/dist/cjs/api/types/index.js +12 -1
- package/dist/cjs/serialization/resources/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/index.js +1 -0
- package/dist/cjs/serialization/resources/internal/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/internal/client/index.js +17 -0
- package/dist/cjs/serialization/resources/internal/client/requests/ListPermissionsRequest.d.ts +11 -0
- package/dist/cjs/serialization/resources/internal/client/requests/ListPermissionsRequest.js +43 -0
- package/dist/cjs/serialization/resources/internal/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/internal/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/internal/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/internal/index.js +1 -0
- package/dist/cjs/serialization/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.js +2 -0
- package/dist/cjs/serialization/types/AvailableSkill.d.ts +2 -2
- package/dist/cjs/serialization/types/AvailableSkill.js +2 -2
- package/dist/cjs/serialization/types/CatalogSkill.d.ts +2 -2
- package/dist/cjs/serialization/types/CatalogSkill.js +2 -2
- package/dist/cjs/serialization/types/{SkillType.d.ts → CatalogSkillType.d.ts} +2 -2
- package/dist/cjs/serialization/types/{SkillType.js → CatalogSkillType.js} +2 -2
- package/dist/cjs/serialization/types/ConfiguredSkill.d.ts +1 -2
- package/dist/cjs/serialization/types/ConfiguredSkill.js +1 -2
- package/dist/cjs/serialization/types/GetAvailableMcpServerResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/GetAvailableMcpServerResponse.js +42 -0
- package/dist/cjs/serialization/types/GitSkill.d.ts +15 -0
- package/dist/cjs/serialization/types/GitSkill.js +47 -0
- package/dist/cjs/serialization/types/ListAvailableMcpServersResponse.d.ts +0 -2
- package/dist/cjs/serialization/types/ListAvailableMcpServersResponse.js +0 -2
- package/dist/cjs/serialization/types/ListMcpServersResponse.d.ts +0 -2
- package/dist/cjs/serialization/types/ListMcpServersResponse.js +0 -2
- package/dist/cjs/serialization/types/ListPermissionsResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/ListPermissionsResponse.js +42 -0
- package/dist/cjs/serialization/types/ListScheduleRunsResponse.d.ts +2 -0
- package/dist/cjs/serialization/types/ListScheduleRunsResponse.js +2 -0
- package/dist/cjs/serialization/types/ListSkillVersionsResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/ListSkillVersionsResponse.js +42 -0
- package/dist/cjs/serialization/types/PermissionResourceType.d.ts +7 -0
- package/dist/cjs/serialization/types/PermissionResourceType.js +39 -0
- package/dist/cjs/serialization/types/ResourcePermission.d.ts +7 -0
- package/dist/cjs/serialization/types/ResourcePermission.js +39 -0
- package/dist/cjs/serialization/types/ScheduleRun.d.ts +1 -0
- package/dist/cjs/serialization/types/ScheduleRun.js +1 -0
- package/dist/cjs/serialization/types/Session.d.ts +2 -0
- package/dist/cjs/serialization/types/Session.js +2 -0
- package/dist/cjs/serialization/types/SessionMetrics.d.ts +1 -1
- package/dist/cjs/serialization/types/SessionMetrics.js +1 -1
- package/dist/cjs/serialization/types/SessionSource.d.ts +11 -0
- package/dist/cjs/serialization/types/SessionSource.js +43 -0
- package/dist/cjs/serialization/types/SessionSourceSchedule.d.ts +11 -0
- package/dist/cjs/serialization/types/SessionSourceSchedule.js +43 -0
- package/dist/cjs/serialization/types/SessionSourceType.d.ts +7 -0
- package/dist/cjs/serialization/types/SessionSourceType.js +39 -0
- package/dist/cjs/serialization/types/Skill.d.ts +1 -0
- package/dist/cjs/serialization/types/Skill.js +1 -0
- package/dist/cjs/serialization/types/SkillManifest.d.ts +4 -11
- package/dist/cjs/serialization/types/SkillManifest.js +3 -10
- package/dist/cjs/serialization/types/SkillVersion.d.ts +12 -0
- package/dist/cjs/serialization/types/SkillVersion.js +44 -0
- package/dist/cjs/serialization/types/TrueFoundryRegistrySkill.d.ts +14 -0
- package/dist/cjs/serialization/types/TrueFoundryRegistrySkill.js +46 -0
- package/dist/cjs/serialization/types/index.d.ts +12 -1
- package/dist/cjs/serialization/types/index.js +12 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +4 -4
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/internal/client/Client.d.mts +24 -1
- package/dist/esm/api/resources/internal/client/Client.mjs +101 -0
- package/dist/esm/api/resources/internal/client/index.d.mts +1 -1
- package/dist/esm/api/resources/internal/client/index.mjs +1 -1
- package/dist/esm/api/resources/internal/client/requests/ListPermissionsRequest.d.mts +13 -0
- package/dist/esm/api/resources/internal/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/internal/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/internal/resources/agents/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/internal/resources/agents/client/Client.mjs +14 -5
- package/dist/esm/api/resources/internal/resources/agents/client/index.d.mts +1 -1
- package/dist/esm/api/resources/internal/resources/agents/client/index.mjs +1 -1
- package/dist/esm/api/resources/internal/resources/agents/client/requests/GetCodeSnippetsAgentsRequest.d.mts +8 -0
- package/dist/esm/api/resources/internal/resources/agents/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/internal/resources/agents/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/internal/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/internal/resources/index.mjs +1 -0
- package/dist/esm/api/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.d.mts +1 -0
- package/dist/esm/api/resources/mcpServers/client/Client.d.mts +19 -4
- package/dist/esm/api/resources/mcpServers/client/Client.mjs +117 -72
- package/dist/esm/api/resources/mcpServers/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/schedules/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/schedules/client/Client.mjs +80 -51
- package/dist/esm/api/resources/{settings/resources/mcpServers/client/requests/ListMcpServersRequest.d.mts → schedules/client/requests/ListRunsSchedulesRequest.d.mts} +2 -2
- package/dist/esm/api/resources/schedules/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/sessions/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/sessions/client/Client.mjs +12 -2
- package/dist/esm/api/resources/sessions/client/requests/DownloadSandboxFileSessionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsRequest.d.mts +6 -0
- package/dist/esm/api/resources/settings/resources/mcpServers/client/Client.d.mts +3 -4
- package/dist/esm/api/resources/settings/resources/mcpServers/client/Client.mjs +52 -81
- package/dist/esm/api/resources/settings/resources/mcpServers/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/settings/resources/skills/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/settings/resources/skills/client/Client.mjs +18 -0
- package/dist/esm/api/resources/skills/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/skills/client/Client.mjs +75 -0
- package/dist/esm/api/resources/skills/client/index.d.mts +1 -1
- package/dist/esm/api/resources/skills/client/index.mjs +1 -1
- package/dist/esm/api/resources/skills/client/requests/ListVersionsSkillsRequest.d.mts +10 -0
- package/dist/esm/api/resources/skills/client/requests/ListVersionsSkillsRequest.mjs +2 -0
- package/dist/esm/api/resources/skills/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/skills/client/requests/index.mjs +1 -0
- package/dist/esm/api/types/AgentCodeSnippets.d.mts +1 -1
- package/dist/esm/api/types/AgentSpec.d.mts +1 -1
- package/dist/esm/api/types/AvailableSkill.d.mts +4 -2
- package/dist/esm/api/types/CatalogSkill.d.mts +1 -1
- package/dist/esm/api/types/CatalogSkillType.d.mts +1 -0
- package/dist/esm/api/types/CatalogSkillType.mjs +2 -0
- package/dist/esm/api/types/ConfiguredSkill.d.mts +1 -1
- package/dist/esm/api/types/GetAvailableMcpServerResponse.d.mts +4 -0
- package/dist/esm/api/types/GetAvailableMcpServerResponse.mjs +2 -0
- package/dist/esm/api/types/GitSkill.d.mts +13 -0
- package/dist/esm/api/types/GitSkill.mjs +2 -0
- package/dist/esm/api/types/ListAvailableMcpServersResponse.d.mts +0 -1
- package/dist/esm/api/types/ListMcpServersResponse.d.mts +0 -1
- package/dist/esm/api/types/ListPermissionsResponse.d.mts +5 -0
- package/dist/esm/api/types/ListPermissionsResponse.mjs +2 -0
- package/dist/esm/api/types/ListScheduleRunsResponse.d.mts +1 -0
- package/dist/esm/api/types/ListSkillVersionsResponse.d.mts +4 -0
- package/dist/esm/api/types/ListSkillVersionsResponse.mjs +2 -0
- package/dist/esm/api/types/PermissionResourceType.d.mts +7 -0
- package/dist/esm/api/types/PermissionResourceType.mjs +7 -0
- package/dist/esm/api/types/ResourcePermission.d.mts +7 -0
- package/dist/esm/api/types/ResourcePermission.mjs +7 -0
- package/dist/esm/api/types/ScheduleRun.d.mts +1 -0
- package/dist/esm/api/types/Session.d.mts +1 -0
- package/dist/esm/api/types/SessionMetrics.d.mts +2 -1
- package/dist/esm/api/types/SessionSource.d.mts +11 -0
- package/dist/esm/api/types/SessionSource.mjs +2 -0
- package/dist/esm/api/types/SessionSourceSchedule.d.mts +8 -0
- package/dist/esm/api/types/SessionSourceSchedule.mjs +2 -0
- package/dist/esm/api/types/SessionSourceType.d.mts +4 -0
- package/dist/esm/api/types/SessionSourceType.mjs +2 -0
- package/dist/esm/api/types/Skill.d.mts +3 -1
- package/dist/esm/api/types/SkillManifest.d.mts +1 -12
- package/dist/esm/api/types/SkillVersion.d.mts +7 -0
- package/dist/esm/api/types/SkillVersion.mjs +2 -0
- package/dist/esm/api/types/TrueFoundryRegistrySkill.d.mts +10 -0
- package/dist/esm/api/types/TrueFoundryRegistrySkill.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +12 -1
- package/dist/esm/api/types/index.mjs +12 -1
- package/dist/esm/serialization/resources/index.d.mts +1 -0
- package/dist/esm/serialization/resources/index.mjs +1 -0
- package/dist/esm/serialization/resources/internal/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/internal/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/internal/client/requests/ListPermissionsRequest.d.mts +11 -0
- package/dist/esm/serialization/resources/internal/client/requests/ListPermissionsRequest.mjs +7 -0
- package/dist/esm/serialization/resources/internal/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/internal/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/internal/index.d.mts +1 -0
- package/dist/esm/serialization/resources/internal/index.mjs +1 -0
- package/dist/esm/serialization/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/internal/resources/sessions/client/requests/GetOrCreateSessionByExternalIdRequest.mjs +2 -0
- package/dist/esm/serialization/types/AvailableSkill.d.mts +2 -2
- package/dist/esm/serialization/types/AvailableSkill.mjs +2 -2
- package/dist/esm/serialization/types/CatalogSkill.d.mts +2 -2
- package/dist/esm/serialization/types/CatalogSkill.mjs +2 -2
- package/dist/esm/serialization/types/{SkillType.d.mts → CatalogSkillType.d.mts} +2 -2
- package/dist/esm/serialization/types/{SkillType.mjs → CatalogSkillType.mjs} +1 -1
- package/dist/esm/serialization/types/ConfiguredSkill.d.mts +1 -2
- package/dist/esm/serialization/types/ConfiguredSkill.mjs +1 -2
- package/dist/esm/serialization/types/GetAvailableMcpServerResponse.d.mts +10 -0
- package/dist/esm/serialization/types/GetAvailableMcpServerResponse.mjs +6 -0
- package/dist/esm/serialization/types/GitSkill.d.mts +15 -0
- package/dist/esm/serialization/types/GitSkill.mjs +11 -0
- package/dist/esm/serialization/types/ListAvailableMcpServersResponse.d.mts +0 -2
- package/dist/esm/serialization/types/ListAvailableMcpServersResponse.mjs +0 -2
- package/dist/esm/serialization/types/ListMcpServersResponse.d.mts +0 -2
- package/dist/esm/serialization/types/ListMcpServersResponse.mjs +0 -2
- package/dist/esm/serialization/types/ListPermissionsResponse.d.mts +10 -0
- package/dist/esm/serialization/types/ListPermissionsResponse.mjs +6 -0
- package/dist/esm/serialization/types/ListScheduleRunsResponse.d.mts +2 -0
- package/dist/esm/serialization/types/ListScheduleRunsResponse.mjs +2 -0
- package/dist/esm/serialization/types/ListSkillVersionsResponse.d.mts +10 -0
- package/dist/esm/serialization/types/ListSkillVersionsResponse.mjs +6 -0
- package/dist/esm/serialization/types/PermissionResourceType.d.mts +7 -0
- package/dist/esm/serialization/types/PermissionResourceType.mjs +3 -0
- package/dist/esm/serialization/types/ResourcePermission.d.mts +7 -0
- package/dist/esm/serialization/types/ResourcePermission.mjs +3 -0
- package/dist/esm/serialization/types/ScheduleRun.d.mts +1 -0
- package/dist/esm/serialization/types/ScheduleRun.mjs +1 -0
- package/dist/esm/serialization/types/Session.d.mts +2 -0
- package/dist/esm/serialization/types/Session.mjs +2 -0
- package/dist/esm/serialization/types/SessionMetrics.d.mts +1 -1
- package/dist/esm/serialization/types/SessionMetrics.mjs +1 -1
- package/dist/esm/serialization/types/SessionSource.d.mts +11 -0
- package/dist/esm/serialization/types/SessionSource.mjs +7 -0
- package/dist/esm/serialization/types/SessionSourceSchedule.d.mts +11 -0
- package/dist/esm/serialization/types/SessionSourceSchedule.mjs +7 -0
- package/dist/esm/serialization/types/SessionSourceType.d.mts +7 -0
- package/dist/esm/serialization/types/SessionSourceType.mjs +3 -0
- package/dist/esm/serialization/types/Skill.d.mts +1 -0
- package/dist/esm/serialization/types/Skill.mjs +1 -0
- package/dist/esm/serialization/types/SkillManifest.d.mts +4 -11
- package/dist/esm/serialization/types/SkillManifest.mjs +3 -10
- package/dist/esm/serialization/types/SkillVersion.d.mts +12 -0
- package/dist/esm/serialization/types/SkillVersion.mjs +8 -0
- package/dist/esm/serialization/types/TrueFoundryRegistrySkill.d.mts +14 -0
- package/dist/esm/serialization/types/TrueFoundryRegistrySkill.mjs +10 -0
- package/dist/esm/serialization/types/index.d.mts +12 -1
- package/dist/esm/serialization/types/index.mjs +12 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -12
- package/reference.md +211 -16
- package/dist/cjs/api/resources/settings/resources/mcpServers/client/requests/ListMcpServersRequest.d.ts +0 -10
- package/dist/cjs/api/types/SkillType.d.ts +0 -1
- package/dist/esm/api/resources/mcpServers/client/requests/ListMcpServersRequest.d.mts +0 -10
- package/dist/esm/api/types/SkillType.d.mts +0 -1
- /package/dist/cjs/api/resources/{mcpServers/client/requests/ListMcpServersRequest.js → internal/client/requests/ListPermissionsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{settings/resources/mcpServers/client/requests/ListMcpServersRequest.js → internal/resources/agents/client/requests/GetCodeSnippetsAgentsRequest.js} +0 -0
- /package/dist/cjs/api/{types/SkillType.js → resources/schedules/client/requests/ListRunsSchedulesRequest.js} +0 -0
- /package/dist/esm/api/resources/{mcpServers/client/requests/ListMcpServersRequest.mjs → internal/client/requests/ListPermissionsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{settings/resources/mcpServers/client/requests/ListMcpServersRequest.mjs → internal/resources/agents/client/requests/GetCodeSnippetsAgentsRequest.mjs} +0 -0
- /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
|
-
*
|
|
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
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
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
|
/**
|
|
@@ -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 @@
|
|
|
1
|
+
export type { ListVersionsSkillsRequest } from "./ListVersionsSkillsRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -12,6 +12,6 @@ export interface AgentSpec {
|
|
|
12
12
|
messages?: TrueForge.InitialUserMessage[];
|
|
13
13
|
model: TrueForge.Model;
|
|
14
14
|
responseFormat?: TrueForge.ResponseFormat;
|
|
15
|
-
/**
|
|
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
|
-
|
|
4
|
+
/** Optional skill metadata. */
|
|
5
|
+
metadata?: Record<string, string>;
|
|
6
|
+
/** Skill name. */
|
|
7
|
+
name: string;
|
|
6
8
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CatalogSkillType = "git";
|
|
@@ -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,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];
|
|
@@ -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. */
|
|
@@ -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
|
+
}
|
|
@@ -1,13 +1,2 @@
|
|
|
1
1
|
import type * as TrueForge from "../index.mjs";
|
|
2
|
-
export
|
|
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;
|