dart-tools 0.8.0__tar.gz → 0.8.2__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 dart-tools might be problematic. Click here for more details.
- {dart_tools-0.8.0/dart_tools.egg-info → dart_tools-0.8.2}/PKG-INFO +1 -1
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/__init__.py +2 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/comment/list_comments.py +18 -27
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/dartboard/retrieve_dartboard.py +8 -8
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/doc/list_docs.py +8 -8
- dart_tools-0.8.2/dart/generated/api/help_center_article/list_help_center_articles.py +166 -0
- dart_tools-0.8.2/dart/generated/api/skill/retrieve_skill_by_title.py +173 -0
- dart_tools-0.8.2/dart/generated/api/task/__init__.py +1 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/task/create_task.py +12 -12
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/task/list_tasks.py +38 -8
- dart_tools-0.8.2/dart/generated/api/view/__init__.py +1 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/view/retrieve_view.py +4 -4
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/__init__.py +8 -2
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/concise_task.py +3 -1
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/dartboard.py +1 -23
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/folder.py +1 -23
- dart_tools-0.8.2/dart/generated/models/skill.py +75 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/task.py +13 -11
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/task_create.py +13 -11
- dart_tools-0.8.0/dart/generated/models/task_relationships.py → dart_tools-0.8.2/dart/generated/models/task_relationships_type_0.py +19 -9
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/task_update.py +13 -11
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user.py +8 -5
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration.py +8 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/view.py +1 -23
- dart_tools-0.8.2/dart/generated/models/wrapped_help_center_articles.py +59 -0
- dart_tools-0.8.2/dart/generated/models/wrapped_skill.py +65 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/old.py +14 -2
- {dart_tools-0.8.0 → dart_tools-0.8.2/dart_tools.egg-info}/PKG-INFO +1 -1
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart_tools.egg-info/SOURCES.txt +8 -1
- {dart_tools-0.8.0 → dart_tools-0.8.2}/pyproject.toml +1 -1
- {dart_tools-0.8.0 → dart_tools-0.8.2}/LICENSE +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/README.md +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/__init__.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/dart.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/exception.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/__init__.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/comment/__init__.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/comment/create_comment.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/config/__init__.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/config/get_config.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/dartboard/__init__.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/doc/__init__.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/doc/create_doc.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/doc/delete_doc.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/doc/retrieve_doc.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/doc/update_doc.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/folder/__init__.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/folder/retrieve_folder.py +0 -0
- {dart_tools-0.8.0/dart/generated/api/task → dart_tools-0.8.2/dart/generated/api/help_center_article}/__init__.py +0 -0
- {dart_tools-0.8.0/dart/generated/api/view → dart_tools-0.8.2/dart/generated/api/skill}/__init__.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/task/delete_task.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/task/retrieve_task.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/api/task/update_task.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/client.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/errors.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/comment.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/comment_create.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/concise_doc.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/custom_properties.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/doc.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/doc_create.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/doc_update.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/list_comments_o_item.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/list_docs_o_item.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/paginated_comment_list.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/paginated_concise_doc_list.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/paginated_concise_task_list.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/priority.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/time_tracking_entry.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration_custom_property_checkbox_type_def.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration_custom_property_dates_type_def.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration_custom_property_multiselect_type_def.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration_custom_property_number_type_def.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration_custom_property_number_type_def_custom_property_number_format_type_def.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration_custom_property_select_type_def.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration_custom_property_status_type_def.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration_custom_property_text_type_def.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration_custom_property_time_tracking_type_def.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/user_space_configuration_custom_property_user_type_def.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_comment.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_comment_create.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_dartboard.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_doc.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_doc_create.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_doc_update.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_folder.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_task.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_task_create.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_task_update.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/models/wrapped_view.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/generated/types.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/order_manager.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart/webhook.py +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart_tools.egg-info/dependency_links.txt +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart_tools.egg-info/entry_points.txt +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart_tools.egg-info/requires.txt +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/dart_tools.egg-info/top_level.txt +0 -0
- {dart_tools-0.8.0 → dart_tools-0.8.2}/setup.cfg +0 -0
|
@@ -5,5 +5,7 @@ from .config import get_config
|
|
|
5
5
|
from .dartboard import retrieve_dartboard
|
|
6
6
|
from .doc import create_doc, delete_doc, list_docs, retrieve_doc, update_doc
|
|
7
7
|
from .folder import retrieve_folder
|
|
8
|
+
from .help_center_article import list_help_center_articles
|
|
9
|
+
from .skill import retrieve_skill_by_title
|
|
8
10
|
from .task import create_task, delete_task, list_tasks, retrieve_task, update_task
|
|
9
11
|
from .view import retrieve_view
|
|
@@ -19,7 +19,7 @@ def _get_kwargs(
|
|
|
19
19
|
limit: Union[Unset, int] = UNSET,
|
|
20
20
|
o: Union[Unset, list[ListCommentsOItem]] = UNSET,
|
|
21
21
|
offset: Union[Unset, int] = UNSET,
|
|
22
|
-
parent_id: Union[
|
|
22
|
+
parent_id: Union[Unset, str] = UNSET,
|
|
23
23
|
published_at_after: Union[Unset, datetime.datetime] = UNSET,
|
|
24
24
|
published_at_before: Union[Unset, datetime.datetime] = UNSET,
|
|
25
25
|
task: Union[Unset, str] = UNSET,
|
|
@@ -47,12 +47,7 @@ def _get_kwargs(
|
|
|
47
47
|
|
|
48
48
|
params["offset"] = offset
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
if isinstance(parent_id, Unset):
|
|
52
|
-
json_parent_id = UNSET
|
|
53
|
-
else:
|
|
54
|
-
json_parent_id = parent_id
|
|
55
|
-
params["parent_id"] = json_parent_id
|
|
50
|
+
params["parent_id"] = parent_id
|
|
56
51
|
|
|
57
52
|
json_published_at_after: Union[Unset, str] = UNSET
|
|
58
53
|
if not isinstance(published_at_after, Unset):
|
|
@@ -114,16 +109,15 @@ def sync_detailed(
|
|
|
114
109
|
limit: Union[Unset, int] = UNSET,
|
|
115
110
|
o: Union[Unset, list[ListCommentsOItem]] = UNSET,
|
|
116
111
|
offset: Union[Unset, int] = UNSET,
|
|
117
|
-
parent_id: Union[
|
|
112
|
+
parent_id: Union[Unset, str] = UNSET,
|
|
118
113
|
published_at_after: Union[Unset, datetime.datetime] = UNSET,
|
|
119
114
|
published_at_before: Union[Unset, datetime.datetime] = UNSET,
|
|
120
115
|
task: Union[Unset, str] = UNSET,
|
|
121
116
|
task_id: str,
|
|
122
117
|
text: Union[Unset, str] = UNSET,
|
|
123
118
|
) -> Response[PaginatedCommentList]:
|
|
124
|
-
"""List
|
|
125
|
-
|
|
126
|
-
written.
|
|
119
|
+
"""List comments for a task with filtering options. Filter by author, text content, or date range. Sort
|
|
120
|
+
by date or hierarchical thread order. Task ID required. Supports pagination.
|
|
127
121
|
|
|
128
122
|
Args:
|
|
129
123
|
author (Union[Unset, str]):
|
|
@@ -132,7 +126,7 @@ def sync_detailed(
|
|
|
132
126
|
limit (Union[Unset, int]):
|
|
133
127
|
o (Union[Unset, list[ListCommentsOItem]]):
|
|
134
128
|
offset (Union[Unset, int]):
|
|
135
|
-
parent_id (Union[
|
|
129
|
+
parent_id (Union[Unset, str]):
|
|
136
130
|
published_at_after (Union[Unset, datetime.datetime]):
|
|
137
131
|
published_at_before (Union[Unset, datetime.datetime]):
|
|
138
132
|
task (Union[Unset, str]):
|
|
@@ -178,16 +172,15 @@ def sync(
|
|
|
178
172
|
limit: Union[Unset, int] = UNSET,
|
|
179
173
|
o: Union[Unset, list[ListCommentsOItem]] = UNSET,
|
|
180
174
|
offset: Union[Unset, int] = UNSET,
|
|
181
|
-
parent_id: Union[
|
|
175
|
+
parent_id: Union[Unset, str] = UNSET,
|
|
182
176
|
published_at_after: Union[Unset, datetime.datetime] = UNSET,
|
|
183
177
|
published_at_before: Union[Unset, datetime.datetime] = UNSET,
|
|
184
178
|
task: Union[Unset, str] = UNSET,
|
|
185
179
|
task_id: str,
|
|
186
180
|
text: Union[Unset, str] = UNSET,
|
|
187
181
|
) -> Optional[PaginatedCommentList]:
|
|
188
|
-
"""List
|
|
189
|
-
|
|
190
|
-
written.
|
|
182
|
+
"""List comments for a task with filtering options. Filter by author, text content, or date range. Sort
|
|
183
|
+
by date or hierarchical thread order. Task ID required. Supports pagination.
|
|
191
184
|
|
|
192
185
|
Args:
|
|
193
186
|
author (Union[Unset, str]):
|
|
@@ -196,7 +189,7 @@ def sync(
|
|
|
196
189
|
limit (Union[Unset, int]):
|
|
197
190
|
o (Union[Unset, list[ListCommentsOItem]]):
|
|
198
191
|
offset (Union[Unset, int]):
|
|
199
|
-
parent_id (Union[
|
|
192
|
+
parent_id (Union[Unset, str]):
|
|
200
193
|
published_at_after (Union[Unset, datetime.datetime]):
|
|
201
194
|
published_at_before (Union[Unset, datetime.datetime]):
|
|
202
195
|
task (Union[Unset, str]):
|
|
@@ -237,16 +230,15 @@ async def asyncio_detailed(
|
|
|
237
230
|
limit: Union[Unset, int] = UNSET,
|
|
238
231
|
o: Union[Unset, list[ListCommentsOItem]] = UNSET,
|
|
239
232
|
offset: Union[Unset, int] = UNSET,
|
|
240
|
-
parent_id: Union[
|
|
233
|
+
parent_id: Union[Unset, str] = UNSET,
|
|
241
234
|
published_at_after: Union[Unset, datetime.datetime] = UNSET,
|
|
242
235
|
published_at_before: Union[Unset, datetime.datetime] = UNSET,
|
|
243
236
|
task: Union[Unset, str] = UNSET,
|
|
244
237
|
task_id: str,
|
|
245
238
|
text: Union[Unset, str] = UNSET,
|
|
246
239
|
) -> Response[PaginatedCommentList]:
|
|
247
|
-
"""List
|
|
248
|
-
|
|
249
|
-
written.
|
|
240
|
+
"""List comments for a task with filtering options. Filter by author, text content, or date range. Sort
|
|
241
|
+
by date or hierarchical thread order. Task ID required. Supports pagination.
|
|
250
242
|
|
|
251
243
|
Args:
|
|
252
244
|
author (Union[Unset, str]):
|
|
@@ -255,7 +247,7 @@ async def asyncio_detailed(
|
|
|
255
247
|
limit (Union[Unset, int]):
|
|
256
248
|
o (Union[Unset, list[ListCommentsOItem]]):
|
|
257
249
|
offset (Union[Unset, int]):
|
|
258
|
-
parent_id (Union[
|
|
250
|
+
parent_id (Union[Unset, str]):
|
|
259
251
|
published_at_after (Union[Unset, datetime.datetime]):
|
|
260
252
|
published_at_before (Union[Unset, datetime.datetime]):
|
|
261
253
|
task (Union[Unset, str]):
|
|
@@ -299,16 +291,15 @@ async def asyncio(
|
|
|
299
291
|
limit: Union[Unset, int] = UNSET,
|
|
300
292
|
o: Union[Unset, list[ListCommentsOItem]] = UNSET,
|
|
301
293
|
offset: Union[Unset, int] = UNSET,
|
|
302
|
-
parent_id: Union[
|
|
294
|
+
parent_id: Union[Unset, str] = UNSET,
|
|
303
295
|
published_at_after: Union[Unset, datetime.datetime] = UNSET,
|
|
304
296
|
published_at_before: Union[Unset, datetime.datetime] = UNSET,
|
|
305
297
|
task: Union[Unset, str] = UNSET,
|
|
306
298
|
task_id: str,
|
|
307
299
|
text: Union[Unset, str] = UNSET,
|
|
308
300
|
) -> Optional[PaginatedCommentList]:
|
|
309
|
-
"""List
|
|
310
|
-
|
|
311
|
-
written.
|
|
301
|
+
"""List comments for a task with filtering options. Filter by author, text content, or date range. Sort
|
|
302
|
+
by date or hierarchical thread order. Task ID required. Supports pagination.
|
|
312
303
|
|
|
313
304
|
Args:
|
|
314
305
|
author (Union[Unset, str]):
|
|
@@ -317,7 +308,7 @@ async def asyncio(
|
|
|
317
308
|
limit (Union[Unset, int]):
|
|
318
309
|
o (Union[Unset, list[ListCommentsOItem]]):
|
|
319
310
|
offset (Union[Unset, int]):
|
|
320
|
-
parent_id (Union[
|
|
311
|
+
parent_id (Union[Unset, str]):
|
|
321
312
|
published_at_after (Union[Unset, datetime.datetime]):
|
|
322
313
|
published_at_before (Union[Unset, datetime.datetime]):
|
|
323
314
|
task (Union[Unset, str]):
|
|
@@ -59,8 +59,8 @@ def sync_detailed(
|
|
|
59
59
|
) -> Response[Union[Any, WrappedDartboard]]:
|
|
60
60
|
"""Retrieve an existing dartboard
|
|
61
61
|
|
|
62
|
-
Retrieve an existing dartboard. This will return the dartboard's information, including the title
|
|
63
|
-
|
|
62
|
+
Retrieve an existing dartboard. This will return the dartboard's information, including the title
|
|
63
|
+
and description.
|
|
64
64
|
|
|
65
65
|
Args:
|
|
66
66
|
id (str):
|
|
@@ -91,8 +91,8 @@ def sync(
|
|
|
91
91
|
) -> Optional[Union[Any, WrappedDartboard]]:
|
|
92
92
|
"""Retrieve an existing dartboard
|
|
93
93
|
|
|
94
|
-
Retrieve an existing dartboard. This will return the dartboard's information, including the title
|
|
95
|
-
|
|
94
|
+
Retrieve an existing dartboard. This will return the dartboard's information, including the title
|
|
95
|
+
and description.
|
|
96
96
|
|
|
97
97
|
Args:
|
|
98
98
|
id (str):
|
|
@@ -118,8 +118,8 @@ async def asyncio_detailed(
|
|
|
118
118
|
) -> Response[Union[Any, WrappedDartboard]]:
|
|
119
119
|
"""Retrieve an existing dartboard
|
|
120
120
|
|
|
121
|
-
Retrieve an existing dartboard. This will return the dartboard's information, including the title
|
|
122
|
-
|
|
121
|
+
Retrieve an existing dartboard. This will return the dartboard's information, including the title
|
|
122
|
+
and description.
|
|
123
123
|
|
|
124
124
|
Args:
|
|
125
125
|
id (str):
|
|
@@ -148,8 +148,8 @@ async def asyncio(
|
|
|
148
148
|
) -> Optional[Union[Any, WrappedDartboard]]:
|
|
149
149
|
"""Retrieve an existing dartboard
|
|
150
150
|
|
|
151
|
-
Retrieve an existing dartboard. This will return the dartboard's information, including the title
|
|
152
|
-
|
|
151
|
+
Retrieve an existing dartboard. This will return the dartboard's information, including the title
|
|
152
|
+
and description.
|
|
153
153
|
|
|
154
154
|
Args:
|
|
155
155
|
id (str):
|
|
@@ -101,8 +101,8 @@ def sync_detailed(
|
|
|
101
101
|
text: Union[Unset, str] = UNSET,
|
|
102
102
|
title: Union[Unset, str] = UNSET,
|
|
103
103
|
) -> Response[PaginatedConciseDocList]:
|
|
104
|
-
"""List
|
|
105
|
-
|
|
104
|
+
"""List docs with filtering and search capabilities. Filter by folder, title, text content, or use
|
|
105
|
+
full-text search. Sort by creation/update date or title. Supports pagination.
|
|
106
106
|
|
|
107
107
|
Args:
|
|
108
108
|
folder (Union[Unset, str]):
|
|
@@ -158,8 +158,8 @@ def sync(
|
|
|
158
158
|
text: Union[Unset, str] = UNSET,
|
|
159
159
|
title: Union[Unset, str] = UNSET,
|
|
160
160
|
) -> Optional[PaginatedConciseDocList]:
|
|
161
|
-
"""List
|
|
162
|
-
|
|
161
|
+
"""List docs with filtering and search capabilities. Filter by folder, title, text content, or use
|
|
162
|
+
full-text search. Sort by creation/update date or title. Supports pagination.
|
|
163
163
|
|
|
164
164
|
Args:
|
|
165
165
|
folder (Union[Unset, str]):
|
|
@@ -210,8 +210,8 @@ async def asyncio_detailed(
|
|
|
210
210
|
text: Union[Unset, str] = UNSET,
|
|
211
211
|
title: Union[Unset, str] = UNSET,
|
|
212
212
|
) -> Response[PaginatedConciseDocList]:
|
|
213
|
-
"""List
|
|
214
|
-
|
|
213
|
+
"""List docs with filtering and search capabilities. Filter by folder, title, text content, or use
|
|
214
|
+
full-text search. Sort by creation/update date or title. Supports pagination.
|
|
215
215
|
|
|
216
216
|
Args:
|
|
217
217
|
folder (Union[Unset, str]):
|
|
@@ -265,8 +265,8 @@ async def asyncio(
|
|
|
265
265
|
text: Union[Unset, str] = UNSET,
|
|
266
266
|
title: Union[Unset, str] = UNSET,
|
|
267
267
|
) -> Optional[PaginatedConciseDocList]:
|
|
268
|
-
"""List
|
|
269
|
-
|
|
268
|
+
"""List docs with filtering and search capabilities. Filter by folder, title, text content, or use
|
|
269
|
+
full-text search. Sort by creation/update date or title. Supports pagination.
|
|
270
270
|
|
|
271
271
|
Args:
|
|
272
272
|
folder (Union[Unset, str]):
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.wrapped_help_center_articles import WrappedHelpCenterArticles
|
|
9
|
+
from ...types import UNSET, Response, Unset
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
*,
|
|
14
|
+
query: Union[Unset, str] = UNSET,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
params: dict[str, Any] = {}
|
|
17
|
+
|
|
18
|
+
params["query"] = query
|
|
19
|
+
|
|
20
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
21
|
+
|
|
22
|
+
_kwargs: dict[str, Any] = {
|
|
23
|
+
"method": "get",
|
|
24
|
+
"url": "/help-center-articles/list",
|
|
25
|
+
"params": params,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return _kwargs
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _parse_response(
|
|
32
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
33
|
+
) -> Optional[WrappedHelpCenterArticles]:
|
|
34
|
+
if response.status_code == 200:
|
|
35
|
+
response_200 = WrappedHelpCenterArticles.from_dict(response.json())
|
|
36
|
+
|
|
37
|
+
return response_200
|
|
38
|
+
if client.raise_on_unexpected_status:
|
|
39
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
|
+
else:
|
|
41
|
+
return None
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _build_response(
|
|
45
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
46
|
+
) -> Response[WrappedHelpCenterArticles]:
|
|
47
|
+
return Response(
|
|
48
|
+
status_code=HTTPStatus(response.status_code),
|
|
49
|
+
content=response.content,
|
|
50
|
+
headers=response.headers,
|
|
51
|
+
parsed=_parse_response(client=client, response=response),
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def sync_detailed(
|
|
56
|
+
*,
|
|
57
|
+
client: Union[AuthenticatedClient, Client],
|
|
58
|
+
query: Union[Unset, str] = UNSET,
|
|
59
|
+
) -> Response[WrappedHelpCenterArticles]:
|
|
60
|
+
"""List help center articles by query
|
|
61
|
+
|
|
62
|
+
Search for up to two help center articles by their semantic similarity to a short (1-5 word) query.
|
|
63
|
+
|
|
64
|
+
Args:
|
|
65
|
+
query (Union[Unset, str]):
|
|
66
|
+
|
|
67
|
+
Raises:
|
|
68
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
69
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
70
|
+
|
|
71
|
+
Returns:
|
|
72
|
+
Response[WrappedHelpCenterArticles]
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
kwargs = _get_kwargs(
|
|
76
|
+
query=query,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
response = client.get_httpx_client().request(
|
|
80
|
+
**kwargs,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
return _build_response(client=client, response=response)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def sync(
|
|
87
|
+
*,
|
|
88
|
+
client: Union[AuthenticatedClient, Client],
|
|
89
|
+
query: Union[Unset, str] = UNSET,
|
|
90
|
+
) -> Optional[WrappedHelpCenterArticles]:
|
|
91
|
+
"""List help center articles by query
|
|
92
|
+
|
|
93
|
+
Search for up to two help center articles by their semantic similarity to a short (1-5 word) query.
|
|
94
|
+
|
|
95
|
+
Args:
|
|
96
|
+
query (Union[Unset, str]):
|
|
97
|
+
|
|
98
|
+
Raises:
|
|
99
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
100
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
101
|
+
|
|
102
|
+
Returns:
|
|
103
|
+
WrappedHelpCenterArticles
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
return sync_detailed(
|
|
107
|
+
client=client,
|
|
108
|
+
query=query,
|
|
109
|
+
).parsed
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
async def asyncio_detailed(
|
|
113
|
+
*,
|
|
114
|
+
client: Union[AuthenticatedClient, Client],
|
|
115
|
+
query: Union[Unset, str] = UNSET,
|
|
116
|
+
) -> Response[WrappedHelpCenterArticles]:
|
|
117
|
+
"""List help center articles by query
|
|
118
|
+
|
|
119
|
+
Search for up to two help center articles by their semantic similarity to a short (1-5 word) query.
|
|
120
|
+
|
|
121
|
+
Args:
|
|
122
|
+
query (Union[Unset, str]):
|
|
123
|
+
|
|
124
|
+
Raises:
|
|
125
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
126
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
127
|
+
|
|
128
|
+
Returns:
|
|
129
|
+
Response[WrappedHelpCenterArticles]
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
kwargs = _get_kwargs(
|
|
133
|
+
query=query,
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
137
|
+
|
|
138
|
+
return _build_response(client=client, response=response)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
async def asyncio(
|
|
142
|
+
*,
|
|
143
|
+
client: Union[AuthenticatedClient, Client],
|
|
144
|
+
query: Union[Unset, str] = UNSET,
|
|
145
|
+
) -> Optional[WrappedHelpCenterArticles]:
|
|
146
|
+
"""List help center articles by query
|
|
147
|
+
|
|
148
|
+
Search for up to two help center articles by their semantic similarity to a short (1-5 word) query.
|
|
149
|
+
|
|
150
|
+
Args:
|
|
151
|
+
query (Union[Unset, str]):
|
|
152
|
+
|
|
153
|
+
Raises:
|
|
154
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
155
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
156
|
+
|
|
157
|
+
Returns:
|
|
158
|
+
WrappedHelpCenterArticles
|
|
159
|
+
"""
|
|
160
|
+
|
|
161
|
+
return (
|
|
162
|
+
await asyncio_detailed(
|
|
163
|
+
client=client,
|
|
164
|
+
query=query,
|
|
165
|
+
)
|
|
166
|
+
).parsed
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.wrapped_skill import WrappedSkill
|
|
9
|
+
from ...types import UNSET, Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
*,
|
|
14
|
+
title: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
params: dict[str, Any] = {}
|
|
17
|
+
|
|
18
|
+
params["title"] = title
|
|
19
|
+
|
|
20
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
21
|
+
|
|
22
|
+
_kwargs: dict[str, Any] = {
|
|
23
|
+
"method": "get",
|
|
24
|
+
"url": "/skills/by-title",
|
|
25
|
+
"params": params,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return _kwargs
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _parse_response(
|
|
32
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
33
|
+
) -> Optional[Union[Any, WrappedSkill]]:
|
|
34
|
+
if response.status_code == 200:
|
|
35
|
+
response_200 = WrappedSkill.from_dict(response.json())
|
|
36
|
+
|
|
37
|
+
return response_200
|
|
38
|
+
if response.status_code == 404:
|
|
39
|
+
response_404 = cast(Any, None)
|
|
40
|
+
return response_404
|
|
41
|
+
if client.raise_on_unexpected_status:
|
|
42
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
43
|
+
else:
|
|
44
|
+
return None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _build_response(
|
|
48
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
49
|
+
) -> Response[Union[Any, WrappedSkill]]:
|
|
50
|
+
return Response(
|
|
51
|
+
status_code=HTTPStatus(response.status_code),
|
|
52
|
+
content=response.content,
|
|
53
|
+
headers=response.headers,
|
|
54
|
+
parsed=_parse_response(client=client, response=response),
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def sync_detailed(
|
|
59
|
+
*,
|
|
60
|
+
client: Union[AuthenticatedClient, Client],
|
|
61
|
+
title: str,
|
|
62
|
+
) -> Response[Union[Any, WrappedSkill]]:
|
|
63
|
+
"""Retrieve a skill by title
|
|
64
|
+
|
|
65
|
+
Retrieve a skill by its title. Skills are user-defined instructions or templates for performing
|
|
66
|
+
specific task types in the workspace. Returns the skill's title and instructions if found.
|
|
67
|
+
|
|
68
|
+
Args:
|
|
69
|
+
title (str):
|
|
70
|
+
|
|
71
|
+
Raises:
|
|
72
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
73
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
74
|
+
|
|
75
|
+
Returns:
|
|
76
|
+
Response[Union[Any, WrappedSkill]]
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
kwargs = _get_kwargs(
|
|
80
|
+
title=title,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
response = client.get_httpx_client().request(
|
|
84
|
+
**kwargs,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
return _build_response(client=client, response=response)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def sync(
|
|
91
|
+
*,
|
|
92
|
+
client: Union[AuthenticatedClient, Client],
|
|
93
|
+
title: str,
|
|
94
|
+
) -> Optional[Union[Any, WrappedSkill]]:
|
|
95
|
+
"""Retrieve a skill by title
|
|
96
|
+
|
|
97
|
+
Retrieve a skill by its title. Skills are user-defined instructions or templates for performing
|
|
98
|
+
specific task types in the workspace. Returns the skill's title and instructions if found.
|
|
99
|
+
|
|
100
|
+
Args:
|
|
101
|
+
title (str):
|
|
102
|
+
|
|
103
|
+
Raises:
|
|
104
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
105
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
106
|
+
|
|
107
|
+
Returns:
|
|
108
|
+
Union[Any, WrappedSkill]
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
return sync_detailed(
|
|
112
|
+
client=client,
|
|
113
|
+
title=title,
|
|
114
|
+
).parsed
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
async def asyncio_detailed(
|
|
118
|
+
*,
|
|
119
|
+
client: Union[AuthenticatedClient, Client],
|
|
120
|
+
title: str,
|
|
121
|
+
) -> Response[Union[Any, WrappedSkill]]:
|
|
122
|
+
"""Retrieve a skill by title
|
|
123
|
+
|
|
124
|
+
Retrieve a skill by its title. Skills are user-defined instructions or templates for performing
|
|
125
|
+
specific task types in the workspace. Returns the skill's title and instructions if found.
|
|
126
|
+
|
|
127
|
+
Args:
|
|
128
|
+
title (str):
|
|
129
|
+
|
|
130
|
+
Raises:
|
|
131
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
132
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
133
|
+
|
|
134
|
+
Returns:
|
|
135
|
+
Response[Union[Any, WrappedSkill]]
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
kwargs = _get_kwargs(
|
|
139
|
+
title=title,
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
143
|
+
|
|
144
|
+
return _build_response(client=client, response=response)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
async def asyncio(
|
|
148
|
+
*,
|
|
149
|
+
client: Union[AuthenticatedClient, Client],
|
|
150
|
+
title: str,
|
|
151
|
+
) -> Optional[Union[Any, WrappedSkill]]:
|
|
152
|
+
"""Retrieve a skill by title
|
|
153
|
+
|
|
154
|
+
Retrieve a skill by its title. Skills are user-defined instructions or templates for performing
|
|
155
|
+
specific task types in the workspace. Returns the skill's title and instructions if found.
|
|
156
|
+
|
|
157
|
+
Args:
|
|
158
|
+
title (str):
|
|
159
|
+
|
|
160
|
+
Raises:
|
|
161
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
162
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
163
|
+
|
|
164
|
+
Returns:
|
|
165
|
+
Union[Any, WrappedSkill]
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
return (
|
|
169
|
+
await asyncio_detailed(
|
|
170
|
+
client=client,
|
|
171
|
+
title=title,
|
|
172
|
+
)
|
|
173
|
+
).parsed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -57,9 +57,9 @@ def sync_detailed(
|
|
|
57
57
|
) -> Response[WrappedTask]:
|
|
58
58
|
"""Create a new task
|
|
59
59
|
|
|
60
|
-
Record a new task that the user intends to do.
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
Record a new task that the user intends to do. By default the task will be assigned to the current
|
|
61
|
+
user, have an unstarted status, have no parent, and be in the default dartboard. More information
|
|
62
|
+
can be included in the description.
|
|
63
63
|
|
|
64
64
|
Args:
|
|
65
65
|
body (WrappedTaskCreate):
|
|
@@ -90,9 +90,9 @@ def sync(
|
|
|
90
90
|
) -> Optional[WrappedTask]:
|
|
91
91
|
"""Create a new task
|
|
92
92
|
|
|
93
|
-
Record a new task that the user intends to do.
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
Record a new task that the user intends to do. By default the task will be assigned to the current
|
|
94
|
+
user, have an unstarted status, have no parent, and be in the default dartboard. More information
|
|
95
|
+
can be included in the description.
|
|
96
96
|
|
|
97
97
|
Args:
|
|
98
98
|
body (WrappedTaskCreate):
|
|
@@ -118,9 +118,9 @@ async def asyncio_detailed(
|
|
|
118
118
|
) -> Response[WrappedTask]:
|
|
119
119
|
"""Create a new task
|
|
120
120
|
|
|
121
|
-
Record a new task that the user intends to do.
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
Record a new task that the user intends to do. By default the task will be assigned to the current
|
|
122
|
+
user, have an unstarted status, have no parent, and be in the default dartboard. More information
|
|
123
|
+
can be included in the description.
|
|
124
124
|
|
|
125
125
|
Args:
|
|
126
126
|
body (WrappedTaskCreate):
|
|
@@ -149,9 +149,9 @@ async def asyncio(
|
|
|
149
149
|
) -> Optional[WrappedTask]:
|
|
150
150
|
"""Create a new task
|
|
151
151
|
|
|
152
|
-
Record a new task that the user intends to do.
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
Record a new task that the user intends to do. By default the task will be assigned to the current
|
|
153
|
+
user, have an unstarted status, have no parent, and be in the default dartboard. More information
|
|
154
|
+
can be included in the description.
|
|
155
155
|
|
|
156
156
|
Args:
|
|
157
157
|
body (WrappedTaskCreate):
|