samplehc 0.11.0__py3-none-any.whl → 0.13.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. samplehc/__init__.py +3 -1
  2. samplehc/_base_client.py +9 -9
  3. samplehc/_client.py +8 -8
  4. samplehc/_models.py +10 -4
  5. samplehc/_qs.py +7 -7
  6. samplehc/_types.py +18 -11
  7. samplehc/_utils/_transform.py +2 -2
  8. samplehc/_utils/_utils.py +4 -4
  9. samplehc/_version.py +1 -1
  10. samplehc/resources/v1/v1.py +9 -9
  11. samplehc/resources/v2/async_results.py +13 -13
  12. samplehc/resources/v2/browser_agents/browser_agents.py +5 -5
  13. samplehc/resources/v2/browser_agents/runs/help_requests.py +3 -3
  14. samplehc/resources/v2/browser_agents/runs/runs.py +131 -0
  15. samplehc/resources/v2/browser_automation/availity.py +3 -3
  16. samplehc/resources/v2/clearinghouse/claim.py +29 -29
  17. samplehc/resources/v2/clearinghouse/clearinghouse.py +33 -33
  18. samplehc/resources/v2/clearinghouse/payers.py +5 -5
  19. samplehc/resources/v2/communication.py +29 -29
  20. samplehc/resources/v2/database.py +5 -5
  21. samplehc/resources/v2/documents/documents.py +152 -37
  22. samplehc/resources/v2/documents/formats.py +3 -3
  23. samplehc/resources/v2/documents/legacy.py +91 -6
  24. samplehc/resources/v2/documents/pdf_template.py +3 -3
  25. samplehc/resources/v2/documents/templates.py +27 -27
  26. samplehc/resources/v2/events.py +7 -7
  27. samplehc/resources/v2/hie/adt.py +7 -7
  28. samplehc/resources/v2/hie/documents.py +15 -15
  29. samplehc/resources/v2/integrations/bank/transactions.py +5 -5
  30. samplehc/resources/v2/integrations/careviso.py +29 -29
  31. samplehc/resources/v2/integrations/glidian/glidian.py +13 -13
  32. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +5 -5
  33. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +19 -19
  34. samplehc/resources/v2/integrations/kno2/messages.py +5 -5
  35. samplehc/resources/v2/integrations/salesforce.py +92 -8
  36. samplehc/resources/v2/integrations/snowflake.py +3 -3
  37. samplehc/resources/v2/integrations/xcures.py +7 -7
  38. samplehc/resources/v2/ledger/account.py +10 -11
  39. samplehc/resources/v2/ledger/entry.py +21 -22
  40. samplehc/resources/v2/policies.py +47 -47
  41. samplehc/resources/v2/tasks/state.py +7 -7
  42. samplehc/resources/v2/tasks/tasks.py +125 -16
  43. samplehc/resources/v2/workflow_runs/step.py +3 -3
  44. samplehc/resources/v2/workflow_runs/workflow_runs.py +11 -11
  45. samplehc/resources/v2/workflows.py +13 -13
  46. samplehc/types/v2/__init__.py +3 -0
  47. samplehc/types/v2/browser_agents/__init__.py +3 -0
  48. samplehc/types/v2/browser_agents/run_list_events_params.py +15 -0
  49. samplehc/types/v2/browser_agents/run_list_events_response.py +30 -0
  50. samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +0 -2
  51. samplehc/types/v2/document_extract_params.py +4 -1
  52. samplehc/types/v2/document_split_params.py +16 -1
  53. samplehc/types/v2/document_unzip_async_response.py +12 -0
  54. samplehc/types/v2/documents/__init__.py +2 -0
  55. samplehc/types/v2/documents/legacy_split_params.py +20 -0
  56. samplehc/types/v2/documents/legacy_split_response.py +12 -0
  57. samplehc/types/v2/documents/template_render_document_params.py +17 -5
  58. samplehc/types/v2/integrations/__init__.py +1 -0
  59. samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +11 -0
  60. samplehc/types/v2/ledger/account_writeoff_params.py +2 -3
  61. samplehc/types/v2/ledger/entry_post_params.py +1 -2
  62. samplehc/types/v2/ledger/entry_reverse_params.py +2 -3
  63. samplehc/types/v2/task_update_column_params.py +16 -0
  64. samplehc/types/v2/task_update_column_response.py +9 -0
  65. {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/METADATA +1 -1
  66. {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/RECORD +68 -60
  67. {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/WHEEL +0 -0
  68. {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/licenses/LICENSE +0 -0
@@ -7,7 +7,7 @@ from typing_extensions import Literal
7
7
 
8
8
  import httpx
9
9
 
10
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
10
+ from ...._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
11
11
  from ...._utils import maybe_transform, async_maybe_transform
12
12
  from ...._compat import cached_property
13
13
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -52,7 +52,7 @@ class CarevisoResource(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
  ) -> CarevisoGetPayersResponse:
57
57
  """Get a list of Careviso payers."""
58
58
  return self._get(
@@ -88,24 +88,24 @@ class CarevisoResource(SyncAPIResource):
88
88
  provider_phone: str,
89
89
  service_date: str,
90
90
  test_names: SequenceNotStr[str],
91
- accession_date: str | NotGiven = NOT_GIVEN,
92
- collection_date: str | NotGiven = NOT_GIVEN,
93
- collection_type: str | NotGiven = NOT_GIVEN,
94
- insurance_id: str | NotGiven = NOT_GIVEN,
95
- patient_city: str | NotGiven = NOT_GIVEN,
96
- patient_gender: Literal["M", "F", "Non-binary", "Non-specified"] | NotGiven = NOT_GIVEN,
97
- patient_state: str | NotGiven = NOT_GIVEN,
98
- patient_street: str | NotGiven = NOT_GIVEN,
99
- patient_street2: str | NotGiven = NOT_GIVEN,
100
- patient_zip: str | NotGiven = NOT_GIVEN,
101
- test_identifiers: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
102
- test_type: str | NotGiven = NOT_GIVEN,
91
+ accession_date: str | Omit = omit,
92
+ collection_date: str | Omit = omit,
93
+ collection_type: str | Omit = omit,
94
+ insurance_id: str | Omit = omit,
95
+ patient_city: str | Omit = omit,
96
+ patient_gender: Literal["M", "F", "Non-binary", "Non-specified"] | Omit = omit,
97
+ patient_state: str | Omit = omit,
98
+ patient_street: str | Omit = omit,
99
+ patient_street2: str | Omit = omit,
100
+ patient_zip: str | Omit = omit,
101
+ test_identifiers: SequenceNotStr[str] | Omit = omit,
102
+ test_type: str | Omit = omit,
103
103
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
104
104
  # The extra values given here take precedence over values defined on the client or passed to this method.
105
105
  extra_headers: Headers | None = None,
106
106
  extra_query: Query | None = None,
107
107
  extra_body: Body | None = None,
108
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
108
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
109
109
  ) -> object:
110
110
  """
111
111
  Submit a prior authorization request to Careviso.
@@ -202,7 +202,7 @@ class AsyncCarevisoResource(AsyncAPIResource):
202
202
  extra_headers: Headers | None = None,
203
203
  extra_query: Query | None = None,
204
204
  extra_body: Body | None = None,
205
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
205
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
206
206
  ) -> CarevisoGetPayersResponse:
207
207
  """Get a list of Careviso payers."""
208
208
  return await self._get(
@@ -238,24 +238,24 @@ class AsyncCarevisoResource(AsyncAPIResource):
238
238
  provider_phone: str,
239
239
  service_date: str,
240
240
  test_names: SequenceNotStr[str],
241
- accession_date: str | NotGiven = NOT_GIVEN,
242
- collection_date: str | NotGiven = NOT_GIVEN,
243
- collection_type: str | NotGiven = NOT_GIVEN,
244
- insurance_id: str | NotGiven = NOT_GIVEN,
245
- patient_city: str | NotGiven = NOT_GIVEN,
246
- patient_gender: Literal["M", "F", "Non-binary", "Non-specified"] | NotGiven = NOT_GIVEN,
247
- patient_state: str | NotGiven = NOT_GIVEN,
248
- patient_street: str | NotGiven = NOT_GIVEN,
249
- patient_street2: str | NotGiven = NOT_GIVEN,
250
- patient_zip: str | NotGiven = NOT_GIVEN,
251
- test_identifiers: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
252
- test_type: str | NotGiven = NOT_GIVEN,
241
+ accession_date: str | Omit = omit,
242
+ collection_date: str | Omit = omit,
243
+ collection_type: str | Omit = omit,
244
+ insurance_id: str | Omit = omit,
245
+ patient_city: str | Omit = omit,
246
+ patient_gender: Literal["M", "F", "Non-binary", "Non-specified"] | Omit = omit,
247
+ patient_state: str | Omit = omit,
248
+ patient_street: str | Omit = omit,
249
+ patient_street2: str | Omit = omit,
250
+ patient_zip: str | Omit = omit,
251
+ test_identifiers: SequenceNotStr[str] | Omit = omit,
252
+ test_type: str | Omit = omit,
253
253
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
254
254
  # The extra values given here take precedence over values defined on the client or passed to this method.
255
255
  extra_headers: Headers | None = None,
256
256
  extra_query: Query | None = None,
257
257
  extra_body: Body | None = None,
258
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
258
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
259
259
  ) -> object:
260
260
  """
261
261
  Submit a prior authorization request to Careviso.
@@ -6,7 +6,7 @@ from typing import Any, cast
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
@@ -69,13 +69,13 @@ class GlidianResource(SyncAPIResource):
69
69
  *,
70
70
  insurance_id: float,
71
71
  service_id: float,
72
- state: str | NotGiven = NOT_GIVEN,
72
+ state: str | Omit = omit,
73
73
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
74
74
  # The extra values given here take precedence over values defined on the client or passed to this method.
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
  ) -> GlidianGetSubmissionRequirementsResponse:
80
80
  """
81
81
  Get submission requirements for a specific insurance and service combination.
@@ -119,13 +119,13 @@ class GlidianResource(SyncAPIResource):
119
119
  self,
120
120
  slug: str,
121
121
  *,
122
- state: str | NotGiven = NOT_GIVEN,
122
+ state: str | Omit = omit,
123
123
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
124
124
  # The extra values given here take precedence over values defined on the client or passed to this method.
125
125
  extra_headers: Headers | None = None,
126
126
  extra_query: Query | None = None,
127
127
  extra_body: Body | None = None,
128
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
128
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
129
129
  ) -> GlidianListPayersResponse:
130
130
  """
131
131
  Get a list of available Glidian payers/insurances for a specific connection.
@@ -157,13 +157,13 @@ class GlidianResource(SyncAPIResource):
157
157
  self,
158
158
  slug: str,
159
159
  *,
160
- insurance_id: float | NotGiven = NOT_GIVEN,
160
+ insurance_id: float | Omit = omit,
161
161
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
162
162
  # The extra values given here take precedence over values defined on the client or passed to this method.
163
163
  extra_headers: Headers | None = None,
164
164
  extra_query: Query | None = None,
165
165
  extra_body: Body | None = None,
166
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
166
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
167
167
  ) -> GlidianListServicesResponse:
168
168
  """
169
169
  Get a list of available Glidian services for a specific connection.
@@ -224,13 +224,13 @@ class AsyncGlidianResource(AsyncAPIResource):
224
224
  *,
225
225
  insurance_id: float,
226
226
  service_id: float,
227
- state: str | NotGiven = NOT_GIVEN,
227
+ state: str | Omit = omit,
228
228
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
229
229
  # The extra values given here take precedence over values defined on the client or passed to this method.
230
230
  extra_headers: Headers | None = None,
231
231
  extra_query: Query | None = None,
232
232
  extra_body: Body | None = None,
233
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
233
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
234
234
  ) -> GlidianGetSubmissionRequirementsResponse:
235
235
  """
236
236
  Get submission requirements for a specific insurance and service combination.
@@ -274,13 +274,13 @@ class AsyncGlidianResource(AsyncAPIResource):
274
274
  self,
275
275
  slug: str,
276
276
  *,
277
- state: str | NotGiven = NOT_GIVEN,
277
+ state: str | Omit = omit,
278
278
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
279
279
  # The extra values given here take precedence over values defined on the client or passed to this method.
280
280
  extra_headers: Headers | None = None,
281
281
  extra_query: Query | None = None,
282
282
  extra_body: Body | None = None,
283
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
283
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
284
284
  ) -> GlidianListPayersResponse:
285
285
  """
286
286
  Get a list of available Glidian payers/insurances for a specific connection.
@@ -312,13 +312,13 @@ class AsyncGlidianResource(AsyncAPIResource):
312
312
  self,
313
313
  slug: str,
314
314
  *,
315
- insurance_id: float | NotGiven = NOT_GIVEN,
315
+ insurance_id: float | Omit = omit,
316
316
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
317
317
  # The extra values given here take precedence over values defined on the client or passed to this method.
318
318
  extra_headers: Headers | None = None,
319
319
  extra_query: Query | None = None,
320
320
  extra_body: Body | None = None,
321
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
321
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
322
322
  ) -> GlidianListServicesResponse:
323
323
  """
324
324
  Get a list of available Glidian services for a specific connection.
@@ -6,7 +6,7 @@ from typing import Dict
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
@@ -59,7 +59,7 @@ class ClinicalQuestionsResource(SyncAPIResource):
59
59
  extra_headers: Headers | None = None,
60
60
  extra_query: Query | None = None,
61
61
  extra_body: Body | None = None,
62
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
62
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
63
63
  ) -> ClinicalQuestionUpdateResponse:
