unique_sdk 0.10.21__py3-none-any.whl → 0.10.22__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.
@@ -128,9 +128,10 @@ class Content(APIResource["Content"]):
128
128
  fileUrl: Optional[str]
129
129
 
130
130
  class UpdateParams(RequestOptions):
131
- contentId: str | None = None
132
- ownerId: str | None = None
133
- title: str | None = None
131
+ contentId: NotRequired[str]
132
+ ownerId: NotRequired[str]
133
+ title: NotRequired[str]
134
+ metadata: NotRequired[dict[str, str | None]]
134
135
 
135
136
  class Chunk(TypedDict):
136
137
  id: str
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.10.21
3
+ Version: 0.10.22
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -565,11 +565,13 @@ Allows you to update a file specified by its `contentId`.
565
565
  Currently, the following updates are supported:
566
566
 
567
567
  Title update:
568
- - `title` optional, allows updating the title of the folder
568
+ - `title` optional, allows updating the title of the file
569
569
 
570
570
  Move the file to a different folder. this can be done by specifying either the `ownerId`.
571
571
  - `ownerId` optional, allows moving the file to a different folder. Represents the new folder for the file and it should be the id of a folder e.g.: `scope_dhjfieurfloakmdle`.
572
572
 
573
+ Metadata update:
574
+ - `metadata` optional, allows updating the metadata of the file. Default metadata can not be ovrriden. (Available with release >.40)
573
575
 
574
576
  Example of moving a file specified by its content id.
575
577
 
@@ -578,7 +580,10 @@ unique_sdk.Content.update(
578
580
  user_id=user_id,
579
581
  company_id=company_id,
580
582
  contentId="cont_ok2343q5owbce80w78hudawu5",
581
- ownerId="scope_e68yz5asho7glfh7c7d041el"
583
+ ownerId="scope_e68yz5asho7glfh7c7d041el",
584
+ metadata={
585
+ "quarter": "q1",
586
+ }
582
587
  )
583
588
  ```
584
589
 
@@ -1578,6 +1583,9 @@ All notable changes to this project will be documented in this file.
1578
1583
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1579
1584
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1580
1585
 
1586
+ ## [0.10.22] - 2025-09-12
1587
+ - Add support for metadata update of a file.
1588
+
1581
1589
  ## [0.10.21] - 2025-09-04
1582
1590
  - Update Chat Completions API types and add support for reasoning effort.
1583
1591
 
@@ -17,7 +17,7 @@ unique_sdk/api_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
17
17
  unique_sdk/api_resources/_acronyms.py,sha256=GIU1XH1flGWQYcpsFqTYwg4ioIGxVmb15tux84nmhEg,891
18
18
  unique_sdk/api_resources/_agentic_table.py,sha256=8-_f7t-m_iiiOj2835iESoxz91YRxl4-tkxpzQbgdcI,9958
19
19
  unique_sdk/api_resources/_chat_completion.py,sha256=dEaTPfTxAXAuLODt6b5c0N4pVzcqbSqKhMoSILnPEVU,4000
20
- unique_sdk/api_resources/_content.py,sha256=Vi-wZ-T5f-OqBGXkA3B9dALoFHer5F8LAQlc5x6pcls,14109
20
+ unique_sdk/api_resources/_content.py,sha256=pkRKOVNOB-7vaSPjXAHuT0RWXvduQ3-OMzGsDRSMvb4,14159
21
21
  unique_sdk/api_resources/_embedding.py,sha256=C6qak7cCUBMBINfPhgH8taCJZ9n6w1MUElqDJJ8dG10,1281
22
22
  unique_sdk/api_resources/_event.py,sha256=bpWF9vstdoAWbUzr-iiGP713ceP0zPk77GJXiImf9zg,374
23
23
  unique_sdk/api_resources/_folder.py,sha256=mIyWaxJtIHlDLPFZ0FY1U9b3dmtmIcjDEbgOZtLA-DI,12871
@@ -36,7 +36,7 @@ unique_sdk/utils/chat_in_space.py,sha256=NrH9e2lvXtj_oePG0RWUqFoTanMblF8-VgtnVfs
36
36
  unique_sdk/utils/file_io.py,sha256=YY8B7VJcTLOPmCXByiOfNerXGlAtjCC5EVNmAbQJ3dQ,4306
37
37
  unique_sdk/utils/sources.py,sha256=DoxxhMLcLhmDfNarjXa41H4JD2GSSDywr71hiC-4pYc,4952
38
38
  unique_sdk/utils/token.py,sha256=AzKuAA1AwBtnvSFxGcsHLpxXr_wWE5Mj4jYBbOz2ljA,1740
39
- unique_sdk-0.10.21.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
40
- unique_sdk-0.10.21.dist-info/METADATA,sha256=Jr1CrOl2dawLrTd5MOW1laApnhRwoGugtWlelMc1Q1w,54756
41
- unique_sdk-0.10.21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
42
- unique_sdk-0.10.21.dist-info/RECORD,,
39
+ unique_sdk-0.10.22.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
40
+ unique_sdk-0.10.22.dist-info/METADATA,sha256=NMLZDcm0_2RpudaxEx6RCKYnOeYSSoG_I5MrTds4q6c,55023
41
+ unique_sdk-0.10.22.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
42
+ unique_sdk-0.10.22.dist-info/RECORD,,