@daocloud-proto/hydra 0.0.0-dev-aad1ae12 → 0.0.0-dev-682c9134
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.
|
@@ -56,6 +56,13 @@ export type GetExportURIResponse = {
|
|
|
56
56
|
method?: string
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
export type GetAnalysisURIRequest = {
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type GetAnalysisURIResponse = {
|
|
63
|
+
uri?: string
|
|
64
|
+
}
|
|
65
|
+
|
|
59
66
|
export class CoreService {
|
|
60
67
|
static AdminListCluster(req: ListClusterRequest, initReq?: fm.InitReq): Promise<ListClusterResponse> {
|
|
61
68
|
return fm.fetchReq<ListClusterRequest, ListClusterResponse>(`/apis/admin.hydra.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -69,4 +76,7 @@ export class CoreService {
|
|
|
69
76
|
static GetExportURI(req: GetExportURIRequest, initReq?: fm.InitReq): Promise<GetExportURIResponse> {
|
|
70
77
|
return fm.fetchReq<GetExportURIRequest, GetExportURIResponse>(`/apis/admin.hydra.io/v1alpha1/export-uri?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
71
78
|
}
|
|
79
|
+
static GetAnalysisURI(req: GetAnalysisURIRequest, initReq?: fm.InitReq): Promise<GetAnalysisURIResponse> {
|
|
80
|
+
return fm.fetchReq<GetAnalysisURIRequest, GetAnalysisURIResponse>(`/apis/admin.hydra.io/v1alpha1/analysis-uri?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
81
|
+
}
|
|
72
82
|
}
|
|
@@ -8,6 +8,7 @@ import * as fm from "../../../fetch.pb"
|
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
9
9
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
10
10
|
import * as HydraManagement_apiApikeyV1alpha1Apikey from "../../apikey/v1alpha1/apikey.pb"
|
|
11
|
+
import * as HydraManagement_apiModel_typeV1alpha1Model_type from "../../model_type/v1alpha1/model_type.pb"
|
|
11
12
|
|
|
12
13
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
13
14
|
type OneOf<T> =
|
|
@@ -57,12 +58,17 @@ export type UsageReportRequestUsage = {
|
|
|
57
58
|
outputImages?: UsageReportRequestUsageImage
|
|
58
59
|
requests?: number
|
|
59
60
|
cachedTokens?: string
|
|
61
|
+
inputCharacters?: string
|
|
62
|
+
outputAudioDuration?: string
|
|
63
|
+
sampleRate?: string
|
|
64
|
+
inputAudioDuration?: string
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
export type UsageReportRequest = {
|
|
63
68
|
apiKeyId?: string
|
|
64
69
|
requestModelName?: string
|
|
65
70
|
upstreamModelName?: string
|
|
71
|
+
requestModelType?: HydraManagement_apiModel_typeV1alpha1Model_type.RequestModelType
|
|
66
72
|
usage?: UsageReportRequestUsage
|
|
67
73
|
firstRequestTime?: GoogleProtobufTimestamp.Timestamp
|
|
68
74
|
lastRequestTime?: GoogleProtobufTimestamp.Timestamp
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as HydraCommonCommon from "../../../common/common.pb"
|
|
8
8
|
import * as fm from "../../../fetch.pb"
|
|
9
9
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
10
|
+
import * as HydraManagement_apiModel_typeV1alpha1Model_type from "../../model_type/v1alpha1/model_type.pb"
|
|
10
11
|
|
|
11
12
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
12
13
|
type OneOf<T> =
|
|
@@ -136,12 +137,17 @@ export type Usage = {
|
|
|
136
137
|
input?: string
|
|
137
138
|
output?: string
|
|
138
139
|
cached?: string
|
|
140
|
+
inputCharacters?: string
|
|
141
|
+
outputAudioDuration?: string
|
|
142
|
+
sampleRate?: number
|
|
143
|
+
inputAudioDuration?: string
|
|
139
144
|
}
|
|
140
145
|
|
|
141
146
|
export type DataPoint = {
|
|
142
147
|
timestamp?: GoogleProtobufTimestamp.Timestamp
|
|
143
148
|
usage?: Usage
|
|
144
149
|
model?: string
|
|
150
|
+
modelType?: HydraManagement_apiModel_typeV1alpha1Model_type.RequestModelType
|
|
145
151
|
}
|
|
146
152
|
|
|
147
153
|
export class APIKeyManagement {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export enum RequestModelType {
|
|
8
|
+
REQUEST_MODEL_TYPE_UNSPECIFIED = "REQUEST_MODEL_TYPE_UNSPECIFIED",
|
|
9
|
+
TEXT_GENERATION = "TEXT_GENERATION",
|
|
10
|
+
VIDEO_TO_TEXT = "VIDEO_TO_TEXT",
|
|
11
|
+
TEXT_TO_VIDEO = "TEXT_TO_VIDEO",
|
|
12
|
+
IMAGE_TO_IMAGE = "IMAGE_TO_IMAGE",
|
|
13
|
+
IMAGE_TO_TEXT = "IMAGE_TO_TEXT",
|
|
14
|
+
TEXT_TO_IMAGE = "TEXT_TO_IMAGE",
|
|
15
|
+
EMBEDDING = "EMBEDDING",
|
|
16
|
+
RERANK_MODEL = "RERANK_MODEL",
|
|
17
|
+
AUDIO_TO_AUDIO = "AUDIO_TO_AUDIO",
|
|
18
|
+
AUDIO_TO_TEXT = "AUDIO_TO_TEXT",
|
|
19
|
+
TEXT_TO_AUDIO = "TEXT_TO_AUDIO",
|
|
20
|
+
}
|