@daocloud-proto/hydra 0.16.0-rc1-dev-6 → 0.16.0-rc1-dev-7
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.
|
@@ -338,6 +338,19 @@ export type DeployDetectCondition = {
|
|
|
338
338
|
message?: string
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
+
export type ListBuiltinEnvVarsRequest = {
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export type BuiltinEnvVar = {
|
|
345
|
+
name?: string
|
|
346
|
+
description?: string
|
|
347
|
+
example?: string
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export type ListBuiltinEnvVarsResponse = {
|
|
351
|
+
items?: BuiltinEnvVar[]
|
|
352
|
+
}
|
|
353
|
+
|
|
341
354
|
export class ModelServingManagement {
|
|
342
355
|
static CreateModelServing(req: CreateModelServingRequest, initReq?: fm.InitReq): Promise<ModelServing> {
|
|
343
356
|
return fm.fetchReq<CreateModelServingRequest, ModelServing>(`/apis/hydra.io/v1alpha1/model-serving`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -380,4 +393,7 @@ export class WSModelServingManagement {
|
|
|
380
393
|
static DoModelWSServingAction(req: WSModelServingActionRequest, initReq?: fm.InitReq): Promise<WSModelServing> {
|
|
381
394
|
return fm.fetchReq<WSModelServingActionRequest, WSModelServing>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["id"]}/actions`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
382
395
|
}
|
|
396
|
+
static ListBuiltinEnvVars(req: ListBuiltinEnvVarsRequest, initReq?: fm.InitReq): Promise<ListBuiltinEnvVarsResponse> {
|
|
397
|
+
return fm.fetchReq<ListBuiltinEnvVarsRequest, ListBuiltinEnvVarsResponse>(`/apis/hydra.io/v1alpha1/model-serving/builtin-env-vars?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
398
|
+
}
|
|
383
399
|
}
|