@getzep/zep-cloud 3.7.0 → 3.9.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 (74) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +11 -6
  3. package/dist/cjs/api/resources/index.d.ts +1 -0
  4. package/dist/cjs/api/resources/index.js +2 -1
  5. package/dist/cjs/api/resources/project/client/Client.d.ts +48 -0
  6. package/dist/cjs/api/resources/project/client/Client.js +156 -0
  7. package/dist/cjs/api/resources/project/client/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/project/client/index.js +2 -0
  9. package/dist/cjs/api/resources/project/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/project/index.js +17 -0
  11. package/dist/cjs/api/resources/user/client/requests/CreateUserRequest.d.ts +2 -0
  12. package/dist/cjs/api/resources/user/client/requests/UpdateUserRequest.d.ts +2 -0
  13. package/dist/cjs/api/types/ProjectInfo.d.ts +9 -0
  14. package/dist/cjs/api/types/ProjectInfo.js +5 -0
  15. package/dist/cjs/api/types/ProjectInfoResponse.d.ts +7 -0
  16. package/dist/cjs/api/types/ProjectInfoResponse.js +5 -0
  17. package/dist/cjs/api/types/SearchFilters.d.ts +4 -0
  18. package/dist/cjs/api/types/User.d.ts +1 -0
  19. package/dist/cjs/api/types/index.d.ts +2 -0
  20. package/dist/cjs/api/types/index.js +2 -0
  21. package/dist/cjs/serialization/resources/user/client/requests/CreateUserRequest.d.ts +1 -0
  22. package/dist/cjs/serialization/resources/user/client/requests/CreateUserRequest.js +1 -0
  23. package/dist/cjs/serialization/resources/user/client/requests/UpdateUserRequest.d.ts +1 -0
  24. package/dist/cjs/serialization/resources/user/client/requests/UpdateUserRequest.js +1 -0
  25. package/dist/cjs/serialization/types/ProjectInfo.d.ts +15 -0
  26. package/dist/cjs/serialization/types/ProjectInfo.js +46 -0
  27. package/dist/cjs/serialization/types/ProjectInfoResponse.d.ts +13 -0
  28. package/dist/cjs/serialization/types/ProjectInfoResponse.js +44 -0
  29. package/dist/cjs/serialization/types/SearchFilters.d.ts +2 -0
  30. package/dist/cjs/serialization/types/SearchFilters.js +2 -0
  31. package/dist/cjs/serialization/types/User.d.ts +1 -0
  32. package/dist/cjs/serialization/types/User.js +1 -0
  33. package/dist/cjs/serialization/types/index.d.ts +2 -0
  34. package/dist/cjs/serialization/types/index.js +2 -0
  35. package/dist/cjs/version.d.ts +1 -1
  36. package/dist/cjs/version.js +1 -1
  37. package/dist/esm/Client.d.mts +3 -0
  38. package/dist/esm/Client.mjs +7 -2
  39. package/dist/esm/api/resources/index.d.mts +1 -0
  40. package/dist/esm/api/resources/index.mjs +1 -0
  41. package/dist/esm/api/resources/project/client/Client.d.mts +48 -0
  42. package/dist/esm/api/resources/project/client/Client.mjs +119 -0
  43. package/dist/esm/api/resources/project/client/index.d.mts +1 -0
  44. package/dist/esm/api/resources/project/client/index.mjs +1 -0
  45. package/dist/esm/api/resources/project/index.d.mts +1 -0
  46. package/dist/esm/api/resources/project/index.mjs +1 -0
  47. package/dist/esm/api/resources/user/client/requests/CreateUserRequest.d.mts +2 -0
  48. package/dist/esm/api/resources/user/client/requests/UpdateUserRequest.d.mts +2 -0
  49. package/dist/esm/api/types/ProjectInfo.d.mts +9 -0
  50. package/dist/esm/api/types/ProjectInfo.mjs +4 -0
  51. package/dist/esm/api/types/ProjectInfoResponse.d.mts +7 -0
  52. package/dist/esm/api/types/ProjectInfoResponse.mjs +4 -0
  53. package/dist/esm/api/types/SearchFilters.d.mts +4 -0
  54. package/dist/esm/api/types/User.d.mts +1 -0
  55. package/dist/esm/api/types/index.d.mts +2 -0
  56. package/dist/esm/api/types/index.mjs +2 -0
  57. package/dist/esm/serialization/resources/user/client/requests/CreateUserRequest.d.mts +1 -0
  58. package/dist/esm/serialization/resources/user/client/requests/CreateUserRequest.mjs +1 -0
  59. package/dist/esm/serialization/resources/user/client/requests/UpdateUserRequest.d.mts +1 -0
  60. package/dist/esm/serialization/resources/user/client/requests/UpdateUserRequest.mjs +1 -0
  61. package/dist/esm/serialization/types/ProjectInfo.d.mts +15 -0
  62. package/dist/esm/serialization/types/ProjectInfo.mjs +10 -0
  63. package/dist/esm/serialization/types/ProjectInfoResponse.d.mts +13 -0
  64. package/dist/esm/serialization/types/ProjectInfoResponse.mjs +8 -0
  65. package/dist/esm/serialization/types/SearchFilters.d.mts +2 -0
  66. package/dist/esm/serialization/types/SearchFilters.mjs +2 -0
  67. package/dist/esm/serialization/types/User.d.mts +1 -0
  68. package/dist/esm/serialization/types/User.mjs +1 -0
  69. package/dist/esm/serialization/types/index.d.mts +2 -0
  70. package/dist/esm/serialization/types/index.mjs +2 -0
  71. package/dist/esm/version.d.mts +1 -1
  72. package/dist/esm/version.mjs +1 -1
  73. package/package.json +1 -1
  74. package/reference.md +57 -0
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.7.0";
4
+ exports.SDK_VERSION = "3.9.0";
@@ -4,6 +4,7 @@
4
4
  import * as environments from "./environments.mjs";
