docu-devs-api-client 1.10.1__tar.gz → 1.10.2__tar.gz
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.
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/PKG-INFO +1 -1
- docu_devs_api_client-1.10.2/docudevs/api/job/apply_pdf_acro_form_field_definitions.py +169 -0
- docu_devs_api_client-1.10.2/docudevs/api/job/get_pdf_acro_form_field_definitions.py +92 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/docudevs_client.py +123 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/__init__.py +2 -0
- docu_devs_api_client-1.10.2/docudevs/models/pdf_acro_form_apply_request.py +121 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs_client.py +123 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/pyproject.toml +1 -1
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/.gitignore +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/README.md +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/cli.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/agent/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/agent/chat.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/agent/get_agent_status.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/azure_ocr_providers/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/azure_ocr_providers/create_ocr_provider.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/azure_ocr_providers/delete_ocr_provider.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/azure_ocr_providers/get_ocr_provider.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/azure_ocr_providers/list_ocr_keys.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/azure_ocr_providers/list_ocr_providers.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/azure_ocr_providers/update_ocr_key.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/azure_ocr_providers/update_ocr_provider.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/batch/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/batch/create_batch.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/batch/delete_batch_lookup_file.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/batch/download_batch_lookup_file.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/batch/process_batch.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/batch/process_batch_with_configuration.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/batch/schedule_batch.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/batch/upload_batch_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/batch/upload_batch_lookup_file.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/billing/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/billing/create_checkout_session.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/billing/get_balance.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/billing/get_recent_ledger.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/billing/get_usage_by_jobs.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/billing/get_usage_events.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/billing/get_usage_summary.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/billing/handle_webhook.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/billing/list_prices.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/create_case.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/delete_case.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/delete_case_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/download_case_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/get_case.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/get_case_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/get_document_summary.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/list_case_documents.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/list_case_summaries.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/list_cases.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/update_case.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/upload_case_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/cases/upload_case_document_legacy.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/configuration/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/configuration/delete_configuration.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/configuration/delete_lookup_file.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/configuration/download_excel_template.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/configuration/download_lookup_file.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/configuration/get_configuration.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/configuration/list_configurations.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/configuration/save_configuration.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/configuration/upload_excel_template.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/configuration/upload_lookup_file.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/default/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/default/get_current_user.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/default/resolve_ocr_provider.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/analyze_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/extract_acro_form_metadata.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/generate_schema.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/ocr_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/ocr_document_sync.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/process_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/process_document_with_configuration.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/upload_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/upload_files.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/upload_files_sync.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/document/upload_template.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/integration/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/integration/create_or_update.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/integration/delete.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/integration/list_.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/internal_llm/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/internal_llm/resolve_llm_provider.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/internal_operation/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/internal_operation/internal_get_operation_status.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/internal_operation/internal_mark_operation_timeout.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/internal_operation/internal_submit_operation.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/delete_job.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_acro_form_metadata.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_dependencies.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_document_outline.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_figure_image.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_figures_metadata.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_image.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_job_status.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_pdf_acro_form_result.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_processing_params.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_source_locations.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/get_trace.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/list_jobs.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/result.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/result_csv.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/result_excel.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/result_json.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/job/result_schema.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/knowledge_bases/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/knowledge_bases/demote_knowledge_base.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/knowledge_bases/get_knowledge_base.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/knowledge_bases/list_knowledge_bases.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/knowledge_bases/promote_knowledge_base.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/llm_providers/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/llm_providers/create_llm_provider.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/llm_providers/delete_llm_provider.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/llm_providers/get_llm_provider.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/llm_providers/list_llm_keys.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/llm_providers/list_llm_providers.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/llm_providers/update_llm_key.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/llm_providers/update_llm_provider.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/managed_execution/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/managed_execution/cancel_managed_execution.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/managed_execution/dispatch_managed_execution.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/managed_execution/get_managed_execution.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/managed_execution/get_managed_execution_logs.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/managed_execution/list_managed_executions.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/operations/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/operations/create_generative_task.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/operations/get_operation_result.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/operations/get_operation_status.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/operations/submit_operation.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/settings/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/settings/settings.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/create_portal.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/delete_portal.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/download.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/get_by_slug.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/get_default_for_configuration.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/get_portal.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/get_record.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/list_portals.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/submit.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/submission_portals/update_portal.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/template/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/template/delete_template.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/template/fill.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/template/list_templates.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/template/metadata.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/template/upload_template_images.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/track_changes/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/track_changes/extract_track_changes.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/webhook/__init__.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/webhook/get_webhook.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/api/webhook/update_webhook.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/cli.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/client.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/errors.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/agent_action.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/agent_action_data_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/agent_chat_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/agent_chat_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/agent_response_content.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/agent_response_content_suggested_config_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/agent_status_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/analyze_document_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/batch_create_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/batch_create_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/batch_schedule_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/batch_upload_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/billing_balance_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/billing_checkout_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/billing_checkout_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/billing_price.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/case.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/case_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/case_document_metadata_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/cases_controller_create_case_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/cases_controller_update_case_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/chat_message.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/comment.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/create_llm_provider_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/create_llm_provider_request_kwargs_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/create_ocr_provider_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/create_ocr_provider_request_features_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/create_secret_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/create_submission_portal_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/daily_usage_entry.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/dependency_info.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/dispatch_execution_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/dispatch_execution_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/document_status.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/document_summary_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/document_summary_response_summary_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/document_template.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/excel_template_config.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/execution_log_line.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/extract_acro_form_metadata_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/extract_track_changes_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/extraction_mode.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/generate_schema_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/generative_task_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/internal_operation_status_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/internal_operation_status_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/internal_operation_timeout_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/internal_submit_operation_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/knowledge_bases_controller_promote_knowledge_base_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/ledger_entry_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/llm_key_binding_dto.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/llm_provider_dto.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/llm_type.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/lookup_file_config.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/managed_execution_summary.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/map_reduce_command.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/map_reduce_header_command.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/map_reduce_runtime_status.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/map_reduce_split_type.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/named_configuration.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/ocr_command.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/ocr_document_sync_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/ocr_key_binding_dto.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/ocr_provider_dto.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/ocr_type.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/operation_info.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/operation_parameters.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/operation_parameters_custom_parameters_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/operation_result_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/operation_status_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/organization.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/page_case_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/page_processing_job.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/pageable.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/pageable_mode.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/pdf_field.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/pipeline_node_status_summary.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/pipeline_ocr_status_summary.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/pipeline_status_summary.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/processing_job.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/processing_job_batch_metadata_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/purge_result.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/resolve_llm_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/resolve_ocr_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/resolved_llm_provider_dto.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/resolved_ocr_provider_dto.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/secret_summary.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/settings.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/sheet_write_target.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/slice_case_document.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/slice_processing_job.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/sort.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/sort_order.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/sort_order_direction.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/source_location_granularity.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/submission_download_format.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/submission_input_mode.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/submission_portal_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/submission_record_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/submission_record_status.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/submission_result_mode.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/submission_submit_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/submit_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/submit_operation_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/submit_operation_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/template_fill_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/tool_descriptor.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/tool_descriptor_config_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/tool_type.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/track_change.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/track_changes_result.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/track_changes_summary.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/update_key_binding_request_dto.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/update_llm_provider_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/update_llm_provider_request_kwargs_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/update_ocr_key_binding_request_dto.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/update_ocr_provider_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/update_ocr_provider_request_features_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/update_submission_portal_request.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_batch_document_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_batch_lookup_file_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_case_document_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_case_document_legacy_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_command.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_command_pipeline_type_1.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_document_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_excel_template_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_files_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_files_sync_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_lookup_file_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_template_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/upload_template_images_body.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/usage_event_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/usage_summary_response.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/user_info.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/models/webhook_settings.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/pipeline.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/py.typed +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/schema.py +0 -0
- {docu_devs_api_client-1.10.1 → docu_devs_api_client-1.10.2}/docudevs/types.py +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.pdf_acro_form_apply_request import PdfAcroFormApplyRequest
|
|
9
|
+
from ...models.submit_operation_response import SubmitOperationResponse
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
parent_guid: str,
|
|
15
|
+
*,
|
|
16
|
+
body: PdfAcroFormApplyRequest,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": f"/job/{parent_guid}/pdf-acroform/apply",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_kwargs["json"] = body.to_dict()
|
|
26
|
+
|
|
27
|
+
headers["Content-Type"] = "application/json"
|
|
28
|
+
|
|
29
|
+
_kwargs["headers"] = headers
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(
|
|
34
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
35
|
+
) -> Optional[SubmitOperationResponse]:
|
|
36
|
+
if response.status_code == 200:
|
|
37
|
+
response_200 = SubmitOperationResponse.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_200
|
|
40
|
+
|
|
41
|
+
if client.raise_on_unexpected_status:
|
|
42
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
43
|
+
else:
|
|
44
|
+
return None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _build_response(
|
|
48
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
49
|
+
) -> Response[SubmitOperationResponse]:
|
|
50
|
+
return Response(
|
|
51
|
+
status_code=HTTPStatus(response.status_code),
|
|
52
|
+
content=response.content,
|
|
53
|
+
headers=response.headers,
|
|
54
|
+
parsed=_parse_response(client=client, response=response),
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def sync_detailed(
|
|
59
|
+
parent_guid: str,
|
|
60
|
+
*,
|
|
61
|
+
client: Union[AuthenticatedClient, Client],
|
|
62
|
+
body: PdfAcroFormApplyRequest,
|
|
63
|
+
) -> Response[SubmitOperationResponse]:
|
|
64
|
+
"""
|
|
65
|
+
Args:
|
|
66
|
+
parent_guid (str):
|
|
67
|
+
body (PdfAcroFormApplyRequest):
|
|
68
|
+
|
|
69
|
+
Raises:
|
|
70
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
71
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
72
|
+
|
|
73
|
+
Returns:
|
|
74
|
+
Response[SubmitOperationResponse]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
kwargs = _get_kwargs(
|
|
78
|
+
parent_guid=parent_guid,
|
|
79
|
+
body=body,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
response = client.get_httpx_client().request(
|
|
83
|
+
**kwargs,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
return _build_response(client=client, response=response)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def sync(
|
|
90
|
+
parent_guid: str,
|
|
91
|
+
*,
|
|
92
|
+
client: Union[AuthenticatedClient, Client],
|
|
93
|
+
body: PdfAcroFormApplyRequest,
|
|
94
|
+
) -> Optional[SubmitOperationResponse]:
|
|
95
|
+
"""
|
|
96
|
+
Args:
|
|
97
|
+
parent_guid (str):
|
|
98
|
+
body (PdfAcroFormApplyRequest):
|
|
99
|
+
|
|
100
|
+
Raises:
|
|
101
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
102
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
103
|
+
|
|
104
|
+
Returns:
|
|
105
|
+
SubmitOperationResponse
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
return sync_detailed(
|
|
109
|
+
parent_guid=parent_guid,
|
|
110
|
+
client=client,
|
|
111
|
+
body=body,
|
|
112
|
+
).parsed
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
async def asyncio_detailed(
|
|
116
|
+
parent_guid: str,
|
|
117
|
+
*,
|
|
118
|
+
client: Union[AuthenticatedClient, Client],
|
|
119
|
+
body: PdfAcroFormApplyRequest,
|
|
120
|
+
) -> Response[SubmitOperationResponse]:
|
|
121
|
+
"""
|
|
122
|
+
Args:
|
|
123
|
+
parent_guid (str):
|
|
124
|
+
body (PdfAcroFormApplyRequest):
|
|
125
|
+
|
|
126
|
+
Raises:
|
|
127
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
128
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
129
|
+
|
|
130
|
+
Returns:
|
|
131
|
+
Response[SubmitOperationResponse]
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
kwargs = _get_kwargs(
|
|
135
|
+
parent_guid=parent_guid,
|
|
136
|
+
body=body,
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
140
|
+
|
|
141
|
+
return _build_response(client=client, response=response)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
async def asyncio(
|
|
145
|
+
parent_guid: str,
|
|
146
|
+
*,
|
|
147
|
+
client: Union[AuthenticatedClient, Client],
|
|
148
|
+
body: PdfAcroFormApplyRequest,
|
|
149
|
+
) -> Optional[SubmitOperationResponse]:
|
|
150
|
+
"""
|
|
151
|
+
Args:
|
|
152
|
+
parent_guid (str):
|
|
153
|
+
body (PdfAcroFormApplyRequest):
|
|
154
|
+
|
|
155
|
+
Raises:
|
|
156
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
157
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
158
|
+
|
|
159
|
+
Returns:
|
|
160
|
+
SubmitOperationResponse
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
return (
|
|
164
|
+
await asyncio_detailed(
|
|
165
|
+
parent_guid=parent_guid,
|
|
166
|
+
client=client,
|
|
167
|
+
body=body,
|
|
168
|
+
)
|
|
169
|
+
).parsed
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...types import Response
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _get_kwargs(
|
|
12
|
+
guid: str,
|
|
13
|
+
) -> dict[str, Any]:
|
|
14
|
+
_kwargs: dict[str, Any] = {
|
|
15
|
+
"method": "get",
|
|
16
|
+
"url": f"/job/result/{guid}/pdf-acroform-field-definitions",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return _kwargs
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
|
|
23
|
+
if response.status_code == 200:
|
|
24
|
+
return None
|
|
25
|
+
|
|
26
|
+
if client.raise_on_unexpected_status:
|
|
27
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
28
|
+
else:
|
|
29
|
+
return None
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
33
|
+
return Response(
|
|
34
|
+
status_code=HTTPStatus(response.status_code),
|
|
35
|
+
content=response.content,
|
|
36
|
+
headers=response.headers,
|
|
37
|
+
parsed=_parse_response(client=client, response=response),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def sync_detailed(
|
|
42
|
+
guid: str,
|
|
43
|
+
*,
|
|
44
|
+
client: Union[AuthenticatedClient, Client],
|
|
45
|
+
) -> Response[Any]:
|
|
46
|
+
"""
|
|
47
|
+
Args:
|
|
48
|
+
guid (str):
|
|
49
|
+
|
|
50
|
+
Raises:
|
|
51
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
52
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
53
|
+
|
|
54
|
+
Returns:
|
|
55
|
+
Response[Any]
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
kwargs = _get_kwargs(
|
|
59
|
+
guid=guid,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
response = client.get_httpx_client().request(
|
|
63
|
+
**kwargs,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
return _build_response(client=client, response=response)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
async def asyncio_detailed(
|
|
70
|
+
guid: str,
|
|
71
|
+
*,
|
|
72
|
+
client: Union[AuthenticatedClient, Client],
|
|
73
|
+
) -> Response[Any]:
|
|
74
|
+
"""
|
|
75
|
+
Args:
|
|
76
|
+
guid (str):
|
|
77
|
+
|
|
78
|
+
Raises:
|
|
79
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
80
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
81
|
+
|
|
82
|
+
Returns:
|
|
83
|
+
Response[Any]
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
kwargs = _get_kwargs(
|
|
87
|
+
guid=guid,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
91
|
+
|
|
92
|
+
return _build_response(client=client, response=response)
|
|
@@ -2301,6 +2301,10 @@ class DocuDevsClient:
|
|
|
2301
2301
|
min_confidence: Optional[float] = None,
|
|
2302
2302
|
max_fields_per_page: Optional[int] = None,
|
|
2303
2303
|
force_ocr: Optional[bool] = None,
|
|
2304
|
+
use_commonforms: Optional[bool] = None,
|
|
2305
|
+
commonforms_model: Optional[str] = None,
|
|
2306
|
+
commonforms_fast: Optional[bool] = None,
|
|
2307
|
+
commonforms_confidence: Optional[float] = None,
|
|
2304
2308
|
):
|
|
2305
2309
|
"""Submit a pdf-acroform operation for an existing PDF job."""
|
|
2306
2310
|
if page_range is not None:
|
|
@@ -2309,6 +2313,8 @@ class DocuDevsClient:
|
|
|
2309
2313
|
page_range = [int(page) for page in page_range]
|
|
2310
2314
|
if min_confidence is not None and not 0 <= min_confidence <= 1:
|
|
2311
2315
|
raise ValueError("min_confidence must be between 0 and 1")
|
|
2316
|
+
if commonforms_confidence is not None and not 0 <= commonforms_confidence <= 1:
|
|
2317
|
+
raise ValueError("commonforms_confidence must be between 0 and 1")
|
|
2312
2318
|
if max_fields_per_page is not None and max_fields_per_page < 1:
|
|
2313
2319
|
raise ValueError("max_fields_per_page must be >= 1")
|
|
2314
2320
|
|
|
@@ -2324,6 +2330,14 @@ class DocuDevsClient:
|
|
|
2324
2330
|
custom_parameters["maxFieldsPerPage"] = max_fields_per_page
|
|
2325
2331
|
if force_ocr is not None:
|
|
2326
2332
|
custom_parameters["forceOcr"] = force_ocr
|
|
2333
|
+
if use_commonforms is not None:
|
|
2334
|
+
custom_parameters["useCommonForms"] = use_commonforms
|
|
2335
|
+
if commonforms_model is not None:
|
|
2336
|
+
custom_parameters["commonFormsModel"] = commonforms_model
|
|
2337
|
+
if commonforms_fast is not None:
|
|
2338
|
+
custom_parameters["commonFormsFast"] = commonforms_fast
|
|
2339
|
+
if commonforms_confidence is not None:
|
|
2340
|
+
custom_parameters["commonFormsConfidence"] = commonforms_confidence
|
|
2327
2341
|
|
|
2328
2342
|
return await self.submit_operation_with_parameters(
|
|
2329
2343
|
job_guid=job_guid,
|
|
@@ -2349,6 +2363,107 @@ class DocuDevsClient:
|
|
|
2349
2363
|
)
|
|
2350
2364
|
raise Exception(f"Error downloading pdf-acroform result: {response.status_code} - {response.text}")
|
|
2351
2365
|
|
|
2366
|
+
async def get_pdf_acroform_field_definitions(
|
|
2367
|
+
self, operation_job_guid: str
|
|
2368
|
+
) -> dict | None:
|
|
2369
|
+
"""Get normalized field definitions used to generate a pdf-acroform operation."""
|
|
2370
|
+
response = await self._get_async_client().get(
|
|
2371
|
+
f"/job/result/{quote(operation_job_guid, safe='')}/pdf-acroform-field-definitions"
|
|
2372
|
+
)
|
|
2373
|
+
if response.status_code == HTTPStatus.OK:
|
|
2374
|
+
try:
|
|
2375
|
+
return response.json()
|
|
2376
|
+
except Exception:
|
|
2377
|
+
try:
|
|
2378
|
+
import json
|
|
2379
|
+
|
|
2380
|
+
return json.loads(response.text)
|
|
2381
|
+
except Exception:
|
|
2382
|
+
return None
|
|
2383
|
+
if response.status_code == HTTPStatus.NOT_FOUND:
|
|
2384
|
+
return None
|
|
2385
|
+
raise Exception(
|
|
2386
|
+
f"Failed to get pdf-acroform field definitions: {response.status_code}"
|
|
2387
|
+
)
|
|
2388
|
+
|
|
2389
|
+
async def submit_pdf_acroform_apply_operation(
|
|
2390
|
+
self,
|
|
2391
|
+
parent_job_guid: str,
|
|
2392
|
+
*,
|
|
2393
|
+
field_definitions: Sequence[Mapping[str, Any]],
|
|
2394
|
+
source_operation_guid: Optional[str] = None,
|
|
2395
|
+
min_confidence: Optional[float] = 0.0,
|
|
2396
|
+
max_fields_per_page: Optional[int] = 300,
|
|
2397
|
+
):
|
|
2398
|
+
"""Submit edited field definitions to generate a new AcroForm PDF."""
|
|
2399
|
+
if field_definitions is None:
|
|
2400
|
+
raise ValueError("field_definitions is required")
|
|
2401
|
+
normalized_definitions = [dict(field) for field in field_definitions]
|
|
2402
|
+
if min_confidence is not None and not 0 <= min_confidence <= 1:
|
|
2403
|
+
raise ValueError("min_confidence must be between 0 and 1")
|
|
2404
|
+
if max_fields_per_page is not None and max_fields_per_page < 1:
|
|
2405
|
+
raise ValueError("max_fields_per_page must be >= 1")
|
|
2406
|
+
|
|
2407
|
+
payload: dict[str, Any] = {"fieldDefinitions": normalized_definitions}
|
|
2408
|
+
if source_operation_guid is not None:
|
|
2409
|
+
payload["sourceOperationGuid"] = source_operation_guid
|
|
2410
|
+
if min_confidence is not None:
|
|
2411
|
+
payload["minConfidence"] = min_confidence
|
|
2412
|
+
if max_fields_per_page is not None:
|
|
2413
|
+
payload["maxFieldsPerPage"] = max_fields_per_page
|
|
2414
|
+
|
|
2415
|
+
response = await self._get_async_client().post(
|
|
2416
|
+
f"/job/{quote(parent_job_guid, safe='')}/pdf-acroform/apply",
|
|
2417
|
+
json=payload,
|
|
2418
|
+
)
|
|
2419
|
+
if response.status_code == HTTPStatus.OK:
|
|
2420
|
+
return self._wrap_response(response)
|
|
2421
|
+
raise Exception(
|
|
2422
|
+
"Error submitting pdf-acroform apply operation: "
|
|
2423
|
+
f"{response.status_code} - {response.text}"
|
|
2424
|
+
)
|
|
2425
|
+
|
|
2426
|
+
async def submit_and_wait_for_pdf_acroform_apply_operation(
|
|
2427
|
+
self,
|
|
2428
|
+
parent_job_guid: str,
|
|
2429
|
+
*,
|
|
2430
|
+
field_definitions: Sequence[Mapping[str, Any]],
|
|
2431
|
+
source_operation_guid: Optional[str] = None,
|
|
2432
|
+
min_confidence: Optional[float] = 0.0,
|
|
2433
|
+
max_fields_per_page: Optional[int] = 300,
|
|
2434
|
+
timeout: int = 180,
|
|
2435
|
+
poll_interval: float = 5.0,
|
|
2436
|
+
save_to: str | None = None,
|
|
2437
|
+
) -> PdfAcroFormOperationResult:
|
|
2438
|
+
"""Submit edited field definitions, wait for completion, then download the PDF."""
|
|
2439
|
+
operation_response = await self.submit_pdf_acroform_apply_operation(
|
|
2440
|
+
parent_job_guid,
|
|
2441
|
+
field_definitions=field_definitions,
|
|
2442
|
+
source_operation_guid=source_operation_guid,
|
|
2443
|
+
min_confidence=min_confidence,
|
|
2444
|
+
max_fields_per_page=max_fields_per_page,
|
|
2445
|
+
)
|
|
2446
|
+
parsed = getattr(operation_response, "parsed", None)
|
|
2447
|
+
operation_guid = getattr(operation_response, "job_guid", None)
|
|
2448
|
+
if not operation_guid and isinstance(parsed, Mapping):
|
|
2449
|
+
operation_guid = parsed.get("jobGuid") or parsed.get("job_guid")
|
|
2450
|
+
if not operation_guid:
|
|
2451
|
+
raise Exception("No operation job GUID returned from pdf-acroform apply operation")
|
|
2452
|
+
result = await self._wait_for_operation_job_result(
|
|
2453
|
+
operation_guid,
|
|
2454
|
+
parent_job_guid=parent_job_guid,
|
|
2455
|
+
operation_type="pdf-acroform-apply",
|
|
2456
|
+
timeout=timeout,
|
|
2457
|
+
poll_interval=poll_interval,
|
|
2458
|
+
)
|
|
2459
|
+
pdf = await self.get_pdf_acroform(operation_guid, save_to=save_to)
|
|
2460
|
+
return PdfAcroFormOperationResult(
|
|
2461
|
+
result=result,
|
|
2462
|
+
pdf=pdf,
|
|
2463
|
+
operation_job_guid=operation_guid,
|
|
2464
|
+
parent_job_guid=parent_job_guid,
|
|
2465
|
+
)
|
|
2466
|
+
|
|
2352
2467
|
async def submit_and_wait_for_pdf_acroform_operation(
|
|
2353
2468
|
self,
|
|
2354
2469
|
job_guid: str,
|
|
@@ -2359,6 +2474,10 @@ class DocuDevsClient:
|
|
|
2359
2474
|
min_confidence: Optional[float] = None,
|
|
2360
2475
|
max_fields_per_page: Optional[int] = None,
|
|
2361
2476
|
force_ocr: Optional[bool] = None,
|
|
2477
|
+
use_commonforms: Optional[bool] = None,
|
|
2478
|
+
commonforms_model: Optional[str] = None,
|
|
2479
|
+
commonforms_fast: Optional[bool] = None,
|
|
2480
|
+
commonforms_confidence: Optional[float] = None,
|
|
2362
2481
|
timeout: int = 180,
|
|
2363
2482
|
poll_interval: float = 5.0,
|
|
2364
2483
|
save_to: str | None = None,
|
|
@@ -2372,6 +2491,10 @@ class DocuDevsClient:
|
|
|
2372
2491
|
min_confidence=min_confidence,
|
|
2373
2492
|
max_fields_per_page=max_fields_per_page,
|
|
2374
2493
|
force_ocr=force_ocr,
|
|
2494
|
+
use_commonforms=use_commonforms,
|
|
2495
|
+
commonforms_model=commonforms_model,
|
|
2496
|
+
commonforms_fast=commonforms_fast,
|
|
2497
|
+
commonforms_confidence=commonforms_confidence,
|
|
2375
2498
|
)
|
|
2376
2499
|
operation_guid = getattr(operation_response, "job_guid", None)
|
|
2377
2500
|
if not operation_guid:
|
|
@@ -77,6 +77,7 @@ from .page_case_document import PageCaseDocument
|
|
|
77
77
|
from .page_processing_job import PageProcessingJob
|
|
78
78
|
from .pageable import Pageable
|
|
79
79
|
from .pageable_mode import PageableMode
|
|
80
|
+
from .pdf_acro_form_apply_request import PdfAcroFormApplyRequest
|
|
80
81
|
from .pdf_field import PDFField
|
|
81
82
|
from .pipeline_node_status_summary import PipelineNodeStatusSummary
|
|
82
83
|
from .pipeline_ocr_status_summary import PipelineOcrStatusSummary
|
|
@@ -216,6 +217,7 @@ __all__ = (
|
|
|
216
217
|
"PageableMode",
|
|
217
218
|
"PageCaseDocument",
|
|
218
219
|
"PageProcessingJob",
|
|
220
|
+
"PdfAcroFormApplyRequest",
|
|
219
221
|
"PDFField",
|
|
220
222
|
"PipelineNodeStatusSummary",
|
|
221
223
|
"PipelineOcrStatusSummary",
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="PdfAcroFormApplyRequest")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class PdfAcroFormApplyRequest:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
field_definitions (list[Any]):
|
|
17
|
+
source_operation_guid (Union[None, Unset, str]):
|
|
18
|
+
min_confidence (Union[None, Unset, float]):
|
|
19
|
+
max_fields_per_page (Union[None, Unset, int]):
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
field_definitions: list[Any]
|
|
23
|
+
source_operation_guid: Union[None, Unset, str] = UNSET
|
|
24
|
+
min_confidence: Union[None, Unset, float] = UNSET
|
|
25
|
+
max_fields_per_page: Union[None, Unset, int] = UNSET
|
|
26
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
27
|
+
|
|
28
|
+
def to_dict(self) -> dict[str, Any]:
|
|
29
|
+
field_definitions = self.field_definitions
|
|
30
|
+
|
|
31
|
+
source_operation_guid: Union[None, Unset, str]
|
|
32
|
+
if isinstance(self.source_operation_guid, Unset):
|
|
33
|
+
source_operation_guid = UNSET
|
|
34
|
+
else:
|
|
35
|
+
source_operation_guid = self.source_operation_guid
|
|
36
|
+
|
|
37
|
+
min_confidence: Union[None, Unset, float]
|
|
38
|
+
if isinstance(self.min_confidence, Unset):
|
|
39
|
+
min_confidence = UNSET
|
|
40
|
+
else:
|
|
41
|
+
min_confidence = self.min_confidence
|
|
42
|
+
|
|
43
|
+
max_fields_per_page: Union[None, Unset, int]
|
|
44
|
+
if isinstance(self.max_fields_per_page, Unset):
|
|
45
|
+
max_fields_per_page = UNSET
|
|
46
|
+
else:
|
|
47
|
+
max_fields_per_page = self.max_fields_per_page
|
|
48
|
+
|
|
49
|
+
field_dict: dict[str, Any] = {}
|
|
50
|
+
field_dict.update(self.additional_properties)
|
|
51
|
+
field_dict.update(
|
|
52
|
+
{
|
|
53
|
+
"fieldDefinitions": field_definitions,
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
if source_operation_guid is not UNSET:
|
|
57
|
+
field_dict["sourceOperationGuid"] = source_operation_guid
|
|
58
|
+
if min_confidence is not UNSET:
|
|
59
|
+
field_dict["minConfidence"] = min_confidence
|
|
60
|
+
if max_fields_per_page is not UNSET:
|
|
61
|
+
field_dict["maxFieldsPerPage"] = max_fields_per_page
|
|
62
|
+
|
|
63
|
+
return field_dict
|
|
64
|
+
|
|
65
|
+
@classmethod
|
|
66
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
67
|
+
d = dict(src_dict)
|
|
68
|
+
field_definitions = cast(list[Any], d.pop("fieldDefinitions"))
|
|
69
|
+
|
|
70
|
+
def _parse_source_operation_guid(data: object) -> Union[None, Unset, str]:
|
|
71
|
+
if data is None:
|
|
72
|
+
return data
|
|
73
|
+
if isinstance(data, Unset):
|
|
74
|
+
return data
|
|
75
|
+
return cast(Union[None, Unset, str], data)
|
|
76
|
+
|
|
77
|
+
source_operation_guid = _parse_source_operation_guid(d.pop("sourceOperationGuid", UNSET))
|
|
78
|
+
|
|
79
|
+
def _parse_min_confidence(data: object) -> Union[None, Unset, float]:
|
|
80
|
+
if data is None:
|
|
81
|
+
return data
|
|
82
|
+
if isinstance(data, Unset):
|
|
83
|
+
return data
|
|
84
|
+
return cast(Union[None, Unset, float], data)
|
|
85
|
+
|
|
86
|
+
min_confidence = _parse_min_confidence(d.pop("minConfidence", UNSET))
|
|
87
|
+
|
|
88
|
+
def _parse_max_fields_per_page(data: object) -> Union[None, Unset, int]:
|
|
89
|
+
if data is None:
|
|
90
|
+
return data
|
|
91
|
+
if isinstance(data, Unset):
|
|
92
|
+
return data
|
|
93
|
+
return cast(Union[None, Unset, int], data)
|
|
94
|
+
|
|
95
|
+
max_fields_per_page = _parse_max_fields_per_page(d.pop("maxFieldsPerPage", UNSET))
|
|
96
|
+
|
|
97
|
+
pdf_acro_form_apply_request = cls(
|
|
98
|
+
field_definitions=field_definitions,
|
|
99
|
+
source_operation_guid=source_operation_guid,
|
|
100
|
+
min_confidence=min_confidence,
|
|
101
|
+
max_fields_per_page=max_fields_per_page,
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
pdf_acro_form_apply_request.additional_properties = d
|
|
105
|
+
return pdf_acro_form_apply_request
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def additional_keys(self) -> list[str]:
|
|
109
|
+
return list(self.additional_properties.keys())
|
|
110
|
+
|
|
111
|
+
def __getitem__(self, key: str) -> Any:
|
|
112
|
+
return self.additional_properties[key]
|
|
113
|
+
|
|
114
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
115
|
+
self.additional_properties[key] = value
|
|
116
|
+
|
|
117
|
+
def __delitem__(self, key: str) -> None:
|
|
118
|
+
del self.additional_properties[key]
|
|
119
|
+
|
|
120
|
+
def __contains__(self, key: str) -> bool:
|
|
121
|
+
return key in self.additional_properties
|