@equos/node-sdk 2.2.3 → 3.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.
- package/README.md +390 -66
- package/dist/api/apis/AgentApi.d.ts +86 -0
- package/dist/api/apis/AgentApi.js +223 -0
- package/dist/api/apis/AvatarApi.d.ts +86 -0
- package/dist/api/apis/AvatarApi.js +223 -0
- package/dist/api/apis/BrainApi.d.ts +64 -0
- package/dist/api/apis/BrainApi.js +179 -0
- package/dist/api/apis/CharacterApi.d.ts +76 -0
- package/dist/api/apis/CharacterApi.js +213 -0
- package/dist/api/apis/FaceApi.d.ts +64 -0
- package/dist/api/apis/FaceApi.js +179 -0
- package/dist/api/apis/HealthApi.d.ts +26 -0
- package/dist/api/apis/HealthApi.js +79 -0
- package/dist/api/apis/KnowledgeBaseApi.d.ts +84 -0
- package/dist/api/apis/KnowledgeBaseApi.js +260 -0
- package/dist/api/apis/LimitsApi.d.ts +26 -0
- package/dist/api/apis/LimitsApi.js +82 -0
- package/dist/api/apis/SessionPassesApi.d.ts +44 -0
- package/dist/api/apis/SessionPassesApi.js +128 -0
- package/dist/api/apis/SessionsApi.d.ts +72 -0
- package/dist/api/apis/SessionsApi.js +187 -0
- package/dist/api/apis/VoiceApi.d.ts +64 -0
- package/dist/api/apis/VoiceApi.js +179 -0
- package/dist/api/apis/index.d.ts +11 -0
- package/dist/api/apis/index.js +29 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +21 -0
- package/dist/api/models/CreateEquosAgentRequest.d.ts +144 -0
- package/dist/api/models/CreateEquosAgentRequest.js +120 -0
- package/dist/api/models/CreateEquosAvatarRequest.d.ts +56 -0
- package/dist/api/models/CreateEquosAvatarRequest.js +64 -0
- package/dist/api/models/CreateEquosBrainRequest.d.ts +56 -0
- package/dist/api/models/CreateEquosBrainRequest.js +64 -0
- package/dist/api/models/CreateEquosCharacterRequest.d.ts +80 -0
- package/dist/api/models/CreateEquosCharacterRequest.js +68 -0
- package/dist/api/models/CreateEquosFaceRequest.d.ts +46 -0
- package/dist/api/models/CreateEquosFaceRequest.js +60 -0
- package/dist/api/models/CreateEquosSessionRequest.d.ts +90 -0
- package/dist/api/models/CreateEquosSessionRequest.js +74 -0
- package/dist/api/models/CreateEquosSessionRequestAgent.d.ts +23 -0
- package/dist/api/models/CreateEquosSessionRequestAgent.js +57 -0
- package/dist/api/models/CreateEquosSessionRequestAvatar.d.ts +23 -0
- package/dist/api/models/CreateEquosSessionRequestAvatar.js +57 -0
- package/dist/api/models/CreateEquosSessionResponse.d.ts +45 -0
- package/dist/api/models/CreateEquosSessionResponse.js +55 -0
- package/dist/api/models/CreateEquosVoiceRequest.d.ts +56 -0
- package/dist/api/models/CreateEquosVoiceRequest.js +64 -0
- package/dist/api/models/CreateSessionPassRequest.d.ts +76 -0
- package/dist/api/models/CreateSessionPassRequest.js +72 -0
- package/dist/api/models/EquosAgent.d.ts +180 -0
- package/dist/api/models/EquosAgent.js +154 -0
- package/dist/api/models/EquosAvatar.d.ts +92 -0
- package/dist/api/models/EquosAvatar.js +84 -0
- package/dist/api/models/EquosBrain.d.ts +74 -0
- package/dist/api/models/EquosBrain.js +76 -0
- package/dist/api/models/EquosCharacter.d.ts +132 -0
- package/dist/api/models/EquosCharacter.js +98 -0
- package/dist/api/models/EquosDocument.d.ts +74 -0
- package/dist/api/models/EquosDocument.js +78 -0
- package/dist/api/models/EquosFace.d.ts +107 -0
- package/dist/api/models/EquosFace.js +89 -0
- package/dist/api/models/EquosKnowledgeBase.d.ts +75 -0
- package/dist/api/models/EquosKnowledgeBase.js +77 -0
- package/dist/api/models/EquosLimitResponse.d.ts +68 -0
- package/dist/api/models/EquosLimitResponse.js +72 -0
- package/dist/api/models/EquosParticipantIdentity.d.ts +38 -0
- package/dist/api/models/EquosParticipantIdentity.js +54 -0
- package/dist/api/models/EquosResourceReference.d.ts +32 -0
- package/dist/api/models/EquosResourceReference.js +50 -0
- package/dist/api/models/EquosSession.d.ts +168 -0
- package/dist/api/models/EquosSession.js +118 -0
- package/dist/api/models/EquosSessionHost.d.ts +38 -0
- package/dist/api/models/EquosSessionHost.js +54 -0
- package/dist/api/models/EquosSessionServer.d.ts +32 -0
- package/dist/api/models/EquosSessionServer.js +50 -0
- package/dist/api/models/EquosVoice.d.ts +80 -0
- package/dist/api/models/EquosVoice.js +80 -0
- package/dist/api/models/HealthResponse.d.ts +38 -0
- package/dist/api/models/HealthResponse.js +54 -0
- package/dist/api/models/ListEquosAgentsResponse.d.ts +51 -0
- package/dist/api/models/ListEquosAgentsResponse.js +63 -0
- package/dist/api/models/ListEquosAvatarsResponse.d.ts +51 -0
- package/dist/api/models/ListEquosAvatarsResponse.js +63 -0
- package/dist/api/models/ListEquosBrainsResponse.d.ts +51 -0
- package/dist/api/models/ListEquosBrainsResponse.js +63 -0
- package/dist/api/models/ListEquosCharactersResponse.d.ts +51 -0
- package/dist/api/models/ListEquosCharactersResponse.js +63 -0
- package/dist/api/models/ListEquosFacesResponse.d.ts +51 -0
- package/dist/api/models/ListEquosFacesResponse.js +63 -0
- package/dist/api/models/ListEquosSessionsResponse.d.ts +51 -0
- package/dist/api/models/ListEquosSessionsResponse.js +63 -0
- package/dist/api/models/ListEquosVoicesResponse.d.ts +51 -0
- package/dist/api/models/ListEquosVoicesResponse.js +63 -0
- package/dist/api/models/UpdateEquosAgentRequest.d.ts +156 -0
- package/dist/api/models/UpdateEquosAgentRequest.js +128 -0
- package/dist/api/models/UpdateEquosAvatarRequest.d.ts +68 -0
- package/dist/api/models/UpdateEquosAvatarRequest.js +72 -0
- package/dist/api/models/UpdateEquosCharacterRequest.d.ts +68 -0
- package/dist/api/models/UpdateEquosCharacterRequest.js +60 -0
- package/dist/api/models/index.d.ts +36 -0
- package/dist/api/models/index.js +54 -0
- package/dist/api/runtime.d.ts +184 -0
- package/dist/api/runtime.js +349 -0
- package/dist/client.d.ts +38 -0
- package/dist/client.js +62 -0
- package/dist/index.d.ts +3 -10
- package/dist/index.js +7 -10
- package/dist/options.d.ts +7 -0
- package/package.json +4 -2
- package/dist/apis/agent.d.ts +0 -11
- package/dist/apis/agent.js +0 -40
- package/dist/apis/avatar.d.ts +0 -11
- package/dist/apis/avatar.js +0 -40
- package/dist/apis/knowledge-base.d.ts +0 -13
- package/dist/apis/knowledge-base.js +0 -50
- package/dist/apis/session.d.ts +0 -10
- package/dist/apis/session.js +0 -35
- package/dist/equos.d.ts +0 -32
- package/dist/equos.js +0 -47
- package/dist/types/agent.type.d.ts +0 -96
- package/dist/types/agent.type.js +0 -64
- package/dist/types/avatar.type.d.ts +0 -31
- package/dist/types/error.type.d.ts +0 -5
- package/dist/types/error.type.js +0 -14
- package/dist/types/knowledge-base.type.d.ts +0 -41
- package/dist/types/knowledge-base.type.js +0 -2
- package/dist/types/session.type.d.ts +0 -73
- package/dist/types/session.type.js +0 -2
- package/dist/utils/constants.utils.d.ts +0 -4
- package/dist/utils/constants.utils.js +0 -8
- package/dist/utils/error.utils.d.ts +0 -5
- package/dist/utils/error.utils.js +0 -11
- package/dist/utils/http.utils.d.ts +0 -12
- package/dist/utils/http.utils.js +0 -126
- /package/dist/{types/avatar.type.js → options.js} +0 -0
|
@@ -0,0 +1,223 @@
|
|
|
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;
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
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.AvatarApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class AvatarApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Delete an Equos Avatar. This action is irreversible.
|
|
58
|
+
* @deprecated
|
|
59
|
+
*/
|
|
60
|
+
async avatarControllerArchiveV3Raw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['id'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling avatarControllerArchiveV3().');
|
|
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/avatars/{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.EquosAvatarFromJSON)(jsonValue));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Delete an Equos Avatar. This action is irreversible.
|
|
81
|
+
* @deprecated
|
|
82
|
+
*/
|
|
83
|
+
async avatarControllerArchiveV3(requestParameters, initOverrides) {
|
|
84
|
+
const response = await this.avatarControllerArchiveV3Raw(requestParameters, initOverrides);
|
|
85
|
+
return await response.value();
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Create a new Equos Avatar.
|
|
89
|
+
* @deprecated
|
|
90
|
+
*/
|
|
91
|
+
async avatarControllerCreateV3Raw(requestParameters, initOverrides) {
|
|
92
|
+
if (requestParameters['createEquosAvatarRequest'] == null) {
|
|
93
|
+
throw new runtime.RequiredError('createEquosAvatarRequest', 'Required parameter "createEquosAvatarRequest" was null or undefined when calling avatarControllerCreateV3().');
|
|
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/avatars`;
|
|
102
|
+
const response = await this.request({
|
|
103
|
+
path: urlPath,
|
|
104
|
+
method: 'POST',
|
|
105
|
+
headers: headerParameters,
|
|
106
|
+
query: queryParameters,
|
|
107
|
+
body: (0, index_1.CreateEquosAvatarRequestToJSON)(requestParameters['createEquosAvatarRequest']),
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EquosAvatarFromJSON)(jsonValue));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Create a new Equos Avatar.
|
|
113
|
+
* @deprecated
|
|
114
|
+
*/
|
|
115
|
+
async avatarControllerCreateV3(requestParameters, initOverrides) {
|
|
116
|
+
const response = await this.avatarControllerCreateV3Raw(requestParameters, initOverrides);
|
|
117
|
+
return await response.value();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Get Equos Avatar by ID.
|
|
121
|
+
* @deprecated
|
|
122
|
+
*/
|
|
123
|
+
async avatarControllerGetByIdV3Raw(requestParameters, initOverrides) {
|
|
124
|
+
if (requestParameters['id'] == null) {
|
|
125
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling avatarControllerGetByIdV3().');
|
|
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/avatars/{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.EquosAvatarFromJSON)(jsonValue));
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Get Equos Avatar by ID.
|
|
144
|
+
* @deprecated
|
|
145
|
+
*/
|
|
146
|
+
async avatarControllerGetByIdV3(requestParameters, initOverrides) {
|
|
147
|
+
const response = await this.avatarControllerGetByIdV3Raw(requestParameters, initOverrides);
|
|
148
|
+
return await response.value();
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* List Equos Avatars.
|
|
152
|
+
* @deprecated
|
|
153
|
+
*/
|
|
154
|
+
async avatarControllerListV3Raw(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/avatars`;
|
|
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.ListEquosAvatarsResponseFromJSON)(jsonValue));
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* List Equos Avatars.
|
|
180
|
+
* @deprecated
|
|
181
|
+
*/
|
|
182
|
+
async avatarControllerListV3(requestParameters = {}, initOverrides) {
|
|
183
|
+
const response = await this.avatarControllerListV3Raw(requestParameters, initOverrides);
|
|
184
|
+
return await response.value();
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Update an Equos Avatar.
|
|
188
|
+
* @deprecated
|
|
189
|
+
*/
|
|
190
|
+
async avatarControllerUpdateV3Raw(requestParameters, initOverrides) {
|
|
191
|
+
if (requestParameters['id'] == null) {
|
|
192
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling avatarControllerUpdateV3().');
|
|
193
|
+
}
|
|
194
|
+
if (requestParameters['updateEquosAvatarRequest'] == null) {
|
|
195
|
+
throw new runtime.RequiredError('updateEquosAvatarRequest', 'Required parameter "updateEquosAvatarRequest" was null or undefined when calling avatarControllerUpdateV3().');
|
|
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/avatars/{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.UpdateEquosAvatarRequestToJSON)(requestParameters['updateEquosAvatarRequest']),
|
|
211
|
+
}, initOverrides);
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EquosAvatarFromJSON)(jsonValue));
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Update an Equos Avatar.
|
|
216
|
+
* @deprecated
|
|
217
|
+
*/
|
|
218
|
+
async avatarControllerUpdateV3(requestParameters, initOverrides) {
|
|
219
|
+
const response = await this.avatarControllerUpdateV3Raw(requestParameters, initOverrides);
|
|
220
|
+
return await response.value();
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
exports.AvatarApi = AvatarApi;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { CreateEquosBrainRequest, EquosBrain, ListEquosBrainsResponse } from '../models/index';
|
|
14
|
+
export interface BrainControllerCreateV3Request {
|
|
15
|
+
createEquosBrainRequest: CreateEquosBrainRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface BrainControllerGetByIdV3Request {
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
export interface BrainControllerListV3Request {
|
|
21
|
+
take?: number;
|
|
22
|
+
skip?: number;
|
|
23
|
+
client?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface BrainControllerSoftDeleteV3Request {
|
|
26
|
+
id: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare class BrainApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Create a new Equos Brain.
|
|
34
|
+
*/
|
|
35
|
+
brainControllerCreateV3Raw(requestParameters: BrainControllerCreateV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosBrain>>;
|
|
36
|
+
/**
|
|
37
|
+
* Create a new Equos Brain.
|
|
38
|
+
*/
|
|
39
|
+
brainControllerCreateV3(requestParameters: BrainControllerCreateV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosBrain>;
|
|
40
|
+
/**
|
|
41
|
+
* Get Equos Brain by ID.
|
|
42
|
+
*/
|
|
43
|
+
brainControllerGetByIdV3Raw(requestParameters: BrainControllerGetByIdV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosBrain>>;
|
|
44
|
+
/**
|
|
45
|
+
* Get Equos Brain by ID.
|
|
46
|
+
*/
|
|
47
|
+
brainControllerGetByIdV3(requestParameters: BrainControllerGetByIdV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosBrain>;
|
|
48
|
+
/**
|
|
49
|
+
* List Equos Brains.
|
|
50
|
+
*/
|
|
51
|
+
brainControllerListV3Raw(requestParameters: BrainControllerListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListEquosBrainsResponse>>;
|
|
52
|
+
/**
|
|
53
|
+
* List Equos Brains.
|
|
54
|
+
*/
|
|
55
|
+
brainControllerListV3(requestParameters?: BrainControllerListV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListEquosBrainsResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Delete an Equos Brain. This action is irreversible.
|
|
58
|
+
*/
|
|
59
|
+
brainControllerSoftDeleteV3Raw(requestParameters: BrainControllerSoftDeleteV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EquosBrain>>;
|
|
60
|
+
/**
|
|
61
|
+
* Delete an Equos Brain. This action is irreversible.
|
|
62
|
+
*/
|
|
63
|
+
brainControllerSoftDeleteV3(requestParameters: BrainControllerSoftDeleteV3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EquosBrain>;
|
|
64
|
+
}
|