@truefoundry/trueforge-sdk 0.2.0-rc.4 → 0.2.0-rc.6

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 (79) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/agents/client/Client.d.ts +6 -4
  4. package/dist/cjs/api/resources/agents/client/Client.js +76 -45
  5. package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  6. package/dist/cjs/api/resources/agents/client/requests/ListAgentsRequest.d.ts +12 -0
  7. package/dist/cjs/api/{types/McpServerType.js → resources/agents/client/requests/ListAgentsRequest.js} +0 -5
  8. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  9. package/dist/cjs/api/resources/agents/client/requests/index.d.ts +1 -0
  10. package/dist/cjs/api/types/Agent.d.ts +1 -0
  11. package/dist/cjs/api/types/ListAgentsResponse.d.ts +1 -0
  12. package/dist/cjs/api/types/McpServerManifest.d.ts +1 -9
  13. package/dist/cjs/api/types/RemoteMcpServerManifest.d.ts +10 -0
  14. package/dist/cjs/api/types/RemoteMcpServerManifest.js +3 -0
  15. package/dist/cjs/api/types/TrueFoundryMcpServerManifest.d.ts +10 -0
  16. package/dist/cjs/api/types/TrueFoundryMcpServerManifest.js +3 -0
  17. package/dist/cjs/api/types/index.d.ts +2 -1
  18. package/dist/cjs/api/types/index.js +2 -1
  19. package/dist/cjs/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  20. package/dist/cjs/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  21. package/dist/cjs/serialization/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  22. package/dist/cjs/serialization/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
  23. package/dist/cjs/serialization/types/Agent.d.ts +1 -0
  24. package/dist/cjs/serialization/types/Agent.js +1 -0
  25. package/dist/cjs/serialization/types/ListAgentsResponse.d.ts +2 -0
  26. package/dist/cjs/serialization/types/ListAgentsResponse.js +2 -0
  27. package/dist/cjs/serialization/types/McpServerManifest.d.ts +4 -11
  28. package/dist/cjs/serialization/types/McpServerManifest.js +3 -10
  29. package/dist/cjs/serialization/types/RemoteMcpServerManifest.d.ts +15 -0
  30. package/dist/cjs/serialization/types/{McpServerType.js → RemoteMcpServerManifest.js} +10 -2
  31. package/dist/cjs/serialization/types/TrueFoundryMcpServerManifest.d.ts +15 -0
  32. package/dist/cjs/serialization/types/TrueFoundryMcpServerManifest.js +47 -0
  33. package/dist/cjs/serialization/types/index.d.ts +2 -1
  34. package/dist/cjs/serialization/types/index.js +2 -1
  35. package/dist/cjs/version.d.ts +1 -1
  36. package/dist/cjs/version.js +1 -1
  37. package/dist/esm/BaseClient.mjs +2 -2
  38. package/dist/esm/api/resources/agents/client/Client.d.mts +6 -4
  39. package/dist/esm/api/resources/agents/client/Client.mjs +76 -45
  40. package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.d.mts +2 -0
  41. package/dist/esm/api/resources/agents/client/requests/ListAgentsRequest.d.mts +12 -0
  42. package/dist/esm/api/resources/agents/client/requests/ListAgentsRequest.mjs +2 -0
  43. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +1 -0
  44. package/dist/esm/api/resources/agents/client/requests/index.d.mts +1 -0
  45. package/dist/esm/api/types/Agent.d.mts +1 -0
  46. package/dist/esm/api/types/ListAgentsResponse.d.mts +1 -0
  47. package/dist/esm/api/types/McpServerManifest.d.mts +1 -9
  48. package/dist/esm/api/types/RemoteMcpServerManifest.d.mts +10 -0
  49. package/dist/esm/api/types/RemoteMcpServerManifest.mjs +2 -0
  50. package/dist/esm/api/types/TrueFoundryMcpServerManifest.d.mts +10 -0
  51. package/dist/esm/api/types/TrueFoundryMcpServerManifest.mjs +2 -0
  52. package/dist/esm/api/types/index.d.mts +2 -1
  53. package/dist/esm/api/types/index.mjs +2 -1
  54. package/dist/esm/serialization/resources/agents/client/requests/CreateAgentRequest.d.mts +1 -0
  55. package/dist/esm/serialization/resources/agents/client/requests/CreateAgentRequest.mjs +1 -0
  56. package/dist/esm/serialization/resources/agents/client/requests/UpdateAgentRequest.d.mts +1 -0
  57. package/dist/esm/serialization/resources/agents/client/requests/UpdateAgentRequest.mjs +1 -0
  58. package/dist/esm/serialization/types/Agent.d.mts +1 -0
  59. package/dist/esm/serialization/types/Agent.mjs +1 -0
  60. package/dist/esm/serialization/types/ListAgentsResponse.d.mts +2 -0
  61. package/dist/esm/serialization/types/ListAgentsResponse.mjs +2 -0
  62. package/dist/esm/serialization/types/McpServerManifest.d.mts +4 -11
  63. package/dist/esm/serialization/types/McpServerManifest.mjs +3 -10
  64. package/dist/esm/serialization/types/RemoteMcpServerManifest.d.mts +15 -0
  65. package/dist/esm/serialization/types/RemoteMcpServerManifest.mjs +11 -0
  66. package/dist/esm/serialization/types/TrueFoundryMcpServerManifest.d.mts +15 -0
  67. package/dist/esm/serialization/types/TrueFoundryMcpServerManifest.mjs +11 -0
  68. package/dist/esm/serialization/types/index.d.mts +2 -1
  69. package/dist/esm/serialization/types/index.mjs +2 -1
  70. package/dist/esm/version.d.mts +1 -1
  71. package/dist/esm/version.mjs +1 -1
  72. package/package.json +1 -1
  73. package/reference.md +12 -3
  74. package/dist/cjs/api/types/McpServerType.d.ts +0 -5
  75. package/dist/cjs/serialization/types/McpServerType.d.ts +0 -7
  76. package/dist/esm/api/types/McpServerType.d.mts +0 -5
  77. package/dist/esm/api/types/McpServerType.mjs +0 -5
  78. package/dist/esm/serialization/types/McpServerType.d.mts +0 -7
  79. package/dist/esm/serialization/types/McpServerType.mjs +0 -3
