@daocloud-proto/hydra 0.17.0-rc1-dev-9 → 0.17.0-rc1-dev-13
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.
|
@@ -38,13 +38,6 @@ export enum PluginAction {
|
|
|
38
38
|
PLUGIN_ACTION_REPLACE_MASK = "PLUGIN_ACTION_REPLACE_MASK",
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export enum CheckPhase {
|
|
42
|
-
CHECK_PHASE_UNSPECIFIED = "CHECK_PHASE_UNSPECIFIED",
|
|
43
|
-
CHECK_PHASE_INPUT = "CHECK_PHASE_INPUT",
|
|
44
|
-
CHECK_PHASE_OUTPUT = "CHECK_PHASE_OUTPUT",
|
|
45
|
-
CHECK_PHASE_BOTH = "CHECK_PHASE_BOTH",
|
|
46
|
-
}
|
|
47
|
-
|
|
48
41
|
export enum ExternalDetectProvider {
|
|
49
42
|
EXTERNAL_DETECT_PROVIDER_UNSPECIFIED = "EXTERNAL_DETECT_PROVIDER_UNSPECIFIED",
|
|
50
43
|
EXTERNAL_DETECT_PROVIDER_NSFOCUS = "EXTERNAL_DETECT_PROVIDER_NSFOCUS",
|
|
@@ -107,7 +100,8 @@ export type RegexMatchPlugin = {
|
|
|
107
100
|
matchStrategy?: MatchStrategy
|
|
108
101
|
action?: PluginAction
|
|
109
102
|
responses?: string[]
|
|
110
|
-
|
|
103
|
+
checkInput?: boolean
|
|
104
|
+
checkOutput?: boolean
|
|
111
105
|
}
|
|
112
106
|
|
|
113
107
|
export type ContainsPlugin = {
|
|
@@ -116,7 +110,8 @@ export type ContainsPlugin = {
|
|
|
116
110
|
matchStrategy?: MatchStrategy
|
|
117
111
|
action?: PluginAction
|
|
118
112
|
responses?: string[]
|
|
119
|
-
|
|
113
|
+
checkInput?: boolean
|
|
114
|
+
checkOutput?: boolean
|
|
120
115
|
}
|
|
121
116
|
|
|
122
117
|
export type JsonSchemaPlugin = {
|
|
@@ -155,10 +150,6 @@ export type NsfocusProviderConfig = {
|
|
|
155
150
|
vAppId?: string
|
|
156
151
|
vAppName?: string
|
|
157
152
|
policyId?: string
|
|
158
|
-
enableImage?: boolean
|
|
159
|
-
enableAudio?: boolean
|
|
160
|
-
enableVideo?: boolean
|
|
161
|
-
enableDoc?: boolean
|
|
162
153
|
}
|
|
163
154
|
|
|
164
155
|
|
|
@@ -171,6 +162,7 @@ type BaseExternalDetectPlugin = {
|
|
|
171
162
|
provider?: ExternalDetectProvider
|
|
172
163
|
checkInput?: boolean
|
|
173
164
|
checkOutput?: boolean
|
|
165
|
+
maxInputTokens?: number
|
|
174
166
|
}
|
|
175
167
|
|
|
176
168
|
export type ExternalDetectPlugin = BaseExternalDetectPlugin
|
|
@@ -66,6 +66,23 @@ export type APIKey = {
|
|
|
66
66
|
disabled?: boolean
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
export type AllAPIKeyStatus = {
|
|
70
|
+
id?: string
|
|
71
|
+
expired?: boolean
|
|
72
|
+
disabled?: boolean
|
|
73
|
+
deleted?: boolean
|
|
74
|
+
name?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type ListAllWSAPIKeysStatusRequest = {
|
|
78
|
+
workspace?: number
|
|
79
|
+
userId?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type ListAllWSAPIKeysStatusResponse = {
|
|
83
|
+
items?: AllAPIKeyStatus[]
|
|
84
|
+
}
|
|
85
|
+
|
|
69
86
|
export type ListWSAPIKeyRequest = {
|
|
70
87
|
workspace?: number
|
|
71
88
|
page?: HydraCommonCommon.Pagination
|
|
@@ -231,6 +248,9 @@ export class WSAPIKeyManagement {
|
|
|
231
248
|
static ListMyWSAPIKeys(req: ListWSAPIKeyRequest, initReq?: fm.InitReq): Promise<ListAPIKeyResponse> {
|
|
232
249
|
return fm.fetchReq<ListWSAPIKeyRequest, ListAPIKeyResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/my-apikeys?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
233
250
|
}
|
|
251
|
+
static ListAllWSAPIKeysStatus(req: ListAllWSAPIKeysStatusRequest, initReq?: fm.InitReq): Promise<ListAllWSAPIKeysStatusResponse> {
|
|
252
|
+
return fm.fetchReq<ListAllWSAPIKeysStatusRequest, ListAllWSAPIKeysStatusResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/all-apikey-statuses?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
253
|
+
}
|
|
234
254
|
static ListWSAPIKeyMasked(req: ListWSAPIKeyRequest, initReq?: fm.InitReq): Promise<ListAPIKeyResponse> {
|
|
235
255
|
return fm.fetchReq<ListWSAPIKeyRequest, ListAPIKeyResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/masked-apikeys?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
236
256
|
}
|