@daocloud-proto/hydra 0.17.0-rc1-dev-22 → 0.17.0-rc1-dev-24

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.
@@ -97,6 +97,13 @@ export type ListAllWSAPIKeysStatusResponse = {
97
97
  items?: AllAPIKeyStatus[]
98
98
  }
99
99
 
100
+ export type ListAllAPIKeysStatusResponse = {
101
+ items?: AllAPIKeyStatus[]
102
+ }
103
+
104
+ export type ListAllAPIKeysStatusRequest = {
105
+ }
106
+
100
107
  export type ListWSAPIKeyRequest = {
101
108
  workspace?: number
102
109
  page?: HydraCommonCommon.Pagination
@@ -232,6 +239,9 @@ export class APIKeyManagement {
232
239
  static ListAPIKeyMasked(req: ListAPIKeyRequest, initReq?: fm.InitReq): Promise<ListAPIKeyResponse> {
233
240
  return fm.fetchReq<ListAPIKeyRequest, ListAPIKeyResponse>(`/apis/hydra.io/v1alpha1/masked-apikeys?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
234
241
  }
242
+ static ListAllAPIKeysStatus(req: ListAllAPIKeysStatusRequest, initReq?: fm.InitReq): Promise<ListAllAPIKeysStatusResponse> {
243
+ return fm.fetchReq<ListAllAPIKeysStatusRequest, ListAllAPIKeysStatusResponse>(`/apis/hydra.io/v1alpha1/all-apikey-statuses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
244
+ }
235
245
  static GetAPIKeySecret(req: GetAPIKeySecretRequest, initReq?: fm.InitReq): Promise<APIKeySecret> {
236
246
  return fm.fetchReq<GetAPIKeySecretRequest, APIKeySecret>(`/apis/hydra.io/v1alpha1/apikeys/${req["id"]}/secret?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
237
247
  }
@@ -115,6 +115,23 @@ export type ModelPriceDiscountSchedule = {
115
115
  timezone?: string
116
116
  }
117
117
 
118
+ export type ModelPricePriceValue = {
119
+ price?: string
120
+ discountInfo?: ModelPriceDiscountInfo
121
+ }
122
+
123
+ export type ModelPriceFeaturePrice = {
124
+ modelSupportFeature?: ModelSupportFeature
125
+ modelSupportFeatures?: ModelSupportFeature[]
126
+ inputTokenPricePerK?: ModelPricePriceValue
127
+ outputTokenPricePerK?: ModelPricePriceValue
128
+ cachedTokenPricePerK?: ModelPricePriceValue
129
+ inputImagePrice?: ModelPricePriceValue
130
+ outputImagePrice?: ModelPricePriceValue
131
+ audioToTextPricePerMinute?: ModelPricePriceValue
132
+ textToAudioPricePerKCharacters?: ModelPricePriceValue
133
+ }
134
+
118
135
  export type ModelPrice = {
119
136
  inputPerKTokens?: string
120
137
  outputPerKTokens?: string
@@ -124,6 +141,7 @@ export type ModelPrice = {
124
141
  outputDiscountInfo?: ModelPriceDiscountInfo
125
142
  perImageDiscountInfo?: ModelPriceDiscountInfo
126
143
  cachedDiscountInfo?: ModelPriceDiscountInfo
144
+ featurePrices?: ModelPriceFeaturePrice[]
127
145
  }
128
146
 
129
147
  export type Model = {
@@ -149,6 +167,7 @@ export type Model = {
149
167
  contextLength?: ContextLength
150
168
  operationTags?: ModelOperationTag[]
151
169
  publishTimestamp?: GoogleProtobufTimestamp.Timestamp
170
+ capabilityCompatibilities?: ModelCapabilityCompatibilitySelection[]
152
171
  }
153
172
 
154
173
  export type ListModelRequest = {
@@ -255,6 +274,7 @@ export type WSModel = {
255
274
  contextLength?: ContextLength
256
275
  operationTags?: ModelOperationTag[]
257
276
  publishTimestamp?: GoogleProtobufTimestamp.Timestamp
277
+ capabilityCompatibilities?: ModelCapabilityCompatibilitySelection[]
258
278
  }
259
279
 
260
280
  export type CreatePrivateModelRequest = {
@@ -380,6 +400,17 @@ export type ModelCapabilityCompatibilityOption = {
380
400
  requestFields?: ModelCapabilityCompatibilityField[]
381
401
  }
382
402
 
403
+ export type ModelCapabilityCompatibilitySelectionProfile = {
404
+ compatibility?: string
405
+ displayName?: string
406
+ requestFields?: ModelCapabilityCompatibilityField[]
407
+ }
408
+
409
+ export type ModelCapabilityCompatibilitySelection = {
410
+ capability?: string
411
+ selectedProfile?: ModelCapabilityCompatibilitySelectionProfile
412
+ }
413
+
383
414
  export type ListModelCapabilityCompatibilityOptionsResponse = {
384
415
  capability?: string
385
416
  items?: ModelCapabilityCompatibilityOption[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.17.0-rc1-dev-22",
3
+ "version": "v0.17.0-rc1-dev-24",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"