samplehc 0.17.0__py3-none-any.whl → 0.19.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.
Files changed (154) hide show
  1. samplehc/_base_client.py +5 -2
  2. samplehc/_client.py +1 -38
  3. samplehc/_compat.py +3 -3
  4. samplehc/_utils/_json.py +35 -0
  5. samplehc/_version.py +1 -1
  6. samplehc/resources/__init__.py +0 -14
  7. samplehc/resources/v2/__init__.py +0 -98
  8. samplehc/resources/v2/async_results.py +0 -79
  9. samplehc/resources/v2/documents/__init__.py +0 -14
  10. samplehc/resources/v2/documents/documents.py +44 -196
  11. samplehc/resources/v2/v2.py +0 -224
  12. samplehc/types/__init__.py +0 -5
  13. samplehc/types/v2/__init__.py +0 -53
  14. samplehc/types/v2/document_extract_params.py +20 -1
  15. samplehc/types/v2/documents/__init__.py +0 -3
  16. {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/METADATA +22 -27
  17. samplehc-0.19.0.dist-info/RECORD +93 -0
  18. samplehc/resources/v1/__init__.py +0 -19
  19. samplehc/resources/v1/v1.py +0 -298
  20. samplehc/resources/v2/clearinghouse/__init__.py +0 -47
  21. samplehc/resources/v2/clearinghouse/claim.py +0 -407
  22. samplehc/resources/v2/clearinghouse/clearinghouse.py +0 -844
  23. samplehc/resources/v2/clearinghouse/payers.py +0 -224
  24. samplehc/resources/v2/documents/pdf_template.py +0 -165
  25. samplehc/resources/v2/hie/__init__.py +0 -47
  26. samplehc/resources/v2/hie/adt.py +0 -249
  27. samplehc/resources/v2/hie/documents.py +0 -390
  28. samplehc/resources/v2/hie/hie.py +0 -134
  29. samplehc/resources/v2/integrations/__init__.py +0 -131
  30. samplehc/resources/v2/integrations/bank/__init__.py +0 -33
  31. samplehc/resources/v2/integrations/bank/bank.py +0 -102
  32. samplehc/resources/v2/integrations/bank/transactions.py +0 -185
  33. samplehc/resources/v2/integrations/careviso.py +0 -372
  34. samplehc/resources/v2/integrations/glidian/__init__.py +0 -33
  35. samplehc/resources/v2/integrations/glidian/glidian.py +0 -425
  36. samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -33
  37. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +0 -276
  38. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +0 -527
  39. samplehc/resources/v2/integrations/integrations.py +0 -326
  40. samplehc/resources/v2/integrations/kno2/__init__.py +0 -33
  41. samplehc/resources/v2/integrations/kno2/kno2.py +0 -102
  42. samplehc/resources/v2/integrations/kno2/messages.py +0 -260
  43. samplehc/resources/v2/integrations/salesforce.py +0 -277
  44. samplehc/resources/v2/integrations/snowflake.py +0 -173
  45. samplehc/resources/v2/integrations/wellsky/__init__.py +0 -33
  46. samplehc/resources/v2/integrations/wellsky/patients.py +0 -324
  47. samplehc/resources/v2/integrations/wellsky/wellsky.py +0 -102
  48. samplehc/resources/v2/integrations/xcures.py +0 -197
  49. samplehc/resources/v2/policies.py +0 -655
  50. samplehc/resources/v2/tasks/__init__.py +0 -33
  51. samplehc/resources/v2/tasks/state.py +0 -266
  52. samplehc/resources/v2/tasks/tasks.py +0 -754
  53. samplehc/resources/v2/workflow_runs/__init__.py +0 -33
  54. samplehc/resources/v2/workflow_runs/step.py +0 -169
  55. samplehc/resources/v2/workflow_runs/workflow_runs.py +0 -479
  56. samplehc/resources/v2/workflows.py +0 -377
  57. samplehc/types/v1/__init__.py +0 -3
  58. samplehc/types/v1_query_audit_logs_params.py +0 -12
  59. samplehc/types/v1_query_audit_logs_response.py +0 -16
  60. samplehc/types/v1_sql_execute_params.py +0 -27
  61. samplehc/types/v1_sql_execute_response.py +0 -27
  62. samplehc/types/v2/async_result_retrieve_response.py +0 -18
  63. samplehc/types/v2/clearinghouse/__init__.py +0 -9
  64. samplehc/types/v2/clearinghouse/claim_submit_params.py +0 -2693
  65. samplehc/types/v2/clearinghouse/claim_submit_response.py +0 -23
  66. samplehc/types/v2/clearinghouse/payer_list_response.py +0 -27
  67. samplehc/types/v2/clearinghouse/payer_search_params.py +0 -12
  68. samplehc/types/v2/clearinghouse/payer_search_response.py +0 -33
  69. samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +0 -3129
  70. samplehc/types/v2/clearinghouse_check_claim_status_params.py +0 -41
  71. samplehc/types/v2/clearinghouse_check_eligibility_params.py +0 -36
  72. samplehc/types/v2/clearinghouse_check_eligibility_response.py +0 -15
  73. samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py +0 -35
  74. samplehc/types/v2/clearinghouse_run_discovery_params.py +0 -59
  75. samplehc/types/v2/clearinghouse_run_discovery_response.py +0 -13
  76. samplehc/types/v2/document_unzip_async_response.py +0 -12
  77. samplehc/types/v2/document_unzip_response.py +0 -20
  78. samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +0 -17
  79. samplehc/types/v2/hie/__init__.py +0 -8
  80. samplehc/types/v2/hie/adt_subscribe_params.py +0 -92
  81. samplehc/types/v2/hie/document_query_params.py +0 -92
  82. samplehc/types/v2/hie/document_query_response.py +0 -16
  83. samplehc/types/v2/hie/document_upload_params.py +0 -54
  84. samplehc/types/v2/integrations/__init__.py +0 -23
  85. samplehc/types/v2/integrations/bank/__init__.py +0 -6
  86. samplehc/types/v2/integrations/bank/transaction_sync_params.py +0 -15
  87. samplehc/types/v2/integrations/bank/transaction_sync_response.py +0 -26
  88. samplehc/types/v2/integrations/careviso_get_payers_response.py +0 -19
  89. samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +0 -90
  90. samplehc/types/v2/integrations/glidian/__init__.py +0 -20
  91. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +0 -32
  92. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +0 -24
  93. samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +0 -13
  94. samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +0 -16
  95. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +0 -20
  96. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +0 -16
  97. samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +0 -7
  98. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +0 -42
  99. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +0 -23
  100. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +0 -19
  101. samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +0 -17
  102. samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +0 -31
  103. samplehc/types/v2/integrations/glidian_list_payers_params.py +0 -11
  104. samplehc/types/v2/integrations/glidian_list_payers_response.py +0 -17
  105. samplehc/types/v2/integrations/glidian_list_services_params.py +0 -13
  106. samplehc/types/v2/integrations/glidian_list_services_response.py +0 -19
  107. samplehc/types/v2/integrations/kno2/__init__.py +0 -6
  108. samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +0 -15
  109. samplehc/types/v2/integrations/kno2/message_retrieve_response.py +0 -13
  110. samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +0 -22
  111. samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +0 -11
  112. samplehc/types/v2/integrations/snowflake_query_params.py +0 -12
  113. samplehc/types/v2/integrations/snowflake_query_response.py +0 -8
  114. samplehc/types/v2/integrations/wellsky/__init__.py +0 -6
  115. samplehc/types/v2/integrations/wellsky/patient_add_params.py +0 -13
  116. samplehc/types/v2/integrations/wellsky/patient_search_params.py +0 -32
  117. samplehc/types/v2/integrations/xcure_make_request_params.py +0 -18
  118. samplehc/types/v2/ledger/__init__.py +0 -3
  119. samplehc/types/v2/policy_list_companies_params.py +0 -18
  120. samplehc/types/v2/policy_list_companies_response.py +0 -24
  121. samplehc/types/v2/policy_list_params.py +0 -47
  122. samplehc/types/v2/policy_list_plans_params.py +0 -18
  123. samplehc/types/v2/policy_list_plans_response.py +0 -30
  124. samplehc/types/v2/policy_list_response.py +0 -67
  125. samplehc/types/v2/policy_retrieve_presigned_url_response.py +0 -17
  126. samplehc/types/v2/policy_retrieve_text_response.py +0 -12
  127. samplehc/types/v2/task_cancel_response.py +0 -12
  128. samplehc/types/v2/task_complete_params.py +0 -12
  129. samplehc/types/v2/task_complete_response.py +0 -16
  130. samplehc/types/v2/task_get_suspended_payload_response.py +0 -8
  131. samplehc/types/v2/task_retrieve_response.py +0 -22
  132. samplehc/types/v2/task_retry_response.py +0 -10
  133. samplehc/types/v2/task_update_column_params.py +0 -19
  134. samplehc/types/v2/task_update_column_response.py +0 -9
  135. samplehc/types/v2/task_update_screen_time_params.py +0 -14
  136. samplehc/types/v2/task_update_screen_time_response.py +0 -8
  137. samplehc/types/v2/tasks/__init__.py +0 -7
  138. samplehc/types/v2/tasks/state_get_response.py +0 -8
  139. samplehc/types/v2/tasks/state_update_params.py +0 -13
  140. samplehc/types/v2/tasks/state_update_response.py +0 -9
  141. samplehc/types/v2/workflow_deploy_response.py +0 -12
  142. samplehc/types/v2/workflow_query_params.py +0 -12
  143. samplehc/types/v2/workflow_query_response.py +0 -8
  144. samplehc/types/v2/workflow_run_get_start_data_response.py +0 -14
  145. samplehc/types/v2/workflow_run_resume_when_complete_params.py +0 -14
  146. samplehc/types/v2/workflow_run_resume_when_complete_response.py +0 -12
  147. samplehc/types/v2/workflow_run_retrieve_response.py +0 -16
  148. samplehc/types/v2/workflow_runs/__init__.py +0 -5
  149. samplehc/types/v2/workflow_runs/step_get_output_response.py +0 -14
  150. samplehc/types/v2/workflow_start_params.py +0 -25
  151. samplehc/types/v2/workflow_start_response.py +0 -25
  152. samplehc-0.17.0.dist-info/RECORD +0 -226
  153. {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/WHEEL +0 -0
  154. {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,377 +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
- body: The workflow input data. Format depends on X-Sample-Start-Data-Parse-Method
139
- header: If 'standard' (default), wrap your data in a 'startData' key: {
140
- "startData": { ... } }. If 'top-level', provide your data directly at the root
141
- level: { ... }. For multipart/form-data requests, include fields and files
142
- directly in the form data.
143
-
144
- extra_headers: Send extra headers
145
-
146
- extra_query: Add additional query parameters to the request
147
-
148
- extra_body: Add additional JSON properties to the request
149
-
150
- timeout: Override the client-level default timeout for this request, in seconds
151
- """
152
- if not workflow_slug:
153
- raise ValueError(f"Expected a non-empty value for `workflow_slug` but received {workflow_slug!r}")
154
- extra_headers = {
155
- **strip_not_given(
156
- {
157
- "X-Sample-Start-Data-Parse-Method": str(x_sample_start_data_parse_method)
158
- if is_given(x_sample_start_data_parse_method)
159
- else not_given
160
- }
161
- ),
162
- **(extra_headers or {}),
163
- }
164
- return self._post(
165
- f"/api/v2/workflows/{workflow_slug}/start",
166
- body=maybe_transform(body, workflow_start_params.WorkflowStartParams),
167
- options=make_request_options(
168
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
169
- ),
170
- cast_to=WorkflowStartResponse,
171
- )
172
-
173
-
174
- class AsyncWorkflowsResource(AsyncAPIResource):
175
- @cached_property
176
- def with_raw_response(self) -> AsyncWorkflowsResourceWithRawResponse:
177
- """
178
- This property can be used as a prefix for any HTTP method call to return
179
- the raw response object instead of the parsed content.
180
-
181
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
182
- """
183
- return AsyncWorkflowsResourceWithRawResponse(self)
184
-
185
- @cached_property
186
- def with_streaming_response(self) -> AsyncWorkflowsResourceWithStreamingResponse:
187
- """
188
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
189
-
190
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
191
- """
192
- return AsyncWorkflowsResourceWithStreamingResponse(self)
193
-
194
- async def deploy(
195
- self,
196
- workflow_id: str,
197
- *,
198
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
199
- # The extra values given here take precedence over values defined on the client or passed to this method.
200
- extra_headers: Headers | None = None,
201
- extra_query: Query | None = None,
202
- extra_body: Body | None = None,
203
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
204
- ) -> WorkflowDeployResponse:
205
- """
206
- Creates a new deployment for the specified workflow ID, making the current
207
- version of the workflow live.
208
-
209
- Args:
210
- extra_headers: Send extra headers
211
-
212
- extra_query: Add additional query parameters to the request
213
-
214
- extra_body: Add additional JSON properties to the request
215
-
216
- timeout: Override the client-level default timeout for this request, in seconds
217
- """
218
- if not workflow_id:
219
- raise ValueError(f"Expected a non-empty value for `workflow_id` but received {workflow_id!r}")
220
- return await self._post(
221
- f"/api/v2/workflows/{workflow_id}/deploy",
222
- options=make_request_options(
223
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
224
- ),
225
- cast_to=WorkflowDeployResponse,
226
- )
227
-
228
- async def query(
229
- self,
230
- workflow_slug: str,
231
- *,
232
- query: str,
233
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
234
- # The extra values given here take precedence over values defined on the client or passed to this method.
235
- extra_headers: Headers | None = None,
236
- extra_query: Query | None = None,
237
- extra_body: Body | None = None,
238
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
239
- ) -> WorkflowQueryResponse:
240
- """
241
- Query workflow outputs
242
-
243
- Args:
244
- query: The query to run on the workflow outputs.
245
-
246
- extra_headers: Send extra headers
247
-
248
- extra_query: Add additional query parameters to the request
249
-
250
- extra_body: Add additional JSON properties to the request
251
-
252
- timeout: Override the client-level default timeout for this request, in seconds
253
- """
254
- if not workflow_slug:
255
- raise ValueError(f"Expected a non-empty value for `workflow_slug` but received {workflow_slug!r}")
256
- return await self._post(
257
- f"/api/v2/workflows/{workflow_slug}/query",
258
- body=await async_maybe_transform({"query": query}, workflow_query_params.WorkflowQueryParams),
259
- options=make_request_options(
260
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
261
- ),
262
- cast_to=WorkflowQueryResponse,
263
- )
264
-
265
- async def start(
266
- self,
267
- workflow_slug: str,
268
- *,
269
- body: object | Omit = omit,
270
- x_sample_start_data_parse_method: Literal["standard", "top-level"] | Omit = omit,
271
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
272
- # The extra values given here take precedence over values defined on the client or passed to this method.
273
- extra_headers: Headers | None = None,
274
- extra_query: Query | None = None,
275
- extra_body: Body | None = None,
276
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
277
- ) -> WorkflowStartResponse:
278
- """Initiates a workflow run based on its slug.
279
-
280
- Accepts JSON or multipart/form-data
281
- for input.
282
-
283
- Args:
284
- body: The workflow input data. Format depends on X-Sample-Start-Data-Parse-Method
285
- header: If 'standard' (default), wrap your data in a 'startData' key: {
286
- "startData": { ... } }. If 'top-level', provide your data directly at the root
287
- level: { ... }. For multipart/form-data requests, include fields and files
288
- directly in the form data.
289
-
290
- extra_headers: Send extra headers
291
-
292
- extra_query: Add additional query parameters to the request
293
-
294
- extra_body: Add additional JSON properties to the request
295
-
296
- timeout: Override the client-level default timeout for this request, in seconds
297
- """
298
- if not workflow_slug:
299
- raise ValueError(f"Expected a non-empty value for `workflow_slug` but received {workflow_slug!r}")
300
- extra_headers = {
301
- **strip_not_given(
302
- {
303
- "X-Sample-Start-Data-Parse-Method": str(x_sample_start_data_parse_method)
304
- if is_given(x_sample_start_data_parse_method)
305
- else not_given
306
- }
307
- ),
308
- **(extra_headers or {}),
309
- }
310
- return await self._post(
311
- f"/api/v2/workflows/{workflow_slug}/start",
312
- body=await async_maybe_transform(body, workflow_start_params.WorkflowStartParams),
313
- options=make_request_options(
314
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
315
- ),
316
- cast_to=WorkflowStartResponse,
317
- )
318
-
319
-
320
- class WorkflowsResourceWithRawResponse:
321
- def __init__(self, workflows: WorkflowsResource) -> None:
322
- self._workflows = workflows
323
-
324
- self.deploy = to_raw_response_wrapper(
325
- workflows.deploy,
326
- )
327
- self.query = to_raw_response_wrapper(
328
- workflows.query,
329
- )
330
- self.start = to_raw_response_wrapper(
331
- workflows.start,
332
- )
333
-
334
-
335
- class AsyncWorkflowsResourceWithRawResponse:
336
- def __init__(self, workflows: AsyncWorkflowsResource) -> None:
337
- self._workflows = workflows
338
-
339
- self.deploy = async_to_raw_response_wrapper(
340
- workflows.deploy,
341
- )
342
- self.query = async_to_raw_response_wrapper(
343
- workflows.query,
344
- )
345
- self.start = async_to_raw_response_wrapper(
346
- workflows.start,
347
- )
348
-
349
-
350
- class WorkflowsResourceWithStreamingResponse:
351
- def __init__(self, workflows: WorkflowsResource) -> None:
352
- self._workflows = workflows
353
-
354
- self.deploy = to_streamed_response_wrapper(
355
- workflows.deploy,
356
- )
357
- self.query = to_streamed_response_wrapper(
358
- workflows.query,
359
- )
360
- self.start = to_streamed_response_wrapper(
361
- workflows.start,
362
- )
363
-
364
-
365
- class AsyncWorkflowsResourceWithStreamingResponse:
366
- def __init__(self, workflows: AsyncWorkflowsResource) -> None:
367
- self._workflows = workflows
368
-
369
- self.deploy = async_to_streamed_response_wrapper(
370
- workflows.deploy,
371
- )
372
- self.query = async_to_streamed_response_wrapper(
373
- workflows.query,
374
- )
375
- self.start = async_to_streamed_response_wrapper(
376
- workflows.start,
377
- )
@@ -1,3 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
@@ -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