@truefoundry/trueforge-sdk 0.2.0-rc.3 → 0.2.0-rc.5

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 (130) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agents/client/Client.d.ts +6 -4
  3. package/dist/cjs/api/resources/agents/client/Client.js +76 -45
  4. package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  5. package/dist/cjs/api/resources/agents/client/requests/ListAgentsRequest.d.ts +12 -0
  6. package/dist/cjs/api/{types/McpServerType.js → resources/agents/client/requests/ListAgentsRequest.js} +0 -5
  7. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  8. package/dist/cjs/api/resources/agents/client/requests/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/internal/client/Client.d.ts +3 -0
  10. package/dist/cjs/api/resources/internal/client/Client.js +7 -2
  11. package/dist/cjs/api/resources/internal/resources/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/internal/resources/index.js +3 -1
  13. package/dist/cjs/api/resources/internal/resources/schedules/client/Client.d.ts +32 -0
  14. package/dist/cjs/api/resources/internal/resources/schedules/client/Client.js +144 -0
  15. package/dist/cjs/api/resources/internal/resources/schedules/client/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/internal/resources/schedules/client/index.js +17 -0
  17. package/dist/cjs/api/resources/internal/resources/schedules/client/requests/ExecuteScheduleRunRequest.d.ts +10 -0
  18. package/dist/cjs/api/resources/internal/resources/schedules/client/requests/ExecuteScheduleRunRequest.js +3 -0
  19. package/dist/cjs/api/resources/internal/resources/schedules/client/requests/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/internal/resources/schedules/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/internal/resources/schedules/exports.d.ts +2 -0
  22. package/dist/cjs/api/resources/internal/resources/schedules/exports.js +21 -0
  23. package/dist/cjs/api/resources/internal/resources/schedules/index.d.ts +1 -0
  24. package/dist/cjs/api/resources/internal/resources/schedules/index.js +17 -0
  25. package/dist/cjs/api/types/Agent.d.ts +1 -0
  26. package/dist/cjs/api/types/ListAgentsResponse.d.ts +1 -0
  27. package/dist/cjs/api/types/McpServerManifest.d.ts +1 -9
  28. package/dist/cjs/api/types/RemoteMcpServerManifest.d.ts +10 -0
  29. package/dist/cjs/api/types/RemoteMcpServerManifest.js +3 -0
  30. package/dist/cjs/api/types/TrueFoundryMcpServerManifest.d.ts +10 -0
  31. package/dist/cjs/api/types/TrueFoundryMcpServerManifest.js +3 -0
  32. package/dist/cjs/api/types/index.d.ts +2 -1
  33. package/dist/cjs/api/types/index.js +2 -1
  34. package/dist/cjs/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  35. package/dist/cjs/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  36. package/dist/cjs/serialization/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  37. package/dist/cjs/serialization/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
  38. package/dist/cjs/serialization/resources/internal/resources/index.d.ts +2 -0
  39. package/dist/cjs/serialization/resources/internal/resources/index.js +3 -1
  40. package/dist/cjs/serialization/resources/internal/resources/schedules/client/index.d.ts +1 -0
  41. package/dist/cjs/serialization/resources/internal/resources/schedules/client/index.js +17 -0
  42. package/dist/cjs/serialization/resources/internal/resources/schedules/client/requests/ExecuteScheduleRunRequest.d.ts +9 -0
  43. package/dist/cjs/serialization/{types/McpServerType.js → resources/internal/resources/schedules/client/requests/ExecuteScheduleRunRequest.js} +5 -3
  44. package/dist/cjs/serialization/resources/internal/resources/schedules/client/requests/index.d.ts +1 -0
  45. package/dist/cjs/serialization/resources/internal/resources/schedules/client/requests/index.js +5 -0
  46. package/dist/cjs/serialization/resources/internal/resources/schedules/index.d.ts +1 -0
  47. package/dist/cjs/serialization/resources/internal/resources/schedules/index.js +17 -0
  48. package/dist/cjs/serialization/types/Agent.d.ts +1 -0
  49. package/dist/cjs/serialization/types/Agent.js +1 -0
  50. package/dist/cjs/serialization/types/ListAgentsResponse.d.ts +2 -0
  51. package/dist/cjs/serialization/types/ListAgentsResponse.js +2 -0
  52. package/dist/cjs/serialization/types/McpServerManifest.d.ts +4 -11
  53. package/dist/cjs/serialization/types/McpServerManifest.js +3 -10
  54. package/dist/cjs/serialization/types/RemoteMcpServerManifest.d.ts +15 -0
  55. package/dist/cjs/serialization/types/RemoteMcpServerManifest.js +47 -0
  56. package/dist/cjs/serialization/types/TrueFoundryMcpServerManifest.d.ts +15 -0
  57. package/dist/cjs/serialization/types/TrueFoundryMcpServerManifest.js +47 -0
  58. package/dist/cjs/serialization/types/index.d.ts +2 -1
  59. package/dist/cjs/serialization/types/index.js +2 -1
  60. package/dist/cjs/version.d.ts +1 -1
  61. package/dist/cjs/version.js +1 -1
  62. package/dist/esm/BaseClient.mjs +2 -2
  63. package/dist/esm/api/resources/agents/client/Client.d.mts +6 -4
  64. package/dist/esm/api/resources/agents/client/Client.mjs +76 -45
  65. package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.d.mts +2 -0
  66. package/dist/esm/api/resources/agents/client/requests/ListAgentsRequest.d.mts +12 -0
  67. package/dist/esm/api/resources/agents/client/requests/ListAgentsRequest.mjs +2 -0
  68. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +1 -0
  69. package/dist/esm/api/resources/agents/client/requests/index.d.mts +1 -0
  70. package/dist/esm/api/resources/internal/client/Client.d.mts +3 -0
  71. package/dist/esm/api/resources/internal/client/Client.mjs +5 -0
  72. package/dist/esm/api/resources/internal/resources/index.d.mts +2 -0
  73. package/dist/esm/api/resources/internal/resources/index.mjs +2 -0
  74. package/dist/esm/api/resources/internal/resources/schedules/client/Client.d.mts +32 -0
  75. package/dist/esm/api/resources/internal/resources/schedules/client/Client.mjs +107 -0
  76. package/dist/esm/api/resources/internal/resources/schedules/client/index.d.mts +1 -0
  77. package/dist/esm/api/resources/internal/resources/schedules/client/index.mjs +1 -0
  78. package/dist/esm/api/resources/internal/resources/schedules/client/requests/ExecuteScheduleRunRequest.d.mts +10 -0
  79. package/dist/esm/api/resources/internal/resources/schedules/client/requests/ExecuteScheduleRunRequest.mjs +2 -0
  80. package/dist/esm/api/resources/internal/resources/schedules/client/requests/index.d.mts +1 -0
  81. package/dist/esm/api/resources/internal/resources/schedules/client/requests/index.mjs +1 -0
  82. package/dist/esm/api/resources/internal/resources/schedules/exports.d.mts +2 -0
  83. package/dist/esm/api/resources/internal/resources/schedules/exports.mjs +3 -0
  84. package/dist/esm/api/resources/internal/resources/schedules/index.d.mts +1 -0
  85. package/dist/esm/api/resources/internal/resources/schedules/index.mjs +1 -0
  86. package/dist/esm/api/types/Agent.d.mts +1 -0
  87. package/dist/esm/api/types/ListAgentsResponse.d.mts +1 -0
  88. package/dist/esm/api/types/McpServerManifest.d.mts +1 -9
  89. package/dist/esm/api/types/RemoteMcpServerManifest.d.mts +10 -0
  90. package/dist/esm/api/types/RemoteMcpServerManifest.mjs +2 -0
  91. package/dist/esm/api/types/TrueFoundryMcpServerManifest.d.mts +10 -0
  92. package/dist/esm/api/types/TrueFoundryMcpServerManifest.mjs +2 -0
  93. package/dist/esm/api/types/index.d.mts +2 -1
  94. package/dist/esm/api/types/index.mjs +2 -1
  95. package/dist/esm/serialization/resources/agents/client/requests/CreateAgentRequest.d.mts +1 -0
  96. package/dist/esm/serialization/resources/agents/client/requests/CreateAgentRequest.mjs +1 -0
  97. package/dist/esm/serialization/resources/agents/client/requests/UpdateAgentRequest.d.mts +1 -0
  98. package/dist/esm/serialization/resources/agents/client/requests/UpdateAgentRequest.mjs +1 -0
  99. package/dist/esm/serialization/resources/internal/resources/index.d.mts +2 -0
  100. package/dist/esm/serialization/resources/internal/resources/index.mjs +2 -0
  101. package/dist/esm/serialization/resources/internal/resources/schedules/client/index.d.mts +1 -0
  102. package/dist/esm/serialization/resources/internal/resources/schedules/client/index.mjs +1 -0
  103. package/dist/esm/serialization/resources/internal/resources/schedules/client/requests/ExecuteScheduleRunRequest.d.mts +9 -0
  104. package/dist/esm/serialization/resources/internal/resources/schedules/client/requests/ExecuteScheduleRunRequest.mjs +5 -0
  105. package/dist/esm/serialization/resources/internal/resources/schedules/client/requests/index.d.mts +1 -0
  106. package/dist/esm/serialization/resources/internal/resources/schedules/client/requests/index.mjs +1 -0
  107. package/dist/esm/serialization/resources/internal/resources/schedules/index.d.mts +1 -0
  108. package/dist/esm/serialization/resources/internal/resources/schedules/index.mjs +1 -0
  109. package/dist/esm/serialization/types/Agent.d.mts +1 -0
  110. package/dist/esm/serialization/types/Agent.mjs +1 -0
  111. package/dist/esm/serialization/types/ListAgentsResponse.d.mts +2 -0
  112. package/dist/esm/serialization/types/ListAgentsResponse.mjs +2 -0
  113. package/dist/esm/serialization/types/McpServerManifest.d.mts +4 -11
  114. package/dist/esm/serialization/types/McpServerManifest.mjs +3 -10
  115. package/dist/esm/serialization/types/RemoteMcpServerManifest.d.mts +15 -0
  116. package/dist/esm/serialization/types/RemoteMcpServerManifest.mjs +11 -0
  117. package/dist/esm/serialization/types/TrueFoundryMcpServerManifest.d.mts +15 -0
  118. package/dist/esm/serialization/types/TrueFoundryMcpServerManifest.mjs +11 -0
  119. package/dist/esm/serialization/types/index.d.mts +2 -1
  120. package/dist/esm/serialization/types/index.mjs +2 -1
  121. package/dist/esm/version.d.mts +1 -1
  122. package/dist/esm/version.mjs +1 -1
  123. package/package.json +12 -1
  124. package/reference.md +78 -3
  125. package/dist/cjs/api/types/McpServerType.d.ts +0 -5
  126. package/dist/cjs/serialization/types/McpServerType.d.ts +0 -7
  127. package/dist/esm/api/types/McpServerType.d.mts +0 -5
  128. package/dist/esm/api/types/McpServerType.mjs +0 -5
  129. package/dist/esm/serialization/types/McpServerType.d.mts +0 -7
  130. package/dist/esm/serialization/types/McpServerType.mjs +0 -3
