samplehc 0.11.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 (60) 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_automation/availity.py +3 -3
  15. samplehc/resources/v2/clearinghouse/claim.py +29 -29
  16. samplehc/resources/v2/clearinghouse/clearinghouse.py +33 -33
  17. samplehc/resources/v2/clearinghouse/payers.py +5 -5
  18. samplehc/resources/v2/communication.py +29 -29
  19. samplehc/resources/v2/database.py +5 -5
  20. samplehc/resources/v2/documents/documents.py +152 -37
  21. samplehc/resources/v2/documents/formats.py +3 -3
  22. samplehc/resources/v2/documents/legacy.py +91 -6
  23. samplehc/resources/v2/documents/pdf_template.py +3 -3
  24. samplehc/resources/v2/documents/templates.py +27 -27
  25. samplehc/resources/v2/events.py +7 -7
  26. samplehc/resources/v2/hie/adt.py +7 -7
  27. samplehc/resources/v2/hie/documents.py +15 -15
  28. samplehc/resources/v2/integrations/bank/transactions.py +5 -5
  29. samplehc/resources/v2/integrations/careviso.py +29 -29
  30. samplehc/resources/v2/integrations/glidian/glidian.py +13 -13
  31. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +5 -5
  32. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +19 -19
  33. samplehc/resources/v2/integrations/kno2/messages.py +5 -5
  34. samplehc/resources/v2/integrations/salesforce.py +7 -7
  35. samplehc/resources/v2/integrations/snowflake.py +3 -3
  36. samplehc/resources/v2/integrations/xcures.py +7 -7
  37. samplehc/resources/v2/ledger/account.py +10 -11
  38. samplehc/resources/v2/ledger/entry.py +21 -22
  39. samplehc/resources/v2/policies.py +47 -47
  40. samplehc/resources/v2/tasks/state.py +7 -7
  41. samplehc/resources/v2/tasks/tasks.py +15 -15
  42. samplehc/resources/v2/workflow_runs/step.py +3 -3
  43. samplehc/resources/v2/workflow_runs/workflow_runs.py +11 -11
  44. samplehc/resources/v2/workflows.py +13 -13
  45. samplehc/types/v2/__init__.py +1 -0
  46. samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +0 -2
  47. samplehc/types/v2/document_extract_params.py +4 -1
  48. samplehc/types/v2/document_split_params.py +16 -1
  49. samplehc/types/v2/document_unzip_async_response.py +12 -0
  50. samplehc/types/v2/documents/__init__.py +2 -0
  51. samplehc/types/v2/documents/legacy_split_params.py +20 -0
  52. samplehc/types/v2/documents/legacy_split_response.py +12 -0
  53. samplehc/types/v2/documents/template_render_document_params.py +17 -5
  54. samplehc/types/v2/ledger/account_writeoff_params.py +2 -3
  55. samplehc/types/v2/ledger/entry_post_params.py +1 -2
  56. samplehc/types/v2/ledger/entry_reverse_params.py +2 -3
  57. {samplehc-0.11.0.dist-info → samplehc-0.12.0.dist-info}/METADATA +1 -1
  58. {samplehc-0.11.0.dist-info → samplehc-0.12.0.dist-info}/RECORD +60 -57
  59. {samplehc-0.11.0.dist-info → samplehc-0.12.0.dist-info}/WHEEL +0 -0
  60. {samplehc-0.11.0.dist-info → samplehc-0.12.0.dist-info}/licenses/LICENSE +0 -0
samplehc/__init__.py CHANGED
@@ -3,7 +3,7 @@
3
3
  import typing as _t
4
4
 
5
5
  from . import types
6
- from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
6
+ from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
7
7
  from ._utils import file_from_path
