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
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Iterable
5
+ from typing import Iterable
6
6
 
7
7
  import httpx
8
8
 
@@ -22,7 +22,7 @@ from .payers import (
22
22
  PayersResourceWithStreamingResponse,
23
23
  AsyncPayersResourceWithStreamingResponse,
24
24
  )
25
- from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
25
+ from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, SequenceNotStr, omit, not_given
26
26
  from ...._utils import maybe_transform, strip_not_given, async_maybe_transform
27
27
  from ...._compat import cached_property
28
28
  from ....types.v2 import (
@@ -84,7 +84,7 @@ class ClearinghouseResource(SyncAPIResource):
84
84
  extra_headers: Headers | None = None,
85
85
  extra_query: Query | None = None,
86
86
  extra_body: Body | None = None,
87
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
87
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
88
88
  ) -> None:
89
89
  """
90
90
  Calculates the cost of a patient's services based on the provided information.
@@ -128,16 +128,16 @@ class ClearinghouseResource(SyncAPIResource):
128
128
  subscriber_last_name: str,
129
129
  subscriber_member_id: str,
130
130
  trading_partner_service_id: str,
131
- payer_claim_number: str | NotGiven = NOT_GIVEN,
132
- provider_name: str | NotGiven = NOT_GIVEN,
133
- service_from_date: str | NotGiven = NOT_GIVEN,
134
- service_to_date: str | NotGiven = NOT_GIVEN,
131
+ payer_claim_number: str | Omit = omit,
132
+ provider_name: str | Omit = omit,
133
+ service_from_date: str | Omit = omit,
134
+ service_to_date: str | Omit = omit,
135
135
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
136
136
  # The extra values given here take precedence over values defined on the client or passed to this method.
137
137
  extra_headers: Headers | None = None,
138
138
  extra_query: Query | None = None,
139
139
  extra_body: Body | None = None,
140
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
140
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
141
141
  ) -> object:
142
142
  """
143
143
  Checks the real-time status of a claim using 276/277 transactions.
@@ -199,7 +199,7 @@ class ClearinghouseResource(SyncAPIResource):
199
199
  *,
200
200
  provider_identifier: str,
201
201
  provider_name: str,
202
- service_type_codes: List[str],
202
+ service_type_codes: SequenceNotStr[str],
203
203
  subscriber_date_of_birth: str,
204
204
  subscriber_first_name: str,
205
205
  subscriber_last_name: str,
@@ -210,7 +210,7 @@ class ClearinghouseResource(SyncAPIResource):
210
210
  extra_headers: Headers | None = None,
211
211
  extra_query: Query | None = None,
212
212
  extra_body: Body | None = None,
213
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
213
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
214
214
  ) -> ClearinghouseCheckEligibilityResponse:
215
215
  """
216
216
  Verifies patient eligibility with a specific payer for given services based on
@@ -282,7 +282,7 @@ class ClearinghouseResource(SyncAPIResource):
282
282
  extra_headers: Headers | None = None,
283
283
  extra_query: Query | None = None,
284
284
  extra_body: Body | None = None,
285
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
285
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
286
286
  ) -> object:
287
287
  """
288
288
  Fetches coordination of benefits (COB) information for a patient from a
@@ -326,19 +326,19 @@ class ClearinghouseResource(SyncAPIResource):
326
326
  self,
327
327
  *,
328
328
  person: clearinghouse_run_discovery_params.Person,
329
- account_number: str | NotGiven = NOT_GIVEN,
330
- check_credit: bool | NotGiven = NOT_GIVEN,
331
- check_demographics: bool | NotGiven = NOT_GIVEN,
332
- date_of_service: str | NotGiven = NOT_GIVEN,
333
- run_business_rules: bool | NotGiven = NOT_GIVEN,
334
- service_code: str | NotGiven = NOT_GIVEN,
335
- idempotency_key: str | NotGiven = NOT_GIVEN,
329
+ account_number: str | Omit = omit,
330
+ check_credit: bool | Omit = omit,
331
+ check_demographics: bool | Omit = omit,
332
+ date_of_service: str | Omit = omit,
333
+ run_business_rules: bool | Omit = omit,
334
+ service_code: str | Omit = omit,
335
+ idempotency_key: str | Omit = omit,
336
336
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
337
337
  # The extra values given here take precedence over values defined on the client or passed to this method.
338
338
  extra_headers: Headers | None = None,
339
339
  extra_query: Query | None = None,
340
340
  extra_body: Body | None = None,
341
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
341
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
342
342
  ) -> ClearinghouseRunDiscoveryResponse:
