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
@@ -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, Omit, Query, Headers, NotGiven, omit, not_given
8
8
  from ..._utils import maybe_transform, async_maybe_transform
9
9
  from ..._compat import cached_property
10
10
  from ...types.v2 import policy_list_params, policy_list_plans_params, policy_list_companies_params
@@ -48,24 +48,24 @@ class PoliciesResource(SyncAPIResource):
48
48
  def list(
49
49
  self,
50
50
  *,
51
- active_at: str | NotGiven = NOT_GIVEN,
52
- company_id: str | NotGiven = NOT_GIVEN,
53
- hcpcs_codes: str | NotGiven = NOT_GIVEN,
54
- icd10_cm_codes: str | NotGiven = NOT_GIVEN,
55
- limit: float | NotGiven = NOT_GIVEN,
56
- plan_id: str | NotGiven = NOT_GIVEN,
57
- policy_topic: str | NotGiven = NOT_GIVEN,
58
- policy_topic_for_keyword_extraction: str | NotGiven = NOT_GIVEN,
59
- policy_type: str | NotGiven = NOT_GIVEN,
60
- skip: float | NotGiven = NOT_GIVEN,
61
- updated_at_max: str | NotGiven = NOT_GIVEN,
62
- updated_at_min: str | NotGiven = NOT_GIVEN,
51
+ active_at: str | Omit = omit,
52
+ company_id: str | Omit = omit,
53
+ hcpcs_codes: str | Omit = omit,
54
+ icd10_cm_codes: str | Omit = omit,
55
+ limit: float | Omit = omit,
56
+ plan_id: str | Omit = omit,
57
+ policy_topic: str | Omit = omit,
58
+ policy_topic_for_keyword_extraction: str | Omit = omit,
59
+ policy_type: str | Omit = omit,
60
+ skip: float | Omit = omit,
61
+ updated_at_max: str | Omit = omit,
62
+ updated_at_min: str | Omit = omit,
63
63
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
64
64
  # The extra values given here take precedence over values defined on the client or passed to this method.
65
65
  extra_headers: Headers | None = None,
66
66
  extra_query: Query | None = None,
67
67
  extra_body: Body | None = None,
68
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
68
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
69
69
  ) -> PolicyListResponse:
70
70
  """
71
71
  Retrieve a list of policies based on specified filters.
@@ -134,15 +134,15 @@ class PoliciesResource(SyncAPIResource):
134
134
  def list_companies(
135
135
  self,
136
136
  *,
137
- company_name: str | NotGiven = NOT_GIVEN,
138
- limit: float | NotGiven = NOT_GIVEN,
139
- skip: float | NotGiven = NOT_GIVEN,
137
+ company_name: str | Omit = omit,
138
+ limit: float | Omit = omit,
139
+ skip: float | Omit = omit,
140
140
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
141
141
  # The extra values given here take precedence over values defined on the client or passed to this method.
142
142
  extra_headers: Headers | None = None,
143
143
  extra_query: Query | None = None,
144
144
  extra_body: Body | None = None,
145
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
145
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
146
146
  ) -> PolicyListCompaniesResponse:
147
147
  """
148
148
  Retrieve a list of companies.
@@ -184,15 +184,15 @@ class PoliciesResource(SyncAPIResource):
184
184
  def list_plans(
185
185
  self,
186
186
  *,
187
- limit: float | NotGiven = NOT_GIVEN,
188
- plan_name: str | NotGiven = NOT_GIVEN,
189
- skip: float | NotGiven = NOT_GIVEN,
187
+ limit: float | Omit = omit,
188
+ plan_name: str | Omit = omit,
189
+ skip: float | Omit = omit,
190
190
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
191
191
  # The extra values given here take precedence over values defined on the client or passed to this method.
192
192
  extra_headers: Headers | None = None,
193
193
  extra_query: Query | None = None,
194
194
  extra_body: Body | None = None,
195
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
195
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
196
196
  ) -> PolicyListPlansResponse:
