dyff-schema 0.36.1__tar.gz → 0.36.3__tar.gz

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.

Files changed (68) hide show
  1. {dyff_schema-0.36.1/dyff_schema.egg-info → dyff_schema-0.36.3}/PKG-INFO +1 -1
  2. dyff_schema-0.36.3/dyff/schema/_version.py +2 -0
  3. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/commands.py +20 -20
  4. {dyff_schema-0.36.1 → dyff_schema-0.36.3/dyff_schema.egg-info}/PKG-INFO +1 -1
  5. dyff_schema-0.36.1/dyff/schema/_version.py +0 -2
  6. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/.gitignore +0 -0
  7. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/.gitlab-ci.yml +0 -0
  8. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/.idea/dyff-schema.iml +0 -0
  9. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/.licenserc.yaml +0 -0
  10. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/.pre-commit-config.yaml +0 -0
  11. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/.prettierignore +0 -0
  12. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/.secrets.baseline +0 -0
  13. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/CODE_OF_CONDUCT.md +0 -0
  14. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/LICENSE +0 -0
  15. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/NOTICE +0 -0
  16. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/README.md +0 -0
  17. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/__init__.py +0 -0
  18. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/adapters.py +0 -0
  19. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/annotations.py +0 -0
  20. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/base.py +0 -0
  21. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/commands.py +0 -0
  22. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/copydoc.py +0 -0
  23. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/dataset/__init__.py +0 -0
  24. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/dataset/arrow.py +0 -0
  25. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/dataset/binary.py +0 -0
  26. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/dataset/classification.py +0 -0
  27. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/dataset/embedding.py +0 -0
  28. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/dataset/text.py +0 -0
  29. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/dataset/vision.py +0 -0
  30. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/errors.py +0 -0
  31. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/ids.py +0 -0
  32. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/io/__init__.py +0 -0
  33. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/io/vllm.py +0 -0
  34. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/platform.py +0 -0
  35. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/py.typed +0 -0
  36. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/quantity.py +0 -0
  37. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/requests.py +0 -0
  38. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/responses.py +0 -0
  39. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/test.py +0 -0
  40. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/__init__.py +0 -0
  41. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/__init__.py +0 -0
  42. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/adapters.py +0 -0
  43. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/base.py +0 -0
  44. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
  45. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
  46. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/dataset/binary.py +0 -0
  47. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/dataset/classification.py +0 -0
  48. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
  49. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/dataset/text.py +0 -0
  50. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/dataset/vision.py +0 -0
  51. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/io/__init__.py +0 -0
  52. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/io/vllm.py +0 -0
  53. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/oci.py +0 -0
  54. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/platform.py +0 -0
  55. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/requests.py +0 -0
  56. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/responses.py +0 -0
  57. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/test.py +0 -0
  58. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/v0/r1/version.py +0 -0
  59. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff/schema/version.py +0 -0
  60. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff_schema.egg-info/SOURCES.txt +0 -0
  61. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff_schema.egg-info/dependency_links.txt +0 -0
  62. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff_schema.egg-info/requires.txt +0 -0
  63. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/dyff_schema.egg-info/top_level.txt +0 -0
  64. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/makefile +0 -0
  65. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/pyproject.toml +0 -0
  66. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/setup.cfg +0 -0
  67. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/tests/test_adapters.py +0 -0
  68. {dyff_schema-0.36.1 → dyff_schema-0.36.3}/tests/test_import.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dyff-schema
3
- Version: 0.36.1
3
+ Version: 0.36.3
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
@@ -0,0 +1,2 @@
1
+ __version__ = version = "0.36.3"
2
+ __version_tuple__ = version_tuple = (0, 36, 3)
@@ -147,13 +147,8 @@ class EditChallengeContentPatch(DyffSchemaBaseModel):
147
147
  )
148
148
 
149
149
 
150
- class EditChallengeContentAttributes(DyffSchemaBaseModel):
151
- """Attributes for the EditChallengePageContent command."""
152
-
153
- content: Optional[EditChallengeContentPatch] = pydantic.Field(
154
- default=None,
155
- description="Edits to make to the content of the main challenge page.",
156
- )
150
+ class EditChallengeContentAttributes(EditChallengeContentPatch):
151
+ """Attributes for the EditChallengeContent command."""
157
152
 