343
343
  """
344
344
  Initiates a discovery process to find insurance coverage for a patient using
@@ -425,7 +425,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
425
425
  extra_headers: Headers | None = None,
426
426
  extra_query: Query | None = None,
427
427
  extra_body: Body | None = None,
428
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
428
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
429
429
  ) -> None:
430
430
  """
431
431
  Calculates the cost of a patient's services based on the provided information.
@@ -469,16 +469,16 @@ class AsyncClearinghouseResource(AsyncAPIResource):
469
469
  subscriber_last_name: str,
470
470
  subscriber_member_id: str,
471
471
  trading_partner_service_id: str,
472
- payer_claim_number: str | NotGiven = NOT_GIVEN,
473
- provider_name: str | NotGiven = NOT_GIVEN,
474
- service_from_date: str | NotGiven = NOT_GIVEN,
475
- service_to_date: str | NotGiven = NOT_GIVEN,
472
+ payer_claim_number: str | Omit = omit,
473
+ provider_name: str | Omit = omit,
474
+ service_from_date: str | Omit = omit,
475
+ service_to_date: str | Omit = omit,
476
476
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
477
477
  # The extra values given here take precedence over values defined on the client or passed to this method.
478
478
  extra_headers: Headers | None = None,
479
479
  extra_query: Query | None = None,
480
480
  extra_body: Body | None = None,
481
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
481
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
482
482
  ) -> object:
483
483
  """
484
484
  Checks the real-time status of a claim using 276/277 transactions.
@@ -540,7 +540,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
540
540
  *,
541
541
  provider_identifier: str,
542
542
  provider_name: str,
543
- service_type_codes: List[str],
543
+ service_type_codes: SequenceNotStr[str],
544
544
  subscriber_date_of_birth: str,
545
545
  subscriber_first_name: str,
546
546
  subscriber_last_name: str,
@@ -551,7 +551,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
551
551
  extra_headers: Headers | None = None,
552
552
  extra_query: Query | None = None,
553
553
  extra_body: Body | None = None,
554
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
554
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
555
555
  ) -> ClearinghouseCheckEligibilityResponse:
556
556
  """
557
557
  Verifies patient eligibility with a specific payer for given services based on
@@ -623,7 +623,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
623
623
  extra_headers: Headers | None = None,
624
624
  extra_query: Query | None = None,
625
625
  extra_body: Body | None = None,
626
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
626
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
627
627
  ) -> object:
628
628
  """
629
629
  Fetches coordination of benefits (COB) information for a patient from a
@@ -667,19 +667,19 @@ class AsyncClearinghouseResource(AsyncAPIResource):
667
667
  self,
668
668
  *,
669
669
  person: clearinghouse_run_discovery_params.Person,
670
- account_number: str | NotGiven = NOT_GIVEN,
671
- check_credit: bool | NotGiven = NOT_GIVEN,
672
- check_demographics: bool | NotGiven = NOT_GIVEN,
673
- date_of_service: str | NotGiven = NOT_GIVEN,
674
- run_business_rules: bool | NotGiven = NOT_GIVEN,
675
- service_code: str | NotGiven = NOT_GIVEN,
676
- idempotency_key: str | NotGiven = NOT_GIVEN,
670
+ account_number: str | Omit = omit,
671
+ check_credit: bool | Omit = omit,
672
+ check_demographics: bool | Omit = omit,
673
+ date_of_service: str | Omit = omit,
674
+ run_business_rules: bool | Omit = omit,
675
+ service_code: str | Omit = omit,
676
+ idempotency_key: str | Omit = omit,
677
677
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
678
678
  # The extra values given here take precedence over values defined on the client or passed to this method.
679
679
  extra_headers: Headers | None = None,
680
680
  extra_query: Query | None = None,
681
681
  extra_body: Body | None = None,
682
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
682
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
683
683
  ) -> ClearinghouseRunDiscoveryResponse:
684
684
  """
685
685
  Initiates a discovery process to find insurance coverage for a patient using
@@ -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
@@ -50,7 +50,7 @@ class PayersResource(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
  ) -> PayerListResponse:
55
55
  """Lists all payers available for eligibility checks."""
56
56
  return self._get(
@@ -70,7 +70,7 @@ class PayersResource(SyncAPIResource):
70
70
  extra_headers: Headers | None = None,
71
71
  extra_query: Query | None = None,
72
72
  extra_body: Body | None = None,
73
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
73
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
74
74
  ) -> PayerSearchResponse:
75
75
  """
76
76
  Searches for payers based on the provided search criteria.
@@ -127,7 +127,7 @@ class AsyncPayersResource(AsyncAPIResource):
127
127
  extra_headers: Headers | None = None,
128
128
  extra_query: Query | None = None,
129
129
  extra_body: Body | None = None,
130
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
130
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
131
131
  ) -> PayerListResponse:
132
132
  """Lists all payers available for eligibility checks."""
133
133
  return await self._get(
@@ -147,7 +147,7 @@ class AsyncPayersResource(AsyncAPIResource):
147
147
  extra_headers: Headers | None = None,
148
148
  extra_query: Query | None = None,
149
149
  extra_body: Body | None = None,
150
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
150
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
151
151
  ) -> PayerSearchResponse:
152
152
  """
153
153
  Searches for payers based on the provided search criteria.
@@ -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, strip_not_given, async_maybe_transform
11
11
  from ..._compat import cached_property
12
12
  from ...types.v2 import communication_send_fax_params, communication_send_email_params, communication_send_letter_params
@@ -50,17 +50,17 @@ class CommunicationResource(SyncAPIResource):
50
50
  body: str,
51
51
  subject: str,
52
52
  to: str,
53
- attach_as_files: bool | NotGiven = NOT_GIVEN,
54
- attachments: Iterable[communication_send_email_params.Attachment] | NotGiven = NOT_GIVEN,
55
- enable_encryption: bool | NotGiven = NOT_GIVEN,
56
- from_: str | NotGiven = NOT_GIVEN,
57
- zip_attachments: bool | NotGiven = NOT_GIVEN,
53
+ attach_as_files: bool | Omit = omit,
54
+ attachments: Iterable[communication_send_email_params.Attachment] | Omit = omit,
55
+ enable_encryption: bool | Omit = omit,
56
+ from_: str | Omit = omit,
57
+ zip_attachments: bool | Omit = omit,
58
58
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
59
59
  # The extra values given here take precedence over values defined on the client or passed to this method.
60
60
  extra_headers: Headers | None = None,
61
61
  extra_query: Query | None = None,
62
62
  extra_body: Body | None = None,
63
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
63
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
64
64
  ) -> object:
65
65
  """Processes and dispatches an email.
66
66
 
@@ -123,15 +123,15 @@ class CommunicationResource(SyncAPIResource):
123
123
  *,
124
124
  document: communication_send_fax_params.Document,
125
125
  to: str,
126
- batch_delay_seconds: str | NotGiven = NOT_GIVEN,
127
- enable_batch_collision_avoidance: bool | NotGiven = NOT_GIVEN,
128
- enable_batch_delay: bool | NotGiven = NOT_GIVEN,
126
+ batch_delay_seconds: str | Omit = omit,
127
+ enable_batch_collision_avoidance: bool | Omit = omit,
128
+ enable_batch_delay: bool | Omit = omit,
129
129
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
130
130
  # The extra values given here take precedence over values defined on the client or passed to this method.
131
131
  extra_headers: Headers | None = None,
132
132
  extra_query: Query | None = None,
133
133
  extra_body: Body | None = None,
134
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
134
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
135
135
  ) -> CommunicationSendFaxResponse:
136
136
  """Initiates an asynchronous fax sending process.
137
137
 
@@ -186,15 +186,15 @@ class CommunicationResource(SyncAPIResource):
186
186
  *,
187
187
  document: communication_send_letter_params.Document,
188
188
  to_address: communication_send_letter_params.ToAddress,
189
- from_address: communication_send_letter_params.FromAddress | NotGiven = NOT_GIVEN,
190
- metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
191
- idempotency_key: str | NotGiven = NOT_GIVEN,
189
+ from_address: communication_send_letter_params.FromAddress | Omit = omit,
190
+ metadata: Dict[str, str] | Omit = omit,
191
+ idempotency_key: str | Omit = omit,
192
192
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
193
193
  # The extra values given here take precedence over values defined on the client or passed to this method.
194
194
  extra_headers: Headers | None = None,
195
195
  extra_query: Query | None = None,
196
196
  extra_body: Body | None = None,
197
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
197
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
198
198
  ) -> CommunicationSendLetterResponse:
