@getzep/zep-cloud 3.9.0 → 3.10.0

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.
Files changed (70) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/user/client/Client.d.ts +47 -0
  3. package/dist/cjs/api/resources/user/client/Client.js +266 -0
  4. package/dist/cjs/api/resources/user/client/requests/AddUserInstructionsRequest.d.ts +19 -0
  5. package/dist/cjs/api/resources/user/client/requests/AddUserInstructionsRequest.js +5 -0
  6. package/dist/cjs/api/resources/user/client/requests/DeleteUserInstructionsRequest.d.ts +13 -0
  7. package/dist/cjs/api/resources/user/client/requests/DeleteUserInstructionsRequest.js +5 -0
  8. package/dist/cjs/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.d.ts +13 -0
  9. package/dist/cjs/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.js +5 -0
  10. package/dist/cjs/api/resources/user/client/requests/index.d.ts +3 -0
  11. package/dist/cjs/api/types/ComparisonOperator.d.ts +3 -1
  12. package/dist/cjs/api/types/ComparisonOperator.js +2 -0
  13. package/dist/cjs/api/types/ListUserInstructionsResponse.d.ts +7 -0
  14. package/dist/cjs/api/types/ListUserInstructionsResponse.js +5 -0
  15. package/dist/cjs/api/types/UserInstruction.d.ts +7 -0
  16. package/dist/cjs/api/types/UserInstruction.js +5 -0
  17. package/dist/cjs/api/types/index.d.ts +2 -0
  18. package/dist/cjs/api/types/index.js +2 -0
  19. package/dist/cjs/serialization/resources/user/client/requests/AddUserInstructionsRequest.d.ts +14 -0
  20. package/dist/cjs/serialization/resources/user/client/requests/AddUserInstructionsRequest.js +45 -0
  21. package/dist/cjs/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.d.ts +13 -0
  22. package/dist/cjs/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.js +44 -0
  23. package/dist/cjs/serialization/resources/user/client/requests/index.d.ts +2 -0
  24. package/dist/cjs/serialization/resources/user/client/requests/index.js +5 -1
  25. package/dist/cjs/serialization/types/ComparisonOperator.d.ts +1 -1
  26. package/dist/cjs/serialization/types/ComparisonOperator.js +1 -1
  27. package/dist/cjs/serialization/types/ListUserInstructionsResponse.d.ts +13 -0
  28. package/dist/cjs/serialization/types/ListUserInstructionsResponse.js +44 -0
  29. package/dist/cjs/serialization/types/UserInstruction.d.ts +13 -0
  30. package/dist/cjs/serialization/types/UserInstruction.js +44 -0
  31. package/dist/cjs/serialization/types/index.d.ts +2 -0
  32. package/dist/cjs/serialization/types/index.js +2 -0
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/esm/Client.mjs +2 -2
  36. package/dist/esm/api/resources/user/client/Client.d.mts +47 -0
  37. package/dist/esm/api/resources/user/client/Client.mjs +266 -0
  38. package/dist/esm/api/resources/user/client/requests/AddUserInstructionsRequest.d.mts +19 -0
  39. package/dist/esm/api/resources/user/client/requests/AddUserInstructionsRequest.mjs +4 -0
  40. package/dist/esm/api/resources/user/client/requests/DeleteUserInstructionsRequest.d.mts +13 -0
  41. package/dist/esm/api/resources/user/client/requests/DeleteUserInstructionsRequest.mjs +4 -0
  42. package/dist/esm/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.d.mts +13 -0
  43. package/dist/esm/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.mjs +4 -0
  44. package/dist/esm/api/resources/user/client/requests/index.d.mts +3 -0
  45. package/dist/esm/api/types/ComparisonOperator.d.mts +3 -1
  46. package/dist/esm/api/types/ComparisonOperator.mjs +2 -0
  47. package/dist/esm/api/types/ListUserInstructionsResponse.d.mts +7 -0
  48. package/dist/esm/api/types/ListUserInstructionsResponse.mjs +4 -0
  49. package/dist/esm/api/types/UserInstruction.d.mts +7 -0
  50. package/dist/esm/api/types/UserInstruction.mjs +4 -0
  51. package/dist/esm/api/types/index.d.mts +2 -0
  52. package/dist/esm/api/types/index.mjs +2 -0
  53. package/dist/esm/serialization/resources/user/client/requests/AddUserInstructionsRequest.d.mts +14 -0
  54. package/dist/esm/serialization/resources/user/client/requests/AddUserInstructionsRequest.mjs +9 -0
  55. package/dist/esm/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.d.mts +13 -0
  56. package/dist/esm/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.mjs +8 -0
  57. package/dist/esm/serialization/resources/user/client/requests/index.d.mts +2 -0
  58. package/dist/esm/serialization/resources/user/client/requests/index.mjs +2 -0
  59. package/dist/esm/serialization/types/ComparisonOperator.d.mts +1 -1
  60. package/dist/esm/serialization/types/ComparisonOperator.mjs +1 -1
  61. package/dist/esm/serialization/types/ListUserInstructionsResponse.d.mts +13 -0
  62. package/dist/esm/serialization/types/ListUserInstructionsResponse.mjs +8 -0
  63. package/dist/esm/serialization/types/UserInstruction.d.mts +13 -0
  64. package/dist/esm/serialization/types/UserInstruction.mjs +8 -0
  65. package/dist/esm/serialization/types/index.d.mts +2 -0
  66. package/dist/esm/serialization/types/index.mjs +2 -0
  67. package/dist/esm/version.d.mts +1 -1
  68. package/dist/esm/version.mjs +1 -1
  69. package/package.json +1 -1
  70. package/reference.md +196 -0
