@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
@@ -4,6 +4,7 @@
4
4
  import * as environments from "./environments.js";
5
5
  import * as core from "./core/index.js";
6
6
  import { Graph } from "./api/resources/graph/client/Client.js";
7
+ import { Project } from "./api/resources/project/client/Client.js";
7
8
  import { Thread } from "./api/resources/thread/client/Client.js";
8
9
  import { User } from "./api/resources/user/client/Client.js";
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
  }
@@ -40,15 +40,16 @@ exports.ZepClient = void 0;
40
40
  const core = __importStar(require("./core/index.js"));
41
41
  const headers_js_1 = require("./core/headers.js");
42
42
  const Client_js_1 = require("./api/resources/graph/client/Client.js");
43
- const Client_js_2 = require("./api/resources/thread/client/Client.js");
44
- const Client_js_3 = require("./api/resources/user/client/Client.js");
43
+ const Client_js_2 = require("./api/resources/project/client/Client.js");
44
+ const Client_js_3 = require("./api/resources/thread/client/Client.js");
45
+ const Client_js_4 = require("./api/resources/user/client/Client.js");
45
46
  class ZepClient {
46
47
  constructor(_options = {}) {
47
48
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
48
49
  "X-Fern-Language": "JavaScript",
49
50
  "X-Fern-SDK-Name": "zep-cloud",
50
- "X-Fern-SDK-Version": "3.7.0",
51
- "User-Agent": "zep-cloud/3.7.0",
51
+ "X-Fern-SDK-Version": "3.9.0",
52
+ "User-Agent": "zep-cloud/3.9.0",
52
53
  "X-Fern-Runtime": core.RUNTIME.type,
53
54
  "X-Fern-Runtime-Version": core.RUNTIME.version,
54
55
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -57,13 +58,17 @@ class ZepClient {
57
58
  var _a;
58
59
  return ((_a = this._graph) !== null && _a !== void 0 ? _a : (this._graph = new Client_js_1.Graph(this._options)));
59
60
  }
61
+ get project() {
62
+ var _a;
63
+ return ((_a = this._project) !== null && _a !== void 0 ? _a : (this._project = new Client_js_2.Project(this._options)));
64
+ }
60
65
  get thread() {
61
66
  var _a;
62
- return ((_a = this._thread) !== null && _a !== void 0 ? _a : (this._thread = new Client_js_2.Thread(this._options)));
67
+ return ((_a = this._thread) !== null && _a !== void 0 ? _a : (this._thread = new Client_js_3.Thread(this._options)));
63
68
  }
64
69
  get user() {
65
70
  var _a;
66
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_3.User(this._options)));
71
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_4.User(this._options)));
67
72
  }
68
73
  }
69
74
  exports.ZepClient = ZepClient;
@@ -1,6 +1,7 @@
1
1
  export * as thread from "./thread/index.js";
2
2
  export * from "./thread/types/index.js";
3
3
  export * as graph from "./graph/index.js";
4
+ export * as project from "./project/index.js";
4
5
  export * as user from "./user/index.js";
5
6
  export * from "./graph/client/requests/index.js";
6
7
  export * from "./thread/client/requests/index.js";
@@ -36,10 +36,11 @@ 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.user = exports.graph = exports.thread = void 0;
39
+ exports.user = exports.project = exports.graph = exports.thread = void 0;
40
40
  exports.thread = __importStar(require("./thread/index.js"));
41
41
  __exportStar(require("./thread/types/index.js"), exports);
42
42
  exports.graph = __importStar(require("./graph/index.js"));
43
+ exports.project = __importStar(require("./project/index.js"));
43
44
  exports.user = __importStar(require("./user/index.js"));
44
45
  __exportStar(require("./graph/client/requests/index.js"), exports);