199
199
  """Sends a physical letter.
200
200
 
@@ -261,17 +261,17 @@ class AsyncCommunicationResource(AsyncAPIResource):
261
261
  body: str,
262
262
  subject: str,
263
263
  to: str,
264
- attach_as_files: bool | NotGiven = NOT_GIVEN,
265
- attachments: Iterable[communication_send_email_params.Attachment] | NotGiven = NOT_GIVEN,
266
- enable_encryption: bool | NotGiven = NOT_GIVEN,
267
- from_: str | NotGiven = NOT_GIVEN,
268
- zip_attachments: bool | NotGiven = NOT_GIVEN,
264
+ attach_as_files: bool | Omit = omit,
265
+ attachments: Iterable[communication_send_email_params.Attachment] | Omit = omit,
266
+ enable_encryption: bool | Omit = omit,
267
+ from_: str | Omit = omit,
268
+ zip_attachments: bool | Omit = omit,
269
269
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
270
270
  # The extra values given here take precedence over values defined on the client or passed to this method.
271
271
  extra_headers: Headers | None = None,
272
272
  extra_query: Query | None = None,
273
273
  extra_body: Body | None = None,
274
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
274
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
275
275
  ) -> object:
276
276
  """Processes and dispatches an email.
277
277
 
@@ -334,15 +334,15 @@ class AsyncCommunicationResource(AsyncAPIResource):
334
334
  *,
335
335
  document: communication_send_fax_params.Document,
336
336
  to: str,
337
- batch_delay_seconds: str | NotGiven = NOT_GIVEN,
338
- enable_batch_collision_avoidance: bool | NotGiven = NOT_GIVEN,
339
- enable_batch_delay: bool | NotGiven = NOT_GIVEN,
337
+ batch_delay_seconds: str | Omit = omit,
338
+ enable_batch_collision_avoidance: bool | Omit = omit,
339
+ enable_batch_delay: bool | Omit = omit,
340
340
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
341
341
  # The extra values given here take precedence over values defined on the client or passed to this method.
342
342
  extra_headers: Headers | None = None,
343
343
  extra_query: Query | None = None,
344
344
  extra_body: Body | None = None,
345
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
345
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
346
346
  ) -> CommunicationSendFaxResponse:
347
347
  """Initiates an asynchronous fax sending process.
348
348
 
@@ -397,15 +397,15 @@ class AsyncCommunicationResource(AsyncAPIResource):
397
397
  *,
398
398
  document: communication_send_letter_params.Document,
399
399
  to_address: communication_send_letter_params.ToAddress,
400
- from_address: communication_send_letter_params.FromAddress | NotGiven = NOT_GIVEN,
401
- metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
402
- idempotency_key: str | NotGiven = NOT_GIVEN,
400
+ from_address: communication_send_letter_params.FromAddress | Omit = omit,
401
+ metadata: Dict[str, str] | Omit = omit,
402
+ idempotency_key: str | Omit = omit,
403
403
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
404
404
  # The extra values given here take precedence over values defined on the client or passed to this method.
405
405
  extra_headers: Headers | None = None,
406
406
  extra_query: Query | None = None,
407
407
  extra_body: Body | None = None,
408
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
408
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
409
409
  ) -> CommunicationSendLetterResponse:
410
410
  """Sends a physical letter.
411
411
 
@@ -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 ...types.v2 import database_execute_sql_params
@@ -49,13 +49,13 @@ class DatabaseResource(SyncAPIResource):
49
49
  *,
50
50
  query: str,
51
51
  params: List[Union[str, float, bool, Optional[Literal["null"]], Iterable[object], Dict[str, object]]]
52
- | NotGiven = NOT_GIVEN,
52
+ | Omit = omit,
53
53
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
54
54
  # The extra values given here take precedence over values defined on the client or passed to this method.
55
55
  extra_headers: Headers | None = None,
56
56
  extra_query: Query | None = None,
57
57
  extra_body: Body | None = None,
58
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
58
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
59
59
  ) -> DatabaseExecuteSqlResponse:
60
60
  """Allows execution of arbitrary SQL queries against the Sample database.
61
61
 
@@ -121,13 +121,13 @@ class AsyncDatabaseResource(AsyncAPIResource):
121
121
  *,
122
122
  query: str,
123
123
  params: List[Union[str, float, bool, Optional[Literal["null"]], Iterable[object], Dict[str, object]]]
124
- | NotGiven = NOT_GIVEN,
124
+ | Omit = omit,
125
125
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
126
126
  # The extra values given here take precedence over values defined on the client or passed to this method.
127
127
  extra_headers: Headers | None = None,
128
128
  extra_query: Query | None = None,
129
129
  extra_body: Body | None = None,
130
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
130
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
131
131
  ) -> DatabaseExecuteSqlResponse:
132
132
  """Allows execution of arbitrary SQL queries against the Sample database.
133
133