unique_sdk 0.9.32__py3-none-any.whl → 0.9.33__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.
@@ -78,6 +78,19 @@ class Folder(APIResource["Folder"]):
78
78
  class CreateParams(RequestOptions):
79
79
  paths: List[str]
80
80
 
81
+ class FolderInfo(TypedDict):
82
+ """
83
+ Represents the information of a folder.
84
+ """
85
+
86
+ id: str
87
+ name: str
88
+ ingestionConfig: "Folder.IngestionConfig"
89
+ createdAt: str | None
90
+ updatedAt: str | None
91
+ parentId: str | None
92
+ externalId: str | None
93
+
81
94
  id: str
82
95
  name: str
83
96
  scopeAccess: List[ScopeAccess]
@@ -107,6 +120,50 @@ class Folder(APIResource["Folder"]):
107
120
  scopeAccesses: List["Folder.ScopeAccess"]
108
121
  applyToSubScopes: bool
109
122
 
123
+ class GetParams(RequestOptions):
124
+ """
125
+ Parameters for getting a folder by its ID or path.
126
+ """
127
+
128
+ scopeId: str | None = None
129
+ folderPath: str | None = None
130
+
131
+ @classmethod
132
+ def get_info(
133
+ cls, user_id: str, company_id: str, **params: Unpack["Folder.GetParams"]
134
+ ) -> "Folder.FolderInfo":
135
+ """
136
+ Get a folder by its ID or path.
137
+ """
138
+ return cast(
139
+ "Folder.FolderInfo",
140
+ cls._static_request(
141
+ "get",
142
+ "/folder/info",
143
+ user_id,
144
+ company_id,
145
+ params=params,
146
+ ),
147
+ )
148
+
149
+ @classmethod
150
+ async def get_info_async(
151
+ cls, user_id: str, company_id: str, **params: Unpack["Folder.GetParams"]
152
+ ) -> "Folder.FolderInfo":
153
+ """
154
+ Async get a folder by its ID or path.
155
+ """
156
+ return cast(
157
+ "Folder.FolderInfo",
158
+ await cls._static_request_async(
159
+ "get",
160
+ "/folder/info",
161
+ user_id,
162
+ company_id,
163
+ params=params,
164
+ ),
165
+ )
166
+
110
167
  @classmethod
111
168
  def create_paths(
112
169
  cls, user_id: str, company_id: str, **params: Unpack["Folder.CreateParams"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.9.32
3
+ Version: 0.9.33
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -470,6 +470,30 @@ Allows you to ingest a magic table sheet, each row is processed and converted in
470
470
 
471
471
  ### Folder
472
472
 
473
+ #### `unique_sdk.Folder.get`
474
+
475
+ Get a folder by scope id or by path.
476
+
477
+ By scope id:
478
+
479
+ ```python
480
+ unique_sdk.Folder.get_info(
481
+ user_id=user_id,
482
+ company_id=company_id,
483
+ scopeId="scope_w78wfn114va9o22s13r03yq",
484
+ )
485
+ ```
486
+
487
+ By path:
488
+
489
+ ```python
490
+ unique_sdk.Folder.get_info(
491
+ user_id=user_id,
492
+ company_id=company_id,
493
+ folderPath="/Company/Atlas/Due Dilligence/Arch,
494
+ )
495
+ ```
496
+
473
497
  #### `unique_sdk.Folder.create_paths`
474
498
 
475
499
  Create each folder in the provided list of paths if it does not already exist.
@@ -1146,6 +1170,9 @@ All notable changes to this project will be documented in this file.
1146
1170
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1147
1171
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1148
1172
 
1173
+ ## [0.9.33] - 2025-06-11
1174
+ - Add function to get a folder by id or by path.
1175
+
1149
1176
  ## [0.9.32] - 2025-06-11
1150
1177
  - Add function to ingest magic table sheets.
1151
1178
 
@@ -19,7 +19,7 @@ unique_sdk/api_resources/_chat_completion.py,sha256=hAPPHxoljcoHeTboxoJkcXgpqA2h
19
19
  unique_sdk/api_resources/_content.py,sha256=BLv4qXdazSYy_L0Z9ihr0hquE3xFIY32CBpfbOkxSpE,9527
20
20
  unique_sdk/api_resources/_embedding.py,sha256=C6qak7cCUBMBINfPhgH8taCJZ9n6w1MUElqDJJ8dG10,1281
21
21
  unique_sdk/api_resources/_event.py,sha256=bpWF9vstdoAWbUzr-iiGP713ceP0zPk77GJXiImf9zg,374
22
- unique_sdk/api_resources/_folder.py,sha256=E-v4JAixhtYsOZXbEOTO8gyykPzPr62MraoPPy01vn8,6900
22
+ unique_sdk/api_resources/_folder.py,sha256=RYX7gQarTwu3Q-UD8YQdW0DQo3uU3Zwzl_nM-IINYJM,8360
23
23
  unique_sdk/api_resources/_integrated.py,sha256=l1vS8kJiSLie61mqDO3KI2MNmYwFydmCIoJpP_tPhSI,2956
24
24
  unique_sdk/api_resources/_message.py,sha256=gEDIzg3METZU2k7m69meAuf0IWmZxnYOjbBKPRMwPYE,7688
25
25
  unique_sdk/api_resources/_message_assessment.py,sha256=SSfx6eW7zb_GKe8cFJzCqW-t-_eWEXxKP5cnIb0DhIc,2276
@@ -30,7 +30,7 @@ unique_sdk/utils/chat_history.py,sha256=5UqL9hF1O9pV7skbNOlEibF5rHdYsmG3m5-YEPUo
30
30
  unique_sdk/utils/file_io.py,sha256=YY8B7VJcTLOPmCXByiOfNerXGlAtjCC5EVNmAbQJ3dQ,4306
31
31
  unique_sdk/utils/sources.py,sha256=wfboE-neMKa0Wuq9QzfAEFMkNLrIrmm0v-QF33sLo6k,4952
32
32
  unique_sdk/utils/token.py,sha256=AzKuAA1AwBtnvSFxGcsHLpxXr_wWE5Mj4jYBbOz2ljA,1740
33
- unique_sdk-0.9.32.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
34
- unique_sdk-0.9.32.dist-info/METADATA,sha256=Wrj-GZIv--qHQYw3KeN7g4gW0VQWypWm3ljOqxOD84M,36689
35
- unique_sdk-0.9.32.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- unique_sdk-0.9.32.dist-info/RECORD,,
33
+ unique_sdk-0.9.33.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
34
+ unique_sdk-0.9.33.dist-info/METADATA,sha256=V5_YPqBgfe0HcpWQokIZMmiK2WbHJtmoWvvH8TzGkks,37133
35
+ unique_sdk-0.9.33.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ unique_sdk-0.9.33.dist-info/RECORD,,