197
197
  """
198
198
  Retrieve a list of plans.
@@ -240,7 +240,7 @@ class PoliciesResource(SyncAPIResource):
240
240
  extra_headers: Headers | None = None,
241
241
  extra_query: Query | None = None,
242
242
  extra_body: Body | None = None,
243
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
243
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
244
244
  ) -> PolicyRetrievePresignedURLResponse:
245
245
  """
246
246
  Retrieve a presigned URL for accessing a policy document.
@@ -273,7 +273,7 @@ class PoliciesResource(SyncAPIResource):
273
273
  extra_headers: Headers | None = None,
274
274
  extra_query: Query | None = None,
275
275
  extra_body: Body | None = None,
276
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
276
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
277
277
  ) -> PolicyRetrieveTextResponse:
278
278
  """
279
279
  Retrieve the raw text content of a policy document.
@@ -321,24 +321,24 @@ class AsyncPoliciesResource(AsyncAPIResource):
321
321
  async def list(
322
322
  self,
323
323
  *,
324
- active_at: str | NotGiven = NOT_GIVEN,
325
- company_id: str | NotGiven = NOT_GIVEN,
326
- hcpcs_codes: str | NotGiven = NOT_GIVEN,
327
- icd10_cm_codes: str | NotGiven = NOT_GIVEN,
328
- limit: float | NotGiven = NOT_GIVEN,
329
- plan_id: str | NotGiven = NOT_GIVEN,
330
- policy_topic: str | NotGiven = NOT_GIVEN,
331
- policy_topic_for_keyword_extraction: str | NotGiven = NOT_GIVEN,
332
- policy_type: str | NotGiven = NOT_GIVEN,
333
- skip: float | NotGiven = NOT_GIVEN,
334
- updated_at_max: str | NotGiven = NOT_GIVEN,
335
- updated_at_min: str | NotGiven = NOT_GIVEN,
324
+ active_at: str | Omit = omit,
325
+ company_id: str | Omit = omit,
326
+ hcpcs_codes: str | Omit = omit,
327
+ icd10_cm_codes: str | Omit = omit,
328
+ limit: float | Omit = omit,
329
+ plan_id: str | Omit = omit,
330
+ policy_topic: str | Omit = omit,
331
+ policy_topic_for_keyword_extraction: str | Omit = omit,
332
+ policy_type: str | Omit = omit,
333
+ skip: float | Omit = omit,
334
+ updated_at_max: str | Omit = omit,
335
+ updated_at_min: 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
  ) -> PolicyListResponse:
343
343
  """
344
344
  Retrieve a list of policies based on specified filters.
@@ -407,15 +407,15 @@ class AsyncPoliciesResource(AsyncAPIResource):
407
407
  async def list_companies(
408
408
  self,
409
409
  *,
410
- company_name: str | NotGiven = NOT_GIVEN,
411
- limit: float | NotGiven = NOT_GIVEN,
412
- skip: float | NotGiven = NOT_GIVEN,
410
+ company_name: str | Omit = omit,
411
+ limit: float | Omit = omit,
412
+ skip: float | Omit = omit,
413
413
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
414
414
  # The extra values given here take precedence over values defined on the client or passed to this method.
415
415
  extra_headers: Headers | None = None,
416
416
  extra_query: Query | None = None,
417
417
  extra_body: Body | None = None,
418
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
418
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
419
419
  ) -> PolicyListCompaniesResponse:
420
420
  """
421
421
  Retrieve a list of companies.
@@ -457,15 +457,15 @@ class AsyncPoliciesResource(AsyncAPIResource):
457
457
  async def list_plans(
458
458
  self,
459
459
  *,
460
- limit: float | NotGiven = NOT_GIVEN,
461
- plan_name: str | NotGiven = NOT_GIVEN,
462
- skip: float | NotGiven = NOT_GIVEN,
460
+ limit: float | Omit = omit,
461
+ plan_name: str | Omit = omit,
462
+ skip: float | Omit = omit,
463
463
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
464
464
  # The extra values given here take precedence over values defined on the client or passed to this method.
465
465
  extra_headers: Headers | None = None,
466
466
  extra_query: Query | None = None,
467
467
  extra_body: Body | None = None,
468
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
468
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
469
469
  ) -> PolicyListPlansResponse:
470
470
  """