@@ -18,6 +18,7 @@ export * from "./EpisodeResponse.mjs";
18
18
  export * from "./GraphListResponse.mjs";
19
19
  export * from "./GraphNodesRequest.mjs";
20
20
  export * from "./GraphSearchResults.mjs";
21
+ export * from "./ListUserInstructionsResponse.mjs";
21
22
  export * from "./ProjectInfo.mjs";
22
23
  export * from "./ProjectInfoResponse.mjs";
23
24
  export * from "./RoleType.mjs";
@@ -28,6 +29,7 @@ export * from "./ThreadListResponse.mjs";
28
29
  export * from "./Message.mjs";
29
30
  export * from "./MessageListResponse.mjs";
30
31
  export * from "./User.mjs";
32
+ export * from "./UserInstruction.mjs";
31
33
  export * from "./UserListResponse.mjs";
32
34
  export * from "./UserNodeResponse.mjs";
33
35
  export * from "./AddTripleResponse.mjs";
@@ -18,6 +18,7 @@ export * from "./EpisodeResponse.mjs";
18
18
  export * from "./GraphListResponse.mjs";
19
19
  export * from "./GraphNodesRequest.mjs";
20
20
  export * from "./GraphSearchResults.mjs";
21
+ export * from "./ListUserInstructionsResponse.mjs";
21
22
  export * from "./ProjectInfo.mjs";
22
23
  export * from "./ProjectInfoResponse.mjs";
23
24
  export * from "./RoleType.mjs";
@@ -28,6 +29,7 @@ export * from "./ThreadListResponse.mjs";
28
29
  export * from "./Message.mjs";
29
30
  export * from "./MessageListResponse.mjs";
30
31
  export * from "./User.mjs";
32
+ export * from "./UserInstruction.mjs";
31
33
  export * from "./UserListResponse.mjs";
32
34
  export * from "./UserNodeResponse.mjs";
