unique_sdk 0.10.0__py3-none-any.whl → 0.10.1__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.
@@ -67,6 +67,13 @@ class Space(APIResource["Space"]):
67
67
  assessment: Optional[List["Space.Reference"]]
68
68
  messageAssessment: Optional[List["Space.Assessment"]]
69
69
 
70
+ class DeleteChatResponse(TypedDict):
71
+ """
72
+ Response for deleting a chat in a space.
73
+ """
74
+
75
+ chat_id: str
76
+
70
77
  @classmethod
71
78
  def create_message(
72
79
  cls,
@@ -142,3 +149,43 @@ class Space(APIResource["Space"]):
142
149
  company_id,
143
150
  ),
144
151
  )
152
+
153
+ @classmethod
154
+ def delete_chat(
155
+ cls,
156
+ user_id: str,
157
+ company_id: str,
158
+ chat_id: str,
159
+ ) -> "Space.DeleteChatResponse":
160
+ """
161
+ Delete a chat in a space.
162
+ """
163
+ return cast(
164
+ "Space.DeleteChatResponse",
165
+ cls._static_request(
166
+ "delete",
167
+ f"/space/chat/{chat_id}",
168
+ user_id,
169
+ company_id,
170
+ ),
171
+ )
172
+
173
+ @classmethod
174
+ async def delete_chat_async(
175
+ cls,
176
+ user_id: str,
177
+ company_id: str,
178
+ chat_id: str,
179
+ ) -> "Space.DeleteChatResponse":
180
+ """
181
+ Async delete a chat in a space.
182
+ """
183
+ return cast(
184
+ "Space.DeleteChatResponse",
185
+ await cls._static_request_async(
186
+ "delete",
187
+ f"/space/chat/{chat_id}",
188
+ user_id,
189
+ company_id,
190
+ ),
191
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -37,6 +37,7 @@ The Unique Python SDK provides access to the public API of Unique FinanceGPT. It
37
37
  - [Short Term Memory](#short-term-memory)
38
38
  - [Message Assessment](#message-assessment)
39
39
  - [Folder](#folder)
40
+ - [Space](#space)
40
41
  6. [UniqueQL](#uniqueql)
41
42
  - [Query Structure](#uniqueql-query-structure)
42
43
  - [Metadata Filtering](#metadata-filtering)
@@ -251,6 +252,7 @@ unique_sdk.Message.modify(
251
252
  - [Short Term Memory](#short-term-memory)
252
253
  - [Message Assessment](#message-assessment)
253
254
  - [Folder](#folder)
255
+ - [Space](#space)
254
256
 
255
257
  Most of the API services provide an asynchronous version of the method. The async methods are suffixed with `_async`.
256
258
 
@@ -950,6 +952,20 @@ unique_sdk.Folder.remove_access(
950
952
  )
951
953
  ```
952
954
 
955
+ ### Space
956
+
957
+ #### `unique_sdk.Space.delete_chat`
958
+
959
+ Delete a space chat by id. If the chat does not exist, the function will return an error.
960
+
961
+ ```python
962
+ unique_sdk.Space.delete_chat(
963
+ user_id=user_id,
964
+ company_id=company_id,
965
+ chat_id="chat_dejfhe729br398",
966
+ )
967
+ ```
968
+
953
969
  ## UniqueQL
954
970
 
955
971
  [UniqueQL](https://unique-ch.atlassian.net/wiki/x/coAXHQ) is an advanced query language designed to enhance search capabilities within various search modes such as Vector, Full-Text Search (FTS), and Combined. This query language enables users to perform detailed searches by filtering through metadata attributes like filenames, URLs, dates, and more. UniqueQL is versatile and can be translated into different query formats for various database systems, including PostgreSQL and Qdrant.
@@ -1283,6 +1299,9 @@ All notable changes to this project will be documented in this file.
1283
1299
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1284
1300
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1285
1301
 
1302
+ ## [0.10.1] - 2025-08-05
1303
+ - Allow deletion of a space chat.
1304
+
1286
1305
  ## [0.10.0] - 2025-08-04
1287
1306
  - Add MCP support
1288
1307
 
@@ -27,13 +27,13 @@ unique_sdk/api_resources/_message_assessment.py,sha256=SSfx6eW7zb_GKe8cFJzCqW-t-
27
27
  unique_sdk/api_resources/_search.py,sha256=pAVMXL2AdJNP5JG-7LlaU2Uw1152iUaMZ2YO7fHnNWc,1906
28
28
  unique_sdk/api_resources/_search_string.py,sha256=4Idw6exgZdA8qksz9WkiA68k1hTU-7yFkgT_OLU_GkE,1662
29
29
  unique_sdk/api_resources/_short_term_memory.py,sha256=vPRN-Y0WPx74E6y-A3LocGc0TxJdzT-xGL66WzZwKRg,2820
30
- unique_sdk/api_resources/_space.py,sha256=LAK-ZbHemIIfX51anthml4ojxhPUPDOu_EbQs64rOFA,3726
30
+ unique_sdk/api_resources/_space.py,sha256=9e-_3oBr_25JeRLF7GfaXnIPE33tZ19g0UWxPp_yR4k,4805
31
31
  unique_sdk/utils/chat_history.py,sha256=5UqL9hF1O9pV7skbNOlEibF5rHdYsmG3m5-YEPUowOs,3037
32
32
  unique_sdk/utils/chat_in_space.py,sha256=kQA43P9XZ6Kdf05JZiLhVJ5ejVtrgzZSb8osyNHSZmc,1580
33
33
  unique_sdk/utils/file_io.py,sha256=YY8B7VJcTLOPmCXByiOfNerXGlAtjCC5EVNmAbQJ3dQ,4306
34
34
  unique_sdk/utils/sources.py,sha256=wfboE-neMKa0Wuq9QzfAEFMkNLrIrmm0v-QF33sLo6k,4952
35
35
  unique_sdk/utils/token.py,sha256=AzKuAA1AwBtnvSFxGcsHLpxXr_wWE5Mj4jYBbOz2ljA,1740
36
- unique_sdk-0.10.0.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
37
- unique_sdk-0.10.0.dist-info/METADATA,sha256=VcwHI6WA3JGiFekfjs411NWLxE3lj22a7FmReyJv_Xw,42872
38
- unique_sdk-0.10.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
39
- unique_sdk-0.10.0.dist-info/RECORD,,
36
+ unique_sdk-0.10.1.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
37
+ unique_sdk-0.10.1.dist-info/METADATA,sha256=J0Ur8XcIXsgIxE9J1T0hcrf3Tdg-0RdemPMZ92QNodc,43240
38
+ unique_sdk-0.10.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
39
+ unique_sdk-0.10.1.dist-info/RECORD,,