-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdotnet.d.ts
97 lines (97 loc) · 6.18 KB
/
dotnet.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
export interface Assembly {
name: string;
data: Uint8Array | string;
}
export interface BootData {
wasm: Uint8Array | string;
assemblies: Assembly[];
entryAssemblyName: string;
}
export declare enum BootStatus {
Standby = "Standby",
Booting = "Booting",
Terminating = "Terminating",
Booted = "Booted"
}
export declare function getBootStatus(): BootStatus;
export declare function boot(): Promise<void>;
export declare function terminate(): Promise<void>;
export declare class Event<T extends any[]> implements EventBroadcaster<T>, EventSubscriber<T> {
private readonly handlers;
broadcast(...args: [...T]): void;
subscribe(handler: (...args: [...T]) => void): void;
unsubscribe(handler: (...args: [...T]) => void): void;
}
export interface EventBroadcaster<T extends any[]> {
broadcast: (...args: [...T]) => void;
}
export interface EventSubscriber<T extends any[]> {
subscribe: (handler: (...args: [...T]) => void) => void;
unsubscribe: (handler: (...args: [...T]) => void) => void;
}
export declare const invoke: <T>(assembly: string, method: string, ...args: any[]) => T;
export declare const invokeAsync: <T>(assembly: string, method: string, ...args: any[]) => Promise<T>;
export declare const createObjectReference: (object: any) => any;
export declare const disposeObjectReference: (objectReference: any) => void;
export declare const createStreamReference: (buffer: Uint8Array | any) => any;
export namespace HexaEight {
export function Login(userid: string, logintype: string, data: string): Promise<string>;
export function Logout(userid: string): Promise<string>;
export function CompleteLoginProcessDirect(userid: string): Promise<string>;
export function InitializeClientId(userid: string, xclientid: string): Promise<boolean>;
export function SetTokenServerURL(userid: string, tokenserverurl: string): Promise<boolean>;
export function InitiateHexaEightSessionDirect(userid: string, emailid: string): Promise<boolean>;
export function CompleteLoginProcessDirectUsingCaptchaCode(userid: string, captchacode: string): Promise<string>;
export function FetchLoggedInUser(userid: string): string;
export function FetchAppName(userid: string): string;
export function FetchResourceIdentity(userid: string): string;
export function FetchGPTURL(userid: string): string;
export function FetchAPPCONTACT(userid: string): string;
export function ProtectMessage(userid: string, privatemessage: string): string;
export function DecipherMessage(userid: string, protectedmessage: string): string;
export function GetUserID(userid: string, clientid: string, seed: string): string;
export function ComputeHash(message: string): string;
export function GetPeerId(userid: string, clientid: string, destination: string): string;
export function EncryptTextMessage(userid: string, destination: string, textmessage: string): Promise<string>;
export function ClearDestination(userid: string, destination: string): Promise<string>;
export function encrypturl3(userId: string, url: string): Promise<string>;
export function encrypturl(userid: string, url: string): Promise<string>;
export function DecryptBytes(userid: string, destination: string, data: Uint8Array): Promise<Uint8Array>;
export function DecryptBytesAsync(userid: string, destination: string, data: Uint8Array): Promise<Uint8Array>;
export function EncryptBytes(userid: string, destination: string, data: Uint8Array): Promise<Uint8Array>;
export function EncryptBytesAsync(userid: string, destination: string, data: Uint8Array): Promise<Uint8Array>;
export function fetch(userid: string, url: string, mode: string, body: string): Promise<Uint8Array>;
export function fetch2(userid: string, url: string, mode: string, body: Uint8Array): Promise<Uint8Array>;
export function FetchDestination(userid: string, url: string): Promise<string>;
export function ClearDestinationURL(url: string): Promise<boolean>;
export function DecryptTextMessage(userid: string, encryptedmessage: string): Promise<string>;
export function VerifyMessage(userid: string, encryptedmessage: string): string;
export function GetShortAuthQRCode(userid: string): Promise<string>;
export function GetAuthQRCode(userid: string): Promise<string>;
export function GetAuthQRCodeDesktopURL(userid: string): string;
export function GetAuthQRCodeMobileURL(userid: string): string;
export function GetCaptchaCode(userid: string): string;
export function GetShortCaptchaCode(userid: string): string;
export function GetCaptchaCodeDesktopURL(userid: string): string;
export function GetCaptchaCodeMobileURL(userid: string): string;
export function GetLanguageText(text: string, lang: string): Promise<string>;
export function GetActiveAssistant(text: string, lang: string): Promise<string>;
export function GCount(): Promise<string>;
export function GetVectorSize(): Promise<string>;
export function Rebuild(size: string): Promise<string>;
export function AddConversation(userid: string, ts: string, question: string, answer: string): Promise<string>;
export function Result1(userid: string, question: string): Promise<string>;
export function Result2(userid: string, question: string): Promise<string>;
export function Result2C(userid: string, question: string): Promise<string>;
export function Result3(userid: string, question: string): Promise<string>;
export function Result4(userid: string, question: string): Promise<string>;
export function Result4C(userid: string, question: string): Promise<string>;
export function EnableDeepSearchForAIContext(): Promise<boolean>;
export function DisableDeepSearchForAIContext(): Promise<boolean>;
export function SetMaxSearchTokens(tokenCount: number): Promise<boolean>;
export function SetTopParametersForAIContext(topX: number, topA: number): Promise<boolean>;
export function SetContextSimilarityScore(Score: number): Promise<boolean>;
export function SetContextSearchScore(Score: number): Promise<boolean>;
export function GetContext(userid: string, question: string): Promise<string>;
export function EngageAI(userid: string, question: string): Promise<string>;
}