samplehc 0.11.0__py3-none-any.whl → 0.13.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- samplehc/__init__.py +3 -1
- samplehc/_base_client.py +9 -9
- samplehc/_client.py +8 -8
- samplehc/_models.py +10 -4
- samplehc/_qs.py +7 -7
- samplehc/_types.py +18 -11
- samplehc/_utils/_transform.py +2 -2
- samplehc/_utils/_utils.py +4 -4
- samplehc/_version.py +1 -1
- samplehc/resources/v1/v1.py +9 -9
- samplehc/resources/v2/async_results.py +13 -13
- samplehc/resources/v2/browser_agents/browser_agents.py +5 -5
- samplehc/resources/v2/browser_agents/runs/help_requests.py +3 -3
- samplehc/resources/v2/browser_agents/runs/runs.py +131 -0
- samplehc/resources/v2/browser_automation/availity.py +3 -3
- samplehc/resources/v2/clearinghouse/claim.py +29 -29
- samplehc/resources/v2/clearinghouse/clearinghouse.py +33 -33
- samplehc/resources/v2/clearinghouse/payers.py +5 -5
- samplehc/resources/v2/communication.py +29 -29
- samplehc/resources/v2/database.py +5 -5
- samplehc/resources/v2/documents/documents.py +152 -37
- samplehc/resources/v2/documents/formats.py +3 -3
- samplehc/resources/v2/documents/legacy.py +91 -6
- samplehc/resources/v2/documents/pdf_template.py +3 -3
- samplehc/resources/v2/documents/templates.py +27 -27
- samplehc/resources/v2/events.py +7 -7
- samplehc/resources/v2/hie/adt.py +7 -7
- samplehc/resources/v2/hie/documents.py +15 -15
- samplehc/resources/v2/integrations/bank/transactions.py +5 -5
- samplehc/resources/v2/integrations/careviso.py +29 -29
- samplehc/resources/v2/integrations/glidian/glidian.py +13 -13
- samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +5 -5
- samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +19 -19
- samplehc/resources/v2/integrations/kno2/messages.py +5 -5
- samplehc/resources/v2/integrations/salesforce.py +92 -8
- samplehc/resources/v2/integrations/snowflake.py +3 -3
- samplehc/resources/v2/integrations/xcures.py +7 -7
- samplehc/resources/v2/ledger/account.py +10 -11
- samplehc/resources/v2/ledger/entry.py +21 -22
- samplehc/resources/v2/policies.py +47 -47
- samplehc/resources/v2/tasks/state.py +7 -7
- samplehc/resources/v2/tasks/tasks.py +125 -16
- samplehc/resources/v2/workflow_runs/step.py +3 -3
- samplehc/resources/v2/workflow_runs/workflow_runs.py +11 -11
- samplehc/resources/v2/workflows.py +13 -13
- samplehc/types/v2/__init__.py +3 -0
- samplehc/types/v2/browser_agents/__init__.py +3 -0
- samplehc/types/v2/browser_agents/run_list_events_params.py +15 -0
- samplehc/types/v2/browser_agents/run_list_events_response.py +30 -0
- samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +0 -2
- samplehc/types/v2/document_extract_params.py +4 -1
- samplehc/types/v2/document_split_params.py +16 -1
- samplehc/types/v2/document_unzip_async_response.py +12 -0
- samplehc/types/v2/documents/__init__.py +2 -0
- samplehc/types/v2/documents/legacy_split_params.py +20 -0
- samplehc/types/v2/documents/legacy_split_response.py +12 -0
- samplehc/types/v2/documents/template_render_document_params.py +17 -5
- samplehc/types/v2/integrations/__init__.py +1 -0
- samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +11 -0
- samplehc/types/v2/ledger/account_writeoff_params.py +2 -3
- samplehc/types/v2/ledger/entry_post_params.py +1 -2
- samplehc/types/v2/ledger/entry_reverse_params.py +2 -3
- samplehc/types/v2/task_update_column_params.py +16 -0
- samplehc/types/v2/task_update_column_response.py +9 -0
- {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/METADATA +1 -1
- {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/RECORD +68 -60
- {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/WHEEL +0 -0
- {samplehc-0.11.0.dist-info → samplehc-0.13.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -14,10 +14,10 @@ from .state import (
|
|
|
14
14
|
StateResourceWithStreamingResponse,
|
|
15
15
|
AsyncStateResourceWithStreamingResponse,
|
|
16
16
|
)
|
|
17
|
-
from ...._types import
|
|
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
|
-
from ....types.v2 import task_complete_params, task_update_screen_time_params
|
|
20
|
+
from ....types.v2 import task_complete_params, task_update_column_params, task_update_screen_time_params
|
|
21
21
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
22
22
|
from ...._response import (
|
|
23
23
|
to_raw_response_wrapper,
|
|
@@ -30,6 +30,7 @@ from ....types.v2.task_retry_response import TaskRetryResponse
|
|
|
30
30
|
from ....types.v2.task_cancel_response import TaskCancelResponse
|
|
31
31
|
from ....types.v2.task_complete_response import TaskCompleteResponse
|
|
32
32
|
from ....types.v2.task_retrieve_response import TaskRetrieveResponse
|
|
33
|
+
from ....types.v2.task_update_column_response import TaskUpdateColumnResponse
|
|
33
34
|
from ....types.v2.task_update_screen_time_response import TaskUpdateScreenTimeResponse
|
|
34
35
|
from ....types.v2.task_get_suspended_payload_response import TaskGetSuspendedPayloadResponse
|
|
35
36
|
|
|
@@ -69,7 +70,7 @@ class TasksResource(SyncAPIResource):
|
|
|
69
70
|
extra_headers: Headers | None = None,
|
|
70
71
|
extra_query: Query | None = None,
|
|
71
72
|
extra_body: Body | None = None,
|
|
72
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
73
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
73
74
|
) -> TaskRetrieveResponse:
|
|
74
75
|
"""
|
|
75
76
|
Retrieves the details of a task.
|
|
@@ -102,7 +103,7 @@ class TasksResource(SyncAPIResource):
|
|
|
102
103
|
extra_headers: Headers | None = None,
|
|
103
104
|
extra_query: Query | None = None,
|
|
104
105
|
extra_body: Body | None = None,
|
|
105
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
106
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
106
107
|
) -> TaskCancelResponse:
|
|
107
108
|
"""Marks a specified task as cancelled, preventing it from being executed.
|
|
108
109
|
|
|
@@ -132,13 +133,13 @@ class TasksResource(SyncAPIResource):
|
|
|
132
133
|
self,
|
|
133
134
|
task_id: str,
|
|
134
135
|
*,
|
|
135
|
-
result: object |
|
|
136
|
+
result: object | Omit = omit,
|
|
136
137
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
137
138
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
138
139
|
extra_headers: Headers | None = None,
|
|
139
140
|
extra_query: Query | None = None,
|
|
140
141
|
extra_body: Body | None = None,
|
|
141
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
142
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
142
143
|
) -> TaskCompleteResponse:
|
|
143
144
|
"""Marks a specified task as complete, providing the result of its execution.
|
|
144
145
|
|
|
@@ -176,7 +177,7 @@ class TasksResource(SyncAPIResource):
|
|
|
176
177
|
extra_headers: Headers | None = None,
|
|
177
178
|
extra_query: Query | None = None,
|
|
178
179
|
extra_body: Body | None = None,
|
|
179
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
180
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
180
181
|
) -> TaskGetSuspendedPayloadResponse:
|
|
181
182
|
"""
|
|
182
183
|
Retrieves the payload with which a task was suspended, typically for tasks
|
|
@@ -210,7 +211,7 @@ class TasksResource(SyncAPIResource):
|
|
|
210
211
|
extra_headers: Headers | None = None,
|
|
211
212
|
extra_query: Query | None = None,
|
|
212
213
|
extra_body: Body | None = None,
|
|
213
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
214
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
214
215
|
) -> TaskRetryResponse:
|
|
215
216
|
"""Attempts to retry a failed task.
|
|
216
217
|
|
|
@@ -235,6 +236,54 @@ class TasksResource(SyncAPIResource):
|
|
|
235
236
|
cast_to=TaskRetryResponse,
|
|
236
237
|
)
|
|
237
238
|
|
|
239
|
+
def update_column(
|
|
240
|
+
self,
|
|
241
|
+
task_id: str,
|
|
242
|
+
*,
|
|
243
|
+
key: str,
|
|
244
|
+
value: Optional[str],
|
|
245
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
246
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
247
|
+
extra_headers: Headers | None = None,
|
|
248
|
+
extra_query: Query | None = None,
|
|
249
|
+
extra_body: Body | None = None,
|
|
250
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
251
|
+
) -> TaskUpdateColumnResponse:
|
|
252
|
+
"""Updates or inserts a column value for a task.
|
|
253
|
+
|
|
254
|
+
If the column key already exists,
|
|
255
|
+
its value will be updated. If it doesn't exist, a new column will be added.
|
|
256
|
+
|
|
257
|
+
Args:
|
|
258
|
+
key: The column key to update or insert.
|
|
259
|
+
|
|
260
|
+
value: The value to set for the column.
|
|
261
|
+
|
|
262
|
+
extra_headers: Send extra headers
|
|
263
|
+
|
|
264
|
+
extra_query: Add additional query parameters to the request
|
|
265
|
+
|
|
266
|
+
extra_body: Add additional JSON properties to the request
|
|
267
|
+
|
|
268
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
269
|
+
"""
|
|
270
|
+
if not task_id:
|
|
271
|
+
raise ValueError(f"Expected a non-empty value for `task_id` but received {task_id!r}")
|
|
272
|
+
return self._post(
|
|
273
|
+
f"/api/v2/tasks/{task_id}/columns",
|
|
274
|
+
body=maybe_transform(
|
|
275
|
+
{
|
|
276
|
+
"key": key,
|
|
277
|
+
"value": value,
|
|
278
|
+
},
|
|
279
|
+
task_update_column_params.TaskUpdateColumnParams,
|
|
280
|
+
),
|
|
281
|
+
options=make_request_options(
|
|
282
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
283
|
+
),
|
|
284
|
+
cast_to=TaskUpdateColumnResponse,
|
|
285
|
+
)
|
|
286
|
+
|
|
238
287
|
def update_screen_time(
|
|
239
288
|
self,
|
|
240
289
|
task_id: str,
|
|
@@ -245,7 +294,7 @@ class TasksResource(SyncAPIResource):
|
|
|
245
294
|
extra_headers: Headers | None = None,
|
|
246
295
|
extra_query: Query | None = None,
|
|
247
296
|
extra_body: Body | None = None,
|
|
248
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
297
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
249
298
|
) -> Optional[TaskUpdateScreenTimeResponse]:
|
|
250
299
|
"""Adds a specified duration to the total screen time recorded for a task.
|
|
251
300
|
|
|
@@ -313,7 +362,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
313
362
|
extra_headers: Headers | None = None,
|
|
314
363
|
extra_query: Query | None = None,
|
|
315
364
|
extra_body: Body | None = None,
|
|
316
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
365
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
317
366
|
) -> TaskRetrieveResponse:
|
|
318
367
|
"""
|
|
319
368
|
Retrieves the details of a task.
|
|
@@ -346,7 +395,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
346
395
|
extra_headers: Headers | None = None,
|
|
347
396
|
extra_query: Query | None = None,
|
|
348
397
|
extra_body: Body | None = None,
|
|
349
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
398
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
350
399
|
) -> TaskCancelResponse:
|
|
351
400
|
"""Marks a specified task as cancelled, preventing it from being executed.
|
|
352
401
|
|
|
@@ -376,13 +425,13 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
376
425
|
self,
|
|
377
426
|
task_id: str,
|
|
378
427
|
*,
|
|
379
|
-
result: object |
|
|
428
|
+
result: object | Omit = omit,
|
|
380
429
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
381
430
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
382
431
|
extra_headers: Headers | None = None,
|
|
383
432
|
extra_query: Query | None = None,
|
|
384
433
|
extra_body: Body | None = None,
|
|
385
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
434
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
386
435
|
) -> TaskCompleteResponse:
|
|
387
436
|
"""Marks a specified task as complete, providing the result of its execution.
|
|
388
437
|
|
|
@@ -420,7 +469,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
420
469
|
extra_headers: Headers | None = None,
|
|
421
470
|
extra_query: Query | None = None,
|
|
422
471
|
extra_body: Body | None = None,
|
|
423
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
472
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
424
473
|
) -> TaskGetSuspendedPayloadResponse:
|
|
425
474
|
"""
|
|
426
475
|
Retrieves the payload with which a task was suspended, typically for tasks
|
|
@@ -454,7 +503,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
454
503
|
extra_headers: Headers | None = None,
|
|
455
504
|
extra_query: Query | None = None,
|
|
456
505
|
extra_body: Body | None = None,
|
|
457
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
506
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
458
507
|
) -> TaskRetryResponse:
|
|
459
508
|
"""Attempts to retry a failed task.
|
|
460
509
|
|
|
@@ -479,6 +528,54 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
479
528
|
cast_to=TaskRetryResponse,
|
|
480
529
|
)
|
|
481
530
|
|
|
531
|
+
async def update_column(
|
|
532
|
+
self,
|
|
533
|
+
task_id: str,
|
|
534
|
+
*,
|
|
535
|
+
key: str,
|
|
536
|
+
value: Optional[str],
|
|
537
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
538
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
539
|
+
extra_headers: Headers | None = None,
|
|
540
|
+
extra_query: Query | None = None,
|
|
541
|
+
extra_body: Body | None = None,
|
|
542
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
543
|
+
) -> TaskUpdateColumnResponse:
|
|
544
|
+
"""Updates or inserts a column value for a task.
|
|
545
|
+
|
|
546
|
+
If the column key already exists,
|
|
547
|
+
its value will be updated. If it doesn't exist, a new column will be added.
|
|
548
|
+
|
|
549
|
+
Args:
|
|
550
|
+
key: The column key to update or insert.
|
|
551
|
+
|
|
552
|
+
value: The value to set for the column.
|
|
553
|
+
|
|
554
|
+
extra_headers: Send extra headers
|
|
555
|
+
|
|
556
|
+
extra_query: Add additional query parameters to the request
|
|
557
|
+
|
|
558
|
+
extra_body: Add additional JSON properties to the request
|
|
559
|
+
|
|
560
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
561
|
+
"""
|
|
562
|
+
if not task_id:
|
|
563
|
+
raise ValueError(f"Expected a non-empty value for `task_id` but received {task_id!r}")
|
|
564
|
+
return await self._post(
|
|
565
|
+
f"/api/v2/tasks/{task_id}/columns",
|
|
566
|
+
body=await async_maybe_transform(
|
|
567
|
+
{
|
|
568
|
+
"key": key,
|
|
569
|
+
"value": value,
|
|
570
|
+
},
|
|
571
|
+
task_update_column_params.TaskUpdateColumnParams,
|
|
572
|
+
),
|
|
573
|
+
options=make_request_options(
|
|
574
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
575
|
+
),
|
|
576
|
+
cast_to=TaskUpdateColumnResponse,
|
|
577
|
+
)
|
|
578
|
+
|
|
482
579
|
async def update_screen_time(
|
|
483
580
|
self,
|
|
484
581
|
task_id: str,
|
|
@@ -489,7 +586,7 @@ class AsyncTasksResource(AsyncAPIResource):
|
|
|
489
586
|
extra_headers: Headers | None = None,
|
|
490
587
|
extra_query: Query | None = None,
|
|
491
588
|
extra_body: Body | None = None,
|
|
492
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
589
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
493
590
|
) -> Optional[TaskUpdateScreenTimeResponse]:
|
|
494
591
|
"""Adds a specified duration to the total screen time recorded for a task.
|
|
495
592
|
|
|
@@ -543,6 +640,9 @@ class TasksResourceWithRawResponse:
|
|
|
543
640
|
self.retry = to_raw_response_wrapper(
|
|
544
641
|
tasks.retry,
|
|
545
642
|
)
|
|
643
|
+
self.update_column = to_raw_response_wrapper(
|
|
644
|
+
tasks.update_column,
|
|
645
|
+
)
|
|
546
646
|
self.update_screen_time = to_raw_response_wrapper(
|
|
547
647
|
tasks.update_screen_time,
|
|
548
648
|
)
|
|
@@ -571,6 +671,9 @@ class AsyncTasksResourceWithRawResponse:
|
|
|
571
671
|
self.retry = async_to_raw_response_wrapper(
|
|
572
672
|
tasks.retry,
|
|
573
673
|
)
|
|
674
|
+
self.update_column = async_to_raw_response_wrapper(
|
|
675
|
+
tasks.update_column,
|
|
676
|
+
)
|
|
574
677
|
self.update_screen_time = async_to_raw_response_wrapper(
|
|
575
678
|
tasks.update_screen_time,
|
|
576
679
|
)
|
|
@@ -599,6 +702,9 @@ class TasksResourceWithStreamingResponse:
|
|
|
599
702
|
self.retry = to_streamed_response_wrapper(
|
|
600
703
|
tasks.retry,
|
|
601
704
|
)
|
|
705
|
+
self.update_column = to_streamed_response_wrapper(
|
|
706
|
+
tasks.update_column,
|
|
707
|
+
)
|
|
602
708
|
self.update_screen_time = to_streamed_response_wrapper(
|
|
603
709
|
tasks.update_screen_time,
|
|
604
710
|
)
|
|
@@ -627,6 +733,9 @@ class AsyncTasksResourceWithStreamingResponse:
|
|
|
627
733
|
self.retry = async_to_streamed_response_wrapper(
|
|
628
734
|
tasks.retry,
|
|
629
735
|
)
|
|
736
|
+
self.update_column = async_to_streamed_response_wrapper(
|
|
737
|
+
tasks.update_column,
|
|
738
|
+
)
|
|
630
739
|
self.update_screen_time = async_to_streamed_response_wrapper(
|
|
631
740
|
tasks.update_screen_time,
|
|
632
741
|
)
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from ...._types import
|
|
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 =
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
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 |
|
|
124
|
-
x_sample_start_data_parse_method: Literal["standard", "top-level"] |
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
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 |
|
|
264
|
-
x_sample_start_data_parse_method: Literal["standard", "top-level"] |
|
|
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 =
|
|
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
|
|
293
|
+
else not_given
|
|
294
294
|
}
|
|
295
295
|
),
|
|
296
296
|
**(extra_headers or {}),
|
samplehc/types/v2/__init__.py
CHANGED
|
@@ -28,17 +28,20 @@ from .workflow_deploy_response import WorkflowDeployResponse as WorkflowDeployRe
|
|
|
28
28
|
from .async_result_sleep_params import AsyncResultSleepParams as AsyncResultSleepParams
|
|
29
29
|
from .document_combine_response import DocumentCombineResponse as DocumentCombineResponse
|
|
30
30
|
from .document_extract_response import DocumentExtractResponse as DocumentExtractResponse
|
|
31
|
+
from .task_update_column_params import TaskUpdateColumnParams as TaskUpdateColumnParams
|
|
31
32
|
from .document_classify_response import DocumentClassifyResponse as DocumentClassifyResponse
|
|
32
33
|
from .document_retrieve_response import DocumentRetrieveResponse as DocumentRetrieveResponse
|
|
33
34
|
from .policy_list_plans_response import PolicyListPlansResponse as PolicyListPlansResponse
|
|
34
35
|
from .async_result_sleep_response import AsyncResultSleepResponse as AsyncResultSleepResponse
|
|
35
36
|
from .browser_agent_invoke_params import BrowserAgentInvokeParams as BrowserAgentInvokeParams
|
|
36
37
|
from .database_execute_sql_params import DatabaseExecuteSqlParams as DatabaseExecuteSqlParams
|
|
38
|
+
from .task_update_column_response import TaskUpdateColumnResponse as TaskUpdateColumnResponse
|
|
37
39
|
from .document_generate_csv_params import DocumentGenerateCsvParams as DocumentGenerateCsvParams
|
|
38
40
|
from .policy_list_companies_params import PolicyListCompaniesParams as PolicyListCompaniesParams
|
|
39
41
|
from .browser_agent_invoke_response import BrowserAgentInvokeResponse as BrowserAgentInvokeResponse
|
|
40
42
|
from .communication_send_fax_params import CommunicationSendFaxParams as CommunicationSendFaxParams
|
|
41
43
|
from .database_execute_sql_response import DatabaseExecuteSqlResponse as DatabaseExecuteSqlResponse
|
|
44
|
+
from .document_unzip_async_response import DocumentUnzipAsyncResponse as DocumentUnzipAsyncResponse
|
|
42
45
|
from .policy_retrieve_text_response import PolicyRetrieveTextResponse as PolicyRetrieveTextResponse
|
|
43
46
|
from .async_result_retrieve_response import AsyncResultRetrieveResponse as AsyncResultRetrieveResponse
|
|
44
47
|
from .document_generate_csv_response import DocumentGenerateCsvResponse as DocumentGenerateCsvResponse
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .run_list_events_params import RunListEventsParams as RunListEventsParams
|
|
6
|
+
from .run_list_events_response import RunListEventsResponse as RunListEventsResponse
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["RunListEventsParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RunListEventsParams(TypedDict, total=False):
|
|
11
|
+
cursor: str
|
|
12
|
+
"""Cursor from previous page"""
|
|
13
|
+
|
|
14
|
+
limit: float
|
|
15
|
+
"""Maximum number of events to return"""
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from pydantic import Field as FieldInfo
|
|
8
|
+
|
|
9
|
+
from ...._models import BaseModel
|
|
10
|
+
|
|
11
|
+
__all__ = ["RunListEventsResponse", "Event"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Event(BaseModel):
|
|
15
|
+
created_at: datetime = FieldInfo(alias="createdAt")
|
|
16
|
+
|
|
17
|
+
type: Literal["log", "help-request"]
|
|
18
|
+
|
|
19
|
+
data: Optional[object] = None
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class RunListEventsResponse(BaseModel):
|
|
23
|
+
events: List[Event]
|
|
24
|
+
"""Events for the browser agent run"""
|
|
25
|
+
|
|
26
|
+
has_more: bool = FieldInfo(alias="hasMore")
|
|
27
|
+
"""Whether more events are available"""
|
|
28
|
+
|
|
29
|
+
next_cursor: Optional[str] = FieldInfo(alias="nextCursor", default=None)
|
|
30
|
+
"""Cursor to fetch the next page"""
|
|
@@ -20,9 +20,12 @@ class DocumentExtractParams(TypedDict, total=False):
|
|
|
20
20
|
response_json_schema: Required[Annotated[Dict[str, object], PropertyInfo(alias="responseJsonSchema")]]
|
|
21
21
|
"""A JSON schema defining the structure of the desired extraction output."""
|
|
22
22
|
|
|
23
|
-
model: Literal["reasoning-3-mini", "reasoning-3"]
|
|
23
|
+
model: Literal["reasoning-3-mini", "reasoning-3", "base-5", "base-5-mini", "base-5-nano"]
|
|
24
24
|
"""The model to use for extraction."""
|
|
25
25
|
|
|
26
|
+
priority: Literal["interactive", "non-interactive"]
|
|
27
|
+
"""The priority of the extraction task. Non-interactive is lower priority."""
|
|
28
|
+
|
|
26
29
|
reasoning_effort: Annotated[Literal["low", "medium", "high"], PropertyInfo(alias="reasoningEffort")]
|
|
27
30
|
"""Optional control over the reasoning effort for extraction."""
|
|
28
31
|
|
|
@@ -2,19 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Iterable
|
|
5
6
|
from typing_extensions import Required, Annotated, TypedDict
|
|
6
7
|
|
|
7
8
|
from ..._utils import PropertyInfo
|
|
8
9
|
|
|
9
|
-
__all__ = ["DocumentSplitParams", "Document"]
|
|
10
|
+
__all__ = ["DocumentSplitParams", "Document", "SplitDescription"]
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
class DocumentSplitParams(TypedDict, total=False):
|
|
13
14
|
document: Required[Document]
|
|
14
15
|
"""The document to be split."""
|
|
15
16
|
|
|
17
|
+
split_description: Required[Annotated[Iterable[SplitDescription], PropertyInfo(alias="splitDescription")]]
|
|
18
|
+
"""Split description configuration."""
|
|
19
|
+
|
|
20
|
+
split_rules: Annotated[str, PropertyInfo(alias="splitRules")]
|
|
21
|
+
"""Optional split rules prompt for the splitter."""
|
|
22
|
+
|
|
16
23
|
|
|
17
24
|
class Document(TypedDict, total=False):
|
|
18
25
|
id: Required[str]
|
|
19
26
|
|
|
20
27
|
file_name: Required[Annotated[str, PropertyInfo(alias="fileName")]]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class SplitDescription(TypedDict, total=False):
|
|
31
|
+
description: Required[str]
|
|
32
|
+
|
|
33
|
+
name: Required[str]
|
|
34
|
+
|
|
35
|
+
partition_key: Annotated[str, PropertyInfo(alias="partitionKey")]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from pydantic import Field as FieldInfo
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["DocumentUnzipAsyncResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DocumentUnzipAsyncResponse(BaseModel):
|
|
11
|
+
async_result_id: str = FieldInfo(alias="asyncResultId")
|
|
12
|
+
"""The ID of the async result for this job."""
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from .legacy_split_params import LegacySplitParams as LegacySplitParams
|
|
5
6
|
from .legacy_reason_params import LegacyReasonParams as LegacyReasonParams
|
|
6
7
|
from .legacy_extract_params import LegacyExtractParams as LegacyExtractParams
|
|
8
|
+
from .legacy_split_response import LegacySplitResponse as LegacySplitResponse
|
|
7
9
|
from .legacy_reason_response import LegacyReasonResponse as LegacyReasonResponse
|
|
8
10
|
from .legacy_extract_response import LegacyExtractResponse as LegacyExtractResponse
|
|
9
11
|
from .format_create_pdf_params import FormatCreatePdfParams as FormatCreatePdfParams
|