@daocloud-proto/hydra 0.17.0-rc1-dev-10 → 0.17.0-rc1-dev-13
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.
|
@@ -66,6 +66,23 @@ export type APIKey = {
|
|
|
66
66
|
disabled?: boolean
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
export type AllAPIKeyStatus = {
|
|
70
|
+
id?: string
|
|
71
|
+
expired?: boolean
|
|
72
|
+
disabled?: boolean
|
|
73
|
+
deleted?: boolean
|
|
74
|
+
name?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type ListAllWSAPIKeysStatusRequest = {
|
|
78
|
+
workspace?: number
|
|
79
|
+
userId?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type ListAllWSAPIKeysStatusResponse = {
|
|
83
|
+
items?: AllAPIKeyStatus[]
|
|
84
|
+
}
|
|
85
|
+
|
|
69
86
|
export type ListWSAPIKeyRequest = {
|
|
70
87
|
workspace?: number
|
|
71
88
|
page?: HydraCommonCommon.Pagination
|
|
@@ -231,6 +248,9 @@ export class WSAPIKeyManagement {
|
|
|
231
248
|
static ListMyWSAPIKeys(req: ListWSAPIKeyRequest, initReq?: fm.InitReq): Promise<ListAPIKeyResponse> {
|
|
232
249
|
return fm.fetchReq<ListWSAPIKeyRequest, ListAPIKeyResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/my-apikeys?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
233
250
|
}
|
|
251
|
+
static ListAllWSAPIKeysStatus(req: ListAllWSAPIKeysStatusRequest, initReq?: fm.InitReq): Promise<ListAllWSAPIKeysStatusResponse> {
|
|
252
|
+
return fm.fetchReq<ListAllWSAPIKeysStatusRequest, ListAllWSAPIKeysStatusResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/all-apikey-statuses?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
253
|
+
}
|
|
234
254
|
static ListWSAPIKeyMasked(req: ListWSAPIKeyRequest, initReq?: fm.InitReq): Promise<ListAPIKeyResponse> {
|
|
235
255
|
return fm.fetchReq<ListWSAPIKeyRequest, ListAPIKeyResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/masked-apikeys?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
236
256
|
}
|