samplehc 0.5.0__py3-none-any.whl → 0.6.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 (45) hide show
  1. samplehc/_version.py +1 -1
  2. samplehc/resources/v2/__init__.py +14 -0
  3. samplehc/resources/v2/browser_agents.py +177 -0
  4. samplehc/resources/v2/clearinghouse/claim.py +20 -32
  5. samplehc/resources/v2/communication.py +8 -0
  6. samplehc/resources/v2/database.py +19 -9
  7. samplehc/resources/v2/events.py +2 -2
  8. samplehc/resources/v2/integrations/__init__.py +14 -0
  9. samplehc/resources/v2/integrations/glidian/__init__.py +33 -0
  10. samplehc/resources/v2/integrations/glidian/glidian.py +425 -0
  11. samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +33 -0
  12. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +276 -0
  13. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +527 -0
  14. samplehc/resources/v2/integrations/integrations.py +32 -0
  15. samplehc/resources/v2/v2.py +32 -0
  16. samplehc/types/v2/__init__.py +2 -0
  17. samplehc/types/v2/browser_agent_invoke_params.py +13 -0
  18. samplehc/types/v2/browser_agent_invoke_response.py +12 -0
  19. samplehc/types/v2/clearinghouse/claim_submit_params.py +1214 -882
  20. samplehc/types/v2/clearinghouse/claim_submit_response.py +10 -1
  21. samplehc/types/v2/communication_send_email_params.py +3 -0
  22. samplehc/types/v2/database_execute_sql_params.py +5 -3
  23. samplehc/types/v2/event_emit_params.py +1 -1
  24. samplehc/types/v2/integrations/__init__.py +10 -0
  25. samplehc/types/v2/integrations/glidian/__init__.py +20 -0
  26. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +32 -0
  27. samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +22 -0
  28. samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +11 -0
  29. samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +14 -0
  30. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +20 -0
  31. samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +14 -0
  32. samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +7 -0
  33. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +40 -0
  34. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +22 -0
  35. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +17 -0
  36. samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +17 -0
  37. samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +31 -0
  38. samplehc/types/v2/integrations/glidian_list_payers_params.py +11 -0
  39. samplehc/types/v2/integrations/glidian_list_payers_response.py +17 -0
  40. samplehc/types/v2/integrations/glidian_list_services_params.py +13 -0
  41. samplehc/types/v2/integrations/glidian_list_services_response.py +19 -0
  42. {samplehc-0.5.0.dist-info → samplehc-0.6.0.dist-info}/METADATA +1 -1
  43. {samplehc-0.5.0.dist-info → samplehc-0.6.0.dist-info}/RECORD +45 -20
  44. {samplehc-0.5.0.dist-info → samplehc-0.6.0.dist-info}/WHEEL +0 -0
  45. {samplehc-0.5.0.dist-info → samplehc-0.6.0.dist-info}/licenses/LICENSE +0 -0
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.5.0" # x-release-please-version
4
+ __version__ = "0.6.0" # x-release-please-version
@@ -112,6 +112,14 @@ from .workflow_runs import (
112
112
  WorkflowRunsResourceWithStreamingResponse,
113
113
  AsyncWorkflowRunsResourceWithStreamingResponse,
114
114
  )