64
64
  """Update clinical question responses for a Glidian prior authorization.
65
65
 
@@ -100,7 +100,7 @@ class ClinicalQuestionsResource(SyncAPIResource):
100
100
  extra_headers: Headers | None = None,
101
101
  extra_query: Query | None = None,
102
102
  extra_body: Body | None = None,
103
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
103
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
104
104
  ) -> ClinicalQuestionListResponse:
105
105
  """
106
106
  Retrieve clinical questions for a specific prior authorization record from
@@ -159,7 +159,7 @@ class AsyncClinicalQuestionsResource(AsyncAPIResource):
159
159
  extra_headers: Headers | None = None,
160
160
  extra_query: Query | None = None,
161
161
  extra_body: Body | None = None,
162
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
162
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
163
163
  ) -> ClinicalQuestionUpdateResponse:
164
164
  """Update clinical question responses for a Glidian prior authorization.
165
165
 
@@ -200,7 +200,7 @@ class AsyncClinicalQuestionsResource(AsyncAPIResource):
200
200
  extra_headers: Headers | None = None,
201
201
  extra_query: Query | None = None,
202
202
  extra_body: Body | None = None,
203
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
203
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
204
204
  ) -> ClinicalQuestionListResponse:
205
205
  """
206
206
  Retrieve clinical questions for a specific prior authorization record from
