@equos/node-sdk 3.0.2-rc.9 → 3.1.1-rc.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/client.d.ts +3 -5
- package/dist/client.js +12 -17
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/package.json +3 -4
- package/dist/api/apis/AgentApi.d.ts +0 -86
- package/dist/api/apis/AgentApi.js +0 -223
- package/dist/api/apis/AvatarApi.d.ts +0 -86
- package/dist/api/apis/AvatarApi.js +0 -223
- package/dist/api/apis/BrainApi.d.ts +0 -64
- package/dist/api/apis/BrainApi.js +0 -179
- package/dist/api/apis/CharacterApi.d.ts +0 -76
- package/dist/api/apis/CharacterApi.js +0 -213
- package/dist/api/apis/ConversationApi.d.ts +0 -64
- package/dist/api/apis/ConversationApi.js +0 -179
- package/dist/api/apis/FaceApi.d.ts +0 -64
- package/dist/api/apis/FaceApi.js +0 -179
- package/dist/api/apis/HealthApi.d.ts +0 -26
- package/dist/api/apis/HealthApi.js +0 -79
- package/dist/api/apis/KnowledgeBaseApi.d.ts +0 -100
- package/dist/api/apis/KnowledgeBaseApi.js +0 -279
- package/dist/api/apis/SessionPassesApi.d.ts +0 -44
- package/dist/api/apis/SessionPassesApi.js +0 -128
- package/dist/api/apis/SessionsApi.d.ts +0 -72
- package/dist/api/apis/SessionsApi.js +0 -187
- package/dist/api/apis/VoiceApi.d.ts +0 -64
- package/dist/api/apis/VoiceApi.js +0 -179
- package/dist/api/apis/index.d.ts +0 -11
- package/dist/api/apis/index.js +0 -29
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -21
- package/dist/api/models/CreateDocumentRequest.d.ts +0 -44
- package/dist/api/models/CreateDocumentRequest.js +0 -58
- package/dist/api/models/CreateDocumentResponse.d.ts +0 -45
- package/dist/api/models/CreateDocumentResponse.js +0 -59
- package/dist/api/models/CreateEquosAgentRequest.d.ts +0 -144
- package/dist/api/models/CreateEquosAgentRequest.js +0 -120
- package/dist/api/models/CreateEquosAvatarRequest.d.ts +0 -56
- package/dist/api/models/CreateEquosAvatarRequest.js +0 -64
- package/dist/api/models/CreateEquosBrainRequest.d.ts +0 -50
- package/dist/api/models/CreateEquosBrainRequest.js +0 -60
- package/dist/api/models/CreateEquosCharacterRequest.d.ts +0 -80
- package/dist/api/models/CreateEquosCharacterRequest.js +0 -68
- package/dist/api/models/CreateEquosConversationRequest.d.ts +0 -84
- package/dist/api/models/CreateEquosConversationRequest.js +0 -70
- package/dist/api/models/CreateEquosConversationResponse.d.ts +0 -45
- package/dist/api/models/CreateEquosConversationResponse.js +0 -55
- package/dist/api/models/CreateEquosFaceRequest.d.ts +0 -53
- package/dist/api/models/CreateEquosFaceRequest.js +0 -67
- package/dist/api/models/CreateEquosSessionRequest.d.ts +0 -90
- package/dist/api/models/CreateEquosSessionRequest.js +0 -74
- package/dist/api/models/CreateEquosSessionRequestAgent.d.ts +0 -23
- package/dist/api/models/CreateEquosSessionRequestAgent.js +0 -57
- package/dist/api/models/CreateEquosSessionRequestAvatar.d.ts +0 -23
- package/dist/api/models/CreateEquosSessionRequestAvatar.js +0 -57
- package/dist/api/models/CreateEquosSessionResponse.d.ts +0 -45
- package/dist/api/models/CreateEquosSessionResponse.js +0 -55
- package/dist/api/models/CreateEquosVoiceRequest.d.ts +0 -80
- package/dist/api/models/CreateEquosVoiceRequest.js +0 -90
- package/dist/api/models/CreateKnowledgeBaseRequest.d.ts +0 -44
- package/dist/api/models/CreateKnowledgeBaseRequest.js +0 -56
- package/dist/api/models/CreateSessionPassRequest.d.ts +0 -76
- package/dist/api/models/CreateSessionPassRequest.js +0 -72
- package/dist/api/models/EquosAgent.d.ts +0 -180
- package/dist/api/models/EquosAgent.js +0 -154
- package/dist/api/models/EquosAvatar.d.ts +0 -92
- package/dist/api/models/EquosAvatar.js +0 -84
- package/dist/api/models/EquosBrain.d.ts +0 -68
- package/dist/api/models/EquosBrain.js +0 -72
- package/dist/api/models/EquosCharacter.d.ts +0 -132
- package/dist/api/models/EquosCharacter.js +0 -98
- package/dist/api/models/EquosConversation.d.ts +0 -177
- package/dist/api/models/EquosConversation.js +0 -129
- package/dist/api/models/EquosConversationHost.d.ts +0 -38
- package/dist/api/models/EquosConversationHost.js +0 -54
- package/dist/api/models/EquosConversationTranscriptMessage.d.ts +0 -58
- package/dist/api/models/EquosConversationTranscriptMessage.js +0 -70
- package/dist/api/models/EquosDocument.d.ts +0 -74
- package/dist/api/models/EquosDocument.js +0 -78
- package/dist/api/models/EquosFace.d.ts +0 -95
- package/dist/api/models/EquosFace.js +0 -89
- package/dist/api/models/EquosKnowledgeBase.d.ts +0 -75
- package/dist/api/models/EquosKnowledgeBase.js +0 -77
- package/dist/api/models/EquosParticipantIdentity.d.ts +0 -38
- package/dist/api/models/EquosParticipantIdentity.js +0 -54
- package/dist/api/models/EquosResourceReference.d.ts +0 -32
- package/dist/api/models/EquosResourceReference.js +0 -50
- package/dist/api/models/EquosSession.d.ts +0 -168
- package/dist/api/models/EquosSession.js +0 -118
- package/dist/api/models/EquosSessionHost.d.ts +0 -38
- package/dist/api/models/EquosSessionHost.js +0 -54
- package/dist/api/models/EquosSessionServer.d.ts +0 -32
- package/dist/api/models/EquosSessionServer.js +0 -50
- package/dist/api/models/EquosVoice.d.ts +0 -104
- package/dist/api/models/EquosVoice.js +0 -106
- package/dist/api/models/HealthResponse.d.ts +0 -38
- package/dist/api/models/HealthResponse.js +0 -54
- package/dist/api/models/ListEquosAgentsResponse.d.ts +0 -51
- package/dist/api/models/ListEquosAgentsResponse.js +0 -63
- package/dist/api/models/ListEquosAvatarsResponse.d.ts +0 -51
- package/dist/api/models/ListEquosAvatarsResponse.js +0 -63
- package/dist/api/models/ListEquosBrainsResponse.d.ts +0 -51
- package/dist/api/models/ListEquosBrainsResponse.js +0 -63
- package/dist/api/models/ListEquosCharactersResponse.d.ts +0 -51
- package/dist/api/models/ListEquosCharactersResponse.js +0 -63
- package/dist/api/models/ListEquosConversationsResponse.d.ts +0 -51
- package/dist/api/models/ListEquosConversationsResponse.js +0 -63
- package/dist/api/models/ListEquosFacesResponse.d.ts +0 -51
- package/dist/api/models/ListEquosFacesResponse.js +0 -63
- package/dist/api/models/ListEquosKnowledgeBasesResponse.d.ts +0 -51
- package/dist/api/models/ListEquosKnowledgeBasesResponse.js +0 -63
- package/dist/api/models/ListEquosSessionsResponse.d.ts +0 -51
- package/dist/api/models/ListEquosSessionsResponse.js +0 -63
- package/dist/api/models/ListEquosVoicesResponse.d.ts +0 -51
- package/dist/api/models/ListEquosVoicesResponse.js +0 -63
- package/dist/api/models/UpdateEquosAgentRequest.d.ts +0 -156
- package/dist/api/models/UpdateEquosAgentRequest.js +0 -128
- package/dist/api/models/UpdateEquosAvatarRequest.d.ts +0 -68
- package/dist/api/models/UpdateEquosAvatarRequest.js +0 -72
- package/dist/api/models/UpdateEquosCharacterRequest.d.ts +0 -68
- package/dist/api/models/UpdateEquosCharacterRequest.js +0 -60
- package/dist/api/models/index.d.ts +0 -45
- package/dist/api/models/index.js +0 -63
- package/dist/api/runtime.d.ts +0 -184
- package/dist/api/runtime.js +0 -349
- package/dist/options.d.ts +0 -7
- package/dist/options.js +0 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BrainApi, CharacterApi, ConversationApi, FaceApi, HealthApi, KnowledgeBaseApi, OrganizationApi, VoiceApi } from '@equos/core';
|
|
2
2
|
export interface EquosOptions {
|
|
3
3
|
/**
|
|
4
4
|
* API endpoint to use (default: https://api.equos.ai)
|
|
@@ -12,16 +12,14 @@ export interface EquosOptions {
|
|
|
12
12
|
export declare class EquosClient {
|
|
13
13
|
private readonly configuration;
|
|
14
14
|
private readonly basePath;
|
|
15
|
-
readonly agents: AgentApi;
|
|
16
|
-
readonly avatars: AvatarApi;
|
|
17
15
|
readonly brains: BrainApi;
|
|
18
16
|
readonly characters: CharacterApi;
|
|
19
17
|
readonly faces: FaceApi;
|
|
20
18
|
readonly health: HealthApi;
|
|
21
19
|
readonly knowledgeBases: KnowledgeBaseApi;
|
|
22
|
-
readonly sessionPasses: SessionPassesApi;
|
|
23
|
-
readonly sessions: SessionsApi;
|
|
24
20
|
readonly voices: VoiceApi;
|
|
21
|
+
readonly conversations: ConversationApi;
|
|
22
|
+
readonly organizations: OrganizationApi;
|
|
25
23
|
private constructor();
|
|
26
24
|
/**
|
|
27
25
|
* Create a new Equos client instance
|
package/dist/client.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EquosClient = void 0;
|
|
4
|
-
const
|
|
5
|
-
const apis_1 = require("./api/apis");
|
|
4
|
+
const core_1 = require("@equos/core");
|
|
6
5
|
/**
|
|
7
6
|
* Main Equos SDK client
|
|
8
7
|
*/
|
|
@@ -10,36 +9,32 @@ class EquosClient {
|
|
|
10
9
|
configuration;
|
|
11
10
|
basePath;
|
|
12
11
|
// API instances
|
|
13
|
-
agents;
|
|
14
|
-
avatars;
|
|
15
12
|
brains;
|
|
16
13
|
characters;
|
|
17
14
|
faces;
|
|
18
15
|
health;
|
|
19
16
|
knowledgeBases;
|
|
20
|
-
sessionPasses;
|
|
21
|
-
sessions;
|
|
22
17
|
voices;
|
|
18
|
+
conversations;
|
|
19
|
+
organizations;
|
|
23
20
|
constructor(apiKey, options) {
|
|
24
21
|
const endpoint = options?.endpoint || 'https://api.equos.ai';
|
|
25
22
|
// Construct the base path
|
|
26
23
|
this.basePath = `${endpoint}`;
|
|
27
24
|
// Create configuration with API key
|
|
28
|
-
this.configuration = new
|
|
25
|
+
this.configuration = new core_1.Configuration({
|
|
29
26
|
basePath: this.basePath,
|
|
30
27
|
apiKey: apiKey, // This will be added to x-api-key header automatically
|
|
31
28
|
});
|
|
32
29
|
// Initialize all API instances
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.sessions = new apis_1.SessionsApi(this.configuration);
|
|
42
|
-
this.voices = new apis_1.VoiceApi(this.configuration);
|
|
30
|
+
this.brains = new core_1.BrainApi(this.configuration);
|
|
31
|
+
this.characters = new core_1.CharacterApi(this.configuration);
|
|
32
|
+
this.faces = new core_1.FaceApi(this.configuration);
|
|
33
|
+
this.health = new core_1.HealthApi(this.configuration);
|
|
34
|
+
this.knowledgeBases = new core_1.KnowledgeBaseApi(this.configuration);
|
|
35
|
+
this.voices = new core_1.VoiceApi(this.configuration);
|
|
36
|
+
this.conversations = new core_1.ConversationApi(this.configuration);
|
|
37
|
+
this.organizations = new core_1.OrganizationApi(this.configuration);
|
|
43
38
|
}
|
|
44
39
|
/**
|
|
45
40
|
* Create a new Equos client instance
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.EquosClient = void 0;
|
|
18
|
+
__exportStar(require("@equos/core"), exports);
|
|
18
19
|
var client_1 = require("./client");
|
|
19
20
|
Object.defineProperty(exports, "EquosClient", { enumerable: true, get: function () { return client_1.EquosClient; } });
|
|
20
|
-
__exportStar(require("./api/models"), exports);
|
|
21
|
-
__exportStar(require("./api/apis"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equos/node-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1-rc.0",
|
|
4
4
|
"description": "Equos.ai node.js official SDK.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -39,14 +39,13 @@
|
|
|
39
39
|
"dev": "ts-node src/index.ts",
|
|
40
40
|
"test": "jest",
|
|
41
41
|
"lint": "eslint . --ext .ts",
|
|
42
|
-
"prepare": "npm run build"
|
|
43
|
-
"generate": "ts-node scripts/generate-client.ts"
|
|
42
|
+
"prepare": "npm run build"
|
|
44
43
|
},
|
|
45
44
|
"dependencies": {
|
|
45
|
+
"@equos/core": "^3.1.1-rc.0",
|
|
46
46
|
"axios": "^1.11.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@openapitools/openapi-generator-cli": "^2.25.2",
|
|
50
49
|
"@types/jest": "^30.0.0",
|
|
51
50
|
"@types/node": "^24.3.0",
|
|
52
51
|
"eslint": "^9.33.0",
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Equos.ai API
|
|
3
|
-
* API documentation for Equos.ai live platform.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 3.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateEquosAgentRequest, EquosAgent, ListEquosAgentsResponse, UpdateEquosAgentRequest } from '../models/index';
|
|
14
|
-
export interface AgentControllerArchiveV3Request {
|
|
15
|
-
id: string;
|
|
16
|
-
}
|
|
17
|
-
export interface AgentControllerCreateV3Request {
|
|
18
|
-
createEquosAgentRequest: CreateEquosAgentRequest;
|
|
19
|
-
}
|
|
20
|
-
export interface AgentControllerGetByIdV3Request {
|
|
21
|
-
id: string;
|
|
22
|
-
}
|
|
23
|
-
export interface AgentControllerListV3Request {
|
|
24
|
-
take?: number;
|
|
25
|
-
skip?: number;
|
|
26
|
-
client?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface AgentControllerUpdateV3Request {
|
|
29
|
-
id: string;
|
|
30
|
-
updateEquosAgentRequest: UpdateEquosAgentRequest;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
export declare class AgentApi extends runtime.BaseAPI {
|
|
36
|
-
/**
|
|
37
|
-
* Delete an Equos Agent. This action is irreversible.
|
|
38
|
-
* @deprecated
|
|
39
|
-
*/
|
|
40
|
-
agentControllerArchiveV3Raw(requestParameters: AgentControllerArchiveV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosAgent>>;
|
|
41
|
-
/**
|
|
42
|
-
* Delete an Equos Agent. This action is irreversible.
|
|
43
|
-
* @deprecated
|
|
44
|
-
*/
|
|
45
|
-
agentControllerArchiveV3(requestParameters: AgentControllerArchiveV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosAgent>;
|
|
46
|
-
/**
|
|
47
|
-
* Create a new Equos Agent.
|
|
48
|
-
* @deprecated
|
|
49
|
-
*/
|
|
50
|
-
agentControllerCreateV3Raw(requestParameters: AgentControllerCreateV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosAgent>>;
|
|
51
|
-
/**
|
|
52
|
-
* Create a new Equos Agent.
|
|
53
|
-
* @deprecated
|
|
54
|
-
*/
|
|
55
|
-
agentControllerCreateV3(requestParameters: AgentControllerCreateV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosAgent>;
|
|
56
|
-
/**
|
|
57
|
-
* Get Equos Agent by ID.
|
|
58
|
-
* @deprecated
|
|
59
|
-
*/
|
|
60
|
-
agentControllerGetByIdV3Raw(requestParameters: AgentControllerGetByIdV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosAgent>>;
|
|
61
|
-
/**
|
|
62
|
-
* Get Equos Agent by ID.
|
|
63
|
-
* @deprecated
|
|
64
|
-
*/
|
|
65
|
-
agentControllerGetByIdV3(requestParameters: AgentControllerGetByIdV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosAgent>;
|
|
66
|
-
/**
|
|
67
|
-
* List Equos Agents.
|
|
68
|
-
* @deprecated
|
|
69
|
-
*/
|
|
70
|
-
agentControllerListV3Raw(requestParameters: AgentControllerListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListEquosAgentsResponse>>;
|
|
71
|
-
/**
|
|
72
|
-
* List Equos Agents.
|
|
73
|
-
* @deprecated
|
|
74
|
-
*/
|
|
75
|
-
agentControllerListV3(requestParameters?: AgentControllerListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListEquosAgentsResponse>;
|
|
76
|
-
/**
|
|
77
|
-
* Update an Equos Agent.
|
|
78
|
-
* @deprecated
|
|
79
|
-
*/
|
|
80
|
-
agentControllerUpdateV3Raw(requestParameters: AgentControllerUpdateV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosAgent>>;
|
|
81
|
-
/**
|
|
82
|
-
* Update an Equos Agent.
|
|
83
|
-
* @deprecated
|
|
84
|
-
*/
|
|
85
|
-
agentControllerUpdateV3(requestParameters: AgentControllerUpdateV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosAgent>;
|
|
86
|
-
}
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Equos.ai API
|
|
6
|
-
* API documentation for Equos.ai live platform.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 3.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(o, k2, desc);
|
|
22
|
-
}) : (function(o, m, k, k2) {
|
|
23
|
-
if (k2 === undefined) k2 = k;
|
|
24
|
-
o[k2] = m[k];
|
|
25
|
-
}));
|
|
26
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
-
}) : function(o, v) {
|
|
29
|
-
o["default"] = v;
|
|
30
|
-
});
|
|
31
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
-
var ownKeys = function(o) {
|
|
33
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
-
var ar = [];
|
|
35
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
-
return ar;
|
|
37
|
-
};
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
48
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.AgentApi = void 0;
|
|
50
|
-
const runtime = __importStar(require("../runtime"));
|
|
51
|
-
const index_1 = require("../models/index");
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
class AgentApi extends runtime.BaseAPI {
|
|
56
|
-
/**
|
|
57
|
-
* Delete an Equos Agent. This action is irreversible.
|
|
58
|
-
* @deprecated
|
|
59
|
-
*/
|
|
60
|
-
async agentControllerArchiveV3Raw(requestParameters, initOverrides) {
|
|
61
|
-
if (requestParameters['id'] == null) {
|
|
62
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling agentControllerArchiveV3().');
|
|
63
|
-
}
|
|
64
|
-
const queryParameters = {};
|
|
65
|
-
const headerParameters = {};
|
|
66
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
67
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // x-api-key authentication
|
|
68
|
-
}
|
|
69
|
-
let urlPath = `/v3/agents/{id}`;
|
|
70
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
71
|
-
const response = await this.request({
|
|
72
|
-
path: urlPath,
|
|
73
|
-
method: 'DELETE',
|
|
74
|
-
headers: headerParameters,
|
|
75
|
-
query: queryParameters,
|
|
76
|
-
}, initOverrides);
|
|
77
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EquosAgentFromJSON)(jsonValue));
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Delete an Equos Agent. This action is irreversible.
|
|
81
|
-
* @deprecated
|
|
82
|
-
*/
|
|
83
|
-
async agentControllerArchiveV3(requestParameters, initOverrides) {
|
|
84
|
-
const response = await this.agentControllerArchiveV3Raw(requestParameters, initOverrides);
|
|
85
|
-
return await response.value();
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Create a new Equos Agent.
|
|
89
|
-
* @deprecated
|
|
90
|
-
*/
|
|
91
|
-
async agentControllerCreateV3Raw(requestParameters, initOverrides) {
|
|
92
|
-
if (requestParameters['createEquosAgentRequest'] == null) {
|
|
93
|
-
throw new runtime.RequiredError('createEquosAgentRequest', 'Required parameter "createEquosAgentRequest" was null or undefined when calling agentControllerCreateV3().');
|
|
94
|
-
}
|
|
95
|
-
const queryParameters = {};
|
|
96
|
-
const headerParameters = {};
|
|
97
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
98
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
99
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // x-api-key authentication
|
|
100
|
-
}
|
|
101
|
-
let urlPath = `/v3/agents`;
|
|
102
|
-
const response = await this.request({
|
|
103
|
-
path: urlPath,
|
|
104
|
-
method: 'POST',
|
|
105
|
-
headers: headerParameters,
|
|
106
|
-
query: queryParameters,
|
|
107
|
-
body: (0, index_1.CreateEquosAgentRequestToJSON)(requestParameters['createEquosAgentRequest']),
|
|
108
|
-
}, initOverrides);
|
|
109
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EquosAgentFromJSON)(jsonValue));
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Create a new Equos Agent.
|
|
113
|
-
* @deprecated
|
|
114
|
-
*/
|
|
115
|
-
async agentControllerCreateV3(requestParameters, initOverrides) {
|
|
116
|
-
const response = await this.agentControllerCreateV3Raw(requestParameters, initOverrides);
|
|
117
|
-
return await response.value();
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Get Equos Agent by ID.
|
|
121
|
-
* @deprecated
|
|
122
|
-
*/
|
|
123
|
-
async agentControllerGetByIdV3Raw(requestParameters, initOverrides) {
|
|
124
|
-
if (requestParameters['id'] == null) {
|
|
125
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling agentControllerGetByIdV3().');
|
|
126
|
-
}
|
|
127
|
-
const queryParameters = {};
|
|
128
|
-
const headerParameters = {};
|
|
129
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
130
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // x-api-key authentication
|
|
131
|
-
}
|
|
132
|
-
let urlPath = `/v3/agents/{id}`;
|
|
133
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
134
|
-
const response = await this.request({
|
|
135
|
-
path: urlPath,
|
|
136
|
-
method: 'GET',
|
|
137
|
-
headers: headerParameters,
|
|
138
|
-
query: queryParameters,
|
|
139
|
-
}, initOverrides);
|
|
140
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EquosAgentFromJSON)(jsonValue));
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Get Equos Agent by ID.
|
|
144
|
-
* @deprecated
|
|
145
|
-
*/
|
|
146
|
-
async agentControllerGetByIdV3(requestParameters, initOverrides) {
|
|
147
|
-
const response = await this.agentControllerGetByIdV3Raw(requestParameters, initOverrides);
|
|
148
|
-
return await response.value();
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* List Equos Agents.
|
|
152
|
-
* @deprecated
|
|
153
|
-
*/
|
|
154
|
-
async agentControllerListV3Raw(requestParameters, initOverrides) {
|
|
155
|
-
const queryParameters = {};
|
|
156
|
-
if (requestParameters['take'] != null) {
|
|
157
|
-
queryParameters['take'] = requestParameters['take'];
|
|
158
|
-
}
|
|
159
|
-
if (requestParameters['skip'] != null) {
|
|
160
|
-
queryParameters['skip'] = requestParameters['skip'];
|
|
161
|
-
}
|
|
162
|
-
if (requestParameters['client'] != null) {
|
|
163
|
-
queryParameters['client'] = requestParameters['client'];
|
|
164
|
-
}
|
|
165
|
-
const headerParameters = {};
|
|
166
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
167
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // x-api-key authentication
|
|
168
|
-
}
|
|
169
|
-
let urlPath = `/v3/agents`;
|
|
170
|
-
const response = await this.request({
|
|
171
|
-
path: urlPath,
|
|
172
|
-
method: 'GET',
|
|
173
|
-
headers: headerParameters,
|
|
174
|
-
query: queryParameters,
|
|
175
|
-
}, initOverrides);
|
|
176
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListEquosAgentsResponseFromJSON)(jsonValue));
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* List Equos Agents.
|
|
180
|
-
* @deprecated
|
|
181
|
-
*/
|
|
182
|
-
async agentControllerListV3(requestParameters = {}, initOverrides) {
|
|
183
|
-
const response = await this.agentControllerListV3Raw(requestParameters, initOverrides);
|
|
184
|
-
return await response.value();
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Update an Equos Agent.
|
|
188
|
-
* @deprecated
|
|
189
|
-
*/
|
|
190
|
-
async agentControllerUpdateV3Raw(requestParameters, initOverrides) {
|
|
191
|
-
if (requestParameters['id'] == null) {
|
|
192
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling agentControllerUpdateV3().');
|
|
193
|
-
}
|
|
194
|
-
if (requestParameters['updateEquosAgentRequest'] == null) {
|
|
195
|
-
throw new runtime.RequiredError('updateEquosAgentRequest', 'Required parameter "updateEquosAgentRequest" was null or undefined when calling agentControllerUpdateV3().');
|
|
196
|
-
}
|
|
197
|
-
const queryParameters = {};
|
|
198
|
-
const headerParameters = {};
|
|
199
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
200
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
201
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // x-api-key authentication
|
|
202
|
-
}
|
|
203
|
-
let urlPath = `/v3/agents/{id}`;
|
|
204
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
205
|
-
const response = await this.request({
|
|
206
|
-
path: urlPath,
|
|
207
|
-
method: 'PUT',
|
|
208
|
-
headers: headerParameters,
|
|
209
|
-
query: queryParameters,
|
|
210
|
-
body: (0, index_1.UpdateEquosAgentRequestToJSON)(requestParameters['updateEquosAgentRequest']),
|
|
211
|
-
}, initOverrides);
|
|
212
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EquosAgentFromJSON)(jsonValue));
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Update an Equos Agent.
|
|
216
|
-
* @deprecated
|
|
217
|
-
*/
|
|
218
|
-
async agentControllerUpdateV3(requestParameters, initOverrides) {
|
|
219
|
-
const response = await this.agentControllerUpdateV3Raw(requestParameters, initOverrides);
|
|
220
|
-
return await response.value();
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
exports.AgentApi = AgentApi;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Equos.ai API
|
|
3
|
-
* API documentation for Equos.ai live platform.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 3.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateEquosAvatarRequest, EquosAvatar, ListEquosAvatarsResponse, UpdateEquosAvatarRequest } from '../models/index';
|
|
14
|
-
export interface AvatarControllerArchiveV3Request {
|
|
15
|
-
id: string;
|
|
16
|
-
}
|
|
17
|
-
export interface AvatarControllerCreateV3Request {
|
|
18
|
-
createEquosAvatarRequest: CreateEquosAvatarRequest;
|
|
19
|
-
}
|
|
20
|
-
export interface AvatarControllerGetByIdV3Request {
|
|
21
|
-
id: string;
|
|
22
|
-
}
|
|
23
|
-
export interface AvatarControllerListV3Request {
|
|
24
|
-
take?: number;
|
|
25
|
-
skip?: number;
|
|
26
|
-
client?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface AvatarControllerUpdateV3Request {
|
|
29
|
-
id: string;
|
|
30
|
-
updateEquosAvatarRequest: UpdateEquosAvatarRequest;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
export declare class AvatarApi extends runtime.BaseAPI {
|
|
36
|
-
/**
|
|
37
|
-
* Delete an Equos Avatar. This action is irreversible.
|
|
38
|
-
* @deprecated
|
|
39
|
-
*/
|
|
40
|
-
avatarControllerArchiveV3Raw(requestParameters: AvatarControllerArchiveV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosAvatar>>;
|
|
41
|
-
/**
|
|
42
|
-
* Delete an Equos Avatar. This action is irreversible.
|
|
43
|
-
* @deprecated
|
|
44
|
-
*/
|
|
45
|
-
avatarControllerArchiveV3(requestParameters: AvatarControllerArchiveV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosAvatar>;
|
|
46
|
-
/**
|
|
47
|
-
* Create a new Equos Avatar.
|
|
48
|
-
* @deprecated
|
|
49
|
-
*/
|
|
50
|
-
avatarControllerCreateV3Raw(requestParameters: AvatarControllerCreateV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosAvatar>>;
|
|
51
|
-
/**
|
|
52
|
-
* Create a new Equos Avatar.
|
|
53
|
-
* @deprecated
|
|
54
|
-
*/
|
|
55
|
-
avatarControllerCreateV3(requestParameters: AvatarControllerCreateV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosAvatar>;
|
|
56
|
-
/**
|
|
57
|
-
* Get Equos Avatar by ID.
|
|
58
|
-
* @deprecated
|
|
59
|
-
*/
|
|
60
|
-
avatarControllerGetByIdV3Raw(requestParameters: AvatarControllerGetByIdV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosAvatar>>;
|
|
61
|
-
/**
|
|
62
|
-
* Get Equos Avatar by ID.
|
|
63
|
-
* @deprecated
|
|
64
|
-
*/
|
|
65
|
-
avatarControllerGetByIdV3(requestParameters: AvatarControllerGetByIdV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosAvatar>;
|
|
66
|
-
/**
|
|
67
|
-
* List Equos Avatars.
|
|
68
|
-
* @deprecated
|
|
69
|
-
*/
|
|
70
|
-
avatarControllerListV3Raw(requestParameters: AvatarControllerListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListEquosAvatarsResponse>>;
|
|
71
|
-
/**
|
|
72
|
-
* List Equos Avatars.
|
|
73
|
-
* @deprecated
|
|
74
|
-
*/
|
|
75
|
-
avatarControllerListV3(requestParameters?: AvatarControllerListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListEquosAvatarsResponse>;
|
|
76
|
-
/**
|
|
77
|
-
* Update an Equos Avatar.
|
|
78
|
-
* @deprecated
|
|
79
|
-
*/
|
|
80
|
-
avatarControllerUpdateV3Raw(requestParameters: AvatarControllerUpdateV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosAvatar>>;
|
|
81
|
-
/**
|
|
82
|
-
* Update an Equos Avatar.
|
|
83
|
-
* @deprecated
|
|
84
|
-
*/
|
|
85
|
-
avatarControllerUpdateV3(requestParameters: AvatarControllerUpdateV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosAvatar>;
|
|
86
|
-
}
|