@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
|
@@ -75,10 +75,10 @@ export type DeleteSecretRequest = {
|
|
|
75
75
|
export type DeleteSecretResponse = {
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export type
|
|
78
|
+
export type GetGlobalPermissionsRequest = {
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export type
|
|
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
|
|
111
|
-
return fm.fetchReq<
|
|
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
|
}
|