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.
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/PKG-INFO +1 -1
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/pyproject.toml +1 -1
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/client.py +3 -3
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/LICENSE +0 -0
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/README.md +0 -0
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/__init__.py +0 -0
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/auth.py +0 -0
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/core.py +0 -0
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/enhancements.py +0 -0
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/identifiers.py +0 -0
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/imports.py +0 -0
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/py.typed +0 -0
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/references.py +0 -0
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/robots.py +3 -3
- {destiny_sdk-0.1.5 → destiny_sdk-0.2.0}/src/destiny_sdk/visibility.py +0 -0
|
@@ -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
|
-
"/
|
|
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
|
-
"/
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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
|
-
)
|
|
File without changes
|