docu-devs-api-client 1.6.1__tar.gz → 1.9.0__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.6.1 → docu_devs_api_client-1.9.0}/PKG-INFO +1 -1
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/cli.py +177 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/__init__.py +3 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/batch/create_batch.py +10 -10
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/batch/process_batch.py +10 -10
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/batch/schedule_batch.py +0 -22
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/billing/create_checkout_session.py +10 -10
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/billing/get_balance.py +4 -36
- docu_devs_api_client-1.9.0/docudevs/api/billing/get_recent_ledger.py +160 -0
- docu_devs_api_client-1.9.0/docudevs/api/billing/get_usage_by_jobs.py +100 -0
- docu_devs_api_client-1.9.0/docudevs/api/billing/get_usage_summary.py +123 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/billing/list_prices.py +4 -36
- docu_devs_api_client-1.9.0/docudevs/api/cases/download_case_document.py +156 -0
- docu_devs_api_client-1.9.0/docudevs/api/cases/get_document_summary.py +160 -0
- docu_devs_api_client-1.9.0/docudevs/api/cases/list_case_summaries.py +147 -0
- docu_devs_api_client-1.9.0/docudevs/api/configuration/download_excel_template.py +142 -0
- docu_devs_api_client-1.9.0/docudevs/api/configuration/upload_excel_template.py +106 -0
- docu_devs_api_client-1.9.0/docudevs/api/integration/create_or_update.py +152 -0
- docu_devs_api_client-1.9.0/docudevs/api/integration/delete.py +92 -0
- docu_devs_api_client-1.9.0/docudevs/api/integration/list_.py +128 -0
- docu_devs_api_client-1.9.0/docudevs/api/job/get_processing_params.py +92 -0
- docu_devs_api_client-1.9.0/docudevs/api/job/get_source_locations.py +112 -0
- docu_devs_api_client-1.9.0/docudevs/api/job/result_excel.py +112 -0
- docu_devs_api_client-1.6.1/docudevs/api/job/result_excel.py → docu_devs_api_client-1.9.0/docudevs/api/job/result_schema.py +1 -1
- docu_devs_api_client-1.9.0/docudevs/api/managed_execution/cancel_managed_execution.py +92 -0
- docu_devs_api_client-1.9.0/docudevs/api/managed_execution/dispatch_managed_execution.py +156 -0
- docu_devs_api_client-1.9.0/docudevs/api/managed_execution/get_managed_execution.py +147 -0
- docu_devs_api_client-1.9.0/docudevs/api/managed_execution/get_managed_execution_logs.py +152 -0
- docu_devs_api_client-1.9.0/docudevs/api/managed_execution/list_managed_executions.py +165 -0
- docu_devs_api_client-1.9.0/docudevs/api/settings/__init__.py +1 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/settings/settings.py +4 -36
- docu_devs_api_client-1.9.0/docudevs/api/template/__init__.py +1 -0
- docu_devs_api_client-1.9.0/docudevs/api/track_changes/__init__.py +1 -0
- docu_devs_api_client-1.9.0/docudevs/api/track_changes/extract_track_changes.py +170 -0
- docu_devs_api_client-1.9.0/docudevs/api/webhook/__init__.py +1 -0
- docu_devs_api_client-1.9.0/docudevs/api/webhook/get_webhook.py +123 -0
- docu_devs_api_client-1.9.0/docudevs/api/webhook/update_webhook.py +155 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/cli.py +177 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/docudevs_client.py +256 -23
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/__init__.py +44 -8
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/agent_response_content.py +31 -0
- docu_devs_api_client-1.9.0/docudevs/models/comment.py +141 -0
- docu_devs_api_client-1.9.0/docudevs/models/create_secret_request.py +89 -0
- docu_devs_api_client-1.6.1/docudevs/models/schedule_batch_body.py → docu_devs_api_client-1.9.0/docudevs/models/daily_usage_entry.py +19 -11
- docu_devs_api_client-1.9.0/docudevs/models/dispatch_execution_request.py +83 -0
- docu_devs_api_client-1.9.0/docudevs/models/dispatch_execution_response.py +75 -0
- docu_devs_api_client-1.9.0/docudevs/models/document_summary_response.py +107 -0
- docu_devs_api_client-1.9.0/docudevs/models/document_summary_response_summary_type_1.py +44 -0
- docu_devs_api_client-1.9.0/docudevs/models/excel_template_config.py +142 -0
- docu_devs_api_client-1.9.0/docudevs/models/execution_log_line.py +191 -0
- docu_devs_api_client-1.9.0/docudevs/models/extract_track_changes_body.py +73 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/extraction_mode.py +2 -2
- docu_devs_api_client-1.9.0/docudevs/models/ledger_entry_response.py +97 -0
- docu_devs_api_client-1.9.0/docudevs/models/managed_execution_summary.py +265 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/map_reduce_command.py +37 -0
- docu_devs_api_client-1.9.0/docudevs/models/map_reduce_split_type.py +14 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/organization.py +23 -1
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/processing_job.py +40 -0
- docu_devs_api_client-1.9.0/docudevs/models/secret_summary.py +113 -0
- docu_devs_api_client-1.9.0/docudevs/models/sheet_write_target.py +83 -0
- docu_devs_api_client-1.9.0/docudevs/models/source_location_granularity.py +15 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/tool_type.py +2 -1
- docu_devs_api_client-1.9.0/docudevs/models/track_change.py +101 -0
- docu_devs_api_client-1.9.0/docudevs/models/track_changes_result.py +117 -0
- docu_devs_api_client-1.9.0/docudevs/models/track_changes_summary.py +83 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/upload_batch_document_body.py +0 -10
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/upload_command.py +75 -0
- docu_devs_api_client-1.9.0/docudevs/models/upload_excel_template_body.py +73 -0
- docu_devs_api_client-1.9.0/docudevs/models/usage_summary_response.py +97 -0
- docu_devs_api_client-1.9.0/docudevs/models/webhook_settings.py +71 -0
- docu_devs_api_client-1.9.0/docudevs/schema.py +46 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs_client.py +256 -23
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/pyproject.toml +1 -1
- docu_devs_api_client-1.6.1/docudevs/models/create_batch_body.py +0 -81
- docu_devs_api_client-1.6.1/docudevs/models/create_checkout_session_body.py +0 -67
- docu_devs_api_client-1.6.1/docudevs/models/process_batch_body.py +0 -346
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/.gitignore +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/README.md +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/agent/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/agent/chat.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/agent/get_agent_status.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/azure_ocr_providers/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/azure_ocr_providers/create_ocr_provider.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/azure_ocr_providers/delete_ocr_provider.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/azure_ocr_providers/get_ocr_provider.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/azure_ocr_providers/list_ocr_keys.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/azure_ocr_providers/list_ocr_providers.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/azure_ocr_providers/update_ocr_key.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/azure_ocr_providers/update_ocr_provider.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/batch/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/batch/upload_batch_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/billing/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/billing/handle_webhook.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/create_case.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/delete_case.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/delete_case_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/get_case.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/get_case_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/list_case_documents.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/list_cases.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/update_case.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/upload_case_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/cases/upload_case_document_legacy.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/configuration/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/configuration/delete_configuration.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/configuration/get_configuration.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/configuration/list_configurations.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/configuration/save_configuration.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/default/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/default/get_current_user.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/default/resolve_ocr_provider.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/analyze_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/generate_schema.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/ocr_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/ocr_document_sync.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/process_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/process_document_with_configuration.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/upload_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/upload_files.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/upload_files_sync.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/document/upload_template.py +0 -0
- {docu_devs_api_client-1.6.1/docudevs/api/internal_llm → docu_devs_api_client-1.9.0/docudevs/api/integration}/__init__.py +0 -0
- {docu_devs_api_client-1.6.1/docudevs/api/job → docu_devs_api_client-1.9.0/docudevs/api/internal_llm}/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/internal_llm/resolve_llm_provider.py +0 -0
- {docu_devs_api_client-1.6.1/docudevs/api/knowledge_bases → docu_devs_api_client-1.9.0/docudevs/api/job}/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/delete_job.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/get_dependencies.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/get_figure_image.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/get_figures_metadata.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/get_image.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/get_job_status.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/get_trace.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/list_jobs.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/result.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/result_csv.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/job/result_json.py +0 -0
- {docu_devs_api_client-1.6.1/docudevs/api/llm_providers → docu_devs_api_client-1.9.0/docudevs/api/knowledge_bases}/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/knowledge_bases/demote_knowledge_base.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/knowledge_bases/get_knowledge_base.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/knowledge_bases/list_knowledge_bases.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/knowledge_bases/promote_knowledge_base.py +0 -0
- {docu_devs_api_client-1.6.1/docudevs/api/operations → docu_devs_api_client-1.9.0/docudevs/api/llm_providers}/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/llm_providers/create_llm_provider.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/llm_providers/delete_llm_provider.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/llm_providers/get_llm_provider.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/llm_providers/list_llm_keys.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/llm_providers/list_llm_providers.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/llm_providers/update_llm_key.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/llm_providers/update_llm_provider.py +0 -0
- {docu_devs_api_client-1.6.1/docudevs/api/settings → docu_devs_api_client-1.9.0/docudevs/api/managed_execution}/__init__.py +0 -0
- {docu_devs_api_client-1.6.1/docudevs/api/template → docu_devs_api_client-1.9.0/docudevs/api/operations}/__init__.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/operations/create_generative_task.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/operations/get_operation_result.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/operations/get_operation_status.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/operations/submit_operation.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/template/delete_template.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/template/fill.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/template/list_templates.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/template/metadata.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/template/upload_template_images.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/client.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/errors.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/agent_action.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/agent_action_data_type_1.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/agent_chat_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/agent_chat_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/agent_response_content_suggested_config_type_1.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/agent_status_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/analyze_document_body.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/batch_create_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/batch_create_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/batch_schedule_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/batch_upload_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/billing_balance_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/billing_checkout_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/billing_checkout_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/billing_price.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/case.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/case_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/case_document_metadata_type_1.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/cases_controller_create_case_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/cases_controller_update_case_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/chat_message.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/create_llm_provider_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/create_llm_provider_request_kwargs_type_1.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/create_ocr_provider_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/create_ocr_provider_request_features_type_1.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/dependency_info.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/document_status.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/document_template.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/generate_schema_body.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/generative_task_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/knowledge_bases_controller_promote_knowledge_base_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/llm_key_binding_dto.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/llm_provider_dto.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/llm_type.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/map_reduce_header_command.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/map_reduce_runtime_status.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/named_configuration.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/ocr_command.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/ocr_document_sync_body.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/ocr_key_binding_dto.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/ocr_provider_dto.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/ocr_type.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/operation_info.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/operation_parameters.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/operation_parameters_custom_parameters_type_1.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/operation_result_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/operation_status_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/page_case_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/page_processing_job.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/pageable.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/pageable_mode.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/pdf_field.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/processing_job_batch_metadata_type_1.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/purge_result.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/resolve_llm_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/resolve_ocr_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/resolved_llm_provider_dto.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/resolved_ocr_provider_dto.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/settings.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/slice_case_document.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/slice_processing_job.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/sort.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/sort_order.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/sort_order_direction.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/submit_operation_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/submit_operation_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/template_fill_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/tool_descriptor.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/tool_descriptor_config_type_1.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/update_key_binding_request_dto.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/update_llm_provider_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/update_llm_provider_request_kwargs_type_1.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/update_ocr_key_binding_request_dto.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/update_ocr_provider_request.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/update_ocr_provider_request_features_type_1.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/upload_case_document_body.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/upload_case_document_legacy_body.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/upload_document_body.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/upload_files_body.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/upload_files_sync_body.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/upload_response.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/upload_template_body.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/upload_template_images_body.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/models/user_info.py +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/py.typed +0 -0
- {docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/types.py +0 -0
|
@@ -294,6 +294,18 @@ async def process(
|
|
|
294
294
|
@click.option("--pages-per-chunk", type=int, default=1, show_default=True, help="Pages per chunk for map-reduce")
|
|
295
295
|
@click.option("--overlap", type=int, default=0, show_default=True, help="Overlapping pages between chunks")
|
|
296
296
|
@click.option("--dedup-key", help="JSON path to deduplicate rows across chunks")
|
|
297
|
+
@click.option(
|
|
298
|
+
"--split-type",
|
|
299
|
+
type=click.Choice(["page", "markdown-header"]),
|
|
300
|
+
default="page",
|
|
301
|
+
show_default=True,
|
|
302
|
+
help="Chunk split strategy",
|
|
303
|
+
)
|
|
304
|
+
@click.option(
|
|
305
|
+
"--split-header-level",
|
|
306
|
+
type=click.IntRange(1, 2),
|
|
307
|
+
help="Markdown header level for --split-type markdown-header",
|
|
308
|
+
)
|
|
297
309
|
@click.option("--header-page-limit", type=int, help="Number of pages reserved for header extraction")
|
|
298
310
|
@click.option("--header-include-in-rows", is_flag=True, default=False, help="Include header pages in row processing")
|
|
299
311
|
@click.option("--header-row-prompt-augmentation", help="Additional context added to each chunk prompt")
|
|
@@ -329,6 +341,8 @@ async def process_map_reduce(
|
|
|
329
341
|
pages_per_chunk: int,
|
|
330
342
|
overlap: int,
|
|
331
343
|
dedup_key: Optional[str],
|
|
344
|
+
split_type: str,
|
|
345
|
+
split_header_level: Optional[int],
|
|
332
346
|
header_page_limit: Optional[int],
|
|
333
347
|
header_include_in_rows: bool,
|
|
334
348
|
header_row_prompt_augmentation: Optional[str],
|
|
@@ -386,6 +400,7 @@ async def process_map_reduce(
|
|
|
386
400
|
header_options["row_prompt_augmentation"] = header_row_prompt_augmentation
|
|
387
401
|
if header_page_indices:
|
|
388
402
|
header_options["page_indices"] = list(header_page_indices)
|
|
403
|
+
normalized_split_type = split_type.replace("-", "_")
|
|
389
404
|
|
|
390
405
|
client: DocuDevsClient = ctx.obj["client"]
|
|
391
406
|
try:
|
|
@@ -402,6 +417,8 @@ async def process_map_reduce(
|
|
|
402
417
|
pages_per_chunk=pages_per_chunk,
|
|
403
418
|
overlap_pages=overlap,
|
|
404
419
|
dedup_key=dedup_key,
|
|
420
|
+
split_type=normalized_split_type,
|
|
421
|
+
split_header_level=split_header_level,
|
|
405
422
|
header_options=header_options or None,
|
|
406
423
|
header_schema=header_schema_text,
|
|
407
424
|
header_prompt=header_prompt,
|
|
@@ -856,6 +873,27 @@ async def upload_case_document(
|
|
|
856
873
|
_echo_response(result)
|
|
857
874
|
|
|
858
875
|
|
|
876
|
+
@cases.command("get-summary")
|
|
877
|
+
@click.argument("case_id")
|
|
878
|
+
@click.argument("document_id")
|
|
879
|
+
@click.pass_context
|
|
880
|
+
@async_command
|
|
881
|
+
async def get_document_summary(ctx, case_id: str, document_id: str):
|
|
882
|
+
"""Get the AI-generated summary for a document in a case."""
|
|
883
|
+
response = await ctx.obj["client"].get_document_summary(_coerce_case_id(case_id), document_id)
|
|
884
|
+
_echo_response(response)
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
@cases.command("list-summaries")
|
|
888
|
+
@click.argument("case_id")
|
|
889
|
+
@click.pass_context
|
|
890
|
+
@async_command
|
|
891
|
+
async def list_case_summaries(ctx, case_id: str):
|
|
892
|
+
"""List AI-generated summaries for all documents in a case."""
|
|
893
|
+
response = await ctx.obj["client"].list_case_summaries(_coerce_case_id(case_id))
|
|
894
|
+
_echo_response(response)
|
|
895
|
+
|
|
896
|
+
|
|
859
897
|
# ---------------- Operations Management ----------------
|
|
860
898
|
@cli.group()
|
|
861
899
|
@click.pass_context
|
|
@@ -1186,5 +1224,144 @@ async def bind_ocr_key(ctx, key, provider_id):
|
|
|
1186
1224
|
click.echo(resp.status_code)
|
|
1187
1225
|
|
|
1188
1226
|
|
|
1227
|
+
# ---------------- Batch Processing ----------------
|
|
1228
|
+
@cli.group()
|
|
1229
|
+
@click.pass_context
|
|
1230
|
+
def batch(ctx):
|
|
1231
|
+
"""Batch processing for multiple documents."""
|
|
1232
|
+
pass
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
@batch.command("process")
|
|
1236
|
+
@click.argument("files", nargs=-1, required=True, type=click.Path(exists=True))
|
|
1237
|
+
@click.option("--prompt", default="", help="Extraction prompt")
|
|
1238
|
+
@click.option("--prompt-file", type=click.Path(exists=True), help="Path to a text file containing extraction instructions")
|
|
1239
|
+
@click.option("--schema", default="", help="JSON schema for extraction")
|
|
1240
|
+
@click.option("--schema-file", type=click.Path(exists=True), help="Path to a JSON schema file")
|
|
1241
|
+
@click.option("--mime-type", help="Explicit MIME type for all documents")
|
|
1242
|
+
@click.option("--ocr", type=click.Choice(["DEFAULT", "NONE", "PREMIUM", "AUTO", "EXCEL"]), default=None, help="OCR type")
|
|
1243
|
+
@click.option("--llm", type=click.Choice(["DEFAULT", "MINI", "HIGH"]), default=None, help="LLM type")
|
|
1244
|
+
@click.option("--barcodes", is_flag=True, default=False, help="Enable barcode and QR code detection")
|
|
1245
|
+
@click.option("--extraction-mode", type=click.Choice(["OCR", "SIMPLE", "STEPS"]), default=None, help="Extraction mode override")
|
|
1246
|
+
@click.option("--describe-figures", is_flag=True, default=False, help="Request figure descriptions when supported")
|
|
1247
|
+
@click.option("--max-concurrency", type=int, default=None, help="Maximum concurrent document processing")
|
|
1248
|
+
@click.option("--format", "result_format", type=click.Choice(["json", "csv", "excel"]), default=None, help="Output format for results (implies --wait)")
|
|
1249
|
+
@click.option("--output", type=click.Path(), help="Save results to file (auto-generated if --format is set without --output)")
|
|
1250
|
+
@click.option("--configuration", default=None, help="Named configuration for Excel template injection")
|
|
1251
|
+
@click.option("--timeout", default=300, help="Timeout in seconds")
|
|
1252
|
+
@click.option("--wait/--no-wait", default=True, help="Wait for processing to complete")
|
|
1253
|
+
@click.pass_context
|
|
1254
|
+
@async_command
|
|
1255
|
+
async def batch_process(
|
|
1256
|
+
ctx,
|
|
1257
|
+
files: tuple[str, ...],
|
|
1258
|
+
prompt: str,
|
|
1259
|
+
prompt_file: Optional[str],
|
|
1260
|
+
schema: str,
|
|
1261
|
+
schema_file: Optional[str],
|
|
1262
|
+
mime_type: Optional[str],
|
|
1263
|
+
ocr: Optional[str],
|
|
1264
|
+
llm: Optional[str],
|
|
1265
|
+
barcodes: bool,
|
|
1266
|
+
extraction_mode: Optional[str],
|
|
1267
|
+
describe_figures: bool,
|
|
1268
|
+
max_concurrency: Optional[int],
|
|
1269
|
+
result_format: Optional[str],
|
|
1270
|
+
output: Optional[str],
|
|
1271
|
+
configuration: Optional[str],
|
|
1272
|
+
timeout: int,
|
|
1273
|
+
wait: bool,
|
|
1274
|
+
):
|
|
1275
|
+
"""Upload and process multiple documents as a batch."""
|
|
1276
|
+
import mimetypes
|
|
1277
|
+
|
|
1278
|
+
prompt_text = prompt
|
|
1279
|
+
if prompt_file:
|
|
1280
|
+
if prompt:
|
|
1281
|
+
raise click.BadParameter("Use either --prompt or --prompt-file, not both.", param_hint="--prompt-file")
|
|
1282
|
+
prompt_text = Path(prompt_file).read_text()
|
|
1283
|
+
|
|
1284
|
+
schema_text = schema
|
|
1285
|
+
if schema_file:
|
|
1286
|
+
if schema:
|
|
1287
|
+
raise click.BadParameter("Use either --schema or --schema-file, not both.", param_hint="--schema-file")
|
|
1288
|
+
schema_text = Path(schema_file).read_text()
|
|
1289
|
+
|
|
1290
|
+
barcodes_value: Optional[bool] = True if barcodes else None
|
|
1291
|
+
describe_value: Optional[bool] = True if describe_figures else None
|
|
1292
|
+
|
|
1293
|
+
first_file = Path(files[0])
|
|
1294
|
+
effective_mime = mime_type or mimetypes.guess_type(first_file.name)[0] or "application/octet-stream"
|
|
1295
|
+
|
|
1296
|
+
client: DocuDevsClient = ctx.obj["client"]
|
|
1297
|
+
|
|
1298
|
+
try:
|
|
1299
|
+
batch_guid = await client.create_batch(max_concurrency=max_concurrency)
|
|
1300
|
+
click.echo(f"Batch created. GUID: {batch_guid}")
|
|
1301
|
+
|
|
1302
|
+
for file_path_str in files:
|
|
1303
|
+
file_path = Path(file_path_str)
|
|
1304
|
+
doc_mime = mime_type or mimetypes.guess_type(file_path.name)[0] or effective_mime
|
|
1305
|
+
with open(file_path, "rb") as f:
|
|
1306
|
+
document_data = f.read()
|
|
1307
|
+
upload_result = await client.upload_batch_document(
|
|
1308
|
+
batch_guid,
|
|
1309
|
+
document_data,
|
|
1310
|
+
doc_mime,
|
|
1311
|
+
file_name=file_path.name,
|
|
1312
|
+
)
|
|
1313
|
+
click.echo(f" Uploaded {file_path.name} (index {upload_result.get('index', '?')})")
|
|
1314
|
+
|
|
1315
|
+
await client.process_batch(
|
|
1316
|
+
batch_guid,
|
|
1317
|
+
prompt=prompt_text,
|
|
1318
|
+
schema=schema_text,
|
|
1319
|
+
mime_type=effective_mime,
|
|
1320
|
+
ocr=ocr,
|
|
1321
|
+
barcodes=barcodes_value,
|
|
1322
|
+
llm=llm,
|
|
1323
|
+
extraction_mode=extraction_mode,
|
|
1324
|
+
describe_figures=describe_value,
|
|
1325
|
+
)
|
|
1326
|
+
click.echo(f"Batch processing started. GUID: {batch_guid}")
|
|
1327
|
+
|
|
1328
|
+
should_wait = wait or result_format is not None
|
|
1329
|
+
if should_wait:
|
|
1330
|
+
click.echo("Waiting for batch to complete...")
|
|
1331
|
+
|
|
1332
|
+
format_extensions = {"json": ".json", "csv": ".csv", "excel": ".xlsx"}
|
|
1333
|
+
output_path = output
|
|
1334
|
+
if result_format and not output_path:
|
|
1335
|
+
output_path = f"batch-{batch_guid}{format_extensions.get(result_format, '')}"
|
|
1336
|
+
|
|
1337
|
+
excel_save_to = output_path if result_format == "excel" else None
|
|
1338
|
+
|
|
1339
|
+
result = await client.wait_until_ready(
|
|
1340
|
+
batch_guid,
|
|
1341
|
+
timeout=timeout,
|
|
1342
|
+
result_format=result_format,
|
|
1343
|
+
excel_save_to=excel_save_to,
|
|
1344
|
+
excel_configuration=configuration,
|
|
1345
|
+
)
|
|
1346
|
+
|
|
1347
|
+
if output_path and result_format != "excel":
|
|
1348
|
+
if isinstance(result, (bytes, bytearray)):
|
|
1349
|
+
Path(output_path).write_bytes(result)
|
|
1350
|
+
elif isinstance(result, str):
|
|
1351
|
+
Path(output_path).write_text(result)
|
|
1352
|
+
else:
|
|
1353
|
+
Path(output_path).write_text(json.dumps(_as_serializable(result), indent=2))
|
|
1354
|
+
|
|
1355
|
+
if output_path:
|
|
1356
|
+
click.echo(f"Saved to {output_path}")
|
|
1357
|
+
else:
|
|
1358
|
+
_echo_response(result)
|
|
1359
|
+
else:
|
|
1360
|
+
click.echo("Use 'status' and 'result' commands to check progress and get results.")
|
|
1361
|
+
except Exception as e:
|
|
1362
|
+
click.echo(f"Error: {e}", err=True)
|
|
1363
|
+
return 1
|
|
1364
|
+
|
|
1365
|
+
|
|
1189
1366
|
if __name__ == "__main__":
|
|
1190
1367
|
cli()
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from .client import AuthenticatedClient, Client
|
|
4
4
|
from .docudevs_client import DocuDevsClient, UploadDocumentBody, UploadCommand, File, UploadFilesBody, TemplateFillRequest
|
|
5
|
+
from .schema import array_schema, json_schema
|
|
5
6
|
|
|
6
7
|
__all__ = (
|
|
7
8
|
"AuthenticatedClient",
|
|
@@ -12,4 +13,6 @@ __all__ = (
|
|
|
12
13
|
"File",
|
|
13
14
|
"UploadFilesBody",
|
|
14
15
|
"TemplateFillRequest",
|
|
16
|
+
"array_schema",
|
|
17
|
+
"json_schema",
|
|
15
18
|
)
|
{docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/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.
|
{docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/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.
|
{docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/batch/schedule_batch.py
RENAMED
|
@@ -6,27 +6,17 @@ import httpx
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.batch_schedule_response import BatchScheduleResponse
|
|
9
|
-
from ...models.schedule_batch_body import ScheduleBatchBody
|
|
10
9
|
from ...types import Response
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
def _get_kwargs(
|
|
14
13
|
guid: str,
|
|
15
|
-
*,
|
|
16
|
-
body: ScheduleBatchBody,
|
|
17
14
|
) -> dict[str, Any]:
|
|
18
|
-
headers: dict[str, Any] = {}
|
|
19
|
-
|
|
20
15
|
_kwargs: dict[str, Any] = {
|
|
21
16
|
"method": "post",
|
|
22
17
|
"url": f"/document/batch/{guid}/schedule",
|
|
23
18
|
}
|
|
24
19
|
|
|
25
|
-
_kwargs["json"] = body.to_dict()
|
|
26
|
-
|
|
27
|
-
headers["Content-Type"] = "application/json"
|
|
28
|
-
|
|
29
|
-
_kwargs["headers"] = headers
|
|
30
20
|
return _kwargs
|
|
31
21
|
|
|
32
22
|
|
|
@@ -59,12 +49,10 @@ def sync_detailed(
|
|
|
59
49
|
guid: str,
|
|
60
50
|
*,
|
|
61
51
|
client: Union[AuthenticatedClient, Client],
|
|
62
|
-
body: ScheduleBatchBody,
|
|
63
52
|
) -> Response[BatchScheduleResponse]:
|
|
64
53
|
"""
|
|
65
54
|
Args:
|
|
66
55
|
guid (str):
|
|
67
|
-
body (ScheduleBatchBody):
|
|
68
56
|
|
|
69
57
|
Raises:
|
|
70
58
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -76,7 +64,6 @@ def sync_detailed(
|
|
|
76
64
|
|
|
77
65
|
kwargs = _get_kwargs(
|
|
78
66
|
guid=guid,
|
|
79
|
-
body=body,
|
|
80
67
|
)
|
|
81
68
|
|
|
82
69
|
response = client.get_httpx_client().request(
|
|
@@ -90,12 +77,10 @@ def sync(
|
|
|
90
77
|
guid: str,
|
|
91
78
|
*,
|
|
92
79
|
client: Union[AuthenticatedClient, Client],
|
|
93
|
-
body: ScheduleBatchBody,
|
|
94
80
|
) -> Optional[BatchScheduleResponse]:
|
|
95
81
|
"""
|
|
96
82
|
Args:
|
|
97
83
|
guid (str):
|
|
98
|
-
body (ScheduleBatchBody):
|
|
99
84
|
|
|
100
85
|
Raises:
|
|
101
86
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -108,7 +93,6 @@ def sync(
|
|
|
108
93
|
return sync_detailed(
|
|
109
94
|
guid=guid,
|
|
110
95
|
client=client,
|
|
111
|
-
body=body,
|
|
112
96
|
).parsed
|
|
113
97
|
|
|
114
98
|
|
|
@@ -116,12 +100,10 @@ async def asyncio_detailed(
|
|
|
116
100
|
guid: str,
|
|
117
101
|
*,
|
|
118
102
|
client: Union[AuthenticatedClient, Client],
|
|
119
|
-
body: ScheduleBatchBody,
|
|
120
103
|
) -> Response[BatchScheduleResponse]:
|
|
121
104
|
"""
|
|
122
105
|
Args:
|
|
123
106
|
guid (str):
|
|
124
|
-
body (ScheduleBatchBody):
|
|
125
107
|
|
|
126
108
|
Raises:
|
|
127
109
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -133,7 +115,6 @@ async def asyncio_detailed(
|
|
|
133
115
|
|
|
134
116
|
kwargs = _get_kwargs(
|
|
135
117
|
guid=guid,
|
|
136
|
-
body=body,
|
|
137
118
|
)
|
|
138
119
|
|
|
139
120
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -145,12 +126,10 @@ async def asyncio(
|
|
|
145
126
|
guid: str,
|
|
146
127
|
*,
|
|
147
128
|
client: Union[AuthenticatedClient, Client],
|
|
148
|
-
body: ScheduleBatchBody,
|
|
149
129
|
) -> Optional[BatchScheduleResponse]:
|
|
150
130
|
"""
|
|
151
131
|
Args:
|
|
152
132
|
guid (str):
|
|
153
|
-
body (ScheduleBatchBody):
|
|
154
133
|
|
|
155
134
|
Raises:
|
|
156
135
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -164,6 +143,5 @@ async def asyncio(
|
|
|
164
143
|
await asyncio_detailed(
|
|
165
144
|
guid=guid,
|
|
166
145
|
client=client,
|
|
167
|
-
body=body,
|
|
168
146
|
)
|
|
169
147
|
).parsed
|
|
@@ -5,14 +5,14 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.billing_checkout_request import BillingCheckoutRequest
|
|
8
9
|
from ...models.billing_checkout_response import BillingCheckoutResponse
|
|
9
|
-
from ...models.create_checkout_session_body import CreateCheckoutSessionBody
|
|
10
10
|
from ...types import Response
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
*,
|
|
15
|
-
body:
|
|
15
|
+
body: BillingCheckoutRequest,
|
|
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: BillingCheckoutRequest,
|
|
61
61
|
) -> Response[BillingCheckoutResponse]:
|
|
62
62
|
"""
|
|
63
63
|
Args:
|
|
64
|
-
body (
|
|
64
|
+
body (BillingCheckoutRequest):
|
|
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: BillingCheckoutRequest,
|
|
89
89
|
) -> Optional[BillingCheckoutResponse]:
|
|
90
90
|
"""
|
|
91
91
|
Args:
|
|
92
|
-
body (
|
|
92
|
+
body (BillingCheckoutRequest):
|
|
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: BillingCheckoutRequest,
|
|
112
112
|
) -> Response[BillingCheckoutResponse]:
|
|
113
113
|
"""
|
|
114
114
|
Args:
|
|
115
|
-
body (
|
|
115
|
+
body (BillingCheckoutRequest):
|
|
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: BillingCheckoutRequest,
|
|
138
138
|
) -> Optional[BillingCheckoutResponse]:
|
|
139
139
|
"""
|
|
140
140
|
Args:
|
|
141
|
-
body (
|
|
141
|
+
body (BillingCheckoutRequest):
|
|
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.
|
{docu_devs_api_client-1.6.1 → docu_devs_api_client-1.9.0}/docudevs/api/billing/get_balance.py
RENAMED
|
@@ -6,23 +6,13 @@ import httpx
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.billing_balance_response import BillingBalanceResponse
|
|
9
|
-
from ...types import
|
|
9
|
+
from ...types import Response
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
def _get_kwargs(
|
|
13
|
-
*,
|
|
14
|
-
org_id: str,
|
|
15
|
-
) -> dict[str, Any]:
|
|
16
|
-
params: dict[str, Any] = {}
|
|
17
|
-
|
|
18
|
-
params["orgId"] = org_id
|
|
19
|
-
|
|
20
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
21
|
-
|
|
12
|
+
def _get_kwargs() -> dict[str, Any]:
|
|
22
13
|
_kwargs: dict[str, Any] = {
|
|
23
14
|
"method": "get",
|
|
24
15
|
"url": "/billing/balance",
|
|
25
|
-
"params": params,
|
|
26
16
|
}
|
|
27
17
|
|
|
28
18
|
return _kwargs
|
|
@@ -56,12 +46,8 @@ def _build_response(
|
|
|
56
46
|
def sync_detailed(
|
|
57
47
|
*,
|
|
58
48
|
client: Union[AuthenticatedClient, Client],
|
|
59
|
-
org_id: str,
|
|
60
49
|
) -> Response[BillingBalanceResponse]:
|
|
61
50
|
"""
|
|
62
|
-
Args:
|
|
63
|
-
org_id (str):
|
|
64
|
-
|
|
65
51
|
Raises:
|
|
66
52
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
67
53
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
@@ -70,9 +56,7 @@ def sync_detailed(
|
|
|
70
56
|
Response[BillingBalanceResponse]
|
|
71
57
|
"""
|
|
72
58
|
|
|
73
|
-
kwargs = _get_kwargs(
|
|
74
|
-
org_id=org_id,
|
|
75
|
-
)
|
|
59
|
+
kwargs = _get_kwargs()
|
|
76
60
|
|
|
77
61
|
response = client.get_httpx_client().request(
|
|
78
62
|
**kwargs,
|
|
@@ -84,12 +68,8 @@ def sync_detailed(
|
|
|
84
68
|
def sync(
|
|
85
69
|
*,
|
|
86
70
|
client: Union[AuthenticatedClient, Client],
|
|
87
|
-
org_id: str,
|
|
88
71
|
) -> Optional[BillingBalanceResponse]:
|
|
89
72
|
"""
|
|
90
|
-
Args:
|
|
91
|
-
org_id (str):
|
|
92
|
-
|
|
93
73
|
Raises:
|
|
94
74
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
95
75
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
@@ -100,19 +80,14 @@ def sync(
|
|
|
100
80
|
|
|
101
81
|
return sync_detailed(
|
|
102
82
|
client=client,
|
|
103
|
-
org_id=org_id,
|
|
104
83
|
).parsed
|
|
105
84
|
|
|
106
85
|
|
|
107
86
|
async def asyncio_detailed(
|
|
108
87
|
*,
|
|
109
88
|
client: Union[AuthenticatedClient, Client],
|
|
110
|
-
org_id: str,
|
|
111
89
|
) -> Response[BillingBalanceResponse]:
|
|
112
90
|
"""
|
|
113
|
-
Args:
|
|
114
|
-
org_id (str):
|
|
115
|
-
|
|
116
91
|
Raises:
|
|
117
92
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
118
93
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
@@ -121,9 +96,7 @@ async def asyncio_detailed(
|
|
|
121
96
|
Response[BillingBalanceResponse]
|
|
122
97
|
"""
|
|
123
98
|
|
|
124
|
-
kwargs = _get_kwargs(
|
|
125
|
-
org_id=org_id,
|
|
126
|
-
)
|
|
99
|
+
kwargs = _get_kwargs()
|
|
127
100
|
|
|
128
101
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
129
102
|
|
|
@@ -133,12 +106,8 @@ async def asyncio_detailed(
|
|
|
133
106
|
async def asyncio(
|
|
134
107
|
*,
|
|
135
108
|
client: Union[AuthenticatedClient, Client],
|
|
136
|
-
org_id: str,
|
|
137
109
|
) -> Optional[BillingBalanceResponse]:
|
|
138
110
|
"""
|
|
139
|
-
Args:
|
|
140
|
-
org_id (str):
|
|
141
|
-
|
|
142
111
|
Raises:
|
|
143
112
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
144
113
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
@@ -150,6 +119,5 @@ async def asyncio(
|
|
|
150
119
|
return (
|
|
151
120
|
await asyncio_detailed(
|
|
152
121
|
client=client,
|
|
153
|
-
org_id=org_id,
|
|
154
122
|
)
|
|
155
123
|
).parsed
|