@@ -133,7 +133,6 @@ __exportStar(require("./McpServerInitInfoTransportType.js"), exports);
133
133
  __exportStar(require("./McpServerManifest.js"), exports);
134
134
  __exportStar(require("./McpServerManifestAuth.js"), exports);
135
135
  __exportStar(require("./McpServerToolSelector.js"), exports);
136
- __exportStar(require("./McpServerType.js"), exports);
137
136
  __exportStar(require("./McpToolInfo.js"), exports);
138
137
  __exportStar(require("./Me.js"), exports);
139
138
  __exportStar(require("./MeSessionType.js"), exports);
@@ -155,6 +154,7 @@ __exportStar(require("./PermissionResourceType.js"), exports);
155
154
  __exportStar(require("./PreviousTurnIdInput.js"), exports);
156
155
  __exportStar(require("./RawToolCall.js"), exports);
157
156
  __exportStar(require("./ReasoningEffort.js"), exports);
157
+ __exportStar(require("./RemoteMcpServerManifest.js"), exports);
158
158
  __exportStar(require("./RequestErrorResponse.js"), exports);
159
159
  __exportStar(require("./RequestErrorResponseError.js"), exports);
160
160
  __exportStar(require("./ResourceName.js"), exports);
@@ -218,6 +218,7 @@ __exportStar(require("./ToolCallRef.js"), exports);
218
218
  __exportStar(require("./ToolInfo.js"), exports);
219
219
  __exportStar(require("./ToolResponseEvent.js"), exports);
220
220
  __exportStar(require("./ToolResponseRequiredEvent.js"), exports);
221
+ __exportStar(require("./TrueFoundryMcpServerManifest.js"), exports);
221
222
  __exportStar(require("./TrueFoundryModelProvider.js"), exports);
222
223
  __exportStar(require("./TrueFoundryRegistrySkill.js"), exports);
