@daocloud-proto/hydra 0.18.0-dev-1 → 0.18.0-dev-2

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.
@@ -45,6 +45,8 @@ export enum APIKeyUsageQueryStatus {
45
45
  quota?: string
46
46
  unlimitedQuota?: boolean
47
47
  allowModels?: string[]
48
+ allowedIps?: string[]
49
+ blockedIps?: string[]
48
50
  }
49
51
 
50
52
  export type CreateWSAPIKeyRequest = BaseCreateWSAPIKeyRequest
@@ -55,6 +57,8 @@ export type CreateWSAPIKeyRequest = BaseCreateWSAPIKeyRequest
55
57
  /* hydra modified */ export type BaseCreateAPIKeyRequest = {
56
58
  name?: string
57
59
  allowModels?: string[]
60
+ allowedIps?: string[]
61
+ blockedIps?: string[]
58
62
  }
59
63
 
60
64
  export type CreateAPIKeyRequest = BaseCreateAPIKeyRequest
@@ -80,6 +84,8 @@ export type APIKey = {
80
84
  expired?: boolean
81
85
  disabled?: boolean
82
86
  quotaLimitedModels?: string[]
87
+ allowedIps?: string[]
88
+ blockedIps?: string[]
83
89
  }
84
90
 
85
91
  export type AllAPIKeyStatus = {
@@ -156,12 +162,18 @@ export type UpdateAPIKeyStatusRequest = {
156
162
  export type UpdateAPIKeyRequest = {
157
163
  id?: string
158
164
  allowModels?: string[]
165
+ allowedIps?: string[]
166
+ blockedIps?: string[]
159
167
  }
160
168
 
161
169
  export type UpdateWSAPIKeyRequest = {
162
170
  id?: string
163
171
  workspace?: number
164
172
  allowModels?: string[]
173
+ allowedIps?: string[]
174
+ blockedIps?: string[]
175
+ quota?: string
176
+ unlimitedQuota?: boolean
165
177
  }
166
178
 
167
179
  export type RegenerateAPIKeyRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.18.0-dev-1",
3
+ "version": "v0.18.0-dev-2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"