unique_sdk 0.10.61__tar.gz → 0.10.62__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 (46) hide show
  1. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/CHANGELOG.md +3 -0
  2. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/PKG-INFO +4 -1
  3. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/pyproject.toml +1 -1
  4. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_user.py +46 -0
  5. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/LICENSE +0 -0
  6. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/README.md +0 -0
  7. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/__init__.py +0 -0
  8. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_api_requestor.py +0 -0
  9. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_api_resource.py +0 -0
  10. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_api_version.py +0 -0
  11. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_error.py +0 -0
  12. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_http_client.py +0 -0
  13. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_list_object.py +0 -0
  14. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_object_classes.py +0 -0
  15. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_request_options.py +0 -0
  16. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_unique_object.py +0 -0
  17. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_unique_ql.py +0 -0
  18. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_unique_response.py +0 -0
  19. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_util.py +0 -0
  20. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_version.py +0 -0
  21. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/_webhook.py +0 -0
  22. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/__init__.py +0 -0
  23. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_acronyms.py +0 -0
  24. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_agentic_table.py +0 -0
  25. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_chat_completion.py +0 -0
  26. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_content.py +0 -0
  27. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_embedding.py +0 -0
  28. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_event.py +0 -0
  29. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_folder.py +0 -0
  30. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_group.py +0 -0
  31. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_integrated.py +0 -0
  32. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_llm_models.py +0 -0
  33. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_mcp.py +0 -0
  34. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_message.py +0 -0
  35. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_message_assessment.py +0 -0
  36. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_message_execution.py +0 -0
  37. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_message_log.py +0 -0
  38. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_search.py +0 -0
  39. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_search_string.py +0 -0
  40. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_short_term_memory.py +0 -0
  41. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/api_resources/_space.py +0 -0
  42. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/utils/chat_history.py +0 -0
  43. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/utils/chat_in_space.py +0 -0
  44. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/utils/file_io.py +0 -0
  45. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/unique_sdk/utils/sources.py +0 -0
  46. {unique_sdk-0.10.61 → unique_sdk-0.10.62}/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.10.62] - 2025-12-23
9
+ - Add get user gorups function and allow the get users function to filter by username.
10
+
8
11
  ## [0.10.61] - 2025-12-22
9
12
  - Add `displayInChat` field to ingestion config, allowing silent uploads to chat.
10
13
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.10.61
3
+ Version: 0.10.62
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -28,6 +28,9 @@ 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.62] - 2025-12-23
32
+ - Add get user gorups function and allow the get users function to filter by username.
33
+
31
34
  ## [0.10.61] - 2025-12-22
32
35
  - Add `displayInChat` field to ingestion config, allowing silent uploads to chat.
33
36
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_sdk"
3
- version = "0.10.61"
3
+ version = "0.10.62"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -26,6 +26,7 @@ class User(APIResource["User"]):
26
26
  take: NotRequired[Optional[int]]
27
27
  email: NotRequired[Optional[str]]
28
28
  displayName: NotRequired[Optional[str]]
29
+ userName: NotRequired[Optional[str]]
29
30
 
30
31
  class UpdateUserConfigurationParams(RequestOptions):
31
32
  """
@@ -34,6 +35,17 @@ class User(APIResource["User"]):
34
35
 
35
36
  userConfiguration: Dict[str, Any]
36
37
 
38
+ class UserGroup(TypedDict):
39
+ id: str
40
+ name: str
41
+ externalId: Optional[str]
42
+ parentId: Optional[str]
43
+ createdAt: str
44
+ updatedAt: str
45
+
46
+ class UserGroupsResponse(TypedDict):
47
+ groups: List["User.UserGroup"]
48
+
37
49
  class User(TypedDict):
38
50
  """
39
51
  Represents a user in the company.
@@ -147,3 +159,37 @@ class User(APIResource["User"]):
147
159
  params=params,
148
160
  ),
149
161
  )
162
+
163
+ @classmethod
164
+ def get_user_groups(
165
+ cls,
166
+ user_id: str,
167
+ company_id: str,
168
+ target_user_id: str,
169
+ ) -> "User.UserGroupsResponse":
170
+ return cast(
171
+ "User.UserGroupsResponse",
172
+ cls._static_request(
173
+ "get",
174
+ f"/users/{target_user_id}/groups",
175
+ user_id,
176
+ company_id,
177
+ ),
178
+ )
179
+
180
+ @classmethod
181
+ async def get_user_groups_async(
182
+ cls,
183
+ user_id: str,
184
+ company_id: str,
185
+ target_user_id: str,
186
+ ) -> "User.UserGroupsResponse":
187
+ return cast(
188
+ "User.UserGroupsResponse",
189
+ await cls._static_request_async(
190
+ "get",
191
+ f"/users/{target_user_id}/groups",
192
+ user_id,
193
+ company_id,
194
+ ),
195
+ )
File without changes
File without changes