@letta-ai/letta-client 0.1.32 → 0.1.33
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/Client.d.ts +3 -0
- package/Client.js +23 -18
- package/api/resources/agents/client/Client.js +20 -8
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -1
- package/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
- 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/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/blocks/client/Client.js +6 -6
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.d.ts +44 -0
- package/api/resources/identities/client/Client.js +155 -0
- package/api/resources/identities/client/index.d.ts +1 -0
- package/api/resources/identities/client/index.js +17 -0
- package/api/resources/identities/client/requests/ListIdentitiesRequest.d.ts +16 -0
- package/api/resources/identities/client/requests/ListIdentitiesRequest.js +5 -0
- package/api/resources/identities/client/requests/index.d.ts +1 -0
- package/api/resources/identities/client/requests/index.js +2 -0
- package/api/resources/identities/index.d.ts +1 -0
- package/api/resources/identities/index.js +17 -0
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- 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 +6 -6
- 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/tools/client/Client.js +11 -11
- package/api/types/ActionParametersModel.d.ts +1 -0
- package/api/types/ActionResponseModel.d.ts +1 -0
- package/api/types/AppAuthSchemeAuthMode.d.ts +2 -1
- package/api/types/AppAuthSchemeAuthMode.js +1 -0
- package/api/types/Identity.d.ts +18 -0
- package/api/types/Identity.js +5 -0
- package/api/types/IdentityType.d.ts +12 -0
- package/api/types/IdentityType.js +11 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +23 -18
- package/dist/api/resources/agents/client/Client.js +20 -8
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -1
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
- 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/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/blocks/client/Client.js +6 -6
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.d.ts +44 -0
- package/dist/api/resources/identities/client/Client.js +155 -0
- package/dist/api/resources/identities/client/index.d.ts +1 -0
- package/dist/api/resources/identities/client/index.js +17 -0
- package/dist/api/resources/identities/client/requests/ListIdentitiesRequest.d.ts +16 -0
- package/dist/api/resources/identities/client/requests/ListIdentitiesRequest.js +5 -0
- package/dist/api/resources/identities/client/requests/index.d.ts +1 -0
- package/dist/api/resources/identities/client/requests/index.js +2 -0
- package/dist/api/resources/identities/index.d.ts +1 -0
- package/dist/api/resources/identities/index.js +17 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- 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 +6 -6
- 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/tools/client/Client.js +11 -11
- package/dist/api/types/ActionParametersModel.d.ts +1 -0
- package/dist/api/types/ActionResponseModel.d.ts +1 -0
- package/dist/api/types/AppAuthSchemeAuthMode.d.ts +2 -1
- package/dist/api/types/AppAuthSchemeAuthMode.js +1 -0
- package/dist/api/types/Identity.d.ts +18 -0
- package/dist/api/types/Identity.js +5 -0
- package/dist/api/types/IdentityType.d.ts +12 -0
- package/dist/api/types/IdentityType.js +11 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/dist/serialization/resources/identities/client/index.d.ts +1 -0
- package/dist/serialization/resources/identities/client/index.js +37 -0
- package/dist/serialization/resources/identities/client/listIdentities.d.ts +11 -0
- package/dist/serialization/resources/identities/client/listIdentities.js +42 -0
- package/dist/serialization/resources/identities/index.d.ts +1 -0
- package/dist/serialization/resources/identities/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/types/ActionParametersModel.d.ts +1 -0
- package/dist/serialization/types/ActionParametersModel.js +1 -0
- package/dist/serialization/types/ActionResponseModel.d.ts +1 -0
- package/dist/serialization/types/ActionResponseModel.js +1 -0
- package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
- package/dist/serialization/types/AppAuthSchemeAuthMode.js +1 -1
- package/dist/serialization/types/Identity.d.ts +19 -0
- package/dist/serialization/types/Identity.js +50 -0
- package/dist/serialization/types/IdentityType.d.ts +10 -0
- package/dist/serialization/types/IdentityType.js +41 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +65 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/serialization/resources/identities/client/index.d.ts +1 -0
- package/serialization/resources/identities/client/index.js +37 -0
- package/serialization/resources/identities/client/listIdentities.d.ts +11 -0
- package/serialization/resources/identities/client/listIdentities.js +42 -0
- package/serialization/resources/identities/index.d.ts +1 -0
- package/serialization/resources/identities/index.js +17 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/types/ActionParametersModel.d.ts +1 -0
- package/serialization/types/ActionParametersModel.js +1 -0
- package/serialization/types/ActionResponseModel.d.ts +1 -0
- package/serialization/types/ActionResponseModel.js +1 -0
- package/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
- package/serialization/types/AppAuthSchemeAuthMode.js +1 -1
- package/serialization/types/Identity.d.ts +19 -0
- package/serialization/types/Identity.js +50 -0
- package/serialization/types/IdentityType.d.ts +10 -0
- package/serialization/types/IdentityType.js +41 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/dist/api/types/index.js
CHANGED
|
@@ -100,6 +100,8 @@ __exportStar(require("./FunctionDefinitionOutput"), exports);
|
|
|
100
100
|
__exportStar(require("./FunctionTool"), exports);
|
|
101
101
|
__exportStar(require("./HttpValidationError"), exports);
|
|
102
102
|
__exportStar(require("./Health"), exports);
|
|
103
|
+
__exportStar(require("./Identity"), exports);
|
|
104
|
+
__exportStar(require("./IdentityType"), exports);
|
|
103
105
|
__exportStar(require("./ImageUrlDetail"), exports);
|
|
104
106
|
__exportStar(require("./ImageUrl"), exports);
|
|
105
107
|
__exportStar(require("./InitToolRule"), exports);
|
|
@@ -10,7 +10,7 @@ import { AgentType } from "../../../../types/AgentType";
|
|
|
10
10
|
import { LlmConfig } from "../../../../types/LlmConfig";
|
|
11
11
|
import { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
|
|
12
12
|
import { MessageCreate } from "../../../../types/MessageCreate";
|
|
13
|
-
export declare const CreateAgentRequest: core.serialization.Schema<serializers.CreateAgentRequest.Raw, Letta.CreateAgentRequest
|
|
13
|
+
export declare const CreateAgentRequest: core.serialization.Schema<serializers.CreateAgentRequest.Raw, Omit<Letta.CreateAgentRequest, "projectSlug">>;
|
|
14
14
|
export declare namespace CreateAgentRequest {
|
|
15
15
|
interface Raw {
|
|
16
16
|
name?: string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as listIdentities from "./listIdentities";
|
|
@@ -0,0 +1,37 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.listIdentities = void 0;
|
|
37
|
+
exports.listIdentities = __importStar(require("./listIdentities"));
|
|
@@ -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 { Identity } from "../../../types/Identity";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.identities.listIdentities.Response.Raw, Letta.Identity[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Identity.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 Identity_1 = require("../../../types/Identity");
|
|
42
|
+
exports.Response = core.serialization.list(Identity_1.Identity);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -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"), exports);
|
|
@@ -4,6 +4,7 @@ export * as templates from "./templates";
|
|
|
4
4
|
export * from "./templates/types";
|
|
5
5
|
export * as tools from "./tools";
|
|
6
6
|
export * as sources from "./sources";
|
|
7
|
+
export * as identities from "./identities";
|
|
7
8
|
export * as models from "./models";
|
|
8
9
|
export * as blocks from "./blocks";
|
|
9
10
|
export * as jobs from "./jobs";
|
|
@@ -36,13 +36,14 @@ 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.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.sources = exports.tools = exports.templates = exports.agents = void 0;
|
|
39
|
+
exports.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.tools = exports.templates = exports.agents = void 0;
|
|
40
40
|
exports.agents = __importStar(require("./agents"));
|
|
41
41
|
__exportStar(require("./agents/types"), exports);
|
|
42
42
|
exports.templates = __importStar(require("./templates"));
|
|
43
43
|
__exportStar(require("./templates/types"), exports);
|
|
44
44
|
exports.tools = __importStar(require("./tools"));
|
|
45
45
|
exports.sources = __importStar(require("./sources"));
|
|
46
|
+
exports.identities = __importStar(require("./identities"));
|
|
46
47
|
exports.models = __importStar(require("./models"));
|
|
47
48
|
exports.blocks = __importStar(require("./blocks"));
|
|
48
49
|
exports.jobs = __importStar(require("./jobs"));
|
|
@@ -43,4 +43,5 @@ exports.ActionParametersModel = core.serialization.object({
|
|
|
43
43
|
title: core.serialization.string(),
|
|
44
44
|
type: core.serialization.string(),
|
|
45
45
|
required: core.serialization.list(core.serialization.string()).optional(),
|
|
46
|
+
examples: core.serialization.list(core.serialization.unknown()).optional(),
|
|
46
47
|
});
|
|
@@ -43,4 +43,5 @@ exports.ActionResponseModel = core.serialization.object({
|
|
|
43
43
|
title: core.serialization.string(),
|
|
44
44
|
type: core.serialization.string(),
|
|
45
45
|
required: core.serialization.list(core.serialization.string()).optional(),
|
|
46
|
+
examples: core.serialization.list(core.serialization.unknown()).optional(),
|
|
46
47
|
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const AppAuthSchemeAuthMode: core.serialization.Schema<serializers.AppAuthSchemeAuthMode.Raw, Letta.AppAuthSchemeAuthMode>;
|
|
8
8
|
export declare namespace AppAuthSchemeAuthMode {
|
|
9
|
-
type Raw = "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BASIC_WITH_JWT";
|
|
9
|
+
type Raw = "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BASIC_WITH_JWT" | "NO_AUTH";
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.AppAuthSchemeAuthMode = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.AppAuthSchemeAuthMode = core.serialization.enum_(["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BEARER_TOKEN", "BASIC_WITH_JWT"]);
|
|
41
|
+
exports.AppAuthSchemeAuthMode = core.serialization.enum_(["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BEARER_TOKEN", "BASIC_WITH_JWT", "NO_AUTH"]);
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { IdentityType } from "./IdentityType";
|
|
8
|
+
import { AgentState } from "./AgentState";
|
|
9
|
+
export declare const Identity: core.serialization.ObjectSchema<serializers.Identity.Raw, Letta.Identity>;
|
|
10
|
+
export declare namespace Identity {
|
|
11
|
+
interface Raw {
|
|
12
|
+
id: string;
|
|
13
|
+
identifier_key: string;
|
|
14
|
+
name: string;
|
|
15
|
+
identity_type: IdentityType.Raw;
|
|
16
|
+
project_id?: string | null;
|
|
17
|
+
agents: AgentState.Raw[];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.Identity = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const IdentityType_1 = require("./IdentityType");
|
|
42
|
+
const AgentState_1 = require("./AgentState");
|
|
43
|
+
exports.Identity = core.serialization.object({
|
|
44
|
+
id: core.serialization.string(),
|
|
45
|
+
identifierKey: core.serialization.property("identifier_key", core.serialization.string()),
|
|
46
|
+
name: core.serialization.string(),
|
|
47
|
+
identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType),
|
|
48
|
+
projectId: core.serialization.property("project_id", core.serialization.string().optional()),
|
|
49
|
+
agents: core.serialization.list(AgentState_1.AgentState),
|
|
50
|
+
});
|
|
@@ -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 IdentityType: core.serialization.Schema<serializers.IdentityType.Raw, Letta.IdentityType>;
|
|
8
|
+
export declare namespace IdentityType {
|
|
9
|
+
type Raw = "org" | "user" | "other";
|
|
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.IdentityType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.IdentityType = core.serialization.enum_(["org", "user", "other"]);
|
|
@@ -84,6 +84,8 @@ export * from "./FunctionDefinitionOutput";
|
|
|
84
84
|
export * from "./FunctionTool";
|
|
85
85
|
export * from "./HttpValidationError";
|
|
86
86
|
export * from "./Health";
|
|
87
|
+
export * from "./Identity";
|
|
88
|
+
export * from "./IdentityType";
|
|
87
89
|
export * from "./ImageUrlDetail";
|
|
88
90
|
export * from "./ImageUrl";
|
|
89
91
|
export * from "./InitToolRule";
|
|
@@ -100,6 +100,8 @@ __exportStar(require("./FunctionDefinitionOutput"), exports);
|
|
|
100
100
|
__exportStar(require("./FunctionTool"), exports);
|
|
101
101
|
__exportStar(require("./HttpValidationError"), exports);
|
|
102
102
|
__exportStar(require("./Health"), exports);
|
|
103
|
+
__exportStar(require("./Identity"), exports);
|
|
104
|
+
__exportStar(require("./IdentityType"), exports);
|
|
103
105
|
__exportStar(require("./ImageUrlDetail"), exports);
|
|
104
106
|
__exportStar(require("./ImageUrl"), exports);
|
|
105
107
|
__exportStar(require("./InitToolRule"), 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.33";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1540,6 +1540,71 @@ await client.agents.search();
|
|
|
1540
1540
|
</dl>
|
|
1541
1541
|
</details>
|
|
1542
1542
|
|
|
1543
|
+
## Identities
|
|
1544
|
+
|
|
1545
|
+
<details><summary><code>client.identities.<a href="/src/api/resources/identities/client/Client.ts">listIdentities</a>({ ...params }) -> Letta.Identity[]</code></summary>
|
|
1546
|
+
<dl>
|
|
1547
|
+
<dd>
|
|
1548
|
+
|
|
1549
|
+
#### 📝 Description
|
|
1550
|
+
|
|
1551
|
+
<dl>
|
|
1552
|
+
<dd>
|
|
1553
|
+
|
|
1554
|
+
<dl>
|
|
1555
|
+
<dd>
|
|
1556
|
+
|
|
1557
|
+
Get a list of all identities in the database
|
|
1558
|
+
|
|
1559
|
+
</dd>
|
|
1560
|
+
</dl>
|
|
1561
|
+
</dd>
|
|
1562
|
+
</dl>
|
|
1563
|
+
|
|
1564
|
+
#### 🔌 Usage
|
|
1565
|
+
|
|
1566
|
+
<dl>
|
|
1567
|
+
<dd>
|
|
1568
|
+
|
|
1569
|
+
<dl>
|
|
1570
|
+
<dd>
|
|
1571
|
+
|
|
1572
|
+
```typescript
|
|
1573
|
+
await client.identities.listIdentities();
|
|
1574
|
+
```
|
|
1575
|
+
|
|
1576
|
+
</dd>
|
|
1577
|
+
</dl>
|
|
1578
|
+
</dd>
|
|
1579
|
+
</dl>
|
|
1580
|
+
|
|
1581
|
+
#### ⚙️ Parameters
|
|
1582
|
+
|
|
1583
|
+
<dl>
|
|
1584
|
+
<dd>
|
|
1585
|
+
|
|
1586
|
+
<dl>
|
|
1587
|
+
<dd>
|
|
1588
|
+
|
|
1589
|
+
**request:** `Letta.ListIdentitiesRequest`
|
|
1590
|
+
|
|
1591
|
+
</dd>
|
|
1592
|
+
</dl>
|
|
1593
|
+
|
|
1594
|
+
<dl>
|
|
1595
|
+
<dd>
|
|
1596
|
+
|
|
1597
|
+
**requestOptions:** `Identities.RequestOptions`
|
|
1598
|
+
|
|
1599
|
+
</dd>
|
|
1600
|
+
</dl>
|
|
1601
|
+
</dd>
|
|
1602
|
+
</dl>
|
|
1603
|
+
|
|
1604
|
+
</dd>
|
|
1605
|
+
</dl>
|
|
1606
|
+
</details>
|
|
1607
|
+
|
|
1543
1608
|
## Models
|
|
1544
1609
|
|
|
1545
1610
|
<details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">listLlms</a>() -> Letta.LlmConfig[]</code></summary>
|
|
@@ -10,7 +10,7 @@ import { AgentType } from "../../../../types/AgentType";
|
|
|
10
10
|
import { LlmConfig } from "../../../../types/LlmConfig";
|
|
11
11
|
import { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
|
|
12
12
|
import { MessageCreate } from "../../../../types/MessageCreate";
|
|
13
|
-
export declare const CreateAgentRequest: core.serialization.Schema<serializers.CreateAgentRequest.Raw, Letta.CreateAgentRequest
|
|
13
|
+
export declare const CreateAgentRequest: core.serialization.Schema<serializers.CreateAgentRequest.Raw, Omit<Letta.CreateAgentRequest, "projectSlug">>;
|
|
14
14
|
export declare namespace CreateAgentRequest {
|
|
15
15
|
interface Raw {
|
|
16
16
|
name?: string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as listIdentities from "./listIdentities";
|
|
@@ -0,0 +1,37 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.listIdentities = void 0;
|
|
37
|
+
exports.listIdentities = __importStar(require("./listIdentities"));
|
|
@@ -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 { Identity } from "../../../types/Identity";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.identities.listIdentities.Response.Raw, Letta.Identity[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Identity.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 Identity_1 = require("../../../types/Identity");
|
|
42
|
+
exports.Response = core.serialization.list(Identity_1.Identity);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -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"), exports);
|
|
@@ -4,6 +4,7 @@ export * as templates from "./templates";
|
|
|
4
4
|
export * from "./templates/types";
|
|
5
5
|
export * as tools from "./tools";
|
|
6
6
|
export * as sources from "./sources";
|
|
7
|
+
export * as identities from "./identities";
|
|
7
8
|
export * as models from "./models";
|
|
8
9
|
export * as blocks from "./blocks";
|
|
9
10
|
export * as jobs from "./jobs";
|
|
@@ -36,13 +36,14 @@ 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.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.sources = exports.tools = exports.templates = exports.agents = void 0;
|
|
39
|
+
exports.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.tools = exports.templates = exports.agents = void 0;
|
|
40
40
|
exports.agents = __importStar(require("./agents"));
|
|
41
41
|
__exportStar(require("./agents/types"), exports);
|
|
42
42
|
exports.templates = __importStar(require("./templates"));
|
|
43
43
|
__exportStar(require("./templates/types"), exports);
|
|
44
44
|
exports.tools = __importStar(require("./tools"));
|
|
45
45
|
exports.sources = __importStar(require("./sources"));
|
|
46
|
+
exports.identities = __importStar(require("./identities"));
|
|
46
47
|
exports.models = __importStar(require("./models"));
|
|
47
48
|
exports.blocks = __importStar(require("./blocks"));
|
|
48
49
|
exports.jobs = __importStar(require("./jobs"));
|
|
@@ -43,4 +43,5 @@ exports.ActionParametersModel = core.serialization.object({
|
|
|
43
43
|
title: core.serialization.string(),
|
|
44
44
|
type: core.serialization.string(),
|
|
45
45
|
required: core.serialization.list(core.serialization.string()).optional(),
|
|
46
|
+
examples: core.serialization.list(core.serialization.unknown()).optional(),
|
|
46
47
|
});
|
|
@@ -43,4 +43,5 @@ exports.ActionResponseModel = core.serialization.object({
|
|
|
43
43
|
title: core.serialization.string(),
|
|
44
44
|
type: core.serialization.string(),
|
|
45
45
|
required: core.serialization.list(core.serialization.string()).optional(),
|
|
46
|
+
examples: core.serialization.list(core.serialization.unknown()).optional(),
|
|
46
47
|
});
|