@letta-ai/letta-client 0.1.82 → 0.1.84
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 +2 -2
- package/api/resources/agents/client/Client.js +12 -18
- 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.d.ts +6 -14
- package/api/resources/groups/client/Client.js +28 -72
- 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 +2 -2
- package/dist/api/resources/agents/client/Client.js +12 -18
- 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.d.ts +6 -14
- package/dist/api/resources/groups/client/Client.js +28 -72
- 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/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 +79 -69
- 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
|
@@ -80,6 +80,7 @@ export * from "./ContinueToolRule";
|
|
|
80
80
|
export * from "./CoreMemoryBlockSchema";
|
|
81
81
|
export * from "./CreateBlock";
|
|
82
82
|
export * from "./DynamicManager";
|
|
83
|
+
export * from "./DynamicManagerUpdate";
|
|
83
84
|
export * from "./E2BSandboxConfig";
|
|
84
85
|
export * from "./EmbeddingConfigEmbeddingEndpointType";
|
|
85
86
|
export * from "./EmbeddingConfig";
|
|
@@ -97,7 +98,6 @@ export * from "./Health";
|
|
|
97
98
|
export * from "./HiddenReasoningMessageState";
|
|
98
99
|
export * from "./HiddenReasoningMessage";
|
|
99
100
|
export * from "./Identity";
|
|
100
|
-
export * from "./IdentityCreate";
|
|
101
101
|
export * from "./IdentityPropertyValue";
|
|
102
102
|
export * from "./IdentityProperty";
|
|
103
103
|
export * from "./IdentityPropertyType";
|
|
@@ -150,6 +150,7 @@ export * from "./ResponseFormatJsonObject";
|
|
|
150
150
|
export * from "./ResponseFormatJsonSchema";
|
|
151
151
|
export * from "./ResponseFormatText";
|
|
152
152
|
export * from "./RoundRobinManager";
|
|
153
|
+
export * from "./RoundRobinManagerUpdate";
|
|
153
154
|
export * from "./Run";
|
|
154
155
|
export * from "./SseServerConfig";
|
|
155
156
|
export * from "./SandboxConfig";
|
|
@@ -162,10 +163,12 @@ export * from "./SandboxEnvironmentVariableCreate";
|
|
|
162
163
|
export * from "./SandboxEnvironmentVariableUpdate";
|
|
163
164
|
export * from "./SandboxType";
|
|
164
165
|
export * from "./SleeptimeManager";
|
|
166
|
+
export * from "./SleeptimeManagerUpdate";
|
|
165
167
|
export * from "./Source";
|
|
166
168
|
export * from "./StdioServerConfig";
|
|
167
169
|
export * from "./Step";
|
|
168
170
|
export * from "./SupervisorManager";
|
|
171
|
+
export * from "./SupervisorManagerUpdate";
|
|
169
172
|
export * from "./SystemMessage";
|
|
170
173
|
export * from "./TagSchema";
|
|
171
174
|
export * from "./TerminalToolRule";
|
|
@@ -96,6 +96,7 @@ __exportStar(require("./ContinueToolRule"), exports);
|
|
|
96
96
|
__exportStar(require("./CoreMemoryBlockSchema"), exports);
|
|
97
97
|
__exportStar(require("./CreateBlock"), exports);
|
|
98
98
|
__exportStar(require("./DynamicManager"), exports);
|
|
99
|
+
__exportStar(require("./DynamicManagerUpdate"), exports);
|
|
99
100
|
__exportStar(require("./E2BSandboxConfig"), exports);
|
|
100
101
|
__exportStar(require("./EmbeddingConfigEmbeddingEndpointType"), exports);
|
|
101
102
|
__exportStar(require("./EmbeddingConfig"), exports);
|
|
@@ -113,7 +114,6 @@ __exportStar(require("./Health"), exports);
|
|
|
113
114
|
__exportStar(require("./HiddenReasoningMessageState"), exports);
|
|
114
115
|
__exportStar(require("./HiddenReasoningMessage"), exports);
|
|
115
116
|
__exportStar(require("./Identity"), exports);
|
|
116
|
-
__exportStar(require("./IdentityCreate"), exports);
|
|
117
117
|
__exportStar(require("./IdentityPropertyValue"), exports);
|
|
118
118
|
__exportStar(require("./IdentityProperty"), exports);
|
|
119
119
|
__exportStar(require("./IdentityPropertyType"), exports);
|
|
@@ -166,6 +166,7 @@ __exportStar(require("./ResponseFormatJsonObject"), exports);
|
|
|
166
166
|
__exportStar(require("./ResponseFormatJsonSchema"), exports);
|
|
167
167
|
__exportStar(require("./ResponseFormatText"), exports);
|
|
168
168
|
__exportStar(require("./RoundRobinManager"), exports);
|
|
169
|
+
__exportStar(require("./RoundRobinManagerUpdate"), exports);
|
|
169
170
|
__exportStar(require("./Run"), exports);
|
|
170
171
|
__exportStar(require("./SseServerConfig"), exports);
|
|
171
172
|
__exportStar(require("./SandboxConfig"), exports);
|
|
@@ -178,10 +179,12 @@ __exportStar(require("./SandboxEnvironmentVariableCreate"), exports);
|
|
|
178
179
|
__exportStar(require("./SandboxEnvironmentVariableUpdate"), exports);
|
|
179
180
|
__exportStar(require("./SandboxType"), exports);
|
|
180
181
|
__exportStar(require("./SleeptimeManager"), exports);
|
|
182
|
+
__exportStar(require("./SleeptimeManagerUpdate"), exports);
|
|
181
183
|
__exportStar(require("./Source"), exports);
|
|
182
184
|
__exportStar(require("./StdioServerConfig"), exports);
|
|
183
185
|
__exportStar(require("./Step"), exports);
|
|
184
186
|
__exportStar(require("./SupervisorManager"), exports);
|
|
187
|
+
__exportStar(require("./SupervisorManagerUpdate"), exports);
|
|
185
188
|
__exportStar(require("./SystemMessage"), exports);
|
|
186
189
|
__exportStar(require("./TagSchema"), exports);
|
|
187
190
|
__exportStar(require("./TerminalToolRule"), 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.84";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
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) -> unknown</code></summary>
|
|
1548
1548
|
<dl>
|
|
1549
1549
|
<dd>
|
|
1550
1550
|
|
|
@@ -1556,7 +1556,7 @@ await client.agents.create();
|
|
|
1556
1556
|
<dl>
|
|
1557
1557
|
<dd>
|
|
1558
1558
|
|
|
1559
|
-
Export the serialized JSON representation of an agent.
|
|
1559
|
+
Export the serialized JSON representation of an agent, formatted with indentation.
|
|
1560
1560
|
|
|
1561
1561
|
</dd>
|
|
1562
1562
|
</dl>
|
|
@@ -2286,7 +2286,7 @@ await client.groups.retrieve("group_id");
|
|
|
2286
2286
|
</dl>
|
|
2287
2287
|
</details>
|
|
2288
2288
|
|
|
2289
|
-
<details><summary><code>client.groups.<a href="/src/api/resources/groups/client/Client.ts">
|
|
2289
|
+
<details><summary><code>client.groups.<a href="/src/api/resources/groups/client/Client.ts">delete</a>(groupId) -> unknown</code></summary>
|
|
2290
2290
|
<dl>
|
|
2291
2291
|
<dd>
|
|
2292
2292
|
|
|
@@ -2298,7 +2298,7 @@ await client.groups.retrieve("group_id");
|
|
|
2298
2298
|
<dl>
|
|
2299
2299
|
<dd>
|
|
2300
2300
|
|
|
2301
|
-
|
|
2301
|
+
Delete a multi-agent group.
|
|
2302
2302
|
|
|
2303
2303
|
</dd>
|
|
2304
2304
|
</dl>
|
|
@@ -2314,7 +2314,7 @@ Create a new multi-agent group with the specified configuration.
|
|
|
2314
2314
|
<dd>
|
|
2315
2315
|
|
|
2316
2316
|
```typescript
|
|
2317
|
-
await client.groups.
|
|
2317
|
+
await client.groups.delete("group_id");
|
|
2318
2318
|
```
|
|
2319
2319
|
|
|
2320
2320
|
</dd>
|
|
@@ -2338,14 +2338,6 @@ await client.groups.modifyGroup("group_id");
|
|
|
2338
2338
|
<dl>
|
|
2339
2339
|
<dd>
|
|
2340
2340
|
|
|
2341
|
-
**request:** `Letta.GroupUpdate`
|
|
2342
|
-
|
|
2343
|
-
</dd>
|
|
2344
|
-
</dl>
|
|
2345
|
-
|
|
2346
|
-
<dl>
|
|
2347
|
-
<dd>
|
|
2348
|
-
|
|
2349
2341
|
**requestOptions:** `Groups.RequestOptions`
|
|
2350
2342
|
|
|
2351
2343
|
</dd>
|
|
@@ -2357,7 +2349,7 @@ await client.groups.modifyGroup("group_id");
|
|
|
2357
2349
|
</dl>
|
|
2358
2350
|
</details>
|
|
2359
2351
|
|
|
2360
|
-
<details><summary><code>client.groups.<a href="/src/api/resources/groups/client/Client.ts">
|
|
2352
|
+
<details><summary><code>client.groups.<a href="/src/api/resources/groups/client/Client.ts">modify</a>(groupId, { ...params }) -> Letta.Group</code></summary>
|
|
2361
2353
|
<dl>
|
|
2362
2354
|
<dd>
|
|
2363
2355
|
|
|
@@ -2369,7 +2361,7 @@ await client.groups.modifyGroup("group_id");
|
|
|
2369
2361
|
<dl>
|
|
2370
2362
|
<dd>
|
|
2371
2363
|
|
|
2372
|
-
|
|
2364
|
+
Create a new multi-agent group with the specified configuration.
|
|
2373
2365
|
|
|
2374
2366
|
</dd>
|
|
2375
2367
|
</dl>
|
|
@@ -2385,7 +2377,7 @@ Delete a multi-agent group.
|
|
|
2385
2377
|
<dd>
|
|
2386
2378
|
|
|
2387
2379
|
```typescript
|
|
2388
|
-
await client.groups.
|
|
2380
|
+
await client.groups.modify("group_id");
|
|
2389
2381
|
```
|
|
2390
2382
|
|
|
2391
2383
|
</dd>
|
|
@@ -2409,47 +2401,7 @@ await client.groups.delete("group_id");
|
|
|
2409
2401
|
<dl>
|
|
2410
2402
|
<dd>
|
|
2411
2403
|
|
|
2412
|
-
**
|
|
2413
|
-
|
|
2414
|
-
</dd>
|
|
2415
|
-
</dl>
|
|
2416
|
-
</dd>
|
|
2417
|
-
</dl>
|
|
2418
|
-
|
|
2419
|
-
</dd>
|
|
2420
|
-
</dl>
|
|
2421
|
-
</details>
|
|
2422
|
-
|
|
2423
|
-
<details><summary><code>client.groups.<a href="/src/api/resources/groups/client/Client.ts">modify</a>(groupId) -> void</code></summary>
|
|
2424
|
-
<dl>
|
|
2425
|
-
<dd>
|
|
2426
|
-
|
|
2427
|
-
#### 🔌 Usage
|
|
2428
|
-
|
|
2429
|
-
<dl>
|
|
2430
|
-
<dd>
|
|
2431
|
-
|
|
2432
|
-
<dl>
|
|
2433
|
-
<dd>
|
|
2434
|
-
|
|
2435
|
-
```typescript
|
|
2436
|
-
await client.groups.modify("group_id");
|
|
2437
|
-
```
|
|
2438
|
-
|
|
2439
|
-
</dd>
|
|
2440
|
-
</dl>
|
|
2441
|
-
</dd>
|
|
2442
|
-
</dl>
|
|
2443
|
-
|
|
2444
|
-
#### ⚙️ Parameters
|
|
2445
|
-
|
|
2446
|
-
<dl>
|
|
2447
|
-
<dd>
|
|
2448
|
-
|
|
2449
|
-
<dl>
|
|
2450
|
-
<dd>
|
|
2451
|
-
|
|
2452
|
-
**groupId:** `string`
|
|
2404
|
+
**request:** `Letta.GroupUpdate`
|
|
2453
2405
|
|
|
2454
2406
|
</dd>
|
|
2455
2407
|
</dl>
|
|
@@ -2610,11 +2562,9 @@ await client.identities.list();
|
|
|
2610
2562
|
|
|
2611
2563
|
```typescript
|
|
2612
2564
|
await client.identities.create({
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
identityType: "org",
|
|
2617
|
-
},
|
|
2565
|
+
identifierKey: "identifier_key",
|
|
2566
|
+
name: "name",
|
|
2567
|
+
identityType: "org",
|
|
2618
2568
|
});
|
|
2619
2569
|
```
|
|
2620
2570
|
|
|
@@ -2631,7 +2581,7 @@ await client.identities.create({
|
|
|
2631
2581
|
<dl>
|
|
2632
2582
|
<dd>
|
|
2633
2583
|
|
|
2634
|
-
**request:** `Letta.
|
|
2584
|
+
**request:** `Letta.IdentityCreate`
|
|
2635
2585
|
|
|
2636
2586
|
</dd>
|
|
2637
2587
|
</dl>
|
|
@@ -2664,11 +2614,9 @@ await client.identities.create({
|
|
|
2664
2614
|
|
|
2665
2615
|
```typescript
|
|
2666
2616
|
await client.identities.upsert({
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
identityType: "org",
|
|
2671
|
-
},
|
|
2617
|
+
identifierKey: "identifier_key",
|
|
2618
|
+
name: "name",
|
|
2619
|
+
identityType: "org",
|
|
2672
2620
|
});
|
|
2673
2621
|
```
|
|
2674
2622
|
|
|
@@ -2685,7 +2633,7 @@ await client.identities.upsert({
|
|
|
2685
2633
|
<dl>
|
|
2686
2634
|
<dd>
|
|
2687
2635
|
|
|
2688
|
-
**request:** `Letta.
|
|
2636
|
+
**request:** `Letta.IdentityUpsert`
|
|
2689
2637
|
|
|
2690
2638
|
</dd>
|
|
2691
2639
|
</dl>
|
|
@@ -2871,6 +2819,68 @@ await client.identities.modify("identity_id");
|
|
|
2871
2819
|
</dl>
|
|
2872
2820
|
</details>
|
|
2873
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
|
+
|
|
2874
2884
|
## Models
|
|
2875
2885
|
|
|
2876
2886
|
<details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">listLlms</a>() -> Letta.LlmConfig[]</code></summary>
|
|
@@ -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
|
+
}
|