dyff-schema 0.36.7__py3-none-any.whl → 0.36.9__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 +48 -7
- dyff/schema/v0/r1/platform.py +6 -0
- dyff/schema/v0/r1/requests.py +15 -0
- {dyff_schema-0.36.7.dist-info → dyff_schema-0.36.9.dist-info}/METADATA +1 -1
- {dyff_schema-0.36.7.dist-info → dyff_schema-0.36.9.dist-info}/RECORD +10 -10
- {dyff_schema-0.36.7.dist-info → dyff_schema-0.36.9.dist-info}/WHEEL +0 -0
- {dyff_schema-0.36.7.dist-info → dyff_schema-0.36.9.dist-info}/licenses/LICENSE +0 -0
- {dyff_schema-0.36.7.dist-info → dyff_schema-0.36.9.dist-info}/licenses/NOTICE +0 -0
- {dyff_schema-0.36.7.dist-info → dyff_schema-0.36.9.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.9"
|
|
2
|
+
__version_tuple__ = version_tuple = (0, 36, 9)
|
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",
|
|
@@ -260,14 +263,13 @@ class ChallengeTaskRulesPatch(DyffSchemaBaseModel):
|
|
|
260
263
|
Fields that are not assigned explicitly remain unchanged.
|
|
261
264
|
"""
|
|
262
265
|
|
|
263
|
-
executionEnvironment:
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
description="Patch for the .rules.executionEnvironments field.",
|
|
267
|
-
)
|
|
266
|
+
executionEnvironment: ChallengeTaskRulesExecutionEnvironmentPatch = pydantic.Field(
|
|
267
|
+
default_factory=ChallengeTaskRulesExecutionEnvironmentPatch,
|
|
268
|
+
description="Patch for the .rules.executionEnvironments field.",
|
|
268
269
|
)
|
|
269
|
-
schedule:
|
|
270
|
-
|
|
270
|
+
schedule: ChallengeTaskRulesSchedulePatch = pydantic.Field(
|
|
271
|
+
default_factory=ChallengeTaskRulesSchedulePatch,
|
|
272
|
+
description="Patch for the .rules.schedule field.",
|
|
271
273
|
)
|
|
272
274
|
|
|
273
275
|
@field_serializer("executionEnvironment")
|
|
@@ -460,6 +462,40 @@ class EditFamilyMembers(Command):
|
|
|
460
462
|
# ----------------------------------------------------------------------------
|
|
461
463
|
|
|
462
464
|
|
|
465
|
+
class EditTeamAttributes(JsonMergePatchSemantics):
|
|
466
|
+
"""Attributes for the EditFamilyMembers command."""
|
|
467
|
+
|
|
468
|
+
members: dict[str, Optional[TeamMember]] = pydantic.Field(
|
|
469
|
+
default_factory=dict, description="The members of this team"
|
|
470
|
+
)
|
|
471
|
+
affiliations: dict[str, Optional[TeamAffiliation]] = pydantic.Field(
|
|
472
|
+
default_factory=dict,
|
|
473
|
+
description="The affiliations of the team. Team members state their"
|
|
474
|
+
" affiliations by referencing these entries by their keys.",
|
|
475
|
+
)
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
class EditTeamData(EntityIdentifier):
|
|
479
|
+
"""Payload data for the EditFamilyMembers command."""
|
|
480
|
+
|
|
481
|
+
attributes: EditTeamAttributes = pydantic.Field(
|
|
482
|
+
description="The command attributes"
|
|
483
|
+
)
|
|
484
|
+
|
|
485
|
+
@field_serializer("attributes")
|
|
486
|
+
def _serialize_attributes(self, attributes: EditTeamAttributes, _info):
|
|
487
|
+
return attributes.model_dump(mode=_info.mode)
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
class EditTeam(Command):
|
|
491
|
+
command: Literal["EditTeam"] = "EditTeam"
|
|
492
|
+
|
|
493
|
+
data: EditTeamData = pydantic.Field(description="The edit data.")
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
# ----------------------------------------------------------------------------
|
|
497
|
+
|
|
498
|
+
|
|
463
499
|
class ForgetEntity(Command):
|
|
464
500
|
"""Forget (permanently delete) an entity."""
|
|
465
501
|
|
|
@@ -546,9 +582,11 @@ DyffCommandType = Union[
|
|
|
546
582
|
CreateChallengeTeam,
|
|
547
583
|
CreateEntity,
|
|
548
584
|
EditChallengeContent,
|
|
585
|
+
EditChallengeTaskRules,
|
|
549
586
|
EditEntityDocumentation,
|
|
550
587
|
EditEntityLabels,
|
|
551
588
|
EditFamilyMembers,
|
|
589
|
+
EditTeam,
|
|
552
590
|
ForgetEntity,
|
|
553
591
|
RestoreEntity,
|
|
554
592
|
UpdateEntityStatus,
|
|
@@ -587,6 +625,9 @@ __all__ = [
|
|
|
587
625
|
"EditFamilyMembers",
|
|
588
626
|
"EditFamilyMembersAttributes",
|
|
589
627
|
"EditFamilyMembersData",
|
|
628
|
+
"EditTeam",
|
|
629
|
+
"EditTeamAttributes",
|
|
630
|
+
"EditTeamData",
|
|
590
631
|
"EntityIdentifier",
|
|
591
632
|
"FamilyIdentifier",
|
|
592
633
|
"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
|
|
|
@@ -486,6 +494,10 @@ class ScoreQueryRequest(DyffRequestDefaultValidators):
|
|
|
486
494
|
model: Optional[str] = pydantic.Field(default=None)
|
|
487
495
|
|
|
488
496
|
|
|
497
|
+
class TeamQueryRequest(DyffEntityQueryRequest):
|
|
498
|
+
challenge: Optional[str] = pydantic.Field(default=None)
|
|
499
|
+
|
|
500
|
+
|
|
489
501
|
class UseCaseQueryRequest(DyffEntityQueryRequest):
|
|
490
502
|
pass
|
|
491
503
|
|
|
@@ -498,6 +510,7 @@ __all__ = [
|
|
|
498
510
|
"ChallengeContentEditRequest",
|
|
499
511
|
"ChallengeCreateRequest",
|
|
500
512
|
"ChallengeTaskCreateRequest",
|
|
513
|
+
"ChallengeTaskRulesEditRequest",
|
|
501
514
|
"ChallengeTeamCreateRequest",
|
|
502
515
|
"ConcernCreateRequest",
|
|
503
516
|
"DyffEntityCreateRequest",
|
|
@@ -533,5 +546,7 @@ __all__ = [
|
|
|
533
546
|
"ReportQueryRequest",
|
|
534
547
|
"SafetyCaseQueryRequest",
|
|
535
548
|
"ScoreQueryRequest",
|
|
549
|
+
"TeamEditRequest",
|
|
550
|
+
"TeamQueryRequest",
|
|
536
551
|
"UseCaseQueryRequest",
|
|
537
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=JzAsHFO9l5I0QP8ezDd040g96DL3pO9ovsqfFUJplZU,80
|
|
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=qf31VkoRC9JQKHumpHduSwZttdUaPJlOvpHsSo-KXLI,20138
|
|
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.9.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
47
|
+
dyff_schema-0.36.9.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
|
|
48
|
+
dyff_schema-0.36.9.dist-info/METADATA,sha256=JVgnSMNBwADMAkFuh9Bz11vrhd9hFqfqM5TJUF_EpD4,3734
|
|
49
|
+
dyff_schema-0.36.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
50
|
+
dyff_schema-0.36.9.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
|
|
51
|
+
dyff_schema-0.36.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|