@@ -1,10 +1,2 @@
1
1
  import type * as TrueForge from "../index.js";
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.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as TrueForge from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -117,7 +117,6 @@ export * from "./McpServerInitInfoTransportType.js";
117
117
  export * from "./McpServerManifest.js";
118
118
  export * from "./McpServerManifestAuth.js";
119
119
  export * from "./McpServerToolSelector.js";
120
- export * from "./McpServerType.js";
121
120
  export * from "./McpToolInfo.js";
122
121
  export * from "./Me.js";
123
122
  export * from "./MeSessionType.js";
@@ -139,6 +138,7 @@ export * from "./PermissionResourceType.js";
139
138
  export * from "./PreviousTurnIdInput.js";
140
139
  export * from "./RawToolCall.js";
141
140
  export * from "./ReasoningEffort.js";
141
+ export * from "./RemoteMcpServerManifest.js";
142
142
  export * from "./RequestErrorResponse.js";
143
143
  export * from "./RequestErrorResponseError.js";
144
144
  export * from "./ResourceName.js";
@@ -202,6 +202,7 @@ export * from "./ToolCallRef.js";
202
202
  export * from "./ToolInfo.js";
203
203
  export * from "./ToolResponseEvent.js";
204
204
  export * from "./ToolResponseRequiredEvent.js";
