samplehc 0.10.0__py3-none-any.whl → 0.12.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. samplehc/__init__.py +3 -1
  2. samplehc/_base_client.py +12 -12
  3. samplehc/_client.py +8 -8
  4. samplehc/_compat.py +48 -48
  5. samplehc/_models.py +50 -44
  6. samplehc/_qs.py +7 -7
  7. samplehc/_types.py +53 -12
  8. samplehc/_utils/__init__.py +9 -2
  9. samplehc/_utils/_compat.py +45 -0
  10. samplehc/_utils/_datetime_parse.py +136 -0
  11. samplehc/_utils/_transform.py +13 -3
  12. samplehc/_utils/_typing.py +6 -1
  13. samplehc/_utils/_utils.py +4 -5
  14. samplehc/_version.py +1 -1
  15. samplehc/resources/v1/v1.py +9 -9
  16. samplehc/resources/v2/async_results.py +13 -13
  17. samplehc/resources/v2/browser_agents/__init__.py +33 -0
  18. samplehc/resources/v2/{browser_agents.py → browser_agents/browser_agents.py} +44 -12
  19. samplehc/resources/v2/browser_agents/runs/__init__.py +33 -0
  20. samplehc/resources/v2/browser_agents/runs/help_requests.py +191 -0
  21. samplehc/resources/v2/browser_agents/runs/runs.py +102 -0
  22. samplehc/resources/v2/browser_automation/availity.py +3 -3
  23. samplehc/resources/v2/clearinghouse/claim.py +29 -29
  24. samplehc/resources/v2/clearinghouse/clearinghouse.py +36 -36
  25. samplehc/resources/v2/clearinghouse/payers.py +5 -5
  26. samplehc/resources/v2/communication.py +29 -29
  27. samplehc/resources/v2/database.py +5 -5
  28. samplehc/resources/v2/documents/documents.py +152 -37
  29. samplehc/resources/v2/documents/formats.py +3 -3
  30. samplehc/resources/v2/documents/legacy.py +91 -6
  31. samplehc/resources/v2/documents/pdf_template.py +3 -3
  32. samplehc/resources/v2/documents/templates.py +27 -27
  33. samplehc/resources/v2/{events/events.py → events.py} +14 -46
  34. samplehc/resources/v2/hie/adt.py +7 -7
  35. samplehc/resources/v2/hie/documents.py +15 -15
  36. samplehc/resources/v2/integrations/__init__.py +28 -0
  37. samplehc/resources/v2/integrations/bank/transactions.py +5 -5
  38. samplehc/resources/v2/integrations/careviso.py +36 -36
  39. samplehc/resources/v2/integrations/glidian/glidian.py +13 -13
  40. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +5 -5
  41. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +19 -19
  42. samplehc/resources/v2/integrations/integrations.py +64 -0
  43. samplehc/resources/v2/integrations/kno2/messages.py +5 -5
  44. samplehc/resources/v2/integrations/salesforce.py +193 -0
  45. samplehc/resources/v2/integrations/snowflake.py +3 -3
  46. samplehc/resources/v2/{events/integrations → integrations}/xcures.py +13 -13
  47. samplehc/resources/v2/ledger/__init__.py +27 -55
  48. samplehc/resources/v2/ledger/{orders.py → account.py} +123 -86
  49. samplehc/resources/v2/ledger/entry.py +381 -0
  50. samplehc/resources/v2/ledger/ledger.py +38 -1560
  51. samplehc/resources/v2/policies.py +47 -47
  52. samplehc/resources/v2/tasks/state.py +7 -7
  53. samplehc/resources/v2/tasks/tasks.py +15 -15
  54. samplehc/resources/v2/v2.py +16 -16
  55. samplehc/resources/v2/workflow_runs/step.py +3 -3
  56. samplehc/resources/v2/workflow_runs/workflow_runs.py +11 -11
  57. samplehc/resources/v2/workflows.py +13 -13
  58. samplehc/types/v2/__init__.py +1 -28
  59. samplehc/types/v2/browser_agents/runs/__init__.py +6 -0
  60. samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py +18 -0
  61. samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +28 -0
  62. samplehc/types/v2/clearinghouse/claim_submit_params.py +10 -9
  63. samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +3 -2
  64. samplehc/types/v2/clearinghouse_check_eligibility_params.py +2 -2
  65. samplehc/types/v2/communication_send_letter_params.py +4 -3
  66. samplehc/types/v2/document_classify_params.py +3 -2
  67. samplehc/types/v2/document_extract_params.py +4 -1
  68. samplehc/types/v2/document_generate_csv_params.py +3 -2
  69. samplehc/types/v2/document_split_params.py +16 -1
  70. samplehc/types/v2/document_unzip_async_response.py +12 -0
  71. samplehc/types/v2/documents/__init__.py +2 -0
  72. samplehc/types/v2/documents/legacy_extract_params.py +8 -7
  73. samplehc/types/v2/documents/legacy_split_params.py +20 -0
  74. samplehc/types/v2/documents/legacy_split_response.py +12 -0
  75. samplehc/types/v2/documents/template_render_document_params.py +17 -5
  76. samplehc/types/v2/integrations/__init__.py +2 -0
  77. samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +6 -5
  78. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +3 -2
  79. samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +22 -0
  80. samplehc/types/v2/ledger/__init__.py +6 -17
  81. samplehc/types/v2/ledger/account_writeoff_params.py +23 -0
  82. samplehc/types/v2/ledger/account_writeoff_response.py +12 -0
  83. samplehc/types/v2/ledger/entry_post_params.py +60 -0
  84. samplehc/types/v2/ledger/entry_post_response.py +10 -0
  85. samplehc/types/v2/ledger/entry_reverse_params.py +18 -0
  86. samplehc/types/v2/ledger/entry_reverse_response.py +10 -0
  87. {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/METADATA +1 -1
  88. {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/RECORD +92 -111
  89. samplehc/resources/v2/events/__init__.py +0 -33
  90. samplehc/resources/v2/events/integrations/__init__.py +0 -33
  91. samplehc/resources/v2/events/integrations/integrations.py +0 -102
  92. samplehc/resources/v2/ledger/institutions/__init__.py +0 -33
  93. samplehc/resources/v2/ledger/institutions/institutions.py +0 -258
  94. samplehc/resources/v2/ledger/institutions/orders.py +0 -169
  95. samplehc/resources/v2/ledger/insurance.py +0 -141
  96. samplehc/resources/v2/ledger/patients.py +0 -141
  97. samplehc/types/v2/events/integrations/__init__.py +0 -5
  98. samplehc/types/v2/ledger/institution_list_outstanding_accounts_response.py +0 -25
  99. samplehc/types/v2/ledger/institution_retrieve_outstanding_orders_response.py +0 -25
  100. samplehc/types/v2/ledger/institutions/__init__.py +0 -5
  101. samplehc/types/v2/ledger/institutions/order_retrieve_balance_response.py +0 -12
  102. samplehc/types/v2/ledger/insurance_list_outstanding_accounts_response.py +0 -25
  103. samplehc/types/v2/ledger/order_retrieve_balances_response.py +0 -31
  104. samplehc/types/v2/ledger/order_retrieve_batch_balances_params.py +0 -15
  105. samplehc/types/v2/ledger/order_retrieve_batch_balances_response.py +0 -38
  106. samplehc/types/v2/ledger/patient_list_outstanding_accounts_response.py +0 -22
  107. samplehc/types/v2/ledger_assign_invoice_params.py +0 -34
  108. samplehc/types/v2/ledger_assign_invoice_response.py +0 -12
  109. samplehc/types/v2/ledger_claim_adjustment_params.py +0 -34
  110. samplehc/types/v2/ledger_claim_adjustment_response.py +0 -12
  111. samplehc/types/v2/ledger_claim_payment_params.py +0 -34
  112. samplehc/types/v2/ledger_claim_payment_response.py +0 -12
  113. samplehc/types/v2/ledger_institution_adjustment_params.py +0 -31
  114. samplehc/types/v2/ledger_institution_adjustment_response.py +0 -12
  115. samplehc/types/v2/ledger_institution_payment_params.py +0 -31
  116. samplehc/types/v2/ledger_institution_payment_response.py +0 -12
  117. samplehc/types/v2/ledger_new_order_params.py +0 -22
  118. samplehc/types/v2/ledger_new_order_response.py +0 -12
  119. samplehc/types/v2/ledger_order_writeoff_params.py +0 -28
  120. samplehc/types/v2/ledger_order_writeoff_response.py +0 -12
  121. samplehc/types/v2/ledger_patient_adjustment_params.py +0 -31
  122. samplehc/types/v2/ledger_patient_adjustment_response.py +0 -12
  123. samplehc/types/v2/ledger_patient_payment_params.py +0 -28
  124. samplehc/types/v2/ledger_patient_payment_response.py +0 -12
  125. samplehc/types/v2/ledger_post_remittance_accepted_params.py +0 -37
  126. samplehc/types/v2/ledger_post_remittance_accepted_response.py +0 -12
  127. samplehc/types/v2/ledger_reverse_entry_params.py +0 -12
  128. samplehc/types/v2/ledger_reverse_entry_response.py +0 -12
  129. /samplehc/types/v2/{events → browser_agents}/__init__.py +0 -0
  130. /samplehc/types/v2/{events/integrations → integrations}/xcure_make_request_params.py +0 -0
  131. {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/WHEEL +0 -0
  132. {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/licenses/LICENSE +0 -0
@@ -6,24 +6,36 @@ from typing import Dict
6
6
 
7
7
  import httpx
8
8
 
9
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
- from ..._utils import maybe_transform, async_maybe_transform
11
- from ..._compat import cached_property
12
- from ...types.v2 import browser_agent_invoke_params
13
- from ..._resource import SyncAPIResource, AsyncAPIResource
14
- from ..._response import (
9
+ from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10
+ from ...._utils import maybe_transform, async_maybe_transform
11
+ from .runs.runs import (
12
+ RunsResource,
13
+ AsyncRunsResource,
14
+ RunsResourceWithRawResponse,
15
+ AsyncRunsResourceWithRawResponse,
16
+ RunsResourceWithStreamingResponse,
17
+ AsyncRunsResourceWithStreamingResponse,
18
+ )
19
+ from ...._compat import cached_property
20
+ from ....types.v2 import browser_agent_invoke_params
21
+ from ...._resource import SyncAPIResource, AsyncAPIResource
22
+ from ...._response import (
15
23
  to_raw_response_wrapper,
16
24
  to_streamed_response_wrapper,
17
25
  async_to_raw_response_wrapper,
18
26
  async_to_streamed_response_wrapper,
19
27
  )
20
- from ..._base_client import make_request_options
21
- from ...types.v2.browser_agent_invoke_response import BrowserAgentInvokeResponse
28
+ from ...._base_client import make_request_options
29
+ from ....types.v2.browser_agent_invoke_response import BrowserAgentInvokeResponse
22
30
 
23
31
  __all__ = ["BrowserAgentsResource", "AsyncBrowserAgentsResource"]
24
32
 
25
33
 
26
34
  class BrowserAgentsResource(SyncAPIResource):
35
+ @cached_property
36
+ def runs(self) -> RunsResource:
37
+ return RunsResource(self._client)
38
+
27
39
  @cached_property
28
40
  def with_raw_response(self) -> BrowserAgentsResourceWithRawResponse:
29
41
  """
@@ -47,13 +59,13 @@ class BrowserAgentsResource(SyncAPIResource):
47
59
  self,
48
60
  slug: str,
49
61
  *,
50
- variables: Dict[str, object] | NotGiven = NOT_GIVEN,
62
+ variables: Dict[str, object] | Omit = omit,
51
63
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52
64
  # The extra values given here take precedence over values defined on the client or passed to this method.
53
65
  extra_headers: Headers | None = None,
54
66
  extra_query: Query | None = None,
55
67
  extra_body: Body | None = None,
56
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
68
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
57
69
  ) -> BrowserAgentInvokeResponse:
58
70
  """
59
71
  Start execution of a browser agent with optional variables.
@@ -82,6 +94,10 @@ class BrowserAgentsResource(SyncAPIResource):
82
94
 
83
95
 
84
96
  class AsyncBrowserAgentsResource(AsyncAPIResource):
97
+ @cached_property
98
+ def runs(self) -> AsyncRunsResource:
99
+ return AsyncRunsResource(self._client)
100
+
85
101
  @cached_property
86
102
  def with_raw_response(self) -> AsyncBrowserAgentsResourceWithRawResponse:
87
103
  """
@@ -105,13 +121,13 @@ class AsyncBrowserAgentsResource(AsyncAPIResource):
105
121
  self,
106
122
  slug: str,
107
123
  *,
108
- variables: Dict[str, object] | NotGiven = NOT_GIVEN,
124
+ variables: Dict[str, object] | Omit = omit,
109
125
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
110
126
  # The extra values given here take precedence over values defined on the client or passed to this method.
111
127
  extra_headers: Headers | None = None,
112
128
  extra_query: Query | None = None,
113
129
  extra_body: Body | None = None,
114
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
130
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
115
131
  ) -> BrowserAgentInvokeResponse:
116
132
  """
117
133
  Start execution of a browser agent with optional variables.
@@ -149,6 +165,10 @@ class BrowserAgentsResourceWithRawResponse:
149
165
  browser_agents.invoke,
150
166
  )
151
167
 
168
+ @cached_property
169
+ def runs(self) -> RunsResourceWithRawResponse:
170
+ return RunsResourceWithRawResponse(self._browser_agents.runs)
171
+
152
172
 
153
173
  class AsyncBrowserAgentsResourceWithRawResponse:
154
174
  def __init__(self, browser_agents: AsyncBrowserAgentsResource) -> None:
@@ -158,6 +178,10 @@ class AsyncBrowserAgentsResourceWithRawResponse:
158
178
  browser_agents.invoke,
159
179
  )
160
180
 
181
+ @cached_property
182
+ def runs(self) -> AsyncRunsResourceWithRawResponse:
183
+ return AsyncRunsResourceWithRawResponse(self._browser_agents.runs)
184
+
161
185
 
162
186
  class BrowserAgentsResourceWithStreamingResponse:
163
187
  def __init__(self, browser_agents: BrowserAgentsResource) -> None:
@@ -167,6 +191,10 @@ class BrowserAgentsResourceWithStreamingResponse:
167
191
  browser_agents.invoke,
168
192
  )
169
193
 
194
+ @cached_property
195
+ def runs(self) -> RunsResourceWithStreamingResponse:
196
+ return RunsResourceWithStreamingResponse(self._browser_agents.runs)
197
+
170
198
 
171
199
  class AsyncBrowserAgentsResourceWithStreamingResponse:
172
200
  def __init__(self, browser_agents: AsyncBrowserAgentsResource) -> None:
@@ -175,3 +203,7 @@ class AsyncBrowserAgentsResourceWithStreamingResponse:
175
203
  self.invoke = async_to_streamed_response_wrapper(
176
204
  browser_agents.invoke,
177
205
  )
206
+
207
+ @cached_property
208
+ def runs(self) -> AsyncRunsResourceWithStreamingResponse:
209
+ return AsyncRunsResourceWithStreamingResponse(self._browser_agents.runs)
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .runs import (
4
+ RunsResource,
5
+ AsyncRunsResource,
6
+ RunsResourceWithRawResponse,
7
+ AsyncRunsResourceWithRawResponse,
8
+ RunsResourceWithStreamingResponse,
9
+ AsyncRunsResourceWithStreamingResponse,
10
+ )
11
+ from .help_requests import (
12
+ HelpRequestsResource,
13
+ AsyncHelpRequestsResource,
14
+ HelpRequestsResourceWithRawResponse,
15
+ AsyncHelpRequestsResourceWithRawResponse,
16
+ HelpRequestsResourceWithStreamingResponse,
17
+ AsyncHelpRequestsResourceWithStreamingResponse,
18
+ )
19
+
20
+ __all__ = [
21
+ "HelpRequestsResource",
22
+ "AsyncHelpRequestsResource",
23
+ "HelpRequestsResourceWithRawResponse",
24
+ "AsyncHelpRequestsResourceWithRawResponse",
25
+ "HelpRequestsResourceWithStreamingResponse",
26
+ "AsyncHelpRequestsResourceWithStreamingResponse",
27
+ "RunsResource",
28
+ "AsyncRunsResource",
29
+ "RunsResourceWithRawResponse",
30
+ "AsyncRunsResourceWithRawResponse",
31
+ "RunsResourceWithStreamingResponse",
32
+ "AsyncRunsResourceWithStreamingResponse",
33
+ ]
@@ -0,0 +1,191 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ import httpx
6
+
7
+ from ....._types import Body, Query, Headers, NotGiven, not_given
8
+ from ....._utils import maybe_transform, async_maybe_transform
9
+ from ....._compat import cached_property
10
+ from ....._resource import SyncAPIResource, AsyncAPIResource
11
+ from ....._response import (
12
+ to_raw_response_wrapper,
13
+ to_streamed_response_wrapper,
14
+ async_to_raw_response_wrapper,
15
+ async_to_streamed_response_wrapper,
16
+ )
17
+ from ....._base_client import make_request_options
18
+ from .....types.v2.browser_agents.runs import help_request_resolve_params
19
+ from .....types.v2.browser_agents.runs.help_request_resolve_response import HelpRequestResolveResponse
20
+
21
+ __all__ = ["HelpRequestsResource", "AsyncHelpRequestsResource"]
22
+
23
+
24
+ class HelpRequestsResource(SyncAPIResource):
25
+ @cached_property
26
+ def with_raw_response(self) -> HelpRequestsResourceWithRawResponse:
27
+ """
28
+ This property can be used as a prefix for any HTTP method call to return
29
+ the raw response object instead of the parsed content.
30
+
31
+ For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
32
+ """
33
+ return HelpRequestsResourceWithRawResponse(self)
34
+
35
+ @cached_property
36
+ def with_streaming_response(self) -> HelpRequestsResourceWithStreamingResponse:
37
+ """
38
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
39
+
40
+ For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
41
+ """
42
+ return HelpRequestsResourceWithStreamingResponse(self)
43
+
44
+ def resolve(
45
+ self,
46
+ help_request_id: str,
47
+ *,
48
+ slug: str,
49
+ browser_agent_run_id: str,
50
+ resolution: str,
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
+ ) -> HelpRequestResolveResponse:
58
+ """
59
+ Update the resolution and resolvedAt for a help request on a browser agent run.
60
+
61
+ Args:
62
+ resolution: Resolution details for the help request
63
+
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 slug:
73
+ raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
74
+ if not browser_agent_run_id:
75
+ raise ValueError(
76
+ f"Expected a non-empty value for `browser_agent_run_id` but received {browser_agent_run_id!r}"
77
+ )
78
+ if not help_request_id:
79
+ raise ValueError(f"Expected a non-empty value for `help_request_id` but received {help_request_id!r}")
80
+ return self._patch(
81
+ f"/api/v2/browser-agents/{slug}/runs/{browser_agent_run_id}/help-requests/{help_request_id}/resolution",
82
+ body=maybe_transform({"resolution": resolution}, help_request_resolve_params.HelpRequestResolveParams),
83
+ options=make_request_options(
84
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
85
+ ),
86
+ cast_to=HelpRequestResolveResponse,
87
+ )
88
+
89
+
90
+ class AsyncHelpRequestsResource(AsyncAPIResource):
91
+ @cached_property
92
+ def with_raw_response(self) -> AsyncHelpRequestsResourceWithRawResponse:
93
+ """
94
+ This property can be used as a prefix for any HTTP method call to return
95
+ the raw response object instead of the parsed content.
96
+
97
+ For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
98
+ """
99
+ return AsyncHelpRequestsResourceWithRawResponse(self)
100
+
101
+ @cached_property
102
+ def with_streaming_response(self) -> AsyncHelpRequestsResourceWithStreamingResponse:
103
+ """
104
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
105
+
106
+ For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
107
+ """
108
+ return AsyncHelpRequestsResourceWithStreamingResponse(self)
109
+
110
+ async def resolve(
111
+ self,
112
+ help_request_id: str,
113
+ *,
114
+ slug: str,
115
+ browser_agent_run_id: str,
116
+ resolution: str,
117
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
118
+ # The extra values given here take precedence over values defined on the client or passed to this method.
119
+ extra_headers: Headers | None = None,
120
+ extra_query: Query | None = None,
121
+ extra_body: Body | None = None,
122
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
123
+ ) -> HelpRequestResolveResponse:
124
+ """
125
+ Update the resolution and resolvedAt for a help request on a browser agent run.
126
+
127
+ Args:
128
+ resolution: Resolution details for the help request
129
+
130
+ extra_headers: Send extra headers
131
+
132
+ extra_query: Add additional query parameters to the request
133
+
134
+ extra_body: Add additional JSON properties to the request
135
+
136
+ timeout: Override the client-level default timeout for this request, in seconds
137
+ """
138
+ if not slug:
139
+ raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
140
+ if not browser_agent_run_id:
141
+ raise ValueError(
142
+ f"Expected a non-empty value for `browser_agent_run_id` but received {browser_agent_run_id!r}"
143
+ )
144
+ if not help_request_id:
145
+ raise ValueError(f"Expected a non-empty value for `help_request_id` but received {help_request_id!r}")
146
+ return await self._patch(
147
+ f"/api/v2/browser-agents/{slug}/runs/{browser_agent_run_id}/help-requests/{help_request_id}/resolution",
148
+ body=await async_maybe_transform(
149
+ {"resolution": resolution}, help_request_resolve_params.HelpRequestResolveParams
150
+ ),
151
+ options=make_request_options(
152
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
153
+ ),
154
+ cast_to=HelpRequestResolveResponse,
155
+ )
156
+
157
+
158
+ class HelpRequestsResourceWithRawResponse:
159
+ def __init__(self, help_requests: HelpRequestsResource) -> None:
160
+ self._help_requests = help_requests
161
+
162
+ self.resolve = to_raw_response_wrapper(
163
+ help_requests.resolve,
164
+ )
165
+
166
+
167
+ class AsyncHelpRequestsResourceWithRawResponse:
168
+ def __init__(self, help_requests: AsyncHelpRequestsResource) -> None:
169
+ self._help_requests = help_requests
170
+
171
+ self.resolve = async_to_raw_response_wrapper(
172
+ help_requests.resolve,
173
+ )
174
+
175
+
176
+ class HelpRequestsResourceWithStreamingResponse:
177
+ def __init__(self, help_requests: HelpRequestsResource) -> None:
178
+ self._help_requests = help_requests
179
+
180
+ self.resolve = to_streamed_response_wrapper(
181
+ help_requests.resolve,
182
+ )
183
+
184
+
185
+ class AsyncHelpRequestsResourceWithStreamingResponse:
186
+ def __init__(self, help_requests: AsyncHelpRequestsResource) -> None:
187
+ self._help_requests = help_requests
188
+
189
+ self.resolve = async_to_streamed_response_wrapper(
190
+ help_requests.resolve,
191
+ )
@@ -0,0 +1,102 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from ....._compat import cached_property
6
+ from ....._resource import SyncAPIResource, AsyncAPIResource
7
+ from .help_requests import (
8
+ HelpRequestsResource,
9
+ AsyncHelpRequestsResource,
10
+ HelpRequestsResourceWithRawResponse,
11
+ AsyncHelpRequestsResourceWithRawResponse,
12
+ HelpRequestsResourceWithStreamingResponse,
13
+ AsyncHelpRequestsResourceWithStreamingResponse,
14
+ )
15
+
16
+ __all__ = ["RunsResource", "AsyncRunsResource"]
17
+
18
+
19
+ class RunsResource(SyncAPIResource):
20
+ @cached_property
21
+ def help_requests(self) -> HelpRequestsResource:
22
+ return HelpRequestsResource(self._client)
23
+
24
+ @cached_property
25
+ def with_raw_response(self) -> RunsResourceWithRawResponse:
26
+ """
27
+ This property can be used as a prefix for any HTTP method call to return
28
+ the raw response object instead of the parsed content.
29
+
30
+ For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
31
+ """
32
+ return RunsResourceWithRawResponse(self)
33
+
34
+ @cached_property
35
+ def with_streaming_response(self) -> RunsResourceWithStreamingResponse:
36
+ """
37
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38
+
39
+ For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
40
+ """
41
+ return RunsResourceWithStreamingResponse(self)
42
+
43
+
44
+ class AsyncRunsResource(AsyncAPIResource):
45
+ @cached_property
46
+ def help_requests(self) -> AsyncHelpRequestsResource:
47
+ return AsyncHelpRequestsResource(self._client)
48
+
49
+ @cached_property
50
+ def with_raw_response(self) -> AsyncRunsResourceWithRawResponse:
51
+ """
52
+ This property can be used as a prefix for any HTTP method call to return
53
+ the raw response object instead of the parsed content.
54
+
55
+ For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
56
+ """
57
+ return AsyncRunsResourceWithRawResponse(self)
58
+
59
+ @cached_property
60
+ def with_streaming_response(self) -> AsyncRunsResourceWithStreamingResponse:
61
+ """
62
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63
+
64
+ For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
65
+ """
66
+ return AsyncRunsResourceWithStreamingResponse(self)
67
+
68
+
69
+ class RunsResourceWithRawResponse:
70
+ def __init__(self, runs: RunsResource) -> None:
71
+ self._runs = runs
72
+
73
+ @cached_property
74
+ def help_requests(self) -> HelpRequestsResourceWithRawResponse:
75
+ return HelpRequestsResourceWithRawResponse(self._runs.help_requests)
76
+
77
+
78
+ class AsyncRunsResourceWithRawResponse:
79
+ def __init__(self, runs: AsyncRunsResource) -> None:
80
+ self._runs = runs
81
+
82
+ @cached_property
83
+ def help_requests(self) -> AsyncHelpRequestsResourceWithRawResponse:
84
+ return AsyncHelpRequestsResourceWithRawResponse(self._runs.help_requests)
85
+
86
+
87
+ class RunsResourceWithStreamingResponse:
88
+ def __init__(self, runs: RunsResource) -> None:
89
+ self._runs = runs
90
+
91
+ @cached_property
92
+ def help_requests(self) -> HelpRequestsResourceWithStreamingResponse:
93
+ return HelpRequestsResourceWithStreamingResponse(self._runs.help_requests)
94
+
95
+
96
+ class AsyncRunsResourceWithStreamingResponse:
97
+ def __init__(self, runs: AsyncRunsResource) -> None:
98
+ self._runs = runs
99
+
100
+ @cached_property
101
+ def help_requests(self) -> AsyncHelpRequestsResourceWithStreamingResponse:
102
+ return AsyncHelpRequestsResourceWithStreamingResponse(self._runs.help_requests)
@@ -6,7 +6,7 @@ from typing_extensions import Literal
6
6
 
7
7
  import httpx
8
8
 
9
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
9
+ from ...._types import Body, Query, Headers, NotGiven, not_given
10
10
  from ...._utils import maybe_transform, async_maybe_transform
11
11
  from ...._compat import cached_property
12
12
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -75,7 +75,7 @@ class AvailityResource(SyncAPIResource):
75
75
  extra_headers: Headers | None = None,
76
76
  extra_query: Query | None = None,
77
77
  extra_body: Body | None = None,
78
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
78
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
79
79
  ) -> AvailitySubmitAppealResponse:
80
80
  """Initiates an asynchronous process to submit an appeal to Availity.
81
81
 
@@ -170,7 +170,7 @@ class AsyncAvailityResource(AsyncAPIResource):
170
170
  extra_headers: Headers | None = None,
171
171
  extra_query: Query | None = None,
172
172
  extra_body: Body | None = None,
173
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
173
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
174
174
  ) -> AvailitySubmitAppealResponse:
175
175
  """Initiates an asynchronous process to submit an appeal to Availity.
176
176
 
@@ -6,7 +6,7 @@ from typing import Iterable
6
6
 
7
7
  import httpx
8
8
 
9
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
9
+ from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10
10
  from ...._utils import maybe_transform, async_maybe_transform
11
11
  from ...._compat import cached_property
12
12
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -52,7 +52,7 @@ class ClaimResource(SyncAPIResource):
52
52
  extra_headers: Headers | None = None,
53
53
  extra_query: Query | None = None,
54
54
  extra_body: Body | None = None,
55
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
55
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
56
56
  ) -> object:
57
57
  """
58
58
  Voids a previously submitted claim by submitting a new claim with
@@ -86,7 +86,7 @@ class ClaimResource(SyncAPIResource):
86
86
  extra_headers: Headers | None = None,
87
87
  extra_query: Query | None = None,
88
88
  extra_body: Body | None = None,
89
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
89
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
90
90
  ) -> object:
