@daocloud-proto/hydra 0.17.0-rc1-dev-10 → 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.
@@ -162,6 +162,7 @@ type BaseExternalDetectPlugin = {
162
162
  provider?: ExternalDetectProvider
163
163
  checkInput?: boolean
164
164
  checkOutput?: boolean
165
+ maxInputTokens?: number
165
166
  }
166
167
 
167
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-10",
3
+ "version": "v0.17.0-rc1-dev-13",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"