File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 61626162 ],
61636163 "description" : " For categorical-type project scores, defines a single category"
61646164 },
6165+ "ProjectScoreCondition" : {
6166+ "type" : [
6167+ " object" ,
6168+ " null"
6169+ ],
6170+ "properties" : {
6171+ "when" : {
6172+ "type" : " object" ,
6173+ "properties" : {
6174+ "clauses" : {
6175+ "type" : " array" ,
6176+ "items" : {
6177+ "type" : " string"
6178+ }
6179+ }
6180+ },
6181+ "required" : [
6182+ " clauses"
6183+ ]
6184+ },
6185+ "behavior" : {
6186+ "type" : " string" ,
6187+ "enum" : [
6188+ " hidden"
6189+ ],
6190+ "default" : " hidden"
6191+ }
6192+ },
6193+ "required" : [
6194+ " when"
6195+ ]
6196+ },
61656197 "ProjectScoreConfig" : {
61666198 "type" : [
61676199 " object" ,
62086240 },
62096241 "online" : {
62106242 "$ref" : " #/components/schemas/OnlineScoreConfig"
6243+ },
6244+ "condition" : {
6245+ "$ref" : " #/components/schemas/ProjectScoreCondition"
62116246 }
62126247 }
62136248 },
Original file line number Diff line number Diff line change @@ -1844,6 +1844,15 @@ class ProjectScoreCategory(TypedDict):
18441844 """
18451845
18461846
1847+ class ProjectScoreConditionWhen (TypedDict ):
1848+ clauses : Sequence [str ]
1849+
1850+
1851+ class ProjectScoreCondition (TypedDict ):
1852+ when : ProjectScoreConditionWhen
1853+ behavior : NotRequired [Literal ['hidden' ] | None ]
1854+
1855+
18471856class ProjectScoreConfigVisibility (TypedDict ):
18481857 users : NotRequired [Sequence [str ] | None ]
18491858 groups : NotRequired [Sequence [str ] | None ]
@@ -3360,6 +3369,7 @@ class ProjectScoreConfig(TypedDict):
33603369 destination : NotRequired [str | None ]
33613370 visibility : NotRequired [ProjectScoreConfigVisibility | None ]
33623371 online : NotRequired [OnlineScoreConfig | None ]
3372+ condition : NotRequired [ProjectScoreCondition | None ]
33633373
33643374
33653375class PromptBlockDataPromptBlockData (TypedDict ):
Original file line number Diff line number Diff line change 1- """Auto-generated file (content hash e03e600b282a3442 ) -- do not modify"""
1+ """Auto-generated file (content hash 532ae559f06cabd6 ) -- do not modify"""
22
33from ._generated_types import (
44 Acl ,
7171 ProjectScore ,
7272 ProjectScoreCategories ,
7373 ProjectScoreCategory ,
74+ ProjectScoreCondition ,
7475 ProjectScoreConfig ,
7576 ProjectScoreType ,
7677 ProjectSettings ,
189190 "ProjectScore" ,
190191 "ProjectScoreCategories" ,
191192 "ProjectScoreCategory" ,
193+ "ProjectScoreCondition" ,
192194 "ProjectScoreConfig" ,
193195 "ProjectScoreType" ,
194196 "ProjectSettings" ,
You can’t perform that action at this time.
0 commit comments