471
471
  Retrieve a list of plans.
@@ -513,7 +513,7 @@ class AsyncPoliciesResource(AsyncAPIResource):
513
513
  extra_headers: Headers | None = None,
514
514
  extra_query: Query | None = None,
515
515
  extra_body: Body | None = None,
516
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
516
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
517
517
  ) -> PolicyRetrievePresignedURLResponse:
518
518
  """
519
519
  Retrieve a presigned URL for accessing a policy document.
@@ -546,7 +546,7 @@ class AsyncPoliciesResource(AsyncAPIResource):
546
546
  extra_headers: Headers | None = None,
547
547
  extra_query: Query | None = None,
548
548
  extra_body: Body | None = None,
549
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
549
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
550
550
  ) -> PolicyRetrieveTextResponse:
551
551
  """
552
552
  Retrieve the raw text content of a policy document.
@@ -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, Omit, Query, Headers, NotGiven, omit, 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
@@ -47,13 +47,13 @@ class StateResource(SyncAPIResource):
47
47
  task_id: str,
48
48
  *,
49
49
  key: str,
50
- value: object | NotGiven = NOT_GIVEN,
50
+ value: object | Omit = omit,
51
51
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52
52
  # The extra values given here take precedence over values defined on the client or passed to this method.
53
53
  extra_headers: Headers | None = None,
54
54
  extra_query: Query | None = None,
55
55
  extra_body: Body | None = None,
56
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
56
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
57
57
  ) -> StateUpdateResponse:
58
58
  """
59
59
  Updates the state of a task.
@@ -93,7 +93,7 @@ class StateResource(SyncAPIResource):
93
93
  extra_headers: Headers | None = None,
94
94
  extra_query: Query | None = None,
95
95
  extra_body: Body | None = None,
96
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
96
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
97
97
  ) -> StateGetResponse:
98
98
  """Retrieves the state of a task.
99
99
 
@@ -145,13 +145,13 @@ class AsyncStateResource(AsyncAPIResource):
145
145
  task_id: str,
146
146
  *,
147
147
  key: str,
148
- value: object | NotGiven = NOT_GIVEN,
148
+ value: object | Omit = omit,
149
149
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
150
150
  # The extra values given here take precedence over values defined on the client or passed to this method.
151
151
  extra_headers: Headers | None = None,
152
152
  extra_query: Query | None = None,
153
153
  extra_body: Body | None = None,
154
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
154
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
155
155
  ) -> StateUpdateResponse:
156
156
  """
157
157
  Updates the state of a task.
@@ -191,7 +191,7 @@ class AsyncStateResource(AsyncAPIResource):
191
191
  extra_headers: Headers | None = None,
192
192
  extra_query: Query | None = None,
193
193
  extra_body: Body | None = None,
194
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
194
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
195
195
  ) -> StateGetResponse:
196
196
  """Retrieves the state of a task.
197
197
 
@@ -14,7 +14,7 @@ from .state import (
14
14
  StateResourceWithStreamingResponse,
15
15
  AsyncStateResourceWithStreamingResponse,
16
16
  )
17
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
17
+ from ...._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
18
18
  from ...._utils import maybe_transform, async_maybe_transform
19
19
  from ...._compat import cached_property
20
20
  from ....types.v2 import task_complete_params, task_update_screen_time_params
@@ -69,7 +69,7 @@ class TasksResource(SyncAPIResource):
69
69
  extra_headers: Headers | None = None,
70
70
  extra_query: Query | None = None,
71
71
  extra_body: Body | None = None,
72
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
72
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
73
73
  ) -> TaskRetrieveResponse:
74
74
  """
75
75
  Retrieves the details of a task.
@@ -102,7 +102,7 @@ class TasksResource(SyncAPIResource):
102
102
  extra_headers: Headers | None = None,
103
103
  extra_query: Query | None = None,
104
104
  extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
106
106
  ) -> TaskCancelResponse:
107
107
  """Marks a specified task as cancelled, preventing it from being executed.
108
108
 
@@ -132,13 +132,13 @@ class TasksResource(SyncAPIResource):
132
132
  self,
133
133
  task_id: str,
134
134
  *,
135
- result: object | NotGiven = NOT_GIVEN,
135
+ result: object | Omit = omit,
136
136
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
137
137
  # The extra values given here take precedence over values defined on the client or passed to this method.
138
138
  extra_headers: Headers | None = None,
139
139
  extra_query: Query | None = None,
140
140
  extra_body: Body | None = None,
141
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
141
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
142
142
  ) -> TaskCompleteResponse:
143
143
  """Marks a specified task as complete, providing the result of its execution.
144
144
 
@@ -176,7 +176,7 @@ class TasksResource(SyncAPIResource):
176
176
  extra_headers: Headers | None = None,
177
177
  extra_query: Query | None = None,
178
178
  extra_body: Body | None = None,
179
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
179
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
180
180
  ) -> TaskGetSuspendedPayloadResponse:
181
181
  """
182
182
  Retrieves the payload with which a task was suspended, typically for tasks
@@ -210,7 +210,7 @@ class TasksResource(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
  ) -> TaskRetryResponse:
215
215
  """Attempts to retry a failed task.
216
216
 
@@ -245,7 +245,7 @@ class TasksResource(SyncAPIResource):
245
245
  extra_headers: Headers | None = None,
246
246
  extra_query: Query | None = None,
247
247
  extra_body: Body | None = None,
248
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
248
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
249
249
  ) -> Optional[TaskUpdateScreenTimeResponse]:
250
250
  """Adds a specified duration to the total screen time recorded for a task.
251
251
 
@@ -313,7 +313,7 @@ class AsyncTasksResource(AsyncAPIResource):
313
313
  extra_headers: Headers | None = None,
314
314
  extra_query: Query | None = None,
315
315
  extra_body: Body | None = None,
316
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
316
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
317
317
  ) -> TaskRetrieveResponse:
318
318
  """
319
319
  Retrieves the details of a task.
@@ -346,7 +346,7 @@ class AsyncTasksResource(AsyncAPIResource):
346
346
  extra_headers: Headers | None = None,
347
347
  extra_query: Query | None = None,
348
348
  extra_body: Body | None = None,
349
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
349
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
350
350
  ) -> TaskCancelResponse:
351
351
  """Marks a specified task as cancelled, preventing it from being executed.
352
352
 
@@ -376,13 +376,13 @@ class AsyncTasksResource(AsyncAPIResource):
376
376
  self,
377
377
  task_id: str,
378
378
  *,
379
- result: object | NotGiven = NOT_GIVEN,
379
+ result: object | Omit = omit,
380
380
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
381
381
  # The extra values given here take precedence over values defined on the client or passed to this method.
382
382
  extra_headers: Headers | None = None,
383
383
  extra_query: Query | None = None,
384
384
  extra_body: Body | None = None,
385
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
385
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
386
386
  ) -> TaskCompleteResponse:
387
387
  """Marks a specified task as complete, providing the result of its execution.
388
388
 
@@ -420,7 +420,7 @@ class AsyncTasksResource(AsyncAPIResource):
420
420
  extra_headers: Headers | None = None,
421
421
  extra_query: Query | None = None,
422
422
  extra_body: Body | None = None,
423
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
423
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
424
424
  ) -> TaskGetSuspendedPayloadResponse:
425
425
  """
426
426
  Retrieves the payload with which a task was suspended, typically for tasks
@@ -454,7 +454,7 @@ class AsyncTasksResource(AsyncAPIResource):
454
454
  extra_headers: Headers | None = None,
