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

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,35 @@
1
+ import { BrainApi, CharacterApi, ConversationApi, FaceApi, HealthApi, KnowledgeBaseApi, OrganizationApi, 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
+ readonly organizations: OrganizationApi;
23
+ private constructor();
24
+ /**
25
+ * Create a new Equos client instance
26
+ * @param apiKey - Your Equos API key
27
+ * @param options - Optional configuration
28
+ * @returns EquosClient instance
29
+ */
30
+ static create(apiKey: string, options?: EquosOptions): EquosClient;
31
+ /**
32
+ * Get the base path being used by this client
33
+ */
34
+ getBasePath(): string;
35
+ }
package/dist/client.js ADDED
@@ -0,0 +1,55 @@
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
+ organizations;
20
+ constructor(apiKey, options) {
21
+ const endpoint = options?.endpoint || 'https://api.equos.ai';
22
+ // Construct the base path
23
+ this.basePath = `${endpoint}`;
24
+ // Create configuration with API key
25
+ this.configuration = new core_1.Configuration({
26
+ basePath: this.basePath,
27
+ apiKey: apiKey, // This will be added to x-api-key header automatically
28
+ });
29
+ // Initialize all API instances
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);
38
+ }
39
+ /**
40
+ * Create a new Equos client instance
41
+ * @param apiKey - Your Equos API key
42
+ * @param options - Optional configuration
43
+ * @returns EquosClient instance
44
+ */
45
+ static create(apiKey, options) {
46
+ return new EquosClient(apiKey, options);
47
+ }
48
+ /**
49
+ * Get the base path being used by this client
50
+ */
51
+ getBasePath() {
52
+ return this.basePath;
53
+ }
54
+ }
55
+ 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.12",
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.3",
46
46
  "axios": "^1.11.0"
47
47
  },
48
48
  "devDependencies": {