@daocloud-proto/hydra 0.0.0-dev-3c60a063 → 0.0.0-dev-e73bb2f9
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/admin-api/core/v1alpha1/core.pb.ts +17 -0
- package/admin-api/guardrails/v1alpha1/guardrails.pb.ts +1 -1
- package/management-api/agent/v1alpha1/event.pb.ts +6 -0
- package/management-api/apikey/v1alpha1/apikey.pb.ts +6 -0
- package/management-api/model_type/v1alpha1/model_type.pb.ts +20 -0
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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
|
+
}
|