@getzep/zep-cloud 3.9.0 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/user/client/Client.d.ts +47 -0
  3. package/dist/cjs/api/resources/user/client/Client.js +266 -0
  4. package/dist/cjs/api/resources/user/client/requests/AddUserInstructionsRequest.d.ts +19 -0
  5. package/dist/cjs/api/resources/user/client/requests/AddUserInstructionsRequest.js +5 -0
  6. package/dist/cjs/api/resources/user/client/requests/DeleteUserInstructionsRequest.d.ts +13 -0
  7. package/dist/cjs/api/resources/user/client/requests/DeleteUserInstructionsRequest.js +5 -0
  8. package/dist/cjs/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.d.ts +13 -0
  9. package/dist/cjs/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.js +5 -0
  10. package/dist/cjs/api/resources/user/client/requests/index.d.ts +3 -0
  11. package/dist/cjs/api/types/ComparisonOperator.d.ts +3 -1
  12. package/dist/cjs/api/types/ComparisonOperator.js +2 -0
  13. package/dist/cjs/api/types/ListUserInstructionsResponse.d.ts +7 -0
  14. package/dist/cjs/api/types/ListUserInstructionsResponse.js +5 -0
  15. package/dist/cjs/api/types/UserInstruction.d.ts +7 -0
  16. package/dist/cjs/api/types/UserInstruction.js +5 -0
  17. package/dist/cjs/api/types/index.d.ts +2 -0
  18. package/dist/cjs/api/types/index.js +2 -0
  19. package/dist/cjs/serialization/resources/user/client/requests/AddUserInstructionsRequest.d.ts +14 -0
  20. package/dist/cjs/serialization/resources/user/client/requests/AddUserInstructionsRequest.js +45 -0
  21. package/dist/cjs/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.d.ts +13 -0
  22. package/dist/cjs/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.js +44 -0
  23. package/dist/cjs/serialization/resources/user/client/requests/index.d.ts +2 -0
  24. package/dist/cjs/serialization/resources/user/client/requests/index.js +5 -1
  25. package/dist/cjs/serialization/types/ComparisonOperator.d.ts +1 -1
  26. package/dist/cjs/serialization/types/ComparisonOperator.js +1 -1
  27. package/dist/cjs/serialization/types/ListUserInstructionsResponse.d.ts +13 -0
  28. package/dist/cjs/serialization/types/ListUserInstructionsResponse.js +44 -0
  29. package/dist/cjs/serialization/types/UserInstruction.d.ts +13 -0
  30. package/dist/cjs/serialization/types/UserInstruction.js +44 -0
  31. package/dist/cjs/serialization/types/index.d.ts +2 -0
  32. package/dist/cjs/serialization/types/index.js +2 -0
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/esm/Client.mjs +2 -2
  36. package/dist/esm/api/resources/user/client/Client.d.mts +47 -0
  37. package/dist/esm/api/resources/user/client/Client.mjs +266 -0
  38. package/dist/esm/api/resources/user/client/requests/AddUserInstructionsRequest.d.mts +19 -0
  39. package/dist/esm/api/resources/user/client/requests/AddUserInstructionsRequest.mjs +4 -0
  40. package/dist/esm/api/resources/user/client/requests/DeleteUserInstructionsRequest.d.mts +13 -0
  41. package/dist/esm/api/resources/user/client/requests/DeleteUserInstructionsRequest.mjs +4 -0
  42. package/dist/esm/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.d.mts +13 -0
  43. package/dist/esm/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.mjs +4 -0
  44. package/dist/esm/api/resources/user/client/requests/index.d.mts +3 -0
  45. package/dist/esm/api/types/ComparisonOperator.d.mts +3 -1
  46. package/dist/esm/api/types/ComparisonOperator.mjs +2 -0
  47. package/dist/esm/api/types/ListUserInstructionsResponse.d.mts +7 -0
  48. package/dist/esm/api/types/ListUserInstructionsResponse.mjs +4 -0
  49. package/dist/esm/api/types/UserInstruction.d.mts +7 -0
  50. package/dist/esm/api/types/UserInstruction.mjs +4 -0
  51. package/dist/esm/api/types/index.d.mts +2 -0
  52. package/dist/esm/api/types/index.mjs +2 -0
  53. package/dist/esm/serialization/resources/user/client/requests/AddUserInstructionsRequest.d.mts +14 -0
  54. package/dist/esm/serialization/resources/user/client/requests/AddUserInstructionsRequest.mjs +9 -0
  55. package/dist/esm/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.d.mts +13 -0
  56. package/dist/esm/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.mjs +8 -0
  57. package/dist/esm/serialization/resources/user/client/requests/index.d.mts +2 -0
  58. package/dist/esm/serialization/resources/user/client/requests/index.mjs +2 -0
  59. package/dist/esm/serialization/types/ComparisonOperator.d.mts +1 -1
  60. package/dist/esm/serialization/types/ComparisonOperator.mjs +1 -1
  61. package/dist/esm/serialization/types/ListUserInstructionsResponse.d.mts +13 -0
  62. package/dist/esm/serialization/types/ListUserInstructionsResponse.mjs +8 -0
  63. package/dist/esm/serialization/types/UserInstruction.d.mts +13 -0
  64. package/dist/esm/serialization/types/UserInstruction.mjs +8 -0
  65. package/dist/esm/serialization/types/index.d.mts +2 -0
  66. package/dist/esm/serialization/types/index.mjs +2 -0
  67. package/dist/esm/version.d.mts +1 -1
  68. package/dist/esm/version.mjs +1 -1
  69. package/package.json +1 -1
  70. package/reference.md +196 -0
