dyff-schema 0.12.0__py3-none-any.whl → 0.13.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/platform.py +17 -7
- dyff/schema/v0/r1/requests.py +13 -0
- {dyff_schema-0.12.0.dist-info → dyff_schema-0.13.0.dist-info}/METADATA +3 -3
- {dyff_schema-0.12.0.dist-info → dyff_schema-0.13.0.dist-info}/RECORD +8 -8
- {dyff_schema-0.12.0.dist-info → dyff_schema-0.13.0.dist-info}/WHEEL +1 -1
- {dyff_schema-0.12.0.dist-info → dyff_schema-0.13.0.dist-info}/LICENSE +0 -0
- {dyff_schema-0.12.0.dist-info → dyff_schema-0.13.0.dist-info}/NOTICE +0 -0
- {dyff_schema-0.12.0.dist-info → dyff_schema-0.13.0.dist-info}/top_level.txt +0 -0
dyff/schema/v0/r1/platform.py
CHANGED
|
@@ -345,7 +345,11 @@ class DocumentationBase(DyffSchemaBaseModel):
|
|
|
345
345
|
|
|
346
346
|
|
|
347
347
|
class Documentation(SchemaVersion, DocumentationBase):
|
|
348
|
-
|
|
348
|
+
entity: Optional[str] = pydantic.Field(
|
|
349
|
+
default=None,
|
|
350
|
+
description="The ID of the documented entity. This is Optional for"
|
|
351
|
+
" backward compatibility but it will always be populated in API responses.",
|
|
352
|
+
)
|
|
349
353
|
|
|
350
354
|
|
|
351
355
|
class Documented(DyffSchemaBaseModel):
|
|
@@ -500,9 +504,17 @@ class AccessGrant(DyffSchemaBaseModel):
|
|
|
500
504
|
)
|
|
501
505
|
|
|
502
506
|
|
|
503
|
-
class
|
|
504
|
-
"""A
|
|
505
|
-
|
|
507
|
+
class Role(DyffSchemaBaseModel):
|
|
508
|
+
"""A set of permissions."""
|
|
509
|
+
|
|
510
|
+
grants: list[AccessGrant] = pydantic.Field(
|
|
511
|
+
default_factory=list, description="The permissions granted to the role."
|
|
512
|
+
)
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
class APIKey(Role):
|
|
516
|
+
"""A description of a Role (a set of permissions) granted to a single subject
|
|
517
|
+
(either an account or a workload).
|
|
506
518
|
|
|
507
519
|
Dyff API clients authenticate with a *token* that contains a cryptographically
|
|
508
520
|
signed APIKey.
|
|
@@ -525,9 +537,6 @@ class APIKey(DyffSchemaBaseModel):
|
|
|
525
537
|
default=None,
|
|
526
538
|
description="For account keys: a secret value to check when verifying the APIKey",
|
|
527
539
|
)
|
|
528
|
-
grants: list[AccessGrant] = pydantic.Field(
|
|
529
|
-
default_factory=list, description="AccessGrants associated with the APIKey"
|
|
530
|
-
)
|
|
531
540
|
|
|
532
541
|
|
|
533
542
|
class Identity(DyffSchemaBaseModel):
|
|
@@ -2113,6 +2122,7 @@ __all__ = [
|
|
|
2113
2122
|
"Resources",
|
|
2114
2123
|
"Revision",
|
|
2115
2124
|
"RevisionMetadata",
|
|
2125
|
+
"Role",
|
|
2116
2126
|
"SafetyCase",
|
|
2117
2127
|
"SafetyCaseSpec",
|
|
2118
2128
|
"SchemaAdapter",
|
dyff/schema/v0/r1/requests.py
CHANGED
|
@@ -205,6 +205,18 @@ class DyffEntityQueryRequest(DyffRequestDefaultValidators):
|
|
|
205
205
|
)
|
|
206
206
|
|
|
207
207
|
|
|
208
|
+
class DocumentationQueryRequest(DyffRequestDefaultValidators):
|
|
209
|
+
query: Optional[str] = pydantic.Field(
|
|
210
|
+
default=None,
|
|
211
|
+
description="A JSON structure describing a query, encoded as a string."
|
|
212
|
+
" Valid keys are the same as the valid query keys for the corresponding"
|
|
213
|
+
" endpoint. Values can be scalars or lists. Lists are treated as"
|
|
214
|
+
" disjunctive queries (i.e., 'value $in list').",
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
id: Optional[str] = pydantic.Field(default=None)
|
|
218
|
+
|
|
219
|
+
|
|
208
220
|
class _AnalysisProductQueryRequest(DyffEntityQueryRequest):
|
|
209
221
|
method: Optional[str] = pydantic.Field(default=None)
|
|
210
222
|
methodName: Optional[str] = pydantic.Field(default=None)
|
|
@@ -288,6 +300,7 @@ __all__ = [
|
|
|
288
300
|
"DatasetCreateRequest",
|
|
289
301
|
"DatasetQueryRequest",
|
|
290
302
|
"DocumentationEditRequest",
|
|
303
|
+
"DocumentationQueryRequest",
|
|
291
304
|
"EvaluationCreateRequest",
|
|
292
305
|
"EvaluationQueryRequest",
|
|
293
306
|
"EvaluationInferenceSessionRequest",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dyff-schema
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.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
|
|
@@ -24,9 +24,9 @@ License-File: NOTICE
|
|
|
24
24
|
Requires-Dist: hypothesis
|
|
25
25
|
Requires-Dist: hypothesis-jsonschema
|
|
26
26
|
Requires-Dist: jsonpath-ng
|
|
27
|
-
Requires-Dist: numpy
|
|
27
|
+
Requires-Dist: numpy<2
|
|
28
28
|
Requires-Dist: pyarrow
|
|
29
|
-
Requires-Dist: pydantic
|
|
29
|
+
Requires-Dist: pydantic<2
|
|
30
30
|
|
|
31
31
|
# dyff-schema
|
|
32
32
|
|
|
@@ -23,8 +23,8 @@ dyff/schema/v0/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
|
23
23
|
dyff/schema/v0/r1/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
24
24
|
dyff/schema/v0/r1/adapters.py,sha256=2t2oxsnGfSEDKKDIEYw4qqLXMH7qlFIwPVuLyUmbsHs,23552
|
|
25
25
|
dyff/schema/v0/r1/base.py,sha256=i7eOKXDGS8_J9k2aVObUTpSOnA8CAgRW7Quj1fSbyRg,19403
|
|
26
|
-
dyff/schema/v0/r1/platform.py,sha256=
|
|
27
|
-
dyff/schema/v0/r1/requests.py,sha256=
|
|
26
|
+
dyff/schema/v0/r1/platform.py,sha256=fFi75T8AKqfxzA_6c43fz9Edb9bBVIYocoSLoHo_Eog,67594
|
|
27
|
+
dyff/schema/v0/r1/requests.py,sha256=MMMtSfT9JpE2X7PLQGIuI4v7mMlJ-8DiZ65jc2hE0zc,10976
|
|
28
28
|
dyff/schema/v0/r1/test.py,sha256=X6dUyVd5svcPCI-PBMOAqEfK9jv3bRDvkQTJzwS96c0,10720
|
|
29
29
|
dyff/schema/v0/r1/version.py,sha256=isKAGuGxsdru8vDaYmI4YiZdJOu_wNxXK7u6QzD6FE4,392
|
|
30
30
|
dyff/schema/v0/r1/dataset/__init__.py,sha256=LbVlkO2asyGYBKk2z49xjJYTM-pu9y9e4eQDXgTDLnM,2553
|
|
@@ -35,9 +35,9 @@ dyff/schema/v0/r1/dataset/text.py,sha256=nLIn91Zlt0tNdXUklSgjJ-kEDxoPX32ISLkiv2D
|
|
|
35
35
|
dyff/schema/v0/r1/dataset/vision.py,sha256=aIe0fbfM_g3DsrDTdg2K803YKLjZBpurM_VJcJFuZLc,369
|
|
36
36
|
dyff/schema/v0/r1/io/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
37
37
|
dyff/schema/v0/r1/io/vllm.py,sha256=CUE9y8KthtUI7sD49S875rDmPvKotSXVIRaBS79aBZs,5320
|
|
38
|
-
dyff_schema-0.
|
|
39
|
-
dyff_schema-0.
|
|
40
|
-
dyff_schema-0.
|
|
41
|
-
dyff_schema-0.
|
|
42
|
-
dyff_schema-0.
|
|
43
|
-
dyff_schema-0.
|
|
38
|
+
dyff_schema-0.13.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
39
|
+
dyff_schema-0.13.0.dist-info/METADATA,sha256=83jGlADrQ7anWRYJNf00XwaVHkAiPdpJmRu6rVIU6fw,3482
|
|
40
|
+
dyff_schema-0.13.0.dist-info/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
|
|
41
|
+
dyff_schema-0.13.0.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
|
42
|
+
dyff_schema-0.13.0.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
|
|
43
|
+
dyff_schema-0.13.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|