@letta-ai/letta-client 0.1.32 → 0.1.34
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 +109 -0
- package/api/resources/identities/client/Client.js +484 -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/CreateIdentityRequest.d.ts +18 -0
- package/api/resources/identities/client/requests/CreateIdentityRequest.js +5 -0
- package/api/resources/identities/client/requests/IdentityUpdate.d.ts +16 -0
- package/api/resources/identities/client/requests/IdentityUpdate.js +5 -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/UpsertIdentityRequest.d.ts +18 -0
- package/api/resources/identities/client/requests/UpsertIdentityRequest.js +5 -0
- package/api/resources/identities/client/requests/index.d.ts +4 -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/IdentityCreate.d.ts +16 -0
- package/api/types/IdentityCreate.js +5 -0
- package/api/types/IdentityType.d.ts +12 -0
- package/api/types/IdentityType.js +11 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -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 +109 -0
- package/dist/api/resources/identities/client/Client.js +484 -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/CreateIdentityRequest.d.ts +18 -0
- package/dist/api/resources/identities/client/requests/CreateIdentityRequest.js +5 -0
- package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +16 -0
- package/dist/api/resources/identities/client/requests/IdentityUpdate.js +5 -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/UpsertIdentityRequest.d.ts +18 -0
- package/dist/api/resources/identities/client/requests/UpsertIdentityRequest.js +5 -0
- package/dist/api/resources/identities/client/requests/index.d.ts +4 -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/IdentityCreate.d.ts +16 -0
- package/dist/api/types/IdentityCreate.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 +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/dist/serialization/resources/identities/client/index.d.ts +2 -0
- package/dist/serialization/resources/identities/client/index.js +41 -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/client/requests/IdentityUpdate.d.ts +15 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +46 -0
- package/dist/serialization/resources/identities/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/identities/client/requests/index.js +5 -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 +2 -0
- package/dist/serialization/resources/index.js +3 -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/IdentityCreate.d.ts +17 -0
- package/dist/serialization/types/IdentityCreate.js +48 -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 +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +340 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/serialization/resources/identities/client/index.d.ts +2 -0
- package/serialization/resources/identities/client/index.js +41 -0
- package/serialization/resources/identities/client/listIdentities.d.ts +11 -0
- package/serialization/resources/identities/client/listIdentities.js +42 -0
- package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +15 -0
- package/serialization/resources/identities/client/requests/IdentityUpdate.js +46 -0
- package/serialization/resources/identities/client/requests/index.d.ts +1 -0
- package/serialization/resources/identities/client/requests/index.js +5 -0
- package/serialization/resources/identities/index.d.ts +1 -0
- package/serialization/resources/identities/index.js +17 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -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/IdentityCreate.d.ts +17 -0
- package/serialization/types/IdentityCreate.js +48 -0
- package/serialization/types/IdentityType.d.ts +10 -0
- package/serialization/types/IdentityType.js +41 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IdentityType = void 0;
|
|
7
|
+
exports.IdentityType = {
|
|
8
|
+
Org: "org",
|
|
9
|
+
User: "user",
|
|
10
|
+
Other: "other",
|
|
11
|
+
};
|
|
@@ -84,6 +84,9 @@ 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 "./IdentityCreate";
|
|
89
|
+
export * from "./IdentityType";
|
|
87
90
|
export * from "./ImageUrlDetail";
|
|
88
91
|
export * from "./ImageUrl";
|
|
89
92
|
export * from "./InitToolRule";
|
package/dist/api/types/index.js
CHANGED
|
@@ -100,6 +100,9 @@ __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("./IdentityCreate"), exports);
|
|
105
|
+
__exportStar(require("./IdentityType"), exports);
|
|
103
106
|
__exportStar(require("./ImageUrlDetail"), exports);
|
|
104
107
|
__exportStar(require("./ImageUrl"), exports);
|
|
105
108
|
__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,41 @@
|
|
|
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
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.listIdentities = void 0;
|
|
40
|
+
exports.listIdentities = __importStar(require("./listIdentities"));
|
|
41
|
+
__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 { 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,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 { IdentityType } from "../../../../types/IdentityType";
|
|
8
|
+
export declare const IdentityUpdate: core.serialization.Schema<serializers.IdentityUpdate.Raw, Letta.IdentityUpdate>;
|
|
9
|
+
export declare namespace IdentityUpdate {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name?: string | null;
|
|
12
|
+
identity_type?: IdentityType.Raw | null;
|
|
13
|
+
agent_ids?: string[] | null;
|
|
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.IdentityUpdate = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const IdentityType_1 = require("../../../../types/IdentityType");
|
|
42
|
+
exports.IdentityUpdate = core.serialization.object({
|
|
43
|
+
name: core.serialization.string().optional(),
|
|
44
|
+
identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType.optional()),
|
|
45
|
+
agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
46
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IdentityUpdate } from "./IdentityUpdate";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentityUpdate = void 0;
|
|
4
|
+
var IdentityUpdate_1 = require("./IdentityUpdate");
|
|
5
|
+
Object.defineProperty(exports, "IdentityUpdate", { enumerable: true, get: function () { return IdentityUpdate_1.IdentityUpdate; } });
|
|
@@ -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";
|
|
@@ -14,5 +15,6 @@ export * as tag from "./tag";
|
|
|
14
15
|
export * from "./tools/client/requests";
|
|
15
16
|
export * from "./sources/client/requests";
|
|
16
17
|
export * from "./agents/client/requests";
|
|
18
|
+
export * from "./identities/client/requests";
|
|
17
19
|
export * from "./providers/client/requests";
|
|
18
20
|
export * from "./templates/client/requests";
|
|
@@ -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"));
|
|
@@ -53,5 +54,6 @@ exports.tag = __importStar(require("./tag"));
|
|
|
53
54
|
__exportStar(require("./tools/client/requests"), exports);
|
|
54
55
|
__exportStar(require("./sources/client/requests"), exports);
|
|
55
56
|
__exportStar(require("./agents/client/requests"), exports);
|
|
57
|
+
__exportStar(require("./identities/client/requests"), exports);
|
|
56
58
|
__exportStar(require("./providers/client/requests"), exports);
|
|
57
59
|
__exportStar(require("./templates/client/requests"), exports);
|
|
@@ -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,17 @@
|
|
|
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
|
+
export declare const IdentityCreate: core.serialization.ObjectSchema<serializers.IdentityCreate.Raw, Letta.IdentityCreate>;
|
|
9
|
+
export declare namespace IdentityCreate {
|
|
10
|
+
interface Raw {
|
|
11
|
+
identifier_key: string;
|
|
12
|
+
name: string;
|
|
13
|
+
identity_type: IdentityType.Raw;
|
|
14
|
+
project_id?: string | null;
|
|
15
|
+
agent_ids?: string[] | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.IdentityCreate = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const IdentityType_1 = require("./IdentityType");
|
|
42
|
+
exports.IdentityCreate = core.serialization.object({
|
|
43
|
+
identifierKey: core.serialization.property("identifier_key", core.serialization.string()),
|
|
44
|
+
name: core.serialization.string(),
|
|
45
|
+
identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType),
|
|
46
|
+
projectId: core.serialization.property("project_id", core.serialization.string().optional()),
|
|
47
|
+
agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
48
|
+
});
|
|
@@ -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,9 @@ 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 "./IdentityCreate";
|
|
89
|
+
export * from "./IdentityType";
|
|
87
90
|
export * from "./ImageUrlDetail";
|
|
88
91
|
export * from "./ImageUrl";
|
|
89
92
|
export * from "./InitToolRule";
|
|
@@ -100,6 +100,9 @@ __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("./IdentityCreate"), exports);
|
|
105
|
+
__exportStar(require("./IdentityType"), exports);
|
|
103
106
|
__exportStar(require("./ImageUrlDetail"), exports);
|
|
104
107
|
__exportStar(require("./ImageUrl"), exports);
|
|
105
108
|
__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.34";
|
package/dist/version.js
CHANGED