@daocloud-proto/hydra 0.0.0-dev-c0d8be46 → 0.0.0-dev-aad1ae12
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.
|
@@ -24,6 +24,11 @@ export enum AdminPermission {
|
|
|
24
24
|
FILES_STORAGE_DELETE = "FILES_STORAGE_DELETE",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export enum ExportModule {
|
|
28
|
+
EXPORT_MODULE_UNSPECIFIED = "EXPORT_MODULE_UNSPECIFIED",
|
|
29
|
+
EXPORT_MODULE_AI_AUDIT_LOG = "EXPORT_MODULE_AI_AUDIT_LOG",
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
export type ListClusterRequest = {
|
|
28
33
|
page?: HydraCommonCommon.Pagination
|
|
29
34
|
}
|
|
@@ -42,6 +47,15 @@ export type ListPlatformRolePermissionsForCurrentUserResponse = {
|
|
|
42
47
|
permissions?: AdminPermission[]
|
|
43
48
|
}
|
|
44
49
|
|
|
50
|
+
export type GetExportURIRequest = {
|
|
51
|
+
module?: ExportModule
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type GetExportURIResponse = {
|
|
55
|
+
uri?: string
|
|
56
|
+
method?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
45
59
|
export class CoreService {
|
|
46
60
|
static AdminListCluster(req: ListClusterRequest, initReq?: fm.InitReq): Promise<ListClusterResponse> {
|
|
47
61
|
return fm.fetchReq<ListClusterRequest, ListClusterResponse>(`/apis/admin.hydra.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -52,4 +66,7 @@ export class CoreService {
|
|
|
52
66
|
static ListPlatformRolePermissionsForCurrentUser(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<ListPlatformRolePermissionsForCurrentUserResponse> {
|
|
53
67
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, ListPlatformRolePermissionsForCurrentUserResponse>(`/apis/admin.hydra.io/v1alpha1/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
54
68
|
}
|
|
69
|
+
static GetExportURI(req: GetExportURIRequest, initReq?: fm.InitReq): Promise<GetExportURIResponse> {
|
|
70
|
+
return fm.fetchReq<GetExportURIRequest, GetExportURIResponse>(`/apis/admin.hydra.io/v1alpha1/export-uri?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
71
|
+
}
|
|
55
72
|
}
|
|
@@ -175,6 +175,6 @@ export class AIGuardrailsService {
|
|
|
175
175
|
return fm.fetchReq<QueryAIAuditLogRequest, QueryAIAuditLogResponse>(`/apis/admin.hydra.io/v1alpha1/ai-guardrails-logs?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
176
176
|
}
|
|
177
177
|
static ExportAIAuditLog(req: ExportAIAuditLogRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
178
|
-
return fm.fetchReq<ExportAIAuditLogRequest, GoogleApiHttpbody.HttpBody>(`/apis/admin.hydra.io/v1alpha1/ai-guardrails-logs/export`, {...initReq, method: "
|
|
178
|
+
return fm.fetchReq<ExportAIAuditLogRequest, GoogleApiHttpbody.HttpBody>(`/apis/admin.hydra.io/v1alpha1/ai-guardrails-logs/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
179
179
|
}
|
|
180
180
|
}
|
|
@@ -69,6 +69,12 @@ export type SchedulingConfig = {
|
|
|
69
69
|
placementPolicy?: PlacementPolicy
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
export type PreflightConfig = {
|
|
73
|
+
enabled?: boolean
|
|
74
|
+
nodeCheckIbHcas?: string[]
|
|
75
|
+
nodeCheckBusbwThresholdGbps?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
72
78
|
export type WeightVolumeConfig = {
|
|
73
79
|
modelId?: string
|
|
74
80
|
modelTag?: string
|
|
@@ -131,6 +137,7 @@ export type CreateModelServingRequest = {
|
|
|
131
137
|
export type CreateWSModelServingRequest = BaseCreateWSModelServingRequest
|
|
132
138
|
& OneOf<{ weightVolumeConfig: WeightVolumeConfig }>
|
|
133
139
|
& OneOf<{ schedulingConfig: SchedulingConfig }>
|
|
140
|
+
& OneOf<{ preflight: PreflightConfig }>
|
|
134
141
|
|
|
135
142
|
export type ModelServing = {
|
|
136
143
|
id?: string
|
|
@@ -175,6 +182,7 @@ export type ModelServing = {
|
|
|
175
182
|
weightVolumeConfig?: WeightVolumeConfig
|
|
176
183
|
modelVisible?: ModelVisible
|
|
177
184
|
tokenWeight?: string
|
|
185
|
+
preflight?: PreflightConfig
|
|
178
186
|
}
|
|
179
187
|
|
|
180
188
|
export type WSModelServing = BaseWSModelServing
|