8
8
  from ._client import (
9
9
  Client,
@@ -48,7 +48,9 @@ __all__ = [
48
48
  "ProxiesTypes",
49
49
  "NotGiven",
50
50
  "NOT_GIVEN",
51
+ "not_given",
51
52
  "Omit",
53
+ "omit",
52
54
  "SampleHealthcareError",
53
55
  "APIError",
54
56
  "APIStatusError",
samplehc/_base_client.py CHANGED
@@ -42,7 +42,6 @@ from . import _exceptions
42
42
  from ._qs import Querystring
43
43
  from ._files import to_httpx_files, async_to_httpx_files
44
44
  from ._types import (
45
- NOT_GIVEN,
46
45
  Body,
47
46
  Omit,
48
47
  Query,
@@ -57,6 +56,7 @@ from ._types import (
57
56
  RequestOptions,
58
57
  HttpxRequestFiles,
59
58
  ModelBuilderProtocol,
59
+ not_given,
60
60
  )
61
61
  from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
62
62
  from ._compat import PYDANTIC_V1, model_copy, model_dump
@@ -145,9 +145,9 @@ class PageInfo:
145
145
  def __init__(
146
146
  self,
147
147
  *,
148
- url: URL | NotGiven = NOT_GIVEN,
149
- json: Body | NotGiven = NOT_GIVEN,
150
- params: Query | NotGiven = NOT_GIVEN,
148
+ url: URL | NotGiven = not_given,
149
+ json: Body | NotGiven = not_given,
150
+ params: Query | NotGiven = not_given,
151
151
  ) -> None:
152
152
  self.url = url
153
153
  self.json = json
@@ -595,7 +595,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
595
595
  # we internally support defining a temporary header to override the
596
596
  # default `cast_to` type for use with `.with_raw_response` and `.with_streaming_response`
597
597
  # see _response.py for implementation details
598
- override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, NOT_GIVEN)
598
+ override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, not_given)
599
599
  if is_given(override_cast_to):
600
600
  options.headers = headers
601
601
  return cast(Type[ResponseT], override_cast_to)
@@ -825,7 +825,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
825
825
  version: str,
826
826
  base_url: str | URL,
827
827
  max_retries: int = DEFAULT_MAX_RETRIES,
828
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
828
+ timeout: float | Timeout | None | NotGiven = not_given,
829
829
  http_client: httpx.Client | None = None,
830
830
  custom_headers: Mapping[str, str] | None = None,
831
831
  custom_query: Mapping[str, object] | None = None,
@@ -1356,7 +1356,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1356
1356
  base_url: str | URL,
1357
1357
  _strict_response_validation: bool,
1358
1358
  max_retries: int = DEFAULT_MAX_RETRIES,
1359
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
1359
+ timeout: float | Timeout | None | NotGiven = not_given,
1360
1360
  http_client: httpx.AsyncClient | None = None,
1361
1361
  custom_headers: Mapping[str, str] | None = None,
1362
1362
  custom_query: Mapping[str, object] | None = None,
@@ -1818,8 +1818,8 @@ def make_request_options(
1818
1818
  extra_query: Query | None = None,
1819
1819
  extra_body: Body | None = None,
1820
1820
  idempotency_key: str | None = None,
1821
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1822
- post_parser: PostParser | NotGiven = NOT_GIVEN,
1821
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
1822
+ post_parser: PostParser | NotGiven = not_given,
1823
1823
  ) -> RequestOptions:
1824
1824
  """Create a dict of type RequestOptions without keys of NotGiven values."""
1825
1825
  options: RequestOptions = {}
samplehc/_client.py CHANGED
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import os
6
- from typing import Any, Union, Mapping
6
+ from typing import Any, Mapping
7
7
  from typing_extensions import Self, override
8
8
 
9
9
  import httpx
@@ -11,7 +11,6 @@ import httpx
11
11
  from . import _exceptions
12
12
  from ._qs import Querystring
13
13
  from ._types import (
14
- NOT_GIVEN,
15
14
  Omit,
16
15
  Headers,
17
16
  Timeout,
@@ -19,6 +18,7 @@ from ._types import (
19
18
  Transport,
20
19
  ProxiesTypes,
21
20
  RequestOptions,
21
+ not_given,
22
22
  )
23
23
  from ._utils import is_given, get_async_library
24
24
  from ._version import __version__
@@ -58,7 +58,7 @@ class SampleHealthcare(SyncAPIClient):
58
58
  *,
59
59
  api_key: str | None = None,
60
60
  base_url: str | httpx.URL | None = None,
61
- timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
61
+ timeout: float | Timeout | None | NotGiven = not_given,
62
62
  max_retries: int = DEFAULT_MAX_RETRIES,
63
63
  default_headers: Mapping[str, str] | None = None,
64
64
  default_query: Mapping[str, object] | None = None,
@@ -143,9 +143,9 @@ class SampleHealthcare(SyncAPIClient):
143
143
  *,
144
144
  api_key: str | None = None,
145
145
  base_url: str | httpx.URL | None = None,
146
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
146
+ timeout: float | Timeout | None | NotGiven = not_given,
147
147
  http_client: httpx.Client | None = None,
148
- max_retries: int | NotGiven = NOT_GIVEN,
148
+ max_retries: int | NotGiven = not_given,
149
149
  default_headers: Mapping[str, str] | None = None,
150
150
  set_default_headers: Mapping[str, str] | None = None,
151
151
  default_query: Mapping[str, object] | None = None,
@@ -237,7 +237,7 @@ class AsyncSampleHealthcare(AsyncAPIClient):
237
237
  *,
238
238
  api_key: str | None = None,
239
239
  base_url: str | httpx.URL | None = None,
240
- timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
240
+ timeout: float | Timeout | None | NotGiven = not_given,
241
241
  max_retries: int = DEFAULT_MAX_RETRIES,
242
242
  default_headers: Mapping[str, str] | None = None,
243
243
  default_query: Mapping[str, object] | None = None,
@@ -322,9 +322,9 @@ class AsyncSampleHealthcare(AsyncAPIClient):
322
322
  *,
323
323
  api_key: str | None = None,
324
324
  base_url: str | httpx.URL | None = None,
325
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
325
+ timeout: float | Timeout | None | NotGiven = not_given,
326
326
  http_client: httpx.AsyncClient | None = None,
327
- max_retries: int | NotGiven = NOT_GIVEN,
327
+ max_retries: int | NotGiven = not_given,
328
328
  default_headers: Mapping[str, str] | None = None,
329
329
  set_default_headers: Mapping[str, str] | None = None,
330
330
  default_query: Mapping[str, object] | None = None,
samplehc/_models.py CHANGED
@@ -256,7 +256,7 @@ class BaseModel(pydantic.BaseModel):
256
256
  mode: Literal["json", "python"] | str = "python",
257
257
  include: IncEx | None = None,
258
258
  exclude: IncEx | None = None,
259
- by_alias: bool = False,
259
+ by_alias: bool | None = None,
260
260
  exclude_unset: bool = False,
261
261
  exclude_defaults: bool = False,
262
262
  exclude_none: bool = False,
@@ -264,6 +264,7 @@ class BaseModel(pydantic.BaseModel):
264
264
  warnings: bool | Literal["none", "warn", "error"] = True,
265
265
  context: dict[str, Any] | None = None,
266
266
  serialize_as_any: bool = False,
267
+ fallback: Callable[[Any], Any] | None = None,
267
268
  ) -> dict[str, Any]:
268
269
  """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump
269
270
 
@@ -295,10 +296,12 @@ class BaseModel(pydantic.BaseModel):
295
296
  raise ValueError("context is only supported in Pydantic v2")
296
297
  if serialize_as_any != False:
297
298
  raise ValueError("serialize_as_any is only supported in Pydantic v2")
299
+ if fallback is not None:
300
+ raise ValueError("fallback is only supported in Pydantic v2")
298
301
  dumped = super().dict( # pyright: ignore[reportDeprecated]
299
302
  include=include,
300
303
  exclude=exclude,
301
- by_alias=by_alias,
304
+ by_alias=by_alias if by_alias is not None else False,
302
305
  exclude_unset=exclude_unset,
303
306
  exclude_defaults=exclude_defaults,
304
307
  exclude_none=exclude_none,
@@ -313,13 +316,14 @@ class BaseModel(pydantic.BaseModel):
313
316
  indent: int | None = None,
314
317
  include: IncEx | None = None,
315
318
  exclude: IncEx | None = None,
316
- by_alias: bool = False,
319
+ by_alias: bool | None = None,
317
320
  exclude_unset: bool = False,
318
321
  exclude_defaults: bool = False,
319
322
  exclude_none: bool = False,
320
323
  round_trip: bool = False,
321
324
  warnings: bool | Literal["none", "warn", "error"] = True,
322
325
  context: dict[str, Any] | None = None,
326
+ fallback: Callable[[Any], Any] | None = None,
323
327
  serialize_as_any: bool = False,
324
328
  ) -> str:
325
329
  """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json
@@ -348,11 +352,13 @@ class BaseModel(pydantic.BaseModel):
348
352
  raise ValueError("context is only supported in Pydantic v2")
349
353
  if serialize_as_any != False:
350
354
  raise ValueError("serialize_as_any is only supported in Pydantic v2")
355
+ if fallback is not None:
356
+ raise ValueError("fallback is only supported in Pydantic v2")
351
357
  return super().json( # type: ignore[reportDeprecated]
352
358
  indent=indent,
353
359
  include=include,
354
360
  exclude=exclude,
355
- by_alias=by_alias,
361
+ by_alias=by_alias if by_alias is not None else False,
356
362
  exclude_unset=exclude_unset,
357
363
  exclude_defaults=exclude_defaults,
358
364
  exclude_none=exclude_none,
samplehc/_qs.py CHANGED
@@ -4,7 +4,7 @@ from typing import Any, List, Tuple, Union, Mapping, TypeVar
4
4
  from urllib.parse import parse_qs, urlencode
5
5
  from typing_extensions import Literal, get_args
6
6
 
7
- from ._types import NOT_GIVEN, NotGiven, NotGivenOr
7
+ from ._types import NotGiven, not_given
8
8
  from ._utils import flatten
9
9
 
10
10
  _T = TypeVar("_T")
@@ -41,8 +41,8 @@ class Querystring:
41
41
  self,
42
42
  params: Params,
43
43
  *,
44
- array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
45
- nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
44
+ array_format: ArrayFormat | NotGiven = not_given,
45
+ nested_format: NestedFormat | NotGiven = not_given,
46
46
  ) -> str:
47
47
  return urlencode(
48
48
  self.stringify_items(
@@ -56,8 +56,8 @@ class Querystring:
56
56
  self,
57
57
  params: Params,
58
58
  *,
59
- array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
60
- nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
59
+ array_format: ArrayFormat | NotGiven = not_given,
60
+ nested_format: NestedFormat | NotGiven = not_given,
61
61
  ) -> list[tuple[str, str]]:
62
62
  opts = Options(
63
63
  qs=self,
@@ -143,8 +143,8 @@ class Options:
143
143
  self,
144
144
  qs: Querystring = _qs,
145
145
  *,
146
- array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
147
- nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
146
+ array_format: ArrayFormat | NotGiven = not_given,
147
+ nested_format: NestedFormat | NotGiven = not_given,
148
148
  ) -> None:
149
149
  self.array_format = qs.array_format if isinstance(array_format, NotGiven) else array_format
150
150
  self.nested_format = qs.nested_format if isinstance(nested_format, NotGiven) else nested_format
samplehc/_types.py CHANGED
@@ -117,18 +117,21 @@ class RequestOptions(TypedDict, total=False):
117
117
  # Sentinel class used until PEP 0661 is accepted
118
118
  class NotGiven:
119
119
  """
120
- A sentinel singleton class used to distinguish omitted keyword arguments
121
- from those passed in with the value None (which may have different behavior).
120
+ For parameters with a meaningful None value, we need to distinguish between
121
+ the user explicitly passing None, and the user not passing the parameter at
122
+ all.
123
+
124
+ User code shouldn't need to use not_given directly.
122
125
 
123
126
  For example:
124
127
 
125
128
  ```py
126
- def get(timeout: Union[int, NotGiven, None] = NotGiven()) -> Response: ...
129
+ def create(timeout: Timeout | None | NotGiven = not_given): ...
127
130
 
128
131
 
129
- get(timeout=1) # 1s timeout
130
- get(timeout=None) # No timeout
131
- get() # Default timeout behavior, which may not be statically known at the method definition.
132
+ create(timeout=1) # 1s timeout
133
+ create(timeout=None) # No timeout
134
+ create() # Default timeout behavior
132
135
  ```
133
136
  """
134
137
 
@@ -140,13 +143,14 @@ class NotGiven:
140
143
  return "NOT_GIVEN"
141
144
 
142
145
 
143
- NotGivenOr = Union[_T, NotGiven]
146
+ not_given = NotGiven()
147
+ # for backwards compatibility:
144
148
  NOT_GIVEN = NotGiven()
145
149
 
146
150
 
147
151
  class Omit:
148
- """In certain situations you need to be able to represent a case where a default value has
149
- to be explicitly removed and `None` is not an appropriate substitute, for example:
152
+ """
153
+ To explicitly omit something from being sent in a request, use `omit`.
150
154
 
151
155
  ```py
152
156
  # as the default `Content-Type` header is `application/json` that will be sent
@@ -156,8 +160,8 @@ class Omit:
156
160
  # to look something like: 'multipart/form-data; boundary=0d8382fcf5f8c3be01ca2e11002d2983'
157
161
  client.post(..., headers={"Content-Type": "multipart/form-data"})
158
162
 
159
- # instead you can remove the default `application/json` header by passing Omit
160
- client.post(..., headers={"Content-Type": Omit()})
163
+ # instead you can remove the default `application/json` header by passing omit
164
+ client.post(..., headers={"Content-Type": omit})
161
165
  ```
162
166
  """
163
167
 
@@ -165,6 +169,9 @@ class Omit:
165
169
  return False
166
170
 
167
171
 
172
+ omit = Omit()
173
+
174
+
168
175
  @runtime_checkable
169
176
  class ModelBuilderProtocol(Protocol):
170
177
  @classmethod
@@ -268,7 +268,7 @@ def _transform_typeddict(
268
268
  annotations = get_type_hints(expected_type, include_extras=True)
269
269
  for key, value in data.items():
270
270
  if not is_given(value):
271
- # we don't need to include `NotGiven` values here as they'll
271
+ # we don't need to include omitted values here as they'll
272
272
  # be stripped out before the request is sent anyway
273
273
  continue
274
274
 
@@ -434,7 +434,7 @@ async def _async_transform_typeddict(
434
434
  annotations = get_type_hints(expected_type, include_extras=True)
435
435
  for key, value in data.items():
436
436
  if not is_given(value):
437
- # we don't need to include `NotGiven` values here as they'll
437
+ # we don't need to include omitted values here as they'll
438
438
  # be stripped out before the request is sent anyway
439
439
  continue
440
440
 
samplehc/_utils/_utils.py CHANGED
@@ -21,7 +21,7 @@ from typing_extensions import TypeGuard
21
21
 
22
22
  import sniffio
23
23
 
24
- from .._types import NotGiven, FileTypes, NotGivenOr, HeadersLike
24
+ from .._types import Omit, NotGiven, FileTypes, HeadersLike
25
25
 
26
26
  _T = TypeVar("_T")
27
27
  _TupleT = TypeVar("_TupleT", bound=Tuple[object, ...])
@@ -63,7 +63,7 @@ def _extract_items(
63
63
  try:
64
64
  key = path[index]
65
65
  except IndexError:
66
- if isinstance(obj, NotGiven):
66
+ if not is_given(obj):
67
67
  # no value was provided - we can safely ignore
68
68
  return []
69
69
 
@@ -126,8 +126,8 @@ def _extract_items(
126
126
  return []
127
127
 
128
128
 
129
- def is_given(obj: NotGivenOr[_T]) -> TypeGuard[_T]:
130
- return not isinstance(obj, NotGiven)
129
+ def is_given(obj: _T | NotGiven | Omit) -> TypeGuard[_T]:
130
+ return not isinstance(obj, NotGiven) and not isinstance(obj, Omit)
131
131
 
132
132
 
133
133
  # Type safe methods for narrowing types with TypeVars.
samplehc/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "samplehc"
4
- __version__ = "0.11.0" # x-release-please-version
4
+ __version__ = "0.12.0" # x-release-please-version
@@ -7,7 +7,7 @@ from typing import Any, Iterable, cast
7
7
  import httpx
8
8
 
9
9
  from ...types import v1_sql_execute_params, v1_query_audit_logs_params
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
@@ -53,7 +53,7 @@ class V1Resource(SyncAPIResource):
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
  ) -> V1QueryAuditLogsResponse:
58
58
  """Retrieves audit logs.
59
59
 
@@ -84,14 +84,14 @@ class V1Resource(SyncAPIResource):
84
84
  self,
85
85
  *,
86
86
  query: str,
87
- array_mode: bool | NotGiven = NOT_GIVEN,
88
- params: Iterable[object] | NotGiven = NOT_GIVEN,
87
+ array_mode: bool | Omit = omit,
88
+ params: Iterable[object] | Omit = omit,
89
89
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
90
90
  # The extra values given here take precedence over values defined on the client or passed to this method.
91
91
  extra_headers: Headers | None = None,
92
92
  extra_query: Query | None = None,
93
93
  extra_body: Body | None = None,
94
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
94
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
95
95
  ) -> V1SqlExecuteResponse:
96
96
  """Allows execution of arbitrary SQL queries against the Sample database.
97
97
 
@@ -166,7 +166,7 @@ class AsyncV1Resource(AsyncAPIResource):
166
166
  extra_headers: Headers | None = None,
167
167
  extra_query: Query | None = None,
168
168
  extra_body: Body | None = None,
169
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
169
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
170
170
  ) -> V1QueryAuditLogsResponse:
171
171
  """Retrieves audit logs.
172
172
 
@@ -197,14 +197,14 @@ class AsyncV1Resource(AsyncAPIResource):
197
197
  self,
198
198
  *,
199
199
  query: str,
200
- array_mode: bool | NotGiven = NOT_GIVEN,
201
- params: Iterable[object] | NotGiven = NOT_GIVEN,
200
+ array_mode: bool | Omit = omit,
201
+ params: Iterable[object] | Omit = omit,
202
202
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
203
203
  # The extra values given here take precedence over values defined on the client or passed to this method.
204
204
  extra_headers: Headers | None = None,
205
205
  extra_query: Query | None = None,
206
206
  extra_body: Body | None = None,
207
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
207
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
208
208
  ) -> V1SqlExecuteResponse:
209
209
  """Allows execution of arbitrary SQL queries against the Sample database.
210
210
 
@@ -6,7 +6,7 @@ from typing_extensions import overload
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 required_args, maybe_transform, async_maybe_transform
11
11
  from ..._compat import cached_property
12
12
  from ...types.v2 import async_result_sleep_params
@@ -53,7 +53,7 @@ class AsyncResultsResource(SyncAPIResource):
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
  ) -> AsyncResultRetrieveResponse:
58
58
  """
59
59
  Retrieves the status and result of an asynchronous operation.
@@ -87,7 +87,7 @@ class AsyncResultsResource(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
  ) -> AsyncResultSleepResponse:
92
92
  """
93
93
  Creates an async result that will automatically resolve after a specified delay
@@ -116,7 +116,7 @@ class AsyncResultsResource(SyncAPIResource):
116
116
  extra_headers: Headers | None = None,
117
117
  extra_query: Query | None = None,
118
118
  extra_body: Body | None = None,
119
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
119
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
120
120
  ) -> AsyncResultSleepResponse:
121
121
  """
122
122
  Creates an async result that will automatically resolve after a specified delay
@@ -139,14 +139,14 @@ class AsyncResultsResource(SyncAPIResource):
139
139
  def sleep(
140
140
  self,
141
141
  *,
142
- delay: float | NotGiven = NOT_GIVEN,
143
- resume_at: str | NotGiven = NOT_GIVEN,
142
+ delay: float | Omit = omit,
143
+ resume_at: str | Omit = omit,
144
144
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
145
145
  # The extra values given here take precedence over values defined on the client or passed to this method.
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
  ) -> AsyncResultSleepResponse:
