@getzep/zep-cloud 3.14.0 → 3.15.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 (62) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/graph/client/Client.d.ts +50 -0
  3. package/dist/cjs/api/resources/graph/client/Client.js +272 -0
  4. package/dist/cjs/api/resources/graph/client/requests/AddCustomInstructionsRequest.d.ts +21 -0
  5. package/dist/cjs/api/resources/graph/client/requests/AddCustomInstructionsRequest.js +5 -0
  6. package/dist/cjs/api/resources/graph/client/requests/DeleteCustomInstructionsRequest.d.ts +15 -0
  7. package/dist/cjs/api/resources/graph/client/requests/DeleteCustomInstructionsRequest.js +5 -0
  8. package/dist/cjs/api/resources/graph/client/requests/GraphListCustomInstructionsRequest.d.ts +20 -0
  9. package/dist/cjs/api/resources/graph/client/requests/GraphListCustomInstructionsRequest.js +5 -0
  10. package/dist/cjs/api/resources/graph/client/requests/index.d.ts +3 -0
  11. package/dist/cjs/api/types/CustomInstruction.d.ts +7 -0
  12. package/dist/cjs/api/types/CustomInstruction.js +5 -0
  13. package/dist/cjs/api/types/ListCustomInstructionsResponse.d.ts +7 -0
  14. package/dist/cjs/api/types/ListCustomInstructionsResponse.js +5 -0
  15. package/dist/cjs/api/types/index.d.ts +2 -0
  16. package/dist/cjs/api/types/index.js +2 -0
  17. package/dist/cjs/serialization/resources/graph/client/requests/AddCustomInstructionsRequest.d.ts +15 -0
  18. package/dist/cjs/serialization/resources/graph/client/requests/AddCustomInstructionsRequest.js +46 -0
  19. package/dist/cjs/serialization/resources/graph/client/requests/DeleteCustomInstructionsRequest.d.ts +14 -0
  20. package/dist/cjs/serialization/resources/graph/client/requests/DeleteCustomInstructionsRequest.js +45 -0
  21. package/dist/cjs/serialization/resources/graph/client/requests/index.d.ts +2 -0
  22. package/dist/cjs/serialization/resources/graph/client/requests/index.js +5 -1
  23. package/dist/cjs/serialization/types/CustomInstruction.d.ts +13 -0
  24. package/dist/cjs/serialization/types/CustomInstruction.js +44 -0
  25. package/dist/cjs/serialization/types/ListCustomInstructionsResponse.d.ts +13 -0
  26. package/dist/cjs/serialization/types/ListCustomInstructionsResponse.js +44 -0
  27. package/dist/cjs/serialization/types/index.d.ts +2 -0
  28. package/dist/cjs/serialization/types/index.js +2 -0
  29. package/dist/cjs/version.d.ts +1 -1
  30. package/dist/cjs/version.js +1 -1
  31. package/dist/esm/Client.mjs +2 -2
  32. package/dist/esm/api/resources/graph/client/Client.d.mts +50 -0
  33. package/dist/esm/api/resources/graph/client/Client.mjs +272 -0
  34. package/dist/esm/api/resources/graph/client/requests/AddCustomInstructionsRequest.d.mts +21 -0
  35. package/dist/esm/api/resources/graph/client/requests/AddCustomInstructionsRequest.mjs +4 -0
  36. package/dist/esm/api/resources/graph/client/requests/DeleteCustomInstructionsRequest.d.mts +15 -0
  37. package/dist/esm/api/resources/graph/client/requests/DeleteCustomInstructionsRequest.mjs +4 -0
  38. package/dist/esm/api/resources/graph/client/requests/GraphListCustomInstructionsRequest.d.mts +20 -0
  39. package/dist/esm/api/resources/graph/client/requests/GraphListCustomInstructionsRequest.mjs +4 -0
  40. package/dist/esm/api/resources/graph/client/requests/index.d.mts +3 -0
  41. package/dist/esm/api/types/CustomInstruction.d.mts +7 -0
  42. package/dist/esm/api/types/CustomInstruction.mjs +4 -0
  43. package/dist/esm/api/types/ListCustomInstructionsResponse.d.mts +7 -0
  44. package/dist/esm/api/types/ListCustomInstructionsResponse.mjs +4 -0
  45. package/dist/esm/api/types/index.d.mts +2 -0
  46. package/dist/esm/api/types/index.mjs +2 -0
  47. package/dist/esm/serialization/resources/graph/client/requests/AddCustomInstructionsRequest.d.mts +15 -0
  48. package/dist/esm/serialization/resources/graph/client/requests/AddCustomInstructionsRequest.mjs +10 -0
  49. package/dist/esm/serialization/resources/graph/client/requests/DeleteCustomInstructionsRequest.d.mts +14 -0
  50. package/dist/esm/serialization/resources/graph/client/requests/DeleteCustomInstructionsRequest.mjs +9 -0
  51. package/dist/esm/serialization/resources/graph/client/requests/index.d.mts +2 -0
  52. package/dist/esm/serialization/resources/graph/client/requests/index.mjs +2 -0
  53. package/dist/esm/serialization/types/CustomInstruction.d.mts +13 -0
  54. package/dist/esm/serialization/types/CustomInstruction.mjs +8 -0
  55. package/dist/esm/serialization/types/ListCustomInstructionsResponse.d.mts +13 -0
  56. package/dist/esm/serialization/types/ListCustomInstructionsResponse.mjs +8 -0
  57. package/dist/esm/serialization/types/index.d.mts +2 -0
  58. package/dist/esm/serialization/types/index.mjs +2 -0
  59. package/dist/esm/version.d.mts +1 -1
  60. package/dist/esm/version.mjs +1 -1
  61. package/package.json +1 -1
  62. package/reference.md +199 -0
