dart-tools 0.8.1__tar.gz → 0.8.3__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.
- {dart_tools-0.8.1/dart_tools.egg-info → dart_tools-0.8.3}/PKG-INFO +1 -1
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/dart.py +4 -4
- dart_tools-0.8.3/dart/generated/api/__init__.py +11 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/comment/list_comments.py +36 -27
- dart_tools-0.8.1/dart/generated/api/dartboard/retrieve_dartboard.py → dart_tools-0.8.3/dart/generated/api/dartboard/get_dartboard.py +8 -8
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/doc/list_docs.py +8 -8
- dart_tools-0.8.3/dart/generated/api/help_center_article/list_help_center_articles.py +166 -0
- dart_tools-0.8.3/dart/generated/api/skill/retrieve_skill_by_title.py +173 -0
- dart_tools-0.8.3/dart/generated/api/task/__init__.py +1 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/task/create_task.py +12 -12
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/task/list_tasks.py +110 -44
- dart_tools-0.8.3/dart/generated/api/view/__init__.py +1 -0
- dart_tools-0.8.1/dart/generated/api/view/retrieve_view.py → dart_tools-0.8.3/dart/generated/api/view/get_view.py +4 -4
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/__init__.py +10 -2
- dart_tools-0.8.3/dart/generated/models/attachment.py +67 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/concise_task.py +3 -1
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/dartboard.py +1 -23
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/folder.py +1 -23
- dart_tools-0.8.3/dart/generated/models/skill.py +75 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/task.py +32 -11
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/task_create.py +13 -11
- dart_tools-0.8.1/dart/generated/models/task_relationships.py → dart_tools-0.8.3/dart/generated/models/task_relationships_type_0.py +19 -9
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/task_update.py +13 -11
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user.py +8 -5
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration.py +8 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/view.py +1 -23
- dart_tools-0.8.3/dart/generated/models/wrapped_help_center_articles.py +59 -0
- dart_tools-0.8.3/dart/generated/models/wrapped_skill.py +65 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3/dart_tools.egg-info}/PKG-INFO +1 -1
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart_tools.egg-info/SOURCES.txt +15 -7
- {dart_tools-0.8.1 → dart_tools-0.8.3}/pyproject.toml +1 -1
- dart_tools-0.8.1/dart/generated/api/__init__.py +0 -9
- {dart_tools-0.8.1 → dart_tools-0.8.3}/LICENSE +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/README.md +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/__init__.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/exception.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/__init__.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/comment/__init__.py +0 -0
- /dart_tools-0.8.1/dart/generated/api/comment/create_comment.py → /dart_tools-0.8.3/dart/generated/api/comment/add_task_comment.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/config/__init__.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/config/get_config.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/dartboard/__init__.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/doc/__init__.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/doc/create_doc.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/doc/delete_doc.py +0 -0
- /dart_tools-0.8.1/dart/generated/api/doc/retrieve_doc.py → /dart_tools-0.8.3/dart/generated/api/doc/get_doc.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/doc/update_doc.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/folder/__init__.py +0 -0
- /dart_tools-0.8.1/dart/generated/api/folder/retrieve_folder.py → /dart_tools-0.8.3/dart/generated/api/folder/get_folder.py +0 -0
- {dart_tools-0.8.1/dart/generated/api/task → dart_tools-0.8.3/dart/generated/api/help_center_article}/__init__.py +0 -0
- {dart_tools-0.8.1/dart/generated/api/view → dart_tools-0.8.3/dart/generated/api/skill}/__init__.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/task/delete_task.py +0 -0
- /dart_tools-0.8.1/dart/generated/api/task/retrieve_task.py → /dart_tools-0.8.3/dart/generated/api/task/get_task.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/api/task/update_task.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/client.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/errors.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/comment.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/comment_create.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/concise_doc.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/custom_properties.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/doc.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/doc_create.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/doc_update.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/list_comments_o_item.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/list_docs_o_item.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/paginated_comment_list.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/paginated_concise_doc_list.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/paginated_concise_task_list.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/priority.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/time_tracking_entry.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_checkbox_type_def.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_dates_type_def.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_multiselect_type_def.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_number_type_def.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_number_type_def_custom_property_number_format_type_def.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_select_type_def.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_status_type_def.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_text_type_def.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_time_tracking_type_def.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_user_type_def.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_comment.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_comment_create.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_dartboard.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_doc.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_doc_create.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_doc_update.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_folder.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_task.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_task_create.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_task_update.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/models/wrapped_view.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/generated/types.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/old.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/order_manager.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart/webhook.py +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart_tools.egg-info/dependency_links.txt +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart_tools.egg-info/entry_points.txt +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart_tools.egg-info/requires.txt +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/dart_tools.egg-info/top_level.txt +0 -0
- {dart_tools-0.8.1 → dart_tools-0.8.3}/setup.cfg +0 -0
|
@@ -120,7 +120,7 @@ _HELP_TEXT_TO_COMMAND = {
|
|
|
120
120
|
_CREATE_DOC_CMD: _get_help_text(api.create_doc.sync_detailed),
|
|
121
121
|
_UPDATE_DOC_CMD: _get_help_text(api.update_doc.sync_detailed),
|
|
122
122
|
_DELETE_DOC_CMD: _get_help_text(api.delete_doc.sync_detailed),
|
|
123
|
-
_CREATE_COMMENT_CMD: _get_help_text(api.
|
|
123
|
+
_CREATE_COMMENT_CMD: _get_help_text(api.add_task_comment.sync_detailed),
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
_is_cli = False
|
|
@@ -313,7 +313,7 @@ class Dart:
|
|
|
313
313
|
|
|
314
314
|
@_handle_request_errors
|
|
315
315
|
def retrieve_task(self, id: str) -> WrappedTask:
|
|
316
|
-
response = api.
|
|
316
|
+
response = api.get_task.sync_detailed(id, client=self._public_api)
|
|
317
317
|
return _get_response_parsed(response, not_found_message=f"Task with ID {id} not found.")
|
|
318
318
|
|
|
319
319
|
@_handle_request_errors
|
|
@@ -333,7 +333,7 @@ class Dart:
|
|
|
333
333
|
|
|
334
334
|
@_handle_request_errors
|
|
335
335
|
def create_comment(self, body: WrappedCommentCreate) -> WrappedComment:
|
|
336
|
-
response = api.
|
|
336
|
+
response = api.add_task_comment.sync_detailed(client=self._public_api, body=body)
|
|
337
337
|
return _get_response_parsed(response)
|
|
338
338
|
|
|
339
339
|
@_handle_request_errors
|
|
@@ -348,7 +348,7 @@ class Dart:
|
|
|
348
348
|
|
|
349
349
|
@_handle_request_errors
|
|
350
350
|
def retrieve_doc(self, id: str) -> WrappedDoc:
|
|
351
|
-
response = api.
|
|
351
|
+
response = api.get_doc.sync_detailed(id, client=self._public_api)
|
|
352
352
|
return _get_response_parsed(response, not_found_message=f"Doc with ID {id} not found.")
|
|
353
353
|
|
|
354
354
|
@_handle_request_errors
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""Contains methods for accessing the API"""
|
|
2
|
+
|
|
3
|
+
from .comment import add_task_comment, list_comments
|
|
4
|
+
from .config import get_config
|
|
5
|
+
from .dartboard import get_dartboard
|
|
6
|
+
from .doc import create_doc, delete_doc, get_doc, list_docs, update_doc
|
|
7
|
+
from .folder import get_folder
|
|
8
|
+
from .help_center_article import list_help_center_articles
|
|
9
|
+
from .skill import retrieve_skill_by_title
|
|
10
|
+
from .task import create_task, delete_task, get_task, list_tasks, update_task
|
|
11
|
+
from .view import get_view
|
|
@@ -19,7 +19,8 @@ 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
|
+
published_at: Union[Unset, datetime.datetime] = UNSET,
|
|
23
24
|
published_at_after: Union[Unset, datetime.datetime] = UNSET,
|
|
24
25
|
published_at_before: Union[Unset, datetime.datetime] = UNSET,
|
|
25
26
|
task: Union[Unset, str] = UNSET,
|
|
@@ -47,12 +48,12 @@ def _get_kwargs(
|
|
|
47
48
|
|
|
48
49
|
params["offset"] = offset
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
params["
|
|
51
|
+
params["parent_id"] = parent_id
|
|
52
|
+
|
|
53
|
+
json_published_at: Union[Unset, str] = UNSET
|
|
54
|
+
if not isinstance(published_at, Unset):
|
|
55
|
+
json_published_at = published_at.isoformat()
|
|
56
|
+
params["published_at"] = json_published_at
|
|
56
57
|
|
|
57
58
|
json_published_at_after: Union[Unset, str] = UNSET
|
|
58
59
|
if not isinstance(published_at_after, Unset):
|
|
@@ -114,16 +115,16 @@ def sync_detailed(
|
|
|
114
115
|
limit: Union[Unset, int] = UNSET,
|
|
115
116
|
o: Union[Unset, list[ListCommentsOItem]] = UNSET,
|
|
116
117
|
offset: Union[Unset, int] = UNSET,
|
|
117
|
-
parent_id: Union[
|
|
118
|
+
parent_id: Union[Unset, str] = UNSET,
|
|
119
|
+
published_at: Union[Unset, datetime.datetime] = UNSET,
|
|
118
120
|
published_at_after: Union[Unset, datetime.datetime] = UNSET,
|
|
119
121
|
published_at_before: Union[Unset, datetime.datetime] = UNSET,
|
|
120
122
|
task: Union[Unset, str] = UNSET,
|
|
121
123
|
task_id: str,
|
|
122
124
|
text: Union[Unset, str] = UNSET,
|
|
123
125
|
) -> Response[PaginatedCommentList]:
|
|
124
|
-
"""List
|
|
125
|
-
|
|
126
|
-
written.
|
|
126
|
+
"""List comments for a task with filtering options. Filter by author, text content, or date range. Sort
|
|
127
|
+
by date or hierarchical thread order. Task ID required. Supports pagination.
|
|
127
128
|
|
|
128
129
|
Args:
|
|
129
130
|
author (Union[Unset, str]):
|
|
@@ -132,7 +133,8 @@ def sync_detailed(
|
|
|
132
133
|
limit (Union[Unset, int]):
|
|
133
134
|
o (Union[Unset, list[ListCommentsOItem]]):
|
|
134
135
|
offset (Union[Unset, int]):
|
|
135
|
-
parent_id (Union[
|
|
136
|
+
parent_id (Union[Unset, str]):
|
|
137
|
+
published_at (Union[Unset, datetime.datetime]):
|
|
136
138
|
published_at_after (Union[Unset, datetime.datetime]):
|
|
137
139
|
published_at_before (Union[Unset, datetime.datetime]):
|
|
138
140
|
task (Union[Unset, str]):
|
|
@@ -155,6 +157,7 @@ def sync_detailed(
|
|
|
155
157
|
o=o,
|
|
156
158
|
offset=offset,
|
|
157
159
|
parent_id=parent_id,
|
|
160
|
+
published_at=published_at,
|
|
158
161
|
published_at_after=published_at_after,
|
|
159
162
|
published_at_before=published_at_before,
|
|
160
163
|
task=task,
|
|
@@ -178,16 +181,16 @@ def sync(
|
|
|
178
181
|
limit: Union[Unset, int] = UNSET,
|
|
179
182
|
o: Union[Unset, list[ListCommentsOItem]] = UNSET,
|
|
180
183
|
offset: Union[Unset, int] = UNSET,
|
|
181
|
-
parent_id: Union[
|
|
184
|
+
parent_id: Union[Unset, str] = UNSET,
|
|
185
|
+
published_at: Union[Unset, datetime.datetime] = UNSET,
|
|
182
186
|
published_at_after: Union[Unset, datetime.datetime] = UNSET,
|
|
183
187
|
published_at_before: Union[Unset, datetime.datetime] = UNSET,
|
|
184
188
|
task: Union[Unset, str] = UNSET,
|
|
185
189
|
task_id: str,
|
|
186
190
|
text: Union[Unset, str] = UNSET,
|
|
187
191
|
) -> Optional[PaginatedCommentList]:
|
|
188
|
-
"""List
|
|
189
|
-
|
|
190
|
-
written.
|
|
192
|
+
"""List comments for a task with filtering options. Filter by author, text content, or date range. Sort
|
|
193
|
+
by date or hierarchical thread order. Task ID required. Supports pagination.
|
|
191
194
|
|
|
192
195
|
Args:
|
|
193
196
|
author (Union[Unset, str]):
|
|
@@ -196,7 +199,8 @@ def sync(
|
|
|
196
199
|
limit (Union[Unset, int]):
|
|
197
200
|
o (Union[Unset, list[ListCommentsOItem]]):
|
|
198
201
|
offset (Union[Unset, int]):
|
|
199
|
-
parent_id (Union[
|
|
202
|
+
parent_id (Union[Unset, str]):
|
|
203
|
+
published_at (Union[Unset, datetime.datetime]):
|
|
200
204
|
published_at_after (Union[Unset, datetime.datetime]):
|
|
201
205
|
published_at_before (Union[Unset, datetime.datetime]):
|
|
202
206
|
task (Union[Unset, str]):
|
|
@@ -220,6 +224,7 @@ def sync(
|
|
|
220
224
|
o=o,
|
|
221
225
|
offset=offset,
|
|
222
226
|
parent_id=parent_id,
|
|
227
|
+
published_at=published_at,
|
|
223
228
|
published_at_after=published_at_after,
|
|
224
229
|
published_at_before=published_at_before,
|
|
225
230
|
task=task,
|
|
@@ -237,16 +242,16 @@ async def asyncio_detailed(
|
|
|
237
242
|
limit: Union[Unset, int] = UNSET,
|
|
238
243
|
o: Union[Unset, list[ListCommentsOItem]] = UNSET,
|
|
239
244
|
offset: Union[Unset, int] = UNSET,
|
|
240
|
-
parent_id: Union[
|
|
245
|
+
parent_id: Union[Unset, str] = UNSET,
|
|
246
|
+
published_at: Union[Unset, datetime.datetime] = UNSET,
|
|
241
247
|
published_at_after: Union[Unset, datetime.datetime] = UNSET,
|
|
242
248
|
published_at_before: Union[Unset, datetime.datetime] = UNSET,
|
|
243
249
|
task: Union[Unset, str] = UNSET,
|
|
244
250
|
task_id: str,
|
|
245
251
|
text: Union[Unset, str] = UNSET,
|
|
246
252
|
) -> Response[PaginatedCommentList]:
|
|
247
|
-
"""List
|
|
248
|
-
|
|
249
|
-
written.
|
|
253
|
+
"""List comments for a task with filtering options. Filter by author, text content, or date range. Sort
|
|
254
|
+
by date or hierarchical thread order. Task ID required. Supports pagination.
|
|
250
255
|
|
|
251
256
|
Args:
|
|
252
257
|
author (Union[Unset, str]):
|
|
@@ -255,7 +260,8 @@ async def asyncio_detailed(
|
|
|
255
260
|
limit (Union[Unset, int]):
|
|
256
261
|
o (Union[Unset, list[ListCommentsOItem]]):
|
|
257
262
|
offset (Union[Unset, int]):
|
|
258
|
-
parent_id (Union[
|
|
263
|
+
parent_id (Union[Unset, str]):
|
|
264
|
+
published_at (Union[Unset, datetime.datetime]):
|
|
259
265
|
published_at_after (Union[Unset, datetime.datetime]):
|
|
260
266
|
published_at_before (Union[Unset, datetime.datetime]):
|
|
261
267
|
task (Union[Unset, str]):
|
|
@@ -278,6 +284,7 @@ async def asyncio_detailed(
|
|
|
278
284
|
o=o,
|
|
279
285
|
offset=offset,
|
|
280
286
|
parent_id=parent_id,
|
|
287
|
+
published_at=published_at,
|
|
281
288
|
published_at_after=published_at_after,
|
|
282
289
|
published_at_before=published_at_before,
|
|
283
290
|
task=task,
|
|
@@ -299,16 +306,16 @@ async def asyncio(
|
|
|
299
306
|
limit: Union[Unset, int] = UNSET,
|
|
300
307
|
o: Union[Unset, list[ListCommentsOItem]] = UNSET,
|
|
301
308
|
offset: Union[Unset, int] = UNSET,
|
|
302
|
-
parent_id: Union[
|
|
309
|
+
parent_id: Union[Unset, str] = UNSET,
|
|
310
|
+
published_at: Union[Unset, datetime.datetime] = UNSET,
|
|
303
311
|
published_at_after: Union[Unset, datetime.datetime] = UNSET,
|
|
304
312
|
published_at_before: Union[Unset, datetime.datetime] = UNSET,
|
|
305
313
|
task: Union[Unset, str] = UNSET,
|
|
306
314
|
task_id: str,
|
|
307
315
|
text: Union[Unset, str] = UNSET,
|
|
308
316
|
) -> Optional[PaginatedCommentList]:
|
|
309
|
-
"""List
|
|
310
|
-
|
|
311
|
-
written.
|
|
317
|
+
"""List comments for a task with filtering options. Filter by author, text content, or date range. Sort
|
|
318
|
+
by date or hierarchical thread order. Task ID required. Supports pagination.
|
|
312
319
|
|
|
313
320
|
Args:
|
|
314
321
|
author (Union[Unset, str]):
|
|
@@ -317,7 +324,8 @@ async def asyncio(
|
|
|
317
324
|
limit (Union[Unset, int]):
|
|
318
325
|
o (Union[Unset, list[ListCommentsOItem]]):
|
|
319
326
|
offset (Union[Unset, int]):
|
|
320
|
-
parent_id (Union[
|
|
327
|
+
parent_id (Union[Unset, str]):
|
|
328
|
+
published_at (Union[Unset, datetime.datetime]):
|
|
321
329
|
published_at_after (Union[Unset, datetime.datetime]):
|
|
322
330
|
published_at_before (Union[Unset, datetime.datetime]):
|
|
323
331
|
task (Union[Unset, str]):
|
|
@@ -342,6 +350,7 @@ async def asyncio(
|
|
|
342
350
|
o=o,
|
|
343
351
|
offset=offset,
|
|
344
352
|
parent_id=parent_id,
|
|
353
|
+
published_at=published_at,
|
|
345
354
|
published_at_after=published_at_after,
|
|
346
355
|
published_at_before=published_at_before,
|
|
347
356
|
task=task,
|
|
@@ -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"""
|