151
151
  return self._post(
152
152
  "/api/v2/async-results/sleep",
@@ -193,7 +193,7 @@ class AsyncAsyncResultsResource(AsyncAPIResource):
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
  ) -> AsyncResultRetrieveResponse:
198
198
  """
199
199
  Retrieves the status and result of an asynchronous operation.
@@ -227,7 +227,7 @@ class AsyncAsyncResultsResource(AsyncAPIResource):
227
227
  extra_headers: Headers | None = None,
228
228
  extra_query: Query | None = None,
229
229
  extra_body: Body | None = None,
230
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
230
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
231
231
  ) -> AsyncResultSleepResponse:
232
232
  """
233
233
  Creates an async result that will automatically resolve after a specified delay
@@ -256,7 +256,7 @@ class AsyncAsyncResultsResource(AsyncAPIResource):
256
256
  extra_headers: Headers | None = None,
257
257
  extra_query: Query | None = None,
258
258
  extra_body: Body | None = None,
259
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
259
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
260
260
  ) -> AsyncResultSleepResponse:
261
261
  """
262
262
  Creates an async result that will automatically resolve after a specified delay
@@ -279,14 +279,14 @@ class AsyncAsyncResultsResource(AsyncAPIResource):
279
279
  async def sleep(
280
280
  self,
281
281
  *,
282
- delay: float | NotGiven = NOT_GIVEN,
283
- resume_at: str | NotGiven = NOT_GIVEN,
282
+ delay: float | Omit = omit,
283
+ resume_at: str | Omit = omit,
284
284
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
285
285
  # The extra values given here take precedence over values defined on the client or passed to this method.
286
286
  extra_headers: Headers | None = None,
287
287
  extra_query: Query | None = None,
288
288
  extra_body: Body | None = None,
289
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
289
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
290
290
  ) -> AsyncResultSleepResponse:
291
291
  return await self._post(
292
292
  "/api/v2/async-results/sleep",
@@ -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, Omit, Query, Headers, NotGiven, omit, not_given
10
10
  from ...._utils import maybe_transform, async_maybe_transform
11
11
  from .runs.runs import (
12
12
  RunsResource,
@@ -59,13 +59,13 @@ class BrowserAgentsResource(SyncAPIResource):
59
59
  self,
60
60
  slug: str,
61
61
  *,
62
- variables: Dict[str, object] | NotGiven = NOT_GIVEN,
62
+ variables: Dict[str, object] | 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
  ) -> BrowserAgentInvokeResponse:
70
70
  """