@@ -50,8 +50,8 @@ class ZepClient {
50
50
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
51
51
  "X-Fern-Language": "JavaScript",
52
52
  "X-Fern-SDK-Name": "zep-cloud",
53
- "X-Fern-SDK-Version": "3.14.0",
54
- "User-Agent": "zep-cloud/3.14.0",
53
+ "X-Fern-SDK-Version": "3.15.0",
54
+ "User-Agent": "zep-cloud/3.15.0",
55
55
  "X-Fern-Runtime": core.RUNTIME.type,
56
56
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
57
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -37,6 +37,56 @@ export declare class Graph {
37
37
  get edge(): Edge;
38
38
  get episode(): Episode;
39
39
  get node(): Node;
40
+ /**
41
+ * Lists all custom instructions for a project, user, or graph.
42
+ *
43
+ * @param {Zep.GraphListCustomInstructionsRequest} request
44
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @throws {@link Zep.BadRequestError}
47
+ * @throws {@link Zep.InternalServerError}
48
+ *
49
+ * @example
50
+ * await client.graph.listCustomInstructions({
51
+ * userId: "user_id",
52
+ * graphId: "graph_id"
53
+ * })
54
+ */
55
+ listCustomInstructions(request?: Zep.GraphListCustomInstructionsRequest, requestOptions?: Graph.RequestOptions): core.HttpResponsePromise<Zep.ListCustomInstructionsResponse>;
56
+ private __listCustomInstructions;
57
+ /**
58
+ * Adds new custom instructions for graphs without removing existing ones. If user_ids or graph_ids is empty, adds to project-wide default instructions.
59
+ *
60
+ * @param {Zep.AddCustomInstructionsRequest} request
61
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @throws {@link Zep.BadRequestError}
64
+ * @throws {@link Zep.InternalServerError}
65
+ *
66
+ * @example
67
+ * await client.graph.addCustomInstructions({
68
+ * instructions: [{
69
+ * name: "name",
70
+ * text: "text"
71
+ * }]
72
+ * })
73
+ */
74
+ addCustomInstructions(request: Zep.AddCustomInstructionsRequest, requestOptions?: Graph.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
75
+ private __addCustomInstructions;
76
+ /**
77
+ * Deletes custom instructions for graphs or project wide defaults.
78
+ *
79
+ * @param {Zep.DeleteCustomInstructionsRequest} request
80
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
81
+ *
82
+ * @throws {@link Zep.BadRequestError}
83
+ * @throws {@link Zep.InternalServerError}
84
+ *
85
+ * @example
86
+ * await client.graph.deleteCustomInstructions()
87
+ */
88
+ deleteCustomInstructions(request?: Zep.DeleteCustomInstructionsRequest, requestOptions?: Graph.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
89
+ private __deleteCustomInstructions;
40
90
  /**
41
91
  * Returns all entity types for a project, user, or graph.
42
92
  *
@@ -71,6 +71,278 @@ class Graph {
71
71
  var _a;
72
72
  return ((_a = this._node) !== null && _a !== void 0 ? _a : (this._node = new Client_js_3.Node(this._options)));
73
73
  }
74
+ /**
75
+ * Lists all custom instructions for a project, user, or graph.
76
+ *
77
+ * @param {Zep.GraphListCustomInstructionsRequest} request
78
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
79
+ *
80
+ * @throws {@link Zep.BadRequestError}
81
+ * @throws {@link Zep.InternalServerError}
82
+ *
83
+ * @example
84
+ * await client.graph.listCustomInstructions({
85
+ * userId: "user_id",
86
+ * graphId: "graph_id"
87
+ * })
88
+ */
89
+ listCustomInstructions(request = {}, requestOptions) {
90
+ return core.HttpResponsePromise.fromPromise(this.__listCustomInstructions(request, requestOptions));
91
+ }
92
+ __listCustomInstructions() {
93
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
94
+ var _a, _b, _c, _d;
95
+ const { userId, graphId } = request;
96
+ const _queryParams = {};
97
+ if (userId != null) {
98
+ _queryParams["user_id"] = userId;
99
+ }
100
+ if (graphId != null) {
101
+ _queryParams["graph_id"] = graphId;
102
+ }
103
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
+ 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, "custom-instructions"),
105
+ method: "GET",
106
+ 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),
107
+ queryParameters: _queryParams,
108
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
109
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
110
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
111
+ });
112
+ if (_response.ok) {
113
+ return {
114
+ data: serializers.ListCustomInstructionsResponse.parseOrThrow(_response.body, {
115
+ unrecognizedObjectKeys: "passthrough",
116
+ allowUnrecognizedUnionMembers: true,
117
+ allowUnrecognizedEnumValues: true,
118
+ skipValidation: true,
119
+ breadcrumbsPrefix: ["response"],
120
+ }),
121
+ rawResponse: _response.rawResponse,
122
+ };
123
+ }
124
+ if (_response.error.reason === "status-code") {
125
+ switch (_response.error.statusCode) {
126
+ case 400:
127
+ throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
128
+ unrecognizedObjectKeys: "passthrough",
129
+ allowUnrecognizedUnionMembers: true,
130
+ allowUnrecognizedEnumValues: true,
131
+ skipValidation: true,
132
+ breadcrumbsPrefix: ["response"],
133
+ }), _response.rawResponse);
134
+ case 500:
135
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
136
+ unrecognizedObjectKeys: "passthrough",
137
+ allowUnrecognizedUnionMembers: true,
138
+ allowUnrecognizedEnumValues: true,
139
+ skipValidation: true,
140
+ breadcrumbsPrefix: ["response"],
141
+ }), _response.rawResponse);
142
+ default:
143
+ throw new errors.ZepError({
144
+ statusCode: _response.error.statusCode,
145
+ body: _response.error.body,
146
+ rawResponse: _response.rawResponse,
147
+ });
148
+ }
149
+ }
150
+ switch (_response.error.reason) {
151
+ case "non-json":
152
+ throw new errors.ZepError({
153
+ statusCode: _response.error.statusCode,
154
+ body: _response.error.rawBody,
155
+ rawResponse: _response.rawResponse,
156
+ });
157
+ case "timeout":
158
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /custom-instructions.");
159
+ case "unknown":
160
+ throw new errors.ZepError({
161
+ message: _response.error.errorMessage,
162
+ rawResponse: _response.rawResponse,
163
+ });
164
+ }
165
+ });
166
+ }
167
+ /**
168
+ * Adds new custom instructions for graphs without removing existing ones. If user_ids or graph_ids is empty, adds to project-wide default instructions.
169
+ *
170
+ * @param {Zep.AddCustomInstructionsRequest} request
171
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
172
+ *
173
+ * @throws {@link Zep.BadRequestError}
174
+ * @throws {@link Zep.InternalServerError}
175
+ *
176
+ * @example
177
+ * await client.graph.addCustomInstructions({
178
+ * instructions: [{
179
+ * name: "name",
180
+ * text: "text"
181
+ * }]
182
+ * })
183
+ */
184
+ addCustomInstructions(request, requestOptions) {
185
+ return core.HttpResponsePromise.fromPromise(this.__addCustomInstructions(request, requestOptions));
186
+ }
187
+ __addCustomInstructions(request, requestOptions) {
188
+ return __awaiter(this, void 0, void 0, function* () {
189
+ var _a, _b, _c, _d;
190
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
191
+ 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, "custom-instructions"),
192
+ method: "POST",
193
+ 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),
194
+ contentType: "application/json",
195
+ requestType: "json",
196
+ body: serializers.AddCustomInstructionsRequest.jsonOrThrow(request, {
197
+ unrecognizedObjectKeys: "strip",
198
+ omitUndefined: true,
199
+ }),
200
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
201
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
202
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
203
+ });
204
+ if (_response.ok) {
205
+ return {
206
+ data: serializers.SuccessResponse.parseOrThrow(_response.body, {
207
+ unrecognizedObjectKeys: "passthrough",
208
+ allowUnrecognizedUnionMembers: true,
209
+ allowUnrecognizedEnumValues: true,
210
+ skipValidation: true,
211
+ breadcrumbsPrefix: ["response"],
212
+ }),
213
+ rawResponse: _response.rawResponse,
214
+ };
215
+ }
216
+ if (_response.error.reason === "status-code") {
217
+ switch (_response.error.statusCode) {
218
+ case 400:
219
+ throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
220
+ unrecognizedObjectKeys: "passthrough",
221
+ allowUnrecognizedUnionMembers: true,
222
+ allowUnrecognizedEnumValues: true,
223
+ skipValidation: true,
224
+ breadcrumbsPrefix: ["response"],
225
+ }), _response.rawResponse);
226
+ case 500:
227
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
228
+ unrecognizedObjectKeys: "passthrough",
229
+ allowUnrecognizedUnionMembers: true,
230
+ allowUnrecognizedEnumValues: true,
231
+ skipValidation: true,
232
+ breadcrumbsPrefix: ["response"],
233
+ }), _response.rawResponse);
234
+ default:
235
+ throw new errors.ZepError({
236
+ statusCode: _response.error.statusCode,
237
+ body: _response.error.body,
238
+ rawResponse: _response.rawResponse,
239
+ });
240
+ }
241
+ }
242
+ switch (_response.error.reason) {
243
+ case "non-json":
244
+ throw new errors.ZepError({
245
+ statusCode: _response.error.statusCode,
246
+ body: _response.error.rawBody,
247
+ rawResponse: _response.rawResponse,
248
+ });
249
+ case "timeout":
250
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling POST /custom-instructions.");
251
+ case "unknown":
252
+ throw new errors.ZepError({
253
+ message: _response.error.errorMessage,
254
+ rawResponse: _response.rawResponse,
255
+ });
256
+ }
257
+ });
258
+ }
259
+ /**
260
+ * Deletes custom instructions for graphs or project wide defaults.
261
+ *
262
+ * @param {Zep.DeleteCustomInstructionsRequest} request
263
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
264
+ *
265
+ * @throws {@link Zep.BadRequestError}
266
+ * @throws {@link Zep.InternalServerError}
267
+ *
268
+ * @example
269
+ * await client.graph.deleteCustomInstructions()
270
+ */
271
+ deleteCustomInstructions(request = {}, requestOptions) {
272
+ return core.HttpResponsePromise.fromPromise(this.__deleteCustomInstructions(request, requestOptions));
273
+ }
274
+ __deleteCustomInstructions() {
275
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
276
+ var _a, _b, _c, _d;
277
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
+ 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, "custom-instructions"),
279
+ method: "DELETE",
280
+ 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),
281
+ contentType: "application/json",
282
+ requestType: "json",
283
+ body: serializers.DeleteCustomInstructionsRequest.jsonOrThrow(request, {
284
+ unrecognizedObjectKeys: "strip",
285
+ omitUndefined: true,
286
+ }),
287
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
288
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
289
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
290
+ });
291
+ if (_response.ok) {
292
+ return {
293
+ data: serializers.SuccessResponse.parseOrThrow(_response.body, {
294
+ unrecognizedObjectKeys: "passthrough",
295
+ allowUnrecognizedUnionMembers: true,
296
+ allowUnrecognizedEnumValues: true,
297
+ skipValidation: true,
298
+ breadcrumbsPrefix: ["response"],
299
+ }),
300
+ rawResponse: _response.rawResponse,
301
+ };
302
+ }
303
+ if (_response.error.reason === "status-code") {
304
+ switch (_response.error.statusCode) {
305
+ case 400:
306
+ throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
307
+ unrecognizedObjectKeys: "passthrough",
308
+ allowUnrecognizedUnionMembers: true,
309
+ allowUnrecognizedEnumValues: true,
310
+ skipValidation: true,
311
+ breadcrumbsPrefix: ["response"],
312
+ }), _response.rawResponse);
313
+ case 500:
314
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
315
+ unrecognizedObjectKeys: "passthrough",
316
+ allowUnrecognizedUnionMembers: true,
317
+ allowUnrecognizedEnumValues: true,
318
+ skipValidation: true,
319
+ breadcrumbsPrefix: ["response"],
320
+ }), _response.rawResponse);
321
+ default:
322
+ throw new errors.ZepError({
323
+ statusCode: _response.error.statusCode,
324
+ body: _response.error.body,
325
+ rawResponse: _response.rawResponse,
326
+ });
327
+ }
328
+ }
329
+ switch (_response.error.reason) {
330
+ case "non-json":
331
+ throw new errors.ZepError({
332
+ statusCode: _response.error.statusCode,
333
+ body: _response.error.rawBody,
334
+ rawResponse: _response.rawResponse,
335
+ });
336
+ case "timeout":
337
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling DELETE /custom-instructions.");
338
+ case "unknown":
339
+ throw new errors.ZepError({
340
+ message: _response.error.errorMessage,
341
+ rawResponse: _response.rawResponse,
342
+ });
343
+ }
344
+ });
345
+ }
74
346
  /**
75
347
  * Returns all entity types for a project, user, or graph.
76
348
  *
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * instructions: [{
9
+ * name: "name",
10
+ * text: "text"
11
+ * }]
12
+ * }
13
+ */
14
+ export interface AddCustomInstructionsRequest {
15
+ /** Graph IDs to add the instructions to. If empty, the instructions are added to the project-wide default. */
16
+ graphIds?: string[];
17
+ /** Instructions to add to the graph. */
18
+ instructions: Zep.CustomInstruction[];
19
+ /** User IDs to add the instructions to. If empty, the instructions are added to the project-wide default. */
20
+ userIds?: string[];
21
+ }
@@ -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,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface DeleteCustomInstructionsRequest {
9
+ /** Determines which group graphs will have their custom instructions deleted. If no graphs are provided, the project-wide custom instructions will be affected. */
10
+ graphIds?: string[];
11
+ /** Unique identifier for the instructions to be deleted. If empty deletes all instructions. */
12
+ instructionNames?: string[];
13
+ /** Determines which user graphs will have their custom instructions deleted. If no users are provided, the project-wide custom instructions will be affected. */
14
+ userIds?: string[];
15
+ }
@@ -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,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * userId: "user_id",
8
+ * graphId: "graph_id"
9
+ * }
10
+ */
11
+ export interface GraphListCustomInstructionsRequest {
12
+ /**
13
+ * User ID to get user-specific instructions
14
+ */
15
+ userId?: string;
16
+ /**
17
+ * Graph ID to get graph-specific instructions
18
+ */
19
+ graphId?: string;
20
+ }
@@ -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 });
@@ -1,3 +1,6 @@
1
+ export { type GraphListCustomInstructionsRequest } from "./GraphListCustomInstructionsRequest.js";
2
+ export { type AddCustomInstructionsRequest } from "./AddCustomInstructionsRequest.js";
3
+ export { type DeleteCustomInstructionsRequest } from "./DeleteCustomInstructionsRequest.js";
1
4
  export { type GraphListEntityTypesRequest } from "./GraphListEntityTypesRequest.js";
