@getzep/zep-cloud 3.7.0 → 3.8.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.d.ts +3 -0
- package/dist/cjs/Client.js +11 -6
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/project/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/project/client/Client.js +156 -0
- package/dist/cjs/api/resources/project/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/project/client/index.js +2 -0
- package/dist/cjs/api/resources/project/index.d.ts +1 -0
- package/dist/cjs/api/resources/project/index.js +17 -0
- package/dist/cjs/api/types/ProjectInfo.d.ts +9 -0
- package/dist/cjs/api/types/ProjectInfo.js +5 -0
- package/dist/cjs/api/types/ProjectInfoResponse.d.ts +7 -0
- package/dist/cjs/api/types/ProjectInfoResponse.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/types/ProjectInfo.d.ts +15 -0
- package/dist/cjs/serialization/types/ProjectInfo.js +46 -0
- package/dist/cjs/serialization/types/ProjectInfoResponse.d.ts +13 -0
- package/dist/cjs/serialization/types/ProjectInfoResponse.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.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/project/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/project/client/Client.mjs +119 -0
- package/dist/esm/api/resources/project/client/index.d.mts +1 -0
- package/dist/esm/api/resources/project/client/index.mjs +1 -0
- package/dist/esm/api/resources/project/index.d.mts +1 -0
- package/dist/esm/api/resources/project/index.mjs +1 -0
- package/dist/esm/api/types/ProjectInfo.d.mts +9 -0
- package/dist/esm/api/types/ProjectInfo.mjs +4 -0
- package/dist/esm/api/types/ProjectInfoResponse.d.mts +7 -0
- package/dist/esm/api/types/ProjectInfoResponse.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/types/ProjectInfo.d.mts +15 -0
- package/dist/esm/serialization/types/ProjectInfo.mjs +10 -0
- package/dist/esm/serialization/types/ProjectInfoResponse.d.mts +13 -0
- package/dist/esm/serialization/types/ProjectInfoResponse.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 +57 -0
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as environments from "./environments.js";
|
|
5
5
|
import * as core from "./core/index.js";
|
|
6
6
|
import { Graph } from "./api/resources/graph/client/Client.js";
|
|
7
|
+
import { Project } from "./api/resources/project/client/Client.js";
|
|
7
8
|
import { Thread } from "./api/resources/thread/client/Client.js";
|
|
8
9
|
import { User } from "./api/resources/user/client/Client.js";
|
|
9
10
|
export declare namespace ZepClient {
|
|
@@ -30,10 +31,12 @@ export declare namespace ZepClient {
|
|
|
30
31
|
export declare class ZepClient {
|
|
31
32
|
protected readonly _options: ZepClient.Options;
|
|
32
33
|
protected _graph: Graph | undefined;
|
|
34
|
+
protected _project: Project | undefined;
|
|
33
35
|
protected _thread: Thread | undefined;
|
|
34
36
|
protected _user: User | undefined;
|
|
35
37
|
constructor(_options?: ZepClient.Options);
|
|
36
38
|
get graph(): Graph;
|
|
39
|
+
get project(): Project;
|
|
37
40
|
get thread(): Thread;
|
|
38
41
|
get user(): User;
|
|
39
42
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -40,15 +40,16 @@ exports.ZepClient = void 0;
|
|
|
40
40
|
const core = __importStar(require("./core/index.js"));
|
|
41
41
|
const headers_js_1 = require("./core/headers.js");
|
|
42
42
|
const Client_js_1 = require("./api/resources/graph/client/Client.js");
|
|
43
|
-
const Client_js_2 = require("./api/resources/
|
|
44
|
-
const Client_js_3 = require("./api/resources/
|
|
43
|
+
const Client_js_2 = require("./api/resources/project/client/Client.js");
|
|
44
|
+
const Client_js_3 = require("./api/resources/thread/client/Client.js");
|
|
45
|
+
const Client_js_4 = require("./api/resources/user/client/Client.js");
|
|
45
46
|
class ZepClient {
|
|
46
47
|
constructor(_options = {}) {
|
|
47
48
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
48
49
|
"X-Fern-Language": "JavaScript",
|
|
49
50
|
"X-Fern-SDK-Name": "zep-cloud",
|
|
50
|
-
"X-Fern-SDK-Version": "3.
|
|
51
|
-
"User-Agent": "zep-cloud/3.
|
|
51
|
+
"X-Fern-SDK-Version": "3.8.0",
|
|
52
|
+
"User-Agent": "zep-cloud/3.8.0",
|
|
52
53
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
53
54
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
54
55
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -57,13 +58,17 @@ class ZepClient {
|
|
|
57
58
|
var _a;
|
|
58
59
|
return ((_a = this._graph) !== null && _a !== void 0 ? _a : (this._graph = new Client_js_1.Graph(this._options)));
|
|
59
60
|
}
|
|
61
|
+
get project() {
|
|
62
|
+
var _a;
|
|
63
|
+
return ((_a = this._project) !== null && _a !== void 0 ? _a : (this._project = new Client_js_2.Project(this._options)));
|
|
64
|
+
}
|
|
60
65
|
get thread() {
|
|
61
66
|
var _a;
|
|
62
|
-
return ((_a = this._thread) !== null && _a !== void 0 ? _a : (this._thread = new
|
|
67
|
+
return ((_a = this._thread) !== null && _a !== void 0 ? _a : (this._thread = new Client_js_3.Thread(this._options)));
|
|
63
68
|
}
|
|
64
69
|
get user() {
|
|
65
70
|
var _a;
|
|
66
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new
|
|
71
|
+
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_4.User(this._options)));
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
74
|
exports.ZepClient = ZepClient;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as thread from "./thread/index.js";
|
|
2
2
|
export * from "./thread/types/index.js";
|
|
3
3
|
export * as graph from "./graph/index.js";
|
|
4
|
+
export * as project from "./project/index.js";
|
|
4
5
|
export * as user from "./user/index.js";
|
|
5
6
|
export * from "./graph/client/requests/index.js";
|
|
6
7
|
export * from "./thread/client/requests/index.js";
|
|
@@ -36,10 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.user = exports.graph = exports.thread = void 0;
|
|
39
|
+
exports.user = exports.project = exports.graph = exports.thread = void 0;
|
|
40
40
|
exports.thread = __importStar(require("./thread/index.js"));
|
|
41
41
|
__exportStar(require("./thread/types/index.js"), exports);
|
|
42
42
|
exports.graph = __importStar(require("./graph/index.js"));
|
|
43
|
+
exports.project = __importStar(require("./project/index.js"));
|
|
43
44
|
exports.user = __importStar(require("./user/index.js"));
|
|
44
45
|
__exportStar(require("./graph/client/requests/index.js"), exports);
|
|
45
46
|
__exportStar(require("./thread/client/requests/index.js"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../core/index.js";
|
|
6
|
+
import * as Zep from "../../../index.js";
|
|
7
|
+
export declare namespace Project {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ZepEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional headers to include in the request. */
|
|
25
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare class Project {
|
|
29
|
+
protected readonly _options: Project.Options;
|
|
30
|
+
constructor(_options?: Project.Options);
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve project info based on the provided api key.
|
|
33
|
+
*
|
|
34
|
+
* @param {Project.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link Zep.BadRequestError}
|
|
37
|
+
* @throws {@link Zep.NotFoundError}
|
|
38
|
+
* @throws {@link Zep.InternalServerError}
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.project.get()
|
|
42
|
+
*/
|
|
43
|
+
get(requestOptions?: Project.RequestOptions): core.HttpResponsePromise<Zep.ProjectInfoResponse>;
|
|
44
|
+
private __get;
|
|
45
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
46
|
+
Authorization: string;
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Project = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
51
|
+
const Zep = __importStar(require("../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
|
+
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
54
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
55
|
+
class Project {
|
|
56
|
+
constructor(_options = {}) {
|
|
57
|
+
this._options = _options;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Retrieve project info based on the provided api key.
|
|
61
|
+
*
|
|
62
|
+
* @param {Project.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Zep.BadRequestError}
|
|
65
|
+
* @throws {@link Zep.NotFoundError}
|
|
66
|
+
* @throws {@link Zep.InternalServerError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.project.get()
|
|
70
|
+
*/
|
|
71
|
+
get(requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
|
|
73
|
+
}
|
|
74
|
+
__get(requestOptions) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
var _a, _b, _c, _d;
|
|
77
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, "projects/info"),
|
|
79
|
+
method: "GET",
|
|
80
|
+
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
|
+
});
|
|
85
|
+
if (_response.ok) {
|
|
86
|
+
return {
|
|
87
|
+
data: serializers.ProjectInfoResponse.parseOrThrow(_response.body, {
|
|
88
|
+
unrecognizedObjectKeys: "passthrough",
|
|
89
|
+
allowUnrecognizedUnionMembers: true,
|
|
90
|
+
allowUnrecognizedEnumValues: true,
|
|
91
|
+
skipValidation: true,
|
|
92
|
+
breadcrumbsPrefix: ["response"],
|
|
93
|
+
}),
|
|
94
|
+
rawResponse: _response.rawResponse,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
if (_response.error.reason === "status-code") {
|
|
98
|
+
switch (_response.error.statusCode) {
|
|
99
|
+
case 400:
|
|
100
|
+
throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
101
|
+
unrecognizedObjectKeys: "passthrough",
|
|
102
|
+
allowUnrecognizedUnionMembers: true,
|
|
103
|
+
allowUnrecognizedEnumValues: true,
|
|
104
|
+
skipValidation: true,
|
|
105
|
+
breadcrumbsPrefix: ["response"],
|
|
106
|
+
}), _response.rawResponse);
|
|
107
|
+
case 404:
|
|
108
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
109
|
+
unrecognizedObjectKeys: "passthrough",
|
|
110
|
+
allowUnrecognizedUnionMembers: true,
|
|
111
|
+
allowUnrecognizedEnumValues: true,
|
|
112
|
+
skipValidation: true,
|
|
113
|
+
breadcrumbsPrefix: ["response"],
|
|
114
|
+
}), _response.rawResponse);
|
|
115
|
+
case 500:
|
|
116
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
117
|
+
unrecognizedObjectKeys: "passthrough",
|
|
118
|
+
allowUnrecognizedUnionMembers: true,
|
|
119
|
+
allowUnrecognizedEnumValues: true,
|
|
120
|
+
skipValidation: true,
|
|
121
|
+
breadcrumbsPrefix: ["response"],
|
|
122
|
+
}), _response.rawResponse);
|
|
123
|
+
default:
|
|
124
|
+
throw new errors.ZepError({
|
|
125
|
+
statusCode: _response.error.statusCode,
|
|
126
|
+
body: _response.error.body,
|
|
127
|
+
rawResponse: _response.rawResponse,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
switch (_response.error.reason) {
|
|
132
|
+
case "non-json":
|
|
133
|
+
throw new errors.ZepError({
|
|
134
|
+
statusCode: _response.error.statusCode,
|
|
135
|
+
body: _response.error.rawBody,
|
|
136
|
+
rawResponse: _response.rawResponse,
|
|
137
|
+
});
|
|
138
|
+
case "timeout":
|
|
139
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /projects/info.");
|
|
140
|
+
case "unknown":
|
|
141
|
+
throw new errors.ZepError({
|
|
142
|
+
message: _response.error.errorMessage,
|
|
143
|
+
rawResponse: _response.rawResponse,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
_getCustomAuthorizationHeaders() {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
var _a;
|
|
151
|
+
const apiKeyValue = (_a = (yield core.Supplier.get(this._options.apiKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["ZEP_API_KEY"];
|
|
152
|
+
return { Authorization: `Api-Key ${apiKeyValue}` };
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.Project = Project;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -18,6 +18,8 @@ export * from "./EpisodeResponse.js";
|
|
|
18
18
|
export * from "./GraphListResponse.js";
|
|
19
19
|
export * from "./GraphNodesRequest.js";
|
|
20
20
|
export * from "./GraphSearchResults.js";
|
|
21
|
+
export * from "./ProjectInfo.js";
|
|
22
|
+
export * from "./ProjectInfoResponse.js";
|
|
21
23
|
export * from "./RoleType.js";
|
|
22
24
|
export * from "./SuccessResponse.js";
|
|
23
25
|
export * from "./Thread.js";
|
|
@@ -34,6 +34,8 @@ __exportStar(require("./EpisodeResponse.js"), exports);
|
|
|
34
34
|
__exportStar(require("./GraphListResponse.js"), exports);
|
|
35
35
|
__exportStar(require("./GraphNodesRequest.js"), exports);
|
|
36
36
|
__exportStar(require("./GraphSearchResults.js"), exports);
|
|
37
|
+
__exportStar(require("./ProjectInfo.js"), exports);
|
|
38
|
+
__exportStar(require("./ProjectInfoResponse.js"), exports);
|
|
37
39
|
__exportStar(require("./RoleType.js"), exports);
|
|
38
40
|
__exportStar(require("./SuccessResponse.js"), exports);
|
|
39
41
|
__exportStar(require("./Thread.js"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.js";
|
|
5
|
+
import * as Zep from "../../api/index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare const ProjectInfo: core.serialization.ObjectSchema<serializers.ProjectInfo.Raw, Zep.ProjectInfo>;
|
|
8
|
+
export declare namespace ProjectInfo {
|
|
9
|
+
interface Raw {
|
|
10
|
+
created_at?: string | null;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
name?: string | null;
|
|
13
|
+
uuid?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ProjectInfo = void 0;
|
|
40
|
+
const core = __importStar(require("../../core/index.js"));
|
|
41
|
+
exports.ProjectInfo = core.serialization.object({
|
|
42
|
+
createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
|
|
43
|
+
description: core.serialization.string().optional(),
|
|
44
|
+
name: core.serialization.string().optional(),
|
|
45
|
+
uuid: core.serialization.string().optional(),
|
|
46
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.js";
|
|
5
|
+
import * as Zep from "../../api/index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
import { ProjectInfo } from "./ProjectInfo.js";
|
|
8
|
+
export declare const ProjectInfoResponse: core.serialization.ObjectSchema<serializers.ProjectInfoResponse.Raw, Zep.ProjectInfoResponse>;
|
|
9
|
+
export declare namespace ProjectInfoResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
project?: ProjectInfo.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ProjectInfoResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../core/index.js"));
|
|
41
|
+
const ProjectInfo_js_1 = require("./ProjectInfo.js");
|
|
42
|
+
exports.ProjectInfoResponse = core.serialization.object({
|
|
43
|
+
project: ProjectInfo_js_1.ProjectInfo.optional(),
|
|
44
|
+
});
|
|
@@ -18,6 +18,8 @@ export * from "./EpisodeResponse.js";
|
|
|
18
18
|
export * from "./GraphListResponse.js";
|
|
19
19
|
export * from "./GraphNodesRequest.js";
|
|
20
20
|
export * from "./GraphSearchResults.js";
|
|
21
|
+
export * from "./ProjectInfo.js";
|
|
22
|
+
export * from "./ProjectInfoResponse.js";
|
|
21
23
|
export * from "./RoleType.js";
|
|
22
24
|
export * from "./SuccessResponse.js";
|
|
23
25
|
export * from "./Thread.js";
|
|
@@ -34,6 +34,8 @@ __exportStar(require("./EpisodeResponse.js"), exports);
|
|
|
34
34
|
__exportStar(require("./GraphListResponse.js"), exports);
|
|
35
35
|
__exportStar(require("./GraphNodesRequest.js"), exports);
|
|
36
36
|
__exportStar(require("./GraphSearchResults.js"), exports);
|
|
37
|
+
__exportStar(require("./ProjectInfo.js"), exports);
|
|
38
|
+
__exportStar(require("./ProjectInfoResponse.js"), exports);
|
|
37
39
|
__exportStar(require("./RoleType.js"), exports);
|
|
38
40
|
__exportStar(require("./SuccessResponse.js"), exports);
|
|
39
41
|
__exportStar(require("./Thread.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.
|
|
1
|
+
export declare const SDK_VERSION = "3.8.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as environments from "./environments.mjs";
|
|
5
5
|
import * as core from "./core/index.mjs";
|
|
6
6
|
import { Graph } from "./api/resources/graph/client/Client.mjs";
|
|
7
|
+
import { Project } from "./api/resources/project/client/Client.mjs";
|
|
7
8
|
import { Thread } from "./api/resources/thread/client/Client.mjs";
|
|
8
9
|
import { User } from "./api/resources/user/client/Client.mjs";
|
|
9
10
|
export declare namespace ZepClient {
|
|
@@ -30,10 +31,12 @@ export declare namespace ZepClient {
|
|
|
30
31
|
export declare class ZepClient {
|
|
31
32
|
protected readonly _options: ZepClient.Options;
|
|
32
33
|
protected _graph: Graph | undefined;
|
|
34
|
+
protected _project: Project | undefined;
|
|
33
35
|
protected _thread: Thread | undefined;
|
|
34
36
|
protected _user: User | undefined;
|
|
35
37
|
constructor(_options?: ZepClient.Options);
|
|
36
38
|
get graph(): Graph;
|
|
39
|
+
get project(): Project;
|
|
37
40
|
get thread(): Thread;
|
|
38
41
|
get user(): User;
|
|
39
42
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as core from "./core/index.mjs";
|
|
5
5
|
import { mergeHeaders } from "./core/headers.mjs";
|
|
6
6
|
import { Graph } from "./api/resources/graph/client/Client.mjs";
|
|
7
|
+
import { Project } from "./api/resources/project/client/Client.mjs";
|
|
7
8
|
import { Thread } from "./api/resources/thread/client/Client.mjs";
|
|
8
9
|
import { User } from "./api/resources/user/client/Client.mjs";
|
|
9
10
|
export class ZepClient {
|
|
@@ -11,8 +12,8 @@ export class ZepClient {
|
|
|
11
12
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
12
13
|
"X-Fern-Language": "JavaScript",
|
|
13
14
|
"X-Fern-SDK-Name": "zep-cloud",
|
|
14
|
-
"X-Fern-SDK-Version": "3.
|
|
15
|
-
"User-Agent": "zep-cloud/3.
|
|
15
|
+
"X-Fern-SDK-Version": "3.8.0",
|
|
16
|
+
"User-Agent": "zep-cloud/3.8.0",
|
|
16
17
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
17
18
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
18
19
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -21,6 +22,10 @@ export class ZepClient {
|
|
|
21
22
|
var _a;
|
|
22
23
|
return ((_a = this._graph) !== null && _a !== void 0 ? _a : (this._graph = new Graph(this._options)));
|
|
23
24
|
}
|
|
25
|
+
get project() {
|
|
26
|
+
var _a;
|
|
27
|
+
return ((_a = this._project) !== null && _a !== void 0 ? _a : (this._project = new Project(this._options)));
|
|
28
|
+
}
|
|
24
29
|
get thread() {
|
|
25
30
|
var _a;
|
|
26
31
|
return ((_a = this._thread) !== null && _a !== void 0 ? _a : (this._thread = new Thread(this._options)));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as thread from "./thread/index.mjs";
|
|
2
2
|
export * from "./thread/types/index.mjs";
|
|
3
3
|
export * as graph from "./graph/index.mjs";
|
|
4
|
+
export * as project from "./project/index.mjs";
|
|
4
5
|
export * as user from "./user/index.mjs";
|
|
5
6
|
export * from "./graph/client/requests/index.mjs";
|
|
6
7
|
export * from "./thread/client/requests/index.mjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as thread from "./thread/index.mjs";
|
|
2
2
|
export * from "./thread/types/index.mjs";
|
|
3
3
|
export * as graph from "./graph/index.mjs";
|
|
4
|
+
export * as project from "./project/index.mjs";
|
|
4
5
|
export * as user from "./user/index.mjs";
|
|
5
6
|
export * from "./graph/client/requests/index.mjs";
|
|
6
7
|
export * from "./thread/client/requests/index.mjs";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import * as Zep from "../../../index.mjs";
|
|
7
|
+
export declare namespace Project {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ZepEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional headers to include in the request. */
|
|
25
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare class Project {
|
|
29
|
+
protected readonly _options: Project.Options;
|
|
30
|
+
constructor(_options?: Project.Options);
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve project info based on the provided api key.
|
|
33
|
+
*
|
|
34
|
+
* @param {Project.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link Zep.BadRequestError}
|
|
37
|
+
* @throws {@link Zep.NotFoundError}
|
|
38
|
+
* @throws {@link Zep.InternalServerError}
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.project.get()
|
|
42
|
+
*/
|
|
43
|
+
get(requestOptions?: Project.RequestOptions): core.HttpResponsePromise<Zep.ProjectInfoResponse>;
|
|
44
|
+
private __get;
|
|
45
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
46
|
+
Authorization: string;
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../core/index.mjs";
|
|
15
|
+
import * as Zep from "../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
|
+
import * as serializers from "../../../../serialization/index.mjs";
|
|
18
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
19
|
+
export class Project {
|
|
20
|
+
constructor(_options = {}) {
|
|
21
|
+
this._options = _options;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve project info based on the provided api key.
|
|
25
|
+
*
|
|
26
|
+
* @param {Project.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Zep.BadRequestError}
|
|
29
|
+
* @throws {@link Zep.NotFoundError}
|
|
30
|
+
* @throws {@link Zep.InternalServerError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.project.get()
|
|
34
|
+
*/
|
|
35
|
+
get(requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
|
|
37
|
+
}
|
|
38
|
+
__get(requestOptions) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
var _a, _b, _c, _d;
|
|
41
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
42
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, "projects/info"),
|
|
43
|
+
method: "GET",
|
|
44
|
+
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
45
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
46
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
47
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
48
|
+
});
|
|
49
|
+
if (_response.ok) {
|
|
50
|
+
return {
|
|
51
|
+
data: serializers.ProjectInfoResponse.parseOrThrow(_response.body, {
|
|
52
|
+
unrecognizedObjectKeys: "passthrough",
|
|
53
|
+
allowUnrecognizedUnionMembers: true,
|
|
54
|
+
allowUnrecognizedEnumValues: true,
|
|
55
|
+
skipValidation: true,
|
|
56
|
+
breadcrumbsPrefix: ["response"],
|
|
57
|
+
}),
|
|
58
|
+
rawResponse: _response.rawResponse,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
if (_response.error.reason === "status-code") {
|
|
62
|
+
switch (_response.error.statusCode) {
|
|
63
|
+
case 400:
|
|
64
|
+
throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
65
|
+
unrecognizedObjectKeys: "passthrough",
|
|
66
|
+
allowUnrecognizedUnionMembers: true,
|
|
67
|
+
allowUnrecognizedEnumValues: true,
|
|
68
|
+
skipValidation: true,
|
|
69
|
+
breadcrumbsPrefix: ["response"],
|
|
70
|
+
}), _response.rawResponse);
|
|
71
|
+
case 404:
|
|
72
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
73
|
+
unrecognizedObjectKeys: "passthrough",
|
|
74
|
+
allowUnrecognizedUnionMembers: true,
|
|
75
|
+
allowUnrecognizedEnumValues: true,
|
|
76
|
+
skipValidation: true,
|
|
77
|
+
breadcrumbsPrefix: ["response"],
|
|
78
|
+
}), _response.rawResponse);
|
|
79
|
+
case 500:
|
|
80
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
81
|
+
unrecognizedObjectKeys: "passthrough",
|
|
82
|
+
allowUnrecognizedUnionMembers: true,
|
|
83
|
+
allowUnrecognizedEnumValues: true,
|
|
84
|
+
skipValidation: true,
|
|
85
|
+
breadcrumbsPrefix: ["response"],
|
|
86
|
+
}), _response.rawResponse);
|
|
87
|
+
default:
|
|
88
|
+
throw new errors.ZepError({
|
|
89
|
+
statusCode: _response.error.statusCode,
|
|
90
|
+
body: _response.error.body,
|
|
91
|
+
rawResponse: _response.rawResponse,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
switch (_response.error.reason) {
|
|
96
|
+
case "non-json":
|
|
97
|
+
throw new errors.ZepError({
|
|
98
|
+
statusCode: _response.error.statusCode,
|
|
99
|
+
body: _response.error.rawBody,
|
|
100
|
+
rawResponse: _response.rawResponse,
|
|
101
|
+
});
|
|
102
|
+
case "timeout":
|
|
103
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /projects/info.");
|
|
104
|
+
case "unknown":
|
|
105
|
+
throw new errors.ZepError({
|
|
106
|
+
message: _response.error.errorMessage,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
_getCustomAuthorizationHeaders() {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
var _a;
|
|
115
|
+
const apiKeyValue = (_a = (yield core.Supplier.get(this._options.apiKey))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["ZEP_API_KEY"];
|
|
116
|
+
return { Authorization: `Api-Key ${apiKeyValue}` };
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -18,6 +18,8 @@ export * from "./EpisodeResponse.mjs";
|
|
|
18
18
|
export * from "./GraphListResponse.mjs";
|
|
19
19
|
export * from "./GraphNodesRequest.mjs";
|
|
20
20
|
export * from "./GraphSearchResults.mjs";
|
|
21
|
+
export * from "./ProjectInfo.mjs";
|
|
22
|
+
export * from "./ProjectInfoResponse.mjs";
|
|
21
23
|
export * from "./RoleType.mjs";
|
|
22
24
|
export * from "./SuccessResponse.mjs";
|
|
23
25
|
export * from "./Thread.mjs";
|
|
@@ -18,6 +18,8 @@ export * from "./EpisodeResponse.mjs";
|
|
|
18
18
|
export * from "./GraphListResponse.mjs";
|
|
19
19
|
export * from "./GraphNodesRequest.mjs";
|
|
20
20
|
export * from "./GraphSearchResults.mjs";
|
|
21
|
+
export * from "./ProjectInfo.mjs";
|
|
22
|
+
export * from "./ProjectInfoResponse.mjs";
|
|
21
23
|
export * from "./RoleType.mjs";
|
|
22
24
|
export * from "./SuccessResponse.mjs";
|
|
23
25
|
export * from "./Thread.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.mjs";
|
|
5
|
+
import * as Zep from "../../api/index.mjs";
|
|
6
|
+
import * as core from "../../core/index.mjs";
|
|
7
|
+
export declare const ProjectInfo: core.serialization.ObjectSchema<serializers.ProjectInfo.Raw, Zep.ProjectInfo>;
|
|
8
|
+
export declare namespace ProjectInfo {
|
|
9
|
+
interface Raw {
|
|
10
|
+
created_at?: string | null;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
name?: string | null;
|
|
13
|
+
uuid?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../core/index.mjs";
|
|
5
|
+
export const ProjectInfo = core.serialization.object({
|
|
6
|
+
createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
|
|
7
|
+
description: core.serialization.string().optional(),
|
|
8
|
+
name: core.serialization.string().optional(),
|
|
9
|
+
uuid: core.serialization.string().optional(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index.mjs";
|
|
5
|
+
import * as Zep from "../../api/index.mjs";
|
|
6
|
+
import * as core from "../../core/index.mjs";
|
|
7
|
+
import { ProjectInfo } from "./ProjectInfo.mjs";
|
|
8
|
+
export declare const ProjectInfoResponse: core.serialization.ObjectSchema<serializers.ProjectInfoResponse.Raw, Zep.ProjectInfoResponse>;
|
|
9
|
+
export declare namespace ProjectInfoResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
project?: ProjectInfo.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../core/index.mjs";
|
|
5
|
+
import { ProjectInfo } from "./ProjectInfo.mjs";
|
|
6
|
+
export const ProjectInfoResponse = core.serialization.object({
|
|
7
|
+
project: ProjectInfo.optional(),
|
|
8
|
+
});
|
|
@@ -18,6 +18,8 @@ export * from "./EpisodeResponse.mjs";
|
|
|
18
18
|
export * from "./GraphListResponse.mjs";
|
|
19
19
|
export * from "./GraphNodesRequest.mjs";
|
|
20
20
|
export * from "./GraphSearchResults.mjs";
|
|
21
|
+
export * from "./ProjectInfo.mjs";
|
|
22
|
+
export * from "./ProjectInfoResponse.mjs";
|
|
21
23
|
export * from "./RoleType.mjs";
|
|
22
24
|
export * from "./SuccessResponse.mjs";
|
|
23
25
|
export * from "./Thread.mjs";
|
|
@@ -18,6 +18,8 @@ export * from "./EpisodeResponse.mjs";
|
|
|
18
18
|
export * from "./GraphListResponse.mjs";
|
|
19
19
|
export * from "./GraphNodesRequest.mjs";
|
|
20
20
|
export * from "./GraphSearchResults.mjs";
|
|
21
|
+
export * from "./ProjectInfo.mjs";
|
|
22
|
+
export * from "./ProjectInfoResponse.mjs";
|
|
21
23
|
export * from "./RoleType.mjs";
|
|
22
24
|
export * from "./SuccessResponse.mjs";
|
|
23
25
|
export * from "./Thread.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.
|
|
1
|
+
export declare const SDK_VERSION = "3.8.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.
|
|
1
|
+
export const SDK_VERSION = "3.8.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -784,6 +784,63 @@ await client.graph.update("graphId");
|
|
|
784
784
|
</dl>
|
|
785
785
|
</details>
|
|
786
786
|
|
|
787
|
+
## Project
|
|
788
|
+
|
|
789
|
+
<details><summary><code>client.project.<a href="/src/api/resources/project/client/Client.ts">get</a>() -> Zep.ProjectInfoResponse</code></summary>
|
|
790
|
+
<dl>
|
|
791
|
+
<dd>
|
|
792
|
+
|
|
793
|
+
#### 📝 Description
|
|
794
|
+
|
|
795
|
+
<dl>
|
|
796
|
+
<dd>
|
|
797
|
+
|
|
798
|
+
<dl>
|
|
799
|
+
<dd>
|
|
800
|
+
|
|
801
|
+
Retrieve project info based on the provided api key.
|
|
802
|
+
|
|
803
|
+
</dd>
|
|
804
|
+
</dl>
|
|
805
|
+
</dd>
|
|
806
|
+
</dl>
|
|
807
|
+
|
|
808
|
+
#### 🔌 Usage
|
|
809
|
+
|
|
810
|
+
<dl>
|
|
811
|
+
<dd>
|
|
812
|
+
|
|
813
|
+
<dl>
|
|
814
|
+
<dd>
|
|
815
|
+
|
|
816
|
+
```typescript
|
|
817
|
+
await client.project.get();
|
|
818
|
+
```
|
|
819
|
+
|
|
820
|
+
</dd>
|
|
821
|
+
</dl>
|
|
822
|
+
</dd>
|
|
823
|
+
</dl>
|
|
824
|
+
|
|
825
|
+
#### ⚙️ Parameters
|
|
826
|
+
|
|
827
|
+
<dl>
|
|
828
|
+
<dd>
|
|
829
|
+
|
|
830
|
+
<dl>
|
|
831
|
+
<dd>
|
|
832
|
+
|
|
833
|
+
**requestOptions:** `Project.RequestOptions`
|
|
834
|
+
|
|
835
|
+
</dd>
|
|
836
|
+
</dl>
|
|
837
|
+
</dd>
|
|
838
|
+
</dl>
|
|
839
|
+
|
|
840
|
+
</dd>
|
|
841
|
+
</dl>
|
|
842
|
+
</details>
|
|
843
|
+
|
|
787
844
|
## Thread
|
|
788
845
|
|
|
789
846
|
<details><summary><code>client.thread.<a href="/src/api/resources/thread/client/Client.ts">listAll</a>({ ...params }) -> Zep.ThreadListResponse</code></summary>
|