@equos/node-sdk 2.2.3 → 3.0.2-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/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
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EquosKnowledgeBaseApi = void 0;
|
|
4
|
-
const error_utils_1 = require("../utils/error.utils");
|
|
5
|
-
class EquosKnowledgeBaseApi {
|
|
6
|
-
http;
|
|
7
|
-
constructor(http) {
|
|
8
|
-
this.http = http;
|
|
9
|
-
}
|
|
10
|
-
async create(data) {
|
|
11
|
-
return this.http
|
|
12
|
-
.post('/knowledge-bases', data)
|
|
13
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
14
|
-
}
|
|
15
|
-
async list(skip = 0, take = 10, client) {
|
|
16
|
-
let path = `/knowledge-bases?skip=${skip}&take=${take}`;
|
|
17
|
-
if (client) {
|
|
18
|
-
path += `&client=${client}`;
|
|
19
|
-
}
|
|
20
|
-
return this.http
|
|
21
|
-
.get(path)
|
|
22
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
23
|
-
}
|
|
24
|
-
async get(knowledgeBaseId) {
|
|
25
|
-
return this.http
|
|
26
|
-
.get(`/knowledge-bases/${knowledgeBaseId}`)
|
|
27
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
28
|
-
}
|
|
29
|
-
async delete(knowledgeBaseId) {
|
|
30
|
-
return this.http
|
|
31
|
-
.delete(`/knowledge-bases/${knowledgeBaseId}`)
|
|
32
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
33
|
-
}
|
|
34
|
-
async createDocument(knowledgeBaseId, data) {
|
|
35
|
-
return this.http
|
|
36
|
-
.post(`/knowledge-bases/${knowledgeBaseId}/documents`, data)
|
|
37
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
38
|
-
}
|
|
39
|
-
async indexDocument(knowledgeBaseId, documentId) {
|
|
40
|
-
return this.http
|
|
41
|
-
.patch(`/knowledge-bases/${knowledgeBaseId}/documents/${documentId}/index`, null)
|
|
42
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
43
|
-
}
|
|
44
|
-
async deleteDocument(knowledgeBaseId, documentId) {
|
|
45
|
-
return this.http
|
|
46
|
-
.delete(`/knowledge-bases/${knowledgeBaseId}/documents/${documentId}`)
|
|
47
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.EquosKnowledgeBaseApi = EquosKnowledgeBaseApi;
|
package/dist/apis/session.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CreateEquosSessionRequest, CreateEquosSessionResponse, EquosSession, ListEquosSessionsResponse } from '../types/session.type';
|
|
2
|
-
import { HttpUtils } from '../utils/http.utils';
|
|
3
|
-
export declare class EquosSessionApi {
|
|
4
|
-
private readonly http;
|
|
5
|
-
constructor(http: HttpUtils);
|
|
6
|
-
get(id: string): Promise<EquosSession>;
|
|
7
|
-
create(data: CreateEquosSessionRequest): Promise<CreateEquosSessionResponse>;
|
|
8
|
-
list(skip?: number, take?: number, client?: string): Promise<ListEquosSessionsResponse>;
|
|
9
|
-
stop(id: string): Promise<EquosSession>;
|
|
10
|
-
}
|
package/dist/apis/session.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EquosSessionApi = void 0;
|
|
4
|
-
const error_utils_1 = require("../utils/error.utils");
|
|
5
|
-
class EquosSessionApi {
|
|
6
|
-
http;
|
|
7
|
-
constructor(http) {
|
|
8
|
-
this.http = http;
|
|
9
|
-
}
|
|
10
|
-
async get(id) {
|
|
11
|
-
return this.http
|
|
12
|
-
.get(`/sessions/${id}`)
|
|
13
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
14
|
-
}
|
|
15
|
-
async create(data) {
|
|
16
|
-
return this.http
|
|
17
|
-
.post('/sessions', data)
|
|
18
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
19
|
-
}
|
|
20
|
-
async list(skip = 0, take = 10, client) {
|
|
21
|
-
let path = `/sessions?skip=${skip}&take=${take}`;
|
|
22
|
-
if (client) {
|
|
23
|
-
path += `&client=${client}`;
|
|
24
|
-
}
|
|
25
|
-
return this.http
|
|
26
|
-
.get(path)
|
|
27
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
28
|
-
}
|
|
29
|
-
async stop(id) {
|
|
30
|
-
return this.http
|
|
31
|
-
.patch(`/sessions/${id}/stop`, {})
|
|
32
|
-
.catch(error_utils_1.ErrorUtils.convertToEquosError);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.EquosSessionApi = EquosSessionApi;
|
package/dist/equos.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { EquosAgentApi } from './apis/agent';
|
|
2
|
-
import { EquosAvatarApi } from './apis/avatar';
|
|
3
|
-
import { EquosKnowledgeBaseApi } from './apis/knowledge-base';
|
|
4
|
-
import { EquosSessionApi } from './apis/session';
|
|
5
|
-
export interface EquosOptions {
|
|
6
|
-
/**
|
|
7
|
-
* API version to use (default: v1)
|
|
8
|
-
*/
|
|
9
|
-
version?: string;
|
|
10
|
-
/**
|
|
11
|
-
* API endpoint to use (default: https://api.equos.ai)
|
|
12
|
-
* Can leave blank to use the default endpoint.
|
|
13
|
-
*/
|
|
14
|
-
endpoint?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class Equos {
|
|
17
|
-
private readonly apiKey;
|
|
18
|
-
readonly opts?: EquosOptions | undefined;
|
|
19
|
-
private readonly http;
|
|
20
|
-
private readonly avatarApi;
|
|
21
|
-
private readonly sessionApi;
|
|
22
|
-
private readonly agentApi;
|
|
23
|
-
private readonly knowledgeBaseApi;
|
|
24
|
-
private readonly version;
|
|
25
|
-
private readonly endpoint;
|
|
26
|
-
private constructor();
|
|
27
|
-
static client(apiKey: string, opts?: EquosOptions): Equos;
|
|
28
|
-
get agents(): EquosAgentApi;
|
|
29
|
-
get avatars(): EquosAvatarApi;
|
|
30
|
-
get sessions(): EquosSessionApi;
|
|
31
|
-
get knowledgeBases(): EquosKnowledgeBaseApi;
|
|
32
|
-
}
|
package/dist/equos.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Equos = void 0;
|
|
4
|
-
const agent_1 = require("./apis/agent");
|
|
5
|
-
const avatar_1 = require("./apis/avatar");
|
|
6
|
-
const knowledge_base_1 = require("./apis/knowledge-base");
|
|
7
|
-
const session_1 = require("./apis/session");
|
|
8
|
-
const constants_utils_1 = require("./utils/constants.utils");
|
|
9
|
-
const http_utils_1 = require("./utils/http.utils");
|
|
10
|
-
class Equos {
|
|
11
|
-
apiKey;
|
|
12
|
-
opts;
|
|
13
|
-
http;
|
|
14
|
-
avatarApi;
|
|
15
|
-
sessionApi;
|
|
16
|
-
agentApi;
|
|
17
|
-
knowledgeBaseApi;
|
|
18
|
-
version;
|
|
19
|
-
endpoint;
|
|
20
|
-
constructor(apiKey, opts) {
|
|
21
|
-
this.apiKey = apiKey;
|
|
22
|
-
this.opts = opts;
|
|
23
|
-
this.endpoint = opts?.endpoint || constants_utils_1.ConstantsUtils.DEFAULT_ENDPOINT;
|
|
24
|
-
this.version = opts?.version || constants_utils_1.ConstantsUtils.DEFAULT_VERSION;
|
|
25
|
-
this.http = new http_utils_1.HttpUtils(this.endpoint, this.version, this.apiKey);
|
|
26
|
-
this.avatarApi = new avatar_1.EquosAvatarApi(this.http);
|
|
27
|
-
this.sessionApi = new session_1.EquosSessionApi(this.http);
|
|
28
|
-
this.agentApi = new agent_1.EquosAgentApi(this.http);
|
|
29
|
-
this.knowledgeBaseApi = new knowledge_base_1.EquosKnowledgeBaseApi(this.http);
|
|
30
|
-
}
|
|
31
|
-
static client(apiKey, opts) {
|
|
32
|
-
return new Equos(apiKey, opts);
|
|
33
|
-
}
|
|
34
|
-
get agents() {
|
|
35
|
-
return this.agentApi;
|
|
36
|
-
}
|
|
37
|
-
get avatars() {
|
|
38
|
-
return this.avatarApi;
|
|
39
|
-
}
|
|
40
|
-
get sessions() {
|
|
41
|
-
return this.sessionApi;
|
|
42
|
-
}
|
|
43
|
-
get knowledgeBases() {
|
|
44
|
-
return this.knowledgeBaseApi;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.Equos = Equos;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
export declare enum OpenaiRealtimeModels {
|
|
2
|
-
gpt_4o_realtime = "gpt-4o-realtime-preview",
|
|
3
|
-
gpt_realtime = "gpt-realtime"
|
|
4
|
-
}
|
|
5
|
-
export declare enum OpenaiRealtimeVoices {
|
|
6
|
-
alloy = "alloy",
|
|
7
|
-
marin = "marin",
|
|
8
|
-
cedar = "cedar",
|
|
9
|
-
ash = "ash",
|
|
10
|
-
ballad = "ballad",
|
|
11
|
-
coral = "coral",
|
|
12
|
-
echo = "echo",
|
|
13
|
-
sage = "sage",
|
|
14
|
-
shimmer = "shimmer",
|
|
15
|
-
verse = "verse"
|
|
16
|
-
}
|
|
17
|
-
export declare enum GeminiRealtimeModels {
|
|
18
|
-
gemini_2_5_flash_native_audio_09_2025 = "gemini-2.5-flash-native-audio-preview-09-2025"
|
|
19
|
-
}
|
|
20
|
-
export declare enum GeminiRealtimeVoices {
|
|
21
|
-
Puck = "Puck",
|
|
22
|
-
Charon = "Charon",
|
|
23
|
-
Kore = "Kore",
|
|
24
|
-
Fenrir = "Fenrir",
|
|
25
|
-
Aoede = "Aoede",
|
|
26
|
-
Leda = "Leda",
|
|
27
|
-
Orus = "Orus",
|
|
28
|
-
Zephyr = "Zephyr",
|
|
29
|
-
Sulafat = "Sulafat",
|
|
30
|
-
Sadachbia = "Sadachbia",
|
|
31
|
-
Sadaltager = "Sadaltager",
|
|
32
|
-
Vindemiatrix = "Vindemiatrix",
|
|
33
|
-
Zubenelgenubi = "Zubenelgenubi",
|
|
34
|
-
Achird = "Achird",
|
|
35
|
-
Pulcherrima = "Pulcherrima",
|
|
36
|
-
Gacrux = "Gacrux",
|
|
37
|
-
Schedar = "Schedar",
|
|
38
|
-
Alnilam = "Alnilam",
|
|
39
|
-
Achernar = "Achernar",
|
|
40
|
-
Laomedeia = "Laomedeia",
|
|
41
|
-
Rasalgethi = "Rasalgethi",
|
|
42
|
-
Algenib = "Algenib",
|
|
43
|
-
Erinome = "Erinome",
|
|
44
|
-
Despina = "Despina",
|
|
45
|
-
Algieba = "Algieba",
|
|
46
|
-
Umbriel = "Umbriel",
|
|
47
|
-
Iapetus = "Iapetus",
|
|
48
|
-
Enceladus = "Enceladus",
|
|
49
|
-
Autonoe = "Autonoe",
|
|
50
|
-
Callirrhoe = "Callirrhoe"
|
|
51
|
-
}
|
|
52
|
-
export declare enum AgentProvider {
|
|
53
|
-
openai = "openai",
|
|
54
|
-
gemini = "gemini",
|
|
55
|
-
elevenlabs = "elevenlabs"
|
|
56
|
-
}
|
|
57
|
-
export interface CreateEquosAgentRequest {
|
|
58
|
-
provider: AgentProvider;
|
|
59
|
-
client?: string | null;
|
|
60
|
-
name?: string | null;
|
|
61
|
-
model?: GeminiRealtimeModels;
|
|
62
|
-
voice?: GeminiRealtimeVoices;
|
|
63
|
-
instructions?: string;
|
|
64
|
-
greetingMsg?: string | null;
|
|
65
|
-
search?: boolean;
|
|
66
|
-
emotions?: boolean;
|
|
67
|
-
memory?: boolean;
|
|
68
|
-
remoteId?: string | null;
|
|
69
|
-
}
|
|
70
|
-
export interface EquosAgent {
|
|
71
|
-
id: string;
|
|
72
|
-
organizationId: string;
|
|
73
|
-
provider: AgentProvider;
|
|
74
|
-
name?: string;
|
|
75
|
-
client?: string;
|
|
76
|
-
model?: OpenaiRealtimeModels | GeminiRealtimeModels;
|
|
77
|
-
voice?: OpenaiRealtimeVoices | GeminiRealtimeVoices;
|
|
78
|
-
instructions?: string;
|
|
79
|
-
greetingMsg?: string | null;
|
|
80
|
-
remoteId?: string;
|
|
81
|
-
search: boolean;
|
|
82
|
-
emotions: boolean;
|
|
83
|
-
memory: boolean;
|
|
84
|
-
createdAt: Date;
|
|
85
|
-
updatedAt: Date;
|
|
86
|
-
}
|
|
87
|
-
export interface ListEquosAgentsResponse {
|
|
88
|
-
skip: number;
|
|
89
|
-
take: number;
|
|
90
|
-
total: number;
|
|
91
|
-
agents: EquosAgent[];
|
|
92
|
-
}
|
|
93
|
-
export interface UpdateEquosAgentRequest extends CreateEquosAgentRequest {
|
|
94
|
-
id: string;
|
|
95
|
-
organizationId: string;
|
|
96
|
-
}
|
package/dist/types/agent.type.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentProvider = exports.GeminiRealtimeVoices = exports.GeminiRealtimeModels = exports.OpenaiRealtimeVoices = exports.OpenaiRealtimeModels = void 0;
|
|
4
|
-
var OpenaiRealtimeModels;
|
|
5
|
-
(function (OpenaiRealtimeModels) {
|
|
6
|
-
OpenaiRealtimeModels["gpt_4o_realtime"] = "gpt-4o-realtime-preview";
|
|
7
|
-
OpenaiRealtimeModels["gpt_realtime"] = "gpt-realtime";
|
|
8
|
-
})(OpenaiRealtimeModels || (exports.OpenaiRealtimeModels = OpenaiRealtimeModels = {}));
|
|
9
|
-
var OpenaiRealtimeVoices;
|
|
10
|
-
(function (OpenaiRealtimeVoices) {
|
|
11
|
-
OpenaiRealtimeVoices["alloy"] = "alloy";
|
|
12
|
-
OpenaiRealtimeVoices["marin"] = "marin";
|
|
13
|
-
OpenaiRealtimeVoices["cedar"] = "cedar";
|
|
14
|
-
OpenaiRealtimeVoices["ash"] = "ash";
|
|
15
|
-
OpenaiRealtimeVoices["ballad"] = "ballad";
|
|
16
|
-
OpenaiRealtimeVoices["coral"] = "coral";
|
|
17
|
-
OpenaiRealtimeVoices["echo"] = "echo";
|
|
18
|
-
OpenaiRealtimeVoices["sage"] = "sage";
|
|
19
|
-
OpenaiRealtimeVoices["shimmer"] = "shimmer";
|
|
20
|
-
OpenaiRealtimeVoices["verse"] = "verse";
|
|
21
|
-
})(OpenaiRealtimeVoices || (exports.OpenaiRealtimeVoices = OpenaiRealtimeVoices = {}));
|
|
22
|
-
var GeminiRealtimeModels;
|
|
23
|
-
(function (GeminiRealtimeModels) {
|
|
24
|
-
GeminiRealtimeModels["gemini_2_5_flash_native_audio_09_2025"] = "gemini-2.5-flash-native-audio-preview-09-2025";
|
|
25
|
-
})(GeminiRealtimeModels || (exports.GeminiRealtimeModels = GeminiRealtimeModels = {}));
|
|
26
|
-
var GeminiRealtimeVoices;
|
|
27
|
-
(function (GeminiRealtimeVoices) {
|
|
28
|
-
GeminiRealtimeVoices["Puck"] = "Puck";
|
|
29
|
-
GeminiRealtimeVoices["Charon"] = "Charon";
|
|
30
|
-
GeminiRealtimeVoices["Kore"] = "Kore";
|
|
31
|
-
GeminiRealtimeVoices["Fenrir"] = "Fenrir";
|
|
32
|
-
GeminiRealtimeVoices["Aoede"] = "Aoede";
|
|
33
|
-
GeminiRealtimeVoices["Leda"] = "Leda";
|
|
34
|
-
GeminiRealtimeVoices["Orus"] = "Orus";
|
|
35
|
-
GeminiRealtimeVoices["Zephyr"] = "Zephyr";
|
|
36
|
-
GeminiRealtimeVoices["Sulafat"] = "Sulafat";
|
|
37
|
-
GeminiRealtimeVoices["Sadachbia"] = "Sadachbia";
|
|
38
|
-
GeminiRealtimeVoices["Sadaltager"] = "Sadaltager";
|
|
39
|
-
GeminiRealtimeVoices["Vindemiatrix"] = "Vindemiatrix";
|
|
40
|
-
GeminiRealtimeVoices["Zubenelgenubi"] = "Zubenelgenubi";
|
|
41
|
-
GeminiRealtimeVoices["Achird"] = "Achird";
|
|
42
|
-
GeminiRealtimeVoices["Pulcherrima"] = "Pulcherrima";
|
|
43
|
-
GeminiRealtimeVoices["Gacrux"] = "Gacrux";
|
|
44
|
-
GeminiRealtimeVoices["Schedar"] = "Schedar";
|
|
45
|
-
GeminiRealtimeVoices["Alnilam"] = "Alnilam";
|
|
46
|
-
GeminiRealtimeVoices["Achernar"] = "Achernar";
|
|
47
|
-
GeminiRealtimeVoices["Laomedeia"] = "Laomedeia";
|
|
48
|
-
GeminiRealtimeVoices["Rasalgethi"] = "Rasalgethi";
|
|
49
|
-
GeminiRealtimeVoices["Algenib"] = "Algenib";
|
|
50
|
-
GeminiRealtimeVoices["Erinome"] = "Erinome";
|
|
51
|
-
GeminiRealtimeVoices["Despina"] = "Despina";
|
|
52
|
-
GeminiRealtimeVoices["Algieba"] = "Algieba";
|
|
53
|
-
GeminiRealtimeVoices["Umbriel"] = "Umbriel";
|
|
54
|
-
GeminiRealtimeVoices["Iapetus"] = "Iapetus";
|
|
55
|
-
GeminiRealtimeVoices["Enceladus"] = "Enceladus";
|
|
56
|
-
GeminiRealtimeVoices["Autonoe"] = "Autonoe";
|
|
57
|
-
GeminiRealtimeVoices["Callirrhoe"] = "Callirrhoe";
|
|
58
|
-
})(GeminiRealtimeVoices || (exports.GeminiRealtimeVoices = GeminiRealtimeVoices = {}));
|
|
59
|
-
var AgentProvider;
|
|
60
|
-
(function (AgentProvider) {
|
|
61
|
-
AgentProvider["openai"] = "openai";
|
|
62
|
-
AgentProvider["gemini"] = "gemini";
|
|
63
|
-
AgentProvider["elevenlabs"] = "elevenlabs";
|
|
64
|
-
})(AgentProvider || (exports.AgentProvider = AgentProvider = {}));
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { EquosAgent } from './agent.type';
|
|
2
|
-
export interface CreateEquosAvatarRequest {
|
|
3
|
-
identity: string;
|
|
4
|
-
name: string;
|
|
5
|
-
refImage: string;
|
|
6
|
-
client?: string | null;
|
|
7
|
-
agentId?: string | null;
|
|
8
|
-
}
|
|
9
|
-
export interface EquosAvatar {
|
|
10
|
-
id: string;
|
|
11
|
-
organizationId: string;
|
|
12
|
-
identity: string;
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
client?: string;
|
|
16
|
-
thumbnailUrl: string;
|
|
17
|
-
agentId?: string;
|
|
18
|
-
agent?: EquosAgent | null;
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
updatedAt: Date;
|
|
21
|
-
}
|
|
22
|
-
export interface ListEquosAvatarsResponse {
|
|
23
|
-
skip: number;
|
|
24
|
-
take: number;
|
|
25
|
-
total: number;
|
|
26
|
-
avatars: EquosAvatar[];
|
|
27
|
-
}
|
|
28
|
-
export interface UpdateEquosAvatarRequest extends Omit<CreateEquosAvatarRequest, 'refImage'> {
|
|
29
|
-
id: string;
|
|
30
|
-
organizationId: string;
|
|
31
|
-
}
|
package/dist/types/error.type.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EquosError = void 0;
|
|
4
|
-
class EquosError extends Error {
|
|
5
|
-
message;
|
|
6
|
-
code;
|
|
7
|
-
constructor(message, code) {
|
|
8
|
-
super(message);
|
|
9
|
-
this.message = message;
|
|
10
|
-
this.code = code;
|
|
11
|
-
this.name = 'EquosError';
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.EquosError = EquosError;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export interface CreateKnowledgeBaseRequest {
|
|
2
|
-
name: string;
|
|
3
|
-
description: string;
|
|
4
|
-
client?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface EquosKnowledgeBase {
|
|
7
|
-
id: string;
|
|
8
|
-
organizationId: string;
|
|
9
|
-
name: string;
|
|
10
|
-
description: string;
|
|
11
|
-
client?: string;
|
|
12
|
-
documents: EquosDocument[];
|
|
13
|
-
createdAt: Date;
|
|
14
|
-
updatedAt: Date;
|
|
15
|
-
}
|
|
16
|
-
export interface CreateDocumentRequest {
|
|
17
|
-
name: string;
|
|
18
|
-
description: string;
|
|
19
|
-
mimeType: string;
|
|
20
|
-
}
|
|
21
|
-
export interface CreateDocumentResponse {
|
|
22
|
-
document: EquosDocument;
|
|
23
|
-
uploadUrl: string;
|
|
24
|
-
expireAt: Date;
|
|
25
|
-
}
|
|
26
|
-
export interface EquosDocument {
|
|
27
|
-
id: string;
|
|
28
|
-
knowledgeBaseId: string;
|
|
29
|
-
name: string;
|
|
30
|
-
description: string;
|
|
31
|
-
size: number;
|
|
32
|
-
status: string;
|
|
33
|
-
createdAt: Date;
|
|
34
|
-
updatedAt: Date;
|
|
35
|
-
}
|
|
36
|
-
export interface ListEquosKnowledgeBasesResponse {
|
|
37
|
-
skip: number;
|
|
38
|
-
take: number;
|
|
39
|
-
total: number;
|
|
40
|
-
items: EquosKnowledgeBase[];
|
|
41
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { CreateEquosAgentRequest, EquosAgent } from './agent.type';
|
|
2
|
-
import { CreateEquosAvatarRequest, EquosAvatar } from './avatar.type';
|
|
3
|
-
import { EquosKnowledgeBase } from './knowledge-base.type';
|
|
4
|
-
export interface EquosParticipantIdentity {
|
|
5
|
-
identity: string;
|
|
6
|
-
name: string;
|
|
7
|
-
}
|
|
8
|
-
export interface CreateEquosSessionRequest {
|
|
9
|
-
name: string;
|
|
10
|
-
client?: string;
|
|
11
|
-
host?: {
|
|
12
|
-
serverUrl: string;
|
|
13
|
-
accessToken: string;
|
|
14
|
-
};
|
|
15
|
-
agent?: {
|
|
16
|
-
id: string;
|
|
17
|
-
} | CreateEquosAgentRequest;
|
|
18
|
-
avatar: {
|
|
19
|
-
id: string;
|
|
20
|
-
} | CreateEquosAvatarRequest;
|
|
21
|
-
knowledgeBase?: {
|
|
22
|
-
id: string;
|
|
23
|
-
};
|
|
24
|
-
remoteAgentConnectingIdentity?: EquosParticipantIdentity;
|
|
25
|
-
consumerIdentity?: EquosParticipantIdentity;
|
|
26
|
-
maxDuration?: number;
|
|
27
|
-
additionalCtx?: string;
|
|
28
|
-
templateVars?: Record<string, string>;
|
|
29
|
-
}
|
|
30
|
-
export interface EquosSession {
|
|
31
|
-
id: string;
|
|
32
|
-
organizationId: string;
|
|
33
|
-
freemium: boolean;
|
|
34
|
-
name: string;
|
|
35
|
-
provider: string;
|
|
36
|
-
client?: string;
|
|
37
|
-
status: string;
|
|
38
|
-
host: {
|
|
39
|
-
serverUrl: string;
|
|
40
|
-
};
|
|
41
|
-
avatarId: string;
|
|
42
|
-
avatar: EquosAvatar;
|
|
43
|
-
agentId?: string;
|
|
44
|
-
agent?: EquosAgent;
|
|
45
|
-
knowledgeBaseId?: string;
|
|
46
|
-
knowledgeBase?: EquosKnowledgeBase;
|
|
47
|
-
additionalCtx?: string;
|
|
48
|
-
templateVars?: Record<string, string>;
|
|
49
|
-
remoteAgentIdentity?: string;
|
|
50
|
-
maxDuration?: number;
|
|
51
|
-
transcript?: {
|
|
52
|
-
transcription: {
|
|
53
|
-
text: string;
|
|
54
|
-
received_at: string;
|
|
55
|
-
identity: string;
|
|
56
|
-
}[];
|
|
57
|
-
} | null;
|
|
58
|
-
startedAt: Date;
|
|
59
|
-
endedAt?: Date;
|
|
60
|
-
createdAt: Date;
|
|
61
|
-
updatedAt: Date;
|
|
62
|
-
}
|
|
63
|
-
export interface CreateEquosSessionResponse {
|
|
64
|
-
session: EquosSession;
|
|
65
|
-
consumerAccessToken?: string;
|
|
66
|
-
remoteAgentAccessToken?: string;
|
|
67
|
-
}
|
|
68
|
-
export interface ListEquosSessionsResponse {
|
|
69
|
-
skip: number;
|
|
70
|
-
take: number;
|
|
71
|
-
total: number;
|
|
72
|
-
sessions: EquosSession[];
|
|
73
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConstantsUtils = void 0;
|
|
4
|
-
class ConstantsUtils {
|
|
5
|
-
static DEFAULT_ENDPOINT = 'https://api.equos.ai';
|
|
6
|
-
static DEFAULT_VERSION = 'v1';
|
|
7
|
-
}
|
|
8
|
-
exports.ConstantsUtils = ConstantsUtils;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ErrorUtils = void 0;
|
|
4
|
-
const error_type_1 = require("../types/error.type");
|
|
5
|
-
class ErrorUtils {
|
|
6
|
-
static UNKNOWN_ERROR = new error_type_1.EquosError('An unknown error occurred', 'UNKNOWN_ERROR');
|
|
7
|
-
static convertToEquosError(e) {
|
|
8
|
-
throw new error_type_1.EquosError(e.response?.data?.message || e.message || 'An unknown error occured.', e.code);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.ErrorUtils = ErrorUtils;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare class HttpUtils {
|
|
2
|
-
private readonly baseUrl;
|
|
3
|
-
private readonly version;
|
|
4
|
-
private readonly apiKey;
|
|
5
|
-
constructor(baseUrl: string, version: string, apiKey: string);
|
|
6
|
-
private getPath;
|
|
7
|
-
get<T>(path: string): Promise<T>;
|
|
8
|
-
post<T, U>(path: string, data: T): Promise<U>;
|
|
9
|
-
patch<T, U>(path: string, data: T): Promise<U>;
|
|
10
|
-
put<T, U>(path: string, data: T): Promise<U>;
|
|
11
|
-
delete<U>(path: string): Promise<U>;
|
|
12
|
-
}
|