@daocloud-proto/hydra 0.17.0-rc1-dev-19 → 0.17.0-rc1-dev-21
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.
|
@@ -28,6 +28,12 @@ export enum RateLimitBaseOn {
|
|
|
28
28
|
RATE_LIMIT_BASE_ON_WS = "RATE_LIMIT_BASE_ON_WS",
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
export enum RateLimitUnitType {
|
|
32
|
+
RATE_LIMIT_UNIT_TYPE_UNSPECIFIED = "RATE_LIMIT_UNIT_TYPE_UNSPECIFIED",
|
|
33
|
+
RATE_LIMIT_UNIT_TYPE_REQUESTS = "RATE_LIMIT_UNIT_TYPE_REQUESTS",
|
|
34
|
+
RATE_LIMIT_UNIT_TYPE_TOTAL_TOKENS = "RATE_LIMIT_UNIT_TYPE_TOTAL_TOKENS",
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
export enum MAASBackendStatus {
|
|
32
38
|
MAAS_BACKEND_STATUS_UNSPECIFIED = "MAAS_BACKEND_STATUS_UNSPECIFIED",
|
|
33
39
|
MAAS_BACKEND_STATUS_HEALTHY = "MAAS_BACKEND_STATUS_HEALTHY",
|
|
@@ -101,6 +107,7 @@ export type RateLimitRule = {
|
|
|
101
107
|
duration?: number
|
|
102
108
|
workspace?: number
|
|
103
109
|
apiKey?: string
|
|
110
|
+
unitType?: RateLimitUnitType
|
|
104
111
|
}
|
|
105
112
|
|
|
106
113
|
export type MAASCapabilityRoute = {
|