@daocloud-proto/hydra 0.0.0-dev-9fdfdd0c → 0.0.0-dev-5297a7b6

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.
@@ -91,6 +91,12 @@ export type UpdateWSAPIKeyQuotaRequest = {
91
91
  unlimitedQuota?: boolean
92
92
  }
93
93
 
94
+ export type UpdateWSAPIKeyStatusRequest = {
95
+ id?: string
96
+ workspace?: number
97
+ disabled?: boolean
98
+ }
99
+
94
100
  export type DeleteAPIKeyRequest = {
95
101
  id?: string
96
102
  }
@@ -168,6 +174,9 @@ export class WSAPIKeyManagement {
168
174
  static DeleteWSAPIKey(req: DeleteWSAPIKeyRequest, initReq?: fm.InitReq): Promise<APIKey> {
169
175
  return fm.fetchReq<DeleteWSAPIKeyRequest, APIKey>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys/${req["id"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
170
176
  }
177
+ static UpdateWSAPIKeyStatus(req: UpdateWSAPIKeyStatusRequest, initReq?: fm.InitReq): Promise<APIKey> {
178
+ return fm.fetchReq<UpdateWSAPIKeyStatusRequest, APIKey>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys/${req["id"]}/status`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
179
+ }
171
180
  static UpdateWSAPIKeyQuota(req: UpdateWSAPIKeyQuotaRequest, initReq?: fm.InitReq): Promise<APIKey> {
172
181
  return fm.fetchReq<UpdateWSAPIKeyQuotaRequest, APIKey>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys/${req["id"]}/quota`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
173
182
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.0.0-dev-9fdfdd0c",
3
+ "version": "v0.0.0-dev-5297a7b6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"