@truefoundry/trueforge-sdk 0.1.4-rc.2 → 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/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/requests/DownloadSandboxFileSessionsRequest.d.ts +1 -1
- 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/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 +9 -1
- package/dist/cjs/api/types/index.js +9 -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/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/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 +9 -1
- package/dist/cjs/serialization/types/index.js +9 -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/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/requests/DownloadSandboxFileSessionsRequest.d.mts +1 -1
- 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/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 +9 -1
- package/dist/esm/api/types/index.mjs +9 -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/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/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 +9 -1
- package/dist/esm/serialization/types/index.mjs +9 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -12
- package/reference.md +210 -15
- 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
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ following namespace:
|
|
|
68
68
|
```typescript
|
|
69
69
|
import { TrueForge } from "@truefoundry/trueforge-sdk";
|
|
70
70
|
|
|
71
|
-
const request: TrueForge.
|
|
71
|
+
const request: TrueForge.ListPermissionsRequest = {
|
|
72
72
|
...
|
|
73
73
|
};
|
|
74
74
|
```
|
|
@@ -504,9 +504,9 @@ const text = new TextDecoder().decode(bytes);
|
|
|
504
504
|
This SDK supports direct imports of subpackage clients, which allows JavaScript bundlers to tree-shake and include only the imported subpackage code. This results in much smaller bundle sizes.
|
|
505
505
|
|
|
506
506
|
```typescript
|
|
507
|
-
import {
|
|
507
|
+
import { InternalClient } from '@truefoundry/trueforge-sdk/internal';
|
|
508
508
|
|
|
509
|
-
const client = new
|
|
509
|
+
const client = new InternalClient({...});
|
|
510
510
|
```
|
|
511
511
|
|
|
512
512
|
### Additional Headers
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@truefoundry/trueforge-sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.
|
|
47
|
-
"User-Agent": "@truefoundry/trueforge-sdk/0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.2.0-rc.3",
|
|
47
|
+
"User-Agent": "@truefoundry/trueforge-sdk/0.2.0-rc.3",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare namespace TrueForge {
|
|
|
19
19
|
}
|
|
20
20
|
export declare class TrueForge {
|
|
21
21
|
protected readonly _options: NormalizedClientOptionsWithAuth<TrueForge.Options>;
|
|
22
|
+
protected _internal: InternalClient | undefined;
|
|
22
23
|
protected _agents: AgentsClient | undefined;
|
|
23
24
|
protected _auth: AuthClient | undefined;
|
|
24
25
|
protected _server: ServerClient | undefined;
|
|
@@ -28,9 +29,9 @@ export declare class TrueForge {
|
|
|
28
29
|
protected _sessions: SessionsClient | undefined;
|
|
29
30
|
protected _skills: SkillsClient | undefined;
|
|
30
31
|
protected _catalogs: CatalogsClient | undefined;
|
|
31
|
-
protected _internal: InternalClient | undefined;
|
|
32
32
|
protected _settings: SettingsClient | undefined;
|
|
33
33
|
constructor(options: TrueForge.Options);
|
|
34
|
+
get internal(): InternalClient;
|
|
34
35
|
get agents(): AgentsClient;
|
|
35
36
|
get auth(): AuthClient;
|
|
36
37
|
get server(): ServerClient;
|
|
@@ -40,7 +41,6 @@ export declare class TrueForge {
|
|
|
40
41
|
get sessions(): SessionsClient;
|
|
41
42
|
get skills(): SkillsClient;
|
|
42
43
|
get catalogs(): CatalogsClient;
|
|
43
|
-
get internal(): InternalClient;
|
|
44
44
|
get settings(): SettingsClient;
|
|
45
45
|
/**
|
|
46
46
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
package/dist/cjs/Client.js
CHANGED
|
@@ -61,6 +61,10 @@ class TrueForge {
|
|
|
61
61
|
constructor(options) {
|
|
62
62
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
63
63
|
}
|
|
64
|
+
get internal() {
|
|
65
|
+
var _a;
|
|
66
|
+
return ((_a = this._internal) !== null && _a !== void 0 ? _a : (this._internal = new Client_js_4.InternalClient(this._options)));
|
|
67
|
+
}
|
|
64
68
|
get agents() {
|
|
65
69
|
var _a;
|
|
66
70
|
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_js_1.AgentsClient(this._options)));
|
|
@@ -97,10 +101,6 @@ class TrueForge {
|
|
|
97
101
|
var _a;
|
|
98
102
|
return ((_a = this._catalogs) !== null && _a !== void 0 ? _a : (this._catalogs = new Client_js_3.CatalogsClient(this._options)));
|
|
99
103
|
}
|
|
100
|
-
get internal() {
|
|
101
|
-
var _a;
|
|
102
|
-
return ((_a = this._internal) !== null && _a !== void 0 ? _a : (this._internal = new Client_js_4.InternalClient(this._options)));
|
|
103
|
-
}
|
|
104
104
|
get settings() {
|
|
105
105
|
var _a;
|
|
106
106
|
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_js_10.SettingsClient(this._options)));
|
|
@@ -2,6 +2,7 @@ export * from "./agents/client/requests/index.js";
|
|
|
2
2
|
export * as agents from "./agents/index.js";
|
|
3
3
|
export * as auth from "./auth/index.js";
|
|
4
4
|
export * as catalogs from "./catalogs/index.js";
|
|
5
|
+
export * from "./internal/client/requests/index.js";
|
|
5
6
|
export * as internal from "./internal/index.js";
|
|
6
7
|
export * from "./mcpServers/client/requests/index.js";
|
|
7
8
|
export * as mcpServers from "./mcpServers/index.js";
|
|
@@ -12,4 +13,5 @@ export * as server from "./server/index.js";
|
|
|
12
13
|
export * from "./sessions/client/requests/index.js";
|
|
13
14
|
export * as sessions from "./sessions/index.js";
|
|
14
15
|
export * as settings from "./settings/index.js";
|
|
16
|
+
export * from "./skills/client/requests/index.js";
|
|
15
17
|
export * as skills from "./skills/index.js";
|
|
@@ -41,6 +41,7 @@ __exportStar(require("./agents/client/requests/index.js"), exports);
|
|
|
41
41
|
exports.agents = __importStar(require("./agents/index.js"));
|
|
42
42
|
exports.auth = __importStar(require("./auth/index.js"));
|
|
43
43
|
exports.catalogs = __importStar(require("./catalogs/index.js"));
|
|
44
|
+
__exportStar(require("./internal/client/requests/index.js"), exports);
|
|
44
45
|
exports.internal = __importStar(require("./internal/index.js"));
|
|
45
46
|
__exportStar(require("./mcpServers/client/requests/index.js"), exports);
|
|
46
47
|
exports.mcpServers = __importStar(require("./mcpServers/index.js"));
|
|
@@ -51,4 +52,5 @@ exports.server = __importStar(require("./server/index.js"));
|
|
|
51
52
|
__exportStar(require("./sessions/client/requests/index.js"), exports);
|
|
52
53
|
exports.sessions = __importStar(require("./sessions/index.js"));
|
|
53
54
|
exports.settings = __importStar(require("./settings/index.js"));
|
|
55
|
+
__exportStar(require("./skills/client/requests/index.js"), exports);
|
|
54
56
|
exports.skills = __importStar(require("./skills/index.js"));
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import type { BaseClientOptions } from "../../../../BaseClient.js";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as TrueForge from "../../../index.js";
|
|
3
5
|
import { AgentsClient } from "../resources/agents/client/Client.js";
|
|
4
6
|
import { MetricsClient } from "../resources/metrics/client/Client.js";
|
|
5
7
|
import { SessionsClient } from "../resources/sessions/client/Client.js";
|
|
6
8
|
export declare namespace InternalClient {
|
|
7
9
|
type Options = BaseClientOptions;
|
|
10
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
11
|
+
}
|
|
8
12
|
}
|
|
9
13
|
export declare class InternalClient {
|
|
10
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<InternalClient.Options>;
|
|
@@ -15,4 +19,23 @@ export declare class InternalClient {
|
|
|
15
19
|
get metrics(): MetricsClient;
|
|
16
20
|
get sessions(): SessionsClient;
|
|
17
21
|
get agents(): AgentsClient;
|
|
22
|
+
/**
|
|
23
|
+
* Return granted actions for each requested agent, schedule, or session id.
|
|
24
|
+
*
|
|
25
|
+
* @param {TrueForge.ListPermissionsRequest} request
|
|
26
|
+
* @param {InternalClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link TrueForge.BadRequestError}
|
|
29
|
+
* @throws {@link TrueForge.UnauthorizedError}
|
|
30
|
+
* @throws {@link errors.TrueForgeError}
|
|
31
|
+
* @throws {@link errors.TrueForgeTimeoutError}
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await client.internal.listPermissions({
|
|
35
|
+
* resourceIds: ["resource_ids"],
|
|
36
|
+
* resourceType: "agent"
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
listPermissions(request: TrueForge.ListPermissionsRequest, requestOptions?: InternalClient.RequestOptions): core.HttpResponsePromise<TrueForge.ListPermissionsResponse>;
|
|
40
|
+
private __listPermissions;
|
|
18
41
|
}
|
|
@@ -1,8 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
3
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
46
|
exports.InternalClient = void 0;
|
|
5
47
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
+
const requestBody_js_1 = require("../../../../core/requestBody.js");
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
|
+
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
54
|
+
const TrueForge = __importStar(require("../../../index.js"));
|
|
6
55
|
const Client_js_1 = require("../resources/agents/client/Client.js");
|
|
7
56
|
const Client_js_2 = require("../resources/metrics/client/Client.js");
|
|
8
57
|
const Client_js_3 = require("../resources/sessions/client/Client.js");
|
|
@@ -22,5 +71,90 @@ class InternalClient {
|
|
|
22
71
|
var _a;
|
|
23
72
|
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_js_1.AgentsClient(this._options)));
|
|
24
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Return granted actions for each requested agent, schedule, or session id.
|
|
76
|
+
*
|
|
77
|
+
* @param {TrueForge.ListPermissionsRequest} request
|
|
78
|
+
* @param {InternalClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link TrueForge.BadRequestError}
|
|
81
|
+
* @throws {@link TrueForge.UnauthorizedError}
|
|
82
|
+
* @throws {@link errors.TrueForgeError}
|
|
83
|
+
* @throws {@link errors.TrueForgeTimeoutError}
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* await client.internal.listPermissions({
|
|
87
|
+
* resourceIds: ["resource_ids"],
|
|
88
|
+
* resourceType: "agent"
|
|
89
|
+
* })
|
|
90
|
+
*/
|
|
91
|
+
listPermissions(request, requestOptions) {
|
|
92
|
+
return core.HttpResponsePromise.fromPromise(this.__listPermissions(request, requestOptions));
|
|
93
|
+
}
|
|
94
|
+
__listPermissions(request, requestOptions) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
97
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
98
|
+
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);
|
|
99
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
100
|
+
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/internal/list-permissions"),
|
|
101
|
+
method: "POST",
|
|
102
|
+
headers: _headers,
|
|
103
|
+
contentType: "application/json",
|
|
104
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
105
|
+
requestType: "json",
|
|
106
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.ListPermissionsRequest.jsonOrThrow(request, {
|
|
107
|
+
unrecognizedObjectKeys: "passthrough",
|
|
108
|
+
allowUnrecognizedUnionMembers: true,
|
|
109
|
+
allowUnrecognizedEnumValues: true,
|
|
110
|
+
omitUndefined: true,
|
|
111
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
112
|
+
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,
|
|
113
|
+
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,
|
|
114
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
115
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
116
|
+
logging: this._options.logging,
|
|
117
|
+
});
|
|
118
|
+
if (_response.ok) {
|
|
119
|
+
return {
|
|
120
|
+
data: serializers.ListPermissionsResponse.parseOrThrow(_response.body, {
|
|
121
|
+
unrecognizedObjectKeys: "passthrough",
|
|
122
|
+
allowUnrecognizedUnionMembers: true,
|
|
123
|
+
allowUnrecognizedEnumValues: true,
|
|
124
|
+
skipValidation: true,
|
|
125
|
+
breadcrumbsPrefix: ["response"],
|
|
126
|
+
}),
|
|
127
|
+
rawResponse: _response.rawResponse,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
if (_response.error.reason === "status-code") {
|
|
131
|
+
switch (_response.error.statusCode) {
|
|
132
|
+
case 400:
|
|
133
|
+
throw new TrueForge.BadRequestError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
134
|
+
unrecognizedObjectKeys: "passthrough",
|
|
135
|
+
allowUnrecognizedUnionMembers: true,
|
|
136
|
+
allowUnrecognizedEnumValues: true,
|
|
137
|
+
skipValidation: true,
|
|
138
|
+
breadcrumbsPrefix: ["response"],
|
|
139
|
+
}), _response.rawResponse);
|
|
140
|
+
case 401:
|
|
141
|
+
throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
142
|
+
unrecognizedObjectKeys: "passthrough",
|
|
143
|
+
allowUnrecognizedUnionMembers: true,
|
|
144
|
+
allowUnrecognizedEnumValues: true,
|
|
145
|
+
skipValidation: true,
|
|
146
|
+
breadcrumbsPrefix: ["response"],
|
|
147
|
+
}), _response.rawResponse);
|
|
148
|
+
default:
|
|
149
|
+
throw new errors.TrueForgeError({
|
|
150
|
+
statusCode: _response.error.statusCode,
|
|
151
|
+
body: _response.error.body,
|
|
152
|
+
rawResponse: _response.rawResponse,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/internal/list-permissions");
|
|
157
|
+
});
|
|
158
|
+
}
|
|
25
159
|
}
|
|
26
160
|
exports.InternalClient = InternalClient;
|
|
@@ -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,13 @@
|
|
|
1
|
+
import type * as TrueForge from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* resourceIds: ["resource_ids"],
|
|
6
|
+
* resourceType: "agent"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface ListPermissionsRequest {
|
|
10
|
+
/** Resource ids of `resource_type` to evaluate for the caller. */
|
|
11
|
+
resourceIds: string[];
|
|
12
|
+
resourceType: TrueForge.PermissionResourceType;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ListPermissionsRequest } from "./ListPermissionsRequest.js";
|
|
@@ -14,6 +14,7 @@ export declare class AgentsClient {
|
|
|
14
14
|
* TypeScript TrueForge SDK samples (stream and non-stream) for creating a session and turn against this agent.
|
|
15
15
|
*
|
|
16
16
|
* @param {string} agent_id - Immutable agent identifier.
|
|
17
|
+
* @param {TrueForge.internal.GetCodeSnippetsAgentsRequest} request
|
|
17
18
|
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
19
|
*
|
|
19
20
|
* @throws {@link TrueForge.NotFoundError}
|
|
@@ -23,6 +24,6 @@ export declare class AgentsClient {
|
|
|
23
24
|
* @example
|
|
24
25
|
* await client.internal.agents.getCodeSnippets("agent_id")
|
|
25
26
|
*/
|
|
26
|
-
getCodeSnippets(agent_id: string, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<TrueForge.GetAgentCodeSnippetsResponse>;
|
|
27
|
+
getCodeSnippets(agent_id: string, request?: TrueForge.internal.GetCodeSnippetsAgentsRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<TrueForge.GetAgentCodeSnippetsResponse>;
|
|
27
28
|
private __getCodeSnippets;
|
|
28
29
|
}
|
|
@@ -59,6 +59,7 @@ class AgentsClient {
|
|
|
59
59
|
* TypeScript TrueForge SDK samples (stream and non-stream) for creating a session and turn against this agent.
|
|
60
60
|
*
|
|
61
61
|
* @param {string} agent_id - Immutable agent identifier.
|
|
62
|
+
* @param {TrueForge.internal.GetCodeSnippetsAgentsRequest} request
|
|
62
63
|
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
64
|
*
|
|
64
65
|
* @throws {@link TrueForge.NotFoundError}
|
|
@@ -68,19 +69,27 @@ class AgentsClient {
|
|
|
68
69
|
* @example
|
|
69
70
|
* await client.internal.agents.getCodeSnippets("agent_id")
|
|
70
71
|
*/
|
|
71
|
-
getCodeSnippets(agent_id, requestOptions) {
|
|
72
|
-
return core.HttpResponsePromise.fromPromise(this.__getCodeSnippets(agent_id, requestOptions));
|
|
72
|
+
getCodeSnippets(agent_id, request = {}, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__getCodeSnippets(agent_id, request, requestOptions));
|
|
73
74
|
}
|
|
74
|
-
__getCodeSnippets(
|
|
75
|
-
return __awaiter(this,
|
|
75
|
+
__getCodeSnippets(agent_id_1) {
|
|
76
|
+
return __awaiter(this, arguments, void 0, function* (agent_id, request = {}, requestOptions) {
|
|
76
77
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
78
|
+
const { baseUrl } = request;
|
|
79
|
+
const _queryParams = {
|
|
80
|
+
base_url: baseUrl,
|
|
81
|
+
};
|
|
77
82
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
78
83
|
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);
|
|
79
84
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
80
85
|
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/agents/${core.url.encodePathParam(agent_id)}/code-snippets`),
|
|
81
86
|
method: "GET",
|
|
82
87
|
headers: _headers,
|
|
83
|
-
queryString: core.url
|
|
88
|
+
queryString: core.url
|
|
89
|
+
.queryBuilder()
|
|
90
|
+
.addMany(_queryParams)
|
|
91
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
92
|
+
.build(),
|
|
84
93
|
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,
|
|
85
94
|
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,
|
|
86
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -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 @@
|
|
|
1
|
+
export type { GetCodeSnippetsAgentsRequest } from "./GetCodeSnippetsAgentsRequest.js";
|
|
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
18
21
|
var __importStar = (this && this.__importStar) || (function () {
|
|
19
22
|
var ownKeys = function(o) {
|
|
20
23
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
@@ -32,11 +35,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
35
|
return result;
|
|
33
36
|
};
|
|
34
37
|
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.sessions = exports.metrics = exports.agents = void 0;
|
|
40
|
+
__exportStar(require("./agents/client/requests/index.js"), exports);
|
|
40
41
|
exports.agents = __importStar(require("./agents/index.js"));
|
|
41
42
|
__exportStar(require("./metrics/client/requests/index.js"), exports);
|
|
42
43
|
exports.metrics = __importStar(require("./metrics/index.js"));
|
|
@@ -11,12 +11,10 @@ export declare class McpServersClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<McpServersClient.Options>;
|
|
12
12
|
constructor(options: McpServersClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Configured MCP servers as a slim name/url list for the composer.
|
|
15
15
|
*
|
|
16
|
-
* @param {TrueForge.ListMcpServersRequest} request
|
|
17
16
|
* @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
17
|
*
|
|
19
|
-
* @throws {@link TrueForge.BadRequestError}
|
|
20
18
|
* @throws {@link TrueForge.UnauthorizedError}
|
|
21
19
|
* @throws {@link errors.TrueForgeError}
|
|
22
20
|
* @throws {@link errors.TrueForgeTimeoutError}
|
|
@@ -24,7 +22,24 @@ export declare class McpServersClient {
|
|
|
24
22
|
* @example
|
|
25
23
|
* await client.mcpServers.list()
|
|
26
24
|
*/
|
|
27
|
-
list(
|
|
25
|
+
list(requestOptions?: McpServersClient.RequestOptions): core.HttpResponsePromise<TrueForge.ListAvailableMcpServersResponse>;
|
|
26
|
+
private __list;
|
|
27
|
+
/**
|
|
28
|
+
* A single MCP server as the slim chat projection, with live per-user auth_status.
|
|
29
|
+
*
|
|
30
|
+
* @param {string} name - MCP server name.
|
|
31
|
+
* @param {McpServersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
+
*
|
|
33
|
+
* @throws {@link TrueForge.UnauthorizedError}
|
|
34
|
+
* @throws {@link TrueForge.NotFoundError}
|
|
35
|
+
* @throws {@link errors.TrueForgeError}
|
|
36
|
+
* @throws {@link errors.TrueForgeTimeoutError}
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.mcpServers.get("name")
|
|
40
|
+
*/
|
|
41
|
+
get(name: string, requestOptions?: McpServersClient.RequestOptions): core.HttpResponsePromise<TrueForge.GetAvailableMcpServerResponse>;
|
|
42
|
+
private __get;
|
|
28
43
|
/**
|
|
29
44
|
* Returns current auth status. When OAuth is required, includes an authorization URL. Optional return_to is the post-consent landing path.
|
|
30
45
|
*
|