@@ -6,7 +6,7 @@ from typing import Dict, 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
@@ -76,14 +76,14 @@ class PriorAuthorizationsResource(SyncAPIResource):
76
76
  glidian_service_id: str,
77
77
  reference_number: str,
78
78
  submission_requirements: Dict[str, str],
79
- reference_number_two: str | NotGiven = NOT_GIVEN,
80
- state: str | NotGiven = NOT_GIVEN,
79
+ reference_number_two: str | Omit = omit,
80
+ state: str | Omit = omit,
81
81
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
82
82
  # The extra values given here take precedence over values defined on the client or passed to this method.
83
83
  extra_headers: Headers | None = None,
84
84
  extra_query: Query | None = None,
85
85
  extra_body: Body | None = None,
86
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
86
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
87
87
  ) -> PriorAuthorizationCreateDraftResponse:
88
88
  """
89
89
  Create a draft prior authorization request in Glidian.
@@ -129,7 +129,7 @@ class PriorAuthorizationsResource(SyncAPIResource):
129
129
  extra_headers: Headers | None = None,
130
130
  extra_query: Query | None = None,
131
131
  extra_body: Body | None = None,
132
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
132
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
133
133
  ) -> PriorAuthorizationRetrieveRecordResponse:
134
134
  """
135
135
  Retrieve a specific prior authorization record from Glidian.
