unique_sdk 0.9.15__py3-none-any.whl → 0.9.16__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.
@@ -25,6 +25,7 @@ retry_dict = {
25
25
  "Invalid response body from API",
26
26
  "You can retry your request",
27
27
  "Internal server error",
28
+ "Connection aborted",
28
29
  ],
29
30
  "max_retries": 3,
30
31
  "backoff_factor": 2,
@@ -36,9 +36,9 @@ class Search(APIResource["Search"]):
36
36
  @classmethod
37
37
  def create(
38
38
  cls, user_id: str, company_id: str, **params: Unpack["Search.CreateParams"]
39
- ) -> "Search":
39
+ ) -> list["Search"]:
40
40
  return cast(
41
- "Search",
41
+ list["Search"],
42
42
  cls._static_request(
43
43
  "post",
44
44
  "/search/search",
@@ -51,9 +51,9 @@ class Search(APIResource["Search"]):
51
51
  @classmethod
52
52
  async def create_async(
53
53
  cls, user_id: str, company_id: str, **params: Unpack["Search.CreateParams"]
54
- ) -> "Search":
54
+ ) -> list["Search"]:
55
55
  return cast(
56
- "Search",
56
+ list["Search"],
57
57
  await cls._static_request_async(
58
58
  "post",
59
59
  "/search/search",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.9.15
3
+ Version: 0.9.16
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -899,6 +899,9 @@ All notable changes to this project will be documented in this file.
899
899
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
900
900
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
901
901
 
902
+ ## [0.9.16] - 2024-12-19
903
+ - Corrected return type of `Search.create` and `Search.create_async` to `List[Search]`
904
+ - Retry on `Connection aborted` error
902
905
 
903
906
  ## [0.9.15] - 2024-12-06
904
907
  - Add `Internal server error` and `You can retry your request` to the retry logic
@@ -1,6 +1,6 @@
1
1
  unique_sdk/__init__.py,sha256=Cv42hZ3dlsNACMIza7LDARXiY-w7a_ijlSuY_jADJD8,3072
2
2
  unique_sdk/_api_requestor.py,sha256=O6iF_d_jc1ceTYVa3kOQHXjYKdmBp0kGW_pfMw1ClwE,14543
3
- unique_sdk/_api_resource.py,sha256=HY9rtPrExV9tXty2qdrBfKcT6AiGdzpiWGcajocSfFg,6256
3
+ unique_sdk/_api_resource.py,sha256=tfnQCmIXoBLiMIjqte_ZHDepQ-8usG3ZJ_PIqmBtneY,6286
4
4
  unique_sdk/_api_version.py,sha256=Ku4JPdeyJtnX5eJJvRCEc1_u44UObdVrvrL1T-WwWCs,46
5
5
  unique_sdk/_error.py,sha256=j-deT0PJ-exLCwUkqORRaxaLLrGunDag9bKJSmBBKZI,3343
6
6
  unique_sdk/_http_client.py,sha256=CSc2gduhQ42v6G1oh4Jyg8XL7Sa3YQ7WdTpc6kAyTBI,10369
@@ -21,14 +21,14 @@ unique_sdk/api_resources/_embedding.py,sha256=C6qak7cCUBMBINfPhgH8taCJZ9n6w1MUEl
21
21
  unique_sdk/api_resources/_event.py,sha256=bpWF9vstdoAWbUzr-iiGP713ceP0zPk77GJXiImf9zg,374
22
22
  unique_sdk/api_resources/_integrated.py,sha256=R5a5oSVQXkh5xyeFwor-7sfePsBdtUyh8SbTMS6AMz4,3036
23
23
  unique_sdk/api_resources/_message.py,sha256=gEDIzg3METZU2k7m69meAuf0IWmZxnYOjbBKPRMwPYE,7688
24
- unique_sdk/api_resources/_search.py,sha256=TbzNZO7OOmQqmfHkbzhDGtRIrtJw_Eohs_vo02vamzE,1859
24
+ unique_sdk/api_resources/_search.py,sha256=m9gL-Cv347r6cM9MwGWgddORGHzPF3jK5dzL3plaeNI,1883
25
25
  unique_sdk/api_resources/_search_string.py,sha256=I43XqKfYwWSwhZ4r0UHx5fs1MUGbLszWHrxqBvo6Tx8,1785
26
26
  unique_sdk/api_resources/_short_term_memory.py,sha256=FWJ-PFR8x3o15lw1L0iKICFNdSTb1C9gs8y-CBkfdag,2815
27
27
  unique_sdk/utils/chat_history.py,sha256=5UqL9hF1O9pV7skbNOlEibF5rHdYsmG3m5-YEPUowOs,3037
28
28
  unique_sdk/utils/file_io.py,sha256=tcS-5NA97AyiJPhKpWs3i0qKNFsZlttToxrvnWRDJrs,3857
29
29
  unique_sdk/utils/sources.py,sha256=wfboE-neMKa0Wuq9QzfAEFMkNLrIrmm0v-QF33sLo6k,4952
30
30
  unique_sdk/utils/token.py,sha256=AzKuAA1AwBtnvSFxGcsHLpxXr_wWE5Mj4jYBbOz2ljA,1740
31
- unique_sdk-0.9.15.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
32
- unique_sdk-0.9.15.dist-info/METADATA,sha256=piKJYZYGiD8UYWiX8oqg1F5jbnnPQv9KWvGc0b52VfE,28342
33
- unique_sdk-0.9.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
- unique_sdk-0.9.15.dist-info/RECORD,,
31
+ unique_sdk-0.9.16.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
32
+ unique_sdk-0.9.16.dist-info/METADATA,sha256=hDtWpNKR2zIBG859SxpnyK-X2oySAhyNuebkXBWELSQ,28492
33
+ unique_sdk-0.9.16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
+ unique_sdk-0.9.16.dist-info/RECORD,,