2
5
  export { type EntityTypeRequest } from "./EntityTypeRequest.js";
3
6
  export { type AddDataRequest } from "./AddDataRequest.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CustomInstruction {
5
+ name: string;
6
+ text: string;
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 });
@@ -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 ListCustomInstructionsResponse {
6
+ instructions?: Zep.CustomInstruction[];
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 });
@@ -3,6 +3,7 @@ export * from "./AddThreadMessagesRequest.js";
3
3
  export * from "./AddThreadMessagesResponse.js";
4
4
  export * from "./CloneGraphResponse.js";
5
5
  export * from "./ContextTemplateResponse.js";
6
+ export * from "./CustomInstruction.js";
6
7
  export * from "./EdgeType.js";
7
8
  export * from "./EntityEdgeSourceTarget.js";
8
9
  export * from "./EntityProperty.js";
@@ -21,6 +22,7 @@ export * from "./GraphListResponse.js";
21
22
  export * from "./GraphNodesRequest.js";
22
23
  export * from "./GraphSearchResults.js";
23
24
  export * from "./ListContextTemplatesResponse.js";
25
+ export * from "./ListCustomInstructionsResponse.js";
24
26
  export * from "./ListUserInstructionsResponse.js";
25
27
  export * from "./ProjectInfo.js";
