unique_sdk 0.10.32__py3-none-any.whl → 0.10.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.

Potentially problematic release.


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

@@ -8,16 +8,18 @@ class MessageExecution(APIResource["MessageExecution"]):
8
8
  OBJECT_NAME: ClassVar[Literal["message_execution"]] = "message_execution"
9
9
  RESOURCE_URL = "/message-execution"
10
10
 
11
+ TypeLiteral = Literal["DEEP_RESEARCH"]
12
+ StatusLiteral = Literal["PENDING", "RUNNING", "COMPLETED", "FAILED"]
13
+ # Only COMPLETED and FAILED statuses are allowed for update
14
+ UpdateStatusLiteral = Literal["COMPLETED", "FAILED"]
15
+
11
16
  class CreateMessageExecutionParams(RequestOptions):
12
17
  """
13
18
  Parameters for creating a message execution.
14
19
  """
15
20
 
16
21
  messageId: str
17
- chatId: str
18
- type: Literal["DEEP_RESEARCH"]
19
- secondsRemaining: NotRequired[int | None]
20
- percentageCompleted: NotRequired[int | None]
22
+ type: "MessageExecution.TypeLiteral"
21
23
 
22
24
  class GetMessageExecutionParams(RequestOptions):
23
25
  """
@@ -32,18 +34,18 @@ class MessageExecution(APIResource["MessageExecution"]):
32
34
  """
33
35
 
34
36
  messageId: str
35
- status: Literal["COMPLETED", "FAILED"]
37
+ status: NotRequired["MessageExecution.UpdateStatusLiteral | None"]
36
38
  secondsRemaining: NotRequired[int | None]
37
39
  percentageCompleted: NotRequired[int | None]
38
40
 
39
- messageExecutionId: str | None
40
- messageId: str | None
41
- status: Literal["PENDING", "RUNNING", "COMPLETED", "FAILED"]
42
- type: Literal["DEEP_RESEARCH"] = "DEEP_RESEARCH"
41
+ messageId: str
42
+ status: "MessageExecution.StatusLiteral"
43
+ type: "MessageExecution.TypeLiteral"
43
44
  secondsRemaining: int | None
44
45
  percentageCompleted: int | None
46
+ positionInQueue: int | None
45
47
  createdAt: str
46
- updatedAt: str | None
48
+ updatedAt: str
47
49
 
48
50
  @classmethod
