@daocloud-proto/hydra 0.16.0-dev-5 → 0.16.0-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.
@@ -18,6 +18,7 @@ export enum UserPermission {
18
18
  APIKEY_GET = "APIKEY_GET",
19
19
  APIKEY_CREATE = "APIKEY_CREATE",
20
20
  APIKEY_DELETE = "APIKEY_DELETE",
21
+ APIKEY_UPDATE = "APIKEY_UPDATE",
21
22
  CLUSTER_GET = "CLUSTER_GET",
22
23
  FILES_STORAGE_GET = "FILES_STORAGE_GET",
23
24
  FILES_STORAGE_CREATE = "FILES_STORAGE_CREATE",
@@ -44,6 +44,15 @@ export enum DeployTemplateInferenceRuntime {
44
44
  IMAGE_GEN = "IMAGE_GEN",
45
45
  }
46
46
 
47
+ export type ModelSupportFeatureRoute = {
48
+ modelSupportFeature?: ModelSupportFeature
49
+ defaultPath?: string
50
+ }
51
+
52
+ export type ModelSupportFeatureConfig = {
53
+ items?: ModelSupportFeatureRoute[]
54
+ }
55
+
47
56
  export type ModelPriceDiscountInfo = {
48
57
  discountRate?: number
49
58
  discountName?: string
@@ -254,6 +263,13 @@ export type ListModelTemplatesResponse = {
254
263
  page?: HydraCommonCommon.Pagination
255
264
  }
256
265
 
266
+ export type GetModelSupportFeatureConfigRequest = {
267
+ }
268
+
269
+ export type GetModelSupportFeatureConfigResponse = {
270
+ config?: ModelSupportFeatureConfig
271
+ }
272
+
257
273
  export class ModelManagement {
258
274
  static GetModel(req: SingleModelRequest, initReq?: fm.InitReq): Promise<Model> {
259
275
  return fm.fetchReq<SingleModelRequest, Model>(`/apis/hydra.io/v1alpha1/models/${req["modelId"]}?${fm.renderURLSearchParams(req, ["modelId"])}`, {...initReq, method: "GET"})
@@ -301,4 +317,9 @@ export class WSModelTemplateManagement {
301
317
  static ListWSModelTemplates(req: ListModelTemplatesRequest, initReq?: fm.InitReq): Promise<ListModelTemplatesResponse> {
302
318
  return fm.fetchReq<ListModelTemplatesRequest, ListModelTemplatesResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/models/${req["modelId"]}/model-templates?${fm.renderURLSearchParams(req, ["workspace", "modelId"])}`, {...initReq, method: "GET"})
303
319
  }
320
+ }
321
+ export class ModelConfigManagement {
322
+ static GetModelSupportFeatureConfig(req: GetModelSupportFeatureConfigRequest, initReq?: fm.InitReq): Promise<GetModelSupportFeatureConfigResponse> {
323
+ return fm.fetchReq<GetModelSupportFeatureConfigRequest, GetModelSupportFeatureConfigResponse>(`/apis/hydra.io/v1alpha1/model-support-features/config?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
324
+ }
304
325
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.16.0-dev-5",
3
+ "version": "v0.16.0-dev-7",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"