26
28
  export * from "./ProjectInfoResponse.js";
@@ -19,6 +19,7 @@ __exportStar(require("./AddThreadMessagesRequest.js"), exports);
19
19
  __exportStar(require("./AddThreadMessagesResponse.js"), exports);
20
20
  __exportStar(require("./CloneGraphResponse.js"), exports);
21
21
  __exportStar(require("./ContextTemplateResponse.js"), exports);
22
+ __exportStar(require("./CustomInstruction.js"), exports);
22
23
  __exportStar(require("./EdgeType.js"), exports);
23
24
  __exportStar(require("./EntityEdgeSourceTarget.js"), exports);
24
25
  __exportStar(require("./EntityProperty.js"), exports);
@@ -37,6 +38,7 @@ __exportStar(require("./GraphListResponse.js"), exports);
37
38
  __exportStar(require("./GraphNodesRequest.js"), exports);
38
39
  __exportStar(require("./GraphSearchResults.js"), exports);
39
40
  __exportStar(require("./ListContextTemplatesResponse.js"), exports);
41
+ __exportStar(require("./ListCustomInstructionsResponse.js"), exports);
40
42
  __exportStar(require("./ListUserInstructionsResponse.js"), exports);
41
43
  __exportStar(require("./ProjectInfo.js"), exports);