91
91
  """
92
92
  Retrieves the status and details of a submitted claim by its ID.
@@ -120,23 +120,23 @@ class ClaimResource(SyncAPIResource):
120
120
  submitter: claim_submit_params.Submitter,
121
121
  subscriber: claim_submit_params.Subscriber,
122
122
  trading_partner_service_id: str,
123
- control_number: str | NotGiven = NOT_GIVEN,
124
- dependent: claim_submit_params.Dependent | NotGiven = NOT_GIVEN,
125
- ordering: claim_submit_params.Ordering | NotGiven = NOT_GIVEN,
126
- payer_address: claim_submit_params.PayerAddress | NotGiven = NOT_GIVEN,
127
- pay_to_address: claim_submit_params.PayToAddress | NotGiven = NOT_GIVEN,
128
- pay_to_plan: claim_submit_params.PayToPlan | NotGiven = NOT_GIVEN,
129
- providers: Iterable[claim_submit_params.Provider] | NotGiven = NOT_GIVEN,
130
- referring: claim_submit_params.Referring | NotGiven = NOT_GIVEN,
131
- rendering: claim_submit_params.Rendering | NotGiven = NOT_GIVEN,
132
- supervising: claim_submit_params.Supervising | NotGiven = NOT_GIVEN,
133
- trading_partner_name: str | NotGiven = NOT_GIVEN,
123
+ control_number: str | Omit = omit,
124
+ dependent: claim_submit_params.Dependent | Omit = omit,
125
+ ordering: claim_submit_params.Ordering | Omit = omit,
126
+ payer_address: claim_submit_params.PayerAddress | Omit = omit,
127
+ pay_to_address: claim_submit_params.PayToAddress | Omit = omit,
128
+ pay_to_plan: claim_submit_params.PayToPlan | Omit = omit,
129
+ providers: Iterable[claim_submit_params.Provider] | Omit = omit,
130
+ referring: claim_submit_params.Referring | Omit = omit,
131
+ rendering: claim_submit_params.Rendering | Omit = omit,
132
+ supervising: claim_submit_params.Supervising | Omit = omit,
133
+ trading_partner_name: str | Omit = omit,
134
134
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
135
135
  # The extra values given here take precedence over values defined on the client or passed to this method.
136
136
  extra_headers: Headers | None = None,
137
137
  extra_query: Query | None = None,
138
138
  extra_body: Body | None = None,
139
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
139
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
140
140
  ) -> ClaimSubmitResponse:
141
141
  """Submits an electronic claim for processing.
