@letta-ai/letta-client 0.1.83 → 0.1.85
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.d.ts +1 -1
- package/api/resources/agents/client/Client.js +17 -11
- 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/blocks/client/Client.js +6 -6
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +4 -4
- package/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +1 -1
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.d.ts +25 -14
- package/api/resources/identities/client/Client.js +93 -21
- package/api/{types → resources/identities/client/requests}/IdentityCreate.d.ts +10 -1
- package/api/resources/identities/client/requests/IdentityUpsert.d.ts +29 -0
- package/api/resources/identities/client/requests/index.d.ts +2 -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/tools/client/Client.js +16 -16
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/DynamicManagerUpdate.d.ts +12 -0
- package/api/types/RoundRobinManagerUpdate.d.ts +8 -0
- package/api/types/SleeptimeManagerUpdate.d.ts +10 -0
- package/api/types/SupervisorManagerUpdate.d.ts +8 -0
- package/api/types/index.d.ts +4 -1
- package/api/types/index.js +4 -1
- package/dist/api/resources/agents/client/Client.d.ts +1 -1
- package/dist/api/resources/agents/client/Client.js +17 -11
- 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/blocks/client/Client.js +6 -6
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
- package/dist/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +1 -1
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.d.ts +25 -14
- package/dist/api/resources/identities/client/Client.js +93 -21
- package/dist/api/{types → resources/identities/client/requests}/IdentityCreate.d.ts +10 -1
- package/dist/api/resources/identities/client/requests/IdentityCreate.js +5 -0
- package/dist/api/resources/identities/client/requests/IdentityUpsert.d.ts +29 -0
- package/dist/api/resources/identities/client/requests/IdentityUpsert.js +5 -0
- package/dist/api/resources/identities/client/requests/index.d.ts +2 -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/tools/client/Client.js +16 -16
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/DynamicManagerUpdate.d.ts +12 -0
- package/dist/api/types/DynamicManagerUpdate.js +5 -0
- package/dist/api/types/RoundRobinManagerUpdate.d.ts +8 -0
- package/dist/api/types/RoundRobinManagerUpdate.js +5 -0
- package/dist/api/types/SleeptimeManagerUpdate.d.ts +10 -0
- package/dist/api/types/SleeptimeManagerUpdate.js +5 -0
- package/dist/api/types/SupervisorManagerUpdate.d.ts +8 -0
- package/dist/api/types/SupervisorManagerUpdate.js +5 -0
- package/dist/api/types/index.d.ts +4 -1
- package/dist/api/types/index.js +4 -1
- package/dist/serialization/resources/agents/client/exportAgentSerialized.d.ts +9 -0
- package/dist/serialization/resources/agents/client/exportAgentSerialized.js +41 -0
- package/dist/serialization/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/index.js +2 -1
- package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +5 -5
- package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.js +10 -5
- package/dist/serialization/resources/identities/client/index.d.ts +1 -0
- package/dist/serialization/resources/identities/client/index.js +2 -1
- package/dist/serialization/resources/identities/client/requests/IdentityCreate.d.ts +20 -0
- package/dist/serialization/{types → resources/identities/client/requests}/IdentityCreate.js +3 -3
- package/dist/serialization/resources/identities/client/requests/IdentityUpsert.d.ts +20 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpsert.js +51 -0
- package/dist/serialization/resources/identities/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/identities/client/requests/index.js +5 -1
- package/dist/serialization/resources/identities/client/upsertIdentityProperties.d.ts +11 -0
- package/dist/serialization/resources/identities/client/upsertIdentityProperties.js +42 -0
- package/dist/serialization/types/DynamicManagerUpdate.d.ts +15 -0
- package/dist/serialization/types/DynamicManagerUpdate.js +46 -0
- package/dist/serialization/types/RoundRobinManagerUpdate.d.ts +13 -0
- package/dist/serialization/types/RoundRobinManagerUpdate.js +44 -0
- package/dist/serialization/types/SleeptimeManagerUpdate.d.ts +14 -0
- package/dist/serialization/types/SleeptimeManagerUpdate.js +45 -0
- package/dist/serialization/types/SupervisorManagerUpdate.d.ts +13 -0
- package/dist/serialization/types/SupervisorManagerUpdate.js +44 -0
- package/dist/serialization/types/index.d.ts +4 -1
- package/dist/serialization/types/index.js +4 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +71 -13
- package/serialization/resources/agents/client/exportAgentSerialized.d.ts +9 -0
- package/serialization/resources/agents/client/exportAgentSerialized.js +41 -0
- package/serialization/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/agents/client/index.js +2 -1
- package/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +5 -5
- package/serialization/resources/groups/types/GroupUpdateManagerConfig.js +10 -5
- package/serialization/resources/identities/client/index.d.ts +1 -0
- package/serialization/resources/identities/client/index.js +2 -1
- package/serialization/resources/identities/client/requests/IdentityCreate.d.ts +20 -0
- package/serialization/{types → resources/identities/client/requests}/IdentityCreate.js +3 -3
- package/serialization/resources/identities/client/requests/IdentityUpsert.d.ts +20 -0
- package/serialization/resources/identities/client/requests/IdentityUpsert.js +51 -0
- package/serialization/resources/identities/client/requests/index.d.ts +2 -0
- package/serialization/resources/identities/client/requests/index.js +5 -1
- package/serialization/resources/identities/client/upsertIdentityProperties.d.ts +11 -0
- package/serialization/resources/identities/client/upsertIdentityProperties.js +42 -0
- package/serialization/types/DynamicManagerUpdate.d.ts +15 -0
- package/serialization/types/DynamicManagerUpdate.js +46 -0
- package/serialization/types/RoundRobinManagerUpdate.d.ts +13 -0
- package/serialization/types/RoundRobinManagerUpdate.js +44 -0
- package/serialization/types/SleeptimeManagerUpdate.d.ts +14 -0
- package/serialization/types/SleeptimeManagerUpdate.js +45 -0
- package/serialization/types/SupervisorManagerUpdate.d.ts +13 -0
- package/serialization/types/SupervisorManagerUpdate.js +44 -0
- package/serialization/types/index.d.ts +4 -1
- package/serialization/types/index.js +4 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/identities/client/requests/IdentitiesCreateRequest.d.ts +0 -18
- package/api/resources/identities/client/requests/IdentitiesUpsertRequest.d.ts +0 -18
- package/dist/api/resources/identities/client/requests/IdentitiesCreateRequest.d.ts +0 -18
- package/dist/api/resources/identities/client/requests/IdentitiesUpsertRequest.d.ts +0 -18
- package/dist/serialization/types/IdentityCreate.d.ts +0 -20
- package/serialization/types/IdentityCreate.d.ts +0 -20
- /package/api/{types → resources/identities/client/requests}/IdentityCreate.js +0 -0
- /package/api/resources/identities/client/requests/{IdentitiesCreateRequest.js → IdentityUpsert.js} +0 -0
- /package/api/{resources/identities/client/requests/IdentitiesUpsertRequest.js → types/DynamicManagerUpdate.js} +0 -0
- /package/{dist/api/resources/identities/client/requests/IdentitiesCreateRequest.js → api/types/RoundRobinManagerUpdate.js} +0 -0
- /package/{dist/api/resources/identities/client/requests/IdentitiesUpsertRequest.js → api/types/SleeptimeManagerUpdate.js} +0 -0
- /package/{dist/api/types/IdentityCreate.js → api/types/SupervisorManagerUpdate.js} +0 -0
package/reference.md
CHANGED
|
@@ -1544,7 +1544,7 @@ await client.agents.create();
|
|
|
1544
1544
|
</dl>
|
|
1545
1545
|
</details>
|
|
1546
1546
|
|
|
1547
|
-
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">exportAgentSerialized</a>(agentId) ->
|
|
1547
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">exportAgentSerialized</a>(agentId) -> string</code></summary>
|
|
1548
1548
|
<dl>
|
|
1549
1549
|
<dd>
|
|
1550
1550
|
|
|
@@ -2562,11 +2562,9 @@ await client.identities.list();
|
|
|
2562
2562
|
|
|
2563
2563
|
```typescript
|
|
2564
2564
|
await client.identities.create({
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
identityType: "org",
|
|
2569
|
-
},
|
|
2565
|
+
identifierKey: "identifier_key",
|
|
2566
|
+
name: "name",
|
|
2567
|
+
identityType: "org",
|
|
2570
2568
|
});
|
|
2571
2569
|
```
|
|
2572
2570
|
|
|
@@ -2583,7 +2581,7 @@ await client.identities.create({
|
|
|
2583
2581
|
<dl>
|
|
2584
2582
|
<dd>
|
|
2585
2583
|
|
|
2586
|
-
**request:** `Letta.
|
|
2584
|
+
**request:** `Letta.IdentityCreate`
|
|
2587
2585
|
|
|
2588
2586
|
</dd>
|
|
2589
2587
|
</dl>
|
|
@@ -2616,11 +2614,9 @@ await client.identities.create({
|
|
|
2616
2614
|
|
|
2617
2615
|
```typescript
|
|
2618
2616
|
await client.identities.upsert({
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
identityType: "org",
|
|
2623
|
-
},
|
|
2617
|
+
identifierKey: "identifier_key",
|
|
2618
|
+
name: "name",
|
|
2619
|
+
identityType: "org",
|
|
2624
2620
|
});
|
|
2625
2621
|
```
|
|
2626
2622
|
|
|
@@ -2637,7 +2633,7 @@ await client.identities.upsert({
|
|
|
2637
2633
|
<dl>
|
|
2638
2634
|
<dd>
|
|
2639
2635
|
|
|
2640
|
-
**request:** `Letta.
|
|
2636
|
+
**request:** `Letta.IdentityUpsert`
|
|
2641
2637
|
|
|
2642
2638
|
</dd>
|
|
2643
2639
|
</dl>
|
|
@@ -2823,6 +2819,68 @@ await client.identities.modify("identity_id");
|
|
|
2823
2819
|
</dl>
|
|
2824
2820
|
</details>
|
|
2825
2821
|
|
|
2822
|
+
<details><summary><code>client.identities.<a href="/src/api/resources/identities/client/Client.ts">upsertIdentityProperties</a>(identityId, { ...params }) -> unknown</code></summary>
|
|
2823
|
+
<dl>
|
|
2824
|
+
<dd>
|
|
2825
|
+
|
|
2826
|
+
#### 🔌 Usage
|
|
2827
|
+
|
|
2828
|
+
<dl>
|
|
2829
|
+
<dd>
|
|
2830
|
+
|
|
2831
|
+
<dl>
|
|
2832
|
+
<dd>
|
|
2833
|
+
|
|
2834
|
+
```typescript
|
|
2835
|
+
await client.identities.upsertIdentityProperties("identity_id", [
|
|
2836
|
+
{
|
|
2837
|
+
key: "key",
|
|
2838
|
+
value: "value",
|
|
2839
|
+
type: "string",
|
|
2840
|
+
},
|
|
2841
|
+
]);
|
|
2842
|
+
```
|
|
2843
|
+
|
|
2844
|
+
</dd>
|
|
2845
|
+
</dl>
|
|
2846
|
+
</dd>
|
|
2847
|
+
</dl>
|
|
2848
|
+
|
|
2849
|
+
#### ⚙️ Parameters
|
|
2850
|
+
|
|
2851
|
+
<dl>
|
|
2852
|
+
<dd>
|
|
2853
|
+
|
|
2854
|
+
<dl>
|
|
2855
|
+
<dd>
|
|
2856
|
+
|
|
2857
|
+
**identityId:** `string`
|
|
2858
|
+
|
|
2859
|
+
</dd>
|
|
2860
|
+
</dl>
|
|
2861
|
+
|
|
2862
|
+
<dl>
|
|
2863
|
+
<dd>
|
|
2864
|
+
|
|
2865
|
+
**request:** `Letta.IdentityProperty[]`
|
|
2866
|
+
|
|
2867
|
+
</dd>
|
|
2868
|
+
</dl>
|
|
2869
|
+
|
|
2870
|
+
<dl>
|
|
2871
|
+
<dd>
|
|
2872
|
+
|
|
2873
|
+
**requestOptions:** `Identities.RequestOptions`
|
|
2874
|
+
|
|
2875
|
+
</dd>
|
|
2876
|
+
</dl>
|
|
2877
|
+
</dd>
|
|
2878
|
+
</dl>
|
|
2879
|
+
|
|
2880
|
+
</dd>
|
|
2881
|
+
</dl>
|
|
2882
|
+
</details>
|
|
2883
|
+
|
|
2826
2884
|
## Models
|
|
2827
2885
|
|
|
2828
2886
|
<details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">listLlms</a>() -> Letta.LlmConfig[]</code></summary>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.agents.exportAgentSerialized.Response.Raw, string>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = string;
|
|
9
|
+
}
|
|
@@ -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.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.string();
|
|
@@ -36,7 +36,8 @@ 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.modifyPassage = exports.list = void 0;
|
|
39
|
+
exports.modifyPassage = exports.exportAgentSerialized = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
|
+
exports.exportAgentSerialized = __importStar(require("./exportAgentSerialized"));
|
|
41
42
|
exports.modifyPassage = __importStar(require("./modifyPassage"));
|
|
42
43
|
__exportStar(require("./requests"), exports);
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as Letta from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { DynamicManagerUpdate } from "../../../types/DynamicManagerUpdate";
|
|
8
|
+
import { RoundRobinManagerUpdate } from "../../../types/RoundRobinManagerUpdate";
|
|
9
|
+
import { SleeptimeManagerUpdate } from "../../../types/SleeptimeManagerUpdate";
|
|
10
|
+
import { SupervisorManagerUpdate } from "../../../types/SupervisorManagerUpdate";
|
|
11
11
|
export declare const GroupUpdateManagerConfig: core.serialization.Schema<serializers.GroupUpdateManagerConfig.Raw, Letta.GroupUpdateManagerConfig>;
|
|
12
12
|
export declare namespace GroupUpdateManagerConfig {
|
|
13
|
-
type Raw =
|
|
13
|
+
type Raw = DynamicManagerUpdate.Raw | RoundRobinManagerUpdate.Raw | SleeptimeManagerUpdate.Raw | SupervisorManagerUpdate.Raw;
|
|
14
14
|
}
|
|
@@ -38,8 +38,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.GroupUpdateManagerConfig = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
exports.GroupUpdateManagerConfig = core.serialization.undiscriminatedUnion([
|
|
41
|
+
const DynamicManagerUpdate_1 = require("../../../types/DynamicManagerUpdate");
|
|
42
|
+
const RoundRobinManagerUpdate_1 = require("../../../types/RoundRobinManagerUpdate");
|
|
43
|
+
const SleeptimeManagerUpdate_1 = require("../../../types/SleeptimeManagerUpdate");
|
|
44
|
+
const SupervisorManagerUpdate_1 = require("../../../types/SupervisorManagerUpdate");
|
|
45
|
+
exports.GroupUpdateManagerConfig = core.serialization.undiscriminatedUnion([
|
|
46
|
+
DynamicManagerUpdate_1.DynamicManagerUpdate,
|
|
47
|
+
RoundRobinManagerUpdate_1.RoundRobinManagerUpdate,
|
|
48
|
+
SleeptimeManagerUpdate_1.SleeptimeManagerUpdate,
|
|
49
|
+
SupervisorManagerUpdate_1.SupervisorManagerUpdate,
|
|
50
|
+
]);
|
|
@@ -36,6 +36,7 @@ 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.list = void 0;
|
|
39
|
+
exports.upsertIdentityProperties = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
|
+
exports.upsertIdentityProperties = __importStar(require("./upsertIdentityProperties"));
|
|
41
42
|
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
import { IdentityProperty } from "../../../../types/IdentityProperty";
|
|
9
|
+
export declare const IdentityCreate: core.serialization.Schema<serializers.IdentityCreate.Raw, Omit<Letta.IdentityCreate, "project">>;
|
|
10
|
+
export declare namespace IdentityCreate {
|
|
11
|
+
interface Raw {
|
|
12
|
+
identifier_key: string;
|
|
13
|
+
name: string;
|
|
14
|
+
identity_type: IdentityType.Raw;
|
|
15
|
+
project_id?: string | null;
|
|
16
|
+
agent_ids?: string[] | null;
|
|
17
|
+
block_ids?: string[] | null;
|
|
18
|
+
properties?: IdentityProperty.Raw[] | null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -37,9 +37,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.IdentityCreate = void 0;
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
const IdentityType_1 = require("
|
|
42
|
-
const IdentityProperty_1 = require("
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const IdentityType_1 = require("../../../../types/IdentityType");
|
|
42
|
+
const IdentityProperty_1 = require("../../../../types/IdentityProperty");
|
|
43
43
|
exports.IdentityCreate = core.serialization.object({
|
|
44
44
|
identifierKey: core.serialization.property("identifier_key", core.serialization.string()),
|
|
45
45
|
name: core.serialization.string(),
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
import { IdentityProperty } from "../../../../types/IdentityProperty";
|
|
9
|
+
export declare const IdentityUpsert: core.serialization.Schema<serializers.IdentityUpsert.Raw, Omit<Letta.IdentityUpsert, "project">>;
|
|
10
|
+
export declare namespace IdentityUpsert {
|
|
11
|
+
interface Raw {
|
|
12
|
+
identifier_key: string;
|
|
13
|
+
name: string;
|
|
14
|
+
identity_type: IdentityType.Raw;
|
|
15
|
+
project_id?: string | null;
|
|
16
|
+
agent_ids?: string[] | null;
|
|
17
|
+
block_ids?: string[] | null;
|
|
18
|
+
properties?: IdentityProperty.Raw[] | null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.IdentityUpsert = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const IdentityType_1 = require("../../../../types/IdentityType");
|
|
42
|
+
const IdentityProperty_1 = require("../../../../types/IdentityProperty");
|
|
43
|
+
exports.IdentityUpsert = core.serialization.object({
|
|
44
|
+
identifierKey: core.serialization.property("identifier_key", core.serialization.string()),
|
|
45
|
+
name: core.serialization.string(),
|
|
46
|
+
identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType),
|
|
47
|
+
projectId: core.serialization.property("project_id", core.serialization.string().optional()),
|
|
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()),
|
|
50
|
+
properties: core.serialization.list(IdentityProperty_1.IdentityProperty).optional(),
|
|
51
|
+
});
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IdentityUpdate = void 0;
|
|
3
|
+
exports.IdentityUpdate = exports.IdentityUpsert = exports.IdentityCreate = void 0;
|
|
4
|
+
var IdentityCreate_1 = require("./IdentityCreate");
|
|
5
|
+
Object.defineProperty(exports, "IdentityCreate", { enumerable: true, get: function () { return IdentityCreate_1.IdentityCreate; } });
|
|
6
|
+
var IdentityUpsert_1 = require("./IdentityUpsert");
|
|
7
|
+
Object.defineProperty(exports, "IdentityUpsert", { enumerable: true, get: function () { return IdentityUpsert_1.IdentityUpsert; } });
|
|
4
8
|
var IdentityUpdate_1 = require("./IdentityUpdate");
|
|
5
9
|
Object.defineProperty(exports, "IdentityUpdate", { enumerable: true, get: function () { return IdentityUpdate_1.IdentityUpdate; } });
|
|
@@ -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 { IdentityProperty } from "../../../types/IdentityProperty";
|
|
8
|
+
export declare const Request: core.serialization.Schema<serializers.identities.upsertIdentityProperties.Request.Raw, Letta.IdentityProperty[]>;
|
|
9
|
+
export declare namespace Request {
|
|
10
|
+
type Raw = IdentityProperty.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.Request = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const IdentityProperty_1 = require("../../../types/IdentityProperty");
|
|
42
|
+
exports.Request = core.serialization.list(IdentityProperty_1.IdentityProperty);
|
|
@@ -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 DynamicManagerUpdate: core.serialization.ObjectSchema<serializers.DynamicManagerUpdate.Raw, Letta.DynamicManagerUpdate>;
|
|
8
|
+
export declare namespace DynamicManagerUpdate {
|
|
9
|
+
interface Raw {
|
|
10
|
+
manager_type: "dynamic";
|
|
11
|
+
manager_agent_id?: string | null;
|
|
12
|
+
termination_token?: string | null;
|
|
13
|
+
max_turns?: number | 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.DynamicManagerUpdate = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.DynamicManagerUpdate = core.serialization.object({
|
|
42
|
+
managerType: core.serialization.property("manager_type", core.serialization.stringLiteral("dynamic")),
|
|
43
|
+
managerAgentId: core.serialization.property("manager_agent_id", core.serialization.string().optional()),
|
|
44
|
+
terminationToken: core.serialization.property("termination_token", core.serialization.string().optional()),
|
|
45
|
+
maxTurns: core.serialization.property("max_turns", core.serialization.number().optional()),
|
|
46
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 RoundRobinManagerUpdate: core.serialization.ObjectSchema<serializers.RoundRobinManagerUpdate.Raw, Letta.RoundRobinManagerUpdate>;
|
|
8
|
+
export declare namespace RoundRobinManagerUpdate {
|
|
9
|
+
interface Raw {
|
|
10
|
+
manager_type: "round_robin";
|
|
11
|
+
max_turns?: number | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.RoundRobinManagerUpdate = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.RoundRobinManagerUpdate = core.serialization.object({
|
|
42
|
+
managerType: core.serialization.property("manager_type", core.serialization.stringLiteral("round_robin")),
|
|
43
|
+
maxTurns: core.serialization.property("max_turns", core.serialization.number().optional()),
|
|
44
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 SleeptimeManagerUpdate: core.serialization.ObjectSchema<serializers.SleeptimeManagerUpdate.Raw, Letta.SleeptimeManagerUpdate>;
|
|
8
|
+
export declare namespace SleeptimeManagerUpdate {
|
|
9
|
+
interface Raw {
|
|
10
|
+
manager_type: "sleeptime";
|
|
11
|
+
manager_agent_id?: string | null;
|
|
12
|
+
sleeptime_agent_frequency?: number | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.SleeptimeManagerUpdate = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.SleeptimeManagerUpdate = core.serialization.object({
|
|
42
|
+
managerType: core.serialization.property("manager_type", core.serialization.stringLiteral("sleeptime")),
|
|
43
|
+
managerAgentId: core.serialization.property("manager_agent_id", core.serialization.string().optional()),
|
|
44
|
+
sleeptimeAgentFrequency: core.serialization.property("sleeptime_agent_frequency", core.serialization.number().optional()),
|
|
45
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 SupervisorManagerUpdate: core.serialization.ObjectSchema<serializers.SupervisorManagerUpdate.Raw, Letta.SupervisorManagerUpdate>;
|
|
8
|
+
export declare namespace SupervisorManagerUpdate {
|
|
9
|
+
interface Raw {
|
|
10
|
+
manager_type: "supervisor";
|
|
11
|
+
manager_agent_id?: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|