unique_sdk 0.10.49__tar.gz → 0.10.61__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 (48) hide show
  1. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/CHANGELOG.md +37 -0
  2. unique_sdk-0.10.61/PKG-INFO +354 -0
  3. unique_sdk-0.10.61/README.md +4 -0
  4. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/pyproject.toml +1 -1
  5. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_agentic_table.py +32 -18
  6. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_content.py +6 -2
  7. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_folder.py +1 -0
  8. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_group.py +60 -0
  9. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_integrated.py +1 -0
  10. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_message.py +10 -11
  11. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_space.py +122 -0
  12. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_user.py +58 -0
  13. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/utils/chat_in_space.py +22 -21
  14. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/utils/file_io.py +33 -0
  15. unique_sdk-0.10.49/PKG-INFO +0 -2449
  16. unique_sdk-0.10.49/README.md +0 -2136
  17. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/LICENSE +0 -0
  18. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/__init__.py +0 -0
  19. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_api_requestor.py +0 -0
  20. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_api_resource.py +0 -0
  21. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_api_version.py +0 -0
  22. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_error.py +0 -0
  23. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_http_client.py +0 -0
  24. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_list_object.py +0 -0
  25. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_object_classes.py +0 -0
  26. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_request_options.py +0 -0
  27. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_unique_object.py +0 -0
  28. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_unique_ql.py +0 -0
  29. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_unique_response.py +0 -0
  30. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_util.py +0 -0
  31. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_version.py +0 -0
  32. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/_webhook.py +0 -0
  33. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/__init__.py +0 -0
  34. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_acronyms.py +0 -0
  35. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_chat_completion.py +0 -0
  36. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_embedding.py +0 -0
  37. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_event.py +0 -0
  38. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_llm_models.py +0 -0
  39. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_mcp.py +0 -0
  40. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_message_assessment.py +0 -0
  41. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_message_execution.py +0 -0
  42. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_message_log.py +0 -0
  43. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_search.py +0 -0
  44. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_search_string.py +0 -0
  45. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/api_resources/_short_term_memory.py +0 -0
  46. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/utils/chat_history.py +0 -0
  47. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/utils/sources.py +0 -0
  48. {unique_sdk-0.10.49 → unique_sdk-0.10.61}/unique_sdk/utils/token.py +0 -0
@@ -5,6 +5,43 @@ 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.10.61] - 2025-12-22
9
+ - Add `displayInChat` field to ingestion config, allowing silent uploads to chat.
10
+
11
+ ## [0.10.60] - 2025-12-19
12
+ - Expose startedStreamingAt and gptRequest fields
13
+
14
+ ## [0.10.59] - 2025-12-19
15
+ - Add context field to MagicTableSheetIngestParams.
16
+ - Add rowMetadata and context fields to MagicTableRow.
17
+
18
+ ## [0.10.58] - 2025-12-16
19
+ - chore(deps): Bump urllib3 from 2.5.0 to 2.6.2
20
+
21
+ ## [0.10.57] - 2025-12-06
22
+ - Add description field on create chat completions params.
23
+
24
+ ## [0.10.56] - 2025-12-05
25
+ - Add description field on create chat completions params.
26
+
27
+ ## [0.10.55] - 2025-12-04
28
+ - Allow configuring inherit access on folder creation.
29
+
30
+ ## [0.10.54] - 2025-12-02
31
+ - Add types for Agentic Table api methods.
32
+
33
+ ## [0.10.53] - 2025-12-01
34
+ - Improve OpenAI Proxy docs https://unique-ag.github.io/ai/unique-sdk/
35
+
36
+ ## [0.10.52] - 2025-11-21
37
+ - Centralized docs to https://unique-ag.github.io/ai/unique-sdk/
38
+
39
+ ## [0.10.51] - 2025-11-21
40
+ - Add function to get a space.
41
+
42
+ ## [0.10.50] - 2025-11-21
43
+ - Allow updating the configuration of a user and group.
44
+
8
45
  ## [0.10.49] - 2025-11-21
9
46
  - Add get folder by scope id function
10
47
 
