unique_sdk 0.9.32__tar.gz → 0.9.33__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.

Potentially problematic release.


This version of unique_sdk might be problematic. Click here for more details.

Files changed (37) hide show
  1. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/CHANGELOG.md +3 -0
  2. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/PKG-INFO +28 -1
  3. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/README.md +24 -0
  4. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/pyproject.toml +2 -2
  5. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_folder.py +57 -0
  6. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/LICENSE +0 -0
  7. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/__init__.py +0 -0
  8. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_api_requestor.py +0 -0
  9. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_api_resource.py +0 -0
  10. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_api_version.py +0 -0
  11. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_error.py +0 -0
  12. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_http_client.py +0 -0
  13. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_list_object.py +0 -0
  14. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_object_classes.py +0 -0
  15. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_request_options.py +0 -0
  16. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_unique_object.py +0 -0
  17. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_unique_ql.py +0 -0
  18. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_unique_response.py +0 -0
  19. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_util.py +0 -0
  20. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_version.py +0 -0
  21. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/_webhook.py +0 -0
  22. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/__init__.py +0 -0
  23. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_acronyms.py +0 -0
  24. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_chat_completion.py +0 -0
  25. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_content.py +0 -0
  26. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_embedding.py +0 -0
  27. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_event.py +0 -0
  28. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_integrated.py +0 -0
  29. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_message.py +0 -0
  30. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_message_assessment.py +0 -0
  31. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_search.py +0 -0
  32. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_search_string.py +0 -0
  33. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/api_resources/_short_term_memory.py +0 -0
  34. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/utils/chat_history.py +0 -0
  35. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/utils/file_io.py +0 -0
  36. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/utils/sources.py +0 -0
  37. {unique_sdk-0.9.32 → unique_sdk-0.9.33}/unique_sdk/utils/token.py +0 -0
@@ -5,6 +5,9 @@ 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.9.33] - 2025-06-11
9
+ - Add function to get a folder by id or by path.
10
+
8
11
  ## [0.9.32] - 2025-06-11
9
12
  - Add function to ingest magic table sheets.
10
13
 
@@ -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
 
@@ -454,6 +454,30 @@ Allows you to ingest a magic table sheet, each row is processed and converted in
454
454
 
455
455
  ### Folder
456
456
 
457
+ #### `unique_sdk.Folder.get`
458
+
459
+ Get a folder by scope id or by path.
460
+
461
+ By scope id:
462
+
463
+ ```python
464
+ unique_sdk.Folder.get_info(
465
+ user_id=user_id,
466
+ company_id=company_id,
467
+ scopeId="scope_w78wfn114va9o22s13r03yq",
468
+ )
469
+ ```
470
+
471
+ By path:
472
+
473
+ ```python
474
+ unique_sdk.Folder.get_info(
475
+ user_id=user_id,
476
+ company_id=company_id,
477
+ folderPath="/Company/Atlas/Due Dilligence/Arch,
478
+ )
479
+ ```
480
+
457
481
  #### `unique_sdk.Folder.create_paths`
458
482
 
459
483
  Create each folder in the provided list of paths if it does not already exist.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_sdk"
3
- version = "0.9.32"
3
+ version = "0.9.33"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -20,7 +20,7 @@ requests = "^2.32.3"
20
20
 
21
21
 
22
22
  [tool.poetry.group.dev.dependencies]
23
- ruff = "0.4.10"
23
+ ruff = "0.11.7"
24
24
  pytest = "^8.0"
25
25
  tox = "^4.11.4"
26
26
  pyright = "^1.1.341"
@@ -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"]
File without changes