@daocloud-proto/hydra 0.17.0-rc1-dev-1 → 0.17.0-rc1-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.
|
@@ -108,6 +108,31 @@ export type UpdateWSAPIKeyStatusRequest = {
|
|
|
108
108
|
disabled?: boolean
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
export type UpdateAPIKeyStatusRequest = {
|
|
112
|
+
id?: string
|
|
113
|
+
disabled?: boolean
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type RegenerateAPIKeyRequest = {
|
|
117
|
+
id?: string
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type RegenerateWSAPIKeyRequest = {
|
|
121
|
+
id?: string
|
|
122
|
+
workspace?: number
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export type RevealAPIKeySecretRequest = {
|
|
126
|
+
id?: string
|
|
127
|
+
password?: string
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type RevealWSAPIKeySecretRequest = {
|
|
131
|
+
id?: string
|
|
132
|
+
workspace?: number
|
|
133
|
+
password?: string
|
|
134
|
+
}
|
|
135
|
+
|
|
111
136
|
export type DeleteAPIKeyRequest = {
|
|
112
137
|
id?: string
|
|
113
138
|
}
|
|
@@ -180,6 +205,15 @@ export class APIKeyManagement {
|
|
|
180
205
|
static DeleteAPIKey(req: DeleteAPIKeyRequest, initReq?: fm.InitReq): Promise<APIKey> {
|
|
181
206
|
return fm.fetchReq<DeleteAPIKeyRequest, APIKey>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
|
|
182
207
|
}
|
|
208
|
+
static UpdateAPIKeyStatus(req: UpdateAPIKeyStatusRequest, initReq?: fm.InitReq): Promise<APIKey> {
|
|
209
|
+
return fm.fetchReq<UpdateAPIKeyStatusRequest, APIKey>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}/status`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
210
|
+
}
|
|
211
|
+
static RegenerateAPIKey(req: RegenerateAPIKeyRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
212
|
+
return fm.fetchReq<RegenerateAPIKeyRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}/regenerate`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
213
|
+
}
|
|
214
|
+
static RevealAPIKeySecret(req: RevealAPIKeySecretRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
215
|
+
return fm.fetchReq<RevealAPIKeySecretRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}/reveal-secret`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
216
|
+
}
|
|
183
217
|
static GetAPIKeyUsageStatistics(req: APIKeyUsageStatisticsRequest, initReq?: fm.InitReq): Promise<APIKeyUsageStatisticsResponse> {
|
|
184
218
|
return fm.fetchReq<APIKeyUsageStatisticsRequest, APIKeyUsageStatisticsResponse>(`/apis/hydra.io/v1alpha1/apikeys-stats`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
185
219
|
}
|
|
@@ -212,6 +246,12 @@ export class WSAPIKeyManagement {
|
|
|
212
246
|
static UpdateWSAPIKeyQuota(req: UpdateWSAPIKeyQuotaRequest, initReq?: fm.InitReq): Promise<APIKey> {
|
|
213
247
|
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)})
|
|
214
248
|
}
|
|
249
|
+
static RegenerateWSAPIKey(req: RegenerateWSAPIKeyRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
250
|
+
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)})
|
|
251
|
+
}
|
|
252
|
+
static RevealWSAPIKeySecret(req: RevealWSAPIKeySecretRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
|
|
253
|
+
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)})
|
|
254
|
+
}
|
|
215
255
|
static GetAPIKeyUsageStatistics(req: WSAPIKeyUsageStatisticsRequest, initReq?: fm.InitReq): Promise<APIKeyUsageStatisticsResponse> {
|
|
216
256
|
return fm.fetchReq<WSAPIKeyUsageStatisticsRequest, APIKeyUsageStatisticsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys-stats`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
217
257
|
}
|
|
@@ -49,6 +49,12 @@ export enum ModelOperationTag {
|
|
|
49
49
|
DEPRECATING = "DEPRECATING",
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
export enum ModelSupportCapability {
|
|
53
|
+
MODEL_SUPPORT_CAPABILITY_UNSPECIFIED = "MODEL_SUPPORT_CAPABILITY_UNSPECIFIED",
|
|
54
|
+
SUPPORT_EXPERIENCE = "SUPPORT_EXPERIENCE",
|
|
55
|
+
SUPPORT_DEPLOYMENT = "SUPPORT_DEPLOYMENT",
|
|
56
|
+
}
|
|
57
|
+
|
|
52
58
|
export enum SkuDiscountScheduleType {
|
|
53
59
|
SKU_DISCOUNT_SCHEDULE_TYPE_UNSPECIFIED = "SKU_DISCOUNT_SCHEDULE_TYPE_UNSPECIFIED",
|
|
54
60
|
SKU_DISCOUNT_SCHEDULE_TYPE_ABSOLUTE = "SKU_DISCOUNT_SCHEDULE_TYPE_ABSOLUTE",
|