@daocloud-proto/ghippo 0.8.30 → 0.9.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.8.30",
3
+ "version":"0.9.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -76,6 +76,8 @@ export type GProductLicenseInfo = {
76
76
  virtualUsedCpu?: string
77
77
  virtualMaxCpu?: string
78
78
  expiredAt?: string
79
+ usedNode?: string
80
+ maxNode?: string
79
81
  }
80
82
 
81
83
  export class GProducts {
@@ -35,6 +35,12 @@ export type UpdateLoginPageInfoRequest = {
35
35
  export type UpdateLoginPageInfoResponse = {
36
36
  }
37
37
 
38
+ export type ResetLoginPageInfoRequest = {
39
+ }
40
+
41
+ export type ResetLoginPageInfoResponse = {
42
+ }
43
+
38
44
  export class LoginPage {
39
45
  static GetInfo(req: GetLoginPageInfoRequest, initReq?: fm.InitReq): Promise<GetLoginPageInfoResponse> {
40
46
  return fm.fetchReq<GetLoginPageInfoRequest, GetLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -45,4 +51,7 @@ export class LoginPage {
45
51
  static UpdateInfo(req: UpdateLoginPageInfoRequest, initReq?: fm.InitReq): Promise<UpdateLoginPageInfoResponse> {
46
52
  return fm.fetchReq<UpdateLoginPageInfoRequest, UpdateLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/info`, {...initReq, method: "PUT", body: JSON.stringify(req)})
47
53
  }
54
+ static ResetInfo(req: ResetLoginPageInfoRequest, initReq?: fm.InitReq): Promise<ResetLoginPageInfoResponse> {
55
+ return fm.fetchReq<ResetLoginPageInfoRequest, ResetLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/reset`, {...initReq, method: "POST"})
56
+ }
48
57
  }
@@ -15,9 +15,9 @@ export type CertsResponse = {
15
15
  export type Key = {
16
16
  kid?: string
17
17
  kty?: string
18
- alg?: string
19
18
  e?: string
20
19
  n?: string
20
+ alg?: string
21
21
  use?: string
22
22
  }
23
23
 
@@ -50,8 +50,8 @@ export type GetUserResponse = {
50
50
 
51
51
  export type CreateUserRequest = {
52
52
  name?: string
53
- description?: string
54
53
  password?: string
54
+ description?: string
55
55
  temporary?: boolean
56
56
  }
57
57
 
@@ -357,6 +357,49 @@ export type BindSharedResourceAndSetQuotaHardToWorkspaceRequest = {
357
357
  export type BindSharedResourceAndSetQuotaHardToWorkspaceResponse = {
358
358
  }
359
359
 
360
+ export type FolderListUsersRequest = {
361
+ search?: string
362
+ pageSize?: number
363
+ page?: number
364
+ folderId?: number
365
+ }
366
+
367
+ export type FolderListUsersResponse = {
368
+ items?: User[]
369
+ pagination?: Pagination
370
+ }
371
+
372
+ export type User = {
373
+ id?: string
374
+ name?: string
375
+ email?: string
376
+ description?: string
377
+ firstname?: string
378
+ lastname?: string
379
+ source?: string
380
+ enabled?: boolean
381
+ }
382
+
383
+ export type FolderListGroupsRequest = {
384
+ search?: string
385
+ page?: number
386
+ pageSize?: number
387
+ folderId?: number
388
+ }
389
+
390
+ export type FolderListGroupsResponse = {
391
+ items?: Group[]
392
+ pagination?: Pagination
393
+ }
394
+
395
+ export type Group = {
396
+ id?: string
397
+ name?: string
398
+ userCount?: number
399
+ description?: string
400
+ createdAt?: string
401
+ }
402
+
360
403
  export class Workspace {
361
404
  static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
362
405
  return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -442,4 +485,10 @@ export class Workspace {
442
485
  static UpdateQuotaCheck(req: UpdateQuotaCheckRequest, initReq?: fm.InitReq): Promise<UpdateQuotaCheckResponse> {
443
486
  return fm.fetchReq<UpdateQuotaCheckRequest, UpdateQuotaCheckResponse>(`/apis/ghippo.io/v1alpha1/update-quota-check`, {...initReq, method: "POST", body: JSON.stringify(req)})
444
487
  }
488
+ static FolderListUsers(req: FolderListUsersRequest, initReq?: fm.InitReq): Promise<FolderListUsersResponse> {
489
+ return fm.fetchReq<FolderListUsersRequest, FolderListUsersResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/users?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
490
+ }
491
+ static FolderListGroups(req: FolderListGroupsRequest, initReq?: fm.InitReq): Promise<FolderListGroupsResponse> {
492
+ return fm.fetchReq<FolderListGroupsRequest, FolderListGroupsResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/groups?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
493
+ }
445
494
  }