destiny_sdk 0.1.5__tar.gz → 0.2.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: destiny_sdk
3
- Version: 0.1.5
3
+ Version: 0.2.0
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
@@ -13,7 +13,7 @@ description = "A software development kit (sdk) to support interaction with the
13
13
  license = "Apache 2.0"
14
14
  name = "destiny_sdk"
15
15
  readme = "README.md"
16
- version = "0.1.5"
16
+ version = "0.2.0"
17
17
 
18
18
  [tool.poetry.dependencies]
19
19
  cachetools = "^5.5.2"
@@ -69,7 +69,7 @@ class Client:
69
69
  :type auth_method: str
70
70
  """
71
71
  self.session = httpx.Client(
72
- base_url=str(base_url),
72
+ base_url=str(base_url).removesuffix("/v1/").removesuffix("/v1") + "/v1/",
73
73
  headers={"Content-Type": "application/json"},
74
74
  auth=HMACSigningAuth(secret_key=secret_key, client_id=client_id),
75
75
  )
@@ -86,7 +86,7 @@ class Client:
86
86
  :rtype: EnhancementRequestRead
87
87
  """
88
88
  response = self.session.post(
89
- "/robot/enhancement/single/",
89
+ f"/enhancement-requests/single-requests/{robot_result.request_id}/results/",
90
90
  json=robot_result.model_dump(mode="json"),
91
91
  )
92
92
  response.raise_for_status()
@@ -106,7 +106,7 @@ class Client:
106
106
  :rtype: BatchEnhancementRequestRead
107
107
  """
108
108
  response = self.session.post(
109
- "/robot/enhancement/batch/",
109
+ f"/enhancement-requests/batch-requests/{batch_robot_result.request_id}/results/",
110
110
  json=batch_robot_result.model_dump(mode="json"),
111
111
  )
112
112
  response.raise_for_status()
File without changes
File without changes
@@ -357,6 +357,9 @@ class ProvisionedRobot(Robot):
357
357
  class _RobotAutomationBase(BaseModel):
358
358
  """Base Robot Automation class."""
359
359
 
360
+ robot_id: UUID4 = Field(
361
+ description="The ID of the robot that will be used to enhance the reference."
362
+ )
360
363
  query: dict[str, Any] = Field(
361
364
  description="The percolator query that will be used to match references "
362
365
  " or enhancements against."
@@ -385,6 +388,3 @@ class RobotAutomation(_RobotAutomationBase):
385
388
  id: UUID4 = Field(
386
389
  description="The ID of the robot automation.",
387
390
  )
388
- robot_id: UUID4 = Field(
389
- description="The ID of the robot that will be used to enhance the reference."
390
- )