@letta-ai/letta-client 0.1.57 → 0.1.59

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 (188) hide show
  1. package/api/resources/agents/client/Client.js +13 -13
  2. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
  3. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  6. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  7. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  8. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  9. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  10. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  11. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  12. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
  13. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
  14. package/api/resources/blocks/client/Client.js +18 -7
  15. package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
  16. package/api/resources/health/client/Client.js +1 -1
  17. package/api/resources/identities/client/Client.js +6 -6
  18. package/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
  19. package/api/resources/index.d.ts +2 -1
  20. package/api/resources/index.js +3 -2
  21. package/api/resources/jobs/client/Client.js +4 -4
  22. package/api/resources/models/client/Client.js +2 -2
  23. package/api/resources/providers/client/Client.js +4 -4
  24. package/api/resources/runs/client/Client.js +7 -7
  25. package/api/resources/sources/client/Client.js +6 -6
  26. package/api/resources/sources/resources/files/client/Client.js +3 -3
  27. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  28. package/api/resources/steps/client/Client.js +2 -2
  29. package/api/resources/tag/client/Client.js +1 -1
  30. package/api/resources/templates/client/Client.js +1 -1
  31. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
  32. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
  33. package/api/resources/tools/client/Client.d.ts +36 -0
  34. package/api/resources/tools/client/Client.js +206 -11
  35. package/api/resources/tools/index.d.ts +1 -0
  36. package/api/resources/tools/index.js +1 -0
  37. package/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
  38. package/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
  39. package/api/resources/tools/types/index.d.ts +1 -0
  40. package/api/resources/tools/types/index.js +17 -0
  41. package/api/resources/voice/client/Client.js +1 -1
  42. package/api/types/Identity.d.ts +2 -0
  43. package/api/types/IdentityCreate.d.ts +2 -0
  44. package/api/types/LocalServerConfig.d.ts +13 -0
  45. package/api/types/LocalServerConfig.js +5 -0
  46. package/api/types/McpServerType.d.ts +8 -0
  47. package/api/types/McpServerType.js +10 -0
  48. package/api/types/McpTool.d.ts +13 -0
  49. package/api/types/McpTool.js +5 -0
  50. package/api/types/SseServerConfig.d.ts +11 -0
  51. package/api/types/SseServerConfig.js +5 -0
  52. package/api/types/ToolType.d.ts +2 -1
  53. package/api/types/ToolType.js +1 -0
  54. package/api/types/index.d.ts +4 -0
  55. package/api/types/index.js +4 -0
  56. package/dist/api/resources/agents/client/Client.js +13 -13
  57. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
  58. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  59. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  60. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  61. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  62. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  63. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  64. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  65. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  66. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  67. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
  68. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
  69. package/dist/api/resources/blocks/client/Client.js +18 -7
  70. package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
  71. package/dist/api/resources/health/client/Client.js +1 -1
  72. package/dist/api/resources/identities/client/Client.js +6 -6
  73. package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
  74. package/dist/api/resources/index.d.ts +2 -1
  75. package/dist/api/resources/index.js +3 -2
  76. package/dist/api/resources/jobs/client/Client.js +4 -4
  77. package/dist/api/resources/models/client/Client.js +2 -2
  78. package/dist/api/resources/providers/client/Client.js +4 -4
  79. package/dist/api/resources/runs/client/Client.js +7 -7
  80. package/dist/api/resources/sources/client/Client.js +6 -6
  81. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  82. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  83. package/dist/api/resources/steps/client/Client.js +2 -2
  84. package/dist/api/resources/tag/client/Client.js +1 -1
  85. package/dist/api/resources/templates/client/Client.js +1 -1
  86. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
  87. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
  88. package/dist/api/resources/tools/client/Client.d.ts +36 -0
  89. package/dist/api/resources/tools/client/Client.js +206 -11
  90. package/dist/api/resources/tools/index.d.ts +1 -0
  91. package/dist/api/resources/tools/index.js +1 -0
  92. package/dist/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
  93. package/dist/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
  94. package/dist/api/resources/tools/types/index.d.ts +1 -0
  95. package/dist/api/resources/tools/types/index.js +17 -0
  96. package/dist/api/resources/voice/client/Client.js +1 -1
  97. package/dist/api/types/Identity.d.ts +2 -0
  98. package/dist/api/types/IdentityCreate.d.ts +2 -0
  99. package/dist/api/types/LocalServerConfig.d.ts +13 -0
  100. package/dist/api/types/LocalServerConfig.js +5 -0
  101. package/dist/api/types/McpServerType.d.ts +8 -0
  102. package/dist/api/types/McpServerType.js +10 -0
  103. package/dist/api/types/McpTool.d.ts +13 -0
  104. package/dist/api/types/McpTool.js +5 -0
  105. package/dist/api/types/SseServerConfig.d.ts +11 -0
  106. package/dist/api/types/SseServerConfig.js +5 -0
  107. package/dist/api/types/ToolType.d.ts +2 -1
  108. package/dist/api/types/ToolType.js +1 -0
  109. package/dist/api/types/index.d.ts +4 -0
  110. package/dist/api/types/index.js +4 -0
  111. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
  112. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
  113. package/dist/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
  114. package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
  115. package/dist/serialization/resources/index.d.ts +2 -1
  116. package/dist/serialization/resources/index.js +3 -2
  117. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
  118. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
  119. package/dist/serialization/resources/tools/client/index.d.ts +2 -0
  120. package/dist/serialization/resources/tools/client/index.js +3 -1
  121. package/dist/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
  122. package/dist/serialization/resources/tools/client/listMcpServers.js +42 -0
  123. package/dist/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
  124. package/dist/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
  125. package/dist/serialization/resources/tools/index.d.ts +1 -0
  126. package/dist/serialization/resources/tools/index.js +1 -0
  127. package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
  128. package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
  129. package/dist/serialization/resources/tools/types/index.d.ts +1 -0
  130. package/dist/serialization/resources/tools/types/index.js +17 -0
  131. package/dist/serialization/types/Identity.d.ts +1 -0
  132. package/dist/serialization/types/Identity.js +1 -0
  133. package/dist/serialization/types/IdentityCreate.d.ts +1 -0
  134. package/dist/serialization/types/IdentityCreate.js +1 -0
  135. package/dist/serialization/types/LocalServerConfig.d.ts +16 -0
  136. package/dist/serialization/types/LocalServerConfig.js +47 -0
  137. package/dist/serialization/types/McpServerType.d.ts +10 -0
  138. package/dist/serialization/types/McpServerType.js +41 -0
  139. package/dist/serialization/types/McpTool.d.ts +15 -0
  140. package/dist/serialization/types/McpTool.js +47 -0
  141. package/dist/serialization/types/SseServerConfig.d.ts +15 -0
  142. package/dist/serialization/types/SseServerConfig.js +46 -0
  143. package/dist/serialization/types/ToolType.d.ts +1 -1
  144. package/dist/serialization/types/ToolType.js +1 -0
  145. package/dist/serialization/types/index.d.ts +4 -0
  146. package/dist/serialization/types/index.js +4 -0
  147. package/dist/version.d.ts +1 -1
  148. package/dist/version.js +1 -1
  149. package/package.json +1 -1
  150. package/reference.md +189 -0
  151. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
  152. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
  153. package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
  154. package/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
  155. package/serialization/resources/index.d.ts +2 -1
  156. package/serialization/resources/index.js +3 -2
  157. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
  158. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
  159. package/serialization/resources/tools/client/index.d.ts +2 -0
  160. package/serialization/resources/tools/client/index.js +3 -1
  161. package/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
  162. package/serialization/resources/tools/client/listMcpServers.js +42 -0
  163. package/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
  164. package/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
  165. package/serialization/resources/tools/index.d.ts +1 -0
  166. package/serialization/resources/tools/index.js +1 -0
  167. package/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
  168. package/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
  169. package/serialization/resources/tools/types/index.d.ts +1 -0
  170. package/serialization/resources/tools/types/index.js +17 -0
  171. package/serialization/types/Identity.d.ts +1 -0
  172. package/serialization/types/Identity.js +1 -0
  173. package/serialization/types/IdentityCreate.d.ts +1 -0
  174. package/serialization/types/IdentityCreate.js +1 -0
  175. package/serialization/types/LocalServerConfig.d.ts +16 -0
  176. package/serialization/types/LocalServerConfig.js +47 -0
  177. package/serialization/types/McpServerType.d.ts +10 -0
  178. package/serialization/types/McpServerType.js +41 -0
  179. package/serialization/types/McpTool.d.ts +15 -0
  180. package/serialization/types/McpTool.js +47 -0
  181. package/serialization/types/SseServerConfig.d.ts +15 -0
  182. package/serialization/types/SseServerConfig.js +46 -0
  183. package/serialization/types/ToolType.d.ts +1 -1
  184. package/serialization/types/ToolType.js +1 -0
  185. package/serialization/types/index.d.ts +4 -0
  186. package/serialization/types/index.js +4 -0
  187. package/version.d.ts +1 -1
  188. package/version.js +1 -1