@@ -48,8 +48,8 @@ class ZepClient {
48
48
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "zep-cloud",
51
- "X-Fern-SDK-Version": "3.9.0",
52
- "User-Agent": "zep-cloud/3.9.0",
51
+ "X-Fern-SDK-Version": "3.10.0",
52
+ "User-Agent": "zep-cloud/3.10.0",
53
53
  "X-Fern-Runtime": core.RUNTIME.type,
54
54
  "X-Fern-Runtime-Version": core.RUNTIME.version,
55
55
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -28,6 +28,53 @@ export declare namespace User {
28
28
  export declare class User {
29
29
  protected readonly _options: User.Options;
30
30
  constructor(_options?: User.Options);
31
+ /**
32
+ * Lists all user summary instructions for a project, user.
33
+ *
34
+ * @param {Zep.UserListUserSummaryInstructionsRequest} request
35
+ * @param {User.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @throws {@link Zep.BadRequestError}
38
+ * @throws {@link Zep.InternalServerError}
39
+ *
40
+ * @example
41
+ * await client.user.listUserSummaryInstructions()
42
+ */
43
+ listUserSummaryInstructions(request?: Zep.UserListUserSummaryInstructionsRequest, requestOptions?: User.RequestOptions): core.HttpResponsePromise<Zep.ListUserInstructionsResponse>;
44
+ private __listUserSummaryInstructions;
45
+ /**
46
+ * Adds new summary instructions for users graphs without removing existing ones. If user_ids is empty, adds to project-wide default instructions.
47
+ *
48
+ * @param {Zep.AddUserInstructionsRequest} request
49
+ * @param {User.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @throws {@link Zep.BadRequestError}
52
+ * @throws {@link Zep.InternalServerError}
53
+ *
54
+ * @example
55
+ * await client.user.addUserSummaryInstructions({
56
+ * instructions: [{
57
+ * name: "name",
58
+ * text: "text"
59
+ * }]
60
+ * })
61
+ */
62
+ addUserSummaryInstructions(request: Zep.AddUserInstructionsRequest, requestOptions?: User.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
63
+ private __addUserSummaryInstructions;
64
+ /**
65
+ * Deletes user summary/instructions for users or project wide defaults.
66
+ *
67
+ * @param {Zep.DeleteUserInstructionsRequest} request
68
+ * @param {User.RequestOptions} requestOptions - Request-specific configuration.
69
+ *
70
+ * @throws {@link Zep.BadRequestError}
71
+ * @throws {@link Zep.InternalServerError}
72
+ *
73
+ * @example
74
+ * await client.user.deleteUserSummaryInstructions()
75
+ */
76
+ deleteUserSummaryInstructions(request?: Zep.DeleteUserInstructionsRequest, requestOptions?: User.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
77
+ private __deleteUserSummaryInstructions;
31
78
  /**
32
79
  * Adds a user.
33
80
  *
@@ -56,6 +56,272 @@ class User {
56
56
  constructor(_options = {}) {
57
57
  this._options = _options;
58
58
  }
59
+ /**
60
+ * Lists all user summary instructions for a project, user.
61
+ *
62
+ * @param {Zep.UserListUserSummaryInstructionsRequest} request
63
+ * @param {User.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Zep.BadRequestError}
66
+ * @throws {@link Zep.InternalServerError}
67
+ *
68
+ * @example
69
+ * await client.user.listUserSummaryInstructions()
70
+ */
71
+ listUserSummaryInstructions(request = {}, requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__listUserSummaryInstructions(request, requestOptions));
73
+ }
74
+ __listUserSummaryInstructions() {
75
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
76
+ var _a, _b, _c, _d;
77
+ const { userId } = request;
78
+ const _queryParams = {};
79
+ if (userId != null) {
80
+ _queryParams["user_id"] = userId;
81
+ }
82
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
+ 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, "user-summary-instructions"),
84
+ method: "GET",
85
+ 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),
86
+ queryParameters: _queryParams,
87
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
88
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
89
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
90
+ });
91
+ if (_response.ok) {
92
+ return {
93
+ data: serializers.ListUserInstructionsResponse.parseOrThrow(_response.body, {
94
+ unrecognizedObjectKeys: "passthrough",
95
+ allowUnrecognizedUnionMembers: true,
96
+ allowUnrecognizedEnumValues: true,
97
+ skipValidation: true,
98
+ breadcrumbsPrefix: ["response"],
99
+ }),
100
+ rawResponse: _response.rawResponse,
101
+ };
102
+ }
103
+ if (_response.error.reason === "status-code") {
104
+ switch (_response.error.statusCode) {
105
+ case 400:
106
+ throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
107
+ unrecognizedObjectKeys: "passthrough",
108
+ allowUnrecognizedUnionMembers: true,
109
+ allowUnrecognizedEnumValues: true,
110
+ skipValidation: true,
111
+ breadcrumbsPrefix: ["response"],
112
+ }), _response.rawResponse);
113
+ case 500:
114
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
115
+ unrecognizedObjectKeys: "passthrough",
116
+ allowUnrecognizedUnionMembers: true,
117
+ allowUnrecognizedEnumValues: true,
118
+ skipValidation: true,
119
+ breadcrumbsPrefix: ["response"],
120
+ }), _response.rawResponse);
121
+ default:
122
+ throw new errors.ZepError({
123
+ statusCode: _response.error.statusCode,
124
+ body: _response.error.body,
125
+ rawResponse: _response.rawResponse,
126
+ });
127
+ }
128
+ }
129
+ switch (_response.error.reason) {
130
+ case "non-json":
131
+ throw new errors.ZepError({
132
+ statusCode: _response.error.statusCode,
133
+ body: _response.error.rawBody,
134
+ rawResponse: _response.rawResponse,
135
+ });
136
+ case "timeout":
137
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /user-summary-instructions.");
138
+ case "unknown":
139
+ throw new errors.ZepError({
140
+ message: _response.error.errorMessage,
141
+ rawResponse: _response.rawResponse,
142
+ });
143
+ }
144
+ });
145
+ }
146
+ /**
147
+ * Adds new summary instructions for users graphs without removing existing ones. If user_ids is empty, adds to project-wide default instructions.
148
+ *
149
+ * @param {Zep.AddUserInstructionsRequest} request
150
+ * @param {User.RequestOptions} requestOptions - Request-specific configuration.
151
+ *
152
+ * @throws {@link Zep.BadRequestError}
153
+ * @throws {@link Zep.InternalServerError}
154
+ *
155
+ * @example
156
+ * await client.user.addUserSummaryInstructions({
157
+ * instructions: [{
158
+ * name: "name",
159
+ * text: "text"
160
+ * }]
161
+ * })
162
+ */
163
+ addUserSummaryInstructions(request, requestOptions) {
164
+ return core.HttpResponsePromise.fromPromise(this.__addUserSummaryInstructions(request, requestOptions));
165
+ }
166
+ __addUserSummaryInstructions(request, requestOptions) {
167
+ return __awaiter(this, void 0, void 0, function* () {
168
+ var _a, _b, _c, _d;
169
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
170
+ 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, "user-summary-instructions"),
171
+ method: "POST",
172
+ 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),
173
+ contentType: "application/json",
174
+ requestType: "json",
175
+ body: serializers.AddUserInstructionsRequest.jsonOrThrow(request, {
176
+ unrecognizedObjectKeys: "strip",
177
+ omitUndefined: true,
178
+ }),
179
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
180
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
181
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
182
+ });
183
+ if (_response.ok) {
184
+ return {
185
+ data: serializers.SuccessResponse.parseOrThrow(_response.body, {
186
+ unrecognizedObjectKeys: "passthrough",
187
+ allowUnrecognizedUnionMembers: true,
188
+ allowUnrecognizedEnumValues: true,
189
+ skipValidation: true,
190
+ breadcrumbsPrefix: ["response"],
191
+ }),
192
+ rawResponse: _response.rawResponse,
193
+ };
194
+ }
195
+ if (_response.error.reason === "status-code") {
196
+ switch (_response.error.statusCode) {
197
+ case 400:
198
+ throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
199
+ unrecognizedObjectKeys: "passthrough",
200
+ allowUnrecognizedUnionMembers: true,
201
+ allowUnrecognizedEnumValues: true,
202
+ skipValidation: true,
203
+ breadcrumbsPrefix: ["response"],
204
+ }), _response.rawResponse);
205
+ case 500:
206
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
207
+ unrecognizedObjectKeys: "passthrough",
208
+ allowUnrecognizedUnionMembers: true,
209
+ allowUnrecognizedEnumValues: true,
210
+ skipValidation: true,
211
+ breadcrumbsPrefix: ["response"],
212
+ }), _response.rawResponse);
213
+ default:
214
+ throw new errors.ZepError({
215
+ statusCode: _response.error.statusCode,
216
+ body: _response.error.body,
217
+ rawResponse: _response.rawResponse,
218
+ });
219
+ }
220
+ }
221
+ switch (_response.error.reason) {
222
+ case "non-json":
223
+ throw new errors.ZepError({
224
+ statusCode: _response.error.statusCode,
225
+ body: _response.error.rawBody,
226
+ rawResponse: _response.rawResponse,
227
+ });
228
+ case "timeout":
229
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling POST /user-summary-instructions.");
230
+ case "unknown":
231
+ throw new errors.ZepError({
232
+ message: _response.error.errorMessage,
233
+ rawResponse: _response.rawResponse,
234
+ });
235
+ }
236
+ });
237
+ }
238
+ /**
239
+ * Deletes user summary/instructions for users or project wide defaults.
240
+ *
241
+ * @param {Zep.DeleteUserInstructionsRequest} request
242
+ * @param {User.RequestOptions} requestOptions - Request-specific configuration.
243
+ *
244
+ * @throws {@link Zep.BadRequestError}
245
+ * @throws {@link Zep.InternalServerError}
246
+ *
247
+ * @example
248
+ * await client.user.deleteUserSummaryInstructions()
249
+ */
250
+ deleteUserSummaryInstructions(request = {}, requestOptions) {
251
+ return core.HttpResponsePromise.fromPromise(this.__deleteUserSummaryInstructions(request, requestOptions));
252
+ }
253
+ __deleteUserSummaryInstructions() {
254
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
255
+ var _a, _b, _c, _d;
256
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
257
+ 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, "user-summary-instructions"),
258
+ method: "DELETE",
259
+ 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),
260
+ contentType: "application/json",
261
+ requestType: "json",
262
+ body: serializers.DeleteUserInstructionsRequest.jsonOrThrow(request, {
263
+ unrecognizedObjectKeys: "strip",
264
+ omitUndefined: true,
265
+ }),
266
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
267
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
268
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
269
+ });
270
+ if (_response.ok) {
271
+ return {
272
+ data: serializers.SuccessResponse.parseOrThrow(_response.body, {
273
+ unrecognizedObjectKeys: "passthrough",
274
+ allowUnrecognizedUnionMembers: true,
275
+ allowUnrecognizedEnumValues: true,
276
+ skipValidation: true,
277
+ breadcrumbsPrefix: ["response"],
278
+ }),
279
+ rawResponse: _response.rawResponse,
280
+ };
281
+ }
282
+ if (_response.error.reason === "status-code") {
283
+ switch (_response.error.statusCode) {
284
+ case 400:
285
+ throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
286
+ unrecognizedObjectKeys: "passthrough",
287
+ allowUnrecognizedUnionMembers: true,
288
+ allowUnrecognizedEnumValues: true,
289
+ skipValidation: true,
290
+ breadcrumbsPrefix: ["response"],
291
+ }), _response.rawResponse);
292
+ case 500:
293
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
294
+ unrecognizedObjectKeys: "passthrough",
295
+ allowUnrecognizedUnionMembers: true,
296
+ allowUnrecognizedEnumValues: true,
297
+ skipValidation: true,
298
+ breadcrumbsPrefix: ["response"],
299
+ }), _response.rawResponse);
300
+ default:
301
+ throw new errors.ZepError({
302
+ statusCode: _response.error.statusCode,
303
+ body: _response.error.body,
304
+ rawResponse: _response.rawResponse,
305
+ });
306
+ }
307
+ }
308
+ switch (_response.error.reason) {
309
+ case "non-json":
310
+ throw new errors.ZepError({
311
+ statusCode: _response.error.statusCode,
312
+ body: _response.error.rawBody,
313
+ rawResponse: _response.rawResponse,
314
+ });
315
+ case "timeout":
316
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling DELETE /user-summary-instructions.");
317
+ case "unknown":
318
+ throw new errors.ZepError({
319
+ message: _response.error.errorMessage,
320
+ rawResponse: _response.rawResponse,
321
+ });
322
+ }
323
+ });
324
+ }
59
325
  /**
60
326
  * Adds a user.
61
327
  *
@@ -0,0 +1,19 @@
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 AddUserInstructionsRequest {
15
+ /** Instructions to add to the user summary generation. */
16
+ instructions: Zep.UserInstruction[];
17
+ /** User IDs to add the instructions to. If empty, the instructions are added to the project-wide default. */
18
+ userIds?: string[];
19
+ }
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface DeleteUserInstructionsRequest {
9
+ /** Unique identifier for the instructions to be deleted. If empty deletes all instructions. */
10
+ instructionNames?: string[];
11
+ /** Determines which users will have their custom instructions deleted. If no users are provided, the project-wide custom instructions will be effected. */
12
+ userIds?: string[];
13
+ }
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface UserListUserSummaryInstructionsRequest {
9
+ /**
10
+ * User ID to get user-specific instructions
11
+ */
12
+ userId?: string;
13
+ }
@@ -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 UserListUserSummaryInstructionsRequest } from "./UserListUserSummaryInstructionsRequest.js";
2
+ export { type AddUserInstructionsRequest } from "./AddUserInstructionsRequest.js";
3
+ export { type DeleteUserInstructionsRequest } from "./DeleteUserInstructionsRequest.js";
1
4
  export { type CreateUserRequest } from "./CreateUserRequest.js";