205
+ export * from "./TrueFoundryMcpServerManifest.js";
205
206
  export * from "./TrueFoundryModelProvider.js";
206
207
  export * from "./TrueFoundryRegistrySkill.js";
207
208
  export * from "./TrueFoundrySystemToolInfo.js";
@@ -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);
@@ -6,6 +6,7 @@ import { ResourceName } from "../../../../types/ResourceName.js";
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
  }
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../../core/index.js"));
39
39
  const AgentSpec_js_1 = require("../../../../types/AgentSpec.js");
40
40
  const ResourceName_js_1 = require("../../../../types/ResourceName.js");
41
41
  exports.CreateAgentRequest = core.serialization.object({
42
+ description: core.serialization.string(),
42
43
  manifest: AgentSpec_js_1.AgentSpec,
43
44
  name: ResourceName_js_1.ResourceName,
44
45
  });
@@ -5,6 +5,7 @@ import { AgentSpec } from "../../../../types/AgentSpec.js";
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
  }
@@ -38,5 +38,6 @@ exports.UpdateAgentRequest = void 0;
38
38
  const core = __importStar(require("../../../../../core/index.js"));
39
39
  const AgentSpec_js_1 = require("../../../../types/AgentSpec.js");
40
40
  exports.UpdateAgentRequest = core.serialization.object({
41
+ description: core.serialization.string().optional(),
41
42
  manifest: AgentSpec_js_1.AgentSpec,
42
43
  });
