dyff-schema 0.36.0__py3-none-any.whl → 0.36.1__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.
dyff/schema/_version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = version = "0.36.0"
2
- __version_tuple__ = version_tuple = (0, 36, 0)
1
+ __version__ = version = "0.36.1"
2
+ __version_tuple__ = version_tuple = (0, 36, 1)
@@ -101,7 +101,7 @@ class CreateChallengeTask(Command):
101
101
  # ----------------------------------------------------------------------------
102
102
 
103
103
 
104
- class EditChallengeContentPagePatch(JsonMergePatchSemantics):
104
+ class ChallengeContentPagePatch(JsonMergePatchSemantics):
105
105
  """Same properties as ChallengeContentPage.
106
106
 
107
107
  Fields that are not assigned explicitly remain unchanged.
@@ -129,18 +129,28 @@ class EditChallengeContentPagePatch(JsonMergePatchSemantics):
129
129
  )
130
130
 
131
131
 
132
- class EditChallengeContentPatch(DyffSchemaBaseModel):
133
- page: EditChallengeContentPagePatch
132
+ class ChallengeContentPatch(DyffSchemaBaseModel):
133
+ page: ChallengeContentPagePatch = pydantic.Field(
134
+ default_factory=ChallengeContentPagePatch,
135
+ description="Edits to make to the page portion of the content.",
136
+ )
134
137
 
135
138
  @field_serializer("page")
136
- def _serialize_page(self, page: EditChallengeContentPagePatch, _info):
139
+ def _serialize_page(self, page: ChallengeContentPagePatch, _info):
137
140
  return page.model_dump(mode=_info.mode)
138
141
 
139
142
 
143
+ class EditChallengeContentPatch(DyffSchemaBaseModel):
144
+ content: Optional[ChallengeContentPatch] = pydantic.Field(
145
+ default=None,
146
+ description="Edits to make to the content of the challenge-related resource.",
147
+ )
148
+
149
+
140
150
  class EditChallengeContentAttributes(DyffSchemaBaseModel):
141
151
  """Attributes for the EditChallengePageContent command."""
142
152
 
143
- challenge: Optional[EditChallengeContentPatch] = pydantic.Field(
153
+ content: Optional[EditChallengeContentPatch] = pydantic.Field(
144
154
  default=None,
145
155
  description="Edits to make to the content of the main challenge page.",
146
156
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dyff-schema
3
- Version: 0.36.0
3
+ Version: 0.36.1
4
4
  Summary: Data models for the Dyff AI auditing platform.
5
5
  Author-email: Digital Safety Research Institute <contact@dsri.org>
6
6
  License: Apache-2.0
@@ -1,5 +1,5 @@
1
1
  dyff/schema/__init__.py,sha256=w7OWDFuyGKd6xt_yllNtKzHahPgywrfU4Ue02psYaMA,2244
2
- dyff/schema/_version.py,sha256=WugzP-ohXoqseZsih5K8n5URp30AcEarRZlsq9obhyE,80
2
+ dyff/schema/_version.py,sha256=vVDHblzIyTW6L_Z-fQvZZeCKOW_RIJ549C3uSHpLusI,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,7 +27,7 @@ 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=mFKuPtRrk3Zr7Ce2snmqIG_vGIPCv-RTiXDo6BLILTU,17485
30
+ dyff/schema/v0/r1/commands.py,sha256=1RoqpiIKrUEwqLN5pXxcTyQkHdH6zE5slxOyNwEnjnc,17849
31
31
  dyff/schema/v0/r1/oci.py,sha256=YjHDVBJ2IIxqijll70OK6pM-qT6pq8tvU7D3YB9vGM0,6700
32
32
  dyff/schema/v0/r1/platform.py,sha256=UVDc4loKNQIw0J6PD_aDSGhxQLdorwz8lXwikhf-ORo,102071
33
33
  dyff/schema/v0/r1/requests.py,sha256=v9t8wg6ZYGCPp05HFtOnw093nCD9ED_lLOK__4Z2d4s,18584
@@ -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.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
47
- dyff_schema-0.36.0.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
48
- dyff_schema-0.36.0.dist-info/METADATA,sha256=kinDhGaP-46BDtS4QXZ6xFLgsCLhLjy66JnqDa3zdfk,3734
49
- dyff_schema-0.36.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
- dyff_schema-0.36.0.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
51
- dyff_schema-0.36.0.dist-info/RECORD,,
46
+ dyff_schema-0.36.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
47
+ dyff_schema-0.36.1.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
48
+ dyff_schema-0.36.1.dist-info/METADATA,sha256=vq9GEWGgS1ZGu2V1d3G6OHJEujnz65Apj8phUDKXlwo,3734
49
+ dyff_schema-0.36.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
+ dyff_schema-0.36.1.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
51
+ dyff_schema-0.36.1.dist-info/RECORD,,