@@ -165,7 +165,7 @@ class PriorAuthorizationsResource(SyncAPIResource):
165
165
  extra_headers: Headers | None = None,
166
166
  extra_query: Query | None = None,
167
167
  extra_body: Body | None = None,
168
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
168
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
169
169
  ) -> PriorAuthorizationSubmitResponse:
170
170
  """Submit a completed prior authorization to Glidian.
171
171
 
@@ -198,15 +198,15 @@ class PriorAuthorizationsResource(SyncAPIResource):
198
198
  record_id: str,
199
199
  *,
200
200
  slug: str,
201
- reference_number: str | NotGiven = NOT_GIVEN,
202
- reference_number_two: str | NotGiven = NOT_GIVEN,
203
- submission_requirements: Dict[str, str] | NotGiven = NOT_GIVEN,
201
+ reference_number: str | Omit = omit,
202
+ reference_number_two: str | Omit = omit,
203
+ submission_requirements: Dict[str, str] | Omit = omit,
204
204
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
205
205
  # The extra values given here take precedence over values defined on the client or passed to this method.
206
206
  extra_headers: Headers | None = None,
207
207
  extra_query: Query | None = None,
208
208
  extra_body: Body | None = None,
209
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
209
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
210
210
  ) -> PriorAuthorizationUpdateRecordResponse:
211
211
  """
