@corti/sdk 0.1.2-agents → 0.1.2-agents.rc.1
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/agents/client/Client.js +10 -10
- package/dist/cjs/custom/utils/getEnvironmentFromString.js +1 -0
- package/dist/cjs/environments.d.ts +3 -0
- package/dist/cjs/environments.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/agents/client/Client.mjs +10 -10
- package/dist/esm/custom/utils/getEnvironmentFromString.mjs +1 -0
- package/dist/esm/environments.d.mts +3 -0
- package/dist/esm/environments.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -64,8 +64,8 @@ class CortiClient {
|
|
|
64
64
|
"Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
|
|
65
65
|
"X-Fern-Language": "JavaScript",
|
|
66
66
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
67
|
-
"X-Fern-SDK-Version": "0.1.2-agents",
|
|
68
|
-
"User-Agent": "@corti/sdk/0.1.2-agents",
|
|
67
|
+
"X-Fern-SDK-Version": "0.1.2-agents.rc.1",
|
|
68
|
+
"User-Agent": "@corti/sdk/0.1.2-agents.rc.1",
|
|
69
69
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
70
70
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
71
71
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -82,7 +82,7 @@ class Agents {
|
|
|
82
82
|
_queryParams["offset"] = (_b = offset === null || offset === void 0 ? void 0 : offset.toString()) !== null && _b !== void 0 ? _b : null;
|
|
83
83
|
}
|
|
84
84
|
const _response = yield core.fetcher({
|
|
85
|
-
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)).
|
|
85
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)).agents, "agents"),
|
|
86
86
|
method: "GET",
|
|
87
87
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
88
88
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -158,7 +158,7 @@ class Agents {
|
|
|
158
158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
159
159
|
var _a, _b;
|
|
160
160
|
const _response = yield core.fetcher({
|
|
161
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
161
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, "agents"),
|
|
162
162
|
method: "POST",
|
|
163
163
|
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
164
164
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -237,7 +237,7 @@ class Agents {
|
|
|
237
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
238
|
var _a, _b;
|
|
239
239
|
const _response = yield core.fetcher({
|
|
240
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
240
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}`),
|
|
241
241
|
method: "GET",
|
|
242
242
|
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
243
243
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -312,7 +312,7 @@ class Agents {
|
|
|
312
312
|
return __awaiter(this, void 0, void 0, function* () {
|
|
313
313
|
var _a, _b;
|
|
314
314
|
const _response = yield core.fetcher({
|
|
315
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
315
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}`),
|
|
316
316
|
method: "DELETE",
|
|
317
317
|
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
318
318
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -383,7 +383,7 @@ class Agents {
|
|
|
383
383
|
return __awaiter(this, void 0, void 0, function* () {
|
|
384
384
|
var _a, _b;
|
|
385
385
|
const _response = yield core.fetcher({
|
|
386
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
386
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}`),
|
|
387
387
|
method: "PATCH",
|
|
388
388
|
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
389
389
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -464,7 +464,7 @@ class Agents {
|
|
|
464
464
|
return __awaiter(this, void 0, void 0, function* () {
|
|
465
465
|
var _a, _b;
|
|
466
466
|
const _response = yield core.fetcher({
|
|
467
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
467
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}/agent-card.json`),
|
|
468
468
|
method: "GET",
|
|
469
469
|
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
470
470
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -549,7 +549,7 @@ class Agents {
|
|
|
549
549
|
return __awaiter(this, void 0, void 0, function* () {
|
|
550
550
|
var _a, _b;
|
|
551
551
|
const _response = yield core.fetcher({
|
|
552
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
552
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}/v1/message:send`),
|
|
553
553
|
method: "POST",
|
|
554
554
|
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
555
555
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -620,7 +620,7 @@ class Agents {
|
|
|
620
620
|
return __awaiter(this, void 0, void 0, function* () {
|
|
621
621
|
var _a, _b;
|
|
622
622
|
const _response = yield core.fetcher({
|
|
623
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
623
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}/v1/message:stream`),
|
|
624
624
|
method: "POST",
|
|
625
625
|
headers: (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
626
626
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -719,7 +719,7 @@ class Agents {
|
|
|
719
719
|
_queryParams["historyLength"] = (_a = historyLength === null || historyLength === void 0 ? void 0 : historyLength.toString()) !== null && _a !== void 0 ? _a : null;
|
|
720
720
|
}
|
|
721
721
|
const _response = yield core.fetcher({
|
|
722
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)).
|
|
722
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}/v1/tasks/${encodeURIComponent(taskId)}`),
|
|
723
723
|
method: "GET",
|
|
724
724
|
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
725
725
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -805,7 +805,7 @@ class Agents {
|
|
|
805
805
|
_queryParams["offset"] = (_b = offset === null || offset === void 0 ? void 0 : offset.toString()) !== null && _b !== void 0 ? _b : null;
|
|
806
806
|
}
|
|
807
807
|
const _response = yield core.fetcher({
|
|
808
|
-
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)).
|
|
808
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}/v1/contexts/${encodeURIComponent(contextId)}`),
|
|
809
809
|
method: "GET",
|
|
810
810
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
811
811
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -7,6 +7,7 @@ function getEnvironment(environment) {
|
|
|
7
7
|
base: `https://api.${environment}.corti.app/v2`,
|
|
8
8
|
wss: `wss://api.${environment}.corti.app`,
|
|
9
9
|
login: `https://auth.${environment}.corti.app/realms`,
|
|
10
|
+
agents: `https://api.${environment}.corti.app/agents`,
|
|
10
11
|
}
|
|
11
12
|
: environment;
|
|
12
13
|
}
|
|
@@ -5,17 +5,20 @@ export interface CortiEnvironmentUrls {
|
|
|
5
5
|
base: string;
|
|
6
6
|
wss: string;
|
|
7
7
|
login: string;
|
|
8
|
+
agents: string;
|
|
8
9
|
}
|
|
9
10
|
export declare const CortiEnvironment: {
|
|
10
11
|
readonly Eu: {
|
|
11
12
|
readonly base: "https://api.eu.corti.app/v2";
|
|
12
13
|
readonly wss: "wss://api.eu.corti.app";
|
|
13
14
|
readonly login: "https://auth.eu.corti.app/realms";
|
|
15
|
+
readonly agents: "https://api.eu.corti.app/agents";
|
|
14
16
|
};
|
|
15
17
|
readonly Us: {
|
|
16
18
|
readonly base: "https://api.us.corti.app/v2";
|
|
17
19
|
readonly wss: "wss://api.us.corti.app";
|
|
18
20
|
readonly login: "https://auth.us.corti.app/realms";
|
|
21
|
+
readonly agents: "https://api.us.corti.app/agents";
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
24
|
export type CortiEnvironment = typeof CortiEnvironment.Eu | typeof CortiEnvironment.Us;
|
package/dist/cjs/environments.js
CHANGED
|
@@ -9,10 +9,12 @@ exports.CortiEnvironment = {
|
|
|
9
9
|
base: "https://api.eu.corti.app/v2",
|
|
10
10
|
wss: "wss://api.eu.corti.app",
|
|
11
11
|
login: "https://auth.eu.corti.app/realms",
|
|
12
|
+
agents: "https://api.eu.corti.app/agents",
|
|
12
13
|
},
|
|
13
14
|
Us: {
|
|
14
15
|
base: "https://api.us.corti.app/v2",
|
|
15
16
|
wss: "wss://api.us.corti.app",
|
|
16
17
|
login: "https://auth.us.corti.app/realms",
|
|
18
|
+
agents: "https://api.us.corti.app/agents",
|
|
17
19
|
},
|
|
18
20
|
};
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.2-agents";
|
|
1
|
+
export declare const SDK_VERSION = "0.1.2-agents.rc.1";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -28,8 +28,8 @@ export class CortiClient {
|
|
|
28
28
|
"Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
|
|
29
29
|
"X-Fern-Language": "JavaScript",
|
|
30
30
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
31
|
-
"X-Fern-SDK-Version": "0.1.2-agents",
|
|
32
|
-
"User-Agent": "@corti/sdk/0.1.2-agents",
|
|
31
|
+
"X-Fern-SDK-Version": "0.1.2-agents.rc.1",
|
|
32
|
+
"User-Agent": "@corti/sdk/0.1.2-agents.rc.1",
|
|
33
33
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
34
34
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
35
35
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -46,7 +46,7 @@ export class Agents {
|
|
|
46
46
|
_queryParams["offset"] = (_b = offset === null || offset === void 0 ? void 0 : offset.toString()) !== null && _b !== void 0 ? _b : null;
|
|
47
47
|
}
|
|
48
48
|
const _response = yield core.fetcher({
|
|
49
|
-
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)).
|
|
49
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)).agents, "agents"),
|
|
50
50
|
method: "GET",
|
|
51
51
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({
|
|
52
52
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -122,7 +122,7 @@ export class Agents {
|
|
|
122
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
123
|
var _a, _b;
|
|
124
124
|
const _response = yield core.fetcher({
|
|
125
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
125
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, "agents"),
|
|
126
126
|
method: "POST",
|
|
127
127
|
headers: mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({
|
|
128
128
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -201,7 +201,7 @@ export class Agents {
|
|
|
201
201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
202
202
|
var _a, _b;
|
|
203
203
|
const _response = yield core.fetcher({
|
|
204
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
204
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}`),
|
|
205
205
|
method: "GET",
|
|
206
206
|
headers: mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({
|
|
207
207
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -276,7 +276,7 @@ export class Agents {
|
|
|
276
276
|
return __awaiter(this, void 0, void 0, function* () {
|
|
277
277
|
var _a, _b;
|
|
278
278
|
const _response = yield core.fetcher({
|
|
279
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
279
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}`),
|
|
280
280
|
method: "DELETE",
|
|
281
281
|
headers: mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({
|
|
282
282
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -347,7 +347,7 @@ export class Agents {
|
|
|
347
347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
348
348
|
var _a, _b;
|
|
349
349
|
const _response = yield core.fetcher({
|
|
350
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
350
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}`),
|
|
351
351
|
method: "PATCH",
|
|
352
352
|
headers: mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({
|
|
353
353
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -428,7 +428,7 @@ export class Agents {
|
|
|
428
428
|
return __awaiter(this, void 0, void 0, function* () {
|
|
429
429
|
var _a, _b;
|
|
430
430
|
const _response = yield core.fetcher({
|
|
431
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
431
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}/agent-card.json`),
|
|
432
432
|
method: "GET",
|
|
433
433
|
headers: mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({
|
|
434
434
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -513,7 +513,7 @@ export class Agents {
|
|
|
513
513
|
return __awaiter(this, void 0, void 0, function* () {
|
|
514
514
|
var _a, _b;
|
|
515
515
|
const _response = yield core.fetcher({
|
|
516
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
516
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}/v1/message:send`),
|
|
517
517
|
method: "POST",
|
|
518
518
|
headers: mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({
|
|
519
519
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -584,7 +584,7 @@ export class Agents {
|
|
|
584
584
|
return __awaiter(this, void 0, void 0, function* () {
|
|
585
585
|
var _a, _b;
|
|
586
586
|
const _response = yield core.fetcher({
|
|
587
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).
|
|
587
|
+
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}/v1/message:stream`),
|
|
588
588
|
method: "POST",
|
|
589
589
|
headers: mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({
|
|
590
590
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -683,7 +683,7 @@ export class Agents {
|
|
|
683
683
|
_queryParams["historyLength"] = (_a = historyLength === null || historyLength === void 0 ? void 0 : historyLength.toString()) !== null && _a !== void 0 ? _a : null;
|
|
684
684
|
}
|
|
685
685
|
const _response = yield core.fetcher({
|
|
686
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)).
|
|
686
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}/v1/tasks/${encodeURIComponent(taskId)}`),
|
|
687
687
|
method: "GET",
|
|
688
688
|
headers: mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({
|
|
689
689
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -769,7 +769,7 @@ export class Agents {
|
|
|
769
769
|
_queryParams["offset"] = (_b = offset === null || offset === void 0 ? void 0 : offset.toString()) !== null && _b !== void 0 ? _b : null;
|
|
770
770
|
}
|
|
771
771
|
const _response = yield core.fetcher({
|
|
772
|
-
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)).
|
|
772
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment)).agents, `agents/${encodeURIComponent(id)}/v1/contexts/${encodeURIComponent(contextId)}`),
|
|
773
773
|
method: "GET",
|
|
774
774
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({
|
|
775
775
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -4,6 +4,7 @@ export function getEnvironment(environment) {
|
|
|
4
4
|
base: `https://api.${environment}.corti.app/v2`,
|
|
5
5
|
wss: `wss://api.${environment}.corti.app`,
|
|
6
6
|
login: `https://auth.${environment}.corti.app/realms`,
|
|
7
|
+
agents: `https://api.${environment}.corti.app/agents`,
|
|
7
8
|
}
|
|
8
9
|
: environment;
|
|
9
10
|
}
|
|
@@ -5,17 +5,20 @@ export interface CortiEnvironmentUrls {
|
|
|
5
5
|
base: string;
|
|
6
6
|
wss: string;
|
|
7
7
|
login: string;
|
|
8
|
+
agents: string;
|
|
8
9
|
}
|
|
9
10
|
export declare const CortiEnvironment: {
|
|
10
11
|
readonly Eu: {
|
|
11
12
|
readonly base: "https://api.eu.corti.app/v2";
|
|
12
13
|
readonly wss: "wss://api.eu.corti.app";
|
|
13
14
|
readonly login: "https://auth.eu.corti.app/realms";
|
|
15
|
+
readonly agents: "https://api.eu.corti.app/agents";
|
|
14
16
|
};
|
|
15
17
|
readonly Us: {
|
|
16
18
|
readonly base: "https://api.us.corti.app/v2";
|
|
17
19
|
readonly wss: "wss://api.us.corti.app";
|
|
18
20
|
readonly login: "https://auth.us.corti.app/realms";
|
|
21
|
+
readonly agents: "https://api.us.corti.app/agents";
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
24
|
export type CortiEnvironment = typeof CortiEnvironment.Eu | typeof CortiEnvironment.Us;
|
|
@@ -6,10 +6,12 @@ export const CortiEnvironment = {
|
|
|
6
6
|
base: "https://api.eu.corti.app/v2",
|
|
7
7
|
wss: "wss://api.eu.corti.app",
|
|
8
8
|
login: "https://auth.eu.corti.app/realms",
|
|
9
|
+
agents: "https://api.eu.corti.app/agents",
|
|
9
10
|
},
|
|
10
11
|
Us: {
|
|
11
12
|
base: "https://api.us.corti.app/v2",
|
|
12
13
|
wss: "wss://api.us.corti.app",
|
|
13
14
|
login: "https://auth.us.corti.app/realms",
|
|
15
|
+
agents: "https://api.us.corti.app/agents",
|
|
14
16
|
},
|
|
15
17
|
};
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.2-agents";
|
|
1
|
+
export declare const SDK_VERSION = "0.1.2-agents.rc.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.1.2-agents";
|
|
1
|
+
export const SDK_VERSION = "0.1.2-agents.rc.1";
|