455
455
  extra_query: Query | None = None,
456
456
  extra_body: Body | None = None,
457
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
457
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
458
458
  ) -> TaskRetryResponse:
459
459
  """Attempts to retry a failed task.
460
460
 
@@ -489,7 +489,7 @@ class AsyncTasksResource(AsyncAPIResource):
489
489
  extra_headers: Headers | None = None,
490
490
  extra_query: Query | None = None,
491
491
  extra_body: Body | None = None,
492
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
492
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
493
493
  ) -> Optional[TaskUpdateScreenTimeResponse]:
494
494
  """Adds a specified duration to the total screen time recorded for a task.
495
495
 
@@ -2,6 +2,14 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from .events import (
6
+ EventsResource,
7
+ AsyncEventsResource,
8
+ EventsResourceWithRawResponse,
9
+ AsyncEventsResourceWithRawResponse,
10
+ EventsResourceWithStreamingResponse,
11
+ AsyncEventsResourceWithStreamingResponse,
12
+ )
5
13
  from .hie.hie import (
6
14
  HieResource,
7
15
  AsyncHieResource,
@@ -60,14 +68,6 @@ from .communication import (
60
68
  CommunicationResourceWithStreamingResponse,
61
69
  AsyncCommunicationResourceWithStreamingResponse,
62
70
  )
63
- from .events.events import (
64
- EventsResource,
65
- AsyncEventsResource,
66
- EventsResourceWithRawResponse,
67
- AsyncEventsResourceWithRawResponse,
68
- EventsResourceWithStreamingResponse,
69
- AsyncEventsResourceWithStreamingResponse,
70
- )
71
71
  from .ledger.ledger import (
72
72
  LedgerResource,
73
73
  AsyncLedgerResource,
@@ -76,14 +76,6 @@ from .ledger.ledger import (
76
76
  LedgerResourceWithStreamingResponse,
77
77
  AsyncLedgerResourceWithStreamingResponse,
78
78
  )
79
- from .browser_agents import (
80
- BrowserAgentsResource,
81
- AsyncBrowserAgentsResource,
82
- BrowserAgentsResourceWithRawResponse,
83
- AsyncBrowserAgentsResourceWithRawResponse,
84
- BrowserAgentsResourceWithStreamingResponse,
85
- AsyncBrowserAgentsResourceWithStreamingResponse,
86
- )
87
79
  from .documents.documents import (
88
80
  DocumentsResource,
89
81
  AsyncDocumentsResource,
@@ -116,6 +108,14 @@ from .workflow_runs.workflow_runs import (
116
108
  WorkflowRunsResourceWithStreamingResponse,
117
109
  AsyncWorkflowRunsResourceWithStreamingResponse,
118
110
  )
111
+ from .browser_agents.browser_agents import (
112
+ BrowserAgentsResource,
113
+ AsyncBrowserAgentsResource,
114
+ BrowserAgentsResourceWithRawResponse,
115
+ AsyncBrowserAgentsResourceWithRawResponse,
116
+ BrowserAgentsResourceWithStreamingResponse,
117
+ AsyncBrowserAgentsResourceWithStreamingResponse,
118
+ )
119
119
  from .browser_automation.browser_automation import (
120
120
  BrowserAutomationResource,
121
121
  AsyncBrowserAutomationResource,
@@ -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 (
@@ -48,7 +48,7 @@ class StepResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> StepGetOutputResponse:
53
53
  """Retrieves the output data of a specific step within a workflow run.
54
54
 
@@ -105,7 +105,7 @@ class AsyncStepResource(AsyncAPIResource):
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
  ) -> StepGetOutputResponse:
110
110
  """Retrieves the output data of a specific step within a workflow run.
111
111
 
@@ -12,7 +12,7 @@ from .step import (
12
12
  StepResourceWithStreamingResponse,
13
13
  AsyncStepResourceWithStreamingResponse,
14
14
  )
15
- from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
15
+ from ...._types import Body, Query, Headers, NoneType, NotGiven, not_given
16
16
  from ...._utils import maybe_transform, async_maybe_transform
17
17
  from ...._compat import cached_property
18
18
  from ....types.v2 import workflow_run_resume_when_complete_params
@@ -64,7 +64,7 @@ class WorkflowRunsResource(SyncAPIResource):
64
64
  extra_headers: Headers | None = None,
65
65
  extra_query: Query | None = None,
66
66
  extra_body: Body | None = None,
67
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
67
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
68
68
  ) -> WorkflowRunRetrieveResponse:
69
69
  """
70
70
  Retrieves the complete details of a specific workflow run by its ID.
@@ -97,7 +97,7 @@ class WorkflowRunsResource(SyncAPIResource):
97
97
  extra_headers: Headers | None = None,
98
98
  extra_query: Query | None = None,
99
99
  extra_body: Body | None = None,
100
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
100
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
101
101
  ) -> object:
102
102
  """Requests cancellation of a currently active workflow run.
103
103
 
@@ -131,7 +131,7 @@ class WorkflowRunsResource(SyncAPIResource):
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
  ) -> WorkflowRunGetStartDataResponse:
136
136
  """
137
137
  Retrieves the initial data (startData) that was used to initiate the current
@@ -155,7 +155,7 @@ class WorkflowRunsResource(SyncAPIResource):
155
155
  extra_headers: Headers | None = None,
156
156
  extra_query: Query | None = None,
157
157
  extra_body: Body | None = None,
158
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
158
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
159
159
  ) -> WorkflowRunResumeWhenCompleteResponse:
160
160
  """
161
161
  Registers an asynchronous task's result ID to resume a workflow run upon its
@@ -193,7 +193,7 @@ class WorkflowRunsResource(SyncAPIResource):
193
193
  extra_headers: Headers | None = None,
194
194
  extra_query: Query | None = None,
195
195
  extra_body: Body | None = None,
196
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
196
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
197
197
  ) -> None:
198
198
  extra_headers = {"Accept": "*/*", **(extra_headers or {})}
199
199
  return self._get(
@@ -238,7 +238,7 @@ class AsyncWorkflowRunsResource(AsyncAPIResource):
238
238
  extra_headers: Headers | None = None,
239
239
  extra_query: Query | None = None,
240
240
  extra_body: Body | None = None,
241
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
241
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
242
242
  ) -> WorkflowRunRetrieveResponse:
243
243
  """
244
244
  Retrieves the complete details of a specific workflow run by its ID.
@@ -271,7 +271,7 @@ class AsyncWorkflowRunsResource(AsyncAPIResource):
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
  """Requests cancellation of a currently active workflow run.
277
277
 
@@ -305,7 +305,7 @@ class AsyncWorkflowRunsResource(AsyncAPIResource):
305
305
  extra_headers: Headers | None = None,
306
306
  extra_query: Query | None = None,
307
307
  extra_body: Body | None = None,
308
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
308
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
309
309
  ) -> WorkflowRunGetStartDataResponse:
310
310
  """
311
311
  Retrieves the initial data (startData) that was used to initiate the current
@@ -329,7 +329,7 @@ class AsyncWorkflowRunsResource(AsyncAPIResource):
329
329
  extra_headers: Headers | None = None,
330
330
  extra_query: Query | None = None,
331
331
  extra_body: Body | None = None,
332
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
332
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
333
333
  ) -> WorkflowRunResumeWhenCompleteResponse:
334
334
  """
335
335
  Registers an asynchronous task's result ID to resume a workflow run upon its
@@ -367,7 +367,7 @@ class AsyncWorkflowRunsResource(AsyncAPIResource):
367
367
  extra_headers: Headers | None = None,
368
368
  extra_query: Query | None = None,
369
369
  extra_body: Body | None = None,
370
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
370
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
371
371
  ) -> None:
372
372
  extra_headers = {"Accept": "*/*", **(extra_headers or {})}
373
373
  return await self._get(
@@ -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, Omit, Query, Headers, NotGiven, omit, not_given
10
10
  from ..._utils import is_given, maybe_transform, strip_not_given, async_maybe_transform
11
11
  from ..._compat import cached_property
12
12
  from ...types.v2 import workflow_query_params, workflow_start_params
@@ -54,7 +54,7 @@ class WorkflowsResource(SyncAPIResource):
54
54
  extra_headers: Headers | None = None,
55
55
  extra_query: Query | None = None,
56
56
  extra_body: Body | None = None,
57
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
57
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
58
58
  ) -> WorkflowDeployResponse:
59
59
  """
60
60
  Creates a new deployment for the specified workflow ID, making the current
@@ -89,7 +89,7 @@ class WorkflowsResource(SyncAPIResource):
89
89
  extra_headers: Headers | None = None,
90
90
  extra_query: Query | None = None,
91
91
  extra_body: Body | None = None,
92
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
92
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
93
93
  ) -> WorkflowQueryResponse:
94
94
  """
95
95
  Query workflow outputs
@@ -120,14 +120,14 @@ class WorkflowsResource(SyncAPIResource):
120
120
  self,
121
121
  workflow_slug: str,