223
224
  __exportStar(require("./TrueFoundrySystemToolInfo.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.0-rc.4";
1
+ export declare const SDK_VERSION = "0.2.0-rc.6";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.2.0-rc.4";
4
+ exports.SDK_VERSION = "0.2.0-rc.6";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@truefoundry/trueforge-sdk",
9
- "X-Fern-SDK-Version": "0.2.0-rc.4",
10
- "User-Agent": "@truefoundry/trueforge-sdk/0.2.0-rc.4",
9
+ "X-Fern-SDK-Version": "0.2.0-rc.6",
10
+ "User-Agent": "@truefoundry/trueforge-sdk/0.2.0-rc.6",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -11,10 +11,12 @@ export declare class AgentsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<AgentsClient.Options>;
12
12
  constructor(options: AgentsClient.Options);
13
13
  /**
14
- * All configured agents for the tenant.
14
+ * List configured agents for the tenant, ordered by name. Optional `agent_name` filters by substring.
15
15
  *
16
+ * @param {TrueForge.ListAgentsRequest} request
16
17
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
17
18
  *
19
+ * @throws {@link TrueForge.BadRequestError}
18
20
  * @throws {@link TrueForge.UnauthorizedError}
19
21
  * @throws {@link errors.TrueForgeError}
20
22
  * @throws {@link errors.TrueForgeTimeoutError}
@@ -22,8 +24,7 @@ export declare class AgentsClient {
22
24
  * @example
23
25
  * await client.agents.list()
24
26
  */
25
- list(requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<TrueForge.ListAgentsResponse>;
26
- private __list;
27
+ list(request?: TrueForge.ListAgentsRequest, requestOptions?: AgentsClient.RequestOptions): Promise<core.Page<TrueForge.Agent, TrueForge.ListAgentsResponse>>;
27
28
  /**
28
29
  * Creates an agent and allocates an immutable id. Fails if `name` is already taken. Name cannot be changed later.
29
30
  *
@@ -38,6 +39,7 @@ export declare class AgentsClient {
38
39
  *
39
40
  * @example
40
41
  * await client.agents.create({
42
+ * description: "description",
41
43
  * manifest: {
42
44
  * model: {
43
45
  * name: "name"
@@ -64,7 +66,7 @@ export declare class AgentsClient {
64
66
  get(agent_id: string, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<TrueForge.GetAgentResponse>;
65
67
  private __get;
66
68
  /**
67
- * Replaces the manifest for an existing agent keyed by immutable `agent_id`.
69
+ * Update an existing agent by immutable id.
68
70
  *
69
71
  * @param {string} agent_id - Immutable agent identifier.
70
72
  * @param {TrueForge.UpdateAgentRequest} request
@@ -21,10 +21,12 @@ export class AgentsClient {
21
21
  this._options = normalizeClientOptionsWithAuth(options);
22
22
  }
23
23
  /**
24
- * All configured agents for the tenant.
24
+ * List configured agents for the tenant, ordered by name. Optional `agent_name` filters by substring.
25
25
  *
26
+ * @param {TrueForge.ListAgentsRequest} request
26
27
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
27
28
  *
29
+ * @throws {@link TrueForge.BadRequestError}
28
30
  * @throws {@link TrueForge.UnauthorizedError}
29
31
  * @throws {@link errors.TrueForgeError}
30
32
  * @throws {@link errors.TrueForgeTimeoutError}
@@ -32,56 +34,84 @@ export class AgentsClient {
32
34
  * @example
33
35
  * await client.agents.list()
34
36
  */
35
- list(requestOptions) {
36
- return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
37
- }
38
- __list(requestOptions) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
41
- const _authRequest = yield this._options.authProvider.getAuthRequest();
42
- 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);
43
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
44
- 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"),
45
- method: "GET",
46
- headers: _headers,
47
- queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
48
- 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,
49
- 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,
50
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
51
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
52
- logging: this._options.logging,
53
- });
54
- if (_response.ok) {
55
- return {
56
- data: serializers.ListAgentsResponse.parseOrThrow(_response.body, {
57
- unrecognizedObjectKeys: "passthrough",
58
- allowUnrecognizedUnionMembers: true,
59
- allowUnrecognizedEnumValues: true,
60
- skipValidation: true,
61
- breadcrumbsPrefix: ["response"],
62
- }),
63
- rawResponse: _response.rawResponse,
37
+ list() {
38
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
39
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
40
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
41
+ const { limit = 50, pageToken, agentName } = request;
42
+ const _queryParams = {
43
+ limit,
44
+ page_token: pageToken,
45
+ agent_name: agentName,
64
46
  };
65
- }
66
- if (_response.error.reason === "status-code") {
67
- switch (_response.error.statusCode) {
68
- case 401:
69
- throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
47
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
48
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
49
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
50
+ url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)), "api/v1/agents"),
51
+ method: "GET",
52
+ headers: _headers,
53
+ queryString: core.url
54
+ .queryBuilder()
55
+ .addMany(_queryParams)
56
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
57
+ .build(),
58
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
59
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
60
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
61
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
62
+ logging: this._options.logging,
63
+ });
64
+ if (_response.ok) {
65
+ return {
66
+ data: serializers.ListAgentsResponse.parseOrThrow(_response.body, {
70
67
  unrecognizedObjectKeys: "passthrough",
71
68
  allowUnrecognizedUnionMembers: true,
72
69
  allowUnrecognizedEnumValues: true,
73
70
  skipValidation: true,
74
71
  breadcrumbsPrefix: ["response"],
75
- }), _response.rawResponse);
76
- default:
77
- throw new errors.TrueForgeError({
78
- statusCode: _response.error.statusCode,
79
- body: _response.error.body,
80
- rawResponse: _response.rawResponse,
81
- });
72
+ }),
73
+ rawResponse: _response.rawResponse,
74
+ };
82
75
  }
