okeymeta-ai-sdk 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/index.d.ts +16 -0
  2. package/package.json +2 -1
package/index.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ declare module "okeymeta-ai-sdk" {
2
+ export class OkeyMetaClient {
3
+ constructor(options?: { auth_token?: string, headers?: object, endpoints?: object });
4
+ textCompletion(params: object): Promise<any>;
5
+ imageToText(params: object): Promise<any>;
6
+ startConversation(model?: string, contextKey?: string): Conversation;
7
+ }
8
+
9
+ export function createOkeyMetaProvider(options?: { auth_token?: string, headers?: object, endpoints?: object }): OkeyMetaClient;
10
+
11
+ export class Conversation {
12
+ constructor(options: { client: OkeyMetaClient, model: string, contextKey?: string });
13
+ setContextKey(contextKey: string): void;
14
+ send(input: string, params?: object): Promise<any>;
15
+ }
16
+ }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "okeymeta-ai-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Official SDK for OkeyMeta AI models, including OkeyAI—Africa's first trained AI. Seamlessly integrate text, image, and conversational AI into any JavaScript project with enterprise-grade reliability and security.",
5
5
  "main": "src/index.js",
6
+ "types": "index.d.ts",
6
7
  "scripts": {
7
8
  "test": "echo \"Error: no test specified\" && exit 1"
8
9
  },