42
44
  __exportStar(require("./ProjectInfoResponse.js"), exports);
@@ -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
+ import { CustomInstruction } from "../../../../types/CustomInstruction.js";
8
+ export declare const AddCustomInstructionsRequest: core.serialization.Schema<serializers.AddCustomInstructionsRequest.Raw, Zep.AddCustomInstructionsRequest>;
9
+ export declare namespace AddCustomInstructionsRequest {
10
+ interface Raw {
11
+ graph_ids?: string[] | null;
12
+ instructions: CustomInstruction.Raw[];
13
+ user_ids?: 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.AddCustomInstructionsRequest = void 0;
40
+ const core = __importStar(require("../../../../../core/index.js"));
41
+ const CustomInstruction_js_1 = require("../../../../types/CustomInstruction.js");
42
+ exports.AddCustomInstructionsRequest = core.serialization.object({
43
+ graphIds: core.serialization.property("graph_ids", core.serialization.list(core.serialization.string()).optional()),
44
+ instructions: core.serialization.list(CustomInstruction_js_1.CustomInstruction),
45
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string()).optional()),
46
+ });
@@ -0,0 +1,14 @@
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 DeleteCustomInstructionsRequest: core.serialization.Schema<serializers.DeleteCustomInstructionsRequest.Raw, Zep.DeleteCustomInstructionsRequest>;
8
+ export declare namespace DeleteCustomInstructionsRequest {
9
+ interface Raw {
10
+ graph_ids?: string[] | null;
11
+ instruction_names?: string[] | null;
12
+ user_ids?: string[] | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DeleteCustomInstructionsRequest = void 0;
40
+ const core = __importStar(require("../../../../../core/index.js"));
41
+ exports.DeleteCustomInstructionsRequest = core.serialization.object({
42
+ graphIds: core.serialization.property("graph_ids", core.serialization.list(core.serialization.string()).optional()),
43
+ instructionNames: core.serialization.property("instruction_names", core.serialization.list(core.serialization.string()).optional()),
44
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string()).optional()),
45
+ });
@@ -1,3 +1,5 @@
1
+ export { AddCustomInstructionsRequest } from "./AddCustomInstructionsRequest.js";
2
+ export { DeleteCustomInstructionsRequest } from "./DeleteCustomInstructionsRequest.js";
1
3
  export { EntityTypeRequest } from "./EntityTypeRequest.js";
