@vuu-ui/vuu-protocol-types 3.3.17 → 4.0.0-alpha.10
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/index.d.ts +34 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* VuuUser is not used in any websocket messages. It represents the user structure returned
|
|
3
|
-
* encoded within the auth token used to LOGIN. The auti token is returned by the authn REST
|
|
4
|
-
* service call.
|
|
5
|
-
*/
|
|
6
|
-
export interface VuuUser {
|
|
7
|
-
authorizations: string[];
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
1
|
export type InvalidSessionReason =
|
|
12
2
|
| "Invalid session"
|
|
13
3
|
| "User session limit exceeded";
|
|
@@ -52,8 +42,42 @@ export interface VuuLoginRequest {
|
|
|
52
42
|
type: "LOGIN";
|
|
53
43
|
}
|
|
54
44
|
|
|
45
|
+
export interface VuuModuleConnection {
|
|
46
|
+
connectionId: string;
|
|
47
|
+
restUrl?: string;
|
|
48
|
+
websocketUrl?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface VuuModuleDescriptor {
|
|
52
|
+
clientIdentifier: string;
|
|
53
|
+
description: string;
|
|
54
|
+
enabled?: boolean;
|
|
55
|
+
id: number | string;
|
|
56
|
+
location: string;
|
|
57
|
+
accessRole: string;
|
|
58
|
+
mfComponent: string;
|
|
59
|
+
mfScope: string;
|
|
60
|
+
mfUrl: string;
|
|
61
|
+
name: string;
|
|
62
|
+
path: string;
|
|
63
|
+
title: string;
|
|
64
|
+
version: number;
|
|
65
|
+
vuu?: VuuModuleConnection;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface VuuModuleRecord extends VuuModuleDescriptor {
|
|
69
|
+
enabled: boolean;
|
|
70
|
+
id: number;
|
|
71
|
+
vuu: VuuModuleConnection;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface VuuModuleRegistry {
|
|
75
|
+
modules: VuuModuleRecord[];
|
|
76
|
+
}
|
|
77
|
+
|
|
55
78
|
// There is no LOGIN_FAIL
|
|
56
79
|
export interface VuuLoginSuccessResponse {
|
|
80
|
+
moduleRegistry?: VuuModuleRegistry;
|
|
57
81
|
type: "LOGIN_SUCCESS";
|
|
58
82
|
vuuServerId: string;
|
|
59
83
|
}
|