samplehc 0.11.0__py3-none-any.whl → 0.13.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_agents/runs/runs.py +131 -0
- 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 +92 -8
- 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 +125 -16
- 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 +3 -0
- samplehc/types/v2/browser_agents/__init__.py +3 -0
- samplehc/types/v2/browser_agents/run_list_events_params.py +15 -0
- samplehc/types/v2/browser_agents/run_list_events_response.py +30 -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/integrations/__init__.py +1 -0
- samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +11 -0
- 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/types/v2/task_update_column_params.py +16 -0
- samplehc/types/v2/task_update_column_response.py +9 -0
- {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/METADATA +1 -1
- {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/RECORD +68 -60
- {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/WHEEL +0 -0
- {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict
|
|
6
|
-
from datetime import datetime
|
|
5
|
+
from typing import Dict
|
|
7
6
|
|
|
8
7
|
import httpx
|
|
9
8
|
|
|
10
|
-
from ...._types import
|
|
9
|
+
from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
|
|
11
10
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
12
11
|
from ...._compat import cached_property
|
|
13
12
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -54,7 +53,7 @@ class AccountResource(SyncAPIResource):
|
|
|
54
53
|
extra_headers: Headers | None = None,
|
|
55
54
|
extra_query: Query | None = None,
|
|
56
55
|
extra_body: Body | None = None,
|
|
57
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
56
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
58
57
|
) -> None:
|
|
59
58
|
"""
|
|
60
59
|
Get balance for a ledger account
|
|
@@ -87,14 +86,14 @@ class AccountResource(SyncAPIResource):
|
|
|
87
86
|
*,
|
|
88
87
|
order_id: str,
|
|
89
88
|
description: str,
|
|
90
|
-
metadata: Dict[str, object] |
|
|
91
|
-
posted_at:
|
|
89
|
+
metadata: Dict[str, object] | Omit = omit,
|
|
90
|
+
posted_at: str | Omit = omit,
|
|
92
91
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
93
92
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
94
93
|
extra_headers: Headers | None = None,
|
|
95
94
|
extra_query: Query | None = None,
|
|
96
95
|
extra_body: Body | None = None,
|
|
97
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
96
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
98
97
|
) -> AccountWriteoffResponse:
|
|
99
98
|
"""Writes off the remaining balance in an account on the ledger.
|
|
100
99
|
|
|
@@ -167,7 +166,7 @@ class AsyncAccountResource(AsyncAPIResource):
|
|
|
167
166
|
extra_headers: Headers | None = None,
|
|
168
167
|
extra_query: Query | None = None,
|
|
169
168
|
extra_body: Body | None = None,
|
|
170
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
169
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
171
170
|
) -> None:
|
|
172
171
|
"""
|
|
173
172
|
Get balance for a ledger account
|
|
@@ -200,14 +199,14 @@ class AsyncAccountResource(AsyncAPIResource):
|
|
|
200
199
|
*,
|
|
201
200
|
order_id: str,
|
|
202
201
|
description: str,
|
|
203
|
-
metadata: Dict[str, object] |
|
|
204
|
-
posted_at:
|
|
202
|
+
metadata: Dict[str, object] | Omit = omit,
|
|
203
|
+
posted_at: str | Omit = omit,
|
|
205
204
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
206
205
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
207
206
|
extra_headers: Headers | None = None,
|
|
208
207
|
extra_query: Query | None = None,
|
|
209
208
|
extra_body: Body | None = None,
|
|
210
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
209
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
211
210
|
) -> AccountWriteoffResponse:
|
|
212
211
|
"""Writes off the remaining balance in an account on the ledger.
|
|
213
212
|
|
|
@@ -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
|
|