@daocloud-proto/hydra 0.2.0-dev-2 → 0.2.0-dev-4

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.
@@ -17,6 +17,11 @@ export enum APIKeyEventType {
17
17
  UPDATE = "UPDATE",
18
18
  }
19
19
 
20
+ export enum UsageReportRequestMode {
21
+ MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
22
+ MODE_PER_REQUEST = "MODE_PER_REQUEST",
23
+ }
24
+
20
25
  export type FetchAPIKeyRequest = {
21
26
  key?: string
22
27
  }
@@ -27,9 +32,19 @@ export type APIKeyEvent = {
27
32
  type?: APIKeyEventType
28
33
  }
29
34
 
35
+ export type UsageReportRequestUsageImage = {
36
+ width?: string
37
+ height?: string
38
+ numbers?: string
39
+ quality?: string
40
+ style?: string
41
+ }
42
+
30
43
  export type UsageReportRequestUsage = {
31
44
  inputTokens?: string
32
45
  outputTokens?: string
46
+ inputImages?: UsageReportRequestUsageImage
47
+ outputImages?: UsageReportRequestUsageImage
33
48
  requests?: number
34
49
  }
35
50
 
@@ -40,6 +55,7 @@ export type UsageReportRequest = {
40
55
  usage?: UsageReportRequestUsage
41
56
  firstRequestTime?: GoogleProtobufTimestamp.Timestamp
42
57
  lastRequestTime?: GoogleProtobufTimestamp.Timestamp
58
+ mode?: UsageReportRequestMode
43
59
  }
44
60
 
45
61
  export type UsageReportResponse = {
@@ -22,12 +22,28 @@ export enum ModelSupportFeature {
22
22
  AUDIO_TO_TEXT = "AUDIO_TO_TEXT",
23
23
  }
24
24
 
25
+ export enum ModelPublibModelConfigRateLimitLimitedBy {
26
+ LIMITED_BY_UNSPECIFIED = "LIMITED_BY_UNSPECIFIED",
27
+ USER_ID = "USER_ID",
28
+ API_KEY = "API_KEY",
29
+ }
30
+
25
31
  export type ModelPrice = {
26
32
  inputPerKTokens?: string
27
33
  outputPerKTokens?: string
28
34
  perImage?: string
29
35
  }
30
36
 
37
+ export type ModelPublibModelConfigRateLimit = {
38
+ limitedBy?: ModelPublibModelConfigRateLimitLimitedBy
39
+ limit?: string
40
+ duration?: string
41
+ }
42
+
43
+ export type ModelPublibModelConfig = {
44
+ rateLimit?: ModelPublibModelConfigRateLimit
45
+ }
46
+
31
47
  export type Model = {
32
48
  modelId?: string
33
49
  modelAvatar?: string
@@ -44,6 +60,7 @@ export type Model = {
44
60
  publicAccessModelName?: string
45
61
  publicModelPrice?: ModelPrice
46
62
  readme?: HydraCommonCommon.I18nName
63
+ publicModelConfig?: ModelPublibModelConfig
47
64
  }
48
65
 
49
66
  export type ListModelRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.2.0-dev-2",
3
+ "version": "v0.2.0-dev-4",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"