49
51
  def create(
@@ -8,6 +8,8 @@ class MessageLog(APIResource["MessageLog"]):
8
8
  OBJECT_NAME: ClassVar[Literal["message_log"]] = "message_log"
9
9
  RESOURCE_URL = "/message-log"
10
10
 
11
+ StatusLiteral = Literal["RUNNING", "COMPLETED", "FAILED"]
12
+
11
13
  class Reference(TypedDict):
12
14
  name: str
13
15
  url: str | None
@@ -23,7 +25,7 @@ class MessageLog(APIResource["MessageLog"]):
23
25
 
24
26
  messageId: str
25
27
  text: str
26
- status: Literal["RUNNING", "COMPLETED", "FAILED"]
28
+ status: "MessageLog.StatusLiteral"
27
29
  order: int
28
30
  details: NotRequired[dict | None]
29
31
  uncitedReferences: NotRequired[dict | None]
@@ -35,21 +37,21 @@ class MessageLog(APIResource["MessageLog"]):
35
37
  """
36
38
 
37
39
  text: NotRequired[str | None]
38
- status: NotRequired[Literal["RUNNING", "COMPLETED", "FAILED"] | None]
40
+ status: NotRequired["MessageLog.StatusLiteral | None"]
39
41
  order: NotRequired[int | None]
40
42
  details: NotRequired[dict | None]
41
43
  uncitedReferences: NotRequired[dict | None]
42
44
  references: NotRequired[list["MessageLog.Reference"] | None]
43
45
 
44
- messageLogId: str | None
45
- messageId: str | None
46
- status: Literal["RUNNING", "COMPLETED", "FAILED"]
47
- text: str | None
46
+ id: str
47
+ messageId: str
48
+ status: "MessageLog.StatusLiteral"
49
+ text: str
48
50
  details: dict
49
51
  uncitedReferences: dict
50
52
  order: int
51
53
  createdAt: str
52
- updatedAt: str | None
54
+ updatedAt: str
53
55
 
54
56
  @classmethod
55
57
  def create(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.10.32
3
+ Version: 0.10.33
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Martin Fadler
@@ -890,10 +890,7 @@ msg_execution = unique_sdk.MessageExecution.create(
890
890
  user_id=user_id,
891
891
  company_id=company_id,
892
892
  messageId="msg_a0jgnt1jrqv143uzr750waxw",
893
- chatId="chat_nx21havszl1skchd7544oykh",
894
893
  type="DEEP_RESEARCH",
895
- secondsRemaining=None, # optional, number defining the seconds remaining
896
- percentageCompleted=None, # optional, number defining the percentage completed
897
894
  )
898
895
  ```
899
896
 
@@ -918,7 +915,7 @@ msg_execution = unique_sdk.MessageExecution.update(
918
915
  user_id=user_id,
919
916
  company_id=company_id,
920
917
  messageId="msg_a0jgnt1jrqv143uzr750waxw",
921
- status="COMPLETED", # one of: COMPLETED, FAILED
918
+ status="COMPLETED", # optional, one of: COMPLETED, FAILED - not specifying the status will have no effect over the status
922
919
  secondsRemaining=55, # optional, number defining the seconds remaining
923
920
  percentageCompleted=10, # optional, number defining the percentage completed
924
921
  )
@@ -1769,6 +1766,9 @@ All notable changes to this project will be documented in this file.
1769
1766
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1770
1767
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1771
1768
 
1769
+ ## [0.10.33] - 2025-10-27
1770
+ - Improve messagelog and message execution types.
1771
+
1772
1772
  ## [0.10.32] - 2025-10-14
1773
1773
  - Add function to stream to chat frontend.
1774
1774
 
@@ -25,8 +25,8 @@ unique_sdk/api_resources/_integrated.py,sha256=O8e673z-RB7FRFMQYn_YEuHijebr5W7KJ
25
25
  unique_sdk/api_resources/_mcp.py,sha256=zKh0dyn0QnkKk57N2zlGVN_GQoxEp5T2CS38vVm6jQY,3341
26
26
  unique_sdk/api_resources/_message.py,sha256=WgdvVS6Gx3gXGlaSlCjE-qrlj3SbkF--EFG7HiSp6cM,9282
27
27
  unique_sdk/api_resources/_message_assessment.py,sha256=SSfx6eW7zb_GKe8cFJzCqW-t-_eWEXxKP5cnIb0DhIc,2276
28
- unique_sdk/api_resources/_message_execution.py,sha256=qQH9NS8sdWLr55Yzc8pvPpYdfpewtSh6fy2alJjEoZk,4444
29
- unique_sdk/api_resources/_message_log.py,sha256=-R8f_WDv7ug5PU4OPktlRlvKEPwsYPtfhf2oAc7zdww,3678
28
+ unique_sdk/api_resources/_message_execution.py,sha256=-381DGikWT2iSq1jLg37Axdm82xEsIg6iF8SlSueI_8,4544
29
+ unique_sdk/api_resources/_message_log.py,sha256=vmNyXlgfALONNrhGi0qFpUWalcKxH6OkVoBSmJbsL2k,3658
30
30
  unique_sdk/api_resources/_search.py,sha256=GQItZKoGNOVZfkLLltBmsRZYBIreRKU0lGW8Kgpj1_Q,1959
31
31
  unique_sdk/api_resources/_search_string.py,sha256=LZz2_QPZXV1NXucRR06dnDC2miK7J8XBY7dXX2xoDY4,1610
32
32
  unique_sdk/api_resources/_short_term_memory.py,sha256=vPRN-Y0WPx74E6y-A3LocGc0TxJdzT-xGL66WzZwKRg,2820
@@ -36,7 +36,7 @@ unique_sdk/utils/chat_in_space.py,sha256=cdjETBLnjv-OE8qsQpm626ks5yBdfQG_KBeG0WI
36
36
  unique_sdk/utils/file_io.py,sha256=sJS-dJLjogG65mLukDO9pGDpKVTP4LhIgiZASnCvjNI,4330
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.32.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
40
- unique_sdk-0.10.32.dist-info/METADATA,sha256=YRS5ChDwbvY7ZmFyhp46Qsh-pysRlXEodEbUqJJWtcI,61865
41
- unique_sdk-0.10.32.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
42
- unique_sdk-0.10.32.dist-info/RECORD,,
39
+ unique_sdk-0.10.33.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
40
+ unique_sdk-0.10.33.dist-info/METADATA,sha256=zQ1DTduFemDcrnw8t4GuVyGiw5COzUbpuXMXJkTb7Lo,61771
41
+ unique_sdk-0.10.33.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
42
+ unique_sdk-0.10.33.dist-info/RECORD,,