mboaai-sdk 1.0.16 → 1.0.18
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 +7 -14
- package/dist/mboaai-sdk.esm.js +1 -2
- package/dist/mboaai-sdk.umd.js +1 -2
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
@@ -2,25 +2,18 @@ type BuiltIn = "standard" | "website";
|
|
2
2
|
export type TranslateType = BuiltIn | (string & {});
|
3
3
|
interface InitOptions {
|
4
4
|
apiKey: string;
|
5
|
-
|
6
|
-
name?: string;
|
7
|
-
version?: string;
|
5
|
+
baseUrl?: string;
|
8
6
|
defaultType?: TranslateType;
|
9
7
|
}
|
10
8
|
declare class T {
|
11
|
-
private static
|
12
|
-
private static ready;
|
13
|
-
private static defaultType;
|
9
|
+
private static baseUrl;
|
14
10
|
private static apiKey;
|
15
|
-
|
16
|
-
static
|
17
|
-
|
11
|
+
private static defaultType;
|
12
|
+
private static ready;
|
13
|
+
static init(opts: InitOptions): void;
|
14
|
+
private static callTool;
|
15
|
+
static runWeather(): Promise<string>;
|
18
16
|
static translate(text: string, targetLang: string, type?: TranslateType): Promise<string>;
|
19
17
|
}
|
20
|
-
declare global {
|
21
|
-
interface Window {
|
22
|
-
MboaAI?: any;
|
23
|
-
}
|
24
|
-
}
|
25
18
|
export { T };
|
26
19
|
export default T;
|