@daocloud-proto/hydra 0.16.0-dev-20 → 0.16.0-dev-22

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.
@@ -112,6 +112,10 @@ export type DeleteAPIKeyRequest = {
112
112
  id?: string
113
113
  }
114
114
 
115
+ export type GetAPIKeySecretRequest = {
116
+ id?: string
117
+ }
118
+
115
119
  export type CheckAPIKeyCreationRequest = {
116
120
  }
117
121
 
@@ -167,6 +171,12 @@ export class APIKeyManagement {
167
171
  static ListAPIKey(req: ListAPIKeyRequest, initReq?: fm.InitReq): Promise<ListAPIKeyResponse> {
168
172
  return fm.fetchReq<ListAPIKeyRequest, ListAPIKeyResponse>(`/apis/hydra.io/v1alpha1/apikeys?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
169
173
  }
174
+ static ListAPIKeyMasked(req: ListAPIKeyRequest, initReq?: fm.InitReq): Promise<ListAPIKeyResponse> {
175
+ return fm.fetchReq<ListAPIKeyRequest, ListAPIKeyResponse>(`/apis/hydra.io/v1alpha1/masked-apikeys?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
176
+ }
177
+ static GetAPIKeySecret(req: GetAPIKeySecretRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
178
+ return fm.fetchReq<GetAPIKeySecretRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}/secret?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
179
+ }
170
180
  static DeleteAPIKey(req: DeleteAPIKeyRequest, initReq?: fm.InitReq): Promise<APIKey> {
171
181
  return fm.fetchReq<DeleteAPIKeyRequest, APIKey>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
172
182
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.16.0-dev-20",
3
+ "version": "v0.16.0-dev-22",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"