@getzep/zep-cloud 3.8.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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/user/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/user/client/Client.js +266 -0
- package/dist/cjs/api/resources/user/client/requests/AddUserInstructionsRequest.d.ts +19 -0
- package/dist/cjs/api/resources/user/client/requests/AddUserInstructionsRequest.js +5 -0
- package/dist/cjs/api/resources/user/client/requests/CreateUserRequest.d.ts +2 -0
- package/dist/cjs/api/resources/user/client/requests/DeleteUserInstructionsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/user/client/requests/DeleteUserInstructionsRequest.js +5 -0
- package/dist/cjs/api/resources/user/client/requests/UpdateUserRequest.d.ts +2 -0
- package/dist/cjs/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.js +5 -0
- package/dist/cjs/api/resources/user/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/types/ComparisonOperator.d.ts +3 -1
- package/dist/cjs/api/types/ComparisonOperator.js +2 -0
- package/dist/cjs/api/types/ListUserInstructionsResponse.d.ts +7 -0
- package/dist/cjs/api/types/ListUserInstructionsResponse.js +5 -0
- package/dist/cjs/api/types/SearchFilters.d.ts +4 -0
- package/dist/cjs/api/types/User.d.ts +1 -0
- package/dist/cjs/api/types/UserInstruction.d.ts +7 -0
- package/dist/cjs/api/types/UserInstruction.js +5 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/serialization/resources/user/client/requests/AddUserInstructionsRequest.d.ts +14 -0
- package/dist/cjs/serialization/resources/user/client/requests/AddUserInstructionsRequest.js +45 -0
- package/dist/cjs/serialization/resources/user/client/requests/CreateUserRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/user/client/requests/CreateUserRequest.js +1 -0
- package/dist/cjs/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.d.ts +13 -0
- package/dist/cjs/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.js +44 -0
- package/dist/cjs/serialization/resources/user/client/requests/UpdateUserRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/user/client/requests/UpdateUserRequest.js +1 -0
- package/dist/cjs/serialization/resources/user/client/requests/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/user/client/requests/index.js +5 -1
- package/dist/cjs/serialization/types/ComparisonOperator.d.ts +1 -1
- package/dist/cjs/serialization/types/ComparisonOperator.js +1 -1
- package/dist/cjs/serialization/types/ListUserInstructionsResponse.d.ts +13 -0
- package/dist/cjs/serialization/types/ListUserInstructionsResponse.js +44 -0
- package/dist/cjs/serialization/types/SearchFilters.d.ts +2 -0
- package/dist/cjs/serialization/types/SearchFilters.js +2 -0
- package/dist/cjs/serialization/types/User.d.ts +1 -0
- package/dist/cjs/serialization/types/User.js +1 -0
- package/dist/cjs/serialization/types/UserInstruction.d.ts +13 -0
- package/dist/cjs/serialization/types/UserInstruction.js +44 -0
- package/dist/cjs/serialization/types/index.d.ts +2 -0
- package/dist/cjs/serialization/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/user/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/user/client/Client.mjs +266 -0
- package/dist/esm/api/resources/user/client/requests/AddUserInstructionsRequest.d.mts +19 -0
- package/dist/esm/api/resources/user/client/requests/AddUserInstructionsRequest.mjs +4 -0
- package/dist/esm/api/resources/user/client/requests/CreateUserRequest.d.mts +2 -0
- package/dist/esm/api/resources/user/client/requests/DeleteUserInstructionsRequest.d.mts +13 -0
- package/dist/esm/api/resources/user/client/requests/DeleteUserInstructionsRequest.mjs +4 -0
- package/dist/esm/api/resources/user/client/requests/UpdateUserRequest.d.mts +2 -0
- package/dist/esm/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.d.mts +13 -0
- package/dist/esm/api/resources/user/client/requests/UserListUserSummaryInstructionsRequest.mjs +4 -0
- package/dist/esm/api/resources/user/client/requests/index.d.mts +3 -0
- package/dist/esm/api/types/ComparisonOperator.d.mts +3 -1
- package/dist/esm/api/types/ComparisonOperator.mjs +2 -0
- package/dist/esm/api/types/ListUserInstructionsResponse.d.mts +7 -0
- package/dist/esm/api/types/ListUserInstructionsResponse.mjs +4 -0
- package/dist/esm/api/types/SearchFilters.d.mts +4 -0
- package/dist/esm/api/types/User.d.mts +1 -0
- package/dist/esm/api/types/UserInstruction.d.mts +7 -0
- package/dist/esm/api/types/UserInstruction.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/serialization/resources/user/client/requests/AddUserInstructionsRequest.d.mts +14 -0
- package/dist/esm/serialization/resources/user/client/requests/AddUserInstructionsRequest.mjs +9 -0
- package/dist/esm/serialization/resources/user/client/requests/CreateUserRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/user/client/requests/CreateUserRequest.mjs +1 -0
- package/dist/esm/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.d.mts +13 -0
- package/dist/esm/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.mjs +8 -0
- package/dist/esm/serialization/resources/user/client/requests/UpdateUserRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/user/client/requests/UpdateUserRequest.mjs +1 -0
- package/dist/esm/serialization/resources/user/client/requests/index.d.mts +2 -0
- package/dist/esm/serialization/resources/user/client/requests/index.mjs +2 -0
- package/dist/esm/serialization/types/ComparisonOperator.d.mts +1 -1
- package/dist/esm/serialization/types/ComparisonOperator.mjs +1 -1
- package/dist/esm/serialization/types/ListUserInstructionsResponse.d.mts +13 -0
- package/dist/esm/serialization/types/ListUserInstructionsResponse.mjs +8 -0
- package/dist/esm/serialization/types/SearchFilters.d.mts +2 -0
- package/dist/esm/serialization/types/SearchFilters.mjs +2 -0
- package/dist/esm/serialization/types/User.d.mts +1 -0
- package/dist/esm/serialization/types/User.mjs +1 -0
- package/dist/esm/serialization/types/UserInstruction.d.mts +13 -0
- package/dist/esm/serialization/types/UserInstruction.mjs +8 -0
- package/dist/esm/serialization/types/index.d.mts +2 -0
- package/dist/esm/serialization/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +196 -0
package/dist/cjs/serialization/resources/user/client/requests/DeleteUserInstructionsRequest.js
ADDED
|
@@ -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
|
+
});
|
|
@@ -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()),
|
|
@@ -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");
|
|
@@ -6,5 +6,5 @@ import * as Zep from "../../api/index.js";
|
|
|
6
6
|
import * as core from "../../core/index.js";
|
|
7
7
|
export declare const ComparisonOperator: core.serialization.Schema<serializers.ComparisonOperator.Raw, Zep.ComparisonOperator>;
|
|
8
8
|
export declare namespace ComparisonOperator {
|
|
9
|
-
type Raw = "=" | "<>" | ">" | "<" | ">=" | "<=";
|
|
9
|
+
type Raw = "=" | "<>" | ">" | "<" | ">=" | "<=" | "IS NULL" | "IS NOT NULL";
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ComparisonOperator = void 0;
|
|
40
40
|
const core = __importStar(require("../../core/index.js"));
|
|
41
|
-
exports.ComparisonOperator = core.serialization.enum_(["=", "<>", ">", "<", ">=", "<="]);
|
|
41
|
+
exports.ComparisonOperator = core.serialization.enum_(["=", "<>", ">", "<", ">=", "<=", "IS NULL", "IS NOT NULL"]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.js";
|
|
5
|
+
import * as Zep from "../../api/index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
import { UserInstruction } from "./UserInstruction.js";
|
|
8
|
+
export declare const ListUserInstructionsResponse: core.serialization.ObjectSchema<serializers.ListUserInstructionsResponse.Raw, Zep.ListUserInstructionsResponse>;
|
|
9
|
+
export declare namespace ListUserInstructionsResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
instructions?: UserInstruction.Raw[] | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,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.ListUserInstructionsResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../core/index.js"));
|
|
41
|
+
const UserInstruction_js_1 = require("./UserInstruction.js");
|
|
42
|
+
exports.ListUserInstructionsResponse = core.serialization.object({
|
|
43
|
+
instructions: core.serialization.list(UserInstruction_js_1.UserInstruction).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()),
|
|
@@ -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 UserInstruction: core.serialization.ObjectSchema<serializers.UserInstruction.Raw, Zep.UserInstruction>;
|
|
8
|
+
export declare namespace UserInstruction {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name: string;
|
|
11
|
+
text: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,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.UserInstruction = void 0;
|
|
40
|
+
const core = __importStar(require("../../core/index.js"));
|
|
41
|
+
exports.UserInstruction = core.serialization.object({
|
|
42
|
+
name: core.serialization.string(),
|
|
43
|
+
text: core.serialization.string(),
|
|
44
|
+
});
|
|
@@ -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);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.
|
|
1
|
+
export declare const SDK_VERSION = "3.10.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -12,8 +12,8 @@ export class ZepClient {
|
|
|
12
12
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
13
13
|
"X-Fern-Language": "JavaScript",
|
|
14
14
|
"X-Fern-SDK-Name": "zep-cloud",
|
|
15
|
-
"X-Fern-SDK-Version": "3.
|
|
16
|
-
"User-Agent": "zep-cloud/3.
|
|
15
|
+
"X-Fern-SDK-Version": "3.10.0",
|
|
16
|
+
"User-Agent": "zep-cloud/3.10.0",
|
|
17
17
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
18
18
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
19
19
|
}, _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
|
*
|
|
@@ -20,6 +20,272 @@ export class User {
|
|
|
20
20
|
constructor(_options = {}) {
|
|
21
21
|
this._options = _options;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Lists all user summary instructions for a project, user.
|
|
25
|
+
*
|
|
26
|
+
* @param {Zep.UserListUserSummaryInstructionsRequest} request
|
|
27
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link Zep.BadRequestError}
|
|
30
|
+
* @throws {@link Zep.InternalServerError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.user.listUserSummaryInstructions()
|
|
34
|
+
*/
|
|
35
|
+
listUserSummaryInstructions(request = {}, requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__listUserSummaryInstructions(request, requestOptions));
|
|
37
|
+
}
|
|
38
|
+
__listUserSummaryInstructions() {
|
|
39
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
40
|
+
var _a, _b, _c, _d;
|
|
41
|
+
const { userId } = request;
|
|
42
|
+
const _queryParams = {};
|
|
43
|
+
if (userId != null) {
|
|
44
|
+
_queryParams["user_id"] = userId;
|
|
45
|
+
}
|
|
46
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
47
|
+
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"),
|
|
48
|
+
method: "GET",
|
|
49
|
+
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
50
|
+
queryParameters: _queryParams,
|
|
51
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
52
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
53
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
54
|
+
});
|
|
55
|
+
if (_response.ok) {
|
|
56
|
+
return {
|
|
57
|
+
data: serializers.ListUserInstructionsResponse.parseOrThrow(_response.body, {
|
|
58
|
+
unrecognizedObjectKeys: "passthrough",
|
|
59
|
+
allowUnrecognizedUnionMembers: true,
|
|
60
|
+
allowUnrecognizedEnumValues: true,
|
|
61
|
+
skipValidation: true,
|
|
62
|
+
breadcrumbsPrefix: ["response"],
|
|
63
|
+
}),
|
|
64
|
+
rawResponse: _response.rawResponse,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
if (_response.error.reason === "status-code") {
|
|
68
|
+
switch (_response.error.statusCode) {
|
|
69
|
+
case 400:
|
|
70
|
+
throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
71
|
+
unrecognizedObjectKeys: "passthrough",
|
|
72
|
+
allowUnrecognizedUnionMembers: true,
|
|
73
|
+
allowUnrecognizedEnumValues: true,
|
|
74
|
+
skipValidation: true,
|
|
75
|
+
breadcrumbsPrefix: ["response"],
|
|
76
|
+
}), _response.rawResponse);
|
|
77
|
+
case 500:
|
|
78
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
79
|
+
unrecognizedObjectKeys: "passthrough",
|
|
80
|
+
allowUnrecognizedUnionMembers: true,
|
|
81
|
+
allowUnrecognizedEnumValues: true,
|
|
82
|
+
skipValidation: true,
|
|
83
|
+
breadcrumbsPrefix: ["response"],
|
|
84
|
+
}), _response.rawResponse);
|
|
85
|
+
default:
|
|
86
|
+
throw new errors.ZepError({
|
|
87
|
+
statusCode: _response.error.statusCode,
|
|
88
|
+
body: _response.error.body,
|
|
89
|
+
rawResponse: _response.rawResponse,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
switch (_response.error.reason) {
|
|
94
|
+
case "non-json":
|
|
95
|
+
throw new errors.ZepError({
|
|
96
|
+
statusCode: _response.error.statusCode,
|
|
97
|
+
body: _response.error.rawBody,
|
|
98
|
+
rawResponse: _response.rawResponse,
|
|
99
|
+
});
|
|
100
|
+
case "timeout":
|
|
101
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /user-summary-instructions.");
|
|
102
|
+
case "unknown":
|
|
103
|
+
throw new errors.ZepError({
|
|
104
|
+
message: _response.error.errorMessage,
|
|
105
|
+
rawResponse: _response.rawResponse,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Adds new summary instructions for users graphs without removing existing ones. If user_ids is empty, adds to project-wide default instructions.
|
|
112
|
+
*
|
|
113
|
+
* @param {Zep.AddUserInstructionsRequest} request
|
|
114
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link Zep.BadRequestError}
|
|
117
|
+
* @throws {@link Zep.InternalServerError}
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* await client.user.addUserSummaryInstructions({
|
|
121
|
+
* instructions: [{
|
|
122
|
+
* name: "name",
|
|
123
|
+
* text: "text"
|
|
124
|
+
* }]
|
|
125
|
+
* })
|
|
126
|
+
*/
|
|
127
|
+
addUserSummaryInstructions(request, requestOptions) {
|
|
128
|
+
return core.HttpResponsePromise.fromPromise(this.__addUserSummaryInstructions(request, requestOptions));
|
|
129
|
+
}
|
|
130
|
+
__addUserSummaryInstructions(request, requestOptions) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
var _a, _b, _c, _d;
|
|
133
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
134
|
+
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"),
|
|
135
|
+
method: "POST",
|
|
136
|
+
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
137
|
+
contentType: "application/json",
|
|
138
|
+
requestType: "json",
|
|
139
|
+
body: serializers.AddUserInstructionsRequest.jsonOrThrow(request, {
|
|
140
|
+
unrecognizedObjectKeys: "strip",
|
|
141
|
+
omitUndefined: true,
|
|
142
|
+
}),
|
|
143
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
144
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
145
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
146
|
+
});
|
|
147
|
+
if (_response.ok) {
|
|
148
|
+
return {
|
|
149
|
+
data: serializers.SuccessResponse.parseOrThrow(_response.body, {
|
|
150
|
+
unrecognizedObjectKeys: "passthrough",
|
|
151
|
+
allowUnrecognizedUnionMembers: true,
|
|
152
|
+
allowUnrecognizedEnumValues: true,
|
|
153
|
+
skipValidation: true,
|
|
154
|
+
breadcrumbsPrefix: ["response"],
|
|
155
|
+
}),
|
|
156
|
+
rawResponse: _response.rawResponse,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
if (_response.error.reason === "status-code") {
|
|
160
|
+
switch (_response.error.statusCode) {
|
|
161
|
+
case 400:
|
|
162
|
+
throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
163
|
+
unrecognizedObjectKeys: "passthrough",
|
|
164
|
+
allowUnrecognizedUnionMembers: true,
|
|
165
|
+
allowUnrecognizedEnumValues: true,
|
|
166
|
+
skipValidation: true,
|
|
167
|
+
breadcrumbsPrefix: ["response"],
|
|
168
|
+
}), _response.rawResponse);
|
|
169
|
+
case 500:
|
|
170
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
171
|
+
unrecognizedObjectKeys: "passthrough",
|
|
172
|
+
allowUnrecognizedUnionMembers: true,
|
|
173
|
+
allowUnrecognizedEnumValues: true,
|
|
174
|
+
skipValidation: true,
|
|
175
|
+
breadcrumbsPrefix: ["response"],
|
|
176
|
+
}), _response.rawResponse);
|
|
177
|
+
default:
|
|
178
|
+
throw new errors.ZepError({
|
|
179
|
+
statusCode: _response.error.statusCode,
|
|
180
|
+
body: _response.error.body,
|
|
181
|
+
rawResponse: _response.rawResponse,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
switch (_response.error.reason) {
|
|
186
|
+
case "non-json":
|
|
187
|
+
throw new errors.ZepError({
|
|
188
|
+
statusCode: _response.error.statusCode,
|
|
189
|
+
body: _response.error.rawBody,
|
|
190
|
+
rawResponse: _response.rawResponse,
|
|
191
|
+
});
|
|
192
|
+
case "timeout":
|
|
193
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling POST /user-summary-instructions.");
|
|
194
|
+
case "unknown":
|
|
195
|
+
throw new errors.ZepError({
|
|
196
|
+
message: _response.error.errorMessage,
|
|
197
|
+
rawResponse: _response.rawResponse,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Deletes user summary/instructions for users or project wide defaults.
|
|
204
|
+
*
|
|
205
|
+
* @param {Zep.DeleteUserInstructionsRequest} request
|
|
206
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
207
|
+
*
|
|
208
|
+
* @throws {@link Zep.BadRequestError}
|
|
209
|
+
* @throws {@link Zep.InternalServerError}
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* await client.user.deleteUserSummaryInstructions()
|
|
213
|
+
*/
|
|
214
|
+
deleteUserSummaryInstructions(request = {}, requestOptions) {
|
|
215
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteUserSummaryInstructions(request, requestOptions));
|
|
216
|
+
}
|
|
217
|
+
__deleteUserSummaryInstructions() {
|
|
218
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
219
|
+
var _a, _b, _c, _d;
|
|
220
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
221
|
+
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"),
|
|
222
|
+
method: "DELETE",
|
|
223
|
+
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
224
|
+
contentType: "application/json",
|
|
225
|
+
requestType: "json",
|
|
226
|
+
body: serializers.DeleteUserInstructionsRequest.jsonOrThrow(request, {
|
|
227
|
+
unrecognizedObjectKeys: "strip",
|
|
228
|
+
omitUndefined: true,
|
|
229
|
+
}),
|
|
230
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
231
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
232
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
233
|
+
});
|
|
234
|
+
if (_response.ok) {
|
|
235
|
+
return {
|
|
236
|
+
data: serializers.SuccessResponse.parseOrThrow(_response.body, {
|
|
237
|
+
unrecognizedObjectKeys: "passthrough",
|
|
238
|
+
allowUnrecognizedUnionMembers: true,
|
|
239
|
+
allowUnrecognizedEnumValues: true,
|
|
240
|
+
skipValidation: true,
|
|
241
|
+
breadcrumbsPrefix: ["response"],
|
|
242
|
+
}),
|
|
243
|
+
rawResponse: _response.rawResponse,
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
if (_response.error.reason === "status-code") {
|
|
247
|
+
switch (_response.error.statusCode) {
|
|
248
|
+
case 400:
|
|
249
|
+
throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
250
|
+
unrecognizedObjectKeys: "passthrough",
|
|
251
|
+
allowUnrecognizedUnionMembers: true,
|
|
252
|
+
allowUnrecognizedEnumValues: true,
|
|
253
|
+
skipValidation: true,
|
|
254
|
+
breadcrumbsPrefix: ["response"],
|
|
255
|
+
}), _response.rawResponse);
|
|
256
|
+
case 500:
|
|
257
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
258
|
+
unrecognizedObjectKeys: "passthrough",
|
|
259
|
+
allowUnrecognizedUnionMembers: true,
|
|
260
|
+
allowUnrecognizedEnumValues: true,
|
|
261
|
+
skipValidation: true,
|
|
262
|
+
breadcrumbsPrefix: ["response"],
|
|
263
|
+
}), _response.rawResponse);
|
|
264
|
+
default:
|
|
265
|
+
throw new errors.ZepError({
|
|
266
|
+
statusCode: _response.error.statusCode,
|
|
267
|
+
body: _response.error.body,
|
|
268
|
+
rawResponse: _response.rawResponse,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
switch (_response.error.reason) {
|
|
273
|
+
case "non-json":
|
|
274
|
+
throw new errors.ZepError({
|
|
275
|
+
statusCode: _response.error.statusCode,
|
|
276
|
+
body: _response.error.rawBody,
|
|
277
|
+
rawResponse: _response.rawResponse,
|
|
278
|
+
});
|
|
279
|
+
case "timeout":
|
|
280
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling DELETE /user-summary-instructions.");
|
|
281
|
+
case "unknown":
|
|
282
|
+
throw new errors.ZepError({
|
|
283
|
+
message: _response.error.errorMessage,
|
|
284
|
+
rawResponse: _response.rawResponse,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}
|
|
23
289
|
/**
|
|
24
290
|
* Adds a user.
|
|
25
291
|
*
|