@daocloud-proto/hydra 0.16.0-dev-10 → 0.16.0-dev-11

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 MAASBackendStatus {
32
+ MAAS_BACKEND_STATUS_UNSPECIFIED = "MAAS_BACKEND_STATUS_UNSPECIFIED",
33
+ MAAS_BACKEND_STATUS_HEALTHY = "MAAS_BACKEND_STATUS_HEALTHY",
34
+ MAAS_BACKEND_STATUS_FAILED = "MAAS_BACKEND_STATUS_FAILED",
35
+ }
36
+
31
37
  export enum MAASModelGatewayStatus {
32
38
  GATEWAY_STATUS_UNSPECIFIED = "GATEWAY_STATUS_UNSPECIFIED",
33
39
  GATEWAY_STATUS_HEALTHY = "GATEWAY_STATUS_HEALTHY",
@@ -53,6 +59,7 @@ export type CreateMAASModelRequest = {
53
59
  loadBalanceConfig?: LoadBalanceConfig
54
60
  tokenWeight?: string
55
61
  workspaceVisibility?: MAASWorkspaceVisibility
62
+ capabilityRoutes?: MAASCapabilityRoute[]
56
63
  }
57
64
 
58
65
  export type MAASModel = {
@@ -66,6 +73,7 @@ export type MAASModel = {
66
73
  enabled?: boolean
67
74
  tokenWeight?: string
68
75
  workspaceVisibility?: MAASWorkspaceVisibility
76
+ capabilityRoutes?: MAASCapabilityRoute[]
69
77
  }
70
78
 
71
79
  export type LoadBalanceConfig = {
@@ -95,6 +103,19 @@ export type RateLimitRule = {
95
103
  apiKey?: string
96
104
  }
97
105
 
106
+ export type MAASCapabilityRoute = {
107
+ capabilities?: string[]
108
+ upstreams?: MAASCapabilityUpstream[]
109
+ }
110
+
111
+ export type MAASCapabilityUpstream = {
112
+ modelId?: string
113
+ baseUrl?: string
114
+ capabilityPaths?: {[key: string]: string}
115
+ apiKey?: string
116
+ status?: MAASBackendStatus
117
+ }
118
+
98
119
  export type UpstreamModel = {
99
120
  modelId?: string
100
121
  apiKey?: string
@@ -118,6 +139,7 @@ export type UpdateMAASModelRequest = {
118
139
  upstreamModels?: UpstreamModel[]
119
140
  tokenWeight?: string
120
141
  workspaceVisibility?: MAASWorkspaceVisibility
142
+ capabilityRoutes?: MAASCapabilityRoute[]
121
143
  }
122
144
 
123
145
  export type UpdateMAASModelStatusRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.16.0-dev-10",
3
+ "version": "v0.16.0-dev-11",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"