45
46
  __exportStar(require("./thread/client/requests/index.js"), exports);
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments.js";
5
+ import * as core from "../../../../core/index.js";
6
+ import * as Zep from "../../../index.js";
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,156 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Project = void 0;
49
+ const environments = __importStar(require("../../../../environments.js"));
50
+ const core = __importStar(require("../../../../core/index.js"));
51
+ const Zep = __importStar(require("../../../index.js"));
52
+ const headers_js_1 = require("../../../../core/headers.js");
53
+ const serializers = __importStar(require("../../../../serialization/index.js"));
54
+ const errors = __importStar(require("../../../../errors/index.js"));
55
+ class Project {
56
+ constructor(_options = {}) {
57
+ this._options = _options;
58
+ }
59
+ /**
60
+ * Retrieve project info based on the provided api key.
61
+ *
62
+ * @param {Project.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Zep.BadRequestError}
65
+ * @throws {@link Zep.NotFoundError}
66
+ * @throws {@link Zep.InternalServerError}
67
+ *
68
+ * @example
69
+ * await client.project.get()
70
+ */
71
+ get(requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
73
+ }
74
+ __get(requestOptions) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ var _a, _b, _c, _d;
77
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
+ 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"),
79
+ method: "GET",
80
+ headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ });
85
+ if (_response.ok) {
86
+ return {
87
+ data: serializers.ProjectInfoResponse.parseOrThrow(_response.body, {
88
+ unrecognizedObjectKeys: "passthrough",
89
+ allowUnrecognizedUnionMembers: true,
90
+ allowUnrecognizedEnumValues: true,
91
+ skipValidation: true,
92
+ breadcrumbsPrefix: ["response"],
93
+ }),
94
+ rawResponse: _response.rawResponse,
95
+ };
96
+ }
97
+ if (_response.error.reason === "status-code") {
98
+ switch (_response.error.statusCode) {
99
+ case 400:
100
+ throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
101
+ unrecognizedObjectKeys: "passthrough",
102
+ allowUnrecognizedUnionMembers: true,
103
+ allowUnrecognizedEnumValues: true,
104
+ skipValidation: true,
105
+ breadcrumbsPrefix: ["response"],
106
+ }), _response.rawResponse);
107
+ case 404:
108
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
109
+ unrecognizedObjectKeys: "passthrough",
110
+ allowUnrecognizedUnionMembers: true,
111
+ allowUnrecognizedEnumValues: true,
112
+ skipValidation: true,
113
+ breadcrumbsPrefix: ["response"],
114
+ }), _response.rawResponse);
115
+ case 500:
116
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
117
+ unrecognizedObjectKeys: "passthrough",
118
+ allowUnrecognizedUnionMembers: true,
119
+ allowUnrecognizedEnumValues: true,
120
+ skipValidation: true,
121
+ breadcrumbsPrefix: ["response"],
122
+ }), _response.rawResponse);
123
+ default:
124
+ throw new errors.ZepError({
125
+ statusCode: _response.error.statusCode,
126
+ body: _response.error.body,
127
+ rawResponse: _response.rawResponse,
128
+ });
129
+ }
130
+ }
131
+ switch (_response.error.reason) {
132
+ case "non-json":
133
+ throw new errors.ZepError({
134
+ statusCode: _response.error.statusCode,
135
+ body: _response.error.rawBody,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ case "timeout":
139
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /projects/info.");
140
+ case "unknown":
141
+ throw new errors.ZepError({
142
+ message: _response.error.errorMessage,
143
+ rawResponse: _response.rawResponse,
144
+ });
145
+ }
146
+ });
147
+ }
148
+ _getCustomAuthorizationHeaders() {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ var _a;
151
+ 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"];
152
+ return { Authorization: `Api-Key ${apiKeyValue}` };
153
+ });
154
+ }
155
+ }
156
+ exports.Project = Project;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -9,6 +9,8 @@ import * as Zep from "../../../../index.js";
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.js";
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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index.js";
5
+ export interface ProjectInfoResponse {
6
+ project?: Zep.ProjectInfo;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.js";
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.js";
18
18
  export * from "./GraphListResponse.js";
19
19
  export * from "./GraphNodesRequest.js";
20
20
  export * from "./GraphSearchResults.js";
21
+ export * from "./ProjectInfo.js";
22
+ export * from "./ProjectInfoResponse.js";
21
23
  export * from "./RoleType.js";
22
24
  export * from "./SuccessResponse.js";
23
25
  export * from "./Thread.js";
@@ -34,6 +34,8 @@ __exportStar(require("./EpisodeResponse.js"), exports);
34
34
  __exportStar(require("./GraphListResponse.js"), exports);
35
35
  __exportStar(require("./GraphNodesRequest.js"), exports);
36
36
  __exportStar(require("./GraphSearchResults.js"), exports);
37
+ __exportStar(require("./ProjectInfo.js"), exports);
38
+ __exportStar(require("./ProjectInfoResponse.js"), exports);
37
39
  __exportStar(require("./RoleType.js"), exports);
38
40
  __exportStar(require("./SuccessResponse.js"), exports);
39
41
  __exportStar(require("./Thread.js"), exports);
@@ -8,6 +8,7 @@ import { FactRatingInstruction } from "../../../../types/FactRatingInstruction.j
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;
@@ -40,6 +40,7 @@ exports.CreateUserRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core/index.js"));
41
41
  const FactRatingInstruction_js_1 = require("../../../../types/FactRatingInstruction.js");
42
42
  exports.CreateUserRequest = core.serialization.object({
43
+ disableDefaultOntology: core.serialization.property("disable_default_ontology", core.serialization.boolean().optional()),
43
44
  email: core.serialization.string().optional(),
44
45
  factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_js_1.FactRatingInstruction.optional()),
45
46
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
@@ -8,6 +8,7 @@ import { FactRatingInstruction } from "../../../../types/FactRatingInstruction.j
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;
@@ -40,6 +40,7 @@ exports.UpdateUserRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core/index.js"));
41
41
  const FactRatingInstruction_js_1 = require("../../../../types/FactRatingInstruction.js");
42
42
  exports.UpdateUserRequest = core.serialization.object({
43
+ disableDefaultOntology: core.serialization.property("disable_default_ontology", core.serialization.boolean().optional()),
43
44
  email: core.serialization.string().optional(),
44
45
  factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_js_1.FactRatingInstruction.optional()),
45
46
  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.js";
5
+ import * as Zep from "../../api/index.js";
6
+ import * as core from "../../core/index.js";
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,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.ProjectInfo = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ exports.ProjectInfo = core.serialization.object({
42
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
+ description: core.serialization.string().optional(),
44
+ name: core.serialization.string().optional(),
45
+ uuid: core.serialization.string().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.js";
5
+ import * as Zep from "../../api/index.js";
6
+ import * as core from "../../core/index.js";
7
+ import { ProjectInfo } from "./ProjectInfo.js";
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,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.ProjectInfoResponse = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ const ProjectInfo_js_1 = require("./ProjectInfo.js");
42
+ exports.ProjectInfoResponse = core.serialization.object({
43
+ project: ProjectInfo_js_1.ProjectInfo.optional(),
44
+ });
@@ -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;
@@ -42,6 +42,8 @@ const DateFilter_js_1 = require("./DateFilter.js");
42
42
  exports.SearchFilters = core.serialization.object({
43
43
  createdAt: core.serialization.property("created_at", core.serialization.list(core.serialization.list(DateFilter_js_1.DateFilter)).optional()),
44
44
  edgeTypes: core.serialization.property("edge_types", core.serialization.list(core.serialization.string()).optional()),
45
+ excludeEdgeTypes: core.serialization.property("exclude_edge_types", core.serialization.list(core.serialization.string()).optional()),
46
+ excludeNodeLabels: core.serialization.property("exclude_node_labels", core.serialization.list(core.serialization.string()).optional()),
45
47
  expiredAt: core.serialization.property("expired_at", core.serialization.list(core.serialization.list(DateFilter_js_1.DateFilter)).optional()),
46
48
  invalidAt: core.serialization.property("invalid_at", core.serialization.list(core.serialization.list(DateFilter_js_1.DateFilter)).optional()),
47
49
  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;
@@ -42,6 +42,7 @@ const ModelsFactRatingInstruction_js_1 = require("./ModelsFactRatingInstruction.
42
42
  exports.User = core.serialization.object({
43
43
  createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
44
44
  deletedAt: core.serialization.property("deleted_at", core.serialization.string().optional()),
45
+ disableDefaultOntology: core.serialization.property("disable_default_ontology", core.serialization.boolean().optional()),
45
46
  email: core.serialization.string().optional(),
46
47
  factRatingInstruction: core.serialization.property("fact_rating_instruction", ModelsFactRatingInstruction_js_1.ModelsFactRatingInstruction.optional()),
47
48
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
@@ -18,6 +18,8 @@ export * from "./EpisodeResponse.js";
18
18
  export * from "./GraphListResponse.js";
19
19
  export * from "./GraphNodesRequest.js";
20
20
  export * from "./GraphSearchResults.js";
21
+ export * from "./ProjectInfo.js";
22
+ export * from "./ProjectInfoResponse.js";
21
23
  export * from "./RoleType.js";
22
24
  export * from "./SuccessResponse.js";
23
25
  export * from "./Thread.js";
@@ -34,6 +34,8 @@ __exportStar(require("./EpisodeResponse.js"), exports);
34
34
  __exportStar(require("./GraphListResponse.js"), exports);
35
35
  __exportStar(require("./GraphNodesRequest.js"), exports);
36
36
  __exportStar(require("./GraphSearchResults.js"), exports);
37
+ __exportStar(require("./ProjectInfo.js"), exports);
38
+ __exportStar(require("./ProjectInfoResponse.js"), exports);
37
39
  __exportStar(require("./RoleType.js"), exports);
38
40
  __exportStar(require("./SuccessResponse.js"), exports);
39
41
  __exportStar(require("./Thread.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.7.0";
1
+ export declare const SDK_VERSION = "3.9.0";