unique_sdk 0.10.62__py3-none-any.whl → 0.10.66__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.
- unique_sdk/api_resources/_content.py +55 -1
- unique_sdk/api_resources/_folder.py +134 -0
- unique_sdk/api_resources/_mcp.py +2 -0
- unique_sdk/api_resources/_space.py +194 -9
- {unique_sdk-0.10.62.dist-info → unique_sdk-0.10.66.dist-info}/METADATA +14 -2
- {unique_sdk-0.10.62.dist-info → unique_sdk-0.10.66.dist-info}/RECORD +8 -8
- {unique_sdk-0.10.62.dist-info → unique_sdk-0.10.66.dist-info}/LICENSE +0 -0
- {unique_sdk-0.10.62.dist-info → unique_sdk-0.10.66.dist-info}/WHEEL +0 -0
|
@@ -30,6 +30,7 @@ class Content(APIResource["Content"]):
|
|
|
30
30
|
writeUrl: Optional[str]
|
|
31
31
|
readUrl: Optional[str]
|
|
32
32
|
expiredAt: Optional[str]
|
|
33
|
+
appliedIngestionConfig: Optional[Dict[str, Any]]
|
|
33
34
|
|
|
34
35
|
class QueryMode(Enum):
|
|
35
36
|
Default = "default"
|
|
@@ -110,6 +111,7 @@ class Content(APIResource["Content"]):
|
|
|
110
111
|
skip: NotRequired[int | None]
|
|
111
112
|
take: NotRequired[int | None]
|
|
112
113
|
parentId: NotRequired[str | None]
|
|
114
|
+
parentFolderPath: NotRequired[str | None]
|
|
113
115
|
|
|
114
116
|
class CustomApiOptions(TypedDict):
|
|
115
117
|
apiIdentifier: str
|
|
@@ -149,6 +151,8 @@ class Content(APIResource["Content"]):
|
|
|
149
151
|
class UpsertParams(RequestOptions):
|
|
150
152
|
input: "Content.Input"
|
|
151
153
|
scopeId: NotRequired[str | None]
|
|
154
|
+
parentFolderPath: NotRequired[str | None]
|
|
155
|
+
createFolderIfNotExists: NotRequired[bool | None]
|
|
152
156
|
chatId: NotRequired[str | None]
|
|
153
157
|
sourceOwnerType: NotRequired[str | None]
|
|
154
158
|
storeInternally: NotRequired[bool | None]
|
|
@@ -315,6 +319,16 @@ class Content(APIResource["Content"]):
|
|
|
315
319
|
company_id: str,
|
|
316
320
|
**params: Unpack["Content.ContentInfosParams"],
|
|
317
321
|
) -> "Content.PaginatedContentInfos":
|
|
322
|
+
parent_id = unique_sdk.Folder.resolve_scope_id_from_folder_path(
|
|
323
|
+
user_id=user_id,
|
|
324
|
+
company_id=company_id,
|
|
325
|
+
scope_id=params.get("parentId"),
|
|
326
|
+
folder_path=params.get("parentFolderPath"),
|
|
327
|
+
)
|
|
328
|
+
params.pop("parentFolderPath", None)
|
|
329
|
+
if parent_id:
|
|
330
|
+
params["parentId"] = parent_id
|
|
331
|
+
|
|
318
332
|
return cast(
|
|
319
333
|
Content.PaginatedContentInfos,
|
|
320
334
|
cls._static_request(
|
|
@@ -333,6 +347,16 @@ class Content(APIResource["Content"]):
|
|
|
333
347
|
company_id: str,
|
|
334
348
|
**params: Unpack["Content.ContentInfosParams"],
|
|
335
349
|
) -> "Content.PaginatedContentInfos":
|
|
350
|
+
parent_id = await unique_sdk.Folder.resolve_scope_id_from_folder_path_async(
|
|
351
|
+
user_id=user_id,
|
|
352
|
+
company_id=company_id,
|
|
353
|
+
scope_id=params.get("parentId"),
|
|
354
|
+
folder_path=params.get("parentFolderPath"),
|
|
355
|
+
)
|
|
356
|
+
params.pop("parentFolderPath", None)
|
|
357
|
+
if parent_id:
|
|
358
|
+
params["parentId"] = parent_id
|
|
359
|
+
|
|
336
360
|
return cast(
|
|
337
361
|
Content.PaginatedContentInfos,
|
|
338
362
|
await cls._static_request_async(
|
|
@@ -359,6 +383,19 @@ class Content(APIResource["Content"]):
|
|
|
359
383
|
if "description" in params["input"] and not params["input"]["description"]:
|
|
360
384
|
params["input"].pop("description")
|
|
361
385
|
|
|
386
|
+
create_folder = params.get("createFolderIfNotExists")
|
|
387
|
+
scope_id = unique_sdk.Folder.resolve_scope_id_from_folder_path_with_create(
|
|
388
|
+
user_id=user_id,
|
|
389
|
+
company_id=company_id,
|
|
390
|
+
scope_id=params.get("scopeId"),
|
|
391
|
+
folder_path=params.get("parentFolderPath"),
|
|
392
|
+
create_if_not_exists=create_folder if create_folder is not None else True,
|
|
393
|
+
)
|
|
394
|
+
params.pop("parentFolderPath", None)
|
|
395
|
+
params.pop("createFolderIfNotExists", None)
|
|
396
|
+
if scope_id:
|
|
397
|
+
params["scopeId"] = scope_id
|
|
398
|
+
|
|
362
399
|
return cast(
|
|
363
400
|
"Content",
|
|
364
401
|
cls._static_request(
|
|
@@ -385,6 +422,23 @@ class Content(APIResource["Content"]):
|
|
|
385
422
|
if "description" in params["input"] and not params["input"]["description"]:
|
|
386
423
|
params["input"].pop("description")
|
|
387
424
|
|
|
425
|
+
create_folder = params.get("createFolderIfNotExists")
|
|
426
|
+
scope_id = (
|
|
427
|
+
await unique_sdk.Folder.resolve_scope_id_from_folder_path_with_create_async(
|
|
428
|
+
user_id=user_id,
|
|
429
|
+
company_id=company_id,
|
|
430
|
+
scope_id=params.get("scopeId"),
|
|
431
|
+
folder_path=params.get("parentFolderPath"),
|
|
432
|
+
create_if_not_exists=create_folder
|
|
433
|
+
if create_folder is not None
|
|
434
|
+
else True,
|
|
435
|
+
)
|
|
436
|
+
)
|
|
437
|
+
params.pop("parentFolderPath", None)
|
|
438
|
+
params.pop("createFolderIfNotExists", None)
|
|
439
|
+
if scope_id:
|
|
440
|
+
params["scopeId"] = scope_id
|
|
441
|
+
|
|
388
442
|
return cast(
|
|
389
443
|
"Content",
|
|
390
444
|
await cls._static_request_async(
|
|
@@ -481,7 +535,7 @@ class Content(APIResource["Content"]):
|
|
|
481
535
|
params.get("contentId"),
|
|
482
536
|
params.get("filePath"),
|
|
483
537
|
)
|
|
484
|
-
owner_id = unique_sdk.Folder.
|
|
538
|
+
owner_id = await unique_sdk.Folder.resolve_scope_id_from_folder_path_async(
|
|
485
539
|
user_id,
|
|
486
540
|
company_id,
|
|
487
541
|
params.get("ownerId"),
|
|
@@ -157,6 +157,7 @@ class Folder(APIResource["Folder"]):
|
|
|
157
157
|
"""
|
|
158
158
|
|
|
159
159
|
parentId: NotRequired[str]
|
|
160
|
+
parentFolderPath: NotRequired[str]
|
|
160
161
|
take: NotRequired[int]
|
|
161
162
|
skip: NotRequired[int]
|
|
162
163
|
|
|
@@ -268,6 +269,16 @@ class Folder(APIResource["Folder"]):
|
|
|
268
269
|
"""
|
|
269
270
|
Get paginated folders based on parentId. If the parentId is not defined, the root folders will be returned.
|
|
270
271
|
"""
|
|
272
|
+
parent_id = cls.resolve_scope_id_from_folder_path(
|
|
273
|
+
user_id=user_id,
|
|
274
|
+
company_id=company_id,
|
|
275
|
+
scope_id=params.get("parentId"),
|
|
276
|
+
folder_path=params.get("parentFolderPath"),
|
|
277
|
+
)
|
|
278
|
+
params.pop("parentFolderPath", None)
|
|
279
|
+
if parent_id:
|
|
280
|
+
params["parentId"] = parent_id
|
|
281
|
+
|
|
271
282
|
return cast(
|
|
272
283
|
"Folder.FolderInfos",
|
|
273
284
|
cls._static_request(
|
|
@@ -286,6 +297,16 @@ class Folder(APIResource["Folder"]):
|
|
|
286
297
|
"""
|
|
287
298
|
Async get paginated folders based on parentId. If the parentId is not defined, the root folders will be returned.
|
|
288
299
|
"""
|
|
300
|
+
parent_id = await cls.resolve_scope_id_from_folder_path_async(
|
|
301
|
+
user_id=user_id,
|
|
302
|
+
company_id=company_id,
|
|
303
|
+
scope_id=params.get("parentId"),
|
|
304
|
+
folder_path=params.get("parentFolderPath"),
|
|
305
|
+
)
|
|
306
|
+
params.pop("parentFolderPath", None)
|
|
307
|
+
if parent_id:
|
|
308
|
+
params["parentId"] = parent_id
|
|
309
|
+
|
|
289
310
|
return cast(
|
|
290
311
|
"Folder.FolderInfos",
|
|
291
312
|
await cls._static_request_async(
|
|
@@ -617,3 +638,116 @@ class Folder(APIResource["Folder"]):
|
|
|
617
638
|
)
|
|
618
639
|
return resolved_id
|
|
619
640
|
return None
|
|
641
|
+
|
|
642
|
+
@classmethod
|
|
643
|
+
def resolve_scope_id_from_folder_path_with_create(
|
|
644
|
+
cls,
|
|
645
|
+
user_id: str,
|
|
646
|
+
company_id: str,
|
|
647
|
+
scope_id: str | None = None,
|
|
648
|
+
folder_path: str | None = None,
|
|
649
|
+
create_if_not_exists: bool = True,
|
|
650
|
+
) -> str | None:
|
|
651
|
+
if scope_id:
|
|
652
|
+
return scope_id
|
|
653
|
+
if folder_path:
|
|
654
|
+
try:
|
|
655
|
+
folder_info = cls.get_info(
|
|
656
|
+
user_id=user_id,
|
|
657
|
+
company_id=company_id,
|
|
658
|
+
folderPath=folder_path,
|
|
659
|
+
)
|
|
660
|
+
resolved_id = folder_info.get("id")
|
|
661
|
+
if resolved_id:
|
|
662
|
+
return resolved_id
|
|
663
|
+
except Exception:
|
|
664
|
+
pass
|
|
665
|
+
|
|
666
|
+
if create_if_not_exists:
|
|
667
|
+
result = cls.create_paths(
|
|
668
|
+
user_id=user_id,
|
|
669
|
+
company_id=company_id,
|
|
670
|
+
paths=[folder_path],
|
|
671
|
+
)
|
|
672
|
+
created_folders = result.get("createdFolders", [])
|
|
673
|
+
if created_folders:
|
|
674
|
+
return created_folders[-1]["id"]
|
|
675
|
+
raise ValueError(
|
|
676
|
+
f"Failed to create folder with folderPath: {folder_path}"
|
|
677
|
+
)
|
|
678
|
+
|
|
679
|
+
raise ValueError(f"Could not find a folder with folderPath: {folder_path}")
|
|
680
|
+
return None
|
|
681
|
+
|
|
682
|
+
@classmethod
|
|
683
|
+
async def resolve_scope_id_from_folder_path_async(
|
|
684
|
+
cls,
|
|
685
|
+
user_id: str,
|
|
686
|
+
company_id: str,
|
|
687
|
+
scope_id: str | None = None,
|
|
688
|
+
folder_path: str | None = None,
|
|
689
|
+
) -> str | None:
|
|
690
|
+
"""
|
|
691
|
+
Async version of resolve_scope_id_from_folder_path.
|
|
692
|
+
Returns the scopeId to use: if scope_id is provided, returns it;
|
|
693
|
+
if not, but folder_path is provided, resolves and returns the id for that folder path.
|
|
694
|
+
|
|
695
|
+
Returns:
|
|
696
|
+
str: The resolved folder ID.
|
|
697
|
+
None: Failed to resolve a folder ID (e.g., folder_path not found or not provided).
|
|
698
|
+
"""
|
|
699
|
+
if scope_id:
|
|
700
|
+
return scope_id
|
|
701
|
+
if folder_path:
|
|
702
|
+
folder_info = await cls.get_info_async(
|
|
703
|
+
user_id=user_id,
|
|
704
|
+
company_id=company_id,
|
|
705
|
+
folderPath=folder_path,
|
|
706
|
+
)
|
|
707
|
+
resolved_id = folder_info.get("id")
|
|
708
|
+
if not resolved_id:
|
|
709
|
+
raise ValueError(
|
|
710
|
+
f"Could not find a folder with folderPath: {folder_path}"
|
|
711
|
+
)
|
|
712
|
+
return resolved_id
|
|
713
|
+
return None
|
|
714
|
+
|
|
715
|
+
@classmethod
|
|
716
|
+
async def resolve_scope_id_from_folder_path_with_create_async(
|
|
717
|
+
cls,
|
|
718
|
+
user_id: str,
|
|
719
|
+
company_id: str,
|
|
720
|
+
scope_id: str | None = None,
|
|
721
|
+
folder_path: str | None = None,
|
|
722
|
+
create_if_not_exists: bool = True,
|
|
723
|
+
) -> str | None:
|
|
724
|
+
if scope_id:
|
|
725
|
+
return scope_id
|
|
726
|
+
if folder_path:
|
|
727
|
+
try:
|
|
728
|
+
folder_info = await cls.get_info_async(
|
|
729
|
+
user_id=user_id,
|
|
730
|
+
company_id=company_id,
|
|
731
|
+
folderPath=folder_path,
|
|
732
|
+
)
|
|
733
|
+
resolved_id = folder_info.get("id")
|
|
734
|
+
if resolved_id:
|
|
735
|
+
return resolved_id
|
|
736
|
+
except Exception:
|
|
737
|
+
pass
|
|
738
|
+
|
|
739
|
+
if create_if_not_exists:
|
|
740
|
+
result = await cls.create_paths_async(
|
|
741
|
+
user_id=user_id,
|
|
742
|
+
company_id=company_id,
|
|
743
|
+
paths=[folder_path],
|
|
744
|
+
)
|
|
745
|
+
created_folders = result.get("createdFolders", [])
|
|
746
|
+
if created_folders:
|
|
747
|
+
return created_folders[-1]["id"]
|
|
748
|
+
raise ValueError(
|
|
749
|
+
f"Failed to create folder with folderPath: {folder_path}"
|
|
750
|
+
)
|
|
751
|
+
|
|
752
|
+
raise ValueError(f"Could not find a folder with folderPath: {folder_path}")
|
|
753
|
+
return None
|
unique_sdk/api_resources/_mcp.py
CHANGED
|
@@ -18,6 +18,43 @@ from unique_sdk._request_options import RequestOptions
|
|
|
18
18
|
class Space(APIResource["Space"]):
|
|
19
19
|
OBJECT_NAME: ClassVar[Literal["space"]] = "space"
|
|
20
20
|
|
|
21
|
+
class ModuleParams(TypedDict):
|
|
22
|
+
name: str
|
|
23
|
+
description: NotRequired[Optional[str]]
|
|
24
|
+
weight: NotRequired[Optional[int]]
|
|
25
|
+
isExternal: NotRequired[Optional[bool]]
|
|
26
|
+
isCustomInstructionEnabled: NotRequired[Optional[bool]]
|
|
27
|
+
configuration: NotRequired[Optional[Dict[str, Any]]]
|
|
28
|
+
toolDefinition: NotRequired[Optional[Dict[str, Any]]]
|
|
29
|
+
|
|
30
|
+
class CreateSpaceParams(RequestOptions):
|
|
31
|
+
name: str
|
|
32
|
+
fallbackModule: str
|
|
33
|
+
modules: List["Space.ModuleParams"]
|
|
34
|
+
explanation: NotRequired[Optional[str]]
|
|
35
|
+
alert: NotRequired[Optional[str]]
|
|
36
|
+
chatUpload: NotRequired[Optional[Literal["ENABLED", "DISABLED"]]]
|
|
37
|
+
languageModel: NotRequired[Optional[str]]
|
|
38
|
+
isExternal: NotRequired[Optional[bool]]
|
|
39
|
+
isPinned: NotRequired[Optional[bool]]
|
|
40
|
+
uiType: NotRequired[
|
|
41
|
+
Optional[
|
|
42
|
+
Literal["MAGIC_TABLE", "UNIQUE_CUSTOM", "TRANSLATION", "UNIQUE_AI"]
|
|
43
|
+
]
|
|
44
|
+
]
|
|
45
|
+
settings: NotRequired[Optional[Dict[str, Any]]]
|
|
46
|
+
|
|
47
|
+
class AccessEntry(TypedDict):
|
|
48
|
+
entityId: str
|
|
49
|
+
entityType: Literal["USER", "GROUP"]
|
|
50
|
+
type: Literal["USE", "MANAGE", "UPLOAD"]
|
|
51
|
+
|
|
52
|
+
class AddSpaceAccessParams(RequestOptions):
|
|
53
|
+
access: List["Space.AccessEntry"]
|
|
54
|
+
|
|
55
|
+
class DeleteSpaceAccessParams(RequestOptions):
|
|
56
|
+
accessIds: List[str]
|
|
57
|
+
|
|
21
58
|
class CreateMessageParams(RequestOptions):
|
|
22
59
|
"""
|
|
23
60
|
Parameters for querying the assistant for a message.
|
|
@@ -104,9 +141,9 @@ class Space(APIResource["Space"]):
|
|
|
104
141
|
messages: List["Space.Message"]
|
|
105
142
|
totalCount: int
|
|
106
143
|
|
|
107
|
-
class
|
|
144
|
+
class McpServer(TypedDict):
|
|
108
145
|
"""
|
|
109
|
-
Represents an MCP server associated with
|
|
146
|
+
Represents an MCP server associated with a space.
|
|
110
147
|
"""
|
|
111
148
|
|
|
112
149
|
id: str
|
|
@@ -149,16 +186,18 @@ class Space(APIResource["Space"]):
|
|
|
149
186
|
createdAt: str
|
|
150
187
|
updatedAt: str
|
|
151
188
|
|
|
152
|
-
class
|
|
153
|
-
"""
|
|
154
|
-
Represents access control for a space.
|
|
155
|
-
"""
|
|
156
|
-
|
|
189
|
+
class Access(TypedDict):
|
|
157
190
|
id: str
|
|
158
191
|
entityId: str
|
|
159
192
|
entityType: str
|
|
160
193
|
type: str
|
|
161
194
|
|
|
195
|
+
class SpaceAccessResponse(TypedDict):
|
|
196
|
+
access: List["Space.Access"]
|
|
197
|
+
|
|
198
|
+
class DeleteSpaceAccessResponse(TypedDict):
|
|
199
|
+
success: bool
|
|
200
|
+
|
|
162
201
|
id: str
|
|
163
202
|
name: str
|
|
164
203
|
defaultForCompanyId: Optional[str]
|
|
@@ -177,10 +216,10 @@ class Space(APIResource["Space"]):
|
|
|
177
216
|
isPinned: bool
|
|
178
217
|
uiType: str
|
|
179
218
|
settings: Optional[Dict[str, Any]]
|
|
180
|
-
assistantMcpServers: List["Space.
|
|
219
|
+
assistantMcpServers: List["Space.McpServer"]
|
|
181
220
|
modules: List["Space.Module"]
|
|
182
221
|
scopeRules: List["Space.ScopeRule"]
|
|
183
|
-
assistantAccess: List["Space.
|
|
222
|
+
assistantAccess: List["Space.Access"]
|
|
184
223
|
createdAt: str
|
|
185
224
|
updatedAt: str
|
|
186
225
|
|
|
@@ -385,3 +424,149 @@ class Space(APIResource["Space"]):
|
|
|
385
424
|
company_id,
|
|
386
425
|
),
|
|
387
426
|
)
|
|
427
|
+
|
|
428
|
+
@classmethod
|
|
429
|
+
def create_space(
|
|
430
|
+
cls,
|
|
431
|
+
user_id: str,
|
|
432
|
+
company_id: str,
|
|
433
|
+
**params: Unpack["Space.CreateSpaceParams"],
|
|
434
|
+
) -> "Space":
|
|
435
|
+
return cast(
|
|
436
|
+
"Space",
|
|
437
|
+
cls._static_request(
|
|
438
|
+
"post",
|
|
439
|
+
"/space",
|
|
440
|
+
user_id,
|
|
441
|
+
company_id,
|
|
442
|
+
params=params,
|
|
443
|
+
),
|
|
444
|
+
)
|
|
445
|
+
|
|
446
|
+
@classmethod
|
|
447
|
+
async def create_space_async(
|
|
448
|
+
cls,
|
|
449
|
+
user_id: str,
|
|
450
|
+
company_id: str,
|
|
451
|
+
**params: Unpack["Space.CreateSpaceParams"],
|
|
452
|
+
) -> "Space":
|
|
453
|
+
return cast(
|
|
454
|
+
"Space",
|
|
455
|
+
await cls._static_request_async(
|
|
456
|
+
"post",
|
|
457
|
+
"/space",
|
|
458
|
+
user_id,
|
|
459
|
+
company_id,
|
|
460
|
+
params=params,
|
|
461
|
+
),
|
|
462
|
+
)
|
|
463
|
+
|
|
464
|
+
@classmethod
|
|
465
|
+
def get_space_access(
|
|
466
|
+
cls,
|
|
467
|
+
user_id: str,
|
|
468
|
+
company_id: str,
|
|
469
|
+
space_id: str,
|
|
470
|
+
) -> "Space.SpaceAccessResponse":
|
|
471
|
+
return cast(
|
|
472
|
+
"Space.SpaceAccessResponse",
|
|
473
|
+
cls._static_request(
|
|
474
|
+
"get",
|
|
475
|
+
f"/space/{space_id}/access",
|
|
476
|
+
user_id,
|
|
477
|
+
company_id,
|
|
478
|
+
),
|
|
479
|
+
)
|
|
480
|
+
|
|
481
|
+
@classmethod
|
|
482
|
+
async def get_space_access_async(
|
|
483
|
+
cls,
|
|
484
|
+
user_id: str,
|
|
485
|
+
company_id: str,
|
|
486
|
+
space_id: str,
|
|
487
|
+
) -> "Space.SpaceAccessResponse":
|
|
488
|
+
return cast(
|
|
489
|
+
"Space.SpaceAccessResponse",
|
|
490
|
+
await cls._static_request_async(
|
|
491
|
+
"get",
|
|
492
|
+
f"/space/{space_id}/access",
|
|
493
|
+
user_id,
|
|
494
|
+
company_id,
|
|
495
|
+
),
|
|
496
|
+
)
|
|
497
|
+
|
|
498
|
+
@classmethod
|
|
499
|
+
def add_space_access(
|
|
500
|
+
cls,
|
|
501
|
+
user_id: str,
|
|
502
|
+
company_id: str,
|
|
503
|
+
space_id: str,
|
|
504
|
+
**params: Unpack["Space.AddSpaceAccessParams"],
|
|
505
|
+
) -> "Space.SpaceAccessResponse":
|
|
506
|
+
return cast(
|
|
507
|
+
"Space.SpaceAccessResponse",
|
|
508
|
+
cls._static_request(
|
|
509
|
+
"post",
|
|
510
|
+
f"/space/{space_id}/access",
|
|
511
|
+
user_id,
|
|
512
|
+
company_id,
|
|
513
|
+
params=params,
|
|
514
|
+
),
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
@classmethod
|
|
518
|
+
async def add_space_access_async(
|
|
519
|
+
cls,
|
|
520
|
+
user_id: str,
|
|
521
|
+
company_id: str,
|
|
522
|
+
space_id: str,
|
|
523
|
+
**params: Unpack["Space.AddSpaceAccessParams"],
|
|
524
|
+
) -> "Space.SpaceAccessResponse":
|
|
525
|
+
return cast(
|
|
526
|
+
"Space.SpaceAccessResponse",
|
|
527
|
+
await cls._static_request_async(
|
|
528
|
+
"post",
|
|
529
|
+
f"/space/{space_id}/access",
|
|
530
|
+
user_id,
|
|
531
|
+
company_id,
|
|
532
|
+
params=params,
|
|
533
|
+
),
|
|
534
|
+
)
|
|
535
|
+
|
|
536
|
+
@classmethod
|
|
537
|
+
def delete_space_access(
|
|
538
|
+
cls,
|
|
539
|
+
user_id: str,
|
|
540
|
+
company_id: str,
|
|
541
|
+
space_id: str,
|
|
542
|
+
**params: Unpack["Space.DeleteSpaceAccessParams"],
|
|
543
|
+
) -> "Space.DeleteSpaceAccessResponse":
|
|
544
|
+
return cast(
|
|
545
|
+
"Space.DeleteSpaceAccessResponse",
|
|
546
|
+
cls._static_request(
|
|
547
|
+
"delete",
|
|
548
|
+
f"/space/{space_id}/access",
|
|
549
|
+
user_id,
|
|
550
|
+
company_id,
|
|
551
|
+
params=params,
|
|
552
|
+
),
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
@classmethod
|
|
556
|
+
async def delete_space_access_async(
|
|
557
|
+
cls,
|
|
558
|
+
user_id: str,
|
|
559
|
+
company_id: str,
|
|
560
|
+
space_id: str,
|
|
561
|
+
**params: Unpack["Space.DeleteSpaceAccessParams"],
|
|
562
|
+
) -> "Space.DeleteSpaceAccessResponse":
|
|
563
|
+
return cast(
|
|
564
|
+
"Space.DeleteSpaceAccessResponse",
|
|
565
|
+
await cls._static_request_async(
|
|
566
|
+
"delete",
|
|
567
|
+
f"/space/{space_id}/access",
|
|
568
|
+
user_id,
|
|
569
|
+
company_id,
|
|
570
|
+
params=params,
|
|
571
|
+
),
|
|
572
|
+
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_sdk
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.66
|
|
4
4
|
Summary:
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Martin Fadler
|
|
@@ -28,8 +28,20 @@ All notable changes to this project will be documented in this file.
|
|
|
28
28
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
29
29
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
30
30
|
|
|
31
|
+
## [0.10.66] - 2026-01-05
|
|
32
|
+
- Expose appliedIngestionConfig field on content search.
|
|
33
|
+
|
|
34
|
+
## [0.10.65] - 2025-01-05
|
|
35
|
+
- Add new params for elicitation to `call_tool` api
|
|
36
|
+
|
|
37
|
+
## [0.10.64] - 2025-12-31
|
|
38
|
+
- Add create path functionality to theupsert function and allow getinfo(s) to query by parentfolderpath.
|
|
39
|
+
|
|
40
|
+
## [0.10.63] - 2025-12-23
|
|
41
|
+
- Add functions to create a space and manage its access.
|
|
42
|
+
|
|
31
43
|
## [0.10.62] - 2025-12-23
|
|
32
|
-
- Add get user
|
|
44
|
+
- Add get user groups function and allow the get users function to filter by username.
|
|
33
45
|
|
|
34
46
|
## [0.10.61] - 2025-12-22
|
|
35
47
|
- Add `displayInChat` field to ingestion config, allowing silent uploads to chat.
|
|
@@ -17,14 +17,14 @@ 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=omdF4vbGCsjuQpPhuMUwaaGAb9nXscEUZsqUz3cz2AY,10353
|
|
19
19
|
unique_sdk/api_resources/_chat_completion.py,sha256=ILCAffxkbkfh2iV9L4KKnfe80gZmT9pWfkNmf3mq68U,2172
|
|
20
|
-
unique_sdk/api_resources/_content.py,sha256=
|
|
20
|
+
unique_sdk/api_resources/_content.py,sha256=UNHsEIOyNVx5VFtv7n4MeXBxSyAW53vagUHMA5_Udec,19849
|
|
21
21
|
unique_sdk/api_resources/_embedding.py,sha256=C6qak7cCUBMBINfPhgH8taCJZ9n6w1MUElqDJJ8dG10,1281
|
|
22
22
|
unique_sdk/api_resources/_event.py,sha256=bpWF9vstdoAWbUzr-iiGP713ceP0zPk77GJXiImf9zg,374
|
|
23
|
-
unique_sdk/api_resources/_folder.py,sha256=
|
|
23
|
+
unique_sdk/api_resources/_folder.py,sha256=h7f1NhTlC-pW9uAEMFw78vTpim_ctvRGB5rzcc-L87E,21553
|
|
24
24
|
unique_sdk/api_resources/_group.py,sha256=8A8mSjhWuhFxBA2r_z7q-70miJ_ugz7NAffVwbPu1oo,10302
|
|
25
25
|
unique_sdk/api_resources/_integrated.py,sha256=TxEKSYQZjZezBUk6kUgLvCgqgZXvgZR2IqHLieapKwQ,6204
|
|
26
26
|
unique_sdk/api_resources/_llm_models.py,sha256=3Jn6MpxWgZ43Hze8JHd4_n27si5xmwd3JE8r8cEZq_M,1640
|
|
27
|
-
unique_sdk/api_resources/_mcp.py,sha256=
|
|
27
|
+
unique_sdk/api_resources/_mcp.py,sha256=_kWSn4Awvd7vtopbYM3YKhV5-Xrz5h_LBlahmWlKx3U,3384
|
|
28
28
|
unique_sdk/api_resources/_message.py,sha256=wqPH3FdzutHLQXFErAzQYOddoeeE4jEBJr7yrPFYEHo,10986
|
|
29
29
|
unique_sdk/api_resources/_message_assessment.py,sha256=SSfx6eW7zb_GKe8cFJzCqW-t-_eWEXxKP5cnIb0DhIc,2276
|
|
30
30
|
unique_sdk/api_resources/_message_execution.py,sha256=7V_Qovu4vzoXDd2em0AgnAJC460RUX6AE4byztNPlvg,4556
|
|
@@ -32,14 +32,14 @@ unique_sdk/api_resources/_message_log.py,sha256=_DifZ4Di7uKyzkP0i8rwu5IIiYZPCBp5
|
|
|
32
32
|
unique_sdk/api_resources/_search.py,sha256=GQItZKoGNOVZfkLLltBmsRZYBIreRKU0lGW8Kgpj1_Q,1959
|
|
33
33
|
unique_sdk/api_resources/_search_string.py,sha256=LZz2_QPZXV1NXucRR06dnDC2miK7J8XBY7dXX2xoDY4,1610
|
|
34
34
|
unique_sdk/api_resources/_short_term_memory.py,sha256=vPRN-Y0WPx74E6y-A3LocGc0TxJdzT-xGL66WzZwKRg,2820
|
|
35
|
-
unique_sdk/api_resources/_space.py,sha256=
|
|
35
|
+
unique_sdk/api_resources/_space.py,sha256=bIeR2IOba2Nzzz4HP15dDEXe50mx7gh9GfatDxwNGXo,14598
|
|
36
36
|
unique_sdk/api_resources/_user.py,sha256=XGlE3SDtv-0qs9boT-ts6F2Cxq8RXAT5OCrvY5nOCx8,4677
|
|
37
37
|
unique_sdk/utils/chat_history.py,sha256=5UqL9hF1O9pV7skbNOlEibF5rHdYsmG3m5-YEPUowOs,3037
|
|
38
38
|
unique_sdk/utils/chat_in_space.py,sha256=mBH4W-Jb8wgGCYV3m12LvoLjTE56xdwUTC-ghMupkSs,5889
|
|
39
39
|
unique_sdk/utils/file_io.py,sha256=z0VdAOtrkU-tMq2v-nogeHtBku3TtnM5eJDHAR6A0-w,5721
|
|
40
40
|
unique_sdk/utils/sources.py,sha256=DoxxhMLcLhmDfNarjXa41H4JD2GSSDywr71hiC-4pYc,4952
|
|
41
41
|
unique_sdk/utils/token.py,sha256=AzKuAA1AwBtnvSFxGcsHLpxXr_wWE5Mj4jYBbOz2ljA,1740
|
|
42
|
-
unique_sdk-0.10.
|
|
43
|
-
unique_sdk-0.10.
|
|
44
|
-
unique_sdk-0.10.
|
|
45
|
-
unique_sdk-0.10.
|
|
42
|
+
unique_sdk-0.10.66.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
|
|
43
|
+
unique_sdk-0.10.66.dist-info/METADATA,sha256=4Zwcojlig85QRkLXRDTVFiUqPk1R1cQZ4sGoc7SwFM0,11458
|
|
44
|
+
unique_sdk-0.10.66.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
45
|
+
unique_sdk-0.10.66.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|