@daocloud-proto/hydra 0.2.0-dev-3 → 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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.2.0-dev-3",
3
+ "version": "v0.2.0-dev-4",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"