158
153
  tasks: Optional[dict[str, EditChallengeContentPatch]] = pydantic.Field(
159
154
  default=None, description="Edits to make to the content of the challenge tasks."
@@ -161,7 +156,7 @@ class EditChallengeContentAttributes(DyffSchemaBaseModel):
161
156
 
162
157
 
163
158
  class EditChallengeContentData(EntityIdentifier):
164
- """Payload data for the EditChallengePageContent command."""
159
+ """Payload data for the EditChallengeContent command."""
165
160
 
166
161
  attributes: EditChallengeContentAttributes = pydantic.Field(
167
162
  description="The command attributes"
@@ -183,7 +178,7 @@ class EditChallengeContent(Command):
183
178
  # ----------------------------------------------------------------------------
184
179
 
185
180
 
186
- class EditChallengeTaskRulesExecutionEnvironmentChoices(JsonMergePatchSemantics):
181
+ class ChallengeTaskRulesExecutionEnvironmentPatch(JsonMergePatchSemantics):
187
182
  """Same properties as ChallengeTaskExecutionEnvironmentChocies, but assigning None
188
183
  to a field is interpreted as a command to delete that field.
189
184
 
@@ -198,7 +193,7 @@ class EditChallengeTaskRulesExecutionEnvironmentChoices(JsonMergePatchSemantics)
198
193
  )
199
194
 
200
195
 
201
- class EditChallengeTaskRulesSchedule(JsonMergePatchSemantics):
196
+ class ChallengeTaskRulesSchedulePatch(JsonMergePatchSemantics):
202
197
  """Same properties as ChallengeTaskSchedule, but assigning None to a field is
203
198
  interpreted as a command to delete that field.
204
199
 
@@ -231,26 +226,27 @@ class EditChallengeTaskRulesSchedule(JsonMergePatchSemantics):
231
226
  )
232
227
 
233
228
 
234
- class EditChallengeTaskRulesPatch(DyffSchemaBaseModel):
229
+ class ChallengeTaskRulesPatch(DyffSchemaBaseModel):
235
230
  """Same properties as ChallengeTaskRules, but assigning None to a field is
236
231
  interpreted as a command to delete that field.
237
232
 
238
233
  Fields that are not assigned explicitly remain unchanged.
239
234
  """
240
235
 
241
- executionEnvironment: Optional[
242
- EditChallengeTaskRulesExecutionEnvironmentChoices
243
- ] = pydantic.Field(
244
- default=None, description="Patch for the .rules.executionEnvironments field."
236
+ executionEnvironment: Optional[ChallengeTaskRulesExecutionEnvironmentPatch] = (
237
+ pydantic.Field(
238
+ default=None,
239
+ description="Patch for the .rules.executionEnvironments field.",
240
+ )
245
241
  )
246
- schedule: Optional[EditChallengeTaskRulesSchedule] = pydantic.Field(
242
+ schedule: Optional[ChallengeTaskRulesSchedulePatch] = pydantic.Field(
247
243
  default=None, description="Patch for the .rules.schedule field."
248
244
  )
249
245
 
250
246
  @field_serializer("executionEnvironment")
251
247
  def _serialize_executionEnvironment(
252
248
  self,
253
- executionEnvironment: EditChallengeTaskRulesExecutionEnvironmentChoices,
249
+ executionEnvironment: ChallengeTaskRulesExecutionEnvironmentPatch,
254
250
  _info,
255
251
  ):
256
252
  return executionEnvironment.model_dump(mode=_info.mode)
@@ -258,7 +254,7 @@ class EditChallengeTaskRulesPatch(DyffSchemaBaseModel):
258
254
  @field_serializer("schedule")
259
255
  def _serialize_schedule(
260
256
  self,
261
- schedule: EditChallengeTaskRulesSchedule,
257
+ schedule: ChallengeTaskRulesSchedulePatch,
262
258
  _info,
263
259
  ):
264
260
  return schedule.model_dump(mode=_info.mode)
@@ -267,7 +263,7 @@ class EditChallengeTaskRulesPatch(DyffSchemaBaseModel):
267
263
  class EditChallengeTaskRulesAttributes(DyffSchemaBaseModel):
268
264
  """Attributes for the EditChallengeTaskRules command."""
269
265
 
270
- rules: EditChallengeTaskRulesPatch = pydantic.Field(
266
+ rules: ChallengeTaskRulesPatch = pydantic.Field(
271
267
  description="Edits to make to the task rules."
272
268
  )
273
269
 
@@ -532,6 +528,11 @@ DyffCommandType = Union[
532
528
 
533
529
 
534
530
  __all__ = [
531
+ "ChallengeContentPagePatch",
532
+ "ChallengeContentPatch",
533
+ "ChallengeTaskRulesExecutionEnvironmentPatch",
534
+ "ChallengeTaskRulesSchedulePatch",
535
+ "ChallengeTaskRulesPatch",
535
536
  "Command",
536
537
  "CreateChallengeTask",
537
538
  "CreateChallengeTaskAttributes",
@@ -541,7 +542,6 @@ __all__ = [
541
542
  "EditChallengeContent",
542
543
  "EditChallengeContentAttributes",
543
544
  "EditChallengeContentData",
544
- "EditChallengeContentPagePatch",
545
545
  "EditChallengeContentPatch",
546
546
  "EditEntityDocumentation",
547
547
  "EditEntityDocumentationAttributes",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dyff-schema
3
- Version: 0.36.1
3
+ Version: 0.36.3
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,2 +0,0 @@
1
- __version__ = version = "0.36.1"
2
- __version_tuple__ = version_tuple = (0, 36, 1)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes