@daocloud-proto/ghippo 0.4.5 → 0.5.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/package.json +1 -1
- package/v1alpha1/group.pb.ts +3 -3
- package/v1alpha1/loginPage.pb.ts +35 -0
- package/v1alpha1/user.pb.ts +9 -3
package/package.json
CHANGED
package/v1alpha1/group.pb.ts
CHANGED
|
@@ -20,14 +20,14 @@ export type ListGroupsRequest = {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export type ListGroupsResponse = {
|
|
23
|
-
total?:
|
|
23
|
+
total?: number
|
|
24
24
|
groups?: GroupInfo[]
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type GroupInfo = {
|
|
28
28
|
id?: string
|
|
29
29
|
name?: string
|
|
30
|
-
user_count?:
|
|
30
|
+
user_count?: number
|
|
31
31
|
description?: string
|
|
32
32
|
created_at?: string
|
|
33
33
|
}
|
|
@@ -51,7 +51,7 @@ export type GroupMembersRequest = {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export type GroupMembersResponse = {
|
|
54
|
-
total?:
|
|
54
|
+
total?: number
|
|
55
55
|
user?: User[]
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../fetch.pb"
|
|
8
|
+
export type GetLoginPageInfoRequest = {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type GetLoginPageInfoResponse = {
|
|
12
|
+
version?: number
|
|
13
|
+
platform_name?: string
|
|
14
|
+
copyright?: string
|
|
15
|
+
icon?: Uint8Array
|
|
16
|
+
icon_filename?: string
|
|
17
|
+
favicon?: Uint8Array
|
|
18
|
+
favicon_filename?: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type GetLoginPageVersionRequest = {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type GetLoginPageVersionResponse = {
|
|
25
|
+
version?: number
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class LoginPage {
|
|
29
|
+
static GetInfo(req: GetLoginPageInfoRequest, initReq?: fm.InitReq): Promise<GetLoginPageInfoResponse> {
|
|
30
|
+
return fm.fetchReq<GetLoginPageInfoRequest, GetLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
31
|
+
}
|
|
32
|
+
static GetVersion(req: GetLoginPageVersionRequest, initReq?: fm.InitReq): Promise<GetLoginPageVersionResponse> {
|
|
33
|
+
return fm.fetchReq<GetLoginPageVersionRequest, GetLoginPageVersionResponse>(`/apis/ghippo.io/v1alpha1/login-page/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
34
|
+
}
|
|
35
|
+
}
|
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type ListUsersRequest = {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export type ListUsersResponse = {
|
|
15
|
-
total?:
|
|
15
|
+
total?: number
|
|
16
16
|
data?: GetUserResponse[]
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -25,6 +25,9 @@ export type GetUserResponse = {
|
|
|
25
25
|
name?: string
|
|
26
26
|
email?: string
|
|
27
27
|
description?: string
|
|
28
|
+
firstname?: string
|
|
29
|
+
lastname?: string
|
|
30
|
+
source?: string
|
|
28
31
|
enabled?: boolean
|
|
29
32
|
created_at?: string
|
|
30
33
|
updated_at?: string
|
|
@@ -32,8 +35,9 @@ export type GetUserResponse = {
|
|
|
32
35
|
|
|
33
36
|
export type CreateUserRequest = {
|
|
34
37
|
name?: string
|
|
35
|
-
password?: string
|
|
36
38
|
description?: string
|
|
39
|
+
password?: string
|
|
40
|
+
temporary?: boolean
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
export type CreateUserResponse = {
|
|
@@ -52,6 +56,8 @@ export type UpdateUserRequest = {
|
|
|
52
56
|
enabled?: boolean
|
|
53
57
|
email?: string
|
|
54
58
|
description?: string
|
|
59
|
+
firstname?: string
|
|
60
|
+
lastname?: string
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
export type UpdateUserResponse = {
|
|
@@ -78,7 +84,7 @@ export type ListUserGroupsRequest = {
|
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
export type ListUserGroupsResponse = {
|
|
81
|
-
total?:
|
|
87
|
+
total?: number
|
|
82
88
|
data?: Group[]
|
|
83
89
|
}
|
|
84
90
|
|