@daocloud-proto/infery 0.0.0-dev-2143f7fa → 0.0.0-dev-1126af6a
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.
package/common/common.pb.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as GoogleProtobufStruct from "../google/protobuf/struct.pb"
|
|
8
|
+
|
|
7
9
|
export enum DBType {
|
|
8
10
|
DB_TYPE_UNSPECIFIED = "DB_TYPE_UNSPECIFIED",
|
|
9
11
|
MYSQL = "MYSQL",
|
|
@@ -35,6 +37,11 @@ export enum SearchIndexFieldBuilderType {
|
|
|
35
37
|
FUNC_CONCAT = "FUNC_CONCAT",
|
|
36
38
|
}
|
|
37
39
|
|
|
40
|
+
export type FormState = {
|
|
41
|
+
ui?: GoogleProtobufStruct.Struct
|
|
42
|
+
form?: GoogleProtobufStruct.Struct
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
export type NoParamsQuery = {
|
|
39
46
|
}
|
|
40
47
|
|
|
@@ -65,7 +65,7 @@ export type ModelServingConnection = BaseModelServingConnection
|
|
|
65
65
|
|
|
66
66
|
export type FunctionalCase = {
|
|
67
67
|
id?: string
|
|
68
|
-
parameters?:
|
|
68
|
+
parameters?: InferyCommonCommon.FormState
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export type FunctionalTest = {
|
|
@@ -269,6 +269,8 @@ export type FunctionalCaseDefinition = {
|
|
|
269
269
|
enabled?: boolean
|
|
270
270
|
defaultSelected?: boolean
|
|
271
271
|
required?: boolean
|
|
272
|
+
uiConfig?: string
|
|
273
|
+
defaultParams?: GoogleProtobufStruct.Struct
|
|
272
274
|
}
|
|
273
275
|
|
|
274
276
|
export class InferenceTestManagement {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as InferyCommonCommon from "../../../common/common.pb"
|
|
8
8
|
import * as fm from "../../../fetch.pb"
|
|
9
|
+
import * as GoogleProtobufDuration from "../../../google/protobuf/duration.pb"
|
|
9
10
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
10
11
|
import * as InferyManagement_apiInference_templateV1alpha1Inference_template from "../../inference_template/v1alpha1/inference_template.pb"
|
|
11
12
|
|
|
@@ -74,6 +75,13 @@ export enum ModelServingOriginType {
|
|
|
74
75
|
MODEL_SERVING_ORIGIN_TYPE_EXTERNAL = "MODEL_SERVING_ORIGIN_TYPE_EXTERNAL",
|
|
75
76
|
}
|
|
76
77
|
|
|
78
|
+
export enum ModelServingHistoryVersionType {
|
|
79
|
+
MODEL_SERVING_HISTORY_VERSION_TYPE_UNSPECIFIED = "MODEL_SERVING_HISTORY_VERSION_TYPE_UNSPECIFIED",
|
|
80
|
+
MODEL_SERVING_HISTORY_VERSION_TYPE_CURRENT = "MODEL_SERVING_HISTORY_VERSION_TYPE_CURRENT",
|
|
81
|
+
MODEL_SERVING_HISTORY_VERSION_TYPE_INITIAL = "MODEL_SERVING_HISTORY_VERSION_TYPE_INITIAL",
|
|
82
|
+
MODEL_SERVING_HISTORY_VERSION_TYPE_HISTORY = "MODEL_SERVING_HISTORY_VERSION_TYPE_HISTORY",
|
|
83
|
+
}
|
|
84
|
+
|
|
77
85
|
export type PVCModelSource = {
|
|
78
86
|
claimName?: string
|
|
79
87
|
subPath?: string
|
|
@@ -417,6 +425,45 @@ export type SyncModelServingResponse = {
|
|
|
417
425
|
export type TerminateModelServingOperationResponse = {
|
|
418
426
|
}
|
|
419
427
|
|
|
428
|
+
export type ModelServingHistory = {
|
|
429
|
+
id?: string
|
|
430
|
+
updateTime?: GoogleProtobufTimestamp.Timestamp
|
|
431
|
+
updateDuration?: GoogleProtobufDuration.Duration
|
|
432
|
+
versionType?: ModelServingHistoryVersionType
|
|
433
|
+
values?: string
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export type ListModelServingHistoryRequest = {
|
|
437
|
+
workspace?: number
|
|
438
|
+
name?: string
|
|
439
|
+
page?: InferyCommonCommon.Pagination
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export type ListModelServingHistoryResponse = {
|
|
443
|
+
items?: ModelServingHistory[]
|
|
444
|
+
page?: InferyCommonCommon.Pagination
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export type GetModelServingHistoryRequest = {
|
|
448
|
+
workspace?: number
|
|
449
|
+
name?: string
|
|
450
|
+
id?: string
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export type GetModelServingHistoryResponse = {
|
|
454
|
+
history?: ModelServingHistory
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export type RollbackModelServingRequest = {
|
|
458
|
+
workspace?: number
|
|
459
|
+
name?: string
|
|
460
|
+
id?: string
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export type RollbackModelServingResponse = {
|
|
464
|
+
history?: ModelServingHistory
|
|
465
|
+
}
|
|
466
|
+
|
|
420
467
|
export type CreateModelServingJSONRequest = {
|
|
421
468
|
workspace?: number
|
|
422
469
|
name?: string
|
|
@@ -485,7 +532,6 @@ type BaseGetModelServingFormRequest = {
|
|
|
485
532
|
|
|
486
533
|
export type GetModelServingFormRequest = BaseGetModelServingFormRequest
|
|
487
534
|
& OneOf<{ inferenceTemplateName: string; modelServingName: string }>
|
|
488
|
-
& OneOf<{ cluster: string }>
|
|
489
535
|
|
|
490
536
|
export type GetModelServingFormResponse = {
|
|
491
537
|
form?: string
|
|
@@ -539,6 +585,15 @@ export class ModelServingManagement {
|
|
|
539
585
|
static TerminateModelServingOperation(req: TerminateModelServingOperationRequest, initReq?: fm.InitReq): Promise<TerminateModelServingOperationResponse> {
|
|
540
586
|
return fm.fetchReq<TerminateModelServingOperationRequest, TerminateModelServingOperationResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}/operation`, {...initReq, method: "DELETE"})
|
|
541
587
|
}
|
|
588
|
+
static ListModelServingHistory(req: ListModelServingHistoryRequest, initReq?: fm.InitReq): Promise<ListModelServingHistoryResponse> {
|
|
589
|
+
return fm.fetchReq<ListModelServingHistoryRequest, ListModelServingHistoryResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}/history?${fm.renderURLSearchParams(req, ["workspace", "name"])}`, {...initReq, method: "GET"})
|
|
590
|
+
}
|
|
591
|
+
static GetModelServingHistory(req: GetModelServingHistoryRequest, initReq?: fm.InitReq): Promise<GetModelServingHistoryResponse> {
|
|
592
|
+
return fm.fetchReq<GetModelServingHistoryRequest, GetModelServingHistoryResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}/history/${req["id"]}?${fm.renderURLSearchParams(req, ["workspace", "name", "id"])}`, {...initReq, method: "GET"})
|
|
593
|
+
}
|
|
594
|
+
static RollbackModelServing(req: RollbackModelServingRequest, initReq?: fm.InitReq): Promise<RollbackModelServingResponse> {
|
|
595
|
+
return fm.fetchReq<RollbackModelServingRequest, RollbackModelServingResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}/history/${req["id"]}/rollback`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
596
|
+
}
|
|
542
597
|
static CreateModelServingJSON(req: CreateModelServingJSONRequest, initReq?: fm.InitReq): Promise<CreateModelServingResponse> {
|
|
543
598
|
return fm.fetchReq<CreateModelServingJSONRequest, CreateModelServingResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving:json`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
544
599
|
}
|