@equos/node-sdk 3.0.2-rc.10 → 3.0.2-rc.11

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.
@@ -0,0 +1,34 @@
1
+ import { BrainApi, CharacterApi, ConversationApi, FaceApi, HealthApi, KnowledgeBaseApi, VoiceApi } from '@equos/core';
2
+ export interface EquosOptions {
3
+ /**
4
+ * API endpoint to use (default: https://api.equos.ai)
5
+ * Can leave blank to use the default endpoint.
6
+ */
7
+ endpoint?: string;
8
+ }
9
+ /**
10
+ * Main Equos SDK client
11
+ */
12
+ export declare class EquosClient {
13
+ private readonly configuration;
14
+ private readonly basePath;
15
+ readonly brains: BrainApi;
16
+ readonly characters: CharacterApi;
17
+ readonly faces: FaceApi;
18
+ readonly health: HealthApi;
19
+ readonly knowledgeBases: KnowledgeBaseApi;
20
+ readonly voices: VoiceApi;
21
+ readonly conversations: ConversationApi;
22
+ private constructor();
23
+ /**
24
+ * Create a new Equos client instance
25
+ * @param apiKey - Your Equos API key
26
+ * @param options - Optional configuration
27
+ * @returns EquosClient instance
28
+ */
29
+ static create(apiKey: string, options?: EquosOptions): EquosClient;
30
+ /**
31
+ * Get the base path being used by this client
32
+ */
33
+ getBasePath(): string;
34
+ }
package/dist/client.js ADDED
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EquosClient = void 0;
4
+ const core_1 = require("@equos/core");
5
+ /**
6
+ * Main Equos SDK client
7
+ */
8
+ class EquosClient {
9
+ configuration;
10
+ basePath;
11
+ // API instances
12
+ brains;
13
+ characters;
14
+ faces;
15
+ health;
16
+ knowledgeBases;
17
+ voices;
18
+ conversations;
19
+ constructor(apiKey, options) {
20
+ const endpoint = options?.endpoint || 'https://api.equos.ai';
21
+ // Construct the base path
22
+ this.basePath = `${endpoint}`;
23
+ // Create configuration with API key
24
+ this.configuration = new core_1.Configuration({
25
+ basePath: this.basePath,
26
+ apiKey: apiKey, // This will be added to x-api-key header automatically
27
+ });
28
+ // Initialize all API instances
29
+ this.brains = new core_1.BrainApi(this.configuration);
30
+ this.characters = new core_1.CharacterApi(this.configuration);
31
+ this.faces = new core_1.FaceApi(this.configuration);
32
+ this.health = new core_1.HealthApi(this.configuration);
33
+ this.knowledgeBases = new core_1.KnowledgeBaseApi(this.configuration);
34
+ this.voices = new core_1.VoiceApi(this.configuration);
35
+ this.conversations = new core_1.ConversationApi(this.configuration);
36
+ }
37
+ /**
38
+ * Create a new Equos client instance
39
+ * @param apiKey - Your Equos API key
40
+ * @param options - Optional configuration
41
+ * @returns EquosClient instance
42
+ */
43
+ static create(apiKey, options) {
44
+ return new EquosClient(apiKey, options);
45
+ }
46
+ /**
47
+ * Get the base path being used by this client
48
+ */
49
+ getBasePath() {
50
+ return this.basePath;
51
+ }
52
+ }
53
+ exports.EquosClient = EquosClient;
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from '@equos/core';
2
+ export { EquosClient, EquosOptions } from './client';
package/dist/index.js CHANGED
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.EquosClient = void 0;
17
18
  __exportStar(require("@equos/core"), exports);
19
+ var client_1 = require("./client");
20
+ Object.defineProperty(exports, "EquosClient", { enumerable: true, get: function () { return client_1.EquosClient; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equos/node-sdk",
3
- "version": "3.0.2-rc.10",
3
+ "version": "3.0.2-rc.11",
4
4
  "description": "Equos.ai node.js official SDK.",
5
5
  "keywords": [
6
6
  "ai",
@@ -42,7 +42,7 @@
42
42
  "prepare": "npm run build"
43
43
  },
44
44
  "dependencies": {
45
- "@equos/core": "^3.0.2-rc.1",
45
+ "@equos/core": "^3.0.2-rc.2",
46
46
  "axios": "^1.11.0"
47
47
  },
48
48
  "devDependencies": {