@daocloud-proto/ghippo 0.10.2-temp → 0.10.3-temp

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.10.2-temp",
3
+ "version":"0.10.3-temp",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -412,6 +412,14 @@ export type Group = {
412
412
  canAuthorize?: boolean
413
413
  }
414
414
 
415
+ export type FolderListPermissionsRequest = {
416
+ folderId?: number
417
+ }
418
+
419
+ export type FolderListPermissionsResponse = {
420
+ permissions?: FolderPermission[]
421
+ }
422
+
415
423
  export class Workspace {
416
424
  static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
417
425
  return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -503,4 +511,7 @@ export class Workspace {
503
511
  static FolderListGroups(req: FolderListGroupsRequest, initReq?: fm.InitReq): Promise<FolderListGroupsResponse> {
504
512
  return fm.fetchReq<FolderListGroupsRequest, FolderListGroupsResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/groups?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
505
513
  }
514
+ static FolderListPermissions(req: FolderListPermissionsRequest, initReq?: fm.InitReq): Promise<FolderListPermissionsResponse> {
515
+ return fm.fetchReq<FolderListPermissionsRequest, FolderListPermissionsResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/permissions?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
516
+ }
506
517
  }