212
212
  Update an existing prior authorization record in Glidian.
@@ -274,14 +274,14 @@ class AsyncPriorAuthorizationsResource(AsyncAPIResource):
274
274
  glidian_service_id: str,
275
275
  reference_number: str,
276
276
  submission_requirements: Dict[str, str],
277
- reference_number_two: str | NotGiven = NOT_GIVEN,
278
- state: str | NotGiven = NOT_GIVEN,
277
+ reference_number_two: str | Omit = omit,
278
+ state: str | Omit = omit,
279
279
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
280
280
  # The extra values given here take precedence over values defined on the client or passed to this method.
281
281
  extra_headers: Headers | None = None,
282
282
  extra_query: Query | None = None,
283
283
  extra_body: Body | None = None,
284
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
284
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
285
285
  ) -> PriorAuthorizationCreateDraftResponse:
286
286
  """
287
287
  Create a draft prior authorization request in Glidian.
@@ -327,7 +327,7 @@ class AsyncPriorAuthorizationsResource(AsyncAPIResource):
327
327
  extra_headers: Headers | None = None,
328
328
  extra_query: Query | None = None,
329
329
  extra_body: Body | None = None,
330
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
330
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
331
331
  ) -> PriorAuthorizationRetrieveRecordResponse:
332
332
  """
333
333
  Retrieve a specific prior authorization record from Glidian.
@@ -363,7 +363,7 @@ class AsyncPriorAuthorizationsResource(AsyncAPIResource):
363
363
  extra_headers: Headers | None = None,
364
364
  extra_query: Query | None = None,
365
365
  extra_body: Body | None = None,
366
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
366
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
367
367
  ) -> PriorAuthorizationSubmitResponse:
368
368
  """Submit a completed prior authorization to Glidian.
369
369
 
@@ -396,15 +396,15 @@ class AsyncPriorAuthorizationsResource(AsyncAPIResource):
396
396
  record_id: str,
397
397
  *,
398
398
  slug: str,
399
- reference_number: str | NotGiven = NOT_GIVEN,
400
- reference_number_two: str | NotGiven = NOT_GIVEN,
401
- submission_requirements: Dict[str, str] | NotGiven = NOT_GIVEN,
399
+ reference_number: str | Omit = omit,
400
+ reference_number_two: str | Omit = omit,
401
+ submission_requirements: Dict[str, str] | Omit = omit,
402
402
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
403
403
  # The extra values given here take precedence over values defined on the client or passed to this method.
404
404
  extra_headers: Headers | None = None,
405
405
  extra_query: Query | None = None,
406
406
  extra_body: Body | None = None,
407
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
407
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
408
408
  ) -> PriorAuthorizationUpdateRecordResponse:
409
409
  """
