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.
- dyff/schema/v0/r1/commands.py +42 -0
- dyff/schema/v0/r1/platform.py +7 -0
- {dyff_schema-0.27.4.dist-info → dyff_schema-0.29.0.dist-info}/METADATA +3 -2
- {dyff_schema-0.27.4.dist-info → dyff_schema-0.29.0.dist-info}/RECORD +8 -8
- {dyff_schema-0.27.4.dist-info → dyff_schema-0.29.0.dist-info}/WHEEL +1 -1
- {dyff_schema-0.27.4.dist-info → dyff_schema-0.29.0.dist-info}/licenses/LICENSE +0 -0
- {dyff_schema-0.27.4.dist-info → dyff_schema-0.29.0.dist-info}/licenses/NOTICE +0 -0
- {dyff_schema-0.27.4.dist-info → dyff_schema-0.29.0.dist-info}/top_level.txt +0 -0
dyff/schema/v0/r1/commands.py
CHANGED
|
@@ -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",
|
dyff/schema/v0/r1/platform.py
CHANGED
|
@@ -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.
|
|
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
|
[](https://github.com/pre-commit/pre-commit)
|
|
40
40
|
[](https://github.com/psf/black)
|
|
41
41
|
[](https://pycqa.github.io/isort/)
|
|
42
|
+
[](https://github.com/PyCQA/docformatter)
|
|
42
43
|
[](https://github.com/prettier/prettier)
|
|
43
|
-
[](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=
|
|
29
|
-
dyff/schema/v0/r1/platform.py,sha256=
|
|
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.
|
|
43
|
-
dyff_schema-0.
|
|
44
|
-
dyff_schema-0.
|
|
45
|
-
dyff_schema-0.
|
|
46
|
-
dyff_schema-0.
|
|
47
|
-
dyff_schema-0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|