@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.
- package/api/resources/agents/client/Client.js +13 -13
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/api/resources/blocks/client/Client.js +18 -7
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +7 -7
- package/api/resources/sources/client/Client.js +6 -6
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/api/resources/tools/client/Client.d.ts +36 -0
- package/api/resources/tools/client/Client.js +206 -11
- package/api/resources/tools/index.d.ts +1 -0
- package/api/resources/tools/index.js +1 -0
- package/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
- package/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
- package/api/resources/tools/types/index.d.ts +1 -0
- package/api/resources/tools/types/index.js +17 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/Identity.d.ts +2 -0
- package/api/types/IdentityCreate.d.ts +2 -0
- package/api/types/LocalServerConfig.d.ts +13 -0
- package/api/types/LocalServerConfig.js +5 -0
- package/api/types/McpServerType.d.ts +8 -0
- package/api/types/McpServerType.js +10 -0
- package/api/types/McpTool.d.ts +13 -0
- package/api/types/McpTool.js +5 -0
- package/api/types/SseServerConfig.d.ts +11 -0
- package/api/types/SseServerConfig.js +5 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/api/resources/agents/client/Client.js +13 -13
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/api/resources/blocks/client/Client.js +18 -7
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +7 -7
- package/dist/api/resources/sources/client/Client.js +6 -6
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/api/resources/tools/client/Client.d.ts +36 -0
- package/dist/api/resources/tools/client/Client.js +206 -11
- package/dist/api/resources/tools/index.d.ts +1 -0
- package/dist/api/resources/tools/index.js +1 -0
- package/dist/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
- package/dist/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
- package/dist/api/resources/tools/types/index.d.ts +1 -0
- package/dist/api/resources/tools/types/index.js +17 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/Identity.d.ts +2 -0
- package/dist/api/types/IdentityCreate.d.ts +2 -0
- package/dist/api/types/LocalServerConfig.d.ts +13 -0
- package/dist/api/types/LocalServerConfig.js +5 -0
- package/dist/api/types/McpServerType.d.ts +8 -0
- package/dist/api/types/McpServerType.js +10 -0
- package/dist/api/types/McpTool.d.ts +13 -0
- package/dist/api/types/McpTool.js +5 -0
- package/dist/api/types/SseServerConfig.d.ts +11 -0
- package/dist/api/types/SseServerConfig.js +5 -0
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/serialization/resources/tools/client/index.d.ts +2 -0
- package/dist/serialization/resources/tools/client/index.js +3 -1
- package/dist/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listMcpServers.js +42 -0
- package/dist/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
- package/dist/serialization/resources/tools/index.d.ts +1 -0
- package/dist/serialization/resources/tools/index.js +1 -0
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
- package/dist/serialization/resources/tools/types/index.d.ts +1 -0
- package/dist/serialization/resources/tools/types/index.js +17 -0
- package/dist/serialization/types/Identity.d.ts +1 -0
- package/dist/serialization/types/Identity.js +1 -0
- package/dist/serialization/types/IdentityCreate.d.ts +1 -0
- package/dist/serialization/types/IdentityCreate.js +1 -0
- package/dist/serialization/types/LocalServerConfig.d.ts +16 -0
- package/dist/serialization/types/LocalServerConfig.js +47 -0
- package/dist/serialization/types/McpServerType.d.ts +10 -0
- package/dist/serialization/types/McpServerType.js +41 -0
- package/dist/serialization/types/McpTool.d.ts +15 -0
- package/dist/serialization/types/McpTool.js +47 -0
- package/dist/serialization/types/SseServerConfig.d.ts +15 -0
- package/dist/serialization/types/SseServerConfig.js +46 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +189 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
- package/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/serialization/resources/tools/client/index.d.ts +2 -0
- package/serialization/resources/tools/client/index.js +3 -1
- package/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
- package/serialization/resources/tools/client/listMcpServers.js +42 -0
- package/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
- package/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
- package/serialization/resources/tools/index.d.ts +1 -0
- package/serialization/resources/tools/index.js +1 -0
- package/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
- package/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
- package/serialization/resources/tools/types/index.d.ts +1 -0
- package/serialization/resources/tools/types/index.js +17 -0
- package/serialization/types/Identity.d.ts +1 -0
- package/serialization/types/Identity.js +1 -0
- package/serialization/types/IdentityCreate.d.ts +1 -0
- package/serialization/types/IdentityCreate.js +1 -0
- package/serialization/types/LocalServerConfig.d.ts +16 -0
- package/serialization/types/LocalServerConfig.js +47 -0
- package/serialization/types/McpServerType.d.ts +10 -0
- package/serialization/types/McpServerType.js +41 -0
- package/serialization/types/McpTool.d.ts +15 -0
- package/serialization/types/McpTool.js +47 -0
- package/serialization/types/SseServerConfig.d.ts +15 -0
- package/serialization/types/SseServerConfig.js +46 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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
|
});
|
|
@@ -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
|
}
|
|
@@ -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.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.59";
|
package/dist/version.js
CHANGED