samplehc 0.17.0__py3-none-any.whl → 0.19.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/_base_client.py +5 -2
- samplehc/_client.py +1 -38
- samplehc/_compat.py +3 -3
- samplehc/_utils/_json.py +35 -0
- samplehc/_version.py +1 -1
- samplehc/resources/__init__.py +0 -14
- samplehc/resources/v2/__init__.py +0 -98
- samplehc/resources/v2/async_results.py +0 -79
- samplehc/resources/v2/documents/__init__.py +0 -14
- samplehc/resources/v2/documents/documents.py +44 -196
- samplehc/resources/v2/v2.py +0 -224
- samplehc/types/__init__.py +0 -5
- samplehc/types/v2/__init__.py +0 -53
- samplehc/types/v2/document_extract_params.py +20 -1
- samplehc/types/v2/documents/__init__.py +0 -3
- {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/METADATA +22 -27
- samplehc-0.19.0.dist-info/RECORD +93 -0
- samplehc/resources/v1/__init__.py +0 -19
- samplehc/resources/v1/v1.py +0 -298
- samplehc/resources/v2/clearinghouse/__init__.py +0 -47
- samplehc/resources/v2/clearinghouse/claim.py +0 -407
- samplehc/resources/v2/clearinghouse/clearinghouse.py +0 -844
- samplehc/resources/v2/clearinghouse/payers.py +0 -224
- samplehc/resources/v2/documents/pdf_template.py +0 -165
- samplehc/resources/v2/hie/__init__.py +0 -47
- samplehc/resources/v2/hie/adt.py +0 -249
- samplehc/resources/v2/hie/documents.py +0 -390
- samplehc/resources/v2/hie/hie.py +0 -134
- samplehc/resources/v2/integrations/__init__.py +0 -131
- samplehc/resources/v2/integrations/bank/__init__.py +0 -33
- samplehc/resources/v2/integrations/bank/bank.py +0 -102
- samplehc/resources/v2/integrations/bank/transactions.py +0 -185
- samplehc/resources/v2/integrations/careviso.py +0 -372
- samplehc/resources/v2/integrations/glidian/__init__.py +0 -33
- samplehc/resources/v2/integrations/glidian/glidian.py +0 -425
- samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -33
- samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +0 -276
- samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +0 -527
- samplehc/resources/v2/integrations/integrations.py +0 -326
- samplehc/resources/v2/integrations/kno2/__init__.py +0 -33
- samplehc/resources/v2/integrations/kno2/kno2.py +0 -102
- samplehc/resources/v2/integrations/kno2/messages.py +0 -260
- samplehc/resources/v2/integrations/salesforce.py +0 -277
- samplehc/resources/v2/integrations/snowflake.py +0 -173
- samplehc/resources/v2/integrations/wellsky/__init__.py +0 -33
- samplehc/resources/v2/integrations/wellsky/patients.py +0 -324
- samplehc/resources/v2/integrations/wellsky/wellsky.py +0 -102
- samplehc/resources/v2/integrations/xcures.py +0 -197
- samplehc/resources/v2/policies.py +0 -655
- samplehc/resources/v2/tasks/__init__.py +0 -33
- samplehc/resources/v2/tasks/state.py +0 -266
- samplehc/resources/v2/tasks/tasks.py +0 -754
- samplehc/resources/v2/workflow_runs/__init__.py +0 -33
- samplehc/resources/v2/workflow_runs/step.py +0 -169
- samplehc/resources/v2/workflow_runs/workflow_runs.py +0 -479
- samplehc/resources/v2/workflows.py +0 -377
- samplehc/types/v1/__init__.py +0 -3
- samplehc/types/v1_query_audit_logs_params.py +0 -12
- samplehc/types/v1_query_audit_logs_response.py +0 -16
- samplehc/types/v1_sql_execute_params.py +0 -27
- samplehc/types/v1_sql_execute_response.py +0 -27
- samplehc/types/v2/async_result_retrieve_response.py +0 -18
- samplehc/types/v2/clearinghouse/__init__.py +0 -9
- samplehc/types/v2/clearinghouse/claim_submit_params.py +0 -2693
- samplehc/types/v2/clearinghouse/claim_submit_response.py +0 -23
- samplehc/types/v2/clearinghouse/payer_list_response.py +0 -27
- samplehc/types/v2/clearinghouse/payer_search_params.py +0 -12
- samplehc/types/v2/clearinghouse/payer_search_response.py +0 -33
- samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +0 -3129
- samplehc/types/v2/clearinghouse_check_claim_status_params.py +0 -41
- samplehc/types/v2/clearinghouse_check_eligibility_params.py +0 -36
- samplehc/types/v2/clearinghouse_check_eligibility_response.py +0 -15
- samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py +0 -35
- samplehc/types/v2/clearinghouse_run_discovery_params.py +0 -59
- samplehc/types/v2/clearinghouse_run_discovery_response.py +0 -13
- samplehc/types/v2/document_unzip_async_response.py +0 -12
- samplehc/types/v2/document_unzip_response.py +0 -20
- samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +0 -17
- samplehc/types/v2/hie/__init__.py +0 -8
- samplehc/types/v2/hie/adt_subscribe_params.py +0 -92
- samplehc/types/v2/hie/document_query_params.py +0 -92
- samplehc/types/v2/hie/document_query_response.py +0 -16
- samplehc/types/v2/hie/document_upload_params.py +0 -54
- samplehc/types/v2/integrations/__init__.py +0 -23
- samplehc/types/v2/integrations/bank/__init__.py +0 -6
- samplehc/types/v2/integrations/bank/transaction_sync_params.py +0 -15
- samplehc/types/v2/integrations/bank/transaction_sync_response.py +0 -26
- samplehc/types/v2/integrations/careviso_get_payers_response.py +0 -19
- samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +0 -90
- samplehc/types/v2/integrations/glidian/__init__.py +0 -20
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +0 -32
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +0 -24
- samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +0 -13
- samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +0 -16
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +0 -20
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +0 -16
- samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +0 -7
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +0 -42
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +0 -23
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +0 -19
- samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +0 -17
- samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +0 -31
- samplehc/types/v2/integrations/glidian_list_payers_params.py +0 -11
- samplehc/types/v2/integrations/glidian_list_payers_response.py +0 -17
- samplehc/types/v2/integrations/glidian_list_services_params.py +0 -13
- samplehc/types/v2/integrations/glidian_list_services_response.py +0 -19
- samplehc/types/v2/integrations/kno2/__init__.py +0 -6
- samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +0 -15
- samplehc/types/v2/integrations/kno2/message_retrieve_response.py +0 -13
- samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +0 -22
- samplehc/types/v2/integrations/salesforce_run_soql_query_params.py +0 -11
- samplehc/types/v2/integrations/snowflake_query_params.py +0 -12
- samplehc/types/v2/integrations/snowflake_query_response.py +0 -8
- samplehc/types/v2/integrations/wellsky/__init__.py +0 -6
- samplehc/types/v2/integrations/wellsky/patient_add_params.py +0 -13
- samplehc/types/v2/integrations/wellsky/patient_search_params.py +0 -32
- samplehc/types/v2/integrations/xcure_make_request_params.py +0 -18
- samplehc/types/v2/ledger/__init__.py +0 -3
- samplehc/types/v2/policy_list_companies_params.py +0 -18
- samplehc/types/v2/policy_list_companies_response.py +0 -24
- samplehc/types/v2/policy_list_params.py +0 -47
- samplehc/types/v2/policy_list_plans_params.py +0 -18
- samplehc/types/v2/policy_list_plans_response.py +0 -30
- samplehc/types/v2/policy_list_response.py +0 -67
- samplehc/types/v2/policy_retrieve_presigned_url_response.py +0 -17
- samplehc/types/v2/policy_retrieve_text_response.py +0 -12
- samplehc/types/v2/task_cancel_response.py +0 -12
- samplehc/types/v2/task_complete_params.py +0 -12
- samplehc/types/v2/task_complete_response.py +0 -16
- samplehc/types/v2/task_get_suspended_payload_response.py +0 -8
- samplehc/types/v2/task_retrieve_response.py +0 -22
- samplehc/types/v2/task_retry_response.py +0 -10
- samplehc/types/v2/task_update_column_params.py +0 -19
- samplehc/types/v2/task_update_column_response.py +0 -9
- samplehc/types/v2/task_update_screen_time_params.py +0 -14
- samplehc/types/v2/task_update_screen_time_response.py +0 -8
- samplehc/types/v2/tasks/__init__.py +0 -7
- samplehc/types/v2/tasks/state_get_response.py +0 -8
- samplehc/types/v2/tasks/state_update_params.py +0 -13
- samplehc/types/v2/tasks/state_update_response.py +0 -9
- samplehc/types/v2/workflow_deploy_response.py +0 -12
- samplehc/types/v2/workflow_query_params.py +0 -12
- samplehc/types/v2/workflow_query_response.py +0 -8
- samplehc/types/v2/workflow_run_get_start_data_response.py +0 -14
- samplehc/types/v2/workflow_run_resume_when_complete_params.py +0 -14
- samplehc/types/v2/workflow_run_resume_when_complete_response.py +0 -12
- samplehc/types/v2/workflow_run_retrieve_response.py +0 -16
- samplehc/types/v2/workflow_runs/__init__.py +0 -5
- samplehc/types/v2/workflow_runs/step_get_output_response.py +0 -14
- samplehc/types/v2/workflow_start_params.py +0 -25
- samplehc/types/v2/workflow_start_response.py +0 -25
- samplehc-0.17.0.dist-info/RECORD +0 -226
- {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/WHEEL +0 -0
- {samplehc-0.17.0.dist-info → samplehc-0.19.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -52,23 +52,13 @@ from ...._response import (
|
|
|
52
52
|
async_to_raw_response_wrapper,
|
|
53
53
|
async_to_streamed_response_wrapper,
|
|
54
54
|
)
|
|
55
|
-
from .pdf_template import (
|
|
56
|
-
PdfTemplateResource,
|
|
57
|
-
AsyncPdfTemplateResource,
|
|
58
|
-
PdfTemplateResourceWithRawResponse,
|
|
59
|
-
AsyncPdfTemplateResourceWithRawResponse,
|
|
60
|
-
PdfTemplateResourceWithStreamingResponse,
|
|
61
|
-
AsyncPdfTemplateResourceWithStreamingResponse,
|
|
62
|
-
)
|
|
63
55
|
from ...._base_client import make_request_options
|
|
64
56
|
from ....types.v2.document_split_response import DocumentSplitResponse
|
|
65
|
-
from ....types.v2.document_unzip_response import DocumentUnzipResponse
|
|
66
57
|
from ....types.v2.document_search_response import DocumentSearchResponse
|
|
67
58
|
from ....types.v2.document_combine_response import DocumentCombineResponse
|
|
68
59
|
from ....types.v2.document_extract_response import DocumentExtractResponse
|
|
69
60
|
from ....types.v2.document_classify_response import DocumentClassifyResponse
|
|
70
61
|
from ....types.v2.document_retrieve_response import DocumentRetrieveResponse
|
|
71
|
-
from ....types.v2.document_unzip_async_response import DocumentUnzipAsyncResponse
|
|
72
62
|
from ....types.v2.document_generate_csv_response import DocumentGenerateCsvResponse
|
|
73
63
|
from ....types.v2.document_retrieve_metadata_response import DocumentRetrieveMetadataResponse
|
|
74
64
|
from ....types.v2.document_create_from_splits_response import DocumentCreateFromSplitsResponse
|
|
@@ -88,10 +78,6 @@ class DocumentsResource(SyncAPIResource):
|
|
|
88
78
|
def templates(self) -> TemplatesResource:
|
|
89
79
|
return TemplatesResource(self._client)
|
|
90
80
|
|
|
91
|
-
@cached_property
|
|
92
|
-
def pdf_template(self) -> PdfTemplateResource:
|
|
93
|
-
return PdfTemplateResource(self._client)
|
|
94
|
-
|
|
95
81
|
@cached_property
|
|
96
82
|
def formats(self) -> FormatsResource:
|
|
97
83
|
return FormatsResource(self._client)
|
|
@@ -292,8 +278,26 @@ class DocumentsResource(SyncAPIResource):
|
|
|
292
278
|
documents: Iterable[document_extract_params.Document],
|
|
293
279
|
prompt: str,
|
|
294
280
|
response_json_schema: Dict[str, object],
|
|
295
|
-
model: Literal[
|
|
281
|
+
model: Literal[
|
|
282
|
+
"reasoning-3-mini",
|
|
283
|
+
"reasoning-3",
|
|
284
|
+
"base-5",
|
|
285
|
+
"base-5-mini",
|
|
286
|
+
"base-5-nano",
|
|
287
|
+
"base-4.1",
|
|
288
|
+
"base-4.1-mini",
|
|
289
|
+
"base-4.1-nano",
|
|
290
|
+
"base-5.2",
|
|
291
|
+
"base-5.2-chat-latest",
|
|
292
|
+
"gemini-3-pro",
|
|
293
|
+
"gemini-3-flash",
|
|
294
|
+
"gemini-2.5-pro",
|
|
295
|
+
"gemini-2.5-flash",
|
|
296
|
+
"gemini-2.5-flash-lite",
|
|
297
|
+
]
|
|
298
|
+
| Omit = omit,
|
|
296
299
|
ocr_enhance: document_extract_params.OcrEnhance | Omit = omit,
|
|
300
|
+
ocr_quality: Literal["high", "low"] | Omit = omit,
|
|
297
301
|
priority: Literal["interactive", "non-interactive"] | Omit = omit,
|
|
298
302
|
reasoning_effort: Literal["low", "medium", "high"] | Omit = omit,
|
|
299
303
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -318,6 +322,8 @@ class DocumentsResource(SyncAPIResource):
|
|
|
318
322
|
|
|
319
323
|
ocr_enhance: OCR enhancement configuration for figure and text analysis.
|
|
320
324
|
|
|
325
|
+
ocr_quality: OCR quality setting
|
|
326
|
+
|
|
321
327
|
priority: The priority of the extraction task. Non-interactive is lower priority.
|
|
322
328
|
|
|
323
329
|
reasoning_effort: Optional control over the reasoning effort for extraction.
|
|
@@ -339,6 +345,7 @@ class DocumentsResource(SyncAPIResource):
|
|
|
339
345
|
"response_json_schema": response_json_schema,
|
|
340
346
|
"model": model,
|
|
341
347
|
"ocr_enhance": ocr_enhance,
|
|
348
|
+
"ocr_quality": ocr_quality,
|
|
342
349
|
"priority": priority,
|
|
343
350
|
"reasoning_effort": reasoning_effort,
|
|
344
351
|
},
|
|
@@ -654,74 +661,6 @@ class DocumentsResource(SyncAPIResource):
|
|
|
654
661
|
cast_to=DocumentTransformJsonToHTMLResponse,
|
|
655
662
|
)
|
|
656
663
|
|
|
657
|
-
def unzip(
|
|
658
|
-
self,
|
|
659
|
-
document_id: str,
|
|
660
|
-
*,
|
|
661
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
662
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
663
|
-
extra_headers: Headers | None = None,
|
|
664
|
-
extra_query: Query | None = None,
|
|
665
|
-
extra_body: Body | None = None,
|
|
666
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
667
|
-
) -> DocumentUnzipResponse:
|
|
668
|
-
"""
|
|
669
|
-
Given a document ID representing a ZIP file, unzip it, traverse the directory
|
|
670
|
-
structure and return all PDFs found as a list of documents
|
|
671
|
-
|
|
672
|
-
Args:
|
|
673
|
-
extra_headers: Send extra headers
|
|
674
|
-
|
|
675
|
-
extra_query: Add additional query parameters to the request
|
|
676
|
-
|
|
677
|
-
extra_body: Add additional JSON properties to the request
|
|
678
|
-
|
|
679
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
680
|
-
"""
|
|
681
|
-
if not document_id:
|
|
682
|
-
raise ValueError(f"Expected a non-empty value for `document_id` but received {document_id!r}")
|
|
683
|
-
return self._post(
|
|
684
|
-
f"/api/v2/documents/{document_id}/unzip",
|
|
685
|
-
options=make_request_options(
|
|
686
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
687
|
-
),
|
|
688
|
-
cast_to=DocumentUnzipResponse,
|
|
689
|
-
)
|
|
690
|
-
|
|
691
|
-
def unzip_async(
|
|
692
|
-
self,
|
|
693
|
-
document_id: str,
|
|
694
|
-
*,
|
|
695
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
696
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
697
|
-
extra_headers: Headers | None = None,
|
|
698
|
-
extra_query: Query | None = None,
|
|
699
|
-
extra_body: Body | None = None,
|
|
700
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
701
|
-
) -> DocumentUnzipAsyncResponse:
|
|
702
|
-
"""
|
|
703
|
-
Given a document ID representing a ZIP file, unzip it, traverse the directory
|
|
704
|
-
structure and return all PDFs found as a list of documents
|
|
705
|
-
|
|
706
|
-
Args:
|
|
707
|
-
extra_headers: Send extra headers
|
|
708
|
-
|
|
709
|
-
extra_query: Add additional query parameters to the request
|
|
710
|
-
|
|
711
|
-
extra_body: Add additional JSON properties to the request
|
|
712
|
-
|
|
713
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
714
|
-
"""
|
|
715
|
-
if not document_id:
|
|
716
|
-
raise ValueError(f"Expected a non-empty value for `document_id` but received {document_id!r}")
|
|
717
|
-
return self._post(
|
|
718
|
-
f"/api/v2/documents/{document_id}/unzip-async",
|
|
719
|
-
options=make_request_options(
|
|
720
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
721
|
-
),
|
|
722
|
-
cast_to=DocumentUnzipAsyncResponse,
|
|
723
|
-
)
|
|
724
|
-
|
|
725
664
|
|
|
726
665
|
class AsyncDocumentsResource(AsyncAPIResource):
|
|
727
666
|
@cached_property
|
|
@@ -732,10 +671,6 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
732
671
|
def templates(self) -> AsyncTemplatesResource:
|
|
733
672
|
return AsyncTemplatesResource(self._client)
|
|
734
673
|
|
|
735
|
-
@cached_property
|
|
736
|
-
def pdf_template(self) -> AsyncPdfTemplateResource:
|
|
737
|
-
return AsyncPdfTemplateResource(self._client)
|
|
738
|
-
|
|
739
674
|
@cached_property
|
|
740
675
|
def formats(self) -> AsyncFormatsResource:
|
|
741
676
|
return AsyncFormatsResource(self._client)
|
|
@@ -936,8 +871,26 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
936
871
|
documents: Iterable[document_extract_params.Document],
|
|
937
872
|
prompt: str,
|
|
938
873
|
response_json_schema: Dict[str, object],
|
|
939
|
-
model: Literal[
|
|
874
|
+
model: Literal[
|
|
875
|
+
"reasoning-3-mini",
|
|
876
|
+
"reasoning-3",
|
|
877
|
+
"base-5",
|
|
878
|
+
"base-5-mini",
|
|
879
|
+
"base-5-nano",
|
|
880
|
+
"base-4.1",
|
|
881
|
+
"base-4.1-mini",
|
|
882
|
+
"base-4.1-nano",
|
|
883
|
+
"base-5.2",
|
|
884
|
+
"base-5.2-chat-latest",
|
|
885
|
+
"gemini-3-pro",
|
|
886
|
+
"gemini-3-flash",
|
|
887
|
+
"gemini-2.5-pro",
|
|
888
|
+
"gemini-2.5-flash",
|
|
889
|
+
"gemini-2.5-flash-lite",
|
|
890
|
+
]
|
|
891
|
+
| Omit = omit,
|
|
940
892
|
ocr_enhance: document_extract_params.OcrEnhance | Omit = omit,
|
|
893
|
+
ocr_quality: Literal["high", "low"] | Omit = omit,
|
|
941
894
|
priority: Literal["interactive", "non-interactive"] | Omit = omit,
|
|
942
895
|
reasoning_effort: Literal["low", "medium", "high"] | Omit = omit,
|
|
943
896
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -962,6 +915,8 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
962
915
|
|
|
963
916
|
ocr_enhance: OCR enhancement configuration for figure and text analysis.
|
|
964
917
|
|
|
918
|
+
ocr_quality: OCR quality setting
|
|
919
|
+
|
|
965
920
|
priority: The priority of the extraction task. Non-interactive is lower priority.
|
|
966
921
|
|
|
967
922
|
reasoning_effort: Optional control over the reasoning effort for extraction.
|
|
@@ -983,6 +938,7 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
983
938
|
"response_json_schema": response_json_schema,
|
|
984
939
|
"model": model,
|
|
985
940
|
"ocr_enhance": ocr_enhance,
|
|
941
|
+
"ocr_quality": ocr_quality,
|
|
986
942
|
"priority": priority,
|
|
987
943
|
"reasoning_effort": reasoning_effort,
|
|
988
944
|
},
|
|
@@ -1298,74 +1254,6 @@ class AsyncDocumentsResource(AsyncAPIResource):
|
|
|
1298
1254
|
cast_to=DocumentTransformJsonToHTMLResponse,
|
|
1299
1255
|
)
|
|
1300
1256
|
|
|
1301
|
-
async def unzip(
|
|
1302
|
-
self,
|
|
1303
|
-
document_id: str,
|
|
1304
|
-
*,
|
|
1305
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1306
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1307
|
-
extra_headers: Headers | None = None,
|
|
1308
|
-
extra_query: Query | None = None,
|
|
1309
|
-
extra_body: Body | None = None,
|
|
1310
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1311
|
-
) -> DocumentUnzipResponse:
|
|
1312
|
-
"""
|
|
1313
|
-
Given a document ID representing a ZIP file, unzip it, traverse the directory
|
|
1314
|
-
structure and return all PDFs found as a list of documents
|
|
1315
|
-
|
|
1316
|
-
Args:
|
|
1317
|
-
extra_headers: Send extra headers
|
|
1318
|
-
|
|
1319
|
-
extra_query: Add additional query parameters to the request
|
|
1320
|
-
|
|
1321
|
-
extra_body: Add additional JSON properties to the request
|
|
1322
|
-
|
|
1323
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
1324
|
-
"""
|
|
1325
|
-
if not document_id:
|
|
1326
|
-
raise ValueError(f"Expected a non-empty value for `document_id` but received {document_id!r}")
|
|
1327
|
-
return await self._post(
|
|
1328
|
-
f"/api/v2/documents/{document_id}/unzip",
|
|
1329
|
-
options=make_request_options(
|
|
1330
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1331
|
-
),
|
|
1332
|
-
cast_to=DocumentUnzipResponse,
|
|
1333
|
-
)
|
|
1334
|
-
|
|
1335
|
-
async def unzip_async(
|
|
1336
|
-
self,
|
|
1337
|
-
document_id: str,
|
|
1338
|
-
*,
|
|
1339
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1340
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1341
|
-
extra_headers: Headers | None = None,
|
|
1342
|
-
extra_query: Query | None = None,
|
|
1343
|
-
extra_body: Body | None = None,
|
|
1344
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1345
|
-
) -> DocumentUnzipAsyncResponse:
|
|
1346
|
-
"""
|
|
1347
|
-
Given a document ID representing a ZIP file, unzip it, traverse the directory
|
|
1348
|
-
structure and return all PDFs found as a list of documents
|
|
1349
|
-
|
|
1350
|
-
Args:
|
|
1351
|
-
extra_headers: Send extra headers
|
|
1352
|
-
|
|
1353
|
-
extra_query: Add additional query parameters to the request
|
|
1354
|
-
|
|
1355
|
-
extra_body: Add additional JSON properties to the request
|
|
1356
|
-
|
|
1357
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
1358
|
-
"""
|
|
1359
|
-
if not document_id:
|
|
1360
|
-
raise ValueError(f"Expected a non-empty value for `document_id` but received {document_id!r}")
|
|
1361
|
-
return await self._post(
|
|
1362
|
-
f"/api/v2/documents/{document_id}/unzip-async",
|
|
1363
|
-
options=make_request_options(
|
|
1364
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1365
|
-
),
|
|
1366
|
-
cast_to=DocumentUnzipAsyncResponse,
|
|
1367
|
-
)
|
|
1368
|
-
|
|
1369
1257
|
|
|
1370
1258
|
class DocumentsResourceWithRawResponse:
|
|
1371
1259
|
def __init__(self, documents: DocumentsResource) -> None:
|
|
@@ -1407,12 +1295,6 @@ class DocumentsResourceWithRawResponse:
|
|
|
1407
1295
|
self.transform_json_to_html = to_raw_response_wrapper(
|
|
1408
1296
|
documents.transform_json_to_html,
|
|
1409
1297
|
)
|
|
1410
|
-
self.unzip = to_raw_response_wrapper(
|
|
1411
|
-
documents.unzip,
|
|
1412
|
-
)
|
|
1413
|
-
self.unzip_async = to_raw_response_wrapper(
|
|
1414
|
-
documents.unzip_async,
|
|
1415
|
-
)
|
|
1416
1298
|
|
|
1417
1299
|
@cached_property
|
|
1418
1300
|
def legacy(self) -> LegacyResourceWithRawResponse:
|
|
@@ -1422,10 +1304,6 @@ class DocumentsResourceWithRawResponse:
|
|
|
1422
1304
|
def templates(self) -> TemplatesResourceWithRawResponse:
|
|
1423
1305
|
return TemplatesResourceWithRawResponse(self._documents.templates)
|
|
1424
1306
|
|
|
1425
|
-
@cached_property
|
|
1426
|
-
def pdf_template(self) -> PdfTemplateResourceWithRawResponse:
|
|
1427
|
-
return PdfTemplateResourceWithRawResponse(self._documents.pdf_template)
|
|
1428
|
-
|
|
1429
1307
|
@cached_property
|
|
1430
1308
|
def formats(self) -> FormatsResourceWithRawResponse:
|
|
1431
1309
|
return FormatsResourceWithRawResponse(self._documents.formats)
|
|
@@ -1471,12 +1349,6 @@ class AsyncDocumentsResourceWithRawResponse:
|
|
|
1471
1349
|
self.transform_json_to_html = async_to_raw_response_wrapper(
|
|
1472
1350
|
documents.transform_json_to_html,
|
|
1473
1351
|
)
|
|
1474
|
-
self.unzip = async_to_raw_response_wrapper(
|
|
1475
|
-
documents.unzip,
|
|
1476
|
-
)
|
|
1477
|
-
self.unzip_async = async_to_raw_response_wrapper(
|
|
1478
|
-
documents.unzip_async,
|
|
1479
|
-
)
|
|
1480
1352
|
|
|
1481
1353
|
@cached_property
|
|
1482
1354
|
def legacy(self) -> AsyncLegacyResourceWithRawResponse:
|
|
@@ -1486,10 +1358,6 @@ class AsyncDocumentsResourceWithRawResponse:
|
|
|
1486
1358
|
def templates(self) -> AsyncTemplatesResourceWithRawResponse:
|
|
1487
1359
|
return AsyncTemplatesResourceWithRawResponse(self._documents.templates)
|
|
1488
1360
|
|
|
1489
|
-
@cached_property
|
|
1490
|
-
def pdf_template(self) -> AsyncPdfTemplateResourceWithRawResponse:
|
|
1491
|
-
return AsyncPdfTemplateResourceWithRawResponse(self._documents.pdf_template)
|
|
1492
|
-
|
|
1493
1361
|
@cached_property
|
|
1494
1362
|
def formats(self) -> AsyncFormatsResourceWithRawResponse:
|
|
1495
1363
|
return AsyncFormatsResourceWithRawResponse(self._documents.formats)
|
|
@@ -1535,12 +1403,6 @@ class DocumentsResourceWithStreamingResponse:
|
|
|
1535
1403
|
self.transform_json_to_html = to_streamed_response_wrapper(
|
|
1536
1404
|
documents.transform_json_to_html,
|
|
1537
1405
|
)
|
|
1538
|
-
self.unzip = to_streamed_response_wrapper(
|
|
1539
|
-
documents.unzip,
|
|
1540
|
-
)
|
|
1541
|
-
self.unzip_async = to_streamed_response_wrapper(
|
|
1542
|
-
documents.unzip_async,
|
|
1543
|
-
)
|
|
1544
1406
|
|
|
1545
1407
|
@cached_property
|
|
1546
1408
|
def legacy(self) -> LegacyResourceWithStreamingResponse:
|
|
@@ -1550,10 +1412,6 @@ class DocumentsResourceWithStreamingResponse:
|
|
|
1550
1412
|
def templates(self) -> TemplatesResourceWithStreamingResponse:
|
|
1551
1413
|
return TemplatesResourceWithStreamingResponse(self._documents.templates)
|
|
1552
1414
|
|
|
1553
|
-
@cached_property
|
|
1554
|
-
def pdf_template(self) -> PdfTemplateResourceWithStreamingResponse:
|
|
1555
|
-
return PdfTemplateResourceWithStreamingResponse(self._documents.pdf_template)
|
|
1556
|
-
|
|
1557
1415
|
@cached_property
|
|
1558
1416
|
def formats(self) -> FormatsResourceWithStreamingResponse:
|
|
1559
1417
|
return FormatsResourceWithStreamingResponse(self._documents.formats)
|
|
@@ -1599,12 +1457,6 @@ class AsyncDocumentsResourceWithStreamingResponse:
|
|
|
1599
1457
|
self.transform_json_to_html = async_to_streamed_response_wrapper(
|
|
1600
1458
|
documents.transform_json_to_html,
|
|
1601
1459
|
)
|
|
1602
|
-
self.unzip = async_to_streamed_response_wrapper(
|
|
1603
|
-
documents.unzip,
|
|
1604
|
-
)
|
|
1605
|
-
self.unzip_async = async_to_streamed_response_wrapper(
|
|
1606
|
-
documents.unzip_async,
|
|
1607
|
-
)
|
|
1608
1460
|
|
|
1609
1461
|
@cached_property
|
|
1610
1462
|
def legacy(self) -> AsyncLegacyResourceWithStreamingResponse:
|
|
@@ -1614,10 +1466,6 @@ class AsyncDocumentsResourceWithStreamingResponse:
|
|
|
1614
1466
|
def templates(self) -> AsyncTemplatesResourceWithStreamingResponse:
|
|
1615
1467
|
return AsyncTemplatesResourceWithStreamingResponse(self._documents.templates)
|
|
1616
1468
|
|
|
1617
|
-
@cached_property
|
|
1618
|
-
def pdf_template(self) -> AsyncPdfTemplateResourceWithStreamingResponse:
|
|
1619
|
-
return AsyncPdfTemplateResourceWithStreamingResponse(self._documents.pdf_template)
|
|
1620
|
-
|
|
1621
1469
|
@cached_property
|
|
1622
1470
|
def formats(self) -> AsyncFormatsResourceWithStreamingResponse:
|
|
1623
1471
|
return AsyncFormatsResourceWithStreamingResponse(self._documents.formats)
|