@daocloud-proto/ghippo 0.7.9 → 0.7.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/package.json +1 -1
- package/v1alpha1/ldap.pb.ts +113 -0
- package/v1alpha1/workspace.pb.ts +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,113 @@
|
|
|
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 GetLdapRequest = {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type GetLdapResponse = {
|
|
12
|
+
id?: string
|
|
13
|
+
name?: string
|
|
14
|
+
providerType?: string
|
|
15
|
+
startTls?: string
|
|
16
|
+
ldapProtocol?: string
|
|
17
|
+
ldapHost?: string
|
|
18
|
+
usersDn?: string
|
|
19
|
+
bindDn?: string
|
|
20
|
+
bindCredential?: string
|
|
21
|
+
userObjectClasses?: string
|
|
22
|
+
usernameLdapAttribute?: string
|
|
23
|
+
fullSyncPeriod?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type CreateLdapRequest = {
|
|
27
|
+
providerType?: string
|
|
28
|
+
startTls?: string
|
|
29
|
+
ldapProtocol?: string
|
|
30
|
+
ldapHost?: string
|
|
31
|
+
usersDn?: string
|
|
32
|
+
bindDn?: string
|
|
33
|
+
bindCredential?: string
|
|
34
|
+
userObjectClasses?: string
|
|
35
|
+
usernameLdapAttribute?: string
|
|
36
|
+
fullSyncPeriod?: string
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type CreateLdapResponse = {
|
|
40
|
+
id?: string
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type TestLdapConnectionRequest = {
|
|
44
|
+
bindDn?: string
|
|
45
|
+
bindCredential?: string
|
|
46
|
+
connectionUrl?: string
|
|
47
|
+
connectionTimeout?: string
|
|
48
|
+
action?: string
|
|
49
|
+
startTls?: string
|
|
50
|
+
useTruststoreSpi?: string
|
|
51
|
+
componentId?: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type TestLdapConnectionResponse = {
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type UpdateLdapRequest = {
|
|
58
|
+
id?: string
|
|
59
|
+
providerType?: string
|
|
60
|
+
startTls?: string
|
|
61
|
+
ldapProtocol?: string
|
|
62
|
+
ldapHost?: string
|
|
63
|
+
usersDn?: string
|
|
64
|
+
bindDn?: string
|
|
65
|
+
bindCredential?: string
|
|
66
|
+
userObjectClasses?: string
|
|
67
|
+
usernameLdapAttribute?: string
|
|
68
|
+
fullSyncPeriod?: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type UpdateLdapResponse = {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type SyncUsersRequest = {
|
|
75
|
+
id?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type SyncUserResponse = {
|
|
79
|
+
ignored?: boolean
|
|
80
|
+
added?: number
|
|
81
|
+
updated?: number
|
|
82
|
+
removed?: number
|
|
83
|
+
failed?: number
|
|
84
|
+
status?: string
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type DeleteLdapRequest = {
|
|
88
|
+
id?: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type DeleteLdapResponse = {
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export class Ldap {
|
|
95
|
+
static GetLdap(req: GetLdapRequest, initReq?: fm.InitReq): Promise<GetLdapResponse> {
|
|
96
|
+
return fm.fetchReq<GetLdapRequest, GetLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
97
|
+
}
|
|
98
|
+
static CreateLdap(req: CreateLdapRequest, initReq?: fm.InitReq): Promise<CreateLdapResponse> {
|
|
99
|
+
return fm.fetchReq<CreateLdapRequest, CreateLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
100
|
+
}
|
|
101
|
+
static TestLdapConnection(req: TestLdapConnectionRequest, initReq?: fm.InitReq): Promise<TestLdapConnectionResponse> {
|
|
102
|
+
return fm.fetchReq<TestLdapConnectionRequest, TestLdapConnectionResponse>(`/apis/ghippo.io/v1alpha1/testLdapConnection`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
103
|
+
}
|
|
104
|
+
static UpdateLdap(req: UpdateLdapRequest, initReq?: fm.InitReq): Promise<UpdateLdapResponse> {
|
|
105
|
+
return fm.fetchReq<UpdateLdapRequest, UpdateLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
106
|
+
}
|
|
107
|
+
static SyncUsers(req: SyncUsersRequest, initReq?: fm.InitReq): Promise<SyncUserResponse> {
|
|
108
|
+
return fm.fetchReq<SyncUsersRequest, SyncUserResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/sync?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
109
|
+
}
|
|
110
|
+
static DeleteLdap(req: DeleteLdapRequest, initReq?: fm.InitReq): Promise<DeleteLdapResponse> {
|
|
111
|
+
return fm.fetchReq<DeleteLdapRequest, DeleteLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
112
|
+
}
|
|
113
|
+
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -76,6 +76,7 @@ export type CreateWorkspaceRequest = {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export type CreateWorkspaceResponse = {
|
|
79
|
+
workspaceId?: number
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
export type GetWorkspaceRequest = {
|
|
@@ -153,6 +154,7 @@ export type CreateFolderRequest = {
|
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
export type CreateFolderResponse = {
|
|
157
|
+
folderId?: number
|
|
156
158
|
}
|
|
157
159
|
|
|
158
160
|
export type GetFolderRequest = {
|