142
142
 
@@ -214,7 +214,7 @@ class AsyncClaimResource(AsyncAPIResource):
214
214
  extra_headers: Headers | None = None,
215
215
  extra_query: Query | None = None,
216
216
  extra_body: Body | None = None,
217
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
217
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
218
218
  ) -> object:
219
219
  """
220
220
  Voids a previously submitted claim by submitting a new claim with
@@ -248,7 +248,7 @@ class AsyncClaimResource(AsyncAPIResource):
248
248
  extra_headers: Headers | None = None,
249
249
  extra_query: Query | None = None,
250
250
  extra_body: Body | None = None,
251
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
251
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
252
252
  ) -> object:
253
253
  """
254
254
  Retrieves the status and details of a submitted claim by its ID.
@@ -282,23 +282,23 @@ class AsyncClaimResource(AsyncAPIResource):
282
282
  submitter: claim_submit_params.Submitter,
283
283
  subscriber: claim_submit_params.Subscriber,
284
284
  trading_partner_service_id: str,
285
- control_number: str | NotGiven = NOT_GIVEN,
286
- dependent: claim_submit_params.Dependent | NotGiven = NOT_GIVEN,
287
- ordering: claim_submit_params.Ordering | NotGiven = NOT_GIVEN,
288
- payer_address: claim_submit_params.PayerAddress | NotGiven = NOT_GIVEN,
289
- pay_to_address: claim_submit_params.PayToAddress | NotGiven = NOT_GIVEN,
290
- pay_to_plan: claim_submit_params.PayToPlan | NotGiven = NOT_GIVEN,
291
- providers: Iterable[claim_submit_params.Provider] | NotGiven = NOT_GIVEN,
292
- referring: claim_submit_params.Referring | NotGiven = NOT_GIVEN,
293
- rendering: claim_submit_params.Rendering | NotGiven = NOT_GIVEN,
294
- supervising: claim_submit_params.Supervising | NotGiven = NOT_GIVEN,
295
- trading_partner_name: str | NotGiven = NOT_GIVEN,
285
+ control_number: str | Omit = omit,
286
+ dependent: claim_submit_params.Dependent | Omit = omit,
287
+ ordering: claim_submit_params.Ordering | Omit = omit,
288
+ payer_address: claim_submit_params.PayerAddress | Omit = omit,
289
+ pay_to_address: claim_submit_params.PayToAddress | Omit = omit,
290
+ pay_to_plan: claim_submit_params.PayToPlan | Omit = omit,
291
+ providers: Iterable[claim_submit_params.Provider] | Omit = omit,
292
+ referring: claim_submit_params.Referring | Omit = omit,
293
+ rendering: claim_submit_params.Rendering | Omit = omit,
294
+ supervising: claim_submit_params.Supervising | Omit = omit,
295
+ trading_partner_name: str | Omit = omit,
296
296
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
297
297
  # The extra values given here take precedence over values defined on the client or passed to this method.
298
298
  extra_headers: Headers | None = None,
299
299
  extra_query: Query | None = None,
300
300
  extra_body: Body | None = None,
301
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
301
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
302
302
  ) -> ClaimSubmitResponse:
303
303
  """Submits an electronic claim for processing.
304
304