samplehc 0.11.0__py3-none-any.whl → 0.12.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- samplehc/__init__.py +3 -1
- samplehc/_base_client.py +9 -9
- samplehc/_client.py +8 -8
- samplehc/_models.py +10 -4
- samplehc/_qs.py +7 -7
- samplehc/_types.py +18 -11
- samplehc/_utils/_transform.py +2 -2
- samplehc/_utils/_utils.py +4 -4
- samplehc/_version.py +1 -1
- samplehc/resources/v1/v1.py +9 -9
- samplehc/resources/v2/async_results.py +13 -13
- samplehc/resources/v2/browser_agents/browser_agents.py +5 -5
- samplehc/resources/v2/browser_agents/runs/help_requests.py +3 -3
- samplehc/resources/v2/browser_automation/availity.py +3 -3
- samplehc/resources/v2/clearinghouse/claim.py +29 -29
- samplehc/resources/v2/clearinghouse/clearinghouse.py +33 -33
- samplehc/resources/v2/clearinghouse/payers.py +5 -5
- samplehc/resources/v2/communication.py +29 -29
- samplehc/resources/v2/database.py +5 -5
- samplehc/resources/v2/documents/documents.py +152 -37
- samplehc/resources/v2/documents/formats.py +3 -3
- samplehc/resources/v2/documents/legacy.py +91 -6
- samplehc/resources/v2/documents/pdf_template.py +3 -3
- samplehc/resources/v2/documents/templates.py +27 -27
- samplehc/resources/v2/events.py +7 -7
- samplehc/resources/v2/hie/adt.py +7 -7
- samplehc/resources/v2/hie/documents.py +15 -15
- samplehc/resources/v2/integrations/bank/transactions.py +5 -5
- samplehc/resources/v2/integrations/careviso.py +29 -29
- samplehc/resources/v2/integrations/glidian/glidian.py +13 -13
- samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +5 -5
- samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +19 -19
- samplehc/resources/v2/integrations/kno2/messages.py +5 -5
- samplehc/resources/v2/integrations/salesforce.py +7 -7
- samplehc/resources/v2/integrations/snowflake.py +3 -3
- samplehc/resources/v2/integrations/xcures.py +7 -7
- samplehc/resources/v2/ledger/account.py +10 -11
- samplehc/resources/v2/ledger/entry.py +21 -22
- samplehc/resources/v2/policies.py +47 -47
- samplehc/resources/v2/tasks/state.py +7 -7
- samplehc/resources/v2/tasks/tasks.py +15 -15
- samplehc/resources/v2/workflow_runs/step.py +3 -3
- samplehc/resources/v2/workflow_runs/workflow_runs.py +11 -11
- samplehc/resources/v2/workflows.py +13 -13
- samplehc/types/v2/__init__.py +1 -0
- samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +0 -2
- samplehc/types/v2/document_extract_params.py +4 -1
- samplehc/types/v2/document_split_params.py +16 -1
- samplehc/types/v2/document_unzip_async_response.py +12 -0
- samplehc/types/v2/documents/__init__.py +2 -0
- samplehc/types/v2/documents/legacy_split_params.py +20 -0
- samplehc/types/v2/documents/legacy_split_response.py +12 -0
- samplehc/types/v2/documents/template_render_document_params.py +17 -5
- samplehc/types/v2/ledger/account_writeoff_params.py +2 -3
- samplehc/types/v2/ledger/entry_post_params.py +1 -2
- samplehc/types/v2/ledger/entry_reverse_params.py +2 -3
- {samplehc-0.11.0.dist-info → samplehc-0.12.0.dist-info}/METADATA +1 -1
- {samplehc-0.11.0.dist-info → samplehc-0.12.0.dist-info}/RECORD +60 -57
- {samplehc-0.11.0.dist-info → samplehc-0.12.0.dist-info}/WHEEL +0 -0
- {samplehc-0.11.0.dist-info → samplehc-0.12.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Dict, Union
|
|
6
|
-
from datetime import datetime
|
|
7
6
|
from typing_extensions import Literal
|
|
8
7
|
|
|
9
8
|
import httpx
|
|
10
9
|
|
|
11
|
-
from ...._types import
|
|
10
|
+
from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
12
11
|
from ...._utils import maybe_transform, strip_not_given, async_maybe_transform
|
|
13
12
|
from ...._compat import cached_property
|
|
14
13
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -53,7 +52,7 @@ class EntryResource(SyncAPIResource):
|
|
|
53
52
|
entry_category: Literal["charge", "payment", "adjustment"],
|
|
54
53
|
line_item_id: str,
|
|
55
54
|
order_id: str,
|
|
56
|
-
description: str |
|
|
55
|
+
description: str | Omit = omit,
|
|
57
56
|
entry_type: Union[
|
|
58
57
|
Literal[
|
|
59
58
|
"insurance-payment",
|
|
@@ -69,17 +68,17 @@ class EntryResource(SyncAPIResource):
|
|
|
69
68
|
],
|
|
70
69
|
object,
|
|
71
70
|
]
|
|
72
|
-
|
|
|
73
|
-
metadata: Dict[str, object] |
|
|
74
|
-
payment_source: str |
|
|
75
|
-
posted_at:
|
|
76
|
-
idempotency_key: str |
|
|
71
|
+
| Omit = omit,
|
|
72
|
+
metadata: Dict[str, object] | Omit = omit,
|
|
73
|
+
payment_source: str | Omit = omit,
|
|
74
|
+
posted_at: str | Omit = omit,
|
|
75
|
+
idempotency_key: str | Omit = omit,
|
|
77
76
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
78
77
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
79
78
|
extra_headers: Headers | None = None,
|
|
80
79
|
extra_query: Query | None = None,
|
|
81
80
|
extra_body: Body | None = None,
|
|
82
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
81
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
83
82
|
) -> EntryPostResponse:
|
|
84
83
|
"""
|
|
85
84
|
Create diagnostics ledger entry
|
|
@@ -137,14 +136,14 @@ class EntryResource(SyncAPIResource):
|
|
|
137
136
|
self,
|
|
138
137
|
id: str,
|
|
139
138
|
*,
|
|
140
|
-
metadata: Dict[str, object] |
|
|
141
|
-
posted_at:
|
|
139
|
+
metadata: Dict[str, object] | Omit = omit,
|
|
140
|
+
posted_at: str | Omit = omit,
|
|
142
141
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
143
142
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
144
143
|
extra_headers: Headers | None = None,
|
|
145
144
|
extra_query: Query | None = None,
|
|
146
145
|
extra_body: Body | None = None,
|
|
147
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
146
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
148
147
|
) -> EntryReverseResponse:
|
|
149
148
|
"""
|
|
150
149
|
Reverse diagnostics ledger entry
|
|
@@ -207,7 +206,7 @@ class AsyncEntryResource(AsyncAPIResource):
|
|
|
207
206
|
entry_category: Literal["charge", "payment", "adjustment"],
|
|
208
207
|
line_item_id: str,
|
|
209
208
|
order_id: str,
|
|
210
|
-
description: str |
|
|
209
|
+
description: str | Omit = omit,
|
|
211
210
|
entry_type: Union[
|
|
212
211
|
Literal[
|
|
213
212
|
"insurance-payment",
|
|
@@ -223,17 +222,17 @@ class AsyncEntryResource(AsyncAPIResource):
|
|
|
223
222
|
],
|
|
224
223
|
object,
|
|
225
224
|
]
|
|
226
|
-
|
|
|
227
|
-
metadata: Dict[str, object] |
|
|
228
|
-
payment_source: str |
|
|
229
|
-
posted_at:
|
|
230
|
-
idempotency_key: str |
|
|
225
|
+
| Omit = omit,
|
|
226
|
+
metadata: Dict[str, object] | Omit = omit,
|
|
227
|
+
payment_source: str | Omit = omit,
|
|
228
|
+
posted_at: str | Omit = omit,
|
|
229
|
+
idempotency_key: str | Omit = omit,
|
|
231
230
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
232
231
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
233
232
|
extra_headers: Headers | None = None,
|
|
234
233
|
extra_query: Query | None = None,
|
|
235
234
|
extra_body: Body | None = None,
|
|
236
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
235
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
237
236
|
) -> EntryPostResponse:
|
|
238
237
|
"""
|
|
239
238
|
Create diagnostics ledger entry
|
|
@@ -291,14 +290,14 @@ class AsyncEntryResource(AsyncAPIResource):
|
|
|
291
290
|
self,
|
|
292
291
|
id: str,
|
|
293
292
|
*,
|
|
294
|
-
metadata: Dict[str, object] |
|
|
295
|
-
posted_at:
|
|
293
|
+
metadata: Dict[str, object] | Omit = omit,
|
|
294
|
+
posted_at: str | Omit = omit,
|
|
296
295
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
297
296
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
298
297
|
extra_headers: Headers | None = None,
|
|
299
298
|
extra_query: Query | None = None,
|
|
300
299
|
extra_body: Body | None = None,
|
|
301
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
300
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
302
301
|
) -> EntryReverseResponse:
|
|
303
302
|
"""
|
|
304
303
|
Reverse diagnostics ledger entry
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from ..._types import
|
|
7
|
+
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
8
8
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
9
9
|
from ..._compat import cached_property
|
|
10
10
|
from ...types.v2 import policy_list_params, policy_list_plans_params, policy_list_companies_params
|
|
@@ -48,24 +48,24 @@ class PoliciesResource(SyncAPIResource):
|
|
|
48
48
|
def list(
|
|
49
49
|
self,
|
|
50
50
|
*,
|
|
51
|
-
active_at: str |
|
|
52
|
-
company_id: str |
|
|
53
|
-
hcpcs_codes: str |
|
|
54
|
-
icd10_cm_codes: str |
|
|
55
|
-
limit: float |
|
|
56
|
-
plan_id: str |
|
|
57
|
-
policy_topic: str |
|
|
58
|
-
policy_topic_for_keyword_extraction: str |
|
|
59
|
-
policy_type: str |
|
|
60
|
-
skip: float |
|
|
61
|
-
updated_at_max: str |
|
|
62
|
-
updated_at_min: str |
|
|
51
|
+
active_at: str | Omit = omit,
|
|
52
|
+
company_id: str | Omit = omit,
|
|
53
|
+
hcpcs_codes: str | Omit = omit,
|
|
54
|
+
icd10_cm_codes: str | Omit = omit,
|
|
55
|
+
limit: float | Omit = omit,
|
|
56
|
+
plan_id: str | Omit = omit,
|
|
57
|
+
policy_topic: str | Omit = omit,
|
|
58
|
+
policy_topic_for_keyword_extraction: str | Omit = omit,
|
|
59
|
+
policy_type: str | Omit = omit,
|
|
60
|
+
skip: float | Omit = omit,
|
|
61
|
+
updated_at_max: str | Omit = omit,
|
|
62
|
+
updated_at_min: str | Omit = omit,
|
|
63
63
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
64
64
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
65
65
|
extra_headers: Headers | None = None,
|
|
66
66
|
extra_query: Query | None = None,
|
|
67
67
|
extra_body: Body | None = None,
|
|
68
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
68
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
69
69
|
) -> PolicyListResponse:
|
|
70
70
|
"""
|
|
71
71
|
Retrieve a list of policies based on specified filters.
|
|
@@ -134,15 +134,15 @@ class PoliciesResource(SyncAPIResource):
|
|
|
134
134
|
def list_companies(
|
|
135
135
|
self,
|
|
136
136
|
*,
|
|
137
|
-
company_name: str |
|
|
138
|
-
limit: float |
|
|
139
|
-
skip: float |
|
|
137
|
+
company_name: str | Omit = omit,
|
|
138
|
+
limit: float | Omit = omit,
|
|
139
|
+
skip: float | Omit = omit,
|
|
140
140
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
141
141
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
142
142
|
extra_headers: Headers | None = None,
|
|
143
143
|
extra_query: Query | None = None,
|
|
144
144
|
extra_body: Body | None = None,
|
|
145
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
145
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
146
146
|
) -> PolicyListCompaniesResponse:
|
|
147
147
|
"""
|
|
148
148
|
Retrieve a list of companies.
|
|
@@ -184,15 +184,15 @@ class PoliciesResource(SyncAPIResource):
|
|
|
184
184
|
def list_plans(
|
|
185
185
|
self,
|
|
186
186
|
*,
|
|
187
|
-
limit: float |
|
|
188
|
-
plan_name: str |
|
|
189
|
-
skip: float |
|
|
187
|
+
limit: float | Omit = omit,
|
|
188
|
+
plan_name: str | Omit = omit,
|
|
189
|
+
skip: float | Omit = omit,
|
|
190
190
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
191
191
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
192
192
|
extra_headers: Headers | None = None,
|
|
193
193
|
extra_query: Query | None = None,
|
|
194
194
|
extra_body: Body | None = None,
|
|
195
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
195
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
196
196
|
) -> PolicyListPlansResponse:
|
|
197
197
|
"""
|
|
198
198
|
Retrieve a list of plans.
|
|
@@ -240,7 +240,7 @@ class PoliciesResource(SyncAPIResource):
|
|
|
240
240
|
extra_headers: Headers | None = None,
|
|
241
241
|
extra_query: Query | None = None,
|
|
242
242
|
extra_body: Body | None = None,
|
|
243
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
243
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
244
244
|
) -> PolicyRetrievePresignedURLResponse:
|
|
245
245
|
"""
|
|
246
246
|
Retrieve a presigned URL for accessing a policy document.
|
|
@@ -273,7 +273,7 @@ class PoliciesResource(SyncAPIResource):
|
|
|
273
273
|
extra_headers: Headers | None = None,
|
|
274
274
|
extra_query: Query | None = None,
|
|
275
275
|
extra_body: Body | None = None,
|
|
276
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
276
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
277
277
|
) -> PolicyRetrieveTextResponse:
|
|
278
278
|
"""
|
|
279
279
|
Retrieve the raw text content of a policy document.
|
|
@@ -321,24 +321,24 @@ class AsyncPoliciesResource(AsyncAPIResource):
|
|
|
321
321
|
async def list(
|
|
322
322
|
self,
|
|
323
323
|
*,
|
|
324
|
-
active_at: str |
|
|
325
|
-
company_id: str |
|
|
326
|
-
hcpcs_codes: str |
|
|
327
|
-
icd10_cm_codes: str |
|
|
328
|
-
limit: float |
|
|
329
|
-
plan_id: str |
|
|
330
|
-
policy_topic: str |
|
|
331
|
-
policy_topic_for_keyword_extraction: str |
|
|
332
|
-
policy_type: str |
|
|
333
|
-
skip: float |
|
|
334
|
-
updated_at_max: str |
|
|
335
|
-
updated_at_min: str |
|
|
324
|
+
active_at: str | Omit = omit,
|
|
325
|
+
company_id: str | Omit = omit,
|
|
326
|
+
hcpcs_codes: str | Omit = omit,
|
|
327
|
+
icd10_cm_codes: str | Omit = omit,
|
|
328
|
+
limit: float | Omit = omit,
|
|
329
|
+
plan_id: str | Omit = omit,
|
|
330
|
+
policy_topic: str | Omit = omit,
|
|
331
|
+
policy_topic_for_keyword_extraction: str | Omit = omit,
|
|
332
|
+
policy_type: str | Omit = omit,
|
|
333
|
+
skip: float | Omit = omit,
|
|
334
|
+
updated_at_max: str | Omit = omit,
|
|
335
|
+
updated_at_min: str | Omit = omit,
|
|
336
336
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
337
337
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
338
338
|
extra_headers: Headers | None = None,
|
|
339
339
|
extra_query: Query | None = None,
|
|
340
340
|
extra_body: Body | None = None,
|
|
341
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
341
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
342
342
|
) -> PolicyListResponse:
|
|
343
343
|
"""
|
|
344
344
|
Retrieve a list of policies based on specified filters.
|
|
@@ -407,15 +407,15 @@ class AsyncPoliciesResource(AsyncAPIResource):
|
|
|
407
407
|
async def list_companies(
|
|
408
408
|
self,
|
|
409
409
|
*,
|
|
410
|
-
company_name: str |
|
|
411
|
-
limit: float |
|
|
412
|
-
skip: float |
|
|
410
|
+
company_name: str | Omit = omit,
|
|
411
|
+
limit: float | Omit = omit,
|
|
412
|
+
skip: float | Omit = omit,
|
|
413
413
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
414
414
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
415
415
|
extra_headers: Headers | None = None,
|
|
416
416
|
extra_query: Query | None = None,
|
|
417
417
|
extra_body: Body | None = None,
|
|
418
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
418
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
419
419
|
) -> PolicyListCompaniesResponse:
|
|
420
420
|
"""
|
|
421
421
|
Retrieve a list of companies.
|
|
@@ -457,15 +457,15 @@ class AsyncPoliciesResource(AsyncAPIResource):
|
|
|
457
457
|
async def list_plans(
|
|
458
458
|
self,
|
|
459
459
|
*,
|
|
460
|
-
limit: float |
|
|
461
|
-
plan_name: str |
|
|
462
|
-
skip: float |
|
|
460
|
+
limit: float | Omit = omit,
|
|
461
|
+
plan_name: str | Omit = omit,
|
|
462
|
+
skip: float | Omit = omit,
|
|
463
463
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
464
464
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
465
465
|
extra_headers: Headers | None = None,
|
|
466
466
|
extra_query: Query | None = None,
|
|
467
467
|
extra_body: Body | None = None,
|
|
468
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
468
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
469
469
|
) -> PolicyListPlansResponse:
|
|
470
470
|
"""
|
|
471
471
|
Retrieve a list of plans.
|
|
@@ -513,7 +513,7 @@ class AsyncPoliciesResource(AsyncAPIResource):
|
|
|
513
513
|
extra_headers: Headers | None = None,
|
|
514
514
|
extra_query: Query | None = None,
|
|
515
515
|
extra_body: Body | None = None,
|
|
516
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
516
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
517
517
|
) -> PolicyRetrievePresignedURLResponse:
|
|
518
518
|
"""
|
|
519
519
|
Retrieve a presigned URL for accessing a policy document.
|
|
@@ -546,7 +546,7 @@ class AsyncPoliciesResource(AsyncAPIResource):
|
|
|
546
546
|
extra_headers: Headers | None = None,
|
|
547
547
|
extra_query: Query | None = None,
|
|
548
548
|
extra_body: Body | None = None,
|
|
549
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
549
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
550
550
|
) -> PolicyRetrieveTextResponse:
|
|
551
551
|
"""
|
|
552
552
|
Retrieve the raw text content of a policy document.
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from ...._types import
|
|
7
|
+
from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
8
8
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
9
9
|
from ...._compat import cached_property
|
|
10
10
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -47,13 +47,13 @@ class StateResource(SyncAPIResource):
|
|
|
47
47
|
task_id: str,
|
|
48
48
|
*,
|
|
49
49
|
key: str,
|
|
50
|
-
value: object |
|
|
50
|
+
value: object | Omit = omit,
|
|
51
51
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
52
52
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
53
53
|
extra_headers: Headers | None = None,
|
|
54
54
|
extra_query: Query | None = None,
|
|
55
55
|
extra_body: Body | None = None,
|
|
56
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
56
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
57
57
|
) -> StateUpdateResponse:
|
|
58
58
|
"""
|
|
59
59
|
Updates the state of a task.
|
|
@@ -93,7 +93,7 @@ class StateResource(SyncAPIResource):
|
|
|
93
93
|
extra_headers: Headers | None = None,
|
|
94
94
|
extra_query: Query | None = None,
|
|
95
95
|
extra_body: Body | None = None,
|
|
96
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
96
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
97
97
|
) -> StateGetResponse:
|
|
98
98
|
"""Retrieves the state of a task.
|
|
99
99
|
|
|
@@ -145,13 +145,13 @@ class AsyncStateResource(AsyncAPIResource):
|
|
|
145
145
|
task_id: str,
|
|
146
146
|
*,
|
|
147
147
|
key: str,
|
|
148
|
-
value: object |
|
|
148
|
+
value: object | Omit = omit,
|
|
149
149
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
150
150
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
151
151
|
extra_headers: Headers | None = None,
|
|
152
152
|
extra_query: Query | None = None,
|
|
153
153
|
extra_body: Body | None = None,
|
|
154
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
154
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
155
155
|
) -> StateUpdateResponse:
|
|
156
156
|
"""
|
|
157
157
|
Updates the state of a task.
|
|
@@ -191,7 +191,7 @@ class AsyncStateResource(AsyncAPIResource):
|
|
|
191
191
|
extra_headers: Headers | None = None,
|
|
192
192
|
extra_query: Query | None = None,
|
|
193
193
|
extra_body: Body | None = None,
|
|
194
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
194
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
195
195
|
) -> StateGetResponse:
|
|
196
196
|
"""Retrieves the state of a task.
|
|
197
197
|
|
|
@@ -14,7 +14,7 @@ from .state import (
|
|
|
14
14
|
StateResourceWithStreamingResponse,
|
|
15
15
|
AsyncStateResourceWithStreamingResponse,
|
|
16
16
|
)
|
|
17
|
-
from ...._types import
|
|
17
|
+
from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
18
18
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
19
19
|
from ...._compat import cached_property
|
|
20
20
|
from ....types.v2 import task_complete_params, task_update_screen_time_params
|
|
@@ -69,7 +69,7 @@ class TasksResource(SyncAPIResource):
|
|
|
69
69
|
extra_headers: Headers | None = None,
|
|
70
70
|
extra_query: Query | None = None,
|
|
71
71
|
extra_body: Body | None = None,
|
|
72
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
72
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
73
73
|
) -> TaskRetrieveResponse:
|
|
74
74
|
"""
|
|
75
75
|
Retrieves the details of a task.
|
|
@@ -102,7 +102,7 @@ class TasksResource(SyncAPIResource):
|
|
|
102
102
|
extra_headers: Headers | None = None,
|
|
103
103
|
extra_query: Query | None = None,
|
|
104
104
|
extra_body: Body | None = None,
|
|
105
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
105
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
106
106
|
) -> TaskCancelResponse:
|
|
107
107
|
"""Marks a specified task as cancelled, preventing it from being executed.
|
|
108
108
|
|
|
@@ -132,13 +132,13 @@ class TasksResource(SyncAPIResource):
|
|
|
132
132
|
self,
|
|
133
133
|
task_id: str,
|
|
134
134
|
*,
|
|
135
|
-
result: object |
|
|
135
|
+
result: object | Omit = omit,
|
|
136
136
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
137
137
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
138
138
|
extra_headers: Headers | None = None,
|
|
139
139
|
extra_query: Query | None = None,
|
|
140
140
|
extra_body: Body | None = None,
|
|
141
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
141
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
142
142
|
) -> TaskCompleteResponse:
|
|
143
143
|
"""Marks a specified task as complete, providing the result of its execution.
|
|
144
144
|
|
|
@@ -176,7 +176,7 @@ class TasksResource(SyncAPIResource):
|
|
|
176
176
|
extra_headers: Headers | None = None,
|
|
177
177
|
extra_query: Query | None = None,
|
|
178
178
|
extra_body: Body | None = None,
|
|
179
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
179
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
180
180
|
) -> TaskGetSuspendedPayloadResponse:
|
|
181
181
|
"""
|
|
182
182
|
Retrieves the payload with which a task was suspended, typically for tasks
|
|
@@ -210,7 +210,7 @@ class TasksResource(SyncAPIResource):
|
|
|
210
210
|
extra_headers: Headers | None = None,
|
|
211
211
|
extra_query: Query | None = None,
|
|
212
212
|
extra_body: Body | None = None,
|
|
213
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
213
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
214
214
|
) -> TaskRetryResponse:
|
|
215
215
|
"""Attempts to retry a failed task.
|
|
216
216
|
|
|
@@ -245,7 +245,7 @@ class TasksResource(SyncAPIResource):
|
|
|
245
245
|
extra_headers: Headers | None = None,
|
|
246
246
|
extra_query: Query | None = None,
|
|
247
247
|
extra_body: Body | None = None,
|
|
248
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
248
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
249
249
|
) -> Optional[TaskUpdateScreenTimeResponse]:
|
|
250
250
|
"""Adds a specified duration to the total screen time recorded for a task.
|
|
251
251
|
|
|
@@ -313,7 +313,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
313
313
|
extra_headers: Headers | None = None,
|
|
314
314
|
extra_query: Query | None = None,
|
|
315
315
|
extra_body: Body | None = None,
|
|
316
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
316
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
317
317
|
) -> TaskRetrieveResponse:
|
|
318
318
|
"""
|
|
319
319
|
Retrieves the details of a task.
|
|
@@ -346,7 +346,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
346
346
|
extra_headers: Headers | None = None,
|
|
347
347
|
extra_query: Query | None = None,
|
|
348
348
|
extra_body: Body | None = None,
|
|
349
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
349
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
350
350
|
) -> TaskCancelResponse:
|
|
351
351
|
"""Marks a specified task as cancelled, preventing it from being executed.
|
|
352
352
|
|
|
@@ -376,13 +376,13 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
376
376
|
self,
|
|
377
377
|
task_id: str,
|
|
378
378
|
*,
|
|
379
|
-
result: object |
|
|
379
|
+
result: object | Omit = omit,
|
|
380
380
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
381
381
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
382
382
|
extra_headers: Headers | None = None,
|
|
383
383
|
extra_query: Query | None = None,
|
|
384
384
|
extra_body: Body | None = None,
|
|
385
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
385
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
386
386
|
) -> TaskCompleteResponse:
|
|
387
387
|
"""Marks a specified task as complete, providing the result of its execution.
|
|
388
388
|
|
|
@@ -420,7 +420,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
420
420
|
extra_headers: Headers | None = None,
|
|
421
421
|
extra_query: Query | None = None,
|
|
422
422
|
extra_body: Body | None = None,
|
|
423
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
423
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
424
424
|
) -> TaskGetSuspendedPayloadResponse:
|
|
425
425
|
"""
|
|
426
426
|
Retrieves the payload with which a task was suspended, typically for tasks
|
|
@@ -454,7 +454,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
454
454
|
extra_headers: Headers | None = None,
|
|
455
455
|
extra_query: Query | None = None,
|
|
456
456
|
extra_body: Body | None = None,
|
|
457
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
457
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
458
458
|
) -> TaskRetryResponse:
|
|
459
459
|
"""Attempts to retry a failed task.
|
|
460
460
|
|
|
@@ -489,7 +489,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
489
489
|
extra_headers: Headers | None = None,
|
|
490
490
|
extra_query: Query | None = None,
|
|
491
491
|
extra_body: Body | None = None,
|
|
492
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
492
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
493
493
|
) -> Optional[TaskUpdateScreenTimeResponse]:
|
|
494
494
|
"""Adds a specified duration to the total screen time recorded for a task.
|
|
495
495
|
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from ...._types import
|
|
7
|
+
from ...._types import Body, Query, Headers, NotGiven, not_given
|
|
8
8
|
from ...._compat import cached_property
|
|
9
9
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
10
10
|
from ...._response import (
|
|
@@ -48,7 +48,7 @@ class StepResource(SyncAPIResource):
|
|
|
48
48
|
extra_headers: Headers | None = None,
|
|
49
49
|
extra_query: Query | None = None,
|
|
50
50
|
extra_body: Body | None = None,
|
|
51
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
51
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
52
52
|
) -> StepGetOutputResponse:
|
|
53
53
|
"""Retrieves the output data of a specific step within a workflow run.
|
|
54
54
|
|
|
@@ -105,7 +105,7 @@ class AsyncStepResource(AsyncAPIResource):
|
|
|
105
105
|
extra_headers: Headers | None = None,
|
|
106
106
|
extra_query: Query | None = None,
|
|
107
107
|
extra_body: Body | None = None,
|
|
108
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
108
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
109
109
|
) -> StepGetOutputResponse:
|
|
110
110
|
"""Retrieves the output data of a specific step within a workflow run.
|
|
111
111
|
|
|
@@ -12,7 +12,7 @@ from .step import (
|
|
|
12
12
|
StepResourceWithStreamingResponse,
|
|
13
13
|
AsyncStepResourceWithStreamingResponse,
|
|
14
14
|
)
|
|
15
|
-
from ...._types import
|
|
15
|
+
from ...._types import Body, Query, Headers, NoneType, NotGiven, not_given
|
|
16
16
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
17
17
|
from ...._compat import cached_property
|
|
18
18
|
from ....types.v2 import workflow_run_resume_when_complete_params
|
|
@@ -64,7 +64,7 @@ class WorkflowRunsResource(SyncAPIResource):
|
|
|
64
64
|
extra_headers: Headers | None = None,
|
|
65
65
|
extra_query: Query | None = None,
|
|
66
66
|
extra_body: Body | None = None,
|
|
67
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
67
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
68
68
|
) -> WorkflowRunRetrieveResponse:
|
|
69
69
|
"""
|
|
70
70
|
Retrieves the complete details of a specific workflow run by its ID.
|
|
@@ -97,7 +97,7 @@ class WorkflowRunsResource(SyncAPIResource):
|
|
|
97
97
|
extra_headers: Headers | None = None,
|
|
98
98
|
extra_query: Query | None = None,
|
|
99
99
|
extra_body: Body | None = None,
|
|
100
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
100
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
101
101
|
) -> object:
|
|
102
102
|
"""Requests cancellation of a currently active workflow run.
|
|
103
103
|
|
|
@@ -131,7 +131,7 @@ class WorkflowRunsResource(SyncAPIResource):
|
|
|
131
131
|
extra_headers: Headers | None = None,
|
|
132
132
|
extra_query: Query | None = None,
|
|
133
133
|
extra_body: Body | None = None,
|
|
134
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
134
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
135
135
|
) -> WorkflowRunGetStartDataResponse:
|
|
136
136
|
"""
|
|
137
137
|
Retrieves the initial data (startData) that was used to initiate the current
|
|
@@ -155,7 +155,7 @@ class WorkflowRunsResource(SyncAPIResource):
|
|
|
155
155
|
extra_headers: Headers | None = None,
|
|
156
156
|
extra_query: Query | None = None,
|
|
157
157
|
extra_body: Body | None = None,
|
|
158
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
158
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
159
159
|
) -> WorkflowRunResumeWhenCompleteResponse:
|
|
160
160
|
"""
|
|
161
161
|
Registers an asynchronous task's result ID to resume a workflow run upon its
|
|
@@ -193,7 +193,7 @@ class WorkflowRunsResource(SyncAPIResource):
|
|
|
193
193
|
extra_headers: Headers | None = None,
|
|
194
194
|
extra_query: Query | None = None,
|
|
195
195
|
extra_body: Body | None = None,
|
|
196
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
196
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
197
197
|
) -> None:
|
|
198
198
|
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
199
199
|
return self._get(
|
|
@@ -238,7 +238,7 @@ class AsyncWorkflowRunsResource(AsyncAPIResource):
|
|
|
238
238
|
extra_headers: Headers | None = None,
|
|
239
239
|
extra_query: Query | None = None,
|
|
240
240
|
extra_body: Body | None = None,
|
|
241
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
241
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
242
242
|
) -> WorkflowRunRetrieveResponse:
|
|
243
243
|
"""
|
|
244
244
|
Retrieves the complete details of a specific workflow run by its ID.
|
|
@@ -271,7 +271,7 @@ class AsyncWorkflowRunsResource(AsyncAPIResource):
|
|
|
271
271
|
extra_headers: Headers | None = None,
|
|
272
272
|
extra_query: Query | None = None,
|
|
273
273
|
extra_body: Body | None = None,
|
|
274
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
274
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
275
275
|
) -> object:
|
|
276
276
|
"""Requests cancellation of a currently active workflow run.
|
|
277
277
|
|
|
@@ -305,7 +305,7 @@ class AsyncWorkflowRunsResource(AsyncAPIResource):
|
|
|
305
305
|
extra_headers: Headers | None = None,
|
|
306
306
|
extra_query: Query | None = None,
|
|
307
307
|
extra_body: Body | None = None,
|
|
308
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
308
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
309
309
|
) -> WorkflowRunGetStartDataResponse:
|
|
310
310
|
"""
|
|
311
311
|
Retrieves the initial data (startData) that was used to initiate the current
|
|
@@ -329,7 +329,7 @@ class AsyncWorkflowRunsResource(AsyncAPIResource):
|
|
|
329
329
|
extra_headers: Headers | None = None,
|
|
330
330
|
extra_query: Query | None = None,
|
|
331
331
|
extra_body: Body | None = None,
|
|
332
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
332
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
333
333
|
) -> WorkflowRunResumeWhenCompleteResponse:
|
|
334
334
|
"""
|
|
335
335
|
Registers an asynchronous task's result ID to resume a workflow run upon its
|
|
@@ -367,7 +367,7 @@ class AsyncWorkflowRunsResource(AsyncAPIResource):
|
|
|
367
367
|
extra_headers: Headers | None = None,
|
|
368
368
|
extra_query: Query | None = None,
|
|
369
369
|
extra_body: Body | None = None,
|
|
370
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
370
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
371
371
|
) -> None:
|
|
372
372
|
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
373
373
|
return await self._get(
|