@daocloud-proto/hydra 0.17.0-rc1-dev-15 → 0.17.0-rc1-dev-19
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.
|
@@ -106,10 +106,6 @@ export type RateLimitRule = {
|
|
|
106
106
|
export type MAASCapabilityRoute = {
|
|
107
107
|
capabilities?: string[]
|
|
108
108
|
upstreams?: MAASCapabilityUpstream[]
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export type MAASCapabilityConfig = {
|
|
112
|
-
path?: string
|
|
113
109
|
compatibility?: string
|
|
114
110
|
}
|
|
115
111
|
|
|
@@ -118,7 +114,7 @@ export type MAASCapabilityUpstream = {
|
|
|
118
114
|
baseUrl?: string
|
|
119
115
|
apiKey?: string
|
|
120
116
|
status?: MAASBackendStatus
|
|
121
|
-
|
|
117
|
+
capabilityPaths?: {[key: string]: string}
|
|
122
118
|
}
|
|
123
119
|
|
|
124
120
|
export type UpstreamModel = {
|
|
@@ -152,17 +152,6 @@ export type RegenerateWSAPIKeyRequest = {
|
|
|
152
152
|
workspace?: number
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
export type RevealAPIKeySecretRequest = {
|
|
156
|
-
id?: string
|
|
157
|
-
password?: string
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export type RevealWSAPIKeySecretRequest = {
|
|
161
|
-
id?: string
|
|
162
|
-
workspace?: number
|
|
163
|
-
password?: string
|
|
164
|
-
}
|
|
165
|
-
|
|
166
155
|
export type DeleteAPIKeyRequest = {
|
|
167
156
|
id?: string
|
|
168
157
|
}
|
|
@@ -254,9 +243,6 @@ export class APIKeyManagement {
|
|
|
254
243
|
static RegenerateAPIKey(req: RegenerateAPIKeyRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
255
244
|
return fm.fetchReq<RegenerateAPIKeyRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}/regenerate`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
256
245
|
}
|
|
257
|
-
static RevealAPIKeySecret(req: RevealAPIKeySecretRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
258
|
-
return fm.fetchReq<RevealAPIKeySecretRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}/reveal-secret`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
259
|
-
}
|
|
260
246
|
static GetAPIKeyUsageStatistics(req: APIKeyUsageStatisticsRequest, initReq?: fm.InitReq): Promise<APIKeyUsageStatisticsResponse> {
|
|
261
247
|
return fm.fetchReq<APIKeyUsageStatisticsRequest, APIKeyUsageStatisticsResponse>(`/apis/hydra.io/v1alpha1/apikeys-stats`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
262
248
|
}
|
|
@@ -295,9 +281,6 @@ export class WSAPIKeyManagement {
|
|
|
295
281
|
static RegenerateWSAPIKey(req: RegenerateWSAPIKeyRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
296
282
|
return fm.fetchReq<RegenerateWSAPIKeyRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys/${req["id"]}/regenerate`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
297
283
|
}
|
|
298
|
-
static RevealWSAPIKeySecret(req: RevealWSAPIKeySecretRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
299
|
-
return fm.fetchReq<RevealWSAPIKeySecretRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys/${req["id"]}/reveal-secret`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
300
|
-
}
|
|
301
284
|
static GetAPIKeyUsageStatistics(req: WSAPIKeyUsageStatisticsRequest, initReq?: fm.InitReq): Promise<APIKeyUsageStatisticsResponse> {
|
|
302
285
|
return fm.fetchReq<WSAPIKeyUsageStatisticsRequest, APIKeyUsageStatisticsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys-stats`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
303
286
|
}
|