5
5
  import * as core from "./core/index.mjs";
6
6
  import { Graph } from "./api/resources/graph/client/Client.mjs";
7
+ import { Project } from "./api/resources/project/client/Client.mjs";
7
8
  import { Thread } from "./api/resources/thread/client/Client.mjs";
8
9
  import { User } from "./api/resources/user/client/Client.mjs";
9
10
  export declare namespace ZepClient {
@@ -30,10 +31,12 @@ export declare namespace ZepClient {
30
31
  export declare class ZepClient {
31
32
  protected readonly _options: ZepClient.Options;
32
33
  protected _graph: Graph | undefined;
34
+ protected _project: Project | undefined;
33
35
  protected _thread: Thread | undefined;
34
36
  protected _user: User | undefined;
35
37
  constructor(_options?: ZepClient.Options);
36
38
  get graph(): Graph;
39
+ get project(): Project;
37
40
  get thread(): Thread;
38
41
  get user(): User;
39
42
  }
@@ -4,6 +4,7 @@
4
4
  import * as core from "./core/index.mjs";
5
5
  import { mergeHeaders } from "./core/headers.mjs";
6
6
  import { Graph } from "./api/resources/graph/client/Client.mjs";
7
+ import { Project } from "./api/resources/project/client/Client.mjs";
7
8
  import { Thread } from "./api/resources/thread/client/Client.mjs";
8
9
  import { User } from "./api/resources/user/client/Client.mjs";
9
10
  export class ZepClient {
@@ -11,8 +12,8 @@ export class ZepClient {
11
12
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
12
13
  "X-Fern-Language": "JavaScript",
13
14
  "X-Fern-SDK-Name": "zep-cloud",
14
- "X-Fern-SDK-Version": "3.7.0",
15
- "User-Agent": "zep-cloud/3.7.0",
15
+ "X-Fern-SDK-Version": "3.9.0",
16
+ "User-Agent": "zep-cloud/3.9.0",
16
17
  "X-Fern-Runtime": core.RUNTIME.type,
17
18
  "X-Fern-Runtime-Version": core.RUNTIME.version,
18
19
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -21,6 +22,10 @@ export class ZepClient {
21
22
  var _a;
22
23
  return ((_a = this._graph) !== null && _a !== void 0 ? _a : (this._graph = new Graph(this._options)));
23
24
  }
25
+ get project() {
26
+ var _a;
27
+ return ((_a = this._project) !== null && _a !== void 0 ? _a : (this._project = new Project(this._options)));
28
+ }
24
29
  get thread() {
25
30
  var _a;
26
31
  return ((_a = this._thread) !== null && _a !== void 0 ? _a : (this._thread = new Thread(this._options)));
@@ -1,6 +1,7 @@
1
1
  export * as thread from "./thread/index.mjs";
2
2
  export * from "./thread/types/index.mjs";
3
3
  export * as graph from "./graph/index.mjs";
4
+ export * as project from "./project/index.mjs";
4
5
  export * as user from "./user/index.mjs";
5
6
  export * from "./graph/client/requests/index.mjs";
6
7
  export * from "./thread/client/requests/index.mjs";
@@ -1,6 +1,7 @@
1
1
  export * as thread from "./thread/index.mjs";
2
2
  export * from "./thread/types/index.mjs";
3
3
  export * as graph from "./graph/index.mjs";
4
+ export * as project from "./project/index.mjs";
4
5
  export * as user from "./user/index.mjs";
5
6
  export * from "./graph/client/requests/index.mjs";
6
7
  export * from "./thread/client/requests/index.mjs";
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments.mjs";
5
+ import * as core from "../../../../core/index.mjs";
6
+ import * as Zep from "../../../index.mjs";
7
+ export declare namespace Project {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ZepEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ apiKey?: core.Supplier<string | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional headers to include in the request. */
25
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ }
27
+ }
28
+ export declare class Project {
29
+ protected readonly _options: Project.Options;
30
+ constructor(_options?: Project.Options);
31
+ /**
32
+ * Retrieve project info based on the provided api key.
33
+ *
34
+ * @param {Project.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link Zep.BadRequestError}
37
+ * @throws {@link Zep.NotFoundError}
38
+ * @throws {@link Zep.InternalServerError}
39
+ *
40
+ * @example
41
+ * await client.project.get()
42
+ */
43
+ get(requestOptions?: Project.RequestOptions): core.HttpResponsePromise<Zep.ProjectInfoResponse>;
44
+ private __get;
45
+ protected _getCustomAuthorizationHeaders(): Promise<{
46
+ Authorization: string;
47
+ }>;
48
+ }
@@ -0,0 +1,119 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../environments.mjs";
14
+ import * as core from "../../../../core/index.mjs";
15
+ import * as Zep from "../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
17
+ import * as serializers from "../../../../serialization/index.mjs";
18
+ import * as errors from "../../../../errors/index.mjs";
19
+ export class Project {
20
+ constructor(_options = {}) {
21
+ this._options = _options;
22
+ }
23
+ /**
24
+ * Retrieve project info based on the provided api key.
25
+ *
26
+ * @param {Project.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Zep.BadRequestError}
29
+ * @throws {@link Zep.NotFoundError}
30
+ * @throws {@link Zep.InternalServerError}
31
+ *
32
+ * @example
33
+ * await client.project.get()
34
+ */
35
+ get(requestOptions) {
36
+ return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
37
+ }
38
+ __get(requestOptions) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ var _a, _b, _c, _d;
41
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
42
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, "projects/info"),
43
+ method: "GET",
44
+ headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
45
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
46
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
47
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
48
+ });
49
+ if (_response.ok) {
50
+ return {
51
+ data: serializers.ProjectInfoResponse.parseOrThrow(_response.body, {
52
+ unrecognizedObjectKeys: "passthrough",
53
+ allowUnrecognizedUnionMembers: true,
54
+ allowUnrecognizedEnumValues: true,
55
+ skipValidation: true,
56
+ breadcrumbsPrefix: ["response"],
57
+ }),
58
+ rawResponse: _response.rawResponse,
59
+ };
60
+ }
61
+ if (_response.error.reason === "status-code") {
62
+ switch (_response.error.statusCode) {
63
+ case 400:
64
+ throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
65
+ unrecognizedObjectKeys: "passthrough",
66
+ allowUnrecognizedUnionMembers: true,
67
+ allowUnrecognizedEnumValues: true,
68
+ skipValidation: true,
69
+ breadcrumbsPrefix: ["response"],
70
+ }), _response.rawResponse);
71
+ case 404:
72
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
73
+ unrecognizedObjectKeys: "passthrough",
74
+ allowUnrecognizedUnionMembers: true,
75
+ allowUnrecognizedEnumValues: true,
76
+ skipValidation: true,
77
+ breadcrumbsPrefix: ["response"],
78
+ }), _response.rawResponse);
79
+ case 500:
80
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
81
+ unrecognizedObjectKeys: "passthrough",
82
+ allowUnrecognizedUnionMembers: true,
83
+ allowUnrecognizedEnumValues: true,
84
+ skipValidation: true,
85
+ breadcrumbsPrefix: ["response"],
86
+ }), _response.rawResponse);
87
+ default:
88
+ throw new errors.ZepError({
89
+ statusCode: _response.error.statusCode,
90
+ body: _response.error.body,
91
+ rawResponse: _response.rawResponse,
92
+ });
93
+ }
94
+ }
95
+ switch (_response.error.reason) {
96
+ case "non-json":
97
+ throw new errors.ZepError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.rawBody,
100
+ rawResponse: _response.rawResponse,
101
+ });
102
+ case "timeout":
103
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /projects/info.");
104
+ case "unknown":
105
+ throw new errors.ZepError({
106
+ message: _response.error.errorMessage,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
110
+ });
111
+ }
112
+ _getCustomAuthorizationHeaders() {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ var _a;
115
+ const apiKeyValue = (_a = (yield core.Supplier.get(this._options.apiKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["ZEP_API_KEY"];
116
+ return { Authorization: `Api-Key ${apiKeyValue}` };
117
+ });
118
+ }
119
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -9,6 +9,8 @@ import * as Zep from "../../../../index.mjs";
9
9
  * }
