samplehc 0.16.0__py3-none-any.whl → 0.18.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/_client.py +1 -38
- samplehc/_version.py +1 -1
- samplehc/resources/__init__.py +0 -14
- samplehc/resources/v2/__init__.py +0 -98
- samplehc/resources/v2/async_results.py +0 -79
- samplehc/resources/v2/documents/__init__.py +0 -14
- samplehc/resources/v2/documents/documents.py +0 -194
- samplehc/resources/v2/v2.py +0 -224
- samplehc/types/__init__.py +0 -5
- samplehc/types/v2/__init__.py +0 -53
- samplehc/types/v2/documents/__init__.py +0 -3
- {samplehc-0.16.0.dist-info → samplehc-0.18.0.dist-info}/METADATA +22 -27
- samplehc-0.18.0.dist-info/RECORD +92 -0
- samplehc/resources/v1/__init__.py +0 -19
- samplehc/resources/v1/v1.py +0 -298
- samplehc/resources/v2/clearinghouse/__init__.py +0 -47
- samplehc/resources/v2/clearinghouse/claim.py +0 -407
- samplehc/resources/v2/clearinghouse/clearinghouse.py +0 -844
- samplehc/resources/v2/clearinghouse/payers.py +0 -224
- samplehc/resources/v2/documents/pdf_template.py +0 -165
- samplehc/resources/v2/hie/__init__.py +0 -47
- samplehc/resources/v2/hie/adt.py +0 -249
- samplehc/resources/v2/hie/documents.py +0 -390
- samplehc/resources/v2/hie/hie.py +0 -134
- samplehc/resources/v2/integrations/__init__.py +0 -131
- samplehc/resources/v2/integrations/bank/__init__.py +0 -33
- samplehc/resources/v2/integrations/bank/bank.py +0 -102
- samplehc/resources/v2/integrations/bank/transactions.py +0 -185
- samplehc/resources/v2/integrations/careviso.py +0 -372
- samplehc/resources/v2/integrations/glidian/__init__.py +0 -33
- samplehc/resources/v2/integrations/glidian/glidian.py +0 -425
- samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -33
- samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +0 -276
- samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +0 -527
- samplehc/resources/v2/integrations/integrations.py +0 -326
- samplehc/resources/v2/integrations/kno2/__init__.py +0 -33
- samplehc/resources/v2/integrations/kno2/kno2.py +0 -102
- samplehc/resources/v2/integrations/kno2/messages.py +0 -260
- samplehc/resources/v2/integrations/salesforce.py +0 -277
- samplehc/resources/v2/integrations/snowflake.py +0 -173
- samplehc/resources/v2/integrations/wellsky/__init__.py +0 -33
- samplehc/resources/v2/integrations/wellsky/patients.py +0 -324
- samplehc/resources/v2/integrations/wellsky/wellsky.py +0 -102
- samplehc/resources/v2/integrations/xcures.py +0 -197
- samplehc/resources/v2/policies.py +0 -655
- samplehc/resources/v2/tasks/__init__.py +0 -33
- samplehc/resources/v2/tasks/state.py +0 -266
- samplehc/resources/v2/tasks/tasks.py +0 -754
- samplehc/resources/v2/workflow_runs/__init__.py +0 -33
- samplehc/resources/v2/workflow_runs/step.py +0 -169
- samplehc/resources/v2/workflow_runs/workflow_runs.py +0 -479
- samplehc/resources/v2/workflows.py +0 -365
- samplehc/types/v1/__init__.py +0 -3
- samplehc/types/v1_query_audit_logs_params.py +0 -12
- samplehc/types/v1_query_audit_logs_response.py +0 -16
- samplehc/types/v1_sql_execute_params.py +0 -27
- samplehc/types/v1_sql_execute_response.py +0 -27
- samplehc/types/v2/async_result_retrieve_response.py +0 -18
- samplehc/types/v2/clearinghouse/__init__.py +0 -9
- samplehc/types/v2/clearinghouse/claim_submit_params.py +0 -2693
- samplehc/types/v2/clearinghouse/claim_submit_response.py +0 -23
- samplehc/types/v2/clearinghouse/payer_list_response.py +0 -27
- samplehc/types/v2/clearinghouse/payer_search_params.py +0 -12
- samplehc/types/v2/clearinghouse/payer_search_response.py +0 -33
- samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +0 -3129
- samplehc/types/v2/clearinghouse_check_claim_status_params.py +0 -41
- samplehc/types/v2/clearinghouse_check_eligibility_params.py +0 -36
- samplehc/types/v2/clearinghouse_check_eligibility_response.py +0 -15
- samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py +0 -35
- samplehc/types/v2/clearinghouse_run_discovery_params.py +0 -59
- samplehc/types/v2/clearinghouse_run_discovery_response.py +0 -13
- samplehc/types/v2/document_unzip_async_response.py +0 -12
- samplehc/types/v2/document_unzip_response.py +0 -20
- samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +0 -17
- samplehc/types/v2/hie/__init__.py +0 -8
- samplehc/types/v2/hie/adt_subscribe_params.py +0 -92
- samplehc/types/v2/hie/document_query_params.py +0 -92
- samplehc/types/v2/hie/document_query_response.py +0 -16
- samplehc/types/v2/hie/document_upload_params.py +0 -54
- samplehc/types/v2/integrations/__init__.py +0 -23
- samplehc/types/v2/integrations/bank/__init__.py +0 -6
- samplehc/types/v2/integrations/bank/transaction_sync_params.py +0 -15
- samplehc/types/v2/integrations/bank/transaction_sync_response.py +0 -26
- samplehc/types/v2/integrations/careviso_get_payers_response.py +0 -19
- samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +0 -90
- samplehc/types/v2/integrations/glidian/__init__.py +0 -20
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +0 -32
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +0 -24
- samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +0 -13
- samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +0 -16
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +0 -20
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +0 -16
- samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +0 -7
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +0 -42
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +0 -23
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +0 -19
- samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +0 -17
- samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +0 -31
- samplehc/types/v2/integrations/glidian_list_payers_params.py +0 -11
- samplehc/types/v2/integrations/glidian_list_payers_response.py +0 -17
- samplehc/types/v2/integrations/glidian_list_services_params.py +0 -13
- samplehc/types/v2/integrations/glidian_list_services_response.py +0 -19
- samplehc/types/v2/integrations/kno2/__init__.py +0 -6
- samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +0 -15
- samplehc/types/v2/integrations/kno2/message_retrieve_response.py +0 -13
- samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +0 -22
- samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +0 -11
- samplehc/types/v2/integrations/snowflake_query_params.py +0 -12
- samplehc/types/v2/integrations/snowflake_query_response.py +0 -8
- samplehc/types/v2/integrations/wellsky/__init__.py +0 -6
- samplehc/types/v2/integrations/wellsky/patient_add_params.py +0 -13
- samplehc/types/v2/integrations/wellsky/patient_search_params.py +0 -32
- samplehc/types/v2/integrations/xcure_make_request_params.py +0 -18
- samplehc/types/v2/ledger/__init__.py +0 -3
- samplehc/types/v2/policy_list_companies_params.py +0 -18
- samplehc/types/v2/policy_list_companies_response.py +0 -24
- samplehc/types/v2/policy_list_params.py +0 -47
- samplehc/types/v2/policy_list_plans_params.py +0 -18
- samplehc/types/v2/policy_list_plans_response.py +0 -30
- samplehc/types/v2/policy_list_response.py +0 -67
- samplehc/types/v2/policy_retrieve_presigned_url_response.py +0 -17
- samplehc/types/v2/policy_retrieve_text_response.py +0 -12
- samplehc/types/v2/task_cancel_response.py +0 -12
- samplehc/types/v2/task_complete_params.py +0 -12
- samplehc/types/v2/task_complete_response.py +0 -16
- samplehc/types/v2/task_get_suspended_payload_response.py +0 -8
- samplehc/types/v2/task_retrieve_response.py +0 -22
- samplehc/types/v2/task_retry_response.py +0 -10
- samplehc/types/v2/task_update_column_params.py +0 -19
- samplehc/types/v2/task_update_column_response.py +0 -9
- samplehc/types/v2/task_update_screen_time_params.py +0 -14
- samplehc/types/v2/task_update_screen_time_response.py +0 -8
- samplehc/types/v2/tasks/__init__.py +0 -7
- samplehc/types/v2/tasks/state_get_response.py +0 -8
- samplehc/types/v2/tasks/state_update_params.py +0 -13
- samplehc/types/v2/tasks/state_update_response.py +0 -9
- samplehc/types/v2/workflow_deploy_response.py +0 -12
- samplehc/types/v2/workflow_query_params.py +0 -12
- samplehc/types/v2/workflow_query_response.py +0 -8
- samplehc/types/v2/workflow_run_get_start_data_response.py +0 -14
- samplehc/types/v2/workflow_run_resume_when_complete_params.py +0 -14
- samplehc/types/v2/workflow_run_resume_when_complete_response.py +0 -12
- samplehc/types/v2/workflow_run_retrieve_response.py +0 -16
- samplehc/types/v2/workflow_runs/__init__.py +0 -5
- samplehc/types/v2/workflow_runs/step_get_output_response.py +0 -14
- samplehc/types/v2/workflow_start_params.py +0 -17
- samplehc/types/v2/workflow_start_response.py +0 -25
- samplehc-0.16.0.dist-info/RECORD +0 -226
- {samplehc-0.16.0.dist-info → samplehc-0.18.0.dist-info}/WHEEL +0 -0
- {samplehc-0.16.0.dist-info → samplehc-0.18.0.dist-info}/licenses/LICENSE +0 -0
samplehc/_client.py
CHANGED
|
@@ -32,8 +32,7 @@ from ._base_client import (
|
|
|
32
32
|
)
|
|
33
33
|
|
|
34
34
|
if TYPE_CHECKING:
|
|
35
|
-
from .resources import
|
|
36
|
-
from .resources.v1.v1 import V1Resource, AsyncV1Resource
|
|
35
|
+
from .resources import v2
|
|
37
36
|
from .resources.v2.v2 import V2Resource, AsyncV2Resource
|
|
38
37
|
|
|
39
38
|
__all__ = [
|
|
@@ -99,12 +98,6 @@ class SampleHealthcare(SyncAPIClient):
|
|
|
99
98
|
_strict_response_validation=_strict_response_validation,
|
|
100
99
|
)
|
|
101
100
|
|
|
102
|
-
@cached_property
|
|
103
|
-
def v1(self) -> V1Resource:
|
|
104
|
-
from .resources.v1 import V1Resource
|
|
105
|
-
|
|
106
|
-
return V1Resource(self)
|
|
107
|
-
|
|
108
101
|
@cached_property
|
|
109
102
|
def v2(self) -> V2Resource:
|
|
110
103
|
from .resources.v2 import V2Resource
|
|
@@ -286,12 +279,6 @@ class AsyncSampleHealthcare(AsyncAPIClient):
|
|
|
286
279
|
_strict_response_validation=_strict_response_validation,
|
|
287
280
|
)
|
|
288
281
|
|
|
289
|
-
@cached_property
|
|
290
|
-
def v1(self) -> AsyncV1Resource:
|
|
291
|
-
from .resources.v1 import AsyncV1Resource
|
|
292
|
-
|
|
293
|
-
return AsyncV1Resource(self)
|
|
294
|
-
|
|
295
282
|
@cached_property
|
|
296
283
|
def v2(self) -> AsyncV2Resource:
|
|
297
284
|
from .resources.v2 import AsyncV2Resource
|
|
@@ -428,12 +415,6 @@ class SampleHealthcareWithRawResponse:
|
|
|
428
415
|
def __init__(self, client: SampleHealthcare) -> None:
|
|
429
416
|
self._client = client
|
|
430
417
|
|
|
431
|
-
@cached_property
|
|
432
|
-
def v1(self) -> v1.V1ResourceWithRawResponse:
|
|
433
|
-
from .resources.v1 import V1ResourceWithRawResponse
|
|
434
|
-
|
|
435
|
-
return V1ResourceWithRawResponse(self._client.v1)
|
|
436
|
-
|
|
437
418
|
@cached_property
|
|
438
419
|
def v2(self) -> v2.V2ResourceWithRawResponse:
|
|
439
420
|
from .resources.v2 import V2ResourceWithRawResponse
|
|
@@ -447,12 +428,6 @@ class AsyncSampleHealthcareWithRawResponse:
|
|
|
447
428
|
def __init__(self, client: AsyncSampleHealthcare) -> None:
|
|
448
429
|
self._client = client
|
|
449
430
|
|
|
450
|
-
@cached_property
|
|
451
|
-
def v1(self) -> v1.AsyncV1ResourceWithRawResponse:
|
|
452
|
-
from .resources.v1 import AsyncV1ResourceWithRawResponse
|
|
453
|
-
|
|
454
|
-
return AsyncV1ResourceWithRawResponse(self._client.v1)
|
|
455
|
-
|
|
456
431
|
@cached_property
|
|
457
432
|
def v2(self) -> v2.AsyncV2ResourceWithRawResponse:
|
|
458
433
|
from .resources.v2 import AsyncV2ResourceWithRawResponse
|
|
@@ -466,12 +441,6 @@ class SampleHealthcareWithStreamedResponse:
|
|
|
466
441
|
def __init__(self, client: SampleHealthcare) -> None:
|
|
467
442
|
self._client = client
|
|
468
443
|
|
|
469
|
-
@cached_property
|
|
470
|
-
def v1(self) -> v1.V1ResourceWithStreamingResponse:
|
|
471
|
-
from .resources.v1 import V1ResourceWithStreamingResponse
|
|
472
|
-
|
|
473
|
-
return V1ResourceWithStreamingResponse(self._client.v1)
|
|
474
|
-
|
|
475
444
|
@cached_property
|
|
476
445
|
def v2(self) -> v2.V2ResourceWithStreamingResponse:
|
|
477
446
|
from .resources.v2 import V2ResourceWithStreamingResponse
|
|
@@ -485,12 +454,6 @@ class AsyncSampleHealthcareWithStreamedResponse:
|
|
|
485
454
|
def __init__(self, client: AsyncSampleHealthcare) -> None:
|
|
486
455
|
self._client = client
|
|
487
456
|
|
|
488
|
-
@cached_property
|
|
489
|
-
def v1(self) -> v1.AsyncV1ResourceWithStreamingResponse:
|
|
490
|
-
from .resources.v1 import AsyncV1ResourceWithStreamingResponse
|
|
491
|
-
|
|
492
|
-
return AsyncV1ResourceWithStreamingResponse(self._client.v1)
|
|
493
|
-
|
|
494
457
|
@cached_property
|
|
495
458
|
def v2(self) -> v2.AsyncV2ResourceWithStreamingResponse:
|
|
496
459
|
from .resources.v2 import AsyncV2ResourceWithStreamingResponse
|
samplehc/_version.py
CHANGED
samplehc/resources/__init__.py
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from .v1 import (
|
|
4
|
-
V1Resource,
|
|
5
|
-
AsyncV1Resource,
|
|
6
|
-
V1ResourceWithRawResponse,
|
|
7
|
-
AsyncV1ResourceWithRawResponse,
|
|
8
|
-
V1ResourceWithStreamingResponse,
|
|
9
|
-
AsyncV1ResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
3
|
from .v2 import (
|
|
12
4
|
V2Resource,
|
|
13
5
|
AsyncV2Resource,
|
|
@@ -18,12 +10,6 @@ from .v2 import (
|
|
|
18
10
|
)
|
|
19
11
|
|
|
20
12
|
__all__ = [
|
|
21
|
-
"V1Resource",
|
|
22
|
-
"AsyncV1Resource",
|
|
23
|
-
"V1ResourceWithRawResponse",
|
|
24
|
-
"AsyncV1ResourceWithRawResponse",
|
|
25
|
-
"V1ResourceWithStreamingResponse",
|
|
26
|
-
"AsyncV1ResourceWithStreamingResponse",
|
|
27
13
|
"V2Resource",
|
|
28
14
|
"AsyncV2Resource",
|
|
29
15
|
"V2ResourceWithRawResponse",
|
|
@@ -8,22 +8,6 @@ from .v2 import (
|
|
|
8
8
|
V2ResourceWithStreamingResponse,
|
|
9
9
|
AsyncV2ResourceWithStreamingResponse,
|
|
10
10
|
)
|
|
11
|
-
from .hie import (
|
|
12
|
-
HieResource,
|
|
13
|
-
AsyncHieResource,
|
|
14
|
-
HieResourceWithRawResponse,
|
|
15
|
-
AsyncHieResourceWithRawResponse,
|
|
16
|
-
HieResourceWithStreamingResponse,
|
|
17
|
-
AsyncHieResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
from .tasks import (
|
|
20
|
-
TasksResource,
|
|
21
|
-
AsyncTasksResource,
|
|
22
|
-
TasksResourceWithRawResponse,
|
|
23
|
-
AsyncTasksResourceWithRawResponse,
|
|
24
|
-
TasksResourceWithStreamingResponse,
|
|
25
|
-
AsyncTasksResourceWithStreamingResponse,
|
|
26
|
-
)
|
|
27
11
|
from .events import (
|
|
28
12
|
EventsResource,
|
|
29
13
|
AsyncEventsResource,
|
|
@@ -40,14 +24,6 @@ from .database import (
|
|
|
40
24
|
DatabaseResourceWithStreamingResponse,
|
|
41
25
|
AsyncDatabaseResourceWithStreamingResponse,
|
|
42
26
|
)
|
|
43
|
-
from .policies import (
|
|
44
|
-
PoliciesResource,
|
|
45
|
-
AsyncPoliciesResource,
|
|
46
|
-
PoliciesResourceWithRawResponse,
|
|
47
|
-
AsyncPoliciesResourceWithRawResponse,
|
|
48
|
-
PoliciesResourceWithStreamingResponse,
|
|
49
|
-
AsyncPoliciesResourceWithStreamingResponse,
|
|
50
|
-
)
|
|
51
27
|
from .documents import (
|
|
52
28
|
DocumentsResource,
|
|
53
29
|
AsyncDocumentsResource,
|
|
@@ -56,22 +32,6 @@ from .documents import (
|
|
|
56
32
|
DocumentsResourceWithStreamingResponse,
|
|
57
33
|
AsyncDocumentsResourceWithStreamingResponse,
|
|
58
34
|
)
|
|
59
|
-
from .workflows import (
|
|
60
|
-
WorkflowsResource,
|
|
61
|
-
AsyncWorkflowsResource,
|
|
62
|
-
WorkflowsResourceWithRawResponse,
|
|
63
|
-
AsyncWorkflowsResourceWithRawResponse,
|
|
64
|
-
WorkflowsResourceWithStreamingResponse,
|
|
65
|
-
AsyncWorkflowsResourceWithStreamingResponse,
|
|
66
|
-
)
|
|
67
|
-
from .integrations import (
|
|
68
|
-
IntegrationsResource,
|
|
69
|
-
AsyncIntegrationsResource,
|
|
70
|
-
IntegrationsResourceWithRawResponse,
|
|
71
|
-
AsyncIntegrationsResourceWithRawResponse,
|
|
72
|
-
IntegrationsResourceWithStreamingResponse,
|
|
73
|
-
AsyncIntegrationsResourceWithStreamingResponse,
|
|
74
|
-
)
|
|
75
35
|
from .async_results import (
|
|
76
36
|
AsyncResultsResource,
|
|
77
37
|
AsyncAsyncResultsResource,
|
|
@@ -80,14 +40,6 @@ from .async_results import (
|
|
|
80
40
|
AsyncResultsResourceWithStreamingResponse,
|
|
81
41
|
AsyncAsyncResultsResourceWithStreamingResponse,
|
|
82
42
|
)
|
|
83
|
-
from .clearinghouse import (
|
|
84
|
-
ClearinghouseResource,
|
|
85
|
-
AsyncClearinghouseResource,
|
|
86
|
-
ClearinghouseResourceWithRawResponse,
|
|
87
|
-
AsyncClearinghouseResourceWithRawResponse,
|
|
88
|
-
ClearinghouseResourceWithStreamingResponse,
|
|
89
|
-
AsyncClearinghouseResourceWithStreamingResponse,
|
|
90
|
-
)
|
|
91
43
|
from .communication import (
|
|
92
44
|
CommunicationResource,
|
|
93
45
|
AsyncCommunicationResource,
|
|
@@ -96,14 +48,6 @@ from .communication import (
|
|
|
96
48
|
CommunicationResourceWithStreamingResponse,
|
|
97
49
|
AsyncCommunicationResourceWithStreamingResponse,
|
|
98
50
|
)
|
|
99
|
-
from .workflow_runs import (
|
|
100
|
-
WorkflowRunsResource,
|
|
101
|
-
AsyncWorkflowRunsResource,
|
|
102
|
-
WorkflowRunsResourceWithRawResponse,
|
|
103
|
-
AsyncWorkflowRunsResourceWithRawResponse,
|
|
104
|
-
WorkflowRunsResourceWithStreamingResponse,
|
|
105
|
-
AsyncWorkflowRunsResourceWithStreamingResponse,
|
|
106
|
-
)
|
|
107
51
|
|
|
108
52
|
__all__ = [
|
|
109
53
|
"AsyncResultsResource",
|
|
@@ -112,24 +56,6 @@ __all__ = [
|
|
|
112
56
|
"AsyncAsyncResultsResourceWithRawResponse",
|
|
113
57
|
"AsyncResultsResourceWithStreamingResponse",
|
|
114
58
|
"AsyncAsyncResultsResourceWithStreamingResponse",
|
|
115
|
-
"WorkflowRunsResource",
|
|
116
|
-
"AsyncWorkflowRunsResource",
|
|
117
|
-
"WorkflowRunsResourceWithRawResponse",
|
|
118
|
-
"AsyncWorkflowRunsResourceWithRawResponse",
|
|
119
|
-
"WorkflowRunsResourceWithStreamingResponse",
|
|
120
|
-
"AsyncWorkflowRunsResourceWithStreamingResponse",
|
|
121
|
-
"TasksResource",
|
|
122
|
-
"AsyncTasksResource",
|
|
123
|
-
"TasksResourceWithRawResponse",
|
|
124
|
-
"AsyncTasksResourceWithRawResponse",
|
|
125
|
-
"TasksResourceWithStreamingResponse",
|
|
126
|
-
"AsyncTasksResourceWithStreamingResponse",
|
|
127
|
-
"WorkflowsResource",
|
|
128
|
-
"AsyncWorkflowsResource",
|
|
129
|
-
"WorkflowsResourceWithRawResponse",
|
|
130
|
-
"AsyncWorkflowsResourceWithRawResponse",
|
|
131
|
-
"WorkflowsResourceWithStreamingResponse",
|
|
132
|
-
"AsyncWorkflowsResourceWithStreamingResponse",
|
|
133
59
|
"DocumentsResource",
|
|
134
60
|
"AsyncDocumentsResource",
|
|
135
61
|
"DocumentsResourceWithRawResponse",
|
|
@@ -142,36 +68,12 @@ __all__ = [
|
|
|
142
68
|
"AsyncCommunicationResourceWithRawResponse",
|
|
143
69
|
"CommunicationResourceWithStreamingResponse",
|
|
144
70
|
"AsyncCommunicationResourceWithStreamingResponse",
|
|
145
|
-
"ClearinghouseResource",
|
|
146
|
-
"AsyncClearinghouseResource",
|
|
147
|
-
"ClearinghouseResourceWithRawResponse",
|
|
148
|
-
"AsyncClearinghouseResourceWithRawResponse",
|
|
149
|
-
"ClearinghouseResourceWithStreamingResponse",
|
|
150
|
-
"AsyncClearinghouseResourceWithStreamingResponse",
|
|
151
|
-
"IntegrationsResource",
|
|
152
|
-
"AsyncIntegrationsResource",
|
|
153
|
-
"IntegrationsResourceWithRawResponse",
|
|
154
|
-
"AsyncIntegrationsResourceWithRawResponse",
|
|
155
|
-
"IntegrationsResourceWithStreamingResponse",
|
|
156
|
-
"AsyncIntegrationsResourceWithStreamingResponse",
|
|
157
71
|
"EventsResource",
|
|
158
72
|
"AsyncEventsResource",
|
|
159
73
|
"EventsResourceWithRawResponse",
|
|
160
74
|
"AsyncEventsResourceWithRawResponse",
|
|
161
75
|
"EventsResourceWithStreamingResponse",
|
|
162
76
|
"AsyncEventsResourceWithStreamingResponse",
|
|
163
|
-
"PoliciesResource",
|
|
164
|
-
"AsyncPoliciesResource",
|
|
165
|
-
"PoliciesResourceWithRawResponse",
|
|
166
|
-
"AsyncPoliciesResourceWithRawResponse",
|
|
167
|
-
"PoliciesResourceWithStreamingResponse",
|
|
168
|
-
"AsyncPoliciesResourceWithStreamingResponse",
|
|
169
|
-
"HieResource",
|
|
170
|
-
"AsyncHieResource",
|
|
171
|
-
"HieResourceWithRawResponse",
|
|
172
|
-
"AsyncHieResourceWithRawResponse",
|
|
173
|
-
"HieResourceWithStreamingResponse",
|
|
174
|
-
"AsyncHieResourceWithStreamingResponse",
|
|
175
77
|
"DatabaseResource",
|
|
176
78
|
"AsyncDatabaseResource",
|
|
177
79
|
"DatabaseResourceWithRawResponse",
|
|
@@ -19,7 +19,6 @@ from ..._response import (
|
|
|
19
19
|
)
|
|
20
20
|
from ..._base_client import make_request_options
|
|
21
21
|
from ...types.v2.async_result_sleep_response import AsyncResultSleepResponse
|
|
22
|
-
from ...types.v2.async_result_retrieve_response import AsyncResultRetrieveResponse
|
|
23
22
|
|
|
24
23
|
__all__ = ["AsyncResultsResource", "AsyncAsyncResultsResource"]
|
|
25
24
|
|
|
@@ -44,39 +43,6 @@ class AsyncResultsResource(SyncAPIResource):
|
|
|
44
43
|
"""
|
|
45
44
|
return AsyncResultsResourceWithStreamingResponse(self)
|
|
46
45
|
|
|
47
|
-
def retrieve(
|
|
48
|
-
self,
|
|
49
|
-
async_result_id: str,
|
|
50
|
-
*,
|
|
51
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
52
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
53
|
-
extra_headers: Headers | None = None,
|
|
54
|
-
extra_query: Query | None = None,
|
|
55
|
-
extra_body: Body | None = None,
|
|
56
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
57
|
-
) -> AsyncResultRetrieveResponse:
|
|
58
|
-
"""
|
|
59
|
-
Retrieves the status and result of an asynchronous operation.
|
|
60
|
-
|
|
61
|
-
Args:
|
|
62
|
-
extra_headers: Send extra headers
|
|
63
|
-
|
|
64
|
-
extra_query: Add additional query parameters to the request
|
|
65
|
-
|
|
66
|
-
extra_body: Add additional JSON properties to the request
|
|
67
|
-
|
|
68
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
69
|
-
"""
|
|
70
|
-
if not async_result_id:
|
|
71
|
-
raise ValueError(f"Expected a non-empty value for `async_result_id` but received {async_result_id!r}")
|
|
72
|
-
return self._get(
|
|
73
|
-
f"/api/v2/async-results/{async_result_id}",
|
|
74
|
-
options=make_request_options(
|
|
75
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
76
|
-
),
|
|
77
|
-
cast_to=AsyncResultRetrieveResponse,
|
|
78
|
-
)
|
|
79
|
-
|
|
80
46
|
@overload
|
|
81
47
|
def sleep(
|
|
82
48
|
self,
|
|
@@ -184,39 +150,6 @@ class AsyncAsyncResultsResource(AsyncAPIResource):
|
|
|
184
150
|
"""
|
|
185
151
|
return AsyncAsyncResultsResourceWithStreamingResponse(self)
|
|
186
152
|
|
|
187
|
-
async def retrieve(
|
|
188
|
-
self,
|
|
189
|
-
async_result_id: str,
|
|
190
|
-
*,
|
|
191
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
192
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
193
|
-
extra_headers: Headers | None = None,
|
|
194
|
-
extra_query: Query | None = None,
|
|
195
|
-
extra_body: Body | None = None,
|
|
196
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
197
|
-
) -> AsyncResultRetrieveResponse:
|
|
198
|
-
"""
|
|
199
|
-
Retrieves the status and result of an asynchronous operation.
|
|
200
|
-
|
|
201
|
-
Args:
|
|
202
|
-
extra_headers: Send extra headers
|
|
203
|
-
|
|
204
|
-
extra_query: Add additional query parameters to the request
|
|
205
|
-
|
|
206
|
-
extra_body: Add additional JSON properties to the request
|
|
207
|
-
|
|
208
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
209
|
-
"""
|
|
210
|
-
if not async_result_id:
|
|
211
|
-
raise ValueError(f"Expected a non-empty value for `async_result_id` but received {async_result_id!r}")
|
|
212
|
-
return await self._get(
|
|
213
|
-
f"/api/v2/async-results/{async_result_id}",
|
|
214
|
-
options=make_request_options(
|
|
215
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
216
|
-
),
|
|
217
|
-
cast_to=AsyncResultRetrieveResponse,
|
|
218
|
-
)
|
|
219
|
-
|
|
220
153
|
@overload
|
|
221
154
|
async def sleep(
|
|
222
155
|
self,
|
|
@@ -308,9 +241,6 @@ class AsyncResultsResourceWithRawResponse:
|
|
|
308
241
|
def __init__(self, async_results: AsyncResultsResource) -> None:
|
|
309
242
|
self._async_results = async_results
|
|
310
243
|
|
|
311
|
-
self.retrieve = to_raw_response_wrapper(
|
|
312
|
-
async_results.retrieve,
|
|
313
|
-
)
|
|
314
244
|
self.sleep = to_raw_response_wrapper(
|
|
315
245
|
async_results.sleep,
|
|
316
246
|
)
|
|
@@ -320,9 +250,6 @@ class AsyncAsyncResultsResourceWithRawResponse:
|
|
|
320
250
|
def __init__(self, async_results: AsyncAsyncResultsResource) -> None:
|
|
321
251
|
self._async_results = async_results
|
|
322
252
|
|
|
323
|
-
self.retrieve = async_to_raw_response_wrapper(
|
|
324
|
-
async_results.retrieve,
|
|
325
|
-
)
|
|
326
253
|
self.sleep = async_to_raw_response_wrapper(
|
|
327
254
|
async_results.sleep,
|
|
328
255
|
)
|
|
@@ -332,9 +259,6 @@ class AsyncResultsResourceWithStreamingResponse:
|
|
|
332
259
|
def __init__(self, async_results: AsyncResultsResource) -> None:
|
|
333
260
|
self._async_results = async_results
|
|
334
261
|
|
|
335
|
-
self.retrieve = to_streamed_response_wrapper(
|
|
336
|
-
async_results.retrieve,
|
|
337
|
-
)
|
|
338
262
|
self.sleep = to_streamed_response_wrapper(
|
|
339
263
|
async_results.sleep,
|
|
340
264
|
)
|
|
@@ -344,9 +268,6 @@ class AsyncAsyncResultsResourceWithStreamingResponse:
|
|
|
344
268
|
def __init__(self, async_results: AsyncAsyncResultsResource) -> None:
|
|
345
269
|
self._async_results = async_results
|
|
346
270
|
|
|
347
|
-
self.retrieve = async_to_streamed_response_wrapper(
|
|
348
|
-
async_results.retrieve,
|
|
349
|
-
)
|
|
350
271
|
self.sleep = async_to_streamed_response_wrapper(
|
|
351
272
|
async_results.sleep,
|
|
352
273
|
)
|
|
@@ -32,14 +32,6 @@ from .templates import (
|
|
|
32
32
|
TemplatesResourceWithStreamingResponse,
|
|
33
33
|
AsyncTemplatesResourceWithStreamingResponse,
|
|
34
34
|
)
|
|
35
|
-
from .pdf_template import (
|
|
36
|
-
PdfTemplateResource,
|
|
37
|
-
AsyncPdfTemplateResource,
|
|
38
|
-
PdfTemplateResourceWithRawResponse,
|
|
39
|
-
AsyncPdfTemplateResourceWithRawResponse,
|
|
40
|
-
PdfTemplateResourceWithStreamingResponse,
|
|
41
|
-
AsyncPdfTemplateResourceWithStreamingResponse,
|
|
42
|
-
)
|
|
43
35
|
|
|
44
36
|
__all__ = [
|
|
45
37
|
"LegacyResource",
|
|
@@ -54,12 +46,6 @@ __all__ = [
|
|
|
54
46
|
"AsyncTemplatesResourceWithRawResponse",
|
|
55
47
|
"TemplatesResourceWithStreamingResponse",
|
|
56
48
|
"AsyncTemplatesResourceWithStreamingResponse",
|
|
57
|
-
"PdfTemplateResource",
|
|
58
|
-
"AsyncPdfTemplateResource",
|
|
59
|
-
"PdfTemplateResourceWithRawResponse",
|
|
60
|
-
"AsyncPdfTemplateResourceWithRawResponse",
|
|
61
|
-
"PdfTemplateResourceWithStreamingResponse",
|
|
62
|
-
"AsyncPdfTemplateResourceWithStreamingResponse",
|
|
63
49
|
"FormatsResource",
|
|
64
50
|
"AsyncFormatsResource",
|
|
65
51
|
"FormatsResourceWithRawResponse",
|