83
- }
84
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/agents");
76
+ if (_response.error.reason === "status-code") {
77
+ switch (_response.error.statusCode) {
78
+ case 400:
79
+ throw new TrueForge.BadRequestError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
80
+ unrecognizedObjectKeys: "passthrough",
81
+ allowUnrecognizedUnionMembers: true,
82
+ allowUnrecognizedEnumValues: true,
83
+ skipValidation: true,
84
+ breadcrumbsPrefix: ["response"],
85
+ }), _response.rawResponse);
86
+ case 401:
87
+ throw new TrueForge.UnauthorizedError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
88
+ unrecognizedObjectKeys: "passthrough",
89
+ allowUnrecognizedUnionMembers: true,
90
+ allowUnrecognizedEnumValues: true,
91
+ skipValidation: true,
92
+ breadcrumbsPrefix: ["response"],
93
+ }), _response.rawResponse);
94
+ default:
95
+ throw new errors.TrueForgeError({
96
+ statusCode: _response.error.statusCode,
97
+ body: _response.error.body,
98
+ rawResponse: _response.rawResponse,
99
+ });
100
+ }
101
+ }
102
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/agents");
103
+ }));
104
+ const dataWithRawResponse = yield list(request).withRawResponse();
105
+ return new core.Page({
106
+ response: dataWithRawResponse.data,
107
+ rawResponse: dataWithRawResponse.rawResponse,
108
+ hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) != null &&
109
+ !(typeof (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === "string" && (response === null || response === void 0 ? void 0 : response.pagination.nextPageToken) === ""),
110
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.data) !== null && _a !== void 0 ? _a : []; },
111
+ loadPage: (response) => {
112
+ return list(core.setObjectProperty(request, "pageToken", response === null || response === void 0 ? void 0 : response.pagination.nextPageToken));
113
+ },
114
+ });
85
115
  });
86
116
  }
87
117
  /**
@@ -98,6 +128,7 @@ export class AgentsClient {
98
128
  *
99
129
  * @example
100
130
  * await client.agents.create({
131
+ * description: "description",
101
132
  * manifest: {
102
133
  * model: {
103
134
  * name: "name"
@@ -248,7 +279,7 @@ export class AgentsClient {
248
279
  });
249
280
  }
250
281
  /**
251
- * Replaces the manifest for an existing agent keyed by immutable `agent_id`.
282
+ * Update an existing agent by immutable id.
252
283
  *
253
284
  * @param {string} agent_id - Immutable agent identifier.
254
285
  * @param {TrueForge.UpdateAgentRequest} request
@@ -2,6 +2,7 @@ import type * as TrueForge from "../../../../index.mjs";
2
2
  /**
3
3
  * @example
4
4
  * {
5
+ * description: "description",
5
6
  * manifest: {
6
7
  * model: {
7
8
  * name: "name"
@@ -11,6 +12,7 @@ import type * as TrueForge from "../../../../index.mjs";
11
12
  * }
12
13
  */
