-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheimdall.d.ts
45 lines (44 loc) · 1.19 KB
/
heimdall.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
export class Heimdall{
constructor(config: object);
AddTideButton(tideButtonAction: function, actionParameter: any): HTMLButtonElement
PerformTideAuth(callback: function): void
GetUserInfo(promise: TidePromise): Promise<{
responseType: string,
PublicKey: string,
UID: string,
NewAccount: boolean
}>
GetCompleted(promise: TidePromise): Promise<{
responseType: string,
ModelSig: string,
TideJWT: string
}>
OpenEnclave(): Promise<{
responseType: string,
ModelSig: string,
TideJWT: string
} | {
responseType: string,
PublicKey: string,
UID: string,
NewAccount: boolean
}>
CompleteSignIn(customModel: object = null): Promise<{
responseType: string,
ModelSig: string,
TideJWT: string
}>
CloseEnclave(): void
}
export class TidePromise{
constructor(callback: function = null);
callback: function;
promise: Promise;
fulfill(value: any): void
}
export class FieldData{
constructor(identifiers: string[]);
add(data: string, ids: string[]);
addManyWithTag(fieldDatas: object[]);
getAllWithIds(): object[];
}