@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
- checkPhase?: CheckPhase
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
- checkPhase?: CheckPhase
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
  }
@@ -54,6 +54,7 @@ export enum ContextLengthRange {
54
54
  CTX_16K_64K = "CTX_16K_64K",
55
55
  CTX_64K_128K = "CTX_64K_128K",
56
56
  CTX_GE_128K = "CTX_GE_128K",
57
+ CTX_OTHER = "CTX_OTHER",
57
58
  }
58
59
 
59
60
  export enum ModelOperationTag {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.17.0-rc1-dev-9",
3
+ "version": "v0.17.0-rc1-dev-13",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"