@equos/node-sdk 1.1.0 → 1.2.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/apis/agent.d.ts +1 -1
- package/dist/apis/agent.js +6 -2
- package/dist/apis/avatar.d.ts +1 -1
- package/dist/apis/avatar.js +6 -2
- package/dist/apis/session.d.ts +1 -1
- package/dist/apis/session.js +6 -2
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/types/session.type.d.ts +1 -1
- package/package.json +1 -1
package/dist/apis/agent.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export declare class EquosAgentApi {
|
|
|
4
4
|
private readonly http;
|
|
5
5
|
constructor(http: HttpUtils);
|
|
6
6
|
create(data: CreateEquosAgentRequest): Promise<EquosAgent>;
|
|
7
|
-
list(skip?: number, take?: number): Promise<ListEquosAgentsResponse>;
|
|
7
|
+
list(skip?: number, take?: number, client?: string): Promise<ListEquosAgentsResponse>;
|
|
8
8
|
get(agentId: string): Promise<EquosAgent | null>;
|
|
9
9
|
}
|
package/dist/apis/agent.js
CHANGED
|
@@ -12,9 +12,13 @@ class EquosAgentApi {
|
|
|
12
12
|
.post('/agents', data)
|
|
13
13
|
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
14
14
|
}
|
|
15
|
-
async list(skip = 0, take = 10) {
|
|
15
|
+
async list(skip = 0, take = 10, client) {
|
|
16
|
+
let path = `/avatars?skip=${skip}&take=${take}`;
|
|
17
|
+
if (client) {
|
|
18
|
+
path += `&client=${client}`;
|
|
19
|
+
}
|
|
16
20
|
return this.http
|
|
17
|
-
.get(
|
|
21
|
+
.get(path)
|
|
18
22
|
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
19
23
|
}
|
|
20
24
|
async get(agentId) {
|
package/dist/apis/avatar.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export declare class EquosAvatarApi {
|
|
|
4
4
|
private readonly http;
|
|
5
5
|
constructor(http: HttpUtils);
|
|
6
6
|
create(data: CreateEquosAvatarRequest): Promise<EquosAvatar>;
|
|
7
|
-
list(skip?: number, take?: number): Promise<ListEquosAvatarsResponse>;
|
|
7
|
+
list(skip?: number, take?: number, client?: string): Promise<ListEquosAvatarsResponse>;
|
|
8
8
|
get(avatarId: string): Promise<EquosAvatar | null>;
|
|
9
9
|
}
|
package/dist/apis/avatar.js
CHANGED
|
@@ -12,9 +12,13 @@ class EquosAvatarApi {
|
|
|
12
12
|
.post('/avatars', data)
|
|
13
13
|
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
14
14
|
}
|
|
15
|
-
async list(skip = 0, take = 10) {
|
|
15
|
+
async list(skip = 0, take = 10, client) {
|
|
16
|
+
let path = `/avatars?skip=${skip}&take=${take}`;
|
|
17
|
+
if (client) {
|
|
18
|
+
path += `&client=${client}`;
|
|
19
|
+
}
|
|
16
20
|
return this.http
|
|
17
|
-
.get(
|
|
21
|
+
.get(path)
|
|
18
22
|
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
19
23
|
}
|
|
20
24
|
async get(avatarId) {
|
package/dist/apis/session.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export declare class EquosSessionApi {
|
|
|
5
5
|
constructor(http: HttpUtils);
|
|
6
6
|
get(id: string): Promise<EquosSession>;
|
|
7
7
|
create(data: CreateEquosSessionRequest): Promise<CreateEquosSessionResponse>;
|
|
8
|
-
list(skip?: number, take?: number): Promise<ListEquosSessionsResponse>;
|
|
8
|
+
list(skip?: number, take?: number, client?: string): Promise<ListEquosSessionsResponse>;
|
|
9
9
|
stop(id: string): Promise<EquosSession>;
|
|
10
10
|
}
|
package/dist/apis/session.js
CHANGED
|
@@ -17,9 +17,13 @@ class EquosSessionApi {
|
|
|
17
17
|
.post('/sessions', data)
|
|
18
18
|
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
19
19
|
}
|
|
20
|
-
async list(skip = 0, take = 10) {
|
|
20
|
+
async list(skip = 0, take = 10, client) {
|
|
21
|
+
let path = `/sessions?skip=${skip}&take=${take}`;
|
|
22
|
+
if (client) {
|
|
23
|
+
path += `&client=${client}`;
|
|
24
|
+
}
|
|
21
25
|
return this.http
|
|
22
|
-
.get(
|
|
26
|
+
.get(path)
|
|
23
27
|
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
24
28
|
}
|
|
25
29
|
async stop(id) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export * from './equos';
|
|
2
2
|
export * from './types/error.type';
|
|
3
|
+
export * from './types/agent.type';
|
|
4
|
+
export * from './types/avatar.type';
|
|
5
|
+
export * from './types/session.type';
|
|
6
|
+
export * from './apis/agent';
|
|
7
|
+
export * from './apis/avatar';
|
|
8
|
+
export * from './apis/session';
|
package/dist/index.js
CHANGED
|
@@ -16,3 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./equos"), exports);
|
|
18
18
|
__exportStar(require("./types/error.type"), exports);
|
|
19
|
+
__exportStar(require("./types/agent.type"), exports);
|
|
20
|
+
__exportStar(require("./types/avatar.type"), exports);
|
|
21
|
+
__exportStar(require("./types/session.type"), exports);
|
|
22
|
+
__exportStar(require("./apis/agent"), exports);
|
|
23
|
+
__exportStar(require("./apis/avatar"), exports);
|
|
24
|
+
__exportStar(require("./apis/session"), exports);
|