@daocloud-proto/ghippo 0.34.0 → 0.35.0-dev1
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/currentuser.pb.ts +42 -0
- package/v1alpha1/feature_gate.pb.ts +1 -0
- package/v1alpha1/user.pb.ts +14 -0
package/package.json
CHANGED
|
@@ -55,6 +55,11 @@ export enum GlobalPermission {
|
|
|
55
55
|
UpdateBillingSetting = "UpdateBillingSetting",
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
export enum CertifyType {
|
|
59
|
+
AliPay = "AliPay",
|
|
60
|
+
WeChat = "WeChat",
|
|
61
|
+
}
|
|
62
|
+
|
|
58
63
|
export type UpdateEmailRequest = {
|
|
59
64
|
email?: string
|
|
60
65
|
}
|
|
@@ -185,6 +190,34 @@ export type SSHKey = {
|
|
|
185
190
|
expiredAt?: string
|
|
186
191
|
}
|
|
187
192
|
|
|
193
|
+
export type GetCertifyInfoRequest = {
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type GetCertifyInfoResponse = {
|
|
197
|
+
certName?: string
|
|
198
|
+
certNo?: string
|
|
199
|
+
certTime?: string
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export type CertifyInitRequest = {
|
|
203
|
+
certName?: string
|
|
204
|
+
certNo?: string
|
|
205
|
+
certType?: CertifyType
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export type CertifyInitResponse = {
|
|
209
|
+
certOrder?: string
|
|
210
|
+
qrCode?: string
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export type CertifyCheckRequest = {
|
|
214
|
+
certOrder?: string
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export type CertifyCheckResponse = {
|
|
218
|
+
passed?: boolean
|
|
219
|
+
}
|
|
220
|
+
|
|
188
221
|
export class Account {
|
|
189
222
|
static UpdateEmail(req: UpdateEmailRequest, initReq?: fm.InitReq): Promise<UpdateEmailResponse> {
|
|
190
223
|
return fm.fetchReq<UpdateEmailRequest, UpdateEmailResponse>(`/apis/ghippo.io/v1alpha1/current-user/email`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -228,4 +261,13 @@ export class Account {
|
|
|
228
261
|
static ListSSHKeys(req: ListSSHKeysRequest, initReq?: fm.InitReq): Promise<ListSSHKeysResponse> {
|
|
229
262
|
return fm.fetchReq<ListSSHKeysRequest, ListSSHKeysResponse>(`/apis/ghippo.io/v1alpha1/current-user/sshkeys?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
230
263
|
}
|
|
264
|
+
static GetCertifyInfo(req: GetCertifyInfoRequest, initReq?: fm.InitReq): Promise<GetCertifyInfoResponse> {
|
|
265
|
+
return fm.fetchReq<GetCertifyInfoRequest, GetCertifyInfoResponse>(`/apis/ghippo.io/v1alpha1/current-user/certify?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
266
|
+
}
|
|
267
|
+
static CertifyInit(req: CertifyInitRequest, initReq?: fm.InitReq): Promise<CertifyInitResponse> {
|
|
268
|
+
return fm.fetchReq<CertifyInitRequest, CertifyInitResponse>(`/apis/ghippo.io/v1alpha1/current-user/certify`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
269
|
+
}
|
|
270
|
+
static CertifyCheck(req: CertifyCheckRequest, initReq?: fm.InitReq): Promise<CertifyCheckResponse> {
|
|
271
|
+
return fm.fetchReq<CertifyCheckRequest, CertifyCheckResponse>(`/apis/ghippo.io/v1alpha1/current-user/certify/check`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
272
|
+
}
|
|
231
273
|
}
|
package/v1alpha1/user.pb.ts
CHANGED
|
@@ -247,6 +247,17 @@ export type SSHKey = {
|
|
|
247
247
|
enabled?: boolean
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
+
export type GetUserCertifyInfoRequest = {
|
|
251
|
+
id?: string
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export type GetUserCertifyInfoResponse = {
|
|
255
|
+
isCsp?: boolean
|
|
256
|
+
realName?: string
|
|
257
|
+
idCard?: string
|
|
258
|
+
certifyAt?: string
|
|
259
|
+
}
|
|
260
|
+
|
|
250
261
|
export class Users {
|
|
251
262
|
static ListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
|
|
252
263
|
return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/ghippo.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -308,4 +319,7 @@ export class Users {
|
|
|
308
319
|
static ListUsersSSHPublicKeys(req: ListUsersSSHPublicKeysRequest, initReq?: fm.InitReq): Promise<ListUsersSSHPublicKeysResponse> {
|
|
309
320
|
return fm.fetchReq<ListUsersSSHPublicKeysRequest, ListUsersSSHPublicKeysResponse>(`/v1alpha1.user.Users/ListUsersSSHPublicKeys`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
310
321
|
}
|
|
322
|
+
static GetUserCertifyInfo(req: GetUserCertifyInfoRequest, initReq?: fm.InitReq): Promise<GetUserCertifyInfoResponse> {
|
|
323
|
+
return fm.fetchReq<GetUserCertifyInfoRequest, GetUserCertifyInfoResponse>(`/v1alpha1.user.Users/GetUserCertifyInfo`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
324
|
+
}
|
|
311
325
|
}
|