@daocloud-proto/ghippo 0.25.1 → 0.26.0-dev2
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/user.pb.ts +55 -0
- package/v1alpha1/ldap.pb.ts +0 -221
package/package.json
CHANGED
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -218,6 +218,49 @@ export type ResetUserMFARequest = {
|
|
|
218
218
|
export type ResetUserMFAResponse = {
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
export type CreateUserSSHKeyRequest = {
|
|
222
|
+
id?: string
|
|
223
|
+
sshKeyName?: string
|
|
224
|
+
expiredAt?: string
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export type CreateUserSSHKeyResponse = {
|
|
228
|
+
publicKey?: string
|
|
229
|
+
privateKey?: string
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export type DeleteUserSSHKeyRequest = {
|
|
233
|
+
id?: string
|
|
234
|
+
sshkeyId?: string
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export type DeleteUserSSHKeyResponse = {
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export type ListUserSSHKeysRequest = {
|
|
241
|
+
id?: string
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export type ListUserSSHKeysResponse = {
|
|
245
|
+
sshKeys?: SSHKey[]
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export type SSHKey = {
|
|
249
|
+
id?: string
|
|
250
|
+
sshKeyName?: string
|
|
251
|
+
updatedAt?: string
|
|
252
|
+
createdAt?: string
|
|
253
|
+
expiredAt?: string
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export type VerifyUserSSHPublicKeyRequest = {
|
|
257
|
+
username?: string
|
|
258
|
+
publicKey?: string
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type VerifyUserSSHPublicKeyResponse = {
|
|
262
|
+
}
|
|
263
|
+
|
|
221
264
|
export class Users {
|
|
222
265
|
static ListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
|
|
223
266
|
return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/ghippo.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -273,4 +316,16 @@ export class Users {
|
|
|
273
316
|
static DeleteUserAccessToken(req: DeleteUserAccessTokenRequest, initReq?: fm.InitReq): Promise<DeleteUserAccessTokenResponse> {
|
|
274
317
|
return fm.fetchReq<DeleteUserAccessTokenRequest, DeleteUserAccessTokenResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/accesstokens/${req["aid"]}`, {...initReq, method: "DELETE"})
|
|
275
318
|
}
|
|
319
|
+
static CreateUserSSHKey(req: CreateUserSSHKeyRequest, initReq?: fm.InitReq): Promise<CreateUserSSHKeyResponse> {
|
|
320
|
+
return fm.fetchReq<CreateUserSSHKeyRequest, CreateUserSSHKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/sshkeys`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
321
|
+
}
|
|
322
|
+
static DeleteUserSSHKey(req: DeleteUserSSHKeyRequest, initReq?: fm.InitReq): Promise<DeleteUserSSHKeyResponse> {
|
|
323
|
+
return fm.fetchReq<DeleteUserSSHKeyRequest, DeleteUserSSHKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/sshkeys/${req["sshkeyId"]}`, {...initReq, method: "DELETE"})
|
|
324
|
+
}
|
|
325
|
+
static ListUserSSHKeys(req: ListUserSSHKeysRequest, initReq?: fm.InitReq): Promise<ListUserSSHKeysResponse> {
|
|
326
|
+
return fm.fetchReq<ListUserSSHKeysRequest, ListUserSSHKeysResponse>(`/apis/ghippo.io/v1alpha1/users/${req["id"]}/sshkeys?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
327
|
+
}
|
|
328
|
+
static VerifyUserSSHPublicKey(req: VerifyUserSSHPublicKeyRequest, initReq?: fm.InitReq): Promise<VerifyUserSSHPublicKeyResponse> {
|
|
329
|
+
return fm.fetchReq<VerifyUserSSHPublicKeyRequest, VerifyUserSSHPublicKeyResponse>(`/apis/ghippo.io/v1alpha1/users/${req["username"]}/sshkeys/verify`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
330
|
+
}
|
|
276
331
|
}
|
package/v1alpha1/ldap.pb.ts
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
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
|
-
vendor?: 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
|
-
rdnLdapAttribute?: string
|
|
25
|
-
uuidLdapAttribute?: string
|
|
26
|
-
editMode?: string
|
|
27
|
-
readTimeout?: string
|
|
28
|
-
firstName?: string
|
|
29
|
-
lastName?: string
|
|
30
|
-
email?: string
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type CreateLdapRequest = {
|
|
34
|
-
vendor?: string
|
|
35
|
-
startTls?: string
|
|
36
|
-
ldapProtocol?: string
|
|
37
|
-
ldapHost?: string
|
|
38
|
-
usersDn?: string
|
|
39
|
-
bindDn?: string
|
|
40
|
-
bindCredential?: string
|
|
41
|
-
userObjectClasses?: string
|
|
42
|
-
usernameLdapAttribute?: string
|
|
43
|
-
fullSyncPeriod?: string
|
|
44
|
-
rdnLdapAttribute?: string
|
|
45
|
-
uuidLdapAttribute?: string
|
|
46
|
-
editMode?: string
|
|
47
|
-
readTimeout?: string
|
|
48
|
-
firstName?: string
|
|
49
|
-
lastName?: string
|
|
50
|
-
email?: string
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export type CreateLdapResponse = {
|
|
54
|
-
id?: string
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type TestLdapConnectionRequest = {
|
|
58
|
-
connectionUrl?: string
|
|
59
|
-
bindDn?: string
|
|
60
|
-
bindCredential?: string
|
|
61
|
-
connectionTimeout?: string
|
|
62
|
-
action?: string
|
|
63
|
-
startTls?: string
|
|
64
|
-
useTruststoreSpi?: string
|
|
65
|
-
componentId?: string
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export type TestLdapConnectionResponse = {
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export type TestLdapAuthenticationRequest = {
|
|
72
|
-
bindDn?: string
|
|
73
|
-
bindCredential?: string
|
|
74
|
-
connectionUrl?: string
|
|
75
|
-
connectionTimeout?: string
|
|
76
|
-
action?: string
|
|
77
|
-
startTls?: string
|
|
78
|
-
useTruststoreSpi?: string
|
|
79
|
-
componentId?: string
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export type TestLdapAuthenticationResponse = {
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export type UpdateLdapRequest = {
|
|
86
|
-
id?: string
|
|
87
|
-
vendor?: string
|
|
88
|
-
startTls?: string
|
|
89
|
-
ldapProtocol?: string
|
|
90
|
-
ldapHost?: string
|
|
91
|
-
usersDn?: string
|
|
92
|
-
bindDn?: string
|
|
93
|
-
bindCredential?: string
|
|
94
|
-
userObjectClasses?: string
|
|
95
|
-
usernameLdapAttribute?: string
|
|
96
|
-
fullSyncPeriod?: string
|
|
97
|
-
rdnLdapAttribute?: string
|
|
98
|
-
uuidLdapAttribute?: string
|
|
99
|
-
editMode?: string
|
|
100
|
-
readTimeout?: string
|
|
101
|
-
firstName?: string
|
|
102
|
-
lastName?: string
|
|
103
|
-
email?: string
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export type UpdateLdapResponse = {
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export type SyncUsersRequest = {
|
|
110
|
-
id?: string
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export type SyncUsersResponse = {
|
|
114
|
-
ignored?: boolean
|
|
115
|
-
added?: number
|
|
116
|
-
updated?: number
|
|
117
|
-
removed?: number
|
|
118
|
-
failed?: number
|
|
119
|
-
status?: string
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export type DeleteLdapRequest = {
|
|
123
|
-
id?: string
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export type DeleteLdapResponse = {
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export type GetLdapGroupRequest = {
|
|
130
|
-
id?: string
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export type GetLdapGroupResponse = {
|
|
134
|
-
id?: string
|
|
135
|
-
groupDn?: string
|
|
136
|
-
groupObjectClasses?: string
|
|
137
|
-
groupNameLdapAttribute?: string
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export type CreateLdapGroupRequest = {
|
|
141
|
-
id?: string
|
|
142
|
-
groupDn?: string
|
|
143
|
-
groupObjectClasses?: string
|
|
144
|
-
groupNameLdapAttribute?: string
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export type CreateLdapGroupResponse = {
|
|
148
|
-
id?: string
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export type UpdateLdapGroupRequest = {
|
|
152
|
-
ldapId?: string
|
|
153
|
-
id?: string
|
|
154
|
-
groupDn?: string
|
|
155
|
-
groupObjectClasses?: string
|
|
156
|
-
groupNameLdapAttribute?: string
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export type UpdateLdapGroupResponse = {
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export type DeleteLdapGroupRequest = {
|
|
163
|
-
ldapId?: string
|
|
164
|
-
id?: string
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export type DeleteLdapGroupResponse = {
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export type SyncLdapGroupsRequest = {
|
|
171
|
-
ldapId?: string
|
|
172
|
-
id?: string
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export type SyncLdapGroupsResponse = {
|
|
176
|
-
ignored?: boolean
|
|
177
|
-
added?: number
|
|
178
|
-
updated?: number
|
|
179
|
-
removed?: number
|
|
180
|
-
failed?: number
|
|
181
|
-
status?: string
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export class Ldap {
|
|
185
|
-
static GetLdap(req: GetLdapRequest, initReq?: fm.InitReq): Promise<GetLdapResponse> {
|
|
186
|
-
return fm.fetchReq<GetLdapRequest, GetLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
187
|
-
}
|
|
188
|
-
static CreateLdap(req: CreateLdapRequest, initReq?: fm.InitReq): Promise<CreateLdapResponse> {
|
|
189
|
-
return fm.fetchReq<CreateLdapRequest, CreateLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
190
|
-
}
|
|
191
|
-
static TestLdapConnection(req: TestLdapConnectionRequest, initReq?: fm.InitReq): Promise<TestLdapConnectionResponse> {
|
|
192
|
-
return fm.fetchReq<TestLdapConnectionRequest, TestLdapConnectionResponse>(`/apis/ghippo.io/v1alpha1/testLdapConnection`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
193
|
-
}
|
|
194
|
-
static TestLdapAuthentication(req: TestLdapAuthenticationRequest, initReq?: fm.InitReq): Promise<TestLdapAuthenticationResponse> {
|
|
195
|
-
return fm.fetchReq<TestLdapAuthenticationRequest, TestLdapAuthenticationResponse>(`/apis/ghippo.io/v1alpha1/testLdapAuthentication`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
196
|
-
}
|
|
197
|
-
static UpdateLdap(req: UpdateLdapRequest, initReq?: fm.InitReq): Promise<UpdateLdapResponse> {
|
|
198
|
-
return fm.fetchReq<UpdateLdapRequest, UpdateLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
199
|
-
}
|
|
200
|
-
static SyncUsers(req: SyncUsersRequest, initReq?: fm.InitReq): Promise<SyncUsersResponse> {
|
|
201
|
-
return fm.fetchReq<SyncUsersRequest, SyncUsersResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/sync?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
202
|
-
}
|
|
203
|
-
static DeleteLdap(req: DeleteLdapRequest, initReq?: fm.InitReq): Promise<DeleteLdapResponse> {
|
|
204
|
-
return fm.fetchReq<DeleteLdapRequest, DeleteLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
205
|
-
}
|
|
206
|
-
static GetLdapGroup(req: GetLdapGroupRequest, initReq?: fm.InitReq): Promise<GetLdapGroupResponse> {
|
|
207
|
-
return fm.fetchReq<GetLdapGroupRequest, GetLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/group?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
208
|
-
}
|
|
209
|
-
static CreateLdapGroup(req: CreateLdapGroupRequest, initReq?: fm.InitReq): Promise<CreateLdapGroupResponse> {
|
|
210
|
-
return fm.fetchReq<CreateLdapGroupRequest, CreateLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/group`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
211
|
-
}
|
|
212
|
-
static UpdateLdapGroup(req: UpdateLdapGroupRequest, initReq?: fm.InitReq): Promise<UpdateLdapGroupResponse> {
|
|
213
|
-
return fm.fetchReq<UpdateLdapGroupRequest, UpdateLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["ldapId"]}/group/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
214
|
-
}
|
|
215
|
-
static DeleteLdapGroup(req: DeleteLdapGroupRequest, initReq?: fm.InitReq): Promise<DeleteLdapGroupResponse> {
|
|
216
|
-
return fm.fetchReq<DeleteLdapGroupRequest, DeleteLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["ldapId"]}/group/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
217
|
-
}
|
|
218
|
-
static SyncLdapGroups(req: SyncLdapGroupsRequest, initReq?: fm.InitReq): Promise<SyncLdapGroupsResponse> {
|
|
219
|
-
return fm.fetchReq<SyncLdapGroupsRequest, SyncLdapGroupsResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["ldapId"]}/group/${req["id"]}/sync?${fm.renderURLSearchParams(req, ["ldapId", "id"])}`, {...initReq, method: "GET"})
|
|
220
|
-
}
|
|
221
|
-
}
|