@@ -35,11 +35,11 @@ export type Alert = {
35
35
| {
36
36
[ key : string ] : unknown
37
37
}
38
- | null ;
39
- trigger_type : string ;
40
- trigger_category : AlertSeverity ;
41
- timestamp : string ;
42
- } ;
38
+ | null
39
+ trigger_type : string
40
+ trigger_category : AlertSeverity
41
+ timestamp : string
42
+ }
43
43
44
44
/**
45
45
* Represents an alert with it's respective conversation.
@@ -60,8 +60,8 @@ export type AlertConversation = {
60
60
}
61
61
62
62
export enum AlertSeverity {
63
- INFO = " info" ,
64
- CRITICAL = " critical" ,
63
+ INFO = ' info' ,
64
+ CRITICAL = ' critical' ,
65
65
}
66
66
67
67
/**
@@ -111,6 +111,7 @@ export type Conversation = {
111
111
112
112
export type CreateOrRenameWorkspaceRequest = {
113
113
name : string
114
+ config ?: WorkspaceConfig | null
114
115
rename_to ?: string | null
115
116
}
116
117
@@ -145,15 +146,16 @@ export type ModelByProvider = {
145
146
* Represents the different types of matchers we support.
146
147
*/
147
148
export enum MuxMatcherType {
148
- CATCH_ALL = " catch_all" ,
149
- FILENAME_MATCH = " filename_match" ,
150
- REQUEST_TYPE_MATCH = " request_type_match" ,
149
+ CATCH_ALL = ' catch_all' ,
150
+ FILENAME_MATCH = ' filename_match' ,
151
+ REQUEST_TYPE_MATCH = ' request_type_match' ,
151
152
}
152
153
153
154
/**
154
155
* Represents a mux rule for a provider.
155
156
*/
156
157
export type MuxRule = {
158
+ provider_name ?: string | null
157
159
provider_id : string
158
160
model : string
159
161
matcher_type : MuxMatcherType
@@ -251,6 +253,20 @@ export type Workspace = {
251
253
is_active : boolean
252
254
}
253
255
256
+ export type WorkspaceConfig = {
257
+ system_prompt : string
258
+ muxing_rules : Array < MuxRule >
259
+ }
260
+
261
+ /**
262
+ * Returns a workspace ID with model name
263
+ */
264
+ export type WorkspaceWithModel = {
265
+ id : string
266
+ name : string
267
+ provider_model_name : string
268
+ }
269
+
254
270
export type HealthCheckHealthGetResponse = unknown
255
271
256
272
export type HealthCheckHealthGetError = unknown
@@ -462,6 +478,16 @@ export type V1SetWorkspaceMuxesResponse = void
462
478
463
479
export type V1SetWorkspaceMuxesError = HTTPValidationError
464
480
481
+ export type V1ListWorkspacesByProviderData = {
482
+ path : {
483
+ provider_id : string
484
+ }
485
+ }
486
+
487
+ export type V1ListWorkspacesByProviderResponse = Array < WorkspaceWithModel >
488
+
489
+ export type V1ListWorkspacesByProviderError = HTTPValidationError
490
+
465
491
export type V1StreamSseResponse = unknown
466
492
467
493
export type V1StreamSseError = unknown
0 commit comments