@@ -0,0 +1,354 @@
1
+ Metadata-Version: 2.1
2
+ Name: unique_sdk
3
+ Version: 0.10.61
4
+ Summary:
5
+ License: MIT
6
+ Author: Martin Fadler
7
+ Author-email: martin.fadler@unique.ch
8
+ Requires-Python: >=3.11,<4.0
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Provides-Extra: openai
14
+ Requires-Dist: openai (>=1.105.0,<2.0.0) ; extra == "openai"
15
+ Requires-Dist: requests (>=2.32.3,<3.0.0)
16
+ Requires-Dist: typing-extensions (>=4.9.0,<5.0.0)
17
+ Description-Content-Type: text/markdown
18
+
19
+ # Unique Python SDK
20
+
21
+
22
+ Visit: [https://unique-ag.github.io/](https://unique-ag.github.io/ai/unique-sdk/) for the documentation.
23
+
24
+ # Changelog
25
+
26
+ All notable changes to this project will be documented in this file.
27
+
28
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
29
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
30
+
31
+ ## [0.10.61] - 2025-12-22
32
+ - Add `displayInChat` field to ingestion config, allowing silent uploads to chat.
33
+
34
+ ## [0.10.60] - 2025-12-19
35
+ - Expose startedStreamingAt and gptRequest fields
36
+
37
+ ## [0.10.59] - 2025-12-19
38
+ - Add context field to MagicTableSheetIngestParams.
39
+ - Add rowMetadata and context fields to MagicTableRow.
40
+
41
+ ## [0.10.58] - 2025-12-16
42
+ - chore(deps): Bump urllib3 from 2.5.0 to 2.6.2
43
+
44
+ ## [0.10.57] - 2025-12-06
45
+ - Add description field on create chat completions params.
46
+
47
+ ## [0.10.56] - 2025-12-05
48
+ - Add description field on create chat completions params.
49
+
50
+ ## [0.10.55] - 2025-12-04
51
+ - Allow configuring inherit access on folder creation.
52
+
53
+ ## [0.10.54] - 2025-12-02
54
+ - Add types for Agentic Table api methods.
55
+
56
+ ## [0.10.53] - 2025-12-01
57
+ - Improve OpenAI Proxy docs https://unique-ag.github.io/ai/unique-sdk/
58
+
59
+ ## [0.10.52] - 2025-11-21
60
+ - Centralized docs to https://unique-ag.github.io/ai/unique-sdk/
61
+
62
+ ## [0.10.51] - 2025-11-21
63
+ - Add function to get a space.
64
+
65
+ ## [0.10.50] - 2025-11-21
66
+ - Allow updating the configuration of a user and group.
67
+
68
+ ## [0.10.49] - 2025-11-21
69
+ - Add get folder by scope id function
70
+
71
+ ## [0.10.48] - 2025-11-20
72
+ - Update Agentic Table LogDetail and LogEntry types.
73
+
74
+ ## [0.10.47] - 2025-11-19
75
+ - Add expired/s at fields on content search result.
76
+
77
+ ## [0.10.46] - 2025-11-18
78
+ - chat_against_file function allows now a should_delete_chat flag.
79
+
80
+ ## [0.10.45] - 2025-11-18
81
+ - Create group and manage users functions.
82
+
83
+ ## [0.10.44] - 2025-11-18
84
+ - add function to get all messages in a chat.
85
+
86
+ ## [0.10.43] - 2025-11-14
87
+ - Add get, delete and update groups functions.
88
+
89
+ ## [0.10.42] - 2025-11-14
90
+ - Add get_users function.
91
+
92
+ ## [0.10.41] - 2025-11-13
93
+ - Add create_message and get_latest_message.
94
+
95
+ ## [0.10.40] - 2025-11-10
96
+ - Don't send description if not defined.
97
+
98
+ ## [0.10.39] - 2025-11-07
99
+ - Add function to get llm models
100
+
101
+ ## [0.10.38] - 2025-11-06
102
+ - Add description property to Reference and Content.
103
+
104
+ ## [0.10.37] - 2025-11-04
105
+ - Introduce local integration tests for Content API Resource
106
+
107
+ ## [0.10.36] - 2025-11-04
108
+ - Introduce local integration tests for Folder API Resource
109
+
110
+ ## [0.10.35] - 2025-11-04
111
+ - Inmprove folder get infos types.
112
+
113
+ ## [0.10.34] - 2025-10-29
114
+ - Add documentation for agentic table.
115
+
116
+ ## [0.10.33] - 2025-10-27
117
+ - Improve messagelog and message execution types.
118
+
119
+ ## [0.10.32] - 2025-10-14
120
+ - Add function to stream to chat frontend.
121
+
122
+ ## [0.10.31] - 2025-10-13
123
+ - Add readme for message log and execution.
124
+
125
+ ## [0.10.30] - 2025-10-07
126
+ - Improve types for content get infos.
127
+
128
+ ## [0.10.29] - 2025-10-06
129
+ - Switch default model used from `GPT-3.5-turbo (0125)` to `GPT-4o (1120)`
130
+
131
+ ## [0.10.28] - 2025-10-03
132
+ - Use non blocking versions of `Space.get_latest_message` and `Message.retrieve` in `send_message_and_wait_for_completion`.
133
+
134
+ ## [0.10.27] - 2025-09-24
135
+ - Improve readme to use Unique AI.
136
+
137
+ ## [0.10.26] - 2025-09-22
138
+ - Improve typing.
139
+
140
+ ## [0.10.25] - 2025-09-18
141
+ - Add support for udpate and delete files by file or folder path.
142
+
143
+ ## [0.10.24] - 2025-09-17
144
+ - Add function to update a folder.
145
+
146
+ ## [0.10.23] - 2025-09-12
147
+ - Revert to using default reasoning effort.
148
+
149
+ ## [0.10.22] - 2025-09-12
150
+ - Add support for metadata update of a file.
151
+
152
+ ## [0.10.21] - 2025-09-04
153
+ - Update Chat Completions API types and add support for reasoning effort.
154
+
155
+ ## [0.10.20] - 2025-09-04
156
+ - Update Responses API types
157
+
158
+ ## [0.10.19] - 2025-09-02
159
+ - Improve `send_message_and_wait_for_completion`:
160
+ - Add option to select stop_condition `["stoppedStreamingAt", "completedAt"]`.
161
+ - Load `debugInfo` from `last_user_message` for better developer experience.
162
+
163
+ ## [0.10.18] - 2025-09-02
164
+ - Temporarily remove support for update and delete files by filePath.
165
+
166
+ ## [0.10.17] - 2025-09-01
167
+ - Add function to update a file
168
+
169
+ ## [0.10.16] - 2025-08-31
170
+ - Add function to delete a content.
171
+
172
+ ## [0.10.15] - 2025-08-28
173
+ - Add default values for message log types
174
+
175
+ ## [0.10.14] - 2025-08-28
176
+ - Add function to delete folders and files recursively
177
+
178
+ ## [0.10.13] - 2025-08-24
179
+ - Add functions to create, get and update a message eecution and create and update a message log.
180
+
181
+ ## [0.10.12] - 2025-08-24
182
+ - Switch to using Content get info deprecated endpoint to make sure we support older release versions.
183
+
184
+ ## [0.10.11] - 2025-08-24
185
+ - Enforce usage of ruff using pipeline
186
+
187
+ ## [0.10.10] - 2025-08-18
188
+ - Fix wrong name of references in `Space.Message`.
189
+ - Fix wrong name of assessment in `Space.Message`.
190
+ - Remove default values for `text`, `originalText` and `debugInfo` in `Space.Message` as these don't have an effect.
191
+
192
+ ## [0.10.9] - 2025-08-15
193
+ - Add script to wait for content ingestion finished.
194
+
195
+ ## [0.10.8] - 2025-08-13
196
+ - Add support for Agentic Table.
197
+
198
+ ## [0.10.7] - 2025-08-13
199
+ - Make metadata optional when uploading a file.
200
+
201
+ ## [0.10.6] - 2025-08-06
202
+ - Make tools optional for running an agent.
203
+
204
+ ## [0.10.5] - 2025-08-06
205
+ - Get paginated files and folders info.
206
+
207
+ ## [0.10.4] - 2025-08-05
208
+ - Add support for reasoning API with streaming within a chat.
209
+
210
+ ## [0.10.3] - 2025-08-05
211
+ - Expose scoreThreshold param for search.
212
+
213
+ ## [0.10.2] - 2025-08-05
214
+ - Add script to chat against file.
215
+
216
+ ## [0.10.1] - 2025-08-05
217
+ - Allow deletion of a space chat.
218
+
219
+ ## [0.10.0] - 2025-08-04
220
+ - Add MCP support
221
+
222
+ ## [0.9.42] - 2025-07-31
223
+ - Fix wrong chat in space example.
224
+
225
+ ## [0.9.41] - 2025-07-31
226
+ - Fix double-slash error in open ai proxy script.
227
+
228
+ ## [0.9.40] - 2025-07-22
229
+ - Fixed bug where get requests send body with the request. This is not allowed by WAF policies.
230
+
231
+ ## [0.9.39] - 2025-07-18
232
+ - Add script to chat in a space.
233
+
234
+ ## [0.9.38] - 2025-07-18
235
+ - [Experimental] Add support for Unique OpenAI proxy. You can now use the OpenAI SDK directly through Unique. Checkout how to do this and a few examples here: `tutorials/unique_basics/sdk_examples/openai_scripts.py`.
236
+
237
+ ## [0.9.37] - 2025-07-10
238
+ - Add `sheetName` property to the `MagicTableSheetIngestParams` object used by function that ingests magic table sheets.
239
+
240
+ ## [0.9.36] - 2025-06-23
241
+ - Allow passing a user id when creating chat completions. This is optional and it does not impact the current behaviour.
242
+
243
+ ## [0.9.35] - 2025-06-18
244
+ - Allow scope access updates (add/remove) on folder based on scope id or path.
245
+
246
+ ## [0.9.34] - 2025-06-17
247
+ - Allow ingestion config updates on folder based on scope id or path.
248
+
249
+ ## [0.9.33] - 2025-06-11
250
+ - Add function to get a folder by id or by path.
251
+
252
+ ## [0.9.32] - 2025-06-11
253
+ - Add function to ingest magic table sheets.
254
+
255
+ ## [0.9.31] - 2025-05-21
256
+ - Add function to update folder access (add or remove).
257
+
258
+ ## [0.9.30] - 2025-05-21
259
+ - Add function to update folder ingestion config.
260
+
261
+ ## [0.9.29] - 2025-05-20
262
+ - Add function to create folder paths if they do not exist.
263
+
264
+ ## [0.9.28] - 2025-05-20
265
+ - Add function to search content info. This also allows filtering content info by metadata info.
266
+
267
+ ## [0.9.27] - 2025-05-14
268
+ - Add the possibility to specify metadata when creating or updating a Content.
269
+
270
+ ## [0.9.26] - 2025-05-13
271
+ - Add the possibility to specify ingestionConfig when creating or updating a Content.
272
+
273
+ ## [0.9.25] - 2025-05-02
274
+ - Fixed typos in `README.md`, including incorrect `sdk.utils` imports and code example errors.
275
+
276
+ ## [0.9.24] - 2025-04-23
277
+ - Make `chatId` property in `Search.CreateParams` optional
278
+
279
+ ## [0.9.23] - 2025-03-25
280
+ - Define programming language classifier explicitly for python 3.11
281
+
282
+ ## [0.9.22] - 2025-02-25
283
+ - update the retry_on_error to only `APIError` and `APIConnectionError` update the `resp["error"]` to be `resp.get("error")` to avoid key error
284
+
285
+ ## [0.9.21] - 2025-02-21
286
+ - Add title parameter and change labels in `MessageAssessment`
287
+
288
+ ## [0.9.20] - 2025-02-01
289
+ - Add url parameter to `MessageAssessment.create_async` and `MessageAssessment.modify_async`
290
+
291
+ ## [0.9.19] - 2025-01-31
292
+ - Add `MessageAssessment` resource
293
+
294
+ ## [0.9.18] - 2025-01-22
295
+ - Removed `Invalid response body from API` from `retry_dict` as it's our own artificail error.
296
+
297
+ ## [0.9.17] - 2025-01-03
298
+ - BREAKING CHANGE!! Removed unused `id` from `ShortTermMemory` create and find methods.
299
+
300
+ ## [0.9.16] - 2024-12-19
301
+ - Corrected return type of `Search.create` and `Search.create_async` to `List[Search]`
302
+ - Retry on `Connection aborted` error
303
+
304
+ ## [0.9.15] - 2024-12-06
305
+ - Add `Internal server error` and `You can retry your request` to the retry logic
306
+
307
+ ## [0.9.14] - 2024-12-06
308
+ - Add `contentIds` to `Search.create` and `Search.create_async`
309
+
310
+ ## [0.9.13] - 2024-10-23
311
+ - Add retry for `5xx` errors, add additional error message.
312
+
313
+ ## [0.9.12] - 2024-11-21
314
+ - Include original error message in returned exceptions
315
+
316
+ ## [0.9.11] - 2024-11-18
317
+ - Add `ingestionConfig` to `UpsertParams.Input` parameters
318
+
319
+ ## [0.9.10] - 2024-10-23
320
+ - Remove `temperature` parameter from `Integrated.chat_stream_completion`, `Integrated.chat_stream_completion_async`, `ChatCompletion.create` and `ChatCompletion.create_async` methods. To use `temperature` parameter, set the attribute in `options` parameter instead.
321
+
322
+ ## [0.9.9] - 2024-10-23
323
+ - Revert deletion of `Message.retrieve` method
324
+
325
+ ## [0.9.8] - 2024-10-16
326
+ - Add `retries` for `_static_request` and `_static_request_async` in `APIResource` - When the error messages contains either `"problem proxying the request"`,
327
+ or `"Upstream service reached a hard timeout"`,
328
+ ## [0.9.7] - 2024-09-23
329
+ - Add `completedAt` to `CreateParams` of `Message`
330
+
331
+ ## [0.9.6] - 2024-09-03
332
+ - Added `metaDataFilter` to `Search` parameters.
333
+
334
+ ## [0.9.5] - 2024-08-07
335
+ - Add `completedAt` to `ModifyParams`
336
+
337
+ ## [0.9.4] - 2024-07-31
338
+ - Add `close` and `close_async` to `http_client`
339
+ - Make `httpx` the default client for async requests
340
+
341
+ ## [0.9.3] - 2024-07-31
342
+ - `Search.create`, `Message`, `ChatCompletion` parameters that were marked `NotRequired` are now also `Optional`
343
+
344
+ ## [0.9.2] - 2024-07-30
345
+ - Bug fix in `Search.create`: langugage -> language
346
+
347
+ ## [0.9.1] - 2024-07-30
348
+ - Added parameters to `Search.create` and `Search.create_async`
349
+ - `language` for full text search
350
+ - `reranker` to reranker search results
351
+
352
+ ## [0.9.0] - 2024-07-29
353
+ - Added the possibility to make async requests to the unique APIs using either aiohttp or httpx as client
354
+
@@ -0,0 +1,4 @@
1
+ # Unique Python SDK
2
+
3
+
4
+ Visit: [https://unique-ag.github.io/](https://unique-ag.github.io/ai/unique-sdk/) for the documentation.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_sdk"
3
- version = "0.10.49"
3
+ version = "0.10.61"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -27,7 +27,7 @@ class LogEntry(TypedDict):
27
27
  createdAt: str
28
28
  actorType: Literal["USER", "SYSTEM", "ASSISTANT", "TOOL"]
29
29
  messageId: NotRequired[str]
30
- details: NotRequired[list[LogDetail]]
30
+ details: NotRequired[LogDetail]
31
31
 
32
32
 
33
33
  class AgenticTableCell(TypedDict, total=False):
@@ -36,7 +36,7 @@ class AgenticTableCell(TypedDict, total=False):
36
36
  columnOrder: int
37
37
  rowLocked: bool
38
38
  text: str
39
- logEntries: list[LogEntry]
39
+ logEntries: list[LogEntry] | None
40
40
 
41
41
 
42
42
  class ColumnMetadataUpdateStatus(TypedDict, total=False):
@@ -73,6 +73,29 @@ class CellRendererTypes(StrEnum):
73
73
  SELECTABLE_CELL_RENDERER = "SelectableCellRenderer"
74
74
 
75
75
 
76
+ class MagicTableAction(StrEnum):
77
+ DELETE_ROW = "DeleteRow"
78
+ DELETE_COLUMN = "DeleteColumn"
79
+ UPDATE_CELL = "UpdateCell"
80
+ ADD_QUESTION_TEXT = "AddQuestionText"
81
+ ADD_META_DATA = "AddMetaData"
82
+ GENERATE_ARTIFACT = "GenerateArtifact"
83
+ SHEET_COMPLETED = "SheetCompleted"
84
+ LIBRARY_SHEET_ROW_VERIFIED = "LibrarySheetRowVerified"
85
+ SHEET_CREATED = "SheetCreated"
86
+
87
+
88
+ class ActivityStatus(StrEnum):
89
+ IN_PROGRESS = "IN_PROGRESS"
90
+ COMPLETED = "COMPLETED"
91
+ FAILED = "FAILED"
92
+
93
+
94
+ class SheetType(StrEnum):
95
+ DEFAULT = "DEFAULT"
96
+ LIBRARY = "LIBRARY"
97
+
98
+
76
99
  class SelectionMethod(StrEnum):
77
100
  DEFAULT = "DEFAULT"
78
101
  MANUAL = "MANUAL"
@@ -105,24 +128,12 @@ class AgenticTable(APIResource["AgenticTable"]):
105
128
  tableId: str
106
129
  rowOrder: int
107
130
  columnOrder: int
131
+ includeRowMetadata: NotRequired[bool]
108
132
 
109
133
  class SetActivityStatus(RequestOptions):
110
134
  tableId: str
111
- activity: Literal[
112
- "DeleteRow",
113
- "DeleteColumn",
114
- "UpdateCell",
115
- "AddQuestionText",
116
- "AddMetaData",
117
- "GenerateArtifact",
118
- "SheetCompleted",
119
- "LibrarySheetRowVerified",
120
- ]
121
- status: Literal[
122
- "IN_PROGRESS",
123
- "COMPLETED",
124
- "FAILED",
125
- ]
135
+ activity: MagicTableAction
136
+ status: ActivityStatus
126
137
  text: str
127
138
 
128
139
  class SetArtifact(RequestOptions):
@@ -200,6 +211,9 @@ class AgenticTable(APIResource["AgenticTable"]):
200
211
  ) -> "AgenticTableCell":
201
212
  """ """
202
213
  url = f"/magic-table/{params['tableId']}/cell?rowOrder={params['rowOrder']}&columnOrder={params['columnOrder']}"
214
+ params.pop("tableId")
215
+ params.pop("rowOrder")
216
+ params.pop("columnOrder")
203
217
  return cast(
204
218
  "AgenticTableCell",
205
219
  await cls._static_request_async(
@@ -207,7 +221,7 @@ class AgenticTable(APIResource["AgenticTable"]):
207
221
  url,
208
222
  user_id,
209
223
  company_id,
210
- params={},
224
+ params=params,
211
225
  ),
212
226
  )
213
227
 
@@ -133,6 +133,7 @@ class Content(APIResource["Content"]):
133
133
  uniqueIngestionMode: str
134
134
  vttConfig: Optional["Content.VttConfig"]
135
135
  wordReadMode: Optional[str]
136
+ hideInChat: Optional[bool]
136
137
 
137
138
  class Input(TypedDict):
138
139
  key: str
@@ -210,20 +211,23 @@ class Content(APIResource["Content"]):
210
211
  columnName: str
211
212
  content: str
212
213
 
213
- class MagicTableSheetTable(TypedDict):
214
+ class MagicTableRow(TypedDict):
214
215
  rowId: str
215
216
  columns: List["Content.MagicTableSheetTableColumn"]
217
+ context: NotRequired[str]
218
+ rowMetadata: NotRequired[str]
216
219
 
217
220
  class MagicTableSheetIngestionConfiguration(TypedDict):
218
221
  columnIdsInMetadata: List[str]
219
222
  columnIdsInChunkText: List[str]
220
223
 
221
224
  class MagicTableSheetIngestParams(TypedDict):
222
- data: List["Content.MagicTableSheetTable"]
225
+ data: List["Content.MagicTableRow"]
223
226
  ingestionConfiguration: "Content.MagicTableSheetIngestionConfiguration"
224
227
  metadata: Dict[str, Optional[str]]
225
228
  scopeId: str
226
229
  sheetName: str
230
+ context: NotRequired[str]
227
231
 
228
232
  class MagicTableSheetRowIdToContentId(TypedDict):
229
233
  rowId: str
@@ -69,6 +69,7 @@ class Folder(APIResource["Folder"]):
69
69
 
70
70
  class CreateParams(RequestOptions):
71
71
  paths: List[str]
72
+ inheritAccess: NotRequired[bool]
72
73
 
73
74
  class FolderInfo(TypedDict):
74
75
  """
@@ -1,5 +1,7 @@
1
1
  from typing import (
2
+ Any,
2
3
  ClassVar,
4
+ Dict,
3
5
  List,
4
6
  Literal,
5
7
  NotRequired,
@@ -55,6 +57,13 @@ class Group(APIResource["Group"]):
55
57
 
56
58
  userIds: List[str]
57
59
 
60
+ class UpdateGroupConfigurationParams(RequestOptions):
61
+ """
62
+ Parameters for updating group configuration.
63
+ """
64
+
65
+ configuration: Dict[str, Any]
66
+
58
67
  class GroupMember(TypedDict):
59
68
  """
60
69
  Represents a member of a group.
@@ -84,6 +93,13 @@ class Group(APIResource["Group"]):
84
93
  createdAt: str
85
94
  updatedAt: str
86
95
 
96
+ class GroupWithConfiguration(Group):
97
+ """
98
+ Represents a group in the company with configuration.
99
+ """
100
+
101
+ configuration: Dict[str, Any]
102
+
87
103
  class Groups(TypedDict):
88
104
  """
89
105
  Response for getting groups.
@@ -367,3 +383,47 @@ class Group(APIResource["Group"]):
367
383
  params=params,
368
384
  ),
369
385
  )
386
+
387
+ @classmethod
388
+ def update_group_configuration(
389
+ cls,
390
+ user_id: str,
391
+ company_id: str,
392
+ group_id: str,
393
+ **params: Unpack["Group.UpdateGroupConfigurationParams"],
394
+ ) -> "Group.GroupWithConfiguration":
395
+ """
396
+ Update group configuration for the specified group.
397
+ """
398
+ return cast(
399
+ "Group.GroupWithConfiguration",
400
+ cls._static_request(
401
+ "patch",
402
+ f"/groups/{group_id}/configuration",
403
+ user_id,
404
+ company_id,
405
+ params=params,
406
+ ),
407
+ )
408
+
409
+ @classmethod
410
+ async def update_group_configuration_async(
411
+ cls,
412
+ user_id: str,
413
+ company_id: str,
414
+ group_id: str,
415
+ **params: Unpack["Group.UpdateGroupConfigurationParams"],
416
+ ) -> "Group.GroupWithConfiguration":
417
+ """
418
+ Async update group configuration for the specified group.
419
+ """
420
+ return cast(
421
+ "Group.GroupWithConfiguration",
422
+ await cls._static_request_async(
423
+ "patch",
424
+ f"/groups/{group_id}/configuration",
425
+ user_id,
426
+ company_id,
427
+ params=params,
428
+ ),
429
+ )
@@ -42,6 +42,7 @@ class Integrated(APIResource["Integrated"]):
42
42
  chunkId: str
43
43
  key: str
44
44
  title: NotRequired["str"]
45
+ description: NotRequired["str"]
45
46
  url: NotRequired["str"]
46
47
 
47
48
  class ChatCompletionRequestMessage(TypedDict, total=False):
@@ -47,10 +47,14 @@ class Message(APIResource["Message"]):
47
47
 
48
48
  class ModifyParams(RequestOptions):
49
49
  chatId: str
50
+ originalText: NotRequired[str | None]
50
51
  text: NotRequired[Optional["str"]]
51
- references: Optional[List["Message.Reference"]]
52
- debugInfo: Optional[Dict[str, Any]]
53
- completedAt: Optional[datetime]
52
+ references: NotRequired[List["Message.Reference"] | None]
53
+ gptRequest: NotRequired[Dict[str, Any] | None]
54
+ debugInfo: NotRequired[Dict[str, Any] | None]
55
+ startedStreamingAt: NotRequired[datetime | None]
56
+ stoppedStreamingAt: NotRequired[datetime | None]
57
+ completedAt: NotRequired[datetime | None]
54
58
 
55
59
  class DeleteParams(RequestOptions):
56
60
  chatId: str
@@ -61,21 +65,16 @@ class Message(APIResource["Message"]):
61
65
  class RetrieveParams(RequestOptions):
62
66
  chatId: str
63
67
 
64
- class CreateEventParams(RequestOptions):
68
+ class CreateEventParams(ModifyParams):
65
69
  messageId: str
66
- chatId: str
67
- originalText: NotRequired[str | None]
68
- text: NotRequired[str | None]
69
- references: NotRequired[List["Message.Reference"] | None]
70
- gptRequest: NotRequired[Dict[str, Any] | None]
71
- debugInfo: NotRequired[Dict[str, Any] | None]
72
- completedAt: NotRequired[datetime | None]
73
70
 
74
71
  chatId: str
75
72
  text: Optional[str]
76
73
  role: Literal["SYSTEM", "USER", "ASSISTANT"]
77
74
  gptRequest: Optional[Dict[str, Any]]
78
75
  debugInfo: Optional[Dict[str, Any]]
76
+ startedStreamingAt: Optional[datetime]
77
+ stoppedStreamingAt: Optional[datetime]
79
78
 
80
79
  @classmethod
81
80
  def list(