122
122
  *,
123
- body: object | NotGiven = NOT_GIVEN,
124
- x_sample_start_data_parse_method: Literal["standard", "top-level"] | NotGiven = NOT_GIVEN,
123
+ body: object | Omit = omit,
124
+ x_sample_start_data_parse_method: Literal["standard", "top-level"] | 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
  ) -> WorkflowStartResponse:
132
132
  """Initiates a workflow run based on its slug.
133
133
 
@@ -150,7 +150,7 @@ class WorkflowsResource(SyncAPIResource):
150
150
  {
151
151
  "X-Sample-Start-Data-Parse-Method": str(x_sample_start_data_parse_method)
152
152
  if is_given(x_sample_start_data_parse_method)
153
- else NOT_GIVEN
153
+ else not_given
154
154
  }
155
155
  ),
156
156
  **(extra_headers or {}),
@@ -194,7 +194,7 @@ class AsyncWorkflowsResource(AsyncAPIResource):
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
  ) -> WorkflowDeployResponse:
199
199
  """
200
200
  Creates a new deployment for the specified workflow ID, making the current
@@ -229,7 +229,7 @@ class AsyncWorkflowsResource(AsyncAPIResource):
229
229
  extra_headers: Headers | None = None,
230
230
  extra_query: Query | None = None,
231
231
  extra_body: Body | None = None,
232
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
232
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
233
233
  ) -> WorkflowQueryResponse:
234
234
  """
235
235
  Query workflow outputs
@@ -260,14 +260,14 @@ class AsyncWorkflowsResource(AsyncAPIResource):
260
260
  self,
261
261
  workflow_slug: str,
262
262
  *,
263
- body: object | NotGiven = NOT_GIVEN,
264
- x_sample_start_data_parse_method: Literal["standard", "top-level"] | NotGiven = NOT_GIVEN,
263
+ body: object | Omit = omit,
264
+ x_sample_start_data_parse_method: Literal["standard", "top-level"] | Omit = omit,
265
265
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
266
266
  # The extra values given here take precedence over values defined on the client or passed to this method.
267
267
  extra_headers: Headers | None = None,
268
268
  extra_query: Query | None = None,
269
269
  extra_body: Body | None = None,
270
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
270
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
271
271
  ) -> WorkflowStartResponse:
272
272
  """Initiates a workflow run based on its slug.
273
273
 
@@ -290,7 +290,7 @@ class AsyncWorkflowsResource(AsyncAPIResource):
290
290
  {
291
291
  "X-Sample-Start-Data-Parse-Method": str(x_sample_start_data_parse_method)
292
292
  if is_given(x_sample_start_data_parse_method)
293
- else NOT_GIVEN
293
+ else not_given
294
294
  }
295
295
  ),
296
296
  **(extra_headers or {}),