@eazo/sdk 0.6.0 → 0.8.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/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/capabilities/ai.d.ts +54 -0
- package/dist/internal/capabilities/ai.d.ts.map +1 -0
- package/dist/internal/capabilities/ai.js +55 -0
- package/dist/internal/capabilities/ai.js.map +1 -0
- package/dist/internal/capabilities/memory.d.ts +45 -0
- package/dist/internal/capabilities/memory.d.ts.map +1 -0
- package/dist/internal/capabilities/memory.js +57 -0
- package/dist/internal/capabilities/memory.js.map +1 -0
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export { auth } from "./internal/capabilities/auth";
|
|
2
2
|
export { device } from "./internal/capabilities/device";
|
|
3
3
|
export { storage } from "./internal/capabilities/storage";
|
|
4
|
+
export { ai } from "./internal/capabilities/ai";
|
|
5
|
+
export { memory } from "./internal/capabilities/memory";
|
|
4
6
|
export type { LoginOptions } from "./internal/capabilities/auth";
|
|
5
7
|
export type { StorageCredentials, UploadResult } from "./internal/capabilities/storage";
|
|
8
|
+
export type { MemoryActionParams } from "./internal/capabilities/memory";
|
|
9
|
+
export type { ChatCompletion, ChatCompletionChunk, ChatCompletionCreateParamsNonStreaming, ChatCompletionCreateParamsStreaming, } from "./internal/capabilities/ai";
|
|
6
10
|
export type { User, DeviceContext, AuthState, EazoState } from "./types";
|
|
7
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,YAAY,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACxF,YAAY,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,sCAAsC,EACtC,mCAAmC,GACpC,MAAM,4BAA4B,CAAC;AACpC,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.storage = exports.device = exports.auth = void 0;
|
|
3
|
+
exports.memory = exports.ai = exports.storage = exports.device = exports.auth = void 0;
|
|
4
4
|
var auth_1 = require("./internal/capabilities/auth");
|
|
5
5
|
Object.defineProperty(exports, "auth", { enumerable: true, get: function () { return auth_1.auth; } });
|
|
6
6
|
var device_1 = require("./internal/capabilities/device");
|
|
7
7
|
Object.defineProperty(exports, "device", { enumerable: true, get: function () { return device_1.device; } });
|
|
8
8
|
var storage_1 = require("./internal/capabilities/storage");
|
|
9
9
|
Object.defineProperty(exports, "storage", { enumerable: true, get: function () { return storage_1.storage; } });
|
|
10
|
+
var ai_1 = require("./internal/capabilities/ai");
|
|
11
|
+
Object.defineProperty(exports, "ai", { enumerable: true, get: function () { return ai_1.ai; } });
|
|
12
|
+
var memory_1 = require("./internal/capabilities/memory");
|
|
13
|
+
Object.defineProperty(exports, "memory", { enumerable: true, get: function () { return memory_1.memory; } });
|
|
10
14
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAAoD;AAA3C,4FAAA,IAAI,OAAA;AACb,yDAAwD;AAA/C,gGAAA,MAAM,OAAA;AACf,2DAA0D;AAAjD,kGAAA,OAAO,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAAoD;AAA3C,4FAAA,IAAI,OAAA;AACb,yDAAwD;AAA/C,gGAAA,MAAM,OAAA;AACf,2DAA0D;AAAjD,kGAAA,OAAO,OAAA;AAChB,iDAAgD;AAAvC,wFAAA,EAAE,OAAA;AACX,yDAAwD;AAA/C,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import OpenAI from "openai";
|
|
2
|
+
export type { ChatCompletion, ChatCompletionChunk } from "openai/resources/chat/completions";
|
|
3
|
+
export type { ChatCompletionCreateParamsNonStreaming, ChatCompletionCreateParamsStreaming, } from "openai/resources/chat/completions";
|
|
4
|
+
/**
|
|
5
|
+
* Send a chat completion request to the built-in AI (AWS Bedrock via bedrock-mantle).
|
|
6
|
+
*
|
|
7
|
+
* Uses the official `openai` package under the hood — all parameter types are
|
|
8
|
+
* identical to the OpenAI SDK. The response is returned as-is in OpenAI standard
|
|
9
|
+
* format, including streaming chunks.
|
|
10
|
+
*
|
|
11
|
+
* @example Non-streaming
|
|
12
|
+
* ```ts
|
|
13
|
+
* const result = await ai.chat({
|
|
14
|
+
* model: 'deepseek.v3.1',
|
|
15
|
+
* messages: [{ role: 'user', content: 'Hello!' }],
|
|
16
|
+
* });
|
|
17
|
+
* console.log(result.choices[0].message.content);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @example Streaming
|
|
21
|
+
* ```ts
|
|
22
|
+
* const stream = await ai.chat({
|
|
23
|
+
* model: 'deepseek.v3.1',
|
|
24
|
+
* messages: [{ role: 'user', content: 'Tell me a story.' }],
|
|
25
|
+
* stream: true,
|
|
26
|
+
* });
|
|
27
|
+
* for await (const chunk of stream) {
|
|
28
|
+
* process.stdout.write(chunk.choices[0]?.delta?.content ?? '');
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @example Function calling
|
|
33
|
+
* ```ts
|
|
34
|
+
* const result = await ai.chat({
|
|
35
|
+
* model: 'deepseek.v3.1',
|
|
36
|
+
* messages: [{ role: 'user', content: 'What is the weather in Shanghai?' }],
|
|
37
|
+
* tools: [{ type: 'function', function: { name: 'get_weather', description: '...', parameters: {...} } }],
|
|
38
|
+
* tool_choice: 'auto',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare function chat(params: OpenAI.Chat.ChatCompletionCreateParamsNonStreaming): Promise<OpenAI.Chat.ChatCompletion>;
|
|
43
|
+
declare function chat(params: OpenAI.Chat.ChatCompletionCreateParamsStreaming): Promise<AsyncIterable<OpenAI.Chat.ChatCompletionChunk>>;
|
|
44
|
+
export declare const ai: {
|
|
45
|
+
/**
|
|
46
|
+
* Configure the private key for AI requests.
|
|
47
|
+
* Alternative to setting the EAZO_PRIVATE_KEY environment variable.
|
|
48
|
+
*/
|
|
49
|
+
configure(opts: {
|
|
50
|
+
privateKey: string;
|
|
51
|
+
}): void;
|
|
52
|
+
chat: typeof chat;
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=ai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../src/internal/capabilities/ai.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAmC5B,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,YAAY,EACV,sCAAsC,EACtC,mCAAmC,GACpC,MAAM,mCAAmC,CAAC;AAM3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,iBAAe,IAAI,CACjB,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,sCAAsC,GACzD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AACvC,iBAAe,IAAI,CACjB,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,mCAAmC,GACtD,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAwB3D,eAAO,MAAM,EAAE;IACb;;;OAGG;oBACa;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;;CAK9C,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ai = void 0;
|
|
7
|
+
const openai_1 = __importDefault(require("openai"));
|
|
8
|
+
const config_1 = require("../config");
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
// Private key storage
|
|
11
|
+
// ---------------------------------------------------------------------------
|
|
12
|
+
let privateKey = null;
|
|
13
|
+
function setPrivateKey(key) {
|
|
14
|
+
privateKey = key;
|
|
15
|
+
}
|
|
16
|
+
function getPrivateKey() {
|
|
17
|
+
if (privateKey)
|
|
18
|
+
return privateKey;
|
|
19
|
+
if (typeof process !== "undefined" && process.env.EAZO_PRIVATE_KEY) {
|
|
20
|
+
return process.env.EAZO_PRIVATE_KEY;
|
|
21
|
+
}
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
function buildClient() {
|
|
25
|
+
const key = getPrivateKey();
|
|
26
|
+
if (!key) {
|
|
27
|
+
throw new Error("@eazo/sdk: missing private key. Set EAZO_PRIVATE_KEY env var or call ai.configure({ privateKey }).");
|
|
28
|
+
}
|
|
29
|
+
return new openai_1.default({
|
|
30
|
+
baseURL: `${(0, config_1.getApiBase)()}/v1`,
|
|
31
|
+
apiKey: key,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
async function chat(params) {
|
|
35
|
+
const client = buildClient();
|
|
36
|
+
if (params.stream) {
|
|
37
|
+
// openai SDK Stream is itself an AsyncIterable<ChatCompletionChunk>
|
|
38
|
+
return client.chat.completions.create(params);
|
|
39
|
+
}
|
|
40
|
+
return client.chat.completions.create(params);
|
|
41
|
+
}
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
// Public API
|
|
44
|
+
// ---------------------------------------------------------------------------
|
|
45
|
+
exports.ai = {
|
|
46
|
+
/**
|
|
47
|
+
* Configure the private key for AI requests.
|
|
48
|
+
* Alternative to setting the EAZO_PRIVATE_KEY environment variable.
|
|
49
|
+
*/
|
|
50
|
+
configure(opts) {
|
|
51
|
+
setPrivateKey(opts.privateKey);
|
|
52
|
+
},
|
|
53
|
+
chat,
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=ai.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.js","sourceRoot":"","sources":["../../../src/internal/capabilities/ai.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,sCAAuC;AAEvC,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,IAAI,UAAU,GAAkB,IAAI,CAAC;AAErC,SAAS,aAAa,CAAC,GAAW;IAChC,UAAU,GAAG,GAAG,CAAC;AACnB,CAAC;AAED,SAAS,aAAa;IACpB,IAAI,UAAU;QAAE,OAAO,UAAU,CAAC;IAClC,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;QACnE,OAAO,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;IACtC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,WAAW;IAClB,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;IAC5B,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,oGAAoG,CACrG,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,gBAAM,CAAC;QAChB,OAAO,EAAE,GAAG,IAAA,mBAAU,GAAE,KAAK;QAC7B,MAAM,EAAE,GAAG;KACZ,CAAC,CAAC;AACL,CAAC;AAyDD,KAAK,UAAU,IAAI,CACjB,MAEmD;IAEnD,MAAM,MAAM,GAAG,WAAW,EAAE,CAAC;IAE7B,IAAK,MAA0D,CAAC,MAAM,EAAE,CAAC;QACvE,oEAAoE;QACpE,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CACnC,MAAyD,CACC,CAAC;IAC/D,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CACnC,MAA4D,CAC7D,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,aAAa;AACb,8EAA8E;AAEjE,QAAA,EAAE,GAAG;IAChB;;;OAGG;IACH,SAAS,CAAC,IAA4B;QACpC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACjC,CAAC;IAED,IAAI;CACL,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface MemoryActionParams {
|
|
2
|
+
/** Readable description of the user action, e.g. "User clicked the publish button on the app editor page" */
|
|
3
|
+
content: string;
|
|
4
|
+
/** ISO 8601 timestamp. Defaults to now when omitted. */
|
|
5
|
+
timestamp?: string;
|
|
6
|
+
/** Associate this action with a Gum session ID */
|
|
7
|
+
session_id?: string;
|
|
8
|
+
/** Action category, e.g. "click", "search", "page_view" */
|
|
9
|
+
event_type?: string;
|
|
10
|
+
/** Page identifier where the action occurred, e.g. "app_editor" */
|
|
11
|
+
page?: string;
|
|
12
|
+
/** Business ID anchors for retrieval, e.g. { app_id: "app_123" } */
|
|
13
|
+
anchors?: Record<string, string>;
|
|
14
|
+
/** Additional metadata */
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
/** Entity tags associated with this action */
|
|
17
|
+
entities?: string[];
|
|
18
|
+
/** Device identifier */
|
|
19
|
+
device_id?: string;
|
|
20
|
+
/** App identifier */
|
|
21
|
+
app?: string;
|
|
22
|
+
/** Platform, e.g. "web", "ios", "android" */
|
|
23
|
+
platform?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const memory: {
|
|
26
|
+
/**
|
|
27
|
+
* Report a user action event to Gum memory service.
|
|
28
|
+
*
|
|
29
|
+
* Requires the user to be authenticated — the current session is forwarded
|
|
30
|
+
* automatically via `x-eazo-session`. The developer public key is read from
|
|
31
|
+
* `NEXT_PUBLIC_EAZO_PUBLIC_KEY` or set via `auth.configure({ publicKey })`.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* await memory.reportAction({
|
|
36
|
+
* content: "User clicked the publish button on the app editor page",
|
|
37
|
+
* event_type: "click",
|
|
38
|
+
* page: "app_editor",
|
|
39
|
+
* anchors: { app_id: "app_123" },
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
reportAction(params: MemoryActionParams): Promise<void>;
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/internal/capabilities/memory.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,kBAAkB;IACjC,6GAA6G;IAC7G,OAAO,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAMD,eAAO,MAAM,MAAM;IACjB;;;;;;;;;;;;;;;;OAgBG;yBACwB,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;CAkC9D,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.memory = void 0;
|
|
4
|
+
const config_1 = require("../config");
|
|
5
|
+
const auth_1 = require("./auth");
|
|
6
|
+
// ---------------------------------------------------------------------------
|
|
7
|
+
// Public API
|
|
8
|
+
// ---------------------------------------------------------------------------
|
|
9
|
+
exports.memory = {
|
|
10
|
+
/**
|
|
11
|
+
* Report a user action event to Gum memory service.
|
|
12
|
+
*
|
|
13
|
+
* Requires the user to be authenticated — the current session is forwarded
|
|
14
|
+
* automatically via `x-eazo-session`. The developer public key is read from
|
|
15
|
+
* `NEXT_PUBLIC_EAZO_PUBLIC_KEY` or set via `auth.configure({ publicKey })`.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* await memory.reportAction({
|
|
20
|
+
* content: "User clicked the publish button on the app editor page",
|
|
21
|
+
* event_type: "click",
|
|
22
|
+
* page: "app_editor",
|
|
23
|
+
* anchors: { app_id: "app_123" },
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
async reportAction(params) {
|
|
28
|
+
const publicKey = (0, config_1.getPublicKey)();
|
|
29
|
+
if (!publicKey) {
|
|
30
|
+
throw new Error("@eazo/sdk: missing public key. Set NEXT_PUBLIC_EAZO_PUBLIC_KEY or call auth.configure({ publicKey }).");
|
|
31
|
+
}
|
|
32
|
+
const session = await auth_1.auth.getSessionHeader();
|
|
33
|
+
if (!session) {
|
|
34
|
+
throw new Error("@eazo/sdk: user is not authenticated. Call auth.login() before reporting memory actions.");
|
|
35
|
+
}
|
|
36
|
+
const res = await fetch(`${(0, config_1.getApiBase)()}/api/open/gum/action`, {
|
|
37
|
+
method: "POST",
|
|
38
|
+
headers: {
|
|
39
|
+
"Content-Type": "application/json",
|
|
40
|
+
"x-eazo-publickey": publicKey,
|
|
41
|
+
"x-eazo-session": session,
|
|
42
|
+
},
|
|
43
|
+
body: JSON.stringify(params),
|
|
44
|
+
});
|
|
45
|
+
if (!res.ok) {
|
|
46
|
+
let message = `Failed to report memory action: ${res.status}`;
|
|
47
|
+
try {
|
|
48
|
+
const body = await res.json();
|
|
49
|
+
if (body?.message)
|
|
50
|
+
message = body.message;
|
|
51
|
+
}
|
|
52
|
+
catch { /* ignore */ }
|
|
53
|
+
throw new Error(message);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=memory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../src/internal/capabilities/memory.ts"],"names":[],"mappings":";;;AAAA,sCAAqD;AACrD,iCAA8B;AA+B9B,8EAA8E;AAC9E,aAAa;AACb,8EAA8E;AAEjE,QAAA,MAAM,GAAG;IACpB;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,YAAY,CAAC,MAA0B;QAC3C,MAAM,SAAS,GAAG,IAAA,qBAAY,GAAE,CAAC;QACjC,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CACb,uGAAuG,CACxG,CAAC;QACJ,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,WAAI,CAAC,gBAAgB,EAAE,CAAC;QAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CACb,0FAA0F,CAC3F,CAAC;QACJ,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,IAAA,mBAAU,GAAE,sBAAsB,EAAE;YAC7D,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,kBAAkB,EAAE,SAAS;gBAC7B,gBAAgB,EAAE,OAAO;aAC1B;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;SAC7B,CAAC,CAAC;QAEH,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YACZ,IAAI,OAAO,GAAG,mCAAmC,GAAG,CAAC,MAAM,EAAE,CAAC;YAC9D,IAAI,CAAC;gBACH,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAA0B,CAAC;gBACtD,IAAI,IAAI,EAAE,OAAO;oBAAE,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;YAC5C,CAAC;YAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eazo/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Eazo platform SDK — capability-first API for web apps that run on Eazo Mobile and the web browser",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@radix-ui/react-dialog": "^1.1.4",
|
|
47
47
|
"authing-js-sdk": "^4.23.55",
|
|
48
|
-
"elliptic": "^6.6.1"
|
|
48
|
+
"elliptic": "^6.6.1",
|
|
49
|
+
"openai": "^6.34.0"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"react": ">=18"
|