2
5
  export { type UserListOrderedRequest } from "./UserListOrderedRequest.js";
3
6
  export { type UpdateUserRequest } from "./UpdateUserRequest.js";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ComparisonOperator = "=" | "<>" | ">" | "<" | ">=" | "<=";
4
+ export type ComparisonOperator = "=" | "<>" | ">" | "<" | ">=" | "<=" | "IS NULL" | "IS NOT NULL";
5
5
  export declare const ComparisonOperator: {
6
6
  readonly Equals: "=";
7
7
  readonly NotEquals: "<>";
@@ -9,4 +9,6 @@ export declare const ComparisonOperator: {
9
9
  readonly LessThan: "<";
10
10
  readonly GreaterThanEqual: ">=";
11
11
  readonly LessThanEqual: "<=";
12
+ readonly IsNull: "IS NULL";
13
+ readonly IsNotNull: "IS NOT NULL";
12
14
  };
@@ -11,4 +11,6 @@ exports.ComparisonOperator = {
11
11
  LessThan: "<",
12
12
  GreaterThanEqual: ">=",
13
13
  LessThanEqual: "<=",
14
+ IsNull: "IS NULL",
15
+ IsNotNull: "IS NOT NULL",
14
16
  };
@@ -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 ListUserInstructionsResponse {
6
+ instructions?: Zep.UserInstruction[];
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
+ export interface UserInstruction {
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 });
@@ -18,6 +18,7 @@ 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 "./ListUserInstructionsResponse.js";
21
22
  export * from "./ProjectInfo.js";
22
23
  export * from "./ProjectInfoResponse.js";
23
24
  export * from "./RoleType.js";
@@ -28,6 +29,7 @@ export * from "./ThreadListResponse.js";
28
29
  export * from "./Message.js";
29
30
  export * from "./MessageListResponse.js";
30
31
  export * from "./User.js";
32
+ export * from "./UserInstruction.js";
31
33
  export * from "./UserListResponse.js";
32
34
  export * from "./UserNodeResponse.js";
33
35
  export * from "./AddTripleResponse.js";
@@ -34,6 +34,7 @@ __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("./ListUserInstructionsResponse.js"), exports);
37
38
  __exportStar(require("./ProjectInfo.js"), exports);