33
35
  export * from "./AddTripleResponse.mjs";
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index.mjs";
5
+ import * as Zep from "../../../../../api/index.mjs";
6
+ import * as core from "../../../../../core/index.mjs";
7
+ import { UserInstruction } from "../../../../types/UserInstruction.mjs";
8
+ export declare const AddUserInstructionsRequest: core.serialization.Schema<serializers.AddUserInstructionsRequest.Raw, Zep.AddUserInstructionsRequest>;
9
+ export declare namespace AddUserInstructionsRequest {
10
+ interface Raw {
11
+ instructions: UserInstruction.Raw[];
12
+ user_ids?: string[] | null;
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../core/index.mjs";
5
+ import { UserInstruction } from "../../../../types/UserInstruction.mjs";
6
+ export const AddUserInstructionsRequest = core.serialization.object({
7
+ instructions: core.serialization.list(UserInstruction),
8
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string()).optional()),
9
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index.mjs";
5
+ import * as Zep from "../../../../../api/index.mjs";
6
+ import * as core from "../../../../../core/index.mjs";
7
+ export declare const DeleteUserInstructionsRequest: core.serialization.Schema<serializers.DeleteUserInstructionsRequest.Raw, Zep.DeleteUserInstructionsRequest>;
8
+ export declare namespace DeleteUserInstructionsRequest {
9
+ interface Raw {
10
+ instruction_names?: string[] | null;
11
+ user_ids?: string[] | null;
12
+ }
13
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../core/index.mjs";
5
+ export const DeleteUserInstructionsRequest = core.serialization.object({
6
+ instructionNames: core.serialization.property("instruction_names", core.serialization.list(core.serialization.string()).optional()),
7
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string()).optional()),
8
+ });
@@ -1,2 +1,4 @@
1
+ export { AddUserInstructionsRequest } from "./AddUserInstructionsRequest.mjs";
2
+ export { DeleteUserInstructionsRequest } from "./DeleteUserInstructionsRequest.mjs";
1
3
  export { CreateUserRequest } from "./CreateUserRequest.mjs";
2
4
  export { UpdateUserRequest } from "./UpdateUserRequest.mjs";
@@ -1,2 +1,4 @@
1
+ export { AddUserInstructionsRequest } from "./AddUserInstructionsRequest.mjs";
2
+ export { DeleteUserInstructionsRequest } from "./DeleteUserInstructionsRequest.mjs";
1
3
  export { CreateUserRequest } from "./CreateUserRequest.mjs";
2
4
  export { UpdateUserRequest } from "./UpdateUserRequest.mjs";
@@ -6,5 +6,5 @@ import * as Zep from "../../api/index.mjs";
6
6
  import * as core from "../../core/index.mjs";
7
7
  export declare const ComparisonOperator: core.serialization.Schema<serializers.ComparisonOperator.Raw, Zep.ComparisonOperator>;
8
8
  export declare namespace ComparisonOperator {
9
- type Raw = "=" | "<>" | ">" | "<" | ">=" | "<=";
9
+ type Raw = "=" | "<>" | ">" | "<" | ">=" | "<=" | "IS NULL" | "IS NOT NULL";
10
10
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../core/index.mjs";
5
- export const ComparisonOperator = core.serialization.enum_(["=", "<>", ">", "<", ">=", "<="]);
5
+ export const ComparisonOperator = core.serialization.enum_(["=", "<>", ">", "<", ">=", "<=", "IS NULL", "IS NOT NULL"]);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.mjs";
5
+ import * as Zep from "../../api/index.mjs";
6
+ import * as core from "../../core/index.mjs";
7
+ import { UserInstruction } from "./UserInstruction.mjs";
8
+ export declare const ListUserInstructionsResponse: core.serialization.ObjectSchema<serializers.ListUserInstructionsResponse.Raw, Zep.ListUserInstructionsResponse>;
9
+ export declare namespace ListUserInstructionsResponse {
10
+ interface Raw {
11
+ instructions?: UserInstruction.Raw[] | null;
12
+ }
13
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../core/index.mjs";
5
+ import { UserInstruction } from "./UserInstruction.mjs";
6
+ export const ListUserInstructionsResponse = core.serialization.object({
7
+ instructions: core.serialization.list(UserInstruction).optional(),
8
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.mjs";
5
+ import * as Zep from "../../api/index.mjs";
6
+ import * as core from "../../core/index.mjs";
7
+ export declare const UserInstruction: core.serialization.ObjectSchema<serializers.UserInstruction.Raw, Zep.UserInstruction>;
8
+ export declare namespace UserInstruction {
9
+ interface Raw {
10
+ name: string;
11
+ text: string;
12
+ }
13
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../core/index.mjs";
5
+ export const UserInstruction = core.serialization.object({
6
+ name: core.serialization.string(),
7
+ text: core.serialization.string(),
8
+ });
@@ -18,6 +18,7 @@ export * from "./EpisodeResponse.mjs";
18
18
  export * from "./GraphListResponse.mjs";
19
19
  export * from "./GraphNodesRequest.mjs";
20
20
  export * from "./GraphSearchResults.mjs";
21
+ export * from "./ListUserInstructionsResponse.mjs";
21
22
  export * from "./ProjectInfo.mjs";
22
23
  export * from "./ProjectInfoResponse.mjs";
23
24
  export * from "./RoleType.mjs";
@@ -28,6 +29,7 @@ export * from "./ThreadListResponse.mjs";
28
29
  export * from "./Message.mjs";
29
30
  export * from "./MessageListResponse.mjs";
30
31
  export * from "./User.mjs";
32
+ export * from "./UserInstruction.mjs";
31
33
  export * from "./UserListResponse.mjs";
32
34
  export * from "./UserNodeResponse.mjs";
33
35
  export * from "./AddTripleResponse.mjs";
@@ -18,6 +18,7 @@ export * from "./EpisodeResponse.mjs";
18
18
  export * from "./GraphListResponse.mjs";
19
19
  export * from "./GraphNodesRequest.mjs";
20
20
  export * from "./GraphSearchResults.mjs";
21
+ export * from "./ListUserInstructionsResponse.mjs";
21
22
  export * from "./ProjectInfo.mjs";
22
23
  export * from "./ProjectInfoResponse.mjs";
23
24
  export * from "./RoleType.mjs";
@@ -28,6 +29,7 @@ export * from "./ThreadListResponse.mjs";
28
29
  export * from "./Message.mjs";
29
30
  export * from "./MessageListResponse.mjs";
30
31
  export * from "./User.mjs";
32
+ export * from "./UserInstruction.mjs";
31
33
  export * from "./UserListResponse.mjs";
32
34
  export * from "./UserNodeResponse.mjs";
33
35
  export * from "./AddTripleResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.9.0";
1
+ export declare const SDK_VERSION = "3.10.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "3.9.0";
1
+ export const SDK_VERSION = "3.10.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getzep/zep-cloud",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "private": false,
5
5
  "repository": "https://github.com/getzep/zep-js",
6
6
  "description": "Zep: Fast, scalable building blocks for production LLM apps",
package/reference.md CHANGED
@@ -1335,6 +1335,202 @@ await client.thread.addMessagesBatch("threadId", {
1335
1335
 
1336
1336
  ## User
1337
1337
 
1338
+ <details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">listUserSummaryInstructions</a>({ ...params }) -> Zep.ListUserInstructionsResponse</code></summary>
1339
+ <dl>
1340
+ <dd>
1341
+
1342
+ #### 📝 Description
1343
+
1344
+ <dl>
1345
+ <dd>
1346
+
1347
+ <dl>
1348
+ <dd>
1349
+
1350
+ Lists all user summary instructions for a project, user.
1351
+
1352
+ </dd>
1353
+ </dl>
1354
+ </dd>
1355
+ </dl>
1356
+
1357
+ #### 🔌 Usage
1358
+
1359
+ <dl>
1360
+ <dd>
1361
+
1362
+ <dl>
1363
+ <dd>
1364
+
1365
+ ```typescript
1366
+ await client.user.listUserSummaryInstructions();
1367
+ ```
1368
+
1369
+ </dd>
1370
+ </dl>
1371
+ </dd>
1372
+ </dl>
1373
+
1374
+ #### ⚙️ Parameters
1375
+
1376
+ <dl>
1377
+ <dd>
1378
+
1379
+ <dl>
1380
+ <dd>
1381
+
1382
+ **request:** `Zep.UserListUserSummaryInstructionsRequest`
1383
+
1384
+ </dd>
1385
+ </dl>
1386
+
1387
+ <dl>
1388
+ <dd>
1389
+
1390
+ **requestOptions:** `User.RequestOptions`
1391
+
1392
+ </dd>
1393
+ </dl>
1394
+ </dd>
1395
+ </dl>
1396
+
1397
+ </dd>
1398
+ </dl>
1399
+ </details>
1400
+
1401
+ <details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">addUserSummaryInstructions</a>({ ...params }) -> Zep.SuccessResponse</code></summary>
1402
+ <dl>
1403
+ <dd>
1404
+
1405
+ #### 📝 Description
1406
+
1407
+ <dl>
1408
+ <dd>
1409
+
1410
+ <dl>
1411
+ <dd>
1412
+
1413
+ Adds new summary instructions for users graphs without removing existing ones. If user_ids is empty, adds to project-wide default instructions.
1414
+
1415
+ </dd>
1416
+ </dl>
1417
+ </dd>
1418
+ </dl>
1419
+
1420
+ #### 🔌 Usage
1421
+
1422
+ <dl>
1423
+ <dd>
1424
+
1425
+ <dl>
1426
+ <dd>
1427
+
1428
+ ```typescript
1429
+ await client.user.addUserSummaryInstructions({
1430
+ instructions: [
1431
+ {
1432
+ name: "name",
1433
+ text: "text",
1434
+ },
1435
+ ],
1436
+ });
1437
+ ```
1438
+
1439
+ </dd>
1440
+ </dl>
1441
+ </dd>
1442
+ </dl>
1443
+
1444
+ #### ⚙️ Parameters
1445
+
1446
+ <dl>
1447
+ <dd>
1448
+
1449
+ <dl>
1450
+ <dd>
1451
+
1452
+ **request:** `Zep.AddUserInstructionsRequest`
1453
+
1454
+ </dd>
1455
+ </dl>
1456
+
1457
+ <dl>
1458
+ <dd>
1459
+
1460
+ **requestOptions:** `User.RequestOptions`
1461
+
1462
+ </dd>
1463
+ </dl>
1464
+ </dd>
1465
+ </dl>
1466
+
1467
+ </dd>
1468
+ </dl>
1469
+ </details>
1470
+
1471
+ <details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">deleteUserSummaryInstructions</a>({ ...params }) -> Zep.SuccessResponse</code></summary>
1472
+ <dl>
1473
+ <dd>
1474
+
1475
+ #### 📝 Description
1476
+
1477
+ <dl>
1478
+ <dd>
1479
+
1480
+ <dl>
1481
+ <dd>
1482
+
1483
+ Deletes user summary/instructions for users or project wide defaults.
1484
+
1485
+ </dd>
1486
+ </dl>
1487
+ </dd>
1488
+ </dl>
1489
+
1490
+ #### 🔌 Usage
1491
+
1492
+ <dl>
1493
+ <dd>
1494
+
1495
+ <dl>
1496
+ <dd>
1497
+
1498
+ ```typescript
1499
+ await client.user.deleteUserSummaryInstructions();
1500
+ ```
1501
+
1502
+ </dd>
1503
+ </dl>
1504
+ </dd>
1505
+ </dl>
1506
+
1507
+ #### ⚙️ Parameters
1508
+
1509
+ <dl>
1510
+ <dd>
1511
+
1512
+ <dl>
1513
+ <dd>
1514
+
1515
+ **request:** `Zep.DeleteUserInstructionsRequest`
1516
+
1517
+ </dd>
1518
+ </dl>
1519
+
1520
+ <dl>
1521
+ <dd>
1522
+
1523
+ **requestOptions:** `User.RequestOptions`
1524
+
1525
+ </dd>
1526
+ </dl>
1527
+ </dd>
1528
+ </dl>
1529
+
1530
+ </dd>
1531
+ </dl>
1532
+ </details>
1533
+
1338
1534
  <details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">add</a>({ ...params }) -> Zep.User</code></summary>
1339
1535
  <dl>
1340
1536
  <dd>