@daocloud-proto/hydra 0.18.0-dev-2 → 0.18.0-dev-3
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.
|
@@ -131,6 +131,11 @@ export type DeleteWSAPIKeyRequest = {
|
|
|
131
131
|
workspace?: number
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
export type GetWSAPIKeyRequest = {
|
|
135
|
+
id?: string
|
|
136
|
+
workspace?: number
|
|
137
|
+
}
|
|
138
|
+
|
|
134
139
|
export type GetWSAPIKeySecretRequest = {
|
|
135
140
|
id?: string
|
|
136
141
|
workspace?: number
|
|
@@ -189,6 +194,10 @@ export type DeleteAPIKeyRequest = {
|
|
|
189
194
|
id?: string
|
|
190
195
|
}
|
|
191
196
|
|
|
197
|
+
export type GetAPIKeyRequest = {
|
|
198
|
+
id?: string
|
|
199
|
+
}
|
|
200
|
+
|
|
192
201
|
export type GetAPIKeySecretRequest = {
|
|
193
202
|
id?: string
|
|
194
203
|
}
|
|
@@ -267,6 +276,9 @@ export class APIKeyManagement {
|
|
|
267
276
|
static ListAllAPIKeysStatus(req: ListAllAPIKeysStatusRequest, initReq?: fm.InitReq): Promise<ListAllAPIKeysStatusResponse> {
|
|
268
277
|
return fm.fetchReq<ListAllAPIKeysStatusRequest, ListAllAPIKeysStatusResponse>(`/apis/hydra.io/v1alpha1/all-apikey-statuses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
269
278
|
}
|
|
279
|
+
static GetAPIKey(req: GetAPIKeyRequest, initReq?: fm.InitReq): Promise<APIKey> {
|
|
280
|
+
return fm.fetchReq<GetAPIKeyRequest, APIKey>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
281
|
+
}
|
|
270
282
|
static GetAPIKeySecret(req: GetAPIKeySecretRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
271
283
|
return fm.fetchReq<GetAPIKeySecretRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}/secret?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
272
284
|
}
|
|
@@ -305,6 +317,9 @@ export class WSAPIKeyManagement {
|
|
|
305
317
|
static ListWSAPIKeyMasked(req: ListWSAPIKeyRequest, initReq?: fm.InitReq): Promise<ListAPIKeyResponse> {
|
|
306
318
|
return fm.fetchReq<ListWSAPIKeyRequest, ListAPIKeyResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/masked-apikeys?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
307
319
|
}
|
|
320
|
+
static GetWSAPIKey(req: GetWSAPIKeyRequest, initReq?: fm.InitReq): Promise<APIKey> {
|
|
321
|
+
return fm.fetchReq<GetWSAPIKeyRequest, APIKey>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys/${req["id"]}?${fm.renderURLSearchParams(req, ["workspace", "id"])}`, {...initReq, method: "GET"})
|
|
322
|
+
}
|
|
308
323
|
static GetWSAPIKeySecret(req: GetWSAPIKeySecretRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
309
324
|
return fm.fetchReq<GetWSAPIKeySecretRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys/${req["id"]}/secret?${fm.renderURLSearchParams(req, ["workspace", "id"])}`, {...initReq, method: "GET"})
|
|
310
325
|
}
|