@@ -45,4 +45,5 @@ exports.TemplatesCreateAgentsResponseAgentsItemToolsItemToolType = core.serializ
45
45
  "letta_multi_agent_core",
46
46
  "external_composio",
47
47
  "external_langchain",
48
+ "external_mcp",
48
49
  ]);
@@ -2,4 +2,6 @@ export * as list from "./list";
2
2
  export * as addBaseTool from "./addBaseTool";
3
3
  export * as listComposioApps from "./listComposioApps";
4
4
  export * as listComposioActionsByApp from "./listComposioActionsByApp";
5
+ export * as listMcpServers from "./listMcpServers";
6
+ export * as listMcpToolsByServer from "./listMcpToolsByServer";
5
7
  export * from "./requests";
@@ -36,9 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = void 0;
39
+ exports.listMcpToolsByServer = exports.listMcpServers = exports.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
41
  exports.addBaseTool = __importStar(require("./addBaseTool"));
42
42
  exports.listComposioApps = __importStar(require("./listComposioApps"));
43
43
  exports.listComposioActionsByApp = __importStar(require("./listComposioActionsByApp"));
44
+ exports.listMcpServers = __importStar(require("./listMcpServers"));
45
+ exports.listMcpToolsByServer = __importStar(require("./listMcpToolsByServer"));
44
46
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { ListMcpServersResponseValue } from "../types/ListMcpServersResponseValue";
8
+ export declare const Response: core.serialization.Schema<serializers.tools.listMcpServers.Response.Raw, Record<string, Letta.ListMcpServersResponseValue>>;
9
+ export declare namespace Response {
10
+ type Raw = Record<string, ListMcpServersResponseValue.Raw>;
11
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const ListMcpServersResponseValue_1 = require("../types/ListMcpServersResponseValue");
42
+ exports.Response = core.serialization.record(core.serialization.string(), ListMcpServersResponseValue_1.ListMcpServersResponseValue);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { McpTool } from "../../../types/McpTool";
8
+ export declare const Response: core.serialization.Schema<serializers.tools.listMcpToolsByServer.Response.Raw, Letta.McpTool[]>;
9
+ export declare namespace Response {
10
+ type Raw = McpTool.Raw[];
11
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const McpTool_1 = require("../../../types/McpTool");
42
+ exports.Response = core.serialization.list(McpTool_1.McpTool);
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { SseServerConfig } from "../../../types/SseServerConfig";
8
+ import { LocalServerConfig } from "../../../types/LocalServerConfig";
9
+ export declare const ListMcpServersResponseValue: core.serialization.Schema<serializers.ListMcpServersResponseValue.Raw, Letta.ListMcpServersResponseValue>;
10
+ export declare namespace ListMcpServersResponseValue {
11
+ type Raw = SseServerConfig.Raw | LocalServerConfig.Raw;
12
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ListMcpServersResponseValue = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const SseServerConfig_1 = require("../../../types/SseServerConfig");
42
+ const LocalServerConfig_1 = require("../../../types/LocalServerConfig");
43
+ exports.ListMcpServersResponseValue = core.serialization.undiscriminatedUnion([SseServerConfig_1.SseServerConfig, LocalServerConfig_1.LocalServerConfig]);
@@ -0,0 +1 @@
1
+ export * from "./ListMcpServersResponseValue";
@@ -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("./ListMcpServersResponseValue"), exports);
@@ -15,6 +15,7 @@ export declare namespace Identity {
15
15
  identity_type: IdentityType.Raw;
16
16
  project_id?: string | null;
17
17
  agent_ids: string[];
18
+ block_ids: string[];
18
19
  properties?: IdentityProperty.Raw[] | null;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.Identity = core.serialization.object({
47
47
  identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType),
48
48
  projectId: core.serialization.property("project_id", core.serialization.string().optional()),
49
49
  agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string())),
50
+ blockIds: core.serialization.property("block_ids", core.serialization.list(core.serialization.string())),
50
51
  properties: core.serialization.list(IdentityProperty_1.IdentityProperty).optional(),
51
52
  });
