destiny_sdk 0.1.2__py3-none-any.whl → 0.1.4__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.
@@ -1,11 +1,10 @@
1
1
  """Enhancement classes for the Destiny Repository."""
2
2
 
3
3
  import datetime
4
- import uuid
5
4
  from enum import StrEnum, auto
6
5
  from typing import Annotated, Literal
7
6
 
8
- from pydantic import BaseModel, Field, HttpUrl
7
+ from pydantic import UUID4, BaseModel, Field, HttpUrl
9
8
 
10
9
  from destiny_sdk.core import _JsonlFileInputMixIn
11
10
  from destiny_sdk.visibility import Visibility
@@ -317,7 +316,15 @@ EnhancementContent = Annotated[
317
316
  class Enhancement(_JsonlFileInputMixIn, BaseModel):
318
317
  """Core enhancement class."""
319
318
 
320
- reference_id: uuid.UUID = Field(
319
+ id: UUID4 | None = Field(
320
+ default=None,
321
+ description=(
322
+ "The ID of the enhancement. "
323
+ "Populated by the repository when sending enhancements with references."
324
+ ),
325
+ )
326
+
327
+ reference_id: UUID4 = Field(
321
328
  description="The ID of the reference this enhancement is associated with."
322
329
  )
323
330
  source: str = Field(
@@ -330,7 +337,7 @@ class Enhancement(_JsonlFileInputMixIn, BaseModel):
330
337
  default=None,
331
338
  description="The version of the robot that generated the content.",
332
339
  )
333
- derived_from: list[uuid.UUID] | None = Field(
340
+ derived_from: list[UUID4] | None = Field(
334
341
  default=None,
335
342
  description="List of enhancement IDs that this enhancement was derived from.",
336
343
  )
destiny_sdk/robots.py CHANGED
@@ -98,10 +98,15 @@ class RobotRequest(BaseModel):
98
98
  """An enhancement request from the repo to a robot."""
99
99
 
100
100
  id: UUID4
101
- reference: Reference # Reference with selected enhancements
102
- extra_fields: (
103
- dict | None
104
- ) # We need something to pass through the signed url for uploads
101
+ reference: Reference = Field(
102
+ description=(
103
+ "Reference to be enhanced, includes identifiers and existing enhancments."
104
+ )
105
+ )
106
+ extra_fields: dict | None = Field(
107
+ default=None,
108
+ description="Extra fields to pass to the robot. TBC.",
109
+ )
105
110
 
106
111
 
107
112
  #: The result for a single reference when processed by a batch enhancement request.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: destiny_sdk
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: A software development kit (sdk) to support interaction with the DESTINY repository
5
5
  License: Apache 2.0
6
6
  Author: Adam Hamilton
@@ -2,14 +2,14 @@ destiny_sdk/__init__.py,sha256=gmmrceJX84T4msk_GSm_OjTQvCpHFZRjnlUK5_7IODE,356
2
2
  destiny_sdk/auth.py,sha256=bY72ywZEcG_67YBd9PrwgWTXkCf58rhLvVEXrtXbWtA,6247
3
3
  destiny_sdk/client.py,sha256=gUZJ8Mnmm1mUH7zd8fJbTksgPzBQQoYOFcuzJGiO2Dk,3642
4
4
  destiny_sdk/core.py,sha256=GgNc7EncHKyZ5ppIG2CATWN2JFPjtA7IYhF0FutqwGE,945
5
- destiny_sdk/enhancements.py,sha256=wFaphXYEHEU6yRijsP4tBY7BC6V9O2MPnOisfvE5EfE,11529
5
+ destiny_sdk/enhancements.py,sha256=2bAFVMVWc-9-82sDnzd0Wujz8CeNm1C5ZtveuSX0JKU,11735
6
6
  destiny_sdk/identifiers.py,sha256=JHxu-wM3T8kKtAYuk5dMec35Ay73KxYP7gthbSvOhuI,3480
7
7
  destiny_sdk/imports.py,sha256=mfC1QXbAU27iD3hO9OFTRQes352F6DS1U4fSMw26-8w,8243
8
8
  destiny_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  destiny_sdk/references.py,sha256=Dx-WKcv9gNJkKU9n52AYoEey7siTHR5_wBVBKSHND6Q,2321
10
- destiny_sdk/robots.py,sha256=3VztlZJv2l1qQWRSNrZdKyJHCCteNil0w7lSYmV_Fpg,12692
10
+ destiny_sdk/robots.py,sha256=wBXDqD7WGG7fEGUsfQN9T9ZRDCE9jmGPfBwQHH0zO3g,12806
11
11
  destiny_sdk/visibility.py,sha256=nDLqnWuSZSk0vG3ynzDpHAvaALsbk8cuEZujTsqf6no,684
12
- destiny_sdk-0.1.2.dist-info/LICENSE,sha256=6QURU4gvvTjVZ5rfp5amZ6FtFvcpPhAGUjxF5WSZAHI,9138
13
- destiny_sdk-0.1.2.dist-info/METADATA,sha256=U-n5n9vDusuzXWJpDI5-67L7AY8ocPkJlJKGRlIXTqQ,2543
14
- destiny_sdk-0.1.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
15
- destiny_sdk-0.1.2.dist-info/RECORD,,
12
+ destiny_sdk-0.1.4.dist-info/LICENSE,sha256=6QURU4gvvTjVZ5rfp5amZ6FtFvcpPhAGUjxF5WSZAHI,9138
13
+ destiny_sdk-0.1.4.dist-info/METADATA,sha256=awSdHvKum39gNkTsC728JSAH6m4qOb4_pV0sa2_GYGA,2543
14
+ destiny_sdk-0.1.4.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
15
+ destiny_sdk-0.1.4.dist-info/RECORD,,