115
+ from .browser_agents import (
116
+ BrowserAgentsResource,
117
+ AsyncBrowserAgentsResource,
118
+ BrowserAgentsResourceWithRawResponse,
119
+ AsyncBrowserAgentsResourceWithRawResponse,
120
+ BrowserAgentsResourceWithStreamingResponse,
121
+ AsyncBrowserAgentsResourceWithStreamingResponse,
122
+ )
115
123
  from .browser_automation import (
116
124
  BrowserAutomationResource,
117
125
  AsyncBrowserAutomationResource,
@@ -182,6 +190,12 @@ __all__ = [
182
190
  "AsyncEventsResourceWithRawResponse",
183
191
  "EventsResourceWithStreamingResponse",
184
192
  "AsyncEventsResourceWithStreamingResponse",
193
+ "BrowserAgentsResource",
194
+ "AsyncBrowserAgentsResource",
195
+ "BrowserAgentsResourceWithRawResponse",
196
+ "AsyncBrowserAgentsResourceWithRawResponse",
197
+ "BrowserAgentsResourceWithStreamingResponse",
198
+ "AsyncBrowserAgentsResourceWithStreamingResponse",
185
199
  "PoliciesResource",
186
200
  "AsyncPoliciesResource",
187
201
  "PoliciesResourceWithRawResponse",
@@ -0,0 +1,177 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ import httpx
8
+
9
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ..._utils import maybe_transform, async_maybe_transform
11
+ from ..._compat import cached_property
12
+ from ...types.v2 import browser_agent_invoke_params
13
+ from ..._resource import SyncAPIResource, AsyncAPIResource
14
+ from ..._response import (
15
+ to_raw_response_wrapper,
16
+ to_streamed_response_wrapper,
17
+ async_to_raw_response_wrapper,
18
+ async_to_streamed_response_wrapper,
19
+ )
20
+ from ..._base_client import make_request_options
21
+ from ...types.v2.browser_agent_invoke_response import BrowserAgentInvokeResponse
22
+
23
+ __all__ = ["BrowserAgentsResource", "AsyncBrowserAgentsResource"]
24
+
25
+
26
+ class BrowserAgentsResource(SyncAPIResource):
27
+ @cached_property
28
+ def with_raw_response(self) -> BrowserAgentsResourceWithRawResponse:
29
+ """
30
+ This property can be used as a prefix for any HTTP method call to return
31
+ the raw response object instead of the parsed content.
32
+
33
+ For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
34
+ """
35
+ return BrowserAgentsResourceWithRawResponse(self)
36
+
37
+ @cached_property
38
+ def with_streaming_response(self) -> BrowserAgentsResourceWithStreamingResponse:
39
+ """
40
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
41
+
42
+ For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
43
+ """
44
+ return BrowserAgentsResourceWithStreamingResponse(self)
45
+
46
+ def invoke(
47
+ self,
48
+ slug: str,
49
+ *,
50
+ variables: Dict[str, object] | NotGiven = NOT_GIVEN,
51
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52
+ # The extra values given here take precedence over values defined on the client or passed to this method.
53
+ extra_headers: Headers | None = None,
54
+ extra_query: Query | None = None,
55
+ extra_body: Body | None = None,
56
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
57
+ ) -> BrowserAgentInvokeResponse:
58
+ """
59
+ Start execution of a browser agent with optional variables.
60
+
61
+ Args:
62
+ variables: Variables to pass to the browser agent
63
+
64
+ extra_headers: Send extra headers
65
+
66
+ extra_query: Add additional query parameters to the request
67
+
68
+ extra_body: Add additional JSON properties to the request
69
+
70
+ timeout: Override the client-level default timeout for this request, in seconds
71
+ """
72
+ if not slug:
73
+ raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
74
+ return self._post(
75
+ f"/api/v2/browser-agents/{slug}/invoke",
76
+ body=maybe_transform({"variables": variables}, browser_agent_invoke_params.BrowserAgentInvokeParams),
77
+ options=make_request_options(
78
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
79
+ ),
80
+ cast_to=BrowserAgentInvokeResponse,
81
+ )
82
+
83
+
84
+ class AsyncBrowserAgentsResource(AsyncAPIResource):
85
+ @cached_property
86
+ def with_raw_response(self) -> AsyncBrowserAgentsResourceWithRawResponse:
87
+ """
88
+ This property can be used as a prefix for any HTTP method call to return
89
+ the raw response object instead of the parsed content.
90
+
91
+ For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
92
+ """
93
+ return AsyncBrowserAgentsResourceWithRawResponse(self)
94
+
95
+ @cached_property
96
+ def with_streaming_response(self) -> AsyncBrowserAgentsResourceWithStreamingResponse:
97
+ """
98
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
99
+
100
+ For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
101
+ """
102
+ return AsyncBrowserAgentsResourceWithStreamingResponse(self)
103
+
104
+ async def invoke(
105
+ self,
106
+ slug: str,
107
+ *,
108
+ variables: Dict[str, object] | NotGiven = NOT_GIVEN,
109
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
110
+ # The extra values given here take precedence over values defined on the client or passed to this method.
111
+ extra_headers: Headers | None = None,
112
+ extra_query: Query | None = None,
113
+ extra_body: Body | None = None,
114
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
115
+ ) -> BrowserAgentInvokeResponse:
116
+ """
117
+ Start execution of a browser agent with optional variables.
118
+
119
+ Args:
120
+ variables: Variables to pass to the browser agent
121
+
122
+ extra_headers: Send extra headers
123
+
124
+ extra_query: Add additional query parameters to the request
125
+
126
+ extra_body: Add additional JSON properties to the request
127
+
128
+ timeout: Override the client-level default timeout for this request, in seconds
129
+ """
130
+ if not slug:
131
+ raise ValueError(f"Expected a non-empty value for `slug` but received {slug!r}")
132
+ return await self._post(
133
+ f"/api/v2/browser-agents/{slug}/invoke",
134
+ body=await async_maybe_transform(
135
+ {"variables": variables}, browser_agent_invoke_params.BrowserAgentInvokeParams
136
+ ),
137
+ options=make_request_options(
138
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
139
+ ),
140
+ cast_to=BrowserAgentInvokeResponse,
141
+ )
142
+
143
+
144
+ class BrowserAgentsResourceWithRawResponse:
145
+ def __init__(self, browser_agents: BrowserAgentsResource) -> None:
146
+ self._browser_agents = browser_agents
147
+
148
+ self.invoke = to_raw_response_wrapper(
149
+ browser_agents.invoke,
150
+ )
151
+
152
+
153
+ class AsyncBrowserAgentsResourceWithRawResponse:
154
+ def __init__(self, browser_agents: AsyncBrowserAgentsResource) -> None:
155
+ self._browser_agents = browser_agents
156
+
157
+ self.invoke = async_to_raw_response_wrapper(
158
+ browser_agents.invoke,
159
+ )
160
+
161
+
162
+ class BrowserAgentsResourceWithStreamingResponse:
163
+ def __init__(self, browser_agents: BrowserAgentsResource) -> None:
164
+ self._browser_agents = browser_agents
165
+
166
+ self.invoke = to_streamed_response_wrapper(
167
+ browser_agents.invoke,
168
+ )
169
+
170
+
171
+ class AsyncBrowserAgentsResourceWithStreamingResponse:
172
+ def __init__(self, browser_agents: AsyncBrowserAgentsResource) -> None:
173
+ self._browser_agents = browser_agents
174
+
175
+ self.invoke = async_to_streamed_response_wrapper(
176
+ browser_agents.invoke,
177
+ )
@@ -113,6 +113,7 @@ class ClaimResource(SyncAPIResource):
113
113
  def submit(
114
114
  self,
115
115
  *,
116
+ billing: claim_submit_params.Billing,
116
117
  claim_information: claim_submit_params.ClaimInformation,
117
118
  idempotency_key: str,
118
119
  is_testing: bool,
@@ -120,20 +121,16 @@ class ClaimResource(SyncAPIResource):
120
121
  submitter: claim_submit_params.Submitter,
121
122
  subscriber: claim_submit_params.Subscriber,
122
123
  trading_partner_service_id: str,
123
- attending: claim_submit_params.Attending | NotGiven = NOT_GIVEN,
124
- billing: claim_submit_params.Billing | NotGiven = NOT_GIVEN,
125
- billing_pay_to_address_name: claim_submit_params.BillingPayToAddressName | NotGiven = NOT_GIVEN,
126
- billing_pay_to_plan_name: claim_submit_params.BillingPayToPlanName | NotGiven = NOT_GIVEN,
127
124
  control_number: str | NotGiven = NOT_GIVEN,
128
- correlation_id: str | NotGiven = NOT_GIVEN,
129
125
  dependent: claim_submit_params.Dependent | NotGiven = NOT_GIVEN,
130
- event_mapping: claim_submit_params.EventMapping | NotGiven = NOT_GIVEN,
131
- operating_physician: claim_submit_params.OperatingPhysician | NotGiven = NOT_GIVEN,
132
- other_operating_physician: claim_submit_params.OtherOperatingPhysician | NotGiven = NOT_GIVEN,
126
+ ordering: claim_submit_params.Ordering | NotGiven = NOT_GIVEN,
133
127
  payer_address: claim_submit_params.PayerAddress | NotGiven = NOT_GIVEN,
128
+ pay_to_address: claim_submit_params.PayToAddress | NotGiven = NOT_GIVEN,
129
+ pay_to_plan: claim_submit_params.PayToPlan | NotGiven = NOT_GIVEN,
134
130
  providers: Iterable[claim_submit_params.Provider] | NotGiven = NOT_GIVEN,
135
131
  referring: claim_submit_params.Referring | NotGiven = NOT_GIVEN,
136
132
  rendering: claim_submit_params.Rendering | NotGiven = NOT_GIVEN,
133
+ supervising: claim_submit_params.Supervising | NotGiven = NOT_GIVEN,
137
134
  trading_partner_name: str | NotGiven = NOT_GIVEN,
138
135
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
139
136
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -161,6 +158,7 @@ class ClaimResource(SyncAPIResource):
161
158
  "/api/v2/clearinghouse/claim",
162
159
  body=maybe_transform(
163
160
  {
161
+ "billing": billing,
164
162
  "claim_information": claim_information,
165
163
  "idempotency_key": idempotency_key,
166
164
  "is_testing": is_testing,
@@ -168,20 +166,16 @@ class ClaimResource(SyncAPIResource):
168
166
  "submitter": submitter,
169
167
  "subscriber": subscriber,
170
168
  "trading_partner_service_id": trading_partner_service_id,
171
- "attending": attending,
172
- "billing": billing,
173
- "billing_pay_to_address_name": billing_pay_to_address_name,
174
- "billing_pay_to_plan_name": billing_pay_to_plan_name,
175
169
  "control_number": control_number,
176
- "correlation_id": correlation_id,
177
170
  "dependent": dependent,
178
- "event_mapping": event_mapping,
179
- "operating_physician": operating_physician,
180
- "other_operating_physician": other_operating_physician,
171
+ "ordering": ordering,
181
172
  "payer_address": payer_address,
173
+ "pay_to_address": pay_to_address,
174
+ "pay_to_plan": pay_to_plan,
182
175
  "providers": providers,
183
176
  "referring": referring,
184
177
  "rendering": rendering,
178
+ "supervising": supervising,
185
179
  "trading_partner_name": trading_partner_name,
186
180
  },
187
181
  claim_submit_params.ClaimSubmitParams,
@@ -283,6 +277,7 @@ class AsyncClaimResource(AsyncAPIResource):
283
277
  async def submit(
284
278
  self,
285
279
  *,
280
+ billing: claim_submit_params.Billing,
286
281
  claim_information: claim_submit_params.ClaimInformation,
287
282
  idempotency_key: str,
288
283
  is_testing: bool,
@@ -290,20 +285,16 @@ class AsyncClaimResource(AsyncAPIResource):
290
285
  submitter: claim_submit_params.Submitter,
291
286
  subscriber: claim_submit_params.Subscriber,
292
287
  trading_partner_service_id: str,
293
- attending: claim_submit_params.Attending | NotGiven = NOT_GIVEN,
294
- billing: claim_submit_params.Billing | NotGiven = NOT_GIVEN,
295
- billing_pay_to_address_name: claim_submit_params.BillingPayToAddressName | NotGiven = NOT_GIVEN,
296
- billing_pay_to_plan_name: claim_submit_params.BillingPayToPlanName | NotGiven = NOT_GIVEN,
297
288
  control_number: str | NotGiven = NOT_GIVEN,
298
- correlation_id: str | NotGiven = NOT_GIVEN,
299
289
  dependent: claim_submit_params.Dependent | NotGiven = NOT_GIVEN,
300
- event_mapping: claim_submit_params.EventMapping | NotGiven = NOT_GIVEN,
301
- operating_physician: claim_submit_params.OperatingPhysician | NotGiven = NOT_GIVEN,
302
- other_operating_physician: claim_submit_params.OtherOperatingPhysician | NotGiven = NOT_GIVEN,
290
+ ordering: claim_submit_params.Ordering | NotGiven = NOT_GIVEN,
303
291
  payer_address: claim_submit_params.PayerAddress | NotGiven = NOT_GIVEN,
292
+ pay_to_address: claim_submit_params.PayToAddress | NotGiven = NOT_GIVEN,
293
+ pay_to_plan: claim_submit_params.PayToPlan | NotGiven = NOT_GIVEN,
304
294
  providers: Iterable[claim_submit_params.Provider] | NotGiven = NOT_GIVEN,
305
295
  referring: claim_submit_params.Referring | NotGiven = NOT_GIVEN,
306
296
  rendering: claim_submit_params.Rendering | NotGiven = NOT_GIVEN,
297
+ supervising: claim_submit_params.Supervising | NotGiven = NOT_GIVEN,
307
298
  trading_partner_name: str | NotGiven = NOT_GIVEN,
308
299
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
309
300
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -331,6 +322,7 @@ class AsyncClaimResource(AsyncAPIResource):
331
322
  "/api/v2/clearinghouse/claim",
332
323
  body=await async_maybe_transform(
333
324
  {
325
+ "billing": billing,
334
326
  "claim_information": claim_information,
335
327
  "idempotency_key": idempotency_key,
336
328
  "is_testing": is_testing,
@@ -338,20 +330,16 @@ class AsyncClaimResource(AsyncAPIResource):
338
330
  "submitter": submitter,
339
331
  "subscriber": subscriber,
340
332
  "trading_partner_service_id": trading_partner_service_id,
341
- "attending": attending,
342
- "billing": billing,
343
- "billing_pay_to_address_name": billing_pay_to_address_name,
344
- "billing_pay_to_plan_name": billing_pay_to_plan_name,
345
333
  "control_number": control_number,
346
- "correlation_id": correlation_id,
347
334
  "dependent": dependent,
348
- "event_mapping": event_mapping,
349
- "operating_physician": operating_physician,
350
- "other_operating_physician": other_operating_physician,
335
+ "ordering": ordering,
351
336
  "payer_address": payer_address,
337
+ "pay_to_address": pay_to_address,
338
+ "pay_to_plan": pay_to_plan,
352
339
  "providers": providers,
353
340
  "referring": referring,
354
341
  "rendering": rendering,
342
+ "supervising": supervising,
355
343
  "trading_partner_name": trading_partner_name,
356
344
  },
357
345
  claim_submit_params.ClaimSubmitParams,
@@ -53,6 +53,7 @@ class CommunicationResource(SyncAPIResource):
53
53
  attach_as_files: bool | NotGiven = NOT_GIVEN,
54
54
  attachments: Iterable[communication_send_email_params.Attachment] | NotGiven = NOT_GIVEN,
55
55
  enable_encryption: bool | NotGiven = NOT_GIVEN,
56
+ from_: str | NotGiven = NOT_GIVEN,
56
57
  zip_attachments: bool | NotGiven = NOT_GIVEN,
57
58
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
58
59
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -84,6 +85,8 @@ class CommunicationResource(SyncAPIResource):
84
85
  enable_encryption: Whether to encrypt the email content and send a secure link instead. Note that
85
86
  encrypted emails do not support attachments.
86
87
 
88
+ from_: The email address of the sender
89
+
87
90
  zip_attachments: Whether to compress all attachments into a single zip file before sending
88
91
 
89
92
  extra_headers: Send extra headers
@@ -104,6 +107,7 @@ class CommunicationResource(SyncAPIResource):
104
107
  "attach_as_files": attach_as_files,
105
108
  "attachments": attachments,
106
109
  "enable_encryption": enable_encryption,
110
+ "from_": from_,
107
111
  "zip_attachments": zip_attachments,
108
112
  },
109
113
  communication_send_email_params.CommunicationSendEmailParams,
@@ -260,6 +264,7 @@ class AsyncCommunicationResource(AsyncAPIResource):
260
264
  attach_as_files: bool | NotGiven = NOT_GIVEN,
261
265
  attachments: Iterable[communication_send_email_params.Attachment] | NotGiven = NOT_GIVEN,
262
266
  enable_encryption: bool | NotGiven = NOT_GIVEN,
267
+ from_: str | NotGiven = NOT_GIVEN,
263
268
  zip_attachments: bool | NotGiven = NOT_GIVEN,
264
269
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
265
270
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -291,6 +296,8 @@ class AsyncCommunicationResource(AsyncAPIResource):
291
296
  enable_encryption: Whether to encrypt the email content and send a secure link instead. Note that
292
297
  encrypted emails do not support attachments.
293
298
 
299
+ from_: The email address of the sender
300
+
294
301
  zip_attachments: Whether to compress all attachments into a single zip file before sending
295
302
 
296
303
  extra_headers: Send extra headers
@@ -311,6 +318,7 @@ class AsyncCommunicationResource(AsyncAPIResource):
311
318
  "attach_as_files": attach_as_files,
312
319
  "attachments": attachments,
313
320
  "enable_encryption": enable_encryption,
321
+ "from_": from_,
314
322
  "zip_attachments": zip_attachments,
315
323
  },
316
324
  communication_send_email_params.CommunicationSendEmailParams,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Union, Optional
5
+ from typing import Dict, List, Union, Iterable, Optional
6
6
  from typing_extensions import Literal
7
7
 
8
8
  import httpx
@@ -48,7 +48,8 @@ class DatabaseResource(SyncAPIResource):
48
48
  self,
49
49
  *,
50
50
  query: str,
51
- params: List[Union[str, float, bool, Optional[Literal["null"]]]] | NotGiven = NOT_GIVEN,
51
+ params: List[Union[str, float, bool, Optional[Literal["null"]], Iterable[object], Dict[str, object]]]
52
+ | NotGiven = NOT_GIVEN,
52
53
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
53
54
  # The extra values given here take precedence over values defined on the client or passed to this method.
54
55
  extra_headers: Headers | None = None,
@@ -59,13 +60,17 @@ class DatabaseResource(SyncAPIResource):
59
60
  """Allows execution of arbitrary SQL queries against the Sample database.
60
61
 
61
62
  Supports
62
- parameterized queries.
63
+ parameterized queries with complex data types including arrays, objects, and
64
+ nested structures. Examples: arrays can be used with ANY/ALL operators, objects
65
+ as structs for complex filtering.
63
66
 
64
67
  Args:
65
68
  query: The SQL query to execute.
66
69
 
67
- params: An array of parameters to be used in the SQL query. Use placeholders like $1,
68
- $2, etc. in the query string.
70
+ params: An array of parameters to be used in the SQL query. Supports primitive types
71
+ (string, number, boolean, null), arrays, and objects. Use placeholders like $1,
72
+ $2, etc. in the query string. Examples: ["hello", 123, [1,2,3], {"name": "John",
73
+ "age": 30}]
69
74
 
70
75
  extra_headers: Send extra headers
71
76
 
@@ -115,7 +120,8 @@ class AsyncDatabaseResource(AsyncAPIResource):
115
120
  self,
116
121
  *,
117
122
  query: str,
118
- params: List[Union[str, float, bool, Optional[Literal["null"]]]] | NotGiven = NOT_GIVEN,
123
+ params: List[Union[str, float, bool, Optional[Literal["null"]], Iterable[object], Dict[str, object]]]
124
+ | NotGiven = NOT_GIVEN,
119
125
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
120
126
  # The extra values given here take precedence over values defined on the client or passed to this method.
121
127
  extra_headers: Headers | None = None,
@@ -126,13 +132,17 @@ class AsyncDatabaseResource(AsyncAPIResource):
126
132
  """Allows execution of arbitrary SQL queries against the Sample database.
127
133
 
128
134
  Supports
129
- parameterized queries.
135
+ parameterized queries with complex data types including arrays, objects, and
136
+ nested structures. Examples: arrays can be used with ANY/ALL operators, objects
137
+ as structs for complex filtering.
130
138
 
131
139
  Args:
132
140
  query: The SQL query to execute.
133
141
 
134
- params: An array of parameters to be used in the SQL query. Use placeholders like $1,
135
- $2, etc. in the query string.
142
+ params: An array of parameters to be used in the SQL query. Supports primitive types
143
+ (string, number, boolean, null), arrays, and objects. Use placeholders like $1,
144
+ $2, etc. in the query string. Examples: ["hello", 123, [1,2,3], {"name": "John",
145
+ "age": 30}]
136
146
 
137
147
  extra_headers: Send extra headers
138
148
 
@@ -70,7 +70,7 @@ class EventsResource(SyncAPIResource):
70
70
 
71
71
  timeout: Override the client-level default timeout for this request, in seconds
72
72
  """
73
- extra_headers = {**strip_not_given({"Idempotency-Key": idempotency_key}), **(extra_headers or {})}
73
+ extra_headers = {**strip_not_given({"idempotency-key": idempotency_key}), **(extra_headers or {})}
74
74
  return self._post(
75
75
  "/api/v2/events/",
76
76
  body=maybe_transform(
@@ -136,7 +136,7 @@ class AsyncEventsResource(AsyncAPIResource):
136
136
 
137
137
  timeout: Override the client-level default timeout for this request, in seconds
138
138
  """
139
- extra_headers = {**strip_not_given({"Idempotency-Key": idempotency_key}), **(extra_headers or {})}
139
+ extra_headers = {**strip_not_given({"idempotency-key": idempotency_key}), **(extra_headers or {})}
140
140
  return await self._post(
141
141
  "/api/v2/events/",
142
142
  body=await async_maybe_transform(
@@ -16,6 +16,14 @@ from .kno2 import (
16
16
  Kno2ResourceWithStreamingResponse,
17
17
  AsyncKno2ResourceWithStreamingResponse,
18
18
  )
19
+ from .glidian import (
20
+ GlidianResource,
21
+ AsyncGlidianResource,
22
+ GlidianResourceWithRawResponse,
23
+ AsyncGlidianResourceWithRawResponse,
24
+ GlidianResourceWithStreamingResponse,
25
+ AsyncGlidianResourceWithStreamingResponse,
26
+ )
19
27
  from .careviso import (
20
28
  CarevisoResource,
21
29
  AsyncCarevisoResource,
@@ -66,6 +74,12 @@ __all__ = [
66
74
  "AsyncKno2ResourceWithRawResponse",
67
75
  "Kno2ResourceWithStreamingResponse",
68
76
  "AsyncKno2ResourceWithStreamingResponse",
77
+ "GlidianResource",
78
+ "AsyncGlidianResource",
79
+ "GlidianResourceWithRawResponse",
80
+ "AsyncGlidianResourceWithRawResponse",
81
+ "GlidianResourceWithStreamingResponse",
82
+ "AsyncGlidianResourceWithStreamingResponse",
69
83
  "IntegrationsResource",
70
84
  "AsyncIntegrationsResource",
71
85
  "IntegrationsResourceWithRawResponse",
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .glidian import (
4
+ GlidianResource,
5
+ AsyncGlidianResource,
6
+ GlidianResourceWithRawResponse,
7
+ AsyncGlidianResourceWithRawResponse,
8
+ GlidianResourceWithStreamingResponse,
9
+ AsyncGlidianResourceWithStreamingResponse,
10
+ )
11
+ from .prior_authorizations import (
12
+ PriorAuthorizationsResource,
13
+ AsyncPriorAuthorizationsResource,
14
+ PriorAuthorizationsResourceWithRawResponse,
15
+ AsyncPriorAuthorizationsResourceWithRawResponse,
16
+ PriorAuthorizationsResourceWithStreamingResponse,
17
+ AsyncPriorAuthorizationsResourceWithStreamingResponse,
18
+ )
19
+
20
+ __all__ = [
21
+ "PriorAuthorizationsResource",
22
+ "AsyncPriorAuthorizationsResource",
23
+ "PriorAuthorizationsResourceWithRawResponse",
24
+ "AsyncPriorAuthorizationsResourceWithRawResponse",
25
+ "PriorAuthorizationsResourceWithStreamingResponse",
26
+ "AsyncPriorAuthorizationsResourceWithStreamingResponse",
27
+ "GlidianResource",
28
+ "AsyncGlidianResource",
29
+ "GlidianResourceWithRawResponse",
30
+ "AsyncGlidianResourceWithRawResponse",
31
+ "GlidianResourceWithStreamingResponse",
32
+ "AsyncGlidianResourceWithStreamingResponse",
33
+ ]