@@ -14,6 +14,7 @@ export declare namespace IdentityCreate {
14
14
  identity_type: IdentityType.Raw;
15
15
  project_id?: string | null;
16
16
  agent_ids?: string[] | null;
17
+ block_ids?: string[] | null;
17
18
  properties?: IdentityProperty.Raw[] | null;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.IdentityCreate = core.serialization.object({
46
46
  identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType),
47
47
  projectId: core.serialization.property("project_id", core.serialization.string().optional()),
48
48
  agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string()).optional()),
49
+ blockIds: core.serialization.property("block_ids", core.serialization.list(core.serialization.string()).optional()),
49
50
  properties: core.serialization.list(IdentityProperty_1.IdentityProperty).optional(),
50
51
  });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { McpServerType } from "./McpServerType";
8
+ export declare const LocalServerConfig: core.serialization.ObjectSchema<serializers.LocalServerConfig.Raw, Letta.LocalServerConfig>;
9
+ export declare namespace LocalServerConfig {
10
+ interface Raw {
11
+ server_name: string;
12
+ type?: McpServerType.Raw | null;
13
+ command: string;
14
+ args: string[];
15
+ }
16
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LocalServerConfig = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const McpServerType_1 = require("./McpServerType");
42
+ exports.LocalServerConfig = core.serialization.object({
43
+ serverName: core.serialization.property("server_name", core.serialization.string()),
44
+ type: McpServerType_1.McpServerType.optional(),
45
+ command: core.serialization.string(),
46
+ args: core.serialization.list(core.serialization.string()),
47
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const McpServerType: core.serialization.Schema<serializers.McpServerType.Raw, Letta.McpServerType>;
8
+ export declare namespace McpServerType {
9
+ type Raw = "sse" | "local";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.McpServerType = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.McpServerType = core.serialization.enum_(["sse", "local"]);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const McpTool: core.serialization.ObjectSchema<serializers.McpTool.Raw, Letta.McpTool>;
8
+ export declare namespace McpTool {
9
+ interface Raw {
10
+ name: string;
11
+ description?: string | null;
12
+ inputSchema: Record<string, unknown>;
13
+ [key: string]: any;
14
+ }
15
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.McpTool = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.McpTool = core.serialization
42
+ .object({
43
+ name: core.serialization.string(),
44
+ description: core.serialization.string().optional(),
45
+ inputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
46
+ })
47
+ .passthrough();
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { McpServerType } from "./McpServerType";
8
+ export declare const SseServerConfig: core.serialization.ObjectSchema<serializers.SseServerConfig.Raw, Letta.SseServerConfig>;
9
+ export declare namespace SseServerConfig {
10
+ interface Raw {
11
+ server_name: string;
12
+ type?: McpServerType.Raw | null;
13
+ server_url: string;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.SseServerConfig = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const McpServerType_1 = require("./McpServerType");
42
+ exports.SseServerConfig = core.serialization.object({
43
+ serverName: core.serialization.property("server_name", core.serialization.string()),
44
+ type: McpServerType_1.McpServerType.optional(),
45
+ serverUrl: core.serialization.property("server_url", core.serialization.string()),
46
+ });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ToolType: core.serialization.Schema<serializers.ToolType.Raw, Letta.ToolType>;
8
8
  export declare namespace ToolType {
9
- type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain";
9
+ type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain" | "external_mcp";
10
10
  }
@@ -45,4 +45,5 @@ exports.ToolType = core.serialization.enum_([
45
45
  "letta_multi_agent_core",
46
46
  "external_composio",
47
47
  "external_langchain",
48
+ "external_mcp",
48
49
  ]);
@@ -108,6 +108,9 @@ export * from "./LettaRequestConfig";
108
108
  export * from "./LettaResponse";
109
109
  export * from "./LettaUsageStatistics";
110
110
  export * from "./LocalSandboxConfig";
111
+ export * from "./LocalServerConfig";
112
+ export * from "./McpServerType";
113
+ export * from "./McpTool";
111
114
  export * from "./Memory";
112
115
  export * from "./Message";
113
116
  export * from "./MessageCreateRole";
@@ -124,6 +127,7 @@ export * from "./ResponseFormatJsonObject";
124
127
  export * from "./ResponseFormatJsonSchema";
125
128
  export * from "./ResponseFormatText";
126
129
  export * from "./Run";
130
+ export * from "./SseServerConfig";
127
131
  export * from "./SandboxConfig";
128
132
  export * from "./SandboxConfigCreateConfig";
129
133
  export * from "./SandboxConfigCreate";
@@ -124,6 +124,9 @@ __exportStar(require("./LettaRequestConfig"), exports);
124
124
  __exportStar(require("./LettaResponse"), exports);
125
125
  __exportStar(require("./LettaUsageStatistics"), exports);
126
126
  __exportStar(require("./LocalSandboxConfig"), exports);
127
+ __exportStar(require("./LocalServerConfig"), exports);
128
+ __exportStar(require("./McpServerType"), exports);
129
+ __exportStar(require("./McpTool"), exports);
127
130
  __exportStar(require("./Memory"), exports);
128
131
  __exportStar(require("./Message"), exports);
129
132
  __exportStar(require("./MessageCreateRole"), exports);
@@ -140,6 +143,7 @@ __exportStar(require("./ResponseFormatJsonObject"), exports);
140
143
  __exportStar(require("./ResponseFormatJsonSchema"), exports);
141
144
  __exportStar(require("./ResponseFormatText"), exports);
142
145
  __exportStar(require("./Run"), exports);
146
+ __exportStar(require("./SseServerConfig"), exports);
143
147
  __exportStar(require("./SandboxConfig"), exports);
144
148
  __exportStar(require("./SandboxConfigCreateConfig"), exports);
145
149
  __exportStar(require("./SandboxConfigCreate"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.57";
1
+ export declare const SDK_VERSION = "0.1.59";
package/dist/version.js CHANGED
@@ -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.1.57";
4
+ exports.SDK_VERSION = "0.1.59";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.57",
3
+ "version": "0.1.59",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",