2
4
  export { AddDataRequest } from "./AddDataRequest.js";
3
5
  export { AddDataBatchRequest } from "./AddDataBatchRequest.js";
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateGraphRequest = exports.GraphSearchQuery = exports.CreateGraphRequest = exports.CloneGraphRequest = exports.AddTripleRequest = exports.AddDataBatchRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
3
+ exports.UpdateGraphRequest = exports.GraphSearchQuery = exports.CreateGraphRequest = exports.CloneGraphRequest = exports.AddTripleRequest = exports.AddDataBatchRequest = exports.AddDataRequest = exports.EntityTypeRequest = exports.DeleteCustomInstructionsRequest = exports.AddCustomInstructionsRequest = void 0;
4
+ var AddCustomInstructionsRequest_js_1 = require("./AddCustomInstructionsRequest.js");
5
+ Object.defineProperty(exports, "AddCustomInstructionsRequest", { enumerable: true, get: function () { return AddCustomInstructionsRequest_js_1.AddCustomInstructionsRequest; } });
6
+ var DeleteCustomInstructionsRequest_js_1 = require("./DeleteCustomInstructionsRequest.js");
7
+ Object.defineProperty(exports, "DeleteCustomInstructionsRequest", { enumerable: true, get: function () { return DeleteCustomInstructionsRequest_js_1.DeleteCustomInstructionsRequest; } });
4
8
  var EntityTypeRequest_js_1 = require("./EntityTypeRequest.js");
5
9
  Object.defineProperty(exports, "EntityTypeRequest", { enumerable: true, get: function () { return EntityTypeRequest_js_1.EntityTypeRequest; } });
6
10
  var AddDataRequest_js_1 = require("./AddDataRequest.js");