@@ -1,2 +1,4 @@
1
+ export * from "./schedules/client/requests/index.js";
2
+ export * as schedules from "./schedules/index.js";
1
3
  export * from "./sessions/client/requests/index.js";
2
4
  export * as sessions from "./sessions/index.js";
@@ -36,6 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.sessions = void 0;
39
+ exports.sessions = exports.schedules = void 0;
40
+ __exportStar(require("./schedules/client/requests/index.js"), exports);
41
+ exports.schedules = __importStar(require("./schedules/index.js"));
40
42
  __exportStar(require("./sessions/client/requests/index.js"), exports);
41
43
  exports.sessions = __importStar(require("./sessions/index.js"));
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
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
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,9 @@
1
+ import type * as TrueForge from "../../../../../../../api/index.js";
2
+ import * as core from "../../../../../../../core/index.js";
3
+ import type * as serializers from "../../../../../../index.js";
4
+ export declare const ExecuteScheduleRunRequest: core.serialization.Schema<serializers.internal.ExecuteScheduleRunRequest.Raw, TrueForge.internal.ExecuteScheduleRunRequest>;
5
+ export declare namespace ExecuteScheduleRunRequest {
6
+ interface Raw {
7
+ schedule_run_id: string;
8
+ }
9
+ }
@@ -34,6 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.McpServerType = void 0;
38
- const core = __importStar(require("../../core/index.js"));
39
- exports.McpServerType = core.serialization.enum_(["remote", "truefoundry"]);
37
+ exports.ExecuteScheduleRunRequest = void 0;
38
+ const core = __importStar(require("../../../../../../../core/index.js"));
39
+ exports.ExecuteScheduleRunRequest = core.serialization.object({
40
+ scheduleRunId: core.serialization.property("schedule_run_id", core.serialization.string()),
41
+ });
@@ -0,0 +1 @@
1
+ export { ExecuteScheduleRunRequest } from "./ExecuteScheduleRunRequest.js";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExecuteScheduleRunRequest = void 0;
4
+ var ExecuteScheduleRunRequest_js_1 = require("./ExecuteScheduleRunRequest.js");
5
+ Object.defineProperty(exports, "ExecuteScheduleRunRequest", { enumerable: true, get: function () { return ExecuteScheduleRunRequest_js_1.ExecuteScheduleRunRequest; } });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
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
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -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;
@@ -41,6 +41,7 @@ const CreatedBySubject_js_1 = require("./CreatedBySubject.js");
41
41
  const ResourceName_js_1 = require("./ResourceName.js");
42
42
  exports.Agent = core.serialization.object({
43
43
  createdBySubject: core.serialization.property("created_by_subject", CreatedBySubject_js_1.CreatedBySubject),
44
+ description: core.serialization.string(),
44
45
  id: core.serialization.string(),
45
46
  manifest: AgentSpec_js_1.AgentSpec,
46
47
  name: ResourceName_js_1.ResourceName,
@@ -2,9 +2,11 @@ import type * as TrueForge from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { Agent } from "./Agent.js";
5
+ import { TokenPagination } from "./TokenPagination.js";
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
  }
@@ -37,6 +37,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ListAgentsResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const Agent_js_1 = require("./Agent.js");
40
+ const TokenPagination_js_1 = require("./TokenPagination.js");
40
41
  exports.ListAgentsResponse = core.serialization.object({
41
42
  data: core.serialization.list(Agent_js_1.Agent),
43
+ pagination: TokenPagination_js_1.TokenPagination,
42
44
  });
@@ -1,16 +1,9 @@
1
1
  import type * as TrueForge from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- import { McpServerManifestAuth } from "./McpServerManifestAuth.js";
5
- import { McpServerType } from "./McpServerType.js";
6
- import { ResourceName } from "./ResourceName.js";
7
- export declare const McpServerManifest: core.serialization.ObjectSchema<serializers.McpServerManifest.Raw, TrueForge.McpServerManifest>;
4
+ import { RemoteMcpServerManifest } from "./RemoteMcpServerManifest.js";
5
+ import { TrueFoundryMcpServerManifest } from "./TrueFoundryMcpServerManifest.js";
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
  }
