@daocloud-proto/hydra 0.16.0-dev-19 → 0.16.0-dev-20

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.
@@ -167,6 +167,10 @@ export type ListModelServingsByModelResponse = {
167
167
  items?: WorkspaceModelServingGroup[]
168
168
  }
169
169
 
170
+ export type SortModelsRequest = {
171
+ modelIds?: string[]
172
+ }
173
+
170
174
  export class AdminModelManagement {
171
175
  static CreateModel(req: CreateModelRequest, initReq?: fm.InitReq): Promise<Model> {
172
176
  return fm.fetchReq<CreateModelRequest, Model>(`/apis/admin.hydra.io/v1alpha1/models`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -204,6 +208,9 @@ export class AdminModelManagement {
204
208
  static ListModelServingsByModel(req: ListModelServingsByModelRequest, initReq?: fm.InitReq): Promise<ListModelServingsByModelResponse> {
205
209
  return fm.fetchReq<ListModelServingsByModelRequest, ListModelServingsByModelResponse>(`/apis/admin.hydra.io/v1alpha1/models/${req["modelId"]}/servings?${fm.renderURLSearchParams(req, ["modelId"])}`, {...initReq, method: "GET"})
206
210
  }
211
+ static SortModels(req: SortModelsRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
212
+ return fm.fetchReq<SortModelsRequest, GoogleProtobufEmpty.Empty>(`/apis/admin.hydra.io/v1alpha1/models:sort`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
213
+ }
207
214
  }
208
215
  export class AdminModelTemplateManagement {
209
216
  static CreateModelTemplate(req: HydraManagement_apiModelV1alpha1Model.CreateModelTemplateRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiModelV1alpha1Model.ModelTemplate> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.16.0-dev-19",
3
+ "version": "v0.16.0-dev-20",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"