dyff-schema 0.36.8__py3-none-any.whl → 0.36.10__py3-none-any.whl
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.
Potentially problematic release.
This version of dyff-schema might be problematic. Click here for more details.
- dyff/schema/_version.py +2 -2
- dyff/schema/v0/r1/commands.py +60 -17
- dyff/schema/v0/r1/platform.py +6 -0
- dyff/schema/v0/r1/requests.py +10 -0
- {dyff_schema-0.36.8.dist-info → dyff_schema-0.36.10.dist-info}/METADATA +1 -1
- {dyff_schema-0.36.8.dist-info → dyff_schema-0.36.10.dist-info}/RECORD +10 -10
- {dyff_schema-0.36.8.dist-info → dyff_schema-0.36.10.dist-info}/WHEEL +0 -0
- {dyff_schema-0.36.8.dist-info → dyff_schema-0.36.10.dist-info}/licenses/LICENSE +0 -0
- {dyff_schema-0.36.8.dist-info → dyff_schema-0.36.10.dist-info}/licenses/NOTICE +0 -0
- {dyff_schema-0.36.8.dist-info → dyff_schema-0.36.10.dist-info}/top_level.txt +0 -0
dyff/schema/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = version = "0.36.
|
|
2
|
-
__version_tuple__ = version_tuple = (0, 36,
|
|
1
|
+
__version__ = version = "0.36.10"
|
|
2
|
+
__version_tuple__ = version_tuple = (0, 36, 10)
|
dyff/schema/v0/r1/commands.py
CHANGED
|
@@ -29,6 +29,8 @@ from .platform import (
|
|
|
29
29
|
Status,
|
|
30
30
|
TagNameType,
|
|
31
31
|
Team,
|
|
32
|
+
TeamAffiliation,
|
|
33
|
+
TeamMember,
|
|
32
34
|
body_maxlen,
|
|
33
35
|
summary_maxlen,
|
|
34
36
|
title_maxlen,
|
|
@@ -56,6 +58,7 @@ class Command(SchemaVersion, DyffSchemaBaseModel):
|
|
|
56
58
|
"EditEntityDocumentation",
|
|
57
59
|
"EditEntityLabels",
|
|
58
60
|
"EditFamilyMembers",
|
|
61
|
+
"EditTeam",
|
|
59
62
|
"ForgetEntity",
|
|
60
63
|
"RestoreEntity",
|
|
61
64
|
"UpdateEntityStatus",
|
|
@@ -215,9 +218,6 @@ class ChallengeTaskRulesExecutionEnvironmentPatch(JsonMergePatchSemantics):
|
|
|
215
218
|
choices: dict[str, Optional[ChallengeTaskExecutionEnvironment]] = pydantic.Field(
|
|
216
219
|
default_factory=dict, description="Execution environment choices."
|
|
217
220
|
)
|
|
218
|
-
default: Optional[str] = pydantic.Field(
|
|
219
|
-
default=None, description="The default execution environment."
|
|
220
|
-
)
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
class ChallengeTaskRulesSchedulePatch(JsonMergePatchSemantics):
|
|
@@ -254,20 +254,15 @@ class ChallengeTaskRulesSchedulePatch(JsonMergePatchSemantics):
|
|
|
254
254
|
|
|
255
255
|
|
|
256
256
|
class ChallengeTaskRulesPatch(DyffSchemaBaseModel):
|
|
257
|
-
"""
|
|
258
|
-
interpreted as a command to delete that field.
|
|
259
|
-
|
|
260
|
-
Fields that are not assigned explicitly remain unchanged.
|
|
261
|
-
"""
|
|
257
|
+
"""Edits to make to the different rules categories."""
|
|
262
258
|
|
|
263
|
-
executionEnvironment:
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
description="Patch for the .rules.executionEnvironments field.",
|
|
267
|
-
)
|
|
259
|
+
executionEnvironment: ChallengeTaskRulesExecutionEnvironmentPatch = pydantic.Field(
|
|
260
|
+
default_factory=ChallengeTaskRulesExecutionEnvironmentPatch,
|
|
261
|
+
description="Patch for the .rules.executionEnvironments field.",
|
|
268
262
|
)
|
|
269
|
-
schedule:
|
|
270
|
-
|
|
263
|
+
schedule: ChallengeTaskRulesSchedulePatch = pydantic.Field(
|
|
264
|
+
default_factory=ChallengeTaskRulesSchedulePatch,
|
|
265
|
+
description="Patch for the .rules.schedule field.",
|
|
271
266
|
)
|
|
272
267
|
|
|
273
268
|
@field_serializer("executionEnvironment")
|
|
@@ -287,10 +282,18 @@ class ChallengeTaskRulesPatch(DyffSchemaBaseModel):
|
|
|
287
282
|
return schedule.model_dump(mode=_info.mode)
|
|
288
283
|
|
|
289
284
|
|
|
285
|
+
class EditChallengeTaskRulesPatch(DyffSchemaBaseModel):
|
|
286
|
+
"""A Json Merge Patch for the rules of one task."""
|
|
287
|
+
|
|
288
|
+
rules: ChallengeTaskRulesPatch = pydantic.Field(
|
|
289
|
+
description="Edits to make to the task rules."
|
|
290
|
+
)
|
|
291
|
+
|
|
292
|
+
|
|
290
293
|
class EditChallengeTaskRulesAttributes(DyffSchemaBaseModel):
|
|
291
294
|
"""Attributes for the EditChallengeTaskRules command."""
|
|
292
295
|
|
|
293
|
-
|
|
296
|
+
tasks: dict[str, EditChallengeTaskRulesPatch] = pydantic.Field(
|
|
294
297
|
description="Edits to make to the task rules."
|
|
295
298
|
)
|
|
296
299
|
|
|
@@ -460,6 +463,40 @@ class EditFamilyMembers(Command):
|
|
|
460
463
|
# ----------------------------------------------------------------------------
|
|
461
464
|
|
|
462
465
|
|
|
466
|
+
class EditTeamAttributes(JsonMergePatchSemantics):
|
|
467
|
+
"""Attributes for the EditFamilyMembers command."""
|
|
468
|
+
|
|
469
|
+
members: dict[str, Optional[TeamMember]] = pydantic.Field(
|
|
470
|
+
default_factory=dict, description="The members of this team"
|
|
471
|
+
)
|
|
472
|
+
affiliations: dict[str, Optional[TeamAffiliation]] = pydantic.Field(
|
|
473
|
+
default_factory=dict,
|
|
474
|
+
description="The affiliations of the team. Team members state their"
|
|
475
|
+
" affiliations by referencing these entries by their keys.",
|
|
476
|
+
)
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
class EditTeamData(EntityIdentifier):
|
|
480
|
+
"""Payload data for the EditFamilyMembers command."""
|
|
481
|
+
|
|
482
|
+
attributes: EditTeamAttributes = pydantic.Field(
|
|
483
|
+
description="The command attributes"
|
|
484
|
+
)
|
|
485
|
+
|
|
486
|
+
@field_serializer("attributes")
|
|
487
|
+
def _serialize_attributes(self, attributes: EditTeamAttributes, _info):
|
|
488
|
+
return attributes.model_dump(mode=_info.mode)
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
class EditTeam(Command):
|
|
492
|
+
command: Literal["EditTeam"] = "EditTeam"
|
|
493
|
+
|
|
494
|
+
data: EditTeamData = pydantic.Field(description="The edit data.")
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
# ----------------------------------------------------------------------------
|
|
498
|
+
|
|
499
|
+
|
|
463
500
|
class ForgetEntity(Command):
|
|
464
501
|
"""Forget (permanently delete) an entity."""
|
|
465
502
|
|
|
@@ -546,9 +583,11 @@ DyffCommandType = Union[
|
|
|
546
583
|
CreateChallengeTeam,
|
|
547
584
|
CreateEntity,
|
|
548
585
|
EditChallengeContent,
|
|
586
|
+
EditChallengeTaskRules,
|
|
549
587
|
EditEntityDocumentation,
|
|
550
588
|
EditEntityLabels,
|
|
551
589
|
EditFamilyMembers,
|
|
590
|
+
EditTeam,
|
|
552
591
|
ForgetEntity,
|
|
553
592
|
RestoreEntity,
|
|
554
593
|
UpdateEntityStatus,
|
|
@@ -574,9 +613,10 @@ __all__ = [
|
|
|
574
613
|
"EditChallengeContentAttributes",
|
|
575
614
|
"EditChallengeContentData",
|
|
576
615
|
"EditChallengeContentPatch",
|
|
616
|
+
"EditChallengeTaskRules",
|
|
577
617
|
"EditChallengeTaskRulesAttributes",
|
|
578
618
|
"EditChallengeTaskRulesData",
|
|
579
|
-
"
|
|
619
|
+
"EditChallengeTaskRulesPatch",
|
|
580
620
|
"EditEntityDocumentation",
|
|
581
621
|
"EditEntityDocumentationAttributes",
|
|
582
622
|
"EditEntityDocumentationData",
|
|
@@ -587,6 +627,9 @@ __all__ = [
|
|
|
587
627
|
"EditFamilyMembers",
|
|
588
628
|
"EditFamilyMembersAttributes",
|
|
589
629
|
"EditFamilyMembersData",
|
|
630
|
+
"EditTeam",
|
|
631
|
+
"EditTeamAttributes",
|
|
632
|
+
"EditTeamData",
|
|
590
633
|
"EntityIdentifier",
|
|
591
634
|
"FamilyIdentifier",
|
|
592
635
|
"ForgetEntity",
|
dyff/schema/v0/r1/platform.py
CHANGED
|
@@ -2485,6 +2485,11 @@ class TeamAffiliation(DyffSchemaBaseModel):
|
|
|
2485
2485
|
url: Optional[pydantic.HttpUrl] = pydantic.Field(
|
|
2486
2486
|
default=None, description="The organization's Web page or similar."
|
|
2487
2487
|
)
|
|
2488
|
+
note: Optional[str] = pydantic.Field(
|
|
2489
|
+
default=None,
|
|
2490
|
+
description="A brief note giving additional information about the organization.",
|
|
2491
|
+
max_length=summary_maxlen(),
|
|
2492
|
+
)
|
|
2488
2493
|
|
|
2489
2494
|
|
|
2490
2495
|
class TeamBase(DyffSchemaBaseModel):
|
|
@@ -3101,6 +3106,7 @@ __all__ = [
|
|
|
3101
3106
|
"ChallengeSubmission",
|
|
3102
3107
|
"ChallengeTask",
|
|
3103
3108
|
"ChallengeTaskBase",
|
|
3109
|
+
"ChallengeTaskContent",
|
|
3104
3110
|
"ChallengeTaskExecutionEnvironment",
|
|
3105
3111
|
"ChallengeTaskExecutionEnvironmentChoices",
|
|
3106
3112
|
"ChallengeTaskRules",
|
dyff/schema/v0/r1/requests.py
CHANGED
|
@@ -310,6 +310,10 @@ class ChallengeContentEditRequest(DyffRequestBase, commands.EditChallengeContent
|
|
|
310
310
|
pass
|
|
311
311
|
|
|
312
312
|
|
|
313
|
+
class ChallengeTaskRulesEditRequest(DyffRequestBase, commands.ChallengeTaskRulesPatch):
|
|
314
|
+
pass
|
|
315
|
+
|
|
316
|
+
|
|
313
317
|
class DocumentationEditRequest(
|
|
314
318
|
DyffRequestBase, commands.EditEntityDocumentationAttributes
|
|
315
319
|
):
|
|
@@ -335,6 +339,10 @@ class LabelUpdateRequest(LabelsEditRequest):
|
|
|
335
339
|
"""
|
|
336
340
|
|
|
337
341
|
|
|
342
|
+
class TeamEditRequest(DyffRequestBase, commands.EditTeamAttributes):
|
|
343
|
+
pass
|
|
344
|
+
|
|
345
|
+
|
|
338
346
|
# ----------------------------------------------------------------------------
|
|
339
347
|
|
|
340
348
|
|
|
@@ -502,6 +510,7 @@ __all__ = [
|
|
|
502
510
|
"ChallengeContentEditRequest",
|
|
503
511
|
"ChallengeCreateRequest",
|
|
504
512
|
"ChallengeTaskCreateRequest",
|
|
513
|
+
"ChallengeTaskRulesEditRequest",
|
|
505
514
|
"ChallengeTeamCreateRequest",
|
|
506
515
|
"ConcernCreateRequest",
|
|
507
516
|
"DyffEntityCreateRequest",
|
|
@@ -537,6 +546,7 @@ __all__ = [
|
|
|
537
546
|
"ReportQueryRequest",
|
|
538
547
|
"SafetyCaseQueryRequest",
|
|
539
548
|
"ScoreQueryRequest",
|
|
549
|
+
"TeamEditRequest",
|
|
540
550
|
"TeamQueryRequest",
|
|
541
551
|
"UseCaseQueryRequest",
|
|
542
552
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
dyff/schema/__init__.py,sha256=w7OWDFuyGKd6xt_yllNtKzHahPgywrfU4Ue02psYaMA,2244
|
|
2
|
-
dyff/schema/_version.py,sha256=
|
|
2
|
+
dyff/schema/_version.py,sha256=D_gwlkLPf6qLvdN0hk8VV2OKAzSW4v5rqK3XtT_BWiU,82
|
|
3
3
|
dyff/schema/adapters.py,sha256=YMTHv_2VlLGFp-Kqwa6H51hjffHmk8gXjZilHysIF5Q,123
|
|
4
4
|
dyff/schema/annotations.py,sha256=nE6Jk1PLqlShj8uqjE_EzZC9zYnTDW5AVtQcjysiK8M,10018
|
|
5
5
|
dyff/schema/base.py,sha256=jvaNtsSZyFfsdUZTcY_U-yfLY5_GyrMxSXhON2R9XR0,119
|
|
@@ -27,10 +27,10 @@ dyff/schema/v0/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
|
27
27
|
dyff/schema/v0/r1/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
28
28
|
dyff/schema/v0/r1/adapters.py,sha256=hpwCSW8lkMkUKCLe0zaMUDu-VS_caSxJvPsECEi_XRA,33069
|
|
29
29
|
dyff/schema/v0/r1/base.py,sha256=1VJXVLKldOq3aH2HdVgxXXk4DJTZEIiaTa4GzMKzziU,20228
|
|
30
|
-
dyff/schema/v0/r1/commands.py,sha256=
|
|
30
|
+
dyff/schema/v0/r1/commands.py,sha256=jqbEvDRLpcVGWXqlbniuSKg3UIjlrpKt6_0hiwUpPfQ,20153
|
|
31
31
|
dyff/schema/v0/r1/oci.py,sha256=YjHDVBJ2IIxqijll70OK6pM-qT6pq8tvU7D3YB9vGM0,6700
|
|
32
|
-
dyff/schema/v0/r1/platform.py,sha256=
|
|
33
|
-
dyff/schema/v0/r1/requests.py,sha256=
|
|
32
|
+
dyff/schema/v0/r1/platform.py,sha256=_ZpRyTAUtBDoG2neD6o5nwFT0AUvKAc3WH5L-V9vOFI,104027
|
|
33
|
+
dyff/schema/v0/r1/requests.py,sha256=H_psyQUyThRI8XGG1PAH4yTngRCdIpOAbtxtirW0tw4,19085
|
|
34
34
|
dyff/schema/v0/r1/responses.py,sha256=nxy7FPtfw2B_bljz5UGGuSE79HTkDQxKH56AJVmd4Qo,1287
|
|
35
35
|
dyff/schema/v0/r1/test.py,sha256=X6dUyVd5svcPCI-PBMOAqEfK9jv3bRDvkQTJzwS96c0,10720
|
|
36
36
|
dyff/schema/v0/r1/version.py,sha256=NONebgcv5Thsw_ymud6PacZdGjV6ndBrmLnap-obcpo,428
|
|
@@ -43,9 +43,9 @@ dyff/schema/v0/r1/dataset/text.py,sha256=MYG5seGODDryRSCy-g0Unh5dD0HCytmZ3FeElC-
|
|
|
43
43
|
dyff/schema/v0/r1/dataset/vision.py,sha256=tJFF4dkhHX0UXTj1sPW-G22xTSI40gbYO465FuvmvAU,443
|
|
44
44
|
dyff/schema/v0/r1/io/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
45
45
|
dyff/schema/v0/r1/io/vllm.py,sha256=vWyLg-susbg0JDfv6VExBpgFdU2GHP2a14ChOdbckvs,5321
|
|
46
|
-
dyff_schema-0.36.
|
|
47
|
-
dyff_schema-0.36.
|
|
48
|
-
dyff_schema-0.36.
|
|
49
|
-
dyff_schema-0.36.
|
|
50
|
-
dyff_schema-0.36.
|
|
51
|
-
dyff_schema-0.36.
|
|
46
|
+
dyff_schema-0.36.10.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
47
|
+
dyff_schema-0.36.10.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
|
|
48
|
+
dyff_schema-0.36.10.dist-info/METADATA,sha256=Kpp8nCb9bQuU1rbKWvuHosX-MOyfMfucMyb45-jkGgc,3735
|
|
49
|
+
dyff_schema-0.36.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
50
|
+
dyff_schema-0.36.10.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
|
|
51
|
+
dyff_schema-0.36.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|