@equos/node-sdk 0.1.4 → 1.0.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.
@@ -5,4 +5,5 @@ export declare class EquosAgentApi {
5
5
  constructor(http: HttpUtils);
6
6
  create(data: CreateEquosAgentRequest): Promise<EquosAgent>;
7
7
  list(skip?: number, take?: number): Promise<ListEquosAgentsResponse>;
8
+ get(agentId: string): Promise<EquosAgent | null>;
8
9
  }
@@ -17,5 +17,10 @@ class EquosAgentApi {
17
17
  .get(`/agents?skip=${skip}&take=${take}`)
18
18
  .catch(error_utils_1.ErrorUtils.convertToEquosError);
19
19
  }
20
+ async get(agentId) {
21
+ return this.http
22
+ .get(`/agents/${agentId}`)
23
+ .catch(error_utils_1.ErrorUtils.convertToEquosError);
24
+ }
20
25
  }
21
26
  exports.EquosAgentApi = EquosAgentApi;
@@ -5,4 +5,5 @@ export declare class EquosAvatarApi {
5
5
  constructor(http: HttpUtils);
6
6
  create(data: CreateEquosAvatarRequest): Promise<EquosAvatar>;
7
7
  list(skip?: number, take?: number): Promise<ListEquosAvatarsResponse>;
8
+ get(avatarId: string): Promise<EquosAvatar | null>;
8
9
  }
@@ -17,5 +17,10 @@ class EquosAvatarApi {
17
17
  .get(`/avatars?skip=${skip}&take=${take}`)
18
18
  .catch(error_utils_1.ErrorUtils.convertToEquosError);
19
19
  }
20
+ async get(avatarId) {
21
+ return this.http
22
+ .get(`/avatars/${avatarId}`)
23
+ .catch(error_utils_1.ErrorUtils.convertToEquosError);
24
+ }
20
25
  }
21
26
  exports.EquosAvatarApi = EquosAvatarApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equos/node-sdk",
3
- "version": "0.1.4",
3
+ "version": "1.0.1",
4
4
  "description": "Equos.ai node.js official SDK.",
5
5
  "keywords": [
6
6
  "ai",