docu-devs-api-client 1.7.1__tar.gz → 1.9.1__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.7.1 → docu_devs_api_client-1.9.1}/PKG-INFO +2 -2
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/cli.py +107 -12
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/batch/create_batch.py +10 -10
- docu_devs_api_client-1.9.1/docudevs/api/batch/delete_batch_lookup_file.py +92 -0
- docu_devs_api_client-1.9.1/docudevs/api/batch/download_batch_lookup_file.py +142 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/batch/process_batch.py +10 -10
- docu_devs_api_client-1.9.1/docudevs/api/batch/process_batch_with_configuration.py +186 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/batch/schedule_batch.py +0 -22
- docu_devs_api_client-1.9.1/docudevs/api/batch/upload_batch_lookup_file.py +106 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/billing/create_checkout_session.py +10 -10
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/billing/get_balance.py +4 -36
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/billing/get_recent_ledger.py +0 -15
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/billing/get_usage_by_jobs.py +0 -9
- docu_devs_api_client-1.9.1/docudevs/api/billing/get_usage_events.py +190 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/billing/get_usage_summary.py +4 -36
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/billing/list_prices.py +4 -36
- docu_devs_api_client-1.9.1/docudevs/api/cases/download_case_document.py +156 -0
- docu_devs_api_client-1.9.1/docudevs/api/cases/get_document_summary.py +160 -0
- docu_devs_api_client-1.9.1/docudevs/api/cases/list_case_summaries.py +147 -0
- docu_devs_api_client-1.9.1/docudevs/api/configuration/delete_lookup_file.py +92 -0
- docu_devs_api_client-1.9.1/docudevs/api/configuration/download_excel_template.py +142 -0
- docu_devs_api_client-1.9.1/docudevs/api/configuration/download_lookup_file.py +142 -0
- docu_devs_api_client-1.9.1/docudevs/api/configuration/upload_lookup_file.py +106 -0
- docu_devs_api_client-1.9.1/docudevs/api/integration/create_or_update.py +152 -0
- docu_devs_api_client-1.9.1/docudevs/api/integration/delete.py +92 -0
- docu_devs_api_client-1.9.1/docudevs/api/integration/list_.py +128 -0
- docu_devs_api_client-1.9.1/docudevs/api/internal_operation/internal_get_operation_status.py +156 -0
- docu_devs_api_client-1.9.1/docudevs/api/internal_operation/internal_mark_operation_timeout.py +156 -0
- docu_devs_api_client-1.9.1/docudevs/api/internal_operation/internal_submit_operation.py +156 -0
- docu_devs_api_client-1.9.1/docudevs/api/job/get_document_outline.py +112 -0
- docu_devs_api_client-1.9.1/docudevs/api/job/get_processing_params.py +92 -0
- docu_devs_api_client-1.9.1/docudevs/api/job/get_source_locations.py +112 -0
- docu_devs_api_client-1.9.1/docudevs/api/job/result_schema.py +92 -0
- docu_devs_api_client-1.9.1/docudevs/api/managed_execution/cancel_managed_execution.py +92 -0
- docu_devs_api_client-1.9.1/docudevs/api/managed_execution/dispatch_managed_execution.py +156 -0
- docu_devs_api_client-1.9.1/docudevs/api/managed_execution/get_managed_execution.py +147 -0
- docu_devs_api_client-1.9.1/docudevs/api/managed_execution/get_managed_execution_logs.py +152 -0
- docu_devs_api_client-1.9.1/docudevs/api/managed_execution/list_managed_executions.py +165 -0
- docu_devs_api_client-1.9.1/docudevs/api/operations/__init__.py +1 -0
- docu_devs_api_client-1.9.1/docudevs/api/settings/__init__.py +1 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/settings/settings.py +4 -36
- docu_devs_api_client-1.9.1/docudevs/api/template/__init__.py +1 -0
- docu_devs_api_client-1.9.1/docudevs/api/track_changes/__init__.py +1 -0
- docu_devs_api_client-1.9.1/docudevs/api/track_changes/extract_track_changes.py +170 -0
- docu_devs_api_client-1.9.1/docudevs/api/webhook/__init__.py +1 -0
- docu_devs_api_client-1.9.1/docudevs/api/webhook/get_webhook.py +123 -0
- docu_devs_api_client-1.9.1/docudevs/api/webhook/update_webhook.py +155 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/cli.py +107 -12
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/docudevs_client.py +706 -44
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/__init__.py +56 -8
- docu_devs_api_client-1.9.1/docudevs/models/comment.py +141 -0
- docu_devs_api_client-1.9.1/docudevs/models/create_secret_request.py +89 -0
- docu_devs_api_client-1.9.1/docudevs/models/dispatch_execution_request.py +83 -0
- docu_devs_api_client-1.9.1/docudevs/models/dispatch_execution_response.py +75 -0
- docu_devs_api_client-1.9.1/docudevs/models/document_summary_response.py +107 -0
- docu_devs_api_client-1.9.1/docudevs/models/document_summary_response_summary_type_1.py +44 -0
- docu_devs_api_client-1.9.1/docudevs/models/excel_template_config.py +142 -0
- docu_devs_api_client-1.9.1/docudevs/models/execution_log_line.py +191 -0
- docu_devs_api_client-1.9.1/docudevs/models/extract_track_changes_body.py +73 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/extraction_mode.py +2 -1
- docu_devs_api_client-1.9.1/docudevs/models/internal_operation_status_request.py +67 -0
- docu_devs_api_client-1.9.1/docudevs/models/internal_operation_status_response.py +129 -0
- docu_devs_api_client-1.9.1/docudevs/models/internal_operation_timeout_request.py +97 -0
- docu_devs_api_client-1.9.1/docudevs/models/internal_submit_operation_request.py +119 -0
- docu_devs_api_client-1.9.1/docudevs/models/lookup_file_config.py +141 -0
- docu_devs_api_client-1.9.1/docudevs/models/managed_execution_summary.py +265 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/map_reduce_split_type.py +2 -1
- docu_devs_api_client-1.9.1/docudevs/models/organization.py +101 -0
- docu_devs_api_client-1.9.1/docudevs/models/pipeline_node_status_summary.py +117 -0
- docu_devs_api_client-1.9.1/docudevs/models/pipeline_ocr_status_summary.py +91 -0
- docu_devs_api_client-1.9.1/docudevs/models/pipeline_status_summary.py +161 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/processing_job.py +58 -0
- docu_devs_api_client-1.9.1/docudevs/models/secret_summary.py +113 -0
- docu_devs_api_client-1.7.1/docudevs/models/excel_template_config.py → docu_devs_api_client-1.9.1/docudevs/models/sheet_write_target.py +14 -28
- docu_devs_api_client-1.9.1/docudevs/models/source_location_granularity.py +15 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/tool_type.py +6 -1
- docu_devs_api_client-1.9.1/docudevs/models/track_change.py +101 -0
- docu_devs_api_client-1.9.1/docudevs/models/track_changes_result.py +117 -0
- docu_devs_api_client-1.9.1/docudevs/models/track_changes_summary.py +83 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_batch_document_body.py +0 -10
- docu_devs_api_client-1.9.1/docudevs/models/upload_batch_lookup_file_body.py +73 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_command.py +89 -0
- docu_devs_api_client-1.9.1/docudevs/models/upload_command_pipeline_type_1.py +44 -0
- docu_devs_api_client-1.9.1/docudevs/models/upload_lookup_file_body.py +73 -0
- docu_devs_api_client-1.9.1/docudevs/models/usage_event_response.py +209 -0
- docu_devs_api_client-1.9.1/docudevs/models/webhook_settings.py +71 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs_client.py +692 -44
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/pyproject.toml +2 -2
- docu_devs_api_client-1.7.1/docudevs/models/create_batch_body.py +0 -81
- docu_devs_api_client-1.7.1/docudevs/models/create_checkout_session_body.py +0 -67
- docu_devs_api_client-1.7.1/docudevs/models/organization.py +0 -59
- docu_devs_api_client-1.7.1/docudevs/models/process_batch_body.py +0 -384
- docu_devs_api_client-1.7.1/docudevs/models/schedule_batch_body.py +0 -59
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/.gitignore +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/README.md +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/agent/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/agent/chat.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/agent/get_agent_status.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/azure_ocr_providers/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/azure_ocr_providers/create_ocr_provider.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/azure_ocr_providers/delete_ocr_provider.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/azure_ocr_providers/get_ocr_provider.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/azure_ocr_providers/list_ocr_keys.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/azure_ocr_providers/list_ocr_providers.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/azure_ocr_providers/update_ocr_key.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/azure_ocr_providers/update_ocr_provider.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/batch/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/batch/upload_batch_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/billing/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/billing/handle_webhook.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/create_case.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/delete_case.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/delete_case_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/get_case.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/get_case_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/list_case_documents.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/list_cases.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/update_case.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/upload_case_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/cases/upload_case_document_legacy.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/configuration/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/configuration/delete_configuration.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/configuration/get_configuration.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/configuration/list_configurations.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/configuration/save_configuration.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/configuration/upload_excel_template.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/default/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/default/get_current_user.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/default/resolve_ocr_provider.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/analyze_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/generate_schema.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/ocr_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/ocr_document_sync.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/process_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/process_document_with_configuration.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/upload_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/upload_files.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/upload_files_sync.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/document/upload_template.py +0 -0
- {docu_devs_api_client-1.7.1/docudevs/api/internal_llm → docu_devs_api_client-1.9.1/docudevs/api/integration}/__init__.py +0 -0
- {docu_devs_api_client-1.7.1/docudevs/api/job → docu_devs_api_client-1.9.1/docudevs/api/internal_llm}/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/internal_llm/resolve_llm_provider.py +0 -0
- {docu_devs_api_client-1.7.1/docudevs/api/knowledge_bases → docu_devs_api_client-1.9.1/docudevs/api/internal_operation}/__init__.py +0 -0
- {docu_devs_api_client-1.7.1/docudevs/api/llm_providers → docu_devs_api_client-1.9.1/docudevs/api/job}/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/delete_job.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/get_dependencies.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/get_figure_image.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/get_figures_metadata.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/get_image.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/get_job_status.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/get_trace.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/list_jobs.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/result.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/result_csv.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/result_excel.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/job/result_json.py +0 -0
- {docu_devs_api_client-1.7.1/docudevs/api/operations → docu_devs_api_client-1.9.1/docudevs/api/knowledge_bases}/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/knowledge_bases/demote_knowledge_base.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/knowledge_bases/get_knowledge_base.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/knowledge_bases/list_knowledge_bases.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/knowledge_bases/promote_knowledge_base.py +0 -0
- {docu_devs_api_client-1.7.1/docudevs/api/settings → docu_devs_api_client-1.9.1/docudevs/api/llm_providers}/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/llm_providers/create_llm_provider.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/llm_providers/delete_llm_provider.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/llm_providers/get_llm_provider.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/llm_providers/list_llm_keys.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/llm_providers/list_llm_providers.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/llm_providers/update_llm_key.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/llm_providers/update_llm_provider.py +0 -0
- {docu_devs_api_client-1.7.1/docudevs/api/template → docu_devs_api_client-1.9.1/docudevs/api/managed_execution}/__init__.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/operations/create_generative_task.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/operations/get_operation_result.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/operations/get_operation_status.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/operations/submit_operation.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/template/delete_template.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/template/fill.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/template/list_templates.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/template/metadata.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/template/upload_template_images.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/client.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/errors.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/agent_action.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/agent_action_data_type_1.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/agent_chat_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/agent_chat_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/agent_response_content.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/agent_response_content_suggested_config_type_1.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/agent_status_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/analyze_document_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/batch_create_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/batch_create_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/batch_schedule_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/batch_upload_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/billing_balance_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/billing_checkout_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/billing_checkout_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/billing_price.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/case.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/case_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/case_document_metadata_type_1.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/cases_controller_create_case_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/cases_controller_update_case_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/chat_message.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/create_llm_provider_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/create_llm_provider_request_kwargs_type_1.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/create_ocr_provider_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/create_ocr_provider_request_features_type_1.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/daily_usage_entry.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/dependency_info.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/document_status.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/document_template.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/generate_schema_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/generative_task_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/knowledge_bases_controller_promote_knowledge_base_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/ledger_entry_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/llm_key_binding_dto.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/llm_provider_dto.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/llm_type.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/map_reduce_command.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/map_reduce_header_command.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/map_reduce_runtime_status.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/named_configuration.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/ocr_command.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/ocr_document_sync_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/ocr_key_binding_dto.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/ocr_provider_dto.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/ocr_type.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/operation_info.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/operation_parameters.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/operation_parameters_custom_parameters_type_1.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/operation_result_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/operation_status_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/page_case_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/page_processing_job.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/pageable.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/pageable_mode.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/pdf_field.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/processing_job_batch_metadata_type_1.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/purge_result.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/resolve_llm_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/resolve_ocr_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/resolved_llm_provider_dto.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/resolved_ocr_provider_dto.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/settings.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/slice_case_document.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/slice_processing_job.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/sort.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/sort_order.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/sort_order_direction.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/submit_operation_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/submit_operation_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/template_fill_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/tool_descriptor.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/tool_descriptor_config_type_1.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/update_key_binding_request_dto.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/update_llm_provider_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/update_llm_provider_request_kwargs_type_1.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/update_ocr_key_binding_request_dto.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/update_ocr_provider_request.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/update_ocr_provider_request_features_type_1.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_case_document_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_case_document_legacy_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_document_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_excel_template_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_files_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_files_sync_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_template_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/upload_template_images_body.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/usage_summary_response.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/models/user_info.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/py.typed +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/schema.py +0 -0
- {docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docu-devs-api-client
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.1
|
|
4
4
|
Summary: A client library for accessing DocuDevs API
|
|
5
5
|
Project-URL: Homepage, https://www.docudevs.ai/
|
|
6
6
|
Project-URL: Repository, https://github.com/piizei/docudevs.git
|
|
@@ -20,7 +20,7 @@ Requires-Python: <4.0,>=3.9
|
|
|
20
20
|
Requires-Dist: asyncio>=3.4.3
|
|
21
21
|
Requires-Dist: attrs>=21.3.0
|
|
22
22
|
Requires-Dist: click>=8.0.0
|
|
23
|
-
Requires-Dist: httpx<0.
|
|
23
|
+
Requires-Dist: httpx<1.0.0,>=0.28.1
|
|
24
24
|
Requires-Dist: pydantic>=2.0.0
|
|
25
25
|
Requires-Dist: python-dateutil>=2.8.0
|
|
26
26
|
Provides-Extra: dev
|
|
@@ -591,6 +591,24 @@ async def billing_balance(ctx):
|
|
|
591
591
|
result = await ctx.obj["client"].get_billing_balance()
|
|
592
592
|
_echo_response(result)
|
|
593
593
|
|
|
594
|
+
|
|
595
|
+
@billing.command("usage-events")
|
|
596
|
+
@click.argument("guids")
|
|
597
|
+
@click.option("--limit", default=500, show_default=True, type=int)
|
|
598
|
+
@click.option("--include-related/--no-include-related", default=True, show_default=True)
|
|
599
|
+
@click.pass_context
|
|
600
|
+
@async_command
|
|
601
|
+
async def billing_usage_events(ctx, guids: str, limit: int, include_related: bool):
|
|
602
|
+
"""List raw usage events for comma-separated job GUIDs."""
|
|
603
|
+
guid_list = [value.strip() for value in guids.split(",") if value.strip()]
|
|
604
|
+
result = await ctx.obj["client"].get_billing_usage_events(
|
|
605
|
+
guid_list,
|
|
606
|
+
include_related=include_related,
|
|
607
|
+
limit=limit,
|
|
608
|
+
)
|
|
609
|
+
_echo_response(result)
|
|
610
|
+
|
|
611
|
+
|
|
594
612
|
@cli.command()
|
|
595
613
|
@click.argument("guid")
|
|
596
614
|
@click.pass_context
|
|
@@ -645,6 +663,45 @@ async def delete_configuration(ctx, name: str):
|
|
|
645
663
|
_echo_response(result)
|
|
646
664
|
|
|
647
665
|
|
|
666
|
+
@cli.group("configuration")
|
|
667
|
+
@click.pass_context
|
|
668
|
+
def configuration_group(ctx):
|
|
669
|
+
"""Manage configuration attachments."""
|
|
670
|
+
pass
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
@configuration_group.group("lookup-file")
|
|
674
|
+
@click.pass_context
|
|
675
|
+
def configuration_lookup_file(ctx):
|
|
676
|
+
"""Manage configuration lookup files."""
|
|
677
|
+
pass
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
@configuration_lookup_file.command("upload")
|
|
681
|
+
@click.argument("name")
|
|
682
|
+
@click.argument("file", type=click.Path(exists=True))
|
|
683
|
+
@click.pass_context
|
|
684
|
+
@async_command
|
|
685
|
+
async def configuration_lookup_file_upload(ctx, name: str, file: str):
|
|
686
|
+
file_path = Path(file)
|
|
687
|
+
payload = file_path.read_bytes()
|
|
688
|
+
result = await ctx.obj["client"].upload_configuration_lookup_file(
|
|
689
|
+
name,
|
|
690
|
+
payload,
|
|
691
|
+
file_name=file_path.name,
|
|
692
|
+
)
|
|
693
|
+
_echo_response(result)
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
@configuration_lookup_file.command("delete")
|
|
697
|
+
@click.argument("name")
|
|
698
|
+
@click.pass_context
|
|
699
|
+
@async_command
|
|
700
|
+
async def configuration_lookup_file_delete(ctx, name: str):
|
|
701
|
+
result = await ctx.obj["client"].delete_configuration_lookup_file(name)
|
|
702
|
+
_echo_response(result)
|
|
703
|
+
|
|
704
|
+
|
|
648
705
|
# Template commands
|
|
649
706
|
@cli.command()
|
|
650
707
|
@click.pass_context
|
|
@@ -873,6 +930,27 @@ async def upload_case_document(
|
|
|
873
930
|
_echo_response(result)
|
|
874
931
|
|
|
875
932
|
|
|
933
|
+
@cases.command("get-summary")
|
|
934
|
+
@click.argument("case_id")
|
|
935
|
+
@click.argument("document_id")
|
|
936
|
+
@click.pass_context
|
|
937
|
+
@async_command
|
|
938
|
+
async def get_document_summary(ctx, case_id: str, document_id: str):
|
|
939
|
+
"""Get the AI-generated summary for a document in a case."""
|
|
940
|
+
response = await ctx.obj["client"].get_document_summary(_coerce_case_id(case_id), document_id)
|
|
941
|
+
_echo_response(response)
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
@cases.command("list-summaries")
|
|
945
|
+
@click.argument("case_id")
|
|
946
|
+
@click.pass_context
|
|
947
|
+
@async_command
|
|
948
|
+
async def list_case_summaries(ctx, case_id: str):
|
|
949
|
+
"""List AI-generated summaries for all documents in a case."""
|
|
950
|
+
response = await ctx.obj["client"].list_case_summaries(_coerce_case_id(case_id))
|
|
951
|
+
_echo_response(response)
|
|
952
|
+
|
|
953
|
+
|
|
876
954
|
# ---------------- Operations Management ----------------
|
|
877
955
|
@cli.group()
|
|
878
956
|
@click.pass_context
|
|
@@ -1226,7 +1304,8 @@ def batch(ctx):
|
|
|
1226
1304
|
@click.option("--max-concurrency", type=int, default=None, help="Maximum concurrent document processing")
|
|
1227
1305
|
@click.option("--format", "result_format", type=click.Choice(["json", "csv", "excel"]), default=None, help="Output format for results (implies --wait)")
|
|
1228
1306
|
@click.option("--output", type=click.Path(), help="Save results to file (auto-generated if --format is set without --output)")
|
|
1229
|
-
@click.option("--configuration", default=None, help="Named configuration for
|
|
1307
|
+
@click.option("--configuration", default=None, help="Named configuration for configuration-backed batch processing")
|
|
1308
|
+
@click.option("--lookup-file", type=click.Path(exists=True), default=None, help="Optional batch-scoped lookup file that overrides any configuration lookup for this batch")
|
|
1230
1309
|
@click.option("--timeout", default=300, help="Timeout in seconds")
|
|
1231
1310
|
@click.option("--wait/--no-wait", default=True, help="Wait for processing to complete")
|
|
1232
1311
|
@click.pass_context
|
|
@@ -1248,6 +1327,7 @@ async def batch_process(
|
|
|
1248
1327
|
result_format: Optional[str],
|
|
1249
1328
|
output: Optional[str],
|
|
1250
1329
|
configuration: Optional[str],
|
|
1330
|
+
lookup_file: Optional[str],
|
|
1251
1331
|
timeout: int,
|
|
1252
1332
|
wait: bool,
|
|
1253
1333
|
):
|
|
@@ -1291,17 +1371,32 @@ async def batch_process(
|
|
|
1291
1371
|
)
|
|
1292
1372
|
click.echo(f" Uploaded {file_path.name} (index {upload_result.get('index', '?')})")
|
|
1293
1373
|
|
|
1294
|
-
|
|
1295
|
-
batch_guid,
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1374
|
+
if lookup_file:
|
|
1375
|
+
await client.upload_batch_lookup_file(batch_guid, lookup_file)
|
|
1376
|
+
click.echo(f" Uploaded batch lookup file {Path(lookup_file).name}")
|
|
1377
|
+
|
|
1378
|
+
if configuration:
|
|
1379
|
+
if prompt_text.strip():
|
|
1380
|
+
raise click.BadParameter("--prompt/--prompt-file cannot be used with --configuration", param_hint="--configuration")
|
|
1381
|
+
if schema_text.strip():
|
|
1382
|
+
raise click.BadParameter("--schema/--schema-file cannot be used with --configuration", param_hint="--configuration")
|
|
1383
|
+
if barcodes_value is not None or extraction_mode or describe_value:
|
|
1384
|
+
raise click.BadParameter("Processing flags cannot be combined with --configuration", param_hint="--configuration")
|
|
1385
|
+
if ocr is not None or llm is not None:
|
|
1386
|
+
raise click.BadParameter("--ocr and --llm cannot be combined with --configuration", param_hint="--configuration")
|
|
1387
|
+
await client.process_batch_with_configuration(batch_guid, configuration)
|
|
1388
|
+
else:
|
|
1389
|
+
await client.process_batch(
|
|
1390
|
+
batch_guid,
|
|
1391
|
+
prompt=prompt_text,
|
|
1392
|
+
schema=schema_text,
|
|
1393
|
+
mime_type=effective_mime,
|
|
1394
|
+
ocr=ocr,
|
|
1395
|
+
barcodes=barcodes_value,
|
|
1396
|
+
llm=llm,
|
|
1397
|
+
extraction_mode=extraction_mode,
|
|
1398
|
+
describe_figures=describe_value,
|
|
1399
|
+
)
|
|
1305
1400
|
click.echo(f"Batch processing started. GUID: {batch_guid}")
|
|
1306
1401
|
|
|
1307
1402
|
should_wait = wait or result_format is not None
|
{docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/batch/create_batch.py
RENAMED
|
@@ -5,14 +5,14 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.batch_create_request import BatchCreateRequest
|
|
8
9
|
from ...models.batch_create_response import BatchCreateResponse
|
|
9
|
-
from ...models.create_batch_body import CreateBatchBody
|
|
10
10
|
from ...types import Response
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
|
-
body:
|
|
15
|
+
body: BatchCreateRequest,
|
|
16
16
|
) -> dict[str, Any]:
|
|
17
17
|
headers: dict[str, Any] = {}
|
|
18
18
|
|
|
@@ -57,11 +57,11 @@ def _build_response(
|
|
|
57
57
|
def sync_detailed(
|
|
58
58
|
*,
|
|
59
59
|
client: Union[AuthenticatedClient, Client],
|
|
60
|
-
body:
|
|
60
|
+
body: BatchCreateRequest,
|
|
61
61
|
) -> Response[BatchCreateResponse]:
|
|
62
62
|
"""
|
|
63
63
|
Args:
|
|
64
|
-
body (
|
|
64
|
+
body (BatchCreateRequest):
|
|
65
65
|
|
|
66
66
|
Raises:
|
|
67
67
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -85,11 +85,11 @@ def sync_detailed(
|
|
|
85
85
|
def sync(
|
|
86
86
|
*,
|
|
87
87
|
client: Union[AuthenticatedClient, Client],
|
|
88
|
-
body:
|
|
88
|
+
body: BatchCreateRequest,
|
|
89
89
|
) -> Optional[BatchCreateResponse]:
|
|
90
90
|
"""
|
|
91
91
|
Args:
|
|
92
|
-
body (
|
|
92
|
+
body (BatchCreateRequest):
|
|
93
93
|
|
|
94
94
|
Raises:
|
|
95
95
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -108,11 +108,11 @@ def sync(
|
|
|
108
108
|
async def asyncio_detailed(
|
|
109
109
|
*,
|
|
110
110
|
client: Union[AuthenticatedClient, Client],
|
|
111
|
-
body:
|
|
111
|
+
body: BatchCreateRequest,
|
|
112
112
|
) -> Response[BatchCreateResponse]:
|
|
113
113
|
"""
|
|
114
114
|
Args:
|
|
115
|
-
body (
|
|
115
|
+
body (BatchCreateRequest):
|
|
116
116
|
|
|
117
117
|
Raises:
|
|
118
118
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -134,11 +134,11 @@ async def asyncio_detailed(
|
|
|
134
134
|
async def asyncio(
|
|
135
135
|
*,
|
|
136
136
|
client: Union[AuthenticatedClient, Client],
|
|
137
|
-
body:
|
|
137
|
+
body: BatchCreateRequest,
|
|
138
138
|
) -> Optional[BatchCreateResponse]:
|
|
139
139
|
"""
|
|
140
140
|
Args:
|
|
141
|
-
body (
|
|
141
|
+
body (BatchCreateRequest):
|
|
142
142
|
|
|
143
143
|
Raises:
|
|
144
144
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -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": "delete",
|
|
16
|
+
"url": f"/document/batch/{guid}/lookup-file",
|
|
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)
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
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"/document/batch/{guid}/lookup-file",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return _kwargs
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[list[str]]:
|
|
23
|
+
if response.status_code == 200:
|
|
24
|
+
response_200 = cast(list[str], response.json())
|
|
25
|
+
|
|
26
|
+
return response_200
|
|
27
|
+
|
|
28
|
+
if client.raise_on_unexpected_status:
|
|
29
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
30
|
+
else:
|
|
31
|
+
return None
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[list[str]]:
|
|
35
|
+
return Response(
|
|
36
|
+
status_code=HTTPStatus(response.status_code),
|
|
37
|
+
content=response.content,
|
|
38
|
+
headers=response.headers,
|
|
39
|
+
parsed=_parse_response(client=client, response=response),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def sync_detailed(
|
|
44
|
+
guid: str,
|
|
45
|
+
*,
|
|
46
|
+
client: Union[AuthenticatedClient, Client],
|
|
47
|
+
) -> Response[list[str]]:
|
|
48
|
+
"""
|
|
49
|
+
Args:
|
|
50
|
+
guid (str):
|
|
51
|
+
|
|
52
|
+
Raises:
|
|
53
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
54
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
55
|
+
|
|
56
|
+
Returns:
|
|
57
|
+
Response[list[str]]
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
kwargs = _get_kwargs(
|
|
61
|
+
guid=guid,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
response = client.get_httpx_client().request(
|
|
65
|
+
**kwargs,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
return _build_response(client=client, response=response)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def sync(
|
|
72
|
+
guid: str,
|
|
73
|
+
*,
|
|
74
|
+
client: Union[AuthenticatedClient, Client],
|
|
75
|
+
) -> Optional[list[str]]:
|
|
76
|
+
"""
|
|
77
|
+
Args:
|
|
78
|
+
guid (str):
|
|
79
|
+
|
|
80
|
+
Raises:
|
|
81
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
82
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
83
|
+
|
|
84
|
+
Returns:
|
|
85
|
+
list[str]
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
return sync_detailed(
|
|
89
|
+
guid=guid,
|
|
90
|
+
client=client,
|
|
91
|
+
).parsed
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
async def asyncio_detailed(
|
|
95
|
+
guid: str,
|
|
96
|
+
*,
|
|
97
|
+
client: Union[AuthenticatedClient, Client],
|
|
98
|
+
) -> Response[list[str]]:
|
|
99
|
+
"""
|
|
100
|
+
Args:
|
|
101
|
+
guid (str):
|
|
102
|
+
|
|
103
|
+
Raises:
|
|
104
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
105
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
106
|
+
|
|
107
|
+
Returns:
|
|
108
|
+
Response[list[str]]
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
kwargs = _get_kwargs(
|
|
112
|
+
guid=guid,
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
116
|
+
|
|
117
|
+
return _build_response(client=client, response=response)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
async def asyncio(
|
|
121
|
+
guid: str,
|
|
122
|
+
*,
|
|
123
|
+
client: Union[AuthenticatedClient, Client],
|
|
124
|
+
) -> Optional[list[str]]:
|
|
125
|
+
"""
|
|
126
|
+
Args:
|
|
127
|
+
guid (str):
|
|
128
|
+
|
|
129
|
+
Raises:
|
|
130
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
131
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
132
|
+
|
|
133
|
+
Returns:
|
|
134
|
+
list[str]
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
return (
|
|
138
|
+
await asyncio_detailed(
|
|
139
|
+
guid=guid,
|
|
140
|
+
client=client,
|
|
141
|
+
)
|
|
142
|
+
).parsed
|
{docu_devs_api_client-1.7.1 → docu_devs_api_client-1.9.1}/docudevs/api/batch/process_batch.py
RENAMED
|
@@ -6,14 +6,14 @@ import httpx
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.batch_create_response import BatchCreateResponse
|
|
9
|
-
from ...models.
|
|
9
|
+
from ...models.upload_command import UploadCommand
|
|
10
10
|
from ...types import Response
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
guid: str,
|
|
15
15
|
*,
|
|
16
|
-
body:
|
|
16
|
+
body: UploadCommand,
|
|
17
17
|
) -> dict[str, Any]:
|
|
18
18
|
headers: dict[str, Any] = {}
|
|
19
19
|
|
|
@@ -59,12 +59,12 @@ def sync_detailed(
|
|
|
59
59
|
guid: str,
|
|
60
60
|
*,
|
|
61
61
|
client: Union[AuthenticatedClient, Client],
|
|
62
|
-
body:
|
|
62
|
+
body: UploadCommand,
|
|
63
63
|
) -> Response[BatchCreateResponse]:
|
|
64
64
|
"""
|
|
65
65
|
Args:
|
|
66
66
|
guid (str):
|
|
67
|
-
body (
|
|
67
|
+
body (UploadCommand):
|
|
68
68
|
|
|
69
69
|
Raises:
|
|
70
70
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -90,12 +90,12 @@ def sync(
|
|
|
90
90
|
guid: str,
|
|
91
91
|
*,
|
|
92
92
|
client: Union[AuthenticatedClient, Client],
|
|
93
|
-
body:
|
|
93
|
+
body: UploadCommand,
|
|
94
94
|
) -> Optional[BatchCreateResponse]:
|
|
95
95
|
"""
|
|
96
96
|
Args:
|
|
97
97
|
guid (str):
|
|
98
|
-
body (
|
|
98
|
+
body (UploadCommand):
|
|
99
99
|
|
|
100
100
|
Raises:
|
|
101
101
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -116,12 +116,12 @@ async def asyncio_detailed(
|
|
|
116
116
|
guid: str,
|
|
117
117
|
*,
|
|
118
118
|
client: Union[AuthenticatedClient, Client],
|
|
119
|
-
body:
|
|
119
|
+
body: UploadCommand,
|
|
120
120
|
) -> Response[BatchCreateResponse]:
|
|
121
121
|
"""
|
|
122
122
|
Args:
|
|
123
123
|
guid (str):
|
|
124
|
-
body (
|
|
124
|
+
body (UploadCommand):
|
|
125
125
|
|
|
126
126
|
Raises:
|
|
127
127
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -145,12 +145,12 @@ async def asyncio(
|
|
|
145
145
|
guid: str,
|
|
146
146
|
*,
|
|
147
147
|
client: Union[AuthenticatedClient, Client],
|
|
148
|
-
body:
|
|
148
|
+
body: UploadCommand,
|
|
149
149
|
) -> Optional[BatchCreateResponse]:
|
|
150
150
|
"""
|
|
151
151
|
Args:
|
|
152
152
|
guid (str):
|
|
153
|
-
body (
|
|
153
|
+
body (UploadCommand):
|
|
154
154
|
|
|
155
155
|
Raises:
|
|
156
156
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|