10
10
  */
11
11
  export interface CreateUserRequest {
12
+ /** When true, disables the use of default/fallback ontology for the user's graph. */
13
+ disableDefaultOntology?: boolean;
12
14
  /** The email address of the user. */
13
15
  email?: string;
14
16
  /** Optional instruction to use for fact rating. */
@@ -7,6 +7,8 @@ import * as Zep from "../../../../index.mjs";
7
7
  * {}
8
8
  */
9
9
  export interface UpdateUserRequest {
10
+ /** When true, disables the use of default/fallback ontology for the user's graph. */
11
+ disableDefaultOntology?: boolean;
10
12
  /** The email address of the user. */
11
13
  email?: string;
12
14
  /** Optional instruction to use for fact rating. */
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ProjectInfo {
5
+ createdAt?: string;
6
+ description?: string;
7
+ name?: string;
8
+ uuid?: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index.mjs";
5
+ export interface ProjectInfoResponse {
6
+ project?: Zep.ProjectInfo;
7
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -13,6 +13,10 @@ export interface SearchFilters {
13
13
  createdAt?: Zep.DateFilter[][];
14
14
  /** List of edge types to filter on */
15
15
  edgeTypes?: string[];
16
+ /** List of edge types to exclude from results */
17
+ excludeEdgeTypes?: string[];
18
+ /** List of node labels to exclude from results */
19
+ excludeNodeLabels?: string[];
16
20
  /**
17
21
  * 2D array of date filters for the expired_at field.
18
22
  * The outer array elements are combined with OR logic.
@@ -5,6 +5,7 @@ import * as Zep from "../index.mjs";
5
5
  export interface User {
6
6
  createdAt?: string;
7
7
  deletedAt?: string;
8
+ disableDefaultOntology?: boolean;
8
9
  email?: string;
9
10
  factRatingInstruction?: Zep.ModelsFactRatingInstruction;
10
11
  firstName?: string;
@@ -18,6 +18,8 @@ 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 "./ProjectInfo.mjs";
22
+ export * from "./ProjectInfoResponse.mjs";
21
23
  export * from "./RoleType.mjs";
22
24
  export * from "./SuccessResponse.mjs";
23
25
  export * from "./Thread.mjs";
@@ -18,6 +18,8 @@ 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 "./ProjectInfo.mjs";
22
+ export * from "./ProjectInfoResponse.mjs";
21
23
  export * from "./RoleType.mjs";
22
24
  export * from "./SuccessResponse.mjs";
23
25
  export * from "./Thread.mjs";
@@ -8,6 +8,7 @@ import { FactRatingInstruction } from "../../../../types/FactRatingInstruction.m
8
8
  export declare const CreateUserRequest: core.serialization.Schema<serializers.CreateUserRequest.Raw, Zep.CreateUserRequest>;
9
9
  export declare namespace CreateUserRequest {
10
10
  interface Raw {
11
+ disable_default_ontology?: boolean | null;
11
12
  email?: string | null;
12
13
  fact_rating_instruction?: FactRatingInstruction.Raw | null;
13
14
  first_name?: string | null;
@@ -4,6 +4,7 @@
4
4
  import * as core from "../../../../../core/index.mjs";
5
5
  import { FactRatingInstruction } from "../../../../types/FactRatingInstruction.mjs";
6
6
  export const CreateUserRequest = core.serialization.object({
7
+ disableDefaultOntology: core.serialization.property("disable_default_ontology", core.serialization.boolean().optional()),
7
8
  email: core.serialization.string().optional(),
8
9
  factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction.optional()),
9
10
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
@@ -8,6 +8,7 @@ import { FactRatingInstruction } from "../../../../types/FactRatingInstruction.m
8
8
  export declare const UpdateUserRequest: core.serialization.Schema<serializers.UpdateUserRequest.Raw, Zep.UpdateUserRequest>;
9
9
  export declare namespace UpdateUserRequest {
10
10
  interface Raw {
11
+ disable_default_ontology?: boolean | null;
11
12
  email?: string | null;
12
13
  fact_rating_instruction?: FactRatingInstruction.Raw | null;
13
14
  first_name?: string | null;
@@ -4,6 +4,7 @@
4
4
  import * as core from "../../../../../core/index.mjs";
5
5
  import { FactRatingInstruction } from "../../../../types/FactRatingInstruction.mjs";
6
6
  export const UpdateUserRequest = core.serialization.object({
7
+ disableDefaultOntology: core.serialization.property("disable_default_ontology", core.serialization.boolean().optional()),
7
8
  email: core.serialization.string().optional(),
8
9
  factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction.optional()),
9
10
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
@@ -0,0 +1,15 @@
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 ProjectInfo: core.serialization.ObjectSchema<serializers.ProjectInfo.Raw, Zep.ProjectInfo>;
8
+ export declare namespace ProjectInfo {
9
+ interface Raw {
10
+ created_at?: string | null;
11
+ description?: string | null;
12
+ name?: string | null;
13
+ uuid?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,10 @@
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 ProjectInfo = core.serialization.object({
6
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
7
+ description: core.serialization.string().optional(),
8
+ name: core.serialization.string().optional(),
9
+ uuid: core.serialization.string().optional(),
10
+ });
@@ -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 { ProjectInfo } from "./ProjectInfo.mjs";
8
+ export declare const ProjectInfoResponse: core.serialization.ObjectSchema<serializers.ProjectInfoResponse.Raw, Zep.ProjectInfoResponse>;
9
+ export declare namespace ProjectInfoResponse {
10
+ interface Raw {
11
+ project?: ProjectInfo.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 { ProjectInfo } from "./ProjectInfo.mjs";
6
+ export const ProjectInfoResponse = core.serialization.object({
7
+ project: ProjectInfo.optional(),
8
+ });
@@ -10,6 +10,8 @@ export declare namespace SearchFilters {
10
10
  interface Raw {
11
11
  created_at?: DateFilter.Raw[][] | null;
12
12
  edge_types?: string[] | null;
13
+ exclude_edge_types?: string[] | null;
14
+ exclude_node_labels?: string[] | null;
13
15
  expired_at?: DateFilter.Raw[][] | null;
14
16
  invalid_at?: DateFilter.Raw[][] | null;
15
17
  node_labels?: string[] | null;
@@ -6,6 +6,8 @@ import { DateFilter } from "./DateFilter.mjs";
6
6
  export const SearchFilters = core.serialization.object({
7
7
  createdAt: core.serialization.property("created_at", core.serialization.list(core.serialization.list(DateFilter)).optional()),
8
8
  edgeTypes: core.serialization.property("edge_types", core.serialization.list(core.serialization.string()).optional()),
9
+ excludeEdgeTypes: core.serialization.property("exclude_edge_types", core.serialization.list(core.serialization.string()).optional()),
10
+ excludeNodeLabels: core.serialization.property("exclude_node_labels", core.serialization.list(core.serialization.string()).optional()),
9
11
  expiredAt: core.serialization.property("expired_at", core.serialization.list(core.serialization.list(DateFilter)).optional()),
10
12
  invalidAt: core.serialization.property("invalid_at", core.serialization.list(core.serialization.list(DateFilter)).optional()),
11
13
  nodeLabels: core.serialization.property("node_labels", core.serialization.list(core.serialization.string()).optional()),
@@ -10,6 +10,7 @@ export declare namespace User {
10
10
  interface Raw {
11
11
  created_at?: string | null;
12
12
  deleted_at?: string | null;
13
+ disable_default_ontology?: boolean | null;
13
14
  email?: string | null;
14
15
  fact_rating_instruction?: ModelsFactRatingInstruction.Raw | null;
15
16
  first_name?: string | null;
@@ -6,6 +6,7 @@ import { ModelsFactRatingInstruction } from "./ModelsFactRatingInstruction.mjs";
6
6
  export const User = core.serialization.object({
7
7
  createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
8
8
  deletedAt: core.serialization.property("deleted_at", core.serialization.string().optional()),
9
+ disableDefaultOntology: core.serialization.property("disable_default_ontology", core.serialization.boolean().optional()),
9
10
  email: core.serialization.string().optional(),
10
11
  factRatingInstruction: core.serialization.property("fact_rating_instruction", ModelsFactRatingInstruction.optional()),
11
12
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
@@ -18,6 +18,8 @@ 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 "./ProjectInfo.mjs";
22
+ export * from "./ProjectInfoResponse.mjs";
21
23
  export * from "./RoleType.mjs";
22
24
  export * from "./SuccessResponse.mjs";
23
25
  export * from "./Thread.mjs";
@@ -18,6 +18,8 @@ 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 "./ProjectInfo.mjs";
22
+ export * from "./ProjectInfoResponse.mjs";
21
23
  export * from "./RoleType.mjs";
22
24
  export * from "./SuccessResponse.mjs";
23
25
  export * from "./Thread.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.7.0";
1
+ export declare const SDK_VERSION = "3.9.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "3.7.0";
1
+ export const SDK_VERSION = "3.9.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getzep/zep-cloud",
3
- "version": "3.7.0",
3
+ "version": "3.9.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
@@ -784,6 +784,63 @@ await client.graph.update("graphId");
784
784
  </dl>
785
785
  </details>
786
786
 
787
+ ## Project
788
+
789
+ <details><summary><code>client.project.<a href="/src/api/resources/project/client/Client.ts">get</a>() -> Zep.ProjectInfoResponse</code></summary>
790
+ <dl>
791
+ <dd>
792
+
793
+ #### 📝 Description
794
+
795
+ <dl>
796
+ <dd>
797
+
798
+ <dl>
799
+ <dd>
800
+
801
+ Retrieve project info based on the provided api key.
802
+
803
+ </dd>
804
+ </dl>
805
+ </dd>
806
+ </dl>
807
+
808
+ #### 🔌 Usage
809
+
810
+ <dl>
811
+ <dd>
812
+
813
+ <dl>
814
+ <dd>
815
+
816
+ ```typescript
817
+ await client.project.get();
818
+ ```
819
+
820
+ </dd>
821
+ </dl>
822
+ </dd>
823
+ </dl>
824
+
825
+ #### ⚙️ Parameters
826
+
827
+ <dl>
828
+ <dd>
829
+
830
+ <dl>
831
+ <dd>
832
+
833
+ **requestOptions:** `Project.RequestOptions`
834
+
835
+ </dd>
836
+ </dl>
837
+ </dd>
838
+ </dl>
839
+
840
+ </dd>
841
+ </dl>
842
+ </details>
843
+
787
844
  ## Thread
788
845
 
789
846
  <details><summary><code>client.thread.<a href="/src/api/resources/thread/client/Client.ts">listAll</a>({ ...params }) -> Zep.ThreadListResponse</code></summary>