@@ -189,6 +189,10 @@ const zBriaMainModelFieldType = zFieldTypeBase.extend({
189
189
name : z . literal ( 'BriaMainModelField' ) ,
190
190
originalType : zStatelessFieldType . optional ( ) ,
191
191
} ) ;
192
+ const zBriaControlNetModelFieldType = zFieldTypeBase . extend ( {
193
+ name : z . literal ( 'BriaControlNetModelField' ) ,
194
+ originalType : zStatelessFieldType . optional ( ) ,
195
+ } ) ;
192
196
const zSDXLRefinerModelFieldType = zFieldTypeBase . extend ( {
193
197
name : z . literal ( 'SDXLRefinerModelField' ) ,
194
198
originalType : zStatelessFieldType . optional ( ) ,
@@ -330,6 +334,7 @@ const zStatefulFieldType = z.union([
330
334
zStringGeneratorFieldType ,
331
335
zImageGeneratorFieldType ,
332
336
zBriaMainModelFieldType ,
337
+ zBriaControlNetModelFieldType ,
333
338
] ) ;
334
339
export type StatefulFieldType = z . infer < typeof zStatefulFieldType > ;
335
340
const statefulFieldTypeNames = zStatefulFieldType . options . map ( ( o ) => o . shape . name . value ) ;
@@ -347,6 +352,7 @@ const modelFieldTypeNames = [
347
352
zCogView4MainModelFieldType . shape . name . value ,
348
353
zFluxMainModelFieldType . shape . name . value ,
349
354
zBriaMainModelFieldType . shape . name . value ,
355
+ zBriaControlNetModelFieldType . shape . name . value ,
350
356
zSDXLRefinerModelFieldType . shape . name . value ,
351
357
zVAEModelFieldType . shape . name . value ,
352
358
zLoRAModelFieldType . shape . name . value ,
@@ -914,6 +920,26 @@ export const isBriaMainModelFieldInputTemplate =
914
920
buildTemplateTypeGuard < BriaMainModelFieldInputTemplate > ( 'BriaMainModelField' ) ;
915
921
// #endregion
916
922
923
+ // #region BriaControlNetModelField
924
+ const zBriaControlNetModelFieldValue = zMainModelFieldValue ; // TODO: Narrow to SDXL models only.
925
+ const zBriaControlNetModelFieldInputInstance = zFieldInputInstanceBase . extend ( {
926
+ value : zBriaControlNetModelFieldValue ,
927
+ } ) ;
928
+ const zBriaControlNetModelFieldInputTemplate = zFieldInputTemplateBase . extend ( {
929
+ type : zBriaControlNetModelFieldType ,
930
+ originalType : zFieldType . optional ( ) ,
931
+ default : zBriaControlNetModelFieldValue ,
932
+ } ) ;
933
+ const zBriaControlNetModelFieldOutputTemplate = zFieldOutputTemplateBase . extend ( {
934
+ type : zBriaControlNetModelFieldType ,
935
+ } ) ;
936
+ export type BriaControlNetModelFieldInputInstance = z . infer < typeof zBriaControlNetModelFieldInputInstance > ;
937
+ export type BriaControlNetModelFieldInputTemplate = z . infer < typeof zBriaControlNetModelFieldInputTemplate > ;
938
+ export const isBriaControlNetModelFieldInputInstance = buildInstanceTypeGuard ( zBriaControlNetModelFieldInputInstance ) ;
939
+ export const isBriaControlNetModelFieldInputTemplate =
940
+ buildTemplateTypeGuard < BriaControlNetModelFieldInputTemplate > ( 'BriaControlNetModelField' ) ;
941
+ // #endregion
942
+
917
943
// #region SDXLRefinerModelField
918
944
/** @alias */ // tells knip to ignore this duplicate export
919
945
export const zSDXLRefinerModelFieldValue = zMainModelFieldValue ; // TODO: Narrow to SDXL Refiner models only.
@@ -1914,6 +1940,7 @@ export const zStatefulFieldValue = z.union([
1914
1940
zSDXLMainModelFieldValue ,
1915
1941
zFluxMainModelFieldValue ,
1916
1942
zBriaMainModelFieldValue ,
1943
+ zBriaControlNetModelFieldValue ,
1917
1944
zSD3MainModelFieldValue ,
1918
1945
zCogView4MainModelFieldValue ,
1919
1946
zSDXLRefinerModelFieldValue ,
@@ -1966,6 +1993,7 @@ const zStatefulFieldInputInstance = z.union([
1966
1993
zMainModelFieldInputInstance ,
1967
1994
zFluxMainModelFieldInputInstance ,
1968
1995
zBriaMainModelFieldInputInstance ,
1996
+ zBriaControlNetModelFieldInputInstance ,
1969
1997
zSD3MainModelFieldInputInstance ,
1970
1998
zCogView4MainModelFieldInputInstance ,
1971
1999
zSDXLMainModelFieldInputInstance ,
@@ -2009,6 +2037,7 @@ const zStatefulFieldInputTemplate = z.union([
2009
2037
zMainModelFieldInputTemplate ,
2010
2038
zFluxMainModelFieldInputTemplate ,
2011
2039
zBriaMainModelFieldInputTemplate ,
2040
+ zBriaControlNetModelFieldInputTemplate ,
2012
2041
zSD3MainModelFieldInputTemplate ,
2013
2042
zCogView4MainModelFieldInputTemplate ,
2014
2043
zSDXLMainModelFieldInputTemplate ,
@@ -2062,6 +2091,7 @@ const zStatefulFieldOutputTemplate = z.union([
2062
2091
zMainModelFieldOutputTemplate ,
2063
2092
zFluxMainModelFieldOutputTemplate ,
2064
2093
zBriaMainModelFieldOutputTemplate ,
2094
+ zBriaControlNetModelFieldOutputTemplate ,
2065
2095
zSD3MainModelFieldOutputTemplate ,
2066
2096
zCogView4MainModelFieldOutputTemplate ,
2067
2097
zSDXLMainModelFieldOutputTemplate ,
0 commit comments