dyff-schema 0.27.4__py3-none-any.whl → 0.29.0__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.

@@ -59,6 +59,7 @@ class Command(SchemaVersion, DyffSchemaBaseModel):
59
59
  "EditEntityLabels",
60
60
  "EditFamilyMembers",
61
61
  "ForgetEntity",
62
+ "RestoreEntity",
62
63
  "UpdateEntityStatus",
63
64
  ]
64
65
 
@@ -218,6 +219,43 @@ class ForgetEntity(Command):
218
219
  # ----------------------------------------------------------------------------
219
220
 
220
221
 
222
+ class RestoreEntityAttributes(DyffSchemaBaseModel):
223
+ entity: DyffEntityType = pydantic.Field(
224
+ description="The full spec of the entity to restore."
225
+ )
226
+
227
+ ifRevisionMatch: Optional[str] = pydantic.Field(
228
+ default=None,
229
+ description="Do not change the entity if its revision does not match"
230
+ " the given revision.",
231
+ )
232
+
233
+ ifRevisionUndefined: Optional[bool] = pydantic.Field(
234
+ default=None,
235
+ description="Allow changing entities that have no revision."
236
+ " By default, entities with no revision will be changed if and only if"
237
+ " no other matching criteria are specified."
238
+ " This should be the case only for legacy data.",
239
+ )
240
+
241
+
242
+ class RestoreEntityData(EntityIdentifier):
243
+ attributes: RestoreEntityAttributes = pydantic.Field(
244
+ description="The command attributes"
245
+ )
246
+
247
+
248
+ class RestoreEntity(Command):
249
+ """Restore an entity to a given state."""
250
+
251
+ command: Literal["RestoreEntity"] = "RestoreEntity"
252
+
253
+ data: RestoreEntityData = pydantic.Field(description="The command data.")
254
+
255
+
256
+ # ----------------------------------------------------------------------------
257
+
258
+
221
259
  class UpdateEntityStatusAttributes(JsonMergePatchSemantics):
222
260
  """Attributes for the UpdateEntityStatus command."""
223
261
 
@@ -255,6 +293,7 @@ DyffCommandType = Union[
255
293
  EditEntityLabels,
256
294
  EditFamilyMembers,
257
295
  ForgetEntity,
296
+ RestoreEntity,
258
297
  UpdateEntityStatus,
259
298
  ]
260
299
 
@@ -276,6 +315,9 @@ __all__ = [
276
315
  "EntityIdentifier",
277
316
  "FamilyIdentifier",
278
317
  "ForgetEntity",
318
+ "RestoreEntity",
319
+ "RestoreEntityAttributes",
320
+ "RestoreEntityData",
279
321
  "UpdateEntityStatus",
280
322
  "UpdateEntityStatusAttributes",
281
323
  "UpdateEntityStatusData",
@@ -1904,6 +1904,13 @@ class MethodBase(DyffSchemaBaseModel):
1904
1904
  description="Modules to load into the analysis environment",
1905
1905
  )
1906
1906
 
1907
+ analysisImage: Optional[ContainerImageSource] = pydantic.Field(
1908
+ default=None,
1909
+ description="Optional container image to use for running analysis methods."
1910
+ " If specified, analysis will run in this custom container instead of"
1911
+ " the default analysis environment.",
1912
+ )
1913
+
1907
1914
  @pydantic.validator("scores")
1908
1915
  def _scores_validator(cls, scores: list[ScoreSpec]):
1909
1916
  if len(scores) > 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dyff-schema
3
- Version: 0.27.4
3
+ Version: 0.29.0
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
@@ -39,8 +39,9 @@ Dynamic: license-file
39
39
  [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
40
40
  [![code style: black](https://img.shields.io/badge/code_style-black-000000.svg)](https://github.com/psf/black)
41
41
  [![imports: isort](https://img.shields.io/badge/imports-isort-1674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
42
+ [![formatter: docformatter](https://img.shields.io/badge/formatter-docformatter-fedcba.svg)](https://github.com/PyCQA/docformatter)
42
43
  [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
43
- [![cici-tools Enabled](https://img.shields.io/badge/%E2%9A%A1_cici--tools-enabled-c0ff33)](https://gitlab.com/buildgarden/tools/cici-tools)
44
+ [![cici enabled](https://img.shields.io/badge/%E2%9A%A1_cici-enabled-c0ff33)](https://gitlab.com/saferatday0/cici)
44
45
 
45
46
  <!-- END BADGIE TIME -->
46
47
 
@@ -25,8 +25,8 @@ dyff/schema/v0/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
25
25
  dyff/schema/v0/r1/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
26
26
  dyff/schema/v0/r1/adapters.py,sha256=dmQS2ecgDX4ZvTMOW-6NzV_Oq_UpaiyFd7QnSNoOnK8,33057
27
27
  dyff/schema/v0/r1/base.py,sha256=Rry7GKdQyCLNXskB1CxqVlhVsgM8pw6a4xy3BFk_lRc,21095
28
- dyff/schema/v0/r1/commands.py,sha256=HTIgCIwec3nmKOyJ0PstHskfoGeOzB9QVoywUdfl0wU,8331
29
- dyff/schema/v0/r1/platform.py,sha256=BNKQt-2udkPt7_Qg5s-I0U8m3Sb7eKbQYqvg87rkNfg,81416
28
+ dyff/schema/v0/r1/commands.py,sha256=zgaggy9x2lPaDwRSVtyd7jrZ2gjJDbyghsdj2RmEaBs,9607
29
+ dyff/schema/v0/r1/platform.py,sha256=r69zA2BBzR5TVb1AoE50RmvARH8WuqIqzT1vmdJn_PE,81722
30
30
  dyff/schema/v0/r1/requests.py,sha256=56R_yOdbDOEcY0og2GoY5bXeG6ifn7z3ypNdBOF_igk,17043
31
31
  dyff/schema/v0/r1/test.py,sha256=X6dUyVd5svcPCI-PBMOAqEfK9jv3bRDvkQTJzwS96c0,10720
32
32
  dyff/schema/v0/r1/version.py,sha256=isKAGuGxsdru8vDaYmI4YiZdJOu_wNxXK7u6QzD6FE4,392
@@ -39,9 +39,9 @@ dyff/schema/v0/r1/dataset/text.py,sha256=nLIn91Zlt0tNdXUklSgjJ-kEDxoPX32ISLkiv2D
39
39
  dyff/schema/v0/r1/dataset/vision.py,sha256=aIe0fbfM_g3DsrDTdg2K803YKLjZBpurM_VJcJFuZLc,369
40
40
  dyff/schema/v0/r1/io/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
41
41
  dyff/schema/v0/r1/io/vllm.py,sha256=CUE9y8KthtUI7sD49S875rDmPvKotSXVIRaBS79aBZs,5320
42
- dyff_schema-0.27.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
43
- dyff_schema-0.27.4.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
44
- dyff_schema-0.27.4.dist-info/METADATA,sha256=l6FN4G2M1ZLvHNvBGxQ-82U5NL-rBefWVOY_EZzt9zU,3504
45
- dyff_schema-0.27.4.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
46
- dyff_schema-0.27.4.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
47
- dyff_schema-0.27.4.dist-info/RECORD,,
42
+ dyff_schema-0.29.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
43
+ dyff_schema-0.29.0.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
44
+ dyff_schema-0.29.0.dist-info/METADATA,sha256=iOoEBuJ_p1pdIe5yqLPhYDN6U5j2i9d6513Yt39a78Y,3611
45
+ dyff_schema-0.29.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
+ dyff_schema-0.29.0.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
47
+ dyff_schema-0.29.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5