unique-sdk 2026.48.0.dev18__tar.gz → 2026.48.0.dev20__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.
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/PKG-INFO +1 -1
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/pyproject.toml +1 -1
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/__init__.py +1 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_object_classes.py +1 -0
- unique_sdk-2026.48.0.dev20/unique_sdk/api_resources/_project_memory.py +290 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/README.md +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_api_requestor.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_api_resource.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_api_version.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_error.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_http_client.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_list_object.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_request_options.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_unique_object.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_unique_ql.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_unique_response.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_util.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_version.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/_webhook.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/__init__.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_acronyms.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_agentic_table.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_analytics_order.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_benchmarking.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_briefing.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_chat_completion.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_content.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_context_memory.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_elicitation.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_embedding.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_event.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_folder.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_group.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_integrated.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_llm_models.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_mcp.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_message.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_message_assessment.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_message_execution.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_message_log.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_message_tool.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_module.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_scheduled_task.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_search.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_search_string.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_short_term_memory.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_space.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_user.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_web_search.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/__init__.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/__main__.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/cli.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/__init__.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/_citation_manifest.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/agentic_table.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/agentic_table_write.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/browser.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/cite_file.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/elicitation.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/files.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/folders.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/mcp.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/navigation.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/read.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/scheduled_tasks.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/search.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/subagent.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/web_search.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/web_search_config.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/config.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/formatting.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/identity.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/metadata_filter.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/paths.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/shell.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/skills/unique-cli-agentic-table/SKILL.md +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/skills/unique-cli-elicitation/SKILL.md +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/skills/unique-cli-file-management/SKILL.md +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/skills/unique-cli-mcp/SKILL.md +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/skills/unique-cli-scheduled-tasks/SKILL.md +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/skills/unique-cli-search/SKILL.md +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/skills/unique-cli-subagent/SKILL.md +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/skills/unique-cli-uploaded-search/SKILL.md +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/skills/unique-cli-web-search/SKILL.md +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/state.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/workspace.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/utils/analytics_order_run.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/utils/benchmarking_run.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/utils/chat_history.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/utils/chat_in_space.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/utils/file_io.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/utils/sources.py +0 -0
- {unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/utils/token.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: unique-sdk
|
|
3
|
-
Version: 2026.48.0.
|
|
3
|
+
Version: 2026.48.0.dev20
|
|
4
4
|
Summary:
|
|
5
5
|
Author: Martin Fadler, Konstantin Krauss, Andreas Hauri
|
|
6
6
|
Author-email: Martin Fadler <martin.fadler@unique.ch>, Konstantin Krauss <konstantin@unique.ch>, Andreas Hauri <andreas@unique.ch>
|
|
@@ -87,6 +87,7 @@ from unique_sdk.api_resources._short_term_memory import (
|
|
|
87
87
|
ShortTermMemory as ShortTermMemory,
|
|
88
88
|
)
|
|
89
89
|
from unique_sdk.api_resources._context_memory import ContextMemory as ContextMemory
|
|
90
|
+
from unique_sdk.api_resources._project_memory import ProjectMemory as ProjectMemory
|
|
90
91
|
from unique_sdk.api_resources._folder import Folder as Folder
|
|
91
92
|
from unique_sdk.api_resources._embedding import Embeddings as Embeddings
|
|
92
93
|
from unique_sdk.api_resources._acronyms import Acronyms as Acronyms
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
"""Project memory: the per-project memory of a user's project chats.
|
|
2
|
+
|
|
3
|
+
Wraps the public endpoint ``/projects/{projectId}/memory``. Each project has
|
|
4
|
+
one memory, which only the project's owner can read, replace or delete.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any, Literal, TypedDict, cast
|
|
8
|
+
from urllib.parse import quote
|
|
9
|
+
|
|
10
|
+
from unique_sdk._api_resource import APIResource
|
|
11
|
+
from unique_sdk._util import classproperty
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ProjectMemory(APIResource["ProjectMemory"]):
|
|
15
|
+
"""The calling user's memory for one of their projects.
|
|
16
|
+
|
|
17
|
+
Until the memory is first written, ``id``, ``document``, ``state``,
|
|
18
|
+
``createdAt`` and ``updatedAt`` are ``None``.
|
|
19
|
+
|
|
20
|
+
Attributes:
|
|
21
|
+
id (str | None): Memory identifier.
|
|
22
|
+
projectId (str): Project identifier.
|
|
23
|
+
document (str | None): Markdown that project chats read, at most
|
|
24
|
+
32 KB of UTF-8.
|
|
25
|
+
state (str | None): Opaque JSON owned by the project memory job, at
|
|
26
|
+
most 256 KB of UTF-8. Not meant for display.
|
|
27
|
+
createdAt (str | None): Creation timestamp in ISO 8601 format.
|
|
28
|
+
updatedAt (str | None): Last update timestamp in ISO 8601 format.
|
|
29
|
+
object (Literal["project-memory"]): Object type identifier.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
@classproperty
|
|
33
|
+
def OBJECT_NAME(cls) -> Literal["project-memory"]:
|
|
34
|
+
return "project-memory"
|
|
35
|
+
|
|
36
|
+
class DeletedObject(TypedDict):
|
|
37
|
+
"""Response of ``delete`` and ``delete_async``.
|
|
38
|
+
|
|
39
|
+
Attributes:
|
|
40
|
+
id (str): The project id; a project has at most one memory.
|
|
41
|
+
object (Literal["project-memory"]): Object type identifier.
|
|
42
|
+
deleted (bool): Always ``True``.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
id: str
|
|
46
|
+
object: Literal["project-memory"]
|
|
47
|
+
deleted: bool
|
|
48
|
+
|
|
49
|
+
id: str | None
|
|
50
|
+
projectId: str
|
|
51
|
+
document: str | None
|
|
52
|
+
state: str | None
|
|
53
|
+
createdAt: str | None
|
|
54
|
+
updatedAt: str | None
|
|
55
|
+
object: Literal["project-memory"]
|
|
56
|
+
|
|
57
|
+
@staticmethod
|
|
58
|
+
def _url(project_id: str) -> str:
|
|
59
|
+
# Escape the id so it stays one path segment: "/", "?" or "#" in a
|
|
60
|
+
# caller- or agent-supplied id cannot reach another endpoint. quote()
|
|
61
|
+
# leaves "." and ".." unchanged and HTTP clients collapse them as dot
|
|
62
|
+
# segments (/projects/../memory -> /memory), and "" leaves an empty
|
|
63
|
+
# segment, so those ids are rejected outright.
|
|
64
|
+
if project_id in ("", ".", ".."):
|
|
65
|
+
raise ValueError(f"invalid project id: {project_id!r}")
|
|
66
|
+
return f"/projects/{quote(project_id, safe='')}/memory"
|
|
67
|
+
|
|
68
|
+
@staticmethod
|
|
69
|
+
def _update_body(document: str, state: str | None) -> dict[str, Any]:
|
|
70
|
+
# Only the endpoint's fields go into the body. Explicit arguments (no
|
|
71
|
+
# **params) mean request options such as api_key or headers cannot
|
|
72
|
+
# end up in the PATCH body: an unexpected keyword raises TypeError.
|
|
73
|
+
body: dict[str, Any] = {"document": document}
|
|
74
|
+
if state is not None:
|
|
75
|
+
body["state"] = state
|
|
76
|
+
return body
|
|
77
|
+
|
|
78
|
+
@classmethod
|
|
79
|
+
def retrieve(
|
|
80
|
+
cls, user_id: str, company_id: str, project_id: str
|
|
81
|
+
) -> "ProjectMemory":
|
|
82
|
+
"""Get the memory of a project the user owns.
|
|
83
|
+
|
|
84
|
+
Args:
|
|
85
|
+
user_id (str): The user who owns the project.
|
|
86
|
+
company_id (str): The user's company.
|
|
87
|
+
project_id (str): The project.
|
|
88
|
+
|
|
89
|
+
Returns:
|
|
90
|
+
ProjectMemory: The memory; its fields are ``None`` until it is
|
|
91
|
+
first written.
|
|
92
|
+
|
|
93
|
+
Raises:
|
|
94
|
+
ValueError: ``project_id`` is empty, ``.`` or ``..``.
|
|
95
|
+
InvalidRequestError: The project does not exist or belongs to
|
|
96
|
+
another user or company (404).
|
|
97
|
+
AuthenticationError: The API key is missing or invalid (401).
|
|
98
|
+
PermissionError: The user lacks access, e.g. the Projects feature
|
|
99
|
+
flag is off (403).
|
|
100
|
+
APIError: Any other API failure.
|
|
101
|
+
"""
|
|
102
|
+
return cast(
|
|
103
|
+
"ProjectMemory",
|
|
104
|
+
cls._static_request("get", cls._url(project_id), user_id, company_id),
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
@classmethod
|
|
108
|
+
async def retrieve_async(
|
|
109
|
+
cls, user_id: str, company_id: str, project_id: str
|
|
110
|
+
) -> "ProjectMemory":
|
|
111
|
+
"""Get the memory of a project the user owns.
|
|
112
|
+
|
|
113
|
+
Args:
|
|
114
|
+
user_id (str): The user who owns the project.
|
|
115
|
+
company_id (str): The user's company.
|
|
116
|
+
project_id (str): The project.
|
|
117
|
+
|
|
118
|
+
Returns:
|
|
119
|
+
ProjectMemory: The memory; its fields are ``None`` until it is
|
|
120
|
+
first written.
|
|
121
|
+
|
|
122
|
+
Raises:
|
|
123
|
+
ValueError: ``project_id`` is empty, ``.`` or ``..``.
|
|
124
|
+
InvalidRequestError: The project does not exist or belongs to
|
|
125
|
+
another user or company (404).
|
|
126
|
+
AuthenticationError: The API key is missing or invalid (401).
|
|
127
|
+
PermissionError: The user lacks access, e.g. the Projects feature
|
|
128
|
+
flag is off (403).
|
|
129
|
+
APIError: Any other API failure.
|
|
130
|
+
"""
|
|
131
|
+
return cast(
|
|
132
|
+
"ProjectMemory",
|
|
133
|
+
await cls._static_request_async(
|
|
134
|
+
"get", cls._url(project_id), user_id, company_id
|
|
135
|
+
),
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
@classmethod
|
|
139
|
+
def modify(
|
|
140
|
+
cls,
|
|
141
|
+
user_id: str,
|
|
142
|
+
company_id: str,
|
|
143
|
+
project_id: str,
|
|
144
|
+
*,
|
|
145
|
+
document: str,
|
|
146
|
+
state: str | None = None,
|
|
147
|
+
) -> "ProjectMemory":
|
|
148
|
+
"""Create or replace the memory of a project the user owns.
|
|
149
|
+
|
|
150
|
+
Args:
|
|
151
|
+
user_id (str): The user who owns the project.
|
|
152
|
+
company_id (str): The user's company.
|
|
153
|
+
project_id (str): The project.
|
|
154
|
+
document (str): Markdown document that replaces the stored one,
|
|
155
|
+
at most 32 KB of UTF-8.
|
|
156
|
+
state (str | None): JSON string that replaces the stored job
|
|
157
|
+
state, at most 256 KB of UTF-8. When omitted or ``None``, the
|
|
158
|
+
stored state is kept.
|
|
159
|
+
|
|
160
|
+
Returns:
|
|
161
|
+
ProjectMemory: The updated memory.
|
|
162
|
+
|
|
163
|
+
Raises:
|
|
164
|
+
ValueError: ``project_id`` is empty, ``.`` or ``..``.
|
|
165
|
+
InvalidRequestError: The project does not exist or belongs to
|
|
166
|
+
another user or company (404), or a field is too large (400).
|
|
167
|
+
AuthenticationError: The API key is missing or invalid (401).
|
|
168
|
+
PermissionError: The user lacks access, e.g. the Projects feature
|
|
169
|
+
flag is off (403).
|
|
170
|
+
APIError: Any other API failure.
|
|
171
|
+
"""
|
|
172
|
+
return cast(
|
|
173
|
+
"ProjectMemory",
|
|
174
|
+
cls._static_request(
|
|
175
|
+
"patch",
|
|
176
|
+
cls._url(project_id),
|
|
177
|
+
user_id,
|
|
178
|
+
company_id,
|
|
179
|
+
params=cls._update_body(document, state),
|
|
180
|
+
),
|
|
181
|
+
)
|
|
182
|
+
|
|
183
|
+
@classmethod
|
|
184
|
+
async def modify_async(
|
|
185
|
+
cls,
|
|
186
|
+
user_id: str,
|
|
187
|
+
company_id: str,
|
|
188
|
+
project_id: str,
|
|
189
|
+
*,
|
|
190
|
+
document: str,
|
|
191
|
+
state: str | None = None,
|
|
192
|
+
) -> "ProjectMemory":
|
|
193
|
+
"""Create or replace the memory of a project the user owns.
|
|
194
|
+
|
|
195
|
+
Args:
|
|
196
|
+
user_id (str): The user who owns the project.
|
|
197
|
+
company_id (str): The user's company.
|
|
198
|
+
project_id (str): The project.
|
|
199
|
+
document (str): Markdown document that replaces the stored one,
|
|
200
|
+
at most 32 KB of UTF-8.
|
|
201
|
+
state (str | None): JSON string that replaces the stored job
|
|
202
|
+
state, at most 256 KB of UTF-8. When omitted or ``None``, the
|
|
203
|
+
stored state is kept.
|
|
204
|
+
|
|
205
|
+
Returns:
|
|
206
|
+
ProjectMemory: The updated memory.
|
|
207
|
+
|
|
208
|
+
Raises:
|
|
209
|
+
ValueError: ``project_id`` is empty, ``.`` or ``..``.
|
|
210
|
+
InvalidRequestError: The project does not exist or belongs to
|
|
211
|
+
another user or company (404), or a field is too large (400).
|
|
212
|
+
AuthenticationError: The API key is missing or invalid (401).
|
|
213
|
+
PermissionError: The user lacks access, e.g. the Projects feature
|
|
214
|
+
flag is off (403).
|
|
215
|
+
APIError: Any other API failure.
|
|
216
|
+
"""
|
|
217
|
+
return cast(
|
|
218
|
+
"ProjectMemory",
|
|
219
|
+
await cls._static_request_async(
|
|
220
|
+
"patch",
|
|
221
|
+
cls._url(project_id),
|
|
222
|
+
user_id,
|
|
223
|
+
company_id,
|
|
224
|
+
params=cls._update_body(document, state),
|
|
225
|
+
),
|
|
226
|
+
)
|
|
227
|
+
|
|
228
|
+
@classmethod
|
|
229
|
+
def delete(
|
|
230
|
+
cls, user_id: str, company_id: str, project_id: str
|
|
231
|
+
) -> "ProjectMemory.DeletedObject":
|
|
232
|
+
"""Delete the memory of a project the user owns.
|
|
233
|
+
|
|
234
|
+
Deleting a memory that does not exist succeeds.
|
|
235
|
+
|
|
236
|
+
Args:
|
|
237
|
+
user_id (str): The user who owns the project.
|
|
238
|
+
company_id (str): The user's company.
|
|
239
|
+
project_id (str): The project.
|
|
240
|
+
|
|
241
|
+
Returns:
|
|
242
|
+
ProjectMemory.DeletedObject: The deletion result, with the project
|
|
243
|
+
id as ``id``.
|
|
244
|
+
|
|
245
|
+
Raises:
|
|
246
|
+
ValueError: ``project_id`` is empty, ``.`` or ``..``.
|
|
247
|
+
InvalidRequestError: The project does not exist or belongs to
|
|
248
|
+
another user or company (404).
|
|
249
|
+
AuthenticationError: The API key is missing or invalid (401).
|
|
250
|
+
PermissionError: The user lacks access, e.g. the Projects feature
|
|
251
|
+
flag is off (403).
|
|
252
|
+
APIError: Any other API failure.
|
|
253
|
+
"""
|
|
254
|
+
return cast(
|
|
255
|
+
"ProjectMemory.DeletedObject",
|
|
256
|
+
cls._static_request("delete", cls._url(project_id), user_id, company_id),
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
@classmethod
|
|
260
|
+
async def delete_async(
|
|
261
|
+
cls, user_id: str, company_id: str, project_id: str
|
|
262
|
+
) -> "ProjectMemory.DeletedObject":
|
|
263
|
+
"""Delete the memory of a project the user owns.
|
|
264
|
+
|
|
265
|
+
Deleting a memory that does not exist succeeds.
|
|
266
|
+
|
|
267
|
+
Args:
|
|
268
|
+
user_id (str): The user who owns the project.
|
|
269
|
+
company_id (str): The user's company.
|
|
270
|
+
project_id (str): The project.
|
|
271
|
+
|
|
272
|
+
Returns:
|
|
273
|
+
ProjectMemory.DeletedObject: The deletion result, with the project
|
|
274
|
+
id as ``id``.
|
|
275
|
+
|
|
276
|
+
Raises:
|
|
277
|
+
ValueError: ``project_id`` is empty, ``.`` or ``..``.
|
|
278
|
+
InvalidRequestError: The project does not exist or belongs to
|
|
279
|
+
another user or company (404).
|
|
280
|
+
AuthenticationError: The API key is missing or invalid (401).
|
|
281
|
+
PermissionError: The user lacks access, e.g. the Projects feature
|
|
282
|
+
flag is off (403).
|
|
283
|
+
APIError: Any other API failure.
|
|
284
|
+
"""
|
|
285
|
+
return cast(
|
|
286
|
+
"ProjectMemory.DeletedObject",
|
|
287
|
+
await cls._static_request_async(
|
|
288
|
+
"delete", cls._url(project_id), user_id, company_id
|
|
289
|
+
),
|
|
290
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/__init__.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_acronyms.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_agentic_table.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_benchmarking.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_briefing.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_content.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_elicitation.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_embedding.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_event.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_folder.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_group.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_integrated.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_llm_models.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_message.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_message_log.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_message_tool.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_module.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_search.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_search_string.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_space.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/api_resources/_web_search.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/agentic_table.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/browser.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/cite_file.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/elicitation.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/folders.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/navigation.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/scheduled_tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/subagent.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/cli/commands/web_search.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/utils/analytics_order_run.py
RENAMED
|
File without changes
|
{unique_sdk-2026.48.0.dev18 → unique_sdk-2026.48.0.dev20}/unique_sdk/utils/benchmarking_run.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|