13
14
  export interface CreateAgentRequest {
15
+ description: string;
14
16
  manifest: TrueForge.AgentSpec;
15
17
  name: TrueForge.ResourceName;
16
18
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListAgentsRequest {
6
+ /** Page size. Defaults to 50, max 100. */
7
+ limit?: number;
8
+ /** Opaque token from a previous response `next_page_token`. */
9
+ pageToken?: string;
10
+ /** Case-insensitive substring match on agent name. */
11
+ agentName?: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -10,5 +10,6 @@ import type * as TrueForge from "../../../../index.mjs";
10
10
  * }
11
11
  */
12
12
  export interface UpdateAgentRequest {
13
+ description?: string;
13
14
  manifest: TrueForge.AgentSpec;
14
15
  }
@@ -1,2 +1,3 @@
1
1
  export type { CreateAgentRequest } from "./CreateAgentRequest.mjs";
2
+ export type { ListAgentsRequest } from "./ListAgentsRequest.mjs";
2
3
  export type { UpdateAgentRequest } from "./UpdateAgentRequest.mjs";
@@ -1,6 +1,7 @@
1
1
  import type * as TrueForge from "../index.mjs";
2
2
  export interface Agent {
3
3
  createdBySubject: TrueForge.CreatedBySubject;
4
+ description: string;
4
5
  /** Immutable server-generated agent identifier. */
5
6
  id: string;
6
7
  manifest: TrueForge.AgentSpec;
@@ -1,4 +1,5 @@
1
1
  import type * as TrueForge from "../index.mjs";
2
2
  export interface ListAgentsResponse {
3
3
  data: TrueForge.Agent[];
4
+ pagination: TrueForge.TokenPagination;
4
5
  }
@@ -1,10 +1,2 @@
1
1
  import type * as TrueForge from "../index.mjs";
2
- export interface McpServerManifest {
3
- auth?: TrueForge.McpServerManifestAuth;
4
- /** Concise summary of what this MCP server provides. */
5
- description: string;
6
- name: TrueForge.ResourceName;
7
- type: TrueForge.McpServerType;
8
- /** MCP endpoint URL. For `truefoundry`, the resolved AI Gateway proxy URL. */
9
- url: string;
10
- }
2
+ export type McpServerManifest = TrueForge.RemoteMcpServerManifest | TrueForge.TrueFoundryMcpServerManifest;
@@ -0,0 +1,10 @@
1
+ import type * as TrueForge from "../index.mjs";
2
+ export interface RemoteMcpServerManifest {
3
+ auth?: TrueForge.McpServerManifestAuth;
4
+ /** Concise summary of what this MCP server provides. */
5
+ description: string;
6
+ name: TrueForge.ResourceName;
7
+ type: "remote";
8
+ /** MCP endpoint URL. */
9
+ url: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ import type * as TrueForge from "../index.mjs";
2
+ export interface TrueFoundryMcpServerManifest {
3
+ auth?: TrueForge.McpServerManifestAuth;
4
+ /** Concise summary of what this MCP server provides. */
5
+ description: string;
6
+ name: TrueForge.ResourceName;
7
+ type: "truefoundry";
8
+ /** Resolved AI Gateway proxy URL for this TrueFoundry-managed MCP server. */
9
+ url: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -117,7 +117,6 @@ export * from "./McpServerInitInfoTransportType.mjs";
117
117
  export * from "./McpServerManifest.mjs";
118
118
  export * from "./McpServerManifestAuth.mjs";
119
119
  export * from "./McpServerToolSelector.mjs";
120
- export * from "./McpServerType.mjs";
121
120
  export * from "./McpToolInfo.mjs";
122
121
  export * from "./Me.mjs";
123
122
  export * from "./MeSessionType.mjs";
@@ -139,6 +138,7 @@ export * from "./PermissionResourceType.mjs";
139
138
  export * from "./PreviousTurnIdInput.mjs";
140
139
  export * from "./RawToolCall.mjs";
141
140
  export * from "./ReasoningEffort.mjs";
141
+ export * from "./RemoteMcpServerManifest.mjs";
142
142
  export * from "./RequestErrorResponse.mjs";
143
143
  export * from "./RequestErrorResponseError.mjs";
144
144
  export * from "./ResourceName.mjs";
@@ -202,6 +202,7 @@ export * from "./ToolCallRef.mjs";
202
202
  export * from "./ToolInfo.mjs";
203
203
  export * from "./ToolResponseEvent.mjs";
204
204
  export * from "./ToolResponseRequiredEvent.mjs";
205
+ export * from "./TrueFoundryMcpServerManifest.mjs";
205
206
  export * from "./TrueFoundryModelProvider.mjs";
206
207
  export * from "./TrueFoundryRegistrySkill.mjs";
207
208
  export * from "./TrueFoundrySystemToolInfo.mjs";
@@ -117,7 +117,6 @@ export * from "./McpServerInitInfoTransportType.mjs";
117
117
  export * from "./McpServerManifest.mjs";
118
118
  export * from "./McpServerManifestAuth.mjs";
119
119
  export * from "./McpServerToolSelector.mjs";
120
- export * from "./McpServerType.mjs";
121
120
  export * from "./McpToolInfo.mjs";
122
121
  export * from "./Me.mjs";
123
122
  export * from "./MeSessionType.mjs";
@@ -139,6 +138,7 @@ export * from "./PermissionResourceType.mjs";
139
138
  export * from "./PreviousTurnIdInput.mjs";
140
139
  export * from "./RawToolCall.mjs";
141
140
  export * from "./ReasoningEffort.mjs";
141
+ export * from "./RemoteMcpServerManifest.mjs";
142
142
  export * from "./RequestErrorResponse.mjs";
143
143
  export * from "./RequestErrorResponseError.mjs";
144
144
  export * from "./ResourceName.mjs";
@@ -202,6 +202,7 @@ export * from "./ToolCallRef.mjs";
202
202
  export * from "./ToolInfo.mjs";
203
203
  export * from "./ToolResponseEvent.mjs";
204
204
  export * from "./ToolResponseRequiredEvent.mjs";
205
+ export * from "./TrueFoundryMcpServerManifest.mjs";
205
206
  export * from "./TrueFoundryModelProvider.mjs";
206
207
  export * from "./TrueFoundryRegistrySkill.mjs";
207
208
  export * from "./TrueFoundrySystemToolInfo.mjs";
@@ -6,6 +6,7 @@ import { ResourceName } from "../../../../types/ResourceName.mjs";
6
6
  export declare const CreateAgentRequest: core.serialization.Schema<serializers.CreateAgentRequest.Raw, TrueForge.CreateAgentRequest>;
7
7
  export declare namespace CreateAgentRequest {
8
8
  interface Raw {
9
+ description: string;
9
10
  manifest: AgentSpec.Raw;
10
11
  name: ResourceName.Raw;
11
12
  }
@@ -3,6 +3,7 @@ import * as core from "../../../../../core/index.mjs";
3
3
  import { AgentSpec } from "../../../../types/AgentSpec.mjs";
4
4
  import { ResourceName } from "../../../../types/ResourceName.mjs";
5
5
  export const CreateAgentRequest = core.serialization.object({
6
+ description: core.serialization.string(),
6
7
  manifest: AgentSpec,
7
8
  name: ResourceName,
8
9
  });
@@ -5,6 +5,7 @@ import { AgentSpec } from "../../../../types/AgentSpec.mjs";
5
5
  export declare const UpdateAgentRequest: core.serialization.Schema<serializers.UpdateAgentRequest.Raw, TrueForge.UpdateAgentRequest>;
6
6
  export declare namespace UpdateAgentRequest {
7
7
  interface Raw {
8
+ description?: string | null;
8
9
  manifest: AgentSpec.Raw;
9
10
  }
10
11
  }
@@ -2,5 +2,6 @@
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import { AgentSpec } from "../../../../types/AgentSpec.mjs";
4
4
  export const UpdateAgentRequest = core.serialization.object({
5
+ description: core.serialization.string().optional(),
5
6
  manifest: AgentSpec,
6
7
  });
@@ -8,6 +8,7 @@ export declare const Agent: core.serialization.ObjectSchema<serializers.Agent.Ra
8
8
  export declare namespace Agent {
9
9
  interface Raw {
10
10
  created_by_subject: CreatedBySubject.Raw;
11
+ description: string;
11
12
  id: string;
12
13
  manifest: AgentSpec.Raw;
13
14
  name: ResourceName.Raw;
@@ -5,6 +5,7 @@ import { CreatedBySubject } from "./CreatedBySubject.mjs";
5
5
  import { ResourceName } from "./ResourceName.mjs";
6
6
  export const Agent = core.serialization.object({
7
7
  createdBySubject: core.serialization.property("created_by_subject", CreatedBySubject),
8
+ description: core.serialization.string(),
8
9
  id: core.serialization.string(),
9
10
  manifest: AgentSpec,
10
11
  name: ResourceName,
@@ -2,9 +2,11 @@ import type * as TrueForge from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  import { Agent } from "./Agent.mjs";
5
+ import { TokenPagination } from "./TokenPagination.mjs";
5
6
  export declare const ListAgentsResponse: core.serialization.ObjectSchema<serializers.ListAgentsResponse.Raw, TrueForge.ListAgentsResponse>;
6
7
  export declare namespace ListAgentsResponse {
7
8
  interface Raw {
8
9
  data: Agent.Raw[];
10
+ pagination: TokenPagination.Raw;
9
11
  }
10
12
  }
@@ -1,6 +1,8 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
3
  import { Agent } from "./Agent.mjs";
4
+ import { TokenPagination } from "./TokenPagination.mjs";
4
5
  export const ListAgentsResponse = core.serialization.object({
5
6
  data: core.serialization.list(Agent),
7
+ pagination: TokenPagination,
6
8
  });
@@ -1,16 +1,9 @@
1
1
  import type * as TrueForge from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
- import { McpServerManifestAuth } from "./McpServerManifestAuth.mjs";
5
- import { McpServerType } from "./McpServerType.mjs";
6
- import { ResourceName } from "./ResourceName.mjs";
7
- export declare const McpServerManifest: core.serialization.ObjectSchema<serializers.McpServerManifest.Raw, TrueForge.McpServerManifest>;
4
+ import { RemoteMcpServerManifest } from "./RemoteMcpServerManifest.mjs";
5
+ import { TrueFoundryMcpServerManifest } from "./TrueFoundryMcpServerManifest.mjs";
6
+ export declare const McpServerManifest: core.serialization.Schema<serializers.McpServerManifest.Raw, TrueForge.McpServerManifest>;
8
7
  export declare namespace McpServerManifest {
9
- interface Raw {
10
- auth?: McpServerManifestAuth.Raw | null;
11
- description: string;
12
- name: ResourceName.Raw;
13
- type: McpServerType.Raw;
14
- url: string;
15
- }
8
+ type Raw = RemoteMcpServerManifest.Raw | TrueFoundryMcpServerManifest.Raw;
16
9
  }
@@ -1,12 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
- import { McpServerManifestAuth } from "./McpServerManifestAuth.mjs";
4
- import { McpServerType } from "./McpServerType.mjs";
5
- import { ResourceName } from "./ResourceName.mjs";
6
- export const McpServerManifest = core.serialization.object({
7
- auth: McpServerManifestAuth.optional(),
8
- description: core.serialization.string(),
9
- name: ResourceName,
10
- type: McpServerType,
11
- url: core.serialization.string(),
12
- });
3
+ import { RemoteMcpServerManifest } from "./RemoteMcpServerManifest.mjs";
4
+ import { TrueFoundryMcpServerManifest } from "./TrueFoundryMcpServerManifest.mjs";
5
+ export const McpServerManifest = core.serialization.undiscriminatedUnion([RemoteMcpServerManifest, TrueFoundryMcpServerManifest]);
@@ -0,0 +1,15 @@
1
+ import type * as TrueForge from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { McpServerManifestAuth } from "./McpServerManifestAuth.mjs";
5
+ import { ResourceName } from "./ResourceName.mjs";
6
+ export declare const RemoteMcpServerManifest: core.serialization.ObjectSchema<serializers.RemoteMcpServerManifest.Raw, TrueForge.RemoteMcpServerManifest>;
7
+ export declare namespace RemoteMcpServerManifest {
8
+ interface Raw {
9
+ auth?: McpServerManifestAuth.Raw | null;
10
+ description: string;
11
+ name: ResourceName.Raw;
12
+ type: "remote";
13
+ url: string;
14
+ }
15
+ }
@@ -0,0 +1,11 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { McpServerManifestAuth } from "./McpServerManifestAuth.mjs";
4
+ import { ResourceName } from "./ResourceName.mjs";
5
+ export const RemoteMcpServerManifest = core.serialization.object({
6
+ auth: McpServerManifestAuth.optional(),
7
+ description: core.serialization.string(),
8
+ name: ResourceName,
9
+ type: core.serialization.stringLiteral("remote"),
10
+ url: core.serialization.string(),
11
+ });
@@ -0,0 +1,15 @@
1
+ import type * as TrueForge from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { McpServerManifestAuth } from "./McpServerManifestAuth.mjs";
5
+ import { ResourceName } from "./ResourceName.mjs";
6
+ export declare const TrueFoundryMcpServerManifest: core.serialization.ObjectSchema<serializers.TrueFoundryMcpServerManifest.Raw, TrueForge.TrueFoundryMcpServerManifest>;
7
+ export declare namespace TrueFoundryMcpServerManifest {
8
+ interface Raw {
9
+ auth?: McpServerManifestAuth.Raw | null;
10
+ description: string;
11
+ name: ResourceName.Raw;
12
+ type: "truefoundry";
13
+ url: string;
14
+ }
15
+ }
@@ -0,0 +1,11 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { McpServerManifestAuth } from "./McpServerManifestAuth.mjs";
4
+ import { ResourceName } from "./ResourceName.mjs";
5
+ export const TrueFoundryMcpServerManifest = core.serialization.object({
6
+ auth: McpServerManifestAuth.optional(),
7
+ description: core.serialization.string(),
8
+ name: ResourceName,
9
+ type: core.serialization.stringLiteral("truefoundry"),
10
+ url: core.serialization.string(),
11
+ });
@@ -117,7 +117,6 @@ export * from "./McpServerInitInfoTransportType.mjs";
117
117
  export * from "./McpServerManifest.mjs";
118
118
  export * from "./McpServerManifestAuth.mjs";
119
119
  export * from "./McpServerToolSelector.mjs";
120
- export * from "./McpServerType.mjs";
121
120
  export * from "./McpToolInfo.mjs";
122
121
  export * from "./Me.mjs";
123
122
  export * from "./MeSessionType.mjs";
@@ -139,6 +138,7 @@ export * from "./PermissionResourceType.mjs";
139
138
  export * from "./PreviousTurnIdInput.mjs";
140
139
  export * from "./RawToolCall.mjs";
141
140
  export * from "./ReasoningEffort.mjs";
141
+ export * from "./RemoteMcpServerManifest.mjs";
142
142
  export * from "./RequestErrorResponse.mjs";
143
143
  export * from "./RequestErrorResponseError.mjs";
144
144
  export * from "./ResourceName.mjs";
@@ -202,6 +202,7 @@ export * from "./ToolCallRef.mjs";
202
202
  export * from "./ToolInfo.mjs";
203
203
  export * from "./ToolResponseEvent.mjs";
204
204
  export * from "./ToolResponseRequiredEvent.mjs";
205
+ export * from "./TrueFoundryMcpServerManifest.mjs";
205
206
  export * from "./TrueFoundryModelProvider.mjs";
206
207
  export * from "./TrueFoundryRegistrySkill.mjs";
207
208
  export * from "./TrueFoundrySystemToolInfo.mjs";
@@ -117,7 +117,6 @@ export * from "./McpServerInitInfoTransportType.mjs";
117
117
  export * from "./McpServerManifest.mjs";
118
118
  export * from "./McpServerManifestAuth.mjs";
119
119
  export * from "./McpServerToolSelector.mjs";
120
- export * from "./McpServerType.mjs";
121
120
  export * from "./McpToolInfo.mjs";
122
121
  export * from "./Me.mjs";
123
122
  export * from "./MeSessionType.mjs";
@@ -139,6 +138,7 @@ export * from "./PermissionResourceType.mjs";
139
138
  export * from "./PreviousTurnIdInput.mjs";
140
139
  export * from "./RawToolCall.mjs";
141
140
  export * from "./ReasoningEffort.mjs";
141
+ export * from "./RemoteMcpServerManifest.mjs";
142
142
  export * from "./RequestErrorResponse.mjs";
143
143
  export * from "./RequestErrorResponseError.mjs";
144
144
  export * from "./ResourceName.mjs";
@@ -202,6 +202,7 @@ export * from "./ToolCallRef.mjs";
202
202
  export * from "./ToolInfo.mjs";
203
203
  export * from "./ToolResponseEvent.mjs";
204
204
  export * from "./ToolResponseRequiredEvent.mjs";
205
+ export * from "./TrueFoundryMcpServerManifest.mjs";
205
206
  export * from "./TrueFoundryModelProvider.mjs";
206
207
  export * from "./TrueFoundryRegistrySkill.mjs";
207
208
  export * from "./TrueFoundrySystemToolInfo.mjs";