@@ -36,13 +36,6 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.McpServerManifest = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- const McpServerManifestAuth_js_1 = require("./McpServerManifestAuth.js");
40
- const McpServerType_js_1 = require("./McpServerType.js");
41
- const ResourceName_js_1 = require("./ResourceName.js");
42
- exports.McpServerManifest = core.serialization.object({
43
- auth: McpServerManifestAuth_js_1.McpServerManifestAuth.optional(),
44
- description: core.serialization.string(),
45
- name: ResourceName_js_1.ResourceName,
46
- type: McpServerType_js_1.McpServerType,
47
- url: core.serialization.string(),
48
- });
39
+ const RemoteMcpServerManifest_js_1 = require("./RemoteMcpServerManifest.js");
40
+ const TrueFoundryMcpServerManifest_js_1 = require("./TrueFoundryMcpServerManifest.js");
41
+ exports.McpServerManifest = core.serialization.undiscriminatedUnion([RemoteMcpServerManifest_js_1.RemoteMcpServerManifest, TrueFoundryMcpServerManifest_js_1.TrueFoundryMcpServerManifest]);
@@ -0,0 +1,15 @@
1
+ import type * as TrueForge from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { McpServerManifestAuth } from "./McpServerManifestAuth.js";
5
+ import { ResourceName } from "./ResourceName.js";
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,47 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.RemoteMcpServerManifest = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const McpServerManifestAuth_js_1 = require("./McpServerManifestAuth.js");
40
+ const ResourceName_js_1 = require("./ResourceName.js");
41
+ exports.RemoteMcpServerManifest = core.serialization.object({
42
+ auth: McpServerManifestAuth_js_1.McpServerManifestAuth.optional(),
43
+ description: core.serialization.string(),
44
+ name: ResourceName_js_1.ResourceName,
45
+ type: core.serialization.stringLiteral("remote"),
46
+ url: core.serialization.string(),
47
+ });
@@ -0,0 +1,15 @@
1
+ import type * as TrueForge from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { McpServerManifestAuth } from "./McpServerManifestAuth.js";
5
+ import { ResourceName } from "./ResourceName.js";
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,47 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.TrueFoundryMcpServerManifest = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const McpServerManifestAuth_js_1 = require("./McpServerManifestAuth.js");
40
+ const ResourceName_js_1 = require("./ResourceName.js");
41
+ exports.TrueFoundryMcpServerManifest = core.serialization.object({
42
+ auth: McpServerManifestAuth_js_1.McpServerManifestAuth.optional(),
43
+ description: core.serialization.string(),
44
+ name: ResourceName_js_1.ResourceName,
45
+ type: core.serialization.stringLiteral("truefoundry"),
46
+ url: core.serialization.string(),
47
+ });
@@ -117,7 +117,6 @@ export * from "./McpServerInitInfoTransportType.js";
117
117
  export * from "./McpServerManifest.js";
118
118
  export * from "./McpServerManifestAuth.js";
119
119
  export * from "./McpServerToolSelector.js";
120
- export * from "./McpServerType.js";
121
120
  export * from "./McpToolInfo.js";
122
121
  export * from "./Me.js";
123
122
  export * from "./MeSessionType.js";
@@ -139,6 +138,7 @@ export * from "./PermissionResourceType.js";
139
138
  export * from "./PreviousTurnIdInput.js";
140
139
  export * from "./RawToolCall.js";
141
140
  export * from "./ReasoningEffort.js";
141
+ export * from "./RemoteMcpServerManifest.js";
142
142
  export * from "./RequestErrorResponse.js";
143
143
  export * from "./RequestErrorResponseError.js";
144
144
  export * from "./ResourceName.js";
@@ -202,6 +202,7 @@ export * from "./ToolCallRef.js";
202
202
  export * from "./ToolInfo.js";
203
203
  export * from "./ToolResponseEvent.js";
204
204
  export * from "./ToolResponseRequiredEvent.js";
205
+ export * from "./TrueFoundryMcpServerManifest.js";
205
206
  export * from "./TrueFoundryModelProvider.js";
206
207
  export * from "./TrueFoundryRegistrySkill.js";
207
208
  export * from "./TrueFoundrySystemToolInfo.js";
@@ -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.3";
1
+ export declare const SDK_VERSION = "0.2.0-rc.5";
@@ -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.3";
4
+ exports.SDK_VERSION = "0.2.0-rc.5";
@@ -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.3",
10
- "User-Agent": "@truefoundry/trueforge-sdk/0.2.0-rc.3",
9
+ "X-Fern-SDK-Version": "0.2.0-rc.5",
10
+ "User-Agent": "@truefoundry/trueforge-sdk/0.2.0-rc.5",
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