@getzep/zep-cloud 3.6.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/resources/thread/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/thread/client/Client.js +5 -0
- package/dist/cjs/api/resources/thread/index.d.ts +1 -0
- package/dist/cjs/api/resources/thread/index.js +1 -0
- package/dist/cjs/api/resources/thread/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/thread/resources/index.js +41 -0
- package/dist/cjs/api/resources/thread/resources/message/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/thread/resources/message/client/Client.js +159 -0
- package/dist/cjs/api/resources/thread/resources/message/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/thread/resources/message/client/index.js +17 -0
- package/dist/cjs/api/resources/thread/resources/message/client/requests/ThreadMessageUpdate.d.ts +14 -0
- package/dist/cjs/api/resources/thread/resources/message/client/requests/ThreadMessageUpdate.js +5 -0
- package/dist/cjs/api/resources/thread/resources/message/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/thread/resources/message/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/thread/resources/message/index.d.ts +1 -0
- package/dist/cjs/api/resources/thread/resources/message/index.js +17 -0
- package/dist/cjs/api/types/Episode.d.ts +3 -1
- package/dist/cjs/api/types/Message.d.ts +2 -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/resources/thread/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/thread/index.js +1 -0
- package/dist/cjs/serialization/resources/thread/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/thread/resources/index.js +41 -0
- package/dist/cjs/serialization/resources/thread/resources/message/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/thread/resources/message/client/index.js +17 -0
- package/dist/cjs/serialization/resources/thread/resources/message/client/requests/ThreadMessageUpdate.d.ts +12 -0
- package/dist/cjs/serialization/resources/thread/resources/message/client/requests/ThreadMessageUpdate.js +43 -0
- package/dist/cjs/serialization/resources/thread/resources/message/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/thread/resources/message/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/thread/resources/message/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/thread/resources/message/index.js +17 -0
- package/dist/cjs/serialization/types/Episode.d.ts +2 -1
- package/dist/cjs/serialization/types/Episode.js +2 -1
- package/dist/cjs/serialization/types/Message.d.ts +1 -0
- package/dist/cjs/serialization/types/Message.js +1 -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/resources/thread/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/thread/client/Client.mjs +5 -0
- package/dist/esm/api/resources/thread/index.d.mts +1 -0
- package/dist/esm/api/resources/thread/index.mjs +1 -0
- package/dist/esm/api/resources/thread/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/thread/resources/index.mjs +2 -0
- package/dist/esm/api/resources/thread/resources/message/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/thread/resources/message/client/Client.mjs +122 -0
- package/dist/esm/api/resources/thread/resources/message/client/index.d.mts +2 -0
- package/dist/esm/api/resources/thread/resources/message/client/index.mjs +1 -0
- package/dist/esm/api/resources/thread/resources/message/client/requests/ThreadMessageUpdate.d.mts +14 -0
- package/dist/esm/api/resources/thread/resources/message/client/requests/ThreadMessageUpdate.mjs +4 -0
- package/dist/esm/api/resources/thread/resources/message/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/thread/resources/message/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/thread/resources/message/index.d.mts +1 -0
- package/dist/esm/api/resources/thread/resources/message/index.mjs +1 -0
- package/dist/esm/api/types/Episode.d.mts +3 -1
- package/dist/esm/api/types/Message.d.mts +2 -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/resources/thread/index.d.mts +1 -0
- package/dist/esm/serialization/resources/thread/index.mjs +1 -0
- package/dist/esm/serialization/resources/thread/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/thread/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/thread/resources/message/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/thread/resources/message/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/thread/resources/message/client/requests/ThreadMessageUpdate.d.mts +12 -0
- package/dist/esm/serialization/resources/thread/resources/message/client/requests/ThreadMessageUpdate.mjs +7 -0
- package/dist/esm/serialization/resources/thread/resources/message/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/thread/resources/message/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/thread/resources/message/index.d.mts +1 -0
- package/dist/esm/serialization/resources/thread/resources/message/index.mjs +1 -0
- package/dist/esm/serialization/types/Episode.d.mts +2 -1
- package/dist/esm/serialization/types/Episode.mjs +2 -1
- package/dist/esm/serialization/types/Message.d.mts +1 -0
- package/dist/esm/serialization/types/Message.mjs +1 -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 +134 -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);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
6
|
import * as Zep from "../../../index.js";
|
|
7
|
+
import { Message } from "../resources/message/client/Client.js";
|
|
7
8
|
export declare namespace Thread {
|
|
8
9
|
interface Options {
|
|
9
10
|
environment?: core.Supplier<environments.ZepEnvironment | string>;
|
|
@@ -27,7 +28,9 @@ export declare namespace Thread {
|
|
|
27
28
|
}
|
|
28
29
|
export declare class Thread {
|
|
29
30
|
protected readonly _options: Thread.Options;
|
|
31
|
+
protected _message: Message | undefined;
|
|
30
32
|
constructor(_options?: Thread.Options);
|
|
33
|
+
get message(): Message;
|
|
31
34
|
/**
|
|
32
35
|
* Returns all threads.
|
|
33
36
|
*
|
|
@@ -52,10 +52,15 @@ const Zep = __importStar(require("../../../index.js"));
|
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
54
54
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
55
|
+
const Client_js_1 = require("../resources/message/client/Client.js");
|
|
55
56
|
class Thread {
|
|
56
57
|
constructor(_options = {}) {
|
|
57
58
|
this._options = _options;
|
|
58
59
|
}
|
|
60
|
+
get message() {
|
|
61
|
+
var _a;
|
|
62
|
+
return ((_a = this._message) !== null && _a !== void 0 ? _a : (this._message = new Client_js_1.Message(this._options)));
|
|
63
|
+
}
|
|
59
64
|
/**
|
|
60
65
|
* Returns all threads.
|
|
61
66
|
*
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./types/index.js"), exports);
|
|
18
18
|
__exportStar(require("./client/index.js"), exports);
|
|
19
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.message = void 0;
|
|
40
|
+
exports.message = __importStar(require("./message/index.js"));
|
|
41
|
+
__exportStar(require("./message/client/requests/index.js"), exports);
|
|
@@ -0,0 +1,53 @@
|
|
|
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 Message {
|
|
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 Message {
|
|
29
|
+
protected readonly _options: Message.Options;
|
|
30
|
+
constructor(_options?: Message.Options);
|
|
31
|
+
/**
|
|
32
|
+
* Updates a message.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} messageUuid - The UUID of the message.
|
|
35
|
+
* @param {Zep.thread.ThreadMessageUpdate} request
|
|
36
|
+
* @param {Message.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link Zep.NotFoundError}
|
|
39
|
+
* @throws {@link Zep.InternalServerError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.thread.message.update("messageUUID", {
|
|
43
|
+
* metadata: {
|
|
44
|
+
* "key": "value"
|
|
45
|
+
* }
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
update(messageUuid: string, request: Zep.thread.ThreadMessageUpdate, requestOptions?: Message.RequestOptions): core.HttpResponsePromise<Zep.Message>;
|
|
49
|
+
private __update;
|
|
50
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
51
|
+
Authorization: string;
|
|
52
|
+
}>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
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.Message = 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 Message {
|
|
56
|
+
constructor(_options = {}) {
|
|
57
|
+
this._options = _options;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Updates a message.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} messageUuid - The UUID of the message.
|
|
63
|
+
* @param {Zep.thread.ThreadMessageUpdate} request
|
|
64
|
+
* @param {Message.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link Zep.NotFoundError}
|
|
67
|
+
* @throws {@link Zep.InternalServerError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.thread.message.update("messageUUID", {
|
|
71
|
+
* metadata: {
|
|
72
|
+
* "key": "value"
|
|
73
|
+
* }
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
update(messageUuid, request, requestOptions) {
|
|
77
|
+
return core.HttpResponsePromise.fromPromise(this.__update(messageUuid, request, requestOptions));
|
|
78
|
+
}
|
|
79
|
+
__update(messageUuid, request, requestOptions) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
var _a, _b, _c, _d;
|
|
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, `messages/${encodeURIComponent(messageUuid)}`),
|
|
84
|
+
method: "PATCH",
|
|
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
|
+
contentType: "application/json",
|
|
87
|
+
requestType: "json",
|
|
88
|
+
body: serializers.thread.ThreadMessageUpdate.jsonOrThrow(request, {
|
|
89
|
+
unrecognizedObjectKeys: "strip",
|
|
90
|
+
omitUndefined: true,
|
|
91
|
+
}),
|
|
92
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
93
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
94
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
|
+
});
|
|
96
|
+
if (_response.ok) {
|
|
97
|
+
return {
|
|
98
|
+
data: serializers.Message.parseOrThrow(_response.body, {
|
|
99
|
+
unrecognizedObjectKeys: "passthrough",
|
|
100
|
+
allowUnrecognizedUnionMembers: true,
|
|
101
|
+
allowUnrecognizedEnumValues: true,
|
|
102
|
+
skipValidation: true,
|
|
103
|
+
breadcrumbsPrefix: ["response"],
|
|
104
|
+
}),
|
|
105
|
+
rawResponse: _response.rawResponse,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
if (_response.error.reason === "status-code") {
|
|
109
|
+
switch (_response.error.statusCode) {
|
|
110
|
+
case 404:
|
|
111
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
112
|
+
unrecognizedObjectKeys: "passthrough",
|
|
113
|
+
allowUnrecognizedUnionMembers: true,
|
|
114
|
+
allowUnrecognizedEnumValues: true,
|
|
115
|
+
skipValidation: true,
|
|
116
|
+
breadcrumbsPrefix: ["response"],
|
|
117
|
+
}), _response.rawResponse);
|
|
118
|
+
case 500:
|
|
119
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
120
|
+
unrecognizedObjectKeys: "passthrough",
|
|
121
|
+
allowUnrecognizedUnionMembers: true,
|
|
122
|
+
allowUnrecognizedEnumValues: true,
|
|
123
|
+
skipValidation: true,
|
|
124
|
+
breadcrumbsPrefix: ["response"],
|
|
125
|
+
}), _response.rawResponse);
|
|
126
|
+
default:
|
|
127
|
+
throw new errors.ZepError({
|
|
128
|
+
statusCode: _response.error.statusCode,
|
|
129
|
+
body: _response.error.body,
|
|
130
|
+
rawResponse: _response.rawResponse,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
switch (_response.error.reason) {
|
|
135
|
+
case "non-json":
|
|
136
|
+
throw new errors.ZepError({
|
|
137
|
+
statusCode: _response.error.statusCode,
|
|
138
|
+
body: _response.error.rawBody,
|
|
139
|
+
rawResponse: _response.rawResponse,
|
|
140
|
+
});
|
|
141
|
+
case "timeout":
|
|
142
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling PATCH /messages/{messageUUID}.");
|
|
143
|
+
case "unknown":
|
|
144
|
+
throw new errors.ZepError({
|
|
145
|
+
message: _response.error.errorMessage,
|
|
146
|
+
rawResponse: _response.rawResponse,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
_getCustomAuthorizationHeaders() {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
var _a;
|
|
154
|
+
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"];
|
|
155
|
+
return { Authorization: `Api-Key ${apiKeyValue}` };
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
exports.Message = Message;
|
|
@@ -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("./requests/index.js"), exports);
|