71
71
  Start execution of a browser agent with optional variables.
@@ -121,13 +121,13 @@ class AsyncBrowserAgentsResource(AsyncAPIResource):
121
121
  self,
122
122
  slug: str,
123
123
  *,
124
- variables: Dict[str, object] | NotGiven = NOT_GIVEN,
124
+ variables: Dict[str, object] | 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
  ) -> BrowserAgentInvokeResponse:
132
132
  """
133
133
  Start execution of a browser agent with optional variables.
@@ -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
@@ -53,7 +53,7 @@ class HelpRequestsResource(SyncAPIResource):
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
  ) -> HelpRequestResolveResponse:
58
58
  """
59
59
  Update the resolution and resolvedAt for a help request on a browser agent run.
@@ -119,7 +119,7 @@ class AsyncHelpRequestsResource(AsyncAPIResource):
119
119
  extra_headers: Headers | None = None,
120
120
  extra_query: Query | None = None,
121
121
  extra_body: Body | None = None,
122
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
122
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
123
123
  ) -> HelpRequestResolveResponse:
124
124
  """
125
125
  Update the resolution and resolvedAt for a help request on a browser agent run.
@@ -6,7 +6,7 @@ from typing_extensions import Literal
6
6
 
7
7
  import httpx
8
8
 
9
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
9
+ from ...._types import Body, Query, Headers, NotGiven, not_given
10
10
  from ...._utils import maybe_transform, async_maybe_transform
11
11
  from ...._compat import cached_property
12
12
  from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -75,7 +75,7 @@ class AvailityResource(SyncAPIResource):
75
75
  extra_headers: Headers | None = None,
76
76
  extra_query: Query | None = None,
77
77
  extra_body: Body | None = None,
78
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
78
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
79
79
  ) -> AvailitySubmitAppealResponse:
80
80
  """Initiates an asynchronous process to submit an appeal to Availity.
81
81
 
@@ -170,7 +170,7 @@ class AsyncAvailityResource(AsyncAPIResource):
170
170
  extra_headers: Headers | None = None,
171
171
  extra_query: Query | None = None,
172
172
  extra_body: Body | None = None,
173
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
173
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
174
174
  ) -> AvailitySubmitAppealResponse:
175
175
  """Initiates an asynchronous process to submit an appeal to Availity.
176
176