410
410
  Update an existing prior authorization record in Glidian.
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ....._types import Body, Query, Headers, NotGiven, not_given
8
8
  from ....._compat import cached_property
9
9
  from ....._resource import SyncAPIResource, AsyncAPIResource
10
10
  from ....._response import (
@@ -50,7 +50,7 @@ class MessagesResource(SyncAPIResource):
50
50
  extra_headers: Headers | None = None,
51
51
  extra_query: Query | None = None,
52
52
  extra_body: Body | None = None,
53
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
53
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
54
54
  ) -> MessageRetrieveResponse:
55
55
  """
56
56
  Retrieve a specific message for a Kno2 connection.
@@ -87,7 +87,7 @@ class MessagesResource(SyncAPIResource):
87
87
  extra_headers: Headers | None = None,
88
88
  extra_query: Query | None = None,
89
89
  extra_body: Body | None = None,
90
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
90
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
91
91
  ) -> MessageGetAttachmentResponse:
92
92
  """
93
93
  Retrieve a specific attachment for a Kno2 message.
@@ -146,7 +146,7 @@ class AsyncMessagesResource(AsyncAPIResource):
146
146
  extra_headers: Headers | None = None,
147
147
  extra_query: Query | None = None,
148
148
  extra_body: Body | None = None,
149
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
149
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
150
150
  ) -> MessageRetrieveResponse:
151
151
  """
152
152
  Retrieve a specific message for a Kno2 connection.
@@ -183,7 +183,7 @@ class AsyncMessagesResource(AsyncAPIResource):
183
183
  extra_headers: Headers | None = None,
184
184
  extra_query: Query | None = None,
185
185
  extra_body: Body | None = None,
186
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
186
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
187
187
  ) -> MessageGetAttachmentResponse:
188
188
  """
189
189
  Retrieve a specific attachment for a Kno2 message.
@@ -7,7 +7,7 @@ from typing_extensions import Literal
7
7
 
8
8
  import httpx
9
9
 
10
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from ...._utils import maybe_transform, async_maybe_transform
12
12
  from ...._compat import cached_property
13
13
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -18,7 +18,7 @@ from ...._response import (
18
18
  async_to_streamed_response_wrapper,
19
19
  )
20
20
  from ...._base_client import make_request_options
21
- from ....types.v2.integrations import salesforce_run_crud_action_params
21
+ from ....types.v2.integrations import salesforce_run_soql_query_params, salesforce_run_crud_action_params
22
22
 
23
23
  __all__ = ["SalesforceResource", "AsyncSalesforceResource"]
24
24
 
@@ -49,14 +49,14 @@ class SalesforceResource(SyncAPIResource):
49
49
  *,
50
50
  crud_action_type: Literal["create", "update", "upsert", "delete", "retrieve"],
51
51
  resource_type: str,
52
- resource_body: Dict[str, object] | NotGiven = NOT_GIVEN,
53
- resource_id: str | NotGiven = NOT_GIVEN,
52
+ resource_body: Dict[str, object] | Omit = omit,
53
+ resource_id: str | Omit = omit,
54
54
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
55
55
  # The extra values given here take precedence over values defined on the client or passed to this method.
56
56
  extra_headers: Headers | None = None,
57
57
  extra_query: Query | None = None,
58
58
  extra_body: Body | None = None,
59
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
59
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
60
60
  ) -> object:
61
61
  """
62
62
  Resolve connection by slug and run a CRUD action on a Salesforce sObject.
@@ -89,6 +89,41 @@ class SalesforceResource(SyncAPIResource):
89
89
  cast_to=object,
90
90
  )
91
91
 
92
+ def run_soql_query(
93
+ self,
94
+ slug: str,
95
+ *,
96
+ query: str,
97
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
98
+ # The extra values given here take precedence over values defined on the client or passed to this method.
99
+ extra_headers: Headers | None = None,
100
+ extra_query: Query | None = None,
101
+ extra_body: Body | None = None,
102
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
103
+ ) -> object:
104
+ """
105
+ Resolve connection by slug and run a SOQL query on Salesforce.
106
+
107
+ Args:
108
+ extra_headers: Send extra headers
109
+
110
+ extra_query: Add additional query parameters to the request
111
+
112
+ extra_body: Add additional JSON properties to the request
113
+
114
+ timeout: Override the client-level default timeout for this request, in seconds
115
+ """
116
+ if not slug:
117
+ raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
118
+ return self._post(
119
+ f"/api/v2/integrations/salesforce/{slug}/soql-query",
120
+ body=maybe_transform({"query": query}, salesforce_run_soql_query_params.SalesforceRunSoqlQueryParams),
121
+ options=make_request_options(
122
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
123
+ ),
124
+ cast_to=object,
125
+ )
126
+
92
127
 
93
128
  class AsyncSalesforceResource(AsyncAPIResource):
94
129
  @cached_property
@@ -116,14 +151,14 @@ class AsyncSalesforceResource(AsyncAPIResource):
116
151
  *,
117
152
  crud_action_type: Literal["create", "update", "upsert", "delete", "retrieve"],
118
153
  resource_type: str,
119
- resource_body: Dict[str, object] | NotGiven = NOT_GIVEN,
120
- resource_id: str | NotGiven = NOT_GIVEN,
154
+ resource_body: Dict[str, object] | Omit = omit,
155
+ resource_id: str | Omit = omit,
121
156
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
122
157
  # The extra values given here take precedence over values defined on the client or passed to this method.
123
158
  extra_headers: Headers | None = None,
124
159
  extra_query: Query | None = None,
125
160
  extra_body: Body | None = None,
126
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
161
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
127
162
  ) -> object:
128
163
  """
129
164
  Resolve connection by slug and run a CRUD action on a Salesforce sObject.
@@ -156,6 +191,43 @@ class AsyncSalesforceResource(AsyncAPIResource):
156
191
  cast_to=object,
157
192
  )
158
193
 
