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
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Literal
|
|
6
|
-
|
|
7
|
-
import httpx
|
|
8
|
-
|
|
9
|
-
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
10
|
-
from ..._utils import is_given, maybe_transform, strip_not_given, async_maybe_transform
|
|
11
|
-
from ..._compat import cached_property
|
|
12
|
-
from ...types.v2 import workflow_query_params, workflow_start_params
|
|
13
|
-
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
14
|
-
from ..._response import (
|
|
15
|
-
to_raw_response_wrapper,
|
|
16
|
-
to_streamed_response_wrapper,
|
|
17
|
-
async_to_raw_response_wrapper,
|
|
18
|
-
async_to_streamed_response_wrapper,
|
|
19
|
-
)
|
|
20
|
-
from ..._base_client import make_request_options
|
|
21
|
-
from ...types.v2.workflow_query_response import WorkflowQueryResponse
|
|
22
|
-
from ...types.v2.workflow_start_response import WorkflowStartResponse
|
|
23
|
-
from ...types.v2.workflow_deploy_response import WorkflowDeployResponse
|
|
24
|
-
|
|
25
|
-
__all__ = ["WorkflowsResource", "AsyncWorkflowsResource"]
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class WorkflowsResource(SyncAPIResource):
|
|
29
|
-
@cached_property
|
|
30
|
-
def with_raw_response(self) -> WorkflowsResourceWithRawResponse:
|
|
31
|
-
"""
|
|
32
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
33
|
-
the raw response object instead of the parsed content.
|
|
34
|
-
|
|
35
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
36
|
-
"""
|
|
37
|
-
return WorkflowsResourceWithRawResponse(self)
|
|
38
|
-
|
|
39
|
-
@cached_property
|
|
40
|
-
def with_streaming_response(self) -> WorkflowsResourceWithStreamingResponse:
|
|
41
|
-
"""
|
|
42
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
43
|
-
|
|
44
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
45
|
-
"""
|
|
46
|
-
return WorkflowsResourceWithStreamingResponse(self)
|
|
47
|
-
|
|
48
|
-
def deploy(
|
|
49
|
-
self,
|
|
50
|
-
workflow_id: str,
|
|
51
|
-
*,
|
|
52
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
53
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
54
|
-
extra_headers: Headers | None = None,
|
|
55
|
-
extra_query: Query | None = None,
|
|
56
|
-
extra_body: Body | None = None,
|
|
57
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
58
|
-
) -> WorkflowDeployResponse:
|
|
59
|
-
"""
|
|
60
|
-
Creates a new deployment for the specified workflow ID, making the current
|
|
61
|
-
version of the workflow live.
|
|
62
|
-
|
|
63
|
-
Args:
|
|
64
|
-
extra_headers: Send extra headers
|
|
65
|
-
|
|
66
|
-
extra_query: Add additional query parameters to the request
|
|
67
|
-
|
|
68
|
-
extra_body: Add additional JSON properties to the request
|
|
69
|
-
|
|
70
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
71
|
-
"""
|
|
72
|
-
if not workflow_id:
|
|
73
|
-
raise ValueError(f"Expected a non-empty value for `workflow_id` but received {workflow_id!r}")
|
|
74
|
-
return self._post(
|
|
75
|
-
f"/api/v2/workflows/{workflow_id}/deploy",
|
|
76
|
-
options=make_request_options(
|
|
77
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
78
|
-
),
|
|
79
|
-
cast_to=WorkflowDeployResponse,
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
def query(
|
|
83
|
-
self,
|
|
84
|
-
workflow_slug: str,
|
|
85
|
-
*,
|
|
86
|
-
query: str,
|
|
87
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
88
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
89
|
-
extra_headers: Headers | None = None,
|
|
90
|
-
extra_query: Query | None = None,
|
|
91
|
-
extra_body: Body | None = None,
|
|
92
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
93
|
-
) -> WorkflowQueryResponse:
|
|
94
|
-
"""
|
|
95
|
-
Query workflow outputs
|
|
96
|
-
|
|
97
|
-
Args:
|
|
98
|
-
query: The query to run on the workflow outputs.
|
|
99
|
-
|
|
100
|
-
extra_headers: Send extra headers
|
|
101
|
-
|
|
102
|
-
extra_query: Add additional query parameters to the request
|
|
103
|
-
|
|
104
|
-
extra_body: Add additional JSON properties to the request
|
|
105
|
-
|
|
106
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
107
|
-
"""
|
|
108
|
-
if not workflow_slug:
|
|
109
|
-
raise ValueError(f"Expected a non-empty value for `workflow_slug` but received {workflow_slug!r}")
|
|
110
|
-
return self._post(
|
|
111
|
-
f"/api/v2/workflows/{workflow_slug}/query",
|
|
112
|
-
body=maybe_transform({"query": query}, workflow_query_params.WorkflowQueryParams),
|
|
113
|
-
options=make_request_options(
|
|
114
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
115
|
-
),
|
|
116
|
-
cast_to=WorkflowQueryResponse,
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
def start(
|
|
120
|
-
self,
|
|
121
|
-
workflow_slug: str,
|
|
122
|
-
*,
|
|
123
|
-
body: object | Omit = omit,
|
|
124
|
-
x_sample_start_data_parse_method: Literal["standard", "top-level"] | Omit = omit,
|
|
125
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
126
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
127
|
-
extra_headers: Headers | None = None,
|
|
128
|
-
extra_query: Query | None = None,
|
|
129
|
-
extra_body: Body | None = None,
|
|
130
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
131
|
-
) -> WorkflowStartResponse:
|
|
132
|
-
"""Initiates a workflow run based on its slug.
|
|
133
|
-
|
|
134
|
-
Accepts JSON or multipart/form-data
|
|
135
|
-
for input.
|
|
136
|
-
|
|
137
|
-
Args:
|
|
138
|
-
extra_headers: Send extra headers
|
|
139
|
-
|
|
140
|
-
extra_query: Add additional query parameters to the request
|
|
141
|
-
|
|
142
|
-
extra_body: Add additional JSON properties to the request
|
|
143
|
-
|
|
144
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
145
|
-
"""
|
|
146
|
-
if not workflow_slug:
|
|
147
|
-
raise ValueError(f"Expected a non-empty value for `workflow_slug` but received {workflow_slug!r}")
|
|
148
|
-
extra_headers = {
|
|
149
|
-
**strip_not_given(
|
|
150
|
-
{
|
|
151
|
-
"X-Sample-Start-Data-Parse-Method": str(x_sample_start_data_parse_method)
|
|
152
|
-
if is_given(x_sample_start_data_parse_method)
|
|
153
|
-
else not_given
|
|
154
|
-
}
|
|
155
|
-
),
|
|
156
|
-
**(extra_headers or {}),
|
|
157
|
-
}
|
|
158
|
-
return self._post(
|
|
159
|
-
f"/api/v2/workflows/{workflow_slug}/start",
|
|
160
|
-
body=maybe_transform(body, workflow_start_params.WorkflowStartParams),
|
|
161
|
-
options=make_request_options(
|
|
162
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
163
|
-
),
|
|
164
|
-
cast_to=WorkflowStartResponse,
|
|
165
|
-
)
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
class AsyncWorkflowsResource(AsyncAPIResource):
|
|
169
|
-
@cached_property
|
|
170
|
-
def with_raw_response(self) -> AsyncWorkflowsResourceWithRawResponse:
|
|
171
|
-
"""
|
|
172
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
173
|
-
the raw response object instead of the parsed content.
|
|
174
|
-
|
|
175
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
176
|
-
"""
|
|
177
|
-
return AsyncWorkflowsResourceWithRawResponse(self)
|
|
178
|
-
|
|
179
|
-
@cached_property
|
|
180
|
-
def with_streaming_response(self) -> AsyncWorkflowsResourceWithStreamingResponse:
|
|
181
|
-
"""
|
|
182
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
183
|
-
|
|
184
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
185
|
-
"""
|
|
186
|
-
return AsyncWorkflowsResourceWithStreamingResponse(self)
|
|
187
|
-
|
|
188
|
-
async def deploy(
|
|
189
|
-
self,
|
|
190
|
-
workflow_id: str,
|
|
191
|
-
*,
|
|
192
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
193
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
194
|
-
extra_headers: Headers | None = None,
|
|
195
|
-
extra_query: Query | None = None,
|
|
196
|
-
extra_body: Body | None = None,
|
|
197
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
198
|
-
) -> WorkflowDeployResponse:
|
|
199
|
-
"""
|
|
200
|
-
Creates a new deployment for the specified workflow ID, making the current
|
|
201
|
-
version of the workflow live.
|
|
202
|
-
|
|
203
|
-
Args:
|
|
204
|
-
extra_headers: Send extra headers
|
|
205
|
-
|
|
206
|
-
extra_query: Add additional query parameters to the request
|
|
207
|
-
|
|
208
|
-
extra_body: Add additional JSON properties to the request
|
|
209
|
-
|
|
210
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
211
|
-
"""
|
|
212
|
-
if not workflow_id:
|
|
213
|
-
raise ValueError(f"Expected a non-empty value for `workflow_id` but received {workflow_id!r}")
|
|
214
|
-
return await self._post(
|
|
215
|
-
f"/api/v2/workflows/{workflow_id}/deploy",
|
|
216
|
-
options=make_request_options(
|
|
217
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
218
|
-
),
|
|
219
|
-
cast_to=WorkflowDeployResponse,
|
|
220
|
-
)
|
|
221
|
-
|
|
222
|
-
async def query(
|
|
223
|
-
self,
|
|
224
|
-
workflow_slug: str,
|
|
225
|
-
*,
|
|
226
|
-
query: str,
|
|
227
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
228
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
229
|
-
extra_headers: Headers | None = None,
|
|
230
|
-
extra_query: Query | None = None,
|
|
231
|
-
extra_body: Body | None = None,
|
|
232
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
233
|
-
) -> WorkflowQueryResponse:
|
|
234
|
-
"""
|
|
235
|
-
Query workflow outputs
|
|
236
|
-
|
|
237
|
-
Args:
|
|
238
|
-
query: The query to run on the workflow outputs.
|
|
239
|
-
|
|
240
|
-
extra_headers: Send extra headers
|
|
241
|
-
|
|
242
|
-
extra_query: Add additional query parameters to the request
|
|
243
|
-
|
|
244
|
-
extra_body: Add additional JSON properties to the request
|
|
245
|
-
|
|
246
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
247
|
-
"""
|
|
248
|
-
if not workflow_slug:
|
|
249
|
-
raise ValueError(f"Expected a non-empty value for `workflow_slug` but received {workflow_slug!r}")
|
|
250
|
-
return await self._post(
|
|
251
|
-
f"/api/v2/workflows/{workflow_slug}/query",
|
|
252
|
-
body=await async_maybe_transform({"query": query}, workflow_query_params.WorkflowQueryParams),
|
|
253
|
-
options=make_request_options(
|
|
254
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
255
|
-
),
|
|
256
|
-
cast_to=WorkflowQueryResponse,
|
|
257
|
-
)
|
|
258
|
-
|
|
259
|
-
async def start(
|
|
260
|
-
self,
|
|
261
|
-
workflow_slug: str,
|
|
262
|
-
*,
|
|
263
|
-
body: object | Omit = omit,
|
|
264
|
-
x_sample_start_data_parse_method: Literal["standard", "top-level"] | Omit = omit,
|
|
265
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
266
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
267
|
-
extra_headers: Headers | None = None,
|
|
268
|
-
extra_query: Query | None = None,
|
|
269
|
-
extra_body: Body | None = None,
|
|
270
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
271
|
-
) -> WorkflowStartResponse:
|
|
272
|
-
"""Initiates a workflow run based on its slug.
|
|
273
|
-
|
|
274
|
-
Accepts JSON or multipart/form-data
|
|
275
|
-
for input.
|
|
276
|
-
|
|
277
|
-
Args:
|
|
278
|
-
extra_headers: Send extra headers
|
|
279
|
-
|
|
280
|
-
extra_query: Add additional query parameters to the request
|
|
281
|
-
|
|
282
|
-
extra_body: Add additional JSON properties to the request
|
|
283
|
-
|
|
284
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
285
|
-
"""
|
|
286
|
-
if not workflow_slug:
|
|
287
|
-
raise ValueError(f"Expected a non-empty value for `workflow_slug` but received {workflow_slug!r}")
|
|
288
|
-
extra_headers = {
|
|
289
|
-
**strip_not_given(
|
|
290
|
-
{
|
|
291
|
-
"X-Sample-Start-Data-Parse-Method": str(x_sample_start_data_parse_method)
|
|
292
|
-
if is_given(x_sample_start_data_parse_method)
|
|
293
|
-
else not_given
|
|
294
|
-
}
|
|
295
|
-
),
|
|
296
|
-
**(extra_headers or {}),
|
|
297
|
-
}
|
|
298
|
-
return await self._post(
|
|
299
|
-
f"/api/v2/workflows/{workflow_slug}/start",
|
|
300
|
-
body=await async_maybe_transform(body, workflow_start_params.WorkflowStartParams),
|
|
301
|
-
options=make_request_options(
|
|
302
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
303
|
-
),
|
|
304
|
-
cast_to=WorkflowStartResponse,
|
|
305
|
-
)
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
class WorkflowsResourceWithRawResponse:
|
|
309
|
-
def __init__(self, workflows: WorkflowsResource) -> None:
|
|
310
|
-
self._workflows = workflows
|
|
311
|
-
|
|
312
|
-
self.deploy = to_raw_response_wrapper(
|
|
313
|
-
workflows.deploy,
|
|
314
|
-
)
|
|
315
|
-
self.query = to_raw_response_wrapper(
|
|
316
|
-
workflows.query,
|
|
317
|
-
)
|
|
318
|
-
self.start = to_raw_response_wrapper(
|
|
319
|
-
workflows.start,
|
|
320
|
-
)
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
class AsyncWorkflowsResourceWithRawResponse:
|
|
324
|
-
def __init__(self, workflows: AsyncWorkflowsResource) -> None:
|
|
325
|
-
self._workflows = workflows
|
|
326
|
-
|
|
327
|
-
self.deploy = async_to_raw_response_wrapper(
|
|
328
|
-
workflows.deploy,
|
|
329
|
-
)
|
|
330
|
-
self.query = async_to_raw_response_wrapper(
|
|
331
|
-
workflows.query,
|
|
332
|
-
)
|
|
333
|
-
self.start = async_to_raw_response_wrapper(
|
|
334
|
-
workflows.start,
|
|
335
|
-
)
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
class WorkflowsResourceWithStreamingResponse:
|
|
339
|
-
def __init__(self, workflows: WorkflowsResource) -> None:
|
|
340
|
-
self._workflows = workflows
|
|
341
|
-
|
|
342
|
-
self.deploy = to_streamed_response_wrapper(
|
|
343
|
-
workflows.deploy,
|
|
344
|
-
)
|
|
345
|
-
self.query = to_streamed_response_wrapper(
|
|
346
|
-
workflows.query,
|
|
347
|
-
)
|
|
348
|
-
self.start = to_streamed_response_wrapper(
|
|
349
|
-
workflows.start,
|
|
350
|
-
)
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
class AsyncWorkflowsResourceWithStreamingResponse:
|
|
354
|
-
def __init__(self, workflows: AsyncWorkflowsResource) -> None:
|
|
355
|
-
self._workflows = workflows
|
|
356
|
-
|
|
357
|
-
self.deploy = async_to_streamed_response_wrapper(
|
|
358
|
-
workflows.deploy,
|
|
359
|
-
)
|
|
360
|
-
self.query = async_to_streamed_response_wrapper(
|
|
361
|
-
workflows.query,
|
|
362
|
-
)
|
|
363
|
-
self.start = async_to_streamed_response_wrapper(
|
|
364
|
-
workflows.start,
|
|
365
|
-
)
|
samplehc/types/v1/__init__.py
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Required, TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["V1QueryAuditLogsParams"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class V1QueryAuditLogsParams(TypedDict, total=False):
|
|
11
|
-
query: Required[str]
|
|
12
|
-
"""The query string to filter audit logs."""
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Dict, List
|
|
4
|
-
|
|
5
|
-
from .._models import BaseModel
|
|
6
|
-
|
|
7
|
-
__all__ = ["V1QueryAuditLogsResponse"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class V1QueryAuditLogsResponse(BaseModel):
|
|
11
|
-
"""
|
|
12
|
-
A successful response containing a list of audit log entries that match the provided query.
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
data: List[Dict[str, object]]
|
|
16
|
-
"""An array of audit log records matching the query."""
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Iterable
|
|
6
|
-
from typing_extensions import Required, Annotated, TypedDict
|
|
7
|
-
|
|
8
|
-
from .._utils import PropertyInfo
|
|
9
|
-
|
|
10
|
-
__all__ = ["V1SqlExecuteParams"]
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class V1SqlExecuteParams(TypedDict, total=False):
|
|
14
|
-
query: Required[str]
|
|
15
|
-
"""The SQL query to execute."""
|
|
16
|
-
|
|
17
|
-
array_mode: Annotated[bool, PropertyInfo(alias="arrayMode")]
|
|
18
|
-
"""If true, rows will be returned as arrays of values instead of objects.
|
|
19
|
-
|
|
20
|
-
Defaults to false.
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
params: Iterable[object]
|
|
24
|
-
"""An array of parameters to be used in the SQL query.
|
|
25
|
-
|
|
26
|
-
Use placeholders like $1, $2, etc. in the query string.
|
|
27
|
-
"""
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import List, Union
|
|
4
|
-
from typing_extensions import TypeAlias
|
|
5
|
-
|
|
6
|
-
from .._models import BaseModel
|
|
7
|
-
|
|
8
|
-
__all__ = ["V1SqlExecuteResponse", "Rows", "Error"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class Rows(BaseModel):
|
|
12
|
-
rows: List[object]
|
|
13
|
-
"""An array of results from the query.
|
|
14
|
-
|
|
15
|
-
Each item is an object (default) or an array of values (if arrayMode is true).
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class Error(BaseModel):
|
|
20
|
-
error: str
|
|
21
|
-
"""
|
|
22
|
-
An error message if the query was processed but resulted in a recoverable error
|
|
23
|
-
(e.g., syntax error in SQL that was caught gracefully).
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
V1SqlExecuteResponse: TypeAlias = Union[Rows, Error]
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
|
-
from ..._models import BaseModel
|
|
6
|
-
|
|
7
|
-
__all__ = ["AsyncResultRetrieveResponse"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class AsyncResultRetrieveResponse(BaseModel):
|
|
11
|
-
status: str
|
|
12
|
-
"""The current status of the asynchronous operation."""
|
|
13
|
-
|
|
14
|
-
inputs: Optional[object] = None
|
|
15
|
-
"""The inputs provided to the asynchronous operation."""
|
|
16
|
-
|
|
17
|
-
result: Optional[object] = None
|
|
18
|
-
"""The result of the operation, if completed."""
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .claim_submit_params import ClaimSubmitParams as ClaimSubmitParams
|
|
6
|
-
from .payer_list_response import PayerListResponse as PayerListResponse
|
|
7
|
-
from .payer_search_params import PayerSearchParams as PayerSearchParams
|
|
8
|
-
from .claim_submit_response import ClaimSubmitResponse as ClaimSubmitResponse
|
|
9
|
-
from .payer_search_response import PayerSearchResponse as PayerSearchResponse
|