@daocloud-proto/ghippo 0.9.38-temp → 0.9.39-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.9.38-temp",
3
+ "version":"0.9.39-temp",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -75,10 +75,10 @@ export type DeleteSecretRequest = {
75
75
  export type DeleteSecretResponse = {
76
76
  }
77
77
 
78
- export type GetPermissionsRequest = {
78
+ export type GetGlobalPermissionsRequest = {
79
79
  }
80
80
 
81
- export type GetPermissionsResponse = {
81
+ export type GetGlobalPermissionsResponse = {
82
82
  permissions?: string[]
83
83
  }
84
84
 
@@ -107,7 +107,7 @@ export class Account {
107
107
  static DeleteSecret(req: DeleteSecretRequest, initReq?: fm.InitReq): Promise<DeleteSecretResponse> {
108
108
  return fm.fetchReq<DeleteSecretRequest, DeleteSecretResponse>(`/apis/ghippo.io/v1alpha1/current-user/secrets/${req["id"]}`, {...initReq, method: "DELETE"})
109
109
  }
110
- static GetPermissions(req: GetPermissionsRequest, initReq?: fm.InitReq): Promise<GetPermissionsResponse> {
111
- return fm.fetchReq<GetPermissionsRequest, GetPermissionsResponse>(`/apis/ghippo.io/v1alpha1/current-user/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
110
+ static GetGlobalPermissions(req: GetGlobalPermissionsRequest, initReq?: fm.InitReq): Promise<GetGlobalPermissionsResponse> {
111
+ return fm.fetchReq<GetGlobalPermissionsRequest, GetGlobalPermissionsResponse>(`/apis/ghippo.io/v1alpha1/current-user/global-permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
112
112
  }
113
113
  }