38
39
  __exportStar(require("./ProjectInfoResponse.js"), exports);
39
40
  __exportStar(require("./RoleType.js"), exports);
@@ -44,6 +45,7 @@ __exportStar(require("./ThreadListResponse.js"), exports);
44
45
  __exportStar(require("./Message.js"), exports);
45
46
  __exportStar(require("./MessageListResponse.js"), exports);
46
47
  __exportStar(require("./User.js"), exports);
48
+ __exportStar(require("./UserInstruction.js"), exports);
47
49
  __exportStar(require("./UserListResponse.js"), exports);
48
50
  __exportStar(require("./UserNodeResponse.js"), exports);
49
51
  __exportStar(require("./AddTripleResponse.js"), exports);
@@ -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
+ import { UserInstruction } from "../../../../types/UserInstruction.js";
8
+ export declare const AddUserInstructionsRequest: core.serialization.Schema<serializers.AddUserInstructionsRequest.Raw, Zep.AddUserInstructionsRequest>;
9
+ export declare namespace AddUserInstructionsRequest {
10
+ interface Raw {
11
+ instructions: UserInstruction.Raw[];
12
+ user_ids?: string[] | null;
13
+ }
14
+ }
@@ -0,0 +1,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.AddUserInstructionsRequest = void 0;
40
+ const core = __importStar(require("../../../../../core/index.js"));
41
+ const UserInstruction_js_1 = require("../../../../types/UserInstruction.js");
42
+ exports.AddUserInstructionsRequest = core.serialization.object({
43
+ instructions: core.serialization.list(UserInstruction_js_1.UserInstruction),
44
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string()).optional()),
45
+ });
@@ -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
+ export declare const DeleteUserInstructionsRequest: core.serialization.Schema<serializers.DeleteUserInstructionsRequest.Raw, Zep.DeleteUserInstructionsRequest>;
8
+ export declare namespace DeleteUserInstructionsRequest {
9
+ interface Raw {
10
+ instruction_names?: string[] | null;
11
+ user_ids?: string[] | null;
12
+ }
13
+ }
@@ -0,0 +1,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.DeleteUserInstructionsRequest = void 0;
40
+ const core = __importStar(require("../../../../../core/index.js"));
41
+ exports.DeleteUserInstructionsRequest = core.serialization.object({
42
+ instructionNames: core.serialization.property("instruction_names", core.serialization.list(core.serialization.string()).optional()),
43
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string()).optional()),
44
+ });
@@ -1,2 +1,4 @@
1
+ export { AddUserInstructionsRequest } from "./AddUserInstructionsRequest.js";
2
+ export { DeleteUserInstructionsRequest } from "./DeleteUserInstructionsRequest.js";
1
3
  export { CreateUserRequest } from "./CreateUserRequest.js";
