unique_sdk 0.9.8__tar.gz → 0.9.9__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.
Files changed (35) hide show
  1. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/CHANGELOG.md +3 -0
  2. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/PKG-INFO +6 -3
  3. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/pyproject.toml +2 -1
  4. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/_message.py +15 -0
  5. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/LICENSE +0 -0
  6. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/README.md +0 -0
  7. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/__init__.py +0 -0
  8. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_api_requestor.py +0 -0
  9. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_api_resource.py +0 -0
  10. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_api_version.py +0 -0
  11. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_error.py +0 -0
  12. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_http_client.py +0 -0
  13. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_list_object.py +0 -0
  14. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_object_classes.py +0 -0
  15. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_request_options.py +0 -0
  16. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_unique_object.py +0 -0
  17. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_unique_ql.py +0 -0
  18. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_unique_response.py +0 -0
  19. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_util.py +0 -0
  20. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_version.py +0 -0
  21. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/_webhook.py +0 -0
  22. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/__init__.py +0 -0
  23. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/_acronyms.py +0 -0
  24. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/_chat_completion.py +0 -0
  25. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/_content.py +0 -0
  26. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/_embedding.py +0 -0
  27. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/_event.py +0 -0
  28. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/_integrated.py +0 -0
  29. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/_search.py +0 -0
  30. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/_search_string.py +0 -0
  31. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/api_resources/_short_term_memory.py +0 -0
  32. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/utils/chat_history.py +0 -0
  33. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/utils/file_io.py +0 -0
  34. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/utils/sources.py +0 -0
  35. {unique_sdk-0.9.8 → unique_sdk-0.9.9}/unique_sdk/utils/token.py +0 -0
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.9.9] - 2024-10-23
9
+ - Revert deletion of `Message.retrieve` method
10
+
8
11
  ## [0.9.8] - 2024-10-16
9
12
  - Add `retries` for `_static_request` and `_static_request_async` in `APIResource` - When the error messages contains either `"problem proxying the request"`,
10
13
  or `"Upstream service reached a hard timeout"`,
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.9.8
3
+ Version: 0.9.9
4
4
  Summary:
5
5
  License: MIT
6
- Author: Konstantin Krauss
7
- Author-email: konstantin@unique.ch
6
+ Author: Martin Fadler
7
+ Author-email: martin.fadler@unique.ch
8
8
  Requires-Python: >=3.11,<4.0
9
9
  Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Programming Language :: Python :: 3
@@ -894,6 +894,9 @@ All notable changes to this project will be documented in this file.
894
894
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
895
895
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
896
896
 
897
+ ## [0.9.9] - 2024-10-23
898
+ - Revert deletion of `Message.retrieve` method
899
+
897
900
  ## [0.9.8] - 2024-10-16
898
901
  - Add `retries` for `_static_request` and `_static_request_async` in `APIResource` - When the error messages contains either `"problem proxying the request"`,
899
902
  or `"Upstream service reached a hard timeout"`,
@@ -1,8 +1,9 @@
1
1
  [tool.poetry]
2
2
  name = "unique_sdk"
3
- version = "0.9.8"
3
+ version = "0.9.9"
4
4
  description = ""
5
5
  authors = [
6
+ "Martin Fadler <martin.fadler@unique.ch>",
6
7
  "Konstantin Krauss <konstantin@unique.ch>",
7
8
  "Andreas Hauri <andreas@unique.ch>",
8
9
  ]
@@ -115,6 +115,21 @@ class Message(APIResource["Message"]):
115
115
 
116
116
  return result
117
117
 
118
+ @classmethod
119
+ def retrieve(
120
+ cls,
121
+ user_id: str,
122
+ company_id: str,
123
+ id: str,
124
+ **params: Unpack["Message.RetrieveParams"],
125
+ ) -> "Message":
126
+ """
127
+ Retrieves a Message object.
128
+ """
129
+ instance = cls(user_id, company_id, id, **params)
130
+ instance.refresh(user_id, company_id)
131
+ return instance
132
+
118
133
  @classmethod
119
134
  async def retrieve_async(
120
135
  cls,
File without changes
File without changes