194
+ async def run_soql_query(
195
+ self,
196
+ slug: str,
197
+ *,
198
+ query: str,
199
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
200
+ # The extra values given here take precedence over values defined on the client or passed to this method.
201
+ extra_headers: Headers | None = None,
202
+ extra_query: Query | None = None,
203
+ extra_body: Body | None = None,
204
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
205
+ ) -> object:
206
+ """
207
+ Resolve connection by slug and run a SOQL query on Salesforce.
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 slug:
219
+ raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
220
+ return await self._post(
221
+ f"/api/v2/integrations/salesforce/{slug}/soql-query",
222
+ body=await async_maybe_transform(
223
+ {"query": query}, salesforce_run_soql_query_params.SalesforceRunSoqlQueryParams
224
+ ),
225
+ options=make_request_options(
226
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
227
+ ),
228
+ cast_to=object,
229
+ )
230
+
159
231
 
160
232
  class SalesforceResourceWithRawResponse:
161
233
  def __init__(self, salesforce: SalesforceResource) -> None:
@@ -164,6 +236,9 @@ class SalesforceResourceWithRawResponse:
164
236
  self.run_crud_action = to_raw_response_wrapper(
165
237
  salesforce.run_crud_action,
166
238
  )
239
+ self.run_soql_query = to_raw_response_wrapper(
240
+ salesforce.run_soql_query,
241
+ )
167
242
 
168
243
 
169
244
  class AsyncSalesforceResourceWithRawResponse:
@@ -173,6 +248,9 @@ class AsyncSalesforceResourceWithRawResponse:
173
248
  self.run_crud_action = async_to_raw_response_wrapper(
174
249
  salesforce.run_crud_action,
175
250
  )
251
+ self.run_soql_query = async_to_raw_response_wrapper(
252
+ salesforce.run_soql_query,
253
+ )
176
254
 
177
255
 
178
256
  class SalesforceResourceWithStreamingResponse:
@@ -182,6 +260,9 @@ class SalesforceResourceWithStreamingResponse:
182
260
  self.run_crud_action = to_streamed_response_wrapper(
183
261
  salesforce.run_crud_action,
184
262
  )
263
+ self.run_soql_query = to_streamed_response_wrapper(
264
+ salesforce.run_soql_query,
265
+ )
185
266
 
186
267
 
187
268
  class AsyncSalesforceResourceWithStreamingResponse:
@@ -191,3 +272,6 @@ class AsyncSalesforceResourceWithStreamingResponse:
191
272
  self.run_crud_action = async_to_streamed_response_wrapper(
192
273
  salesforce.run_crud_action,
193
274
  )
275
+ self.run_soql_query = async_to_streamed_response_wrapper(
276
+ salesforce.run_soql_query,
277
+ )
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ...._types import Body, Query, Headers, NotGiven, not_given
8
8
  from ...._utils import maybe_transform, async_maybe_transform
9
9
  from ...._compat import cached_property
10
10
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -51,7 +51,7 @@ class SnowflakeResource(SyncAPIResource):
51
51
  extra_headers: Headers | None = None,
52
52
  extra_query: Query | None = None,
53
53
  extra_body: Body | None = None,
54
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
54
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
55
55
  ) -> SnowflakeQueryResponse:
56
56
  """
57
57
  Execute a query against a configured Snowflake instance.
@@ -109,7 +109,7 @@ class AsyncSnowflakeResource(AsyncAPIResource):
109
109
  extra_headers: Headers | None = None,
110
110
  extra_query: Query | None = None,
111
111
  extra_body: Body | None = None,
112
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
112
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
113
113
  ) -> SnowflakeQueryResponse:
114
114
  """
115
115
  Execute a query against a configured Snowflake instance.
@@ -7,7 +7,7 @@ from typing_extensions import Literal
7
7
 
8
8
  import httpx
9
9
 
10
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from ...._utils import maybe_transform, async_maybe_transform
12
12
  from ...._compat import cached_property
13
13
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -49,14 +49,14 @@ class XcuresResource(SyncAPIResource):
49
49
  *,
50
50
  method: Literal["GET", "POST", "PUT"],
51
51
  path: str,
52
- body: Dict[str, object] | NotGiven = NOT_GIVEN,
53
- parameters: Dict[str, object] | NotGiven = NOT_GIVEN,
52
+ body: Dict[str, object] | Omit = omit,
53
+ parameters: Dict[str, object] | Omit = omit,
54
54
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
55
55
  # The extra values given here take precedence over values defined on the client or passed to this method.
56
56
  extra_headers: Headers | None = None,
57
57
  extra_query: Query | None = None,
58
58
  extra_body: Body | None = None,
59
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
59
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
60
60
  ) -> object:
61
61
  """
62
62
  Make an arbitrary request to xCures using the configured connection identified
@@ -118,14 +118,14 @@ class AsyncXcuresResource(AsyncAPIResource):
118
118
  *,
119
119
  method: Literal["GET", "POST", "PUT"],
120
120
  path: str,
121
- body: Dict[str, object] | NotGiven = NOT_GIVEN,
122
- parameters: Dict[str, object] | NotGiven = NOT_GIVEN,
121
+ body: Dict[str, object] | Omit = omit,
122
+ parameters: Dict[str, object] | Omit = omit,
123
123
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
124
124
  # The extra values given here take precedence over values defined on the client or passed to this method.
125
125
  extra_headers: Headers | None = None,
126
126
  extra_query: Query | None = None,
127
127
  extra_body: Body | None = None,
128
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
128
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
129
129
  ) -> object:
130
130
  """
131
131
  Make an arbitrary request to xCures using the configured connection identified