2
4
  export { UpdateUserRequest } from "./UpdateUserRequest.js";
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateUserRequest = exports.CreateUserRequest = void 0;
3
+ exports.UpdateUserRequest = exports.CreateUserRequest = exports.DeleteUserInstructionsRequest = exports.AddUserInstructionsRequest = void 0;
4
+ var AddUserInstructionsRequest_js_1 = require("./AddUserInstructionsRequest.js");
5
+ Object.defineProperty(exports, "AddUserInstructionsRequest", { enumerable: true, get: function () { return AddUserInstructionsRequest_js_1.AddUserInstructionsRequest; } });
6
+ var DeleteUserInstructionsRequest_js_1 = require("./DeleteUserInstructionsRequest.js");
7
+ Object.defineProperty(exports, "DeleteUserInstructionsRequest", { enumerable: true, get: function () { return DeleteUserInstructionsRequest_js_1.DeleteUserInstructionsRequest; } });
4
8
  var CreateUserRequest_js_1 = require("./CreateUserRequest.js");
5
9
  Object.defineProperty(exports, "CreateUserRequest", { enumerable: true, get: function () { return CreateUserRequest_js_1.CreateUserRequest; } });
6
10
  var UpdateUserRequest_js_1 = require("./UpdateUserRequest.js");