@daocloud-proto/hydra 0.0.0-dev-c1bc5938 → 0.0.0-dev-5297a7b6

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.
@@ -91,6 +91,12 @@ export type UpdateWSAPIKeyQuotaRequest = {
91
91
  unlimitedQuota?: boolean
92
92
  }
93
93
 
94
+ export type UpdateWSAPIKeyStatusRequest = {
95
+ id?: string
96
+ workspace?: number
97
+ disabled?: boolean
98
+ }
99
+
94
100
  export type DeleteAPIKeyRequest = {
95
101
  id?: string
96
102
  }
@@ -168,6 +174,9 @@ export class WSAPIKeyManagement {
168
174
  static DeleteWSAPIKey(req: DeleteWSAPIKeyRequest, initReq?: fm.InitReq): Promise<APIKey> {
169
175
  return fm.fetchReq<DeleteWSAPIKeyRequest, APIKey>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys/${req["id"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
170
176
  }
177
+ static UpdateWSAPIKeyStatus(req: UpdateWSAPIKeyStatusRequest, initReq?: fm.InitReq): Promise<APIKey> {
178
+ return fm.fetchReq<UpdateWSAPIKeyStatusRequest, APIKey>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys/${req["id"]}/status`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
179
+ }
171
180
  static UpdateWSAPIKeyQuota(req: UpdateWSAPIKeyQuotaRequest, initReq?: fm.InitReq): Promise<APIKey> {
172
181
  return fm.fetchReq<UpdateWSAPIKeyQuotaRequest, APIKey>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/apikeys/${req["id"]}/quota`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
173
182
  }
@@ -73,6 +73,8 @@ export type ModelConfig = {
73
73
  modelVolumeId?: string
74
74
  template?: string
75
75
  trustRemoteCode?: boolean
76
+ modelName?: string
77
+ modelAvatar?: string
76
78
  }
77
79
 
78
80
  export type LoraConfig = {
@@ -101,6 +103,7 @@ export type DatasetConfig = {
101
103
  cutoffLen?: number
102
104
  maxSamples?: number
103
105
  valSize?: string
106
+ datasetName?: string
104
107
  }
105
108
 
106
109
  export type TrainingConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.0.0-dev-c1bc5938",
3
+ "version": "v0.0.0-dev-5297a7b6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"