docu-devs-api-client 1.10.0__tar.gz → 1.10.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.
Files changed (299) hide show
  1. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/PKG-INFO +1 -1
  2. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/cli.py +68 -0
  3. docu_devs_api_client-1.10.1/docudevs/api/job/get_pdf_acro_form_result.py +92 -0
  4. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/cli.py +68 -0
  5. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/docudevs_client.py +109 -1
  6. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs_client.py +109 -1
  7. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/pyproject.toml +1 -1
  8. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/.gitignore +0 -0
  9. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/README.md +0 -0
  10. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/__init__.py +0 -0
  11. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/__init__.py +0 -0
  12. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/agent/__init__.py +0 -0
  13. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/agent/chat.py +0 -0
  14. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/agent/get_agent_status.py +0 -0
  15. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/azure_ocr_providers/__init__.py +0 -0
  16. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/azure_ocr_providers/create_ocr_provider.py +0 -0
  17. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/azure_ocr_providers/delete_ocr_provider.py +0 -0
  18. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/azure_ocr_providers/get_ocr_provider.py +0 -0
  19. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/azure_ocr_providers/list_ocr_keys.py +0 -0
  20. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/azure_ocr_providers/list_ocr_providers.py +0 -0
  21. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/azure_ocr_providers/update_ocr_key.py +0 -0
  22. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/azure_ocr_providers/update_ocr_provider.py +0 -0
  23. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/batch/__init__.py +0 -0
  24. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/batch/create_batch.py +0 -0
  25. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/batch/delete_batch_lookup_file.py +0 -0
  26. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/batch/download_batch_lookup_file.py +0 -0
  27. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/batch/process_batch.py +0 -0
  28. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/batch/process_batch_with_configuration.py +0 -0
  29. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/batch/schedule_batch.py +0 -0
  30. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/batch/upload_batch_document.py +0 -0
  31. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/batch/upload_batch_lookup_file.py +0 -0
  32. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/billing/__init__.py +0 -0
  33. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/billing/create_checkout_session.py +0 -0
  34. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/billing/get_balance.py +0 -0
  35. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/billing/get_recent_ledger.py +0 -0
  36. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/billing/get_usage_by_jobs.py +0 -0
  37. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/billing/get_usage_events.py +0 -0
  38. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/billing/get_usage_summary.py +0 -0
  39. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/billing/handle_webhook.py +0 -0
  40. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/billing/list_prices.py +0 -0
  41. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/__init__.py +0 -0
  42. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/create_case.py +0 -0
  43. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/delete_case.py +0 -0
  44. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/delete_case_document.py +0 -0
  45. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/download_case_document.py +0 -0
  46. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/get_case.py +0 -0
  47. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/get_case_document.py +0 -0
  48. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/get_document_summary.py +0 -0
  49. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/list_case_documents.py +0 -0
  50. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/list_case_summaries.py +0 -0
  51. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/list_cases.py +0 -0
  52. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/update_case.py +0 -0
  53. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/upload_case_document.py +0 -0
  54. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/cases/upload_case_document_legacy.py +0 -0
  55. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/configuration/__init__.py +0 -0
  56. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/configuration/delete_configuration.py +0 -0
  57. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/configuration/delete_lookup_file.py +0 -0
  58. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/configuration/download_excel_template.py +0 -0
  59. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/configuration/download_lookup_file.py +0 -0
  60. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/configuration/get_configuration.py +0 -0
  61. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/configuration/list_configurations.py +0 -0
  62. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/configuration/save_configuration.py +0 -0
  63. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/configuration/upload_excel_template.py +0 -0
  64. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/configuration/upload_lookup_file.py +0 -0
  65. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/default/__init__.py +0 -0
  66. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/default/get_current_user.py +0 -0
  67. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/default/resolve_ocr_provider.py +0 -0
  68. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/__init__.py +0 -0
  69. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/analyze_document.py +0 -0
  70. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/extract_acro_form_metadata.py +0 -0
  71. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/generate_schema.py +0 -0
  72. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/ocr_document.py +0 -0
  73. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/ocr_document_sync.py +0 -0
  74. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/process_document.py +0 -0
  75. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/process_document_with_configuration.py +0 -0
  76. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/upload_document.py +0 -0
  77. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/upload_files.py +0 -0
  78. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/upload_files_sync.py +0 -0
  79. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/document/upload_template.py +0 -0
  80. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/integration/__init__.py +0 -0
  81. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/integration/create_or_update.py +0 -0
  82. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/integration/delete.py +0 -0
  83. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/integration/list_.py +0 -0
  84. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/internal_llm/__init__.py +0 -0
  85. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/internal_llm/resolve_llm_provider.py +0 -0
  86. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/internal_operation/__init__.py +0 -0
  87. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/internal_operation/internal_get_operation_status.py +0 -0
  88. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/internal_operation/internal_mark_operation_timeout.py +0 -0
  89. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/internal_operation/internal_submit_operation.py +0 -0
  90. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/__init__.py +0 -0
  91. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/delete_job.py +0 -0
  92. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/get_acro_form_metadata.py +0 -0
  93. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/get_dependencies.py +0 -0
  94. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/get_document_outline.py +0 -0
  95. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/get_figure_image.py +0 -0
  96. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/get_figures_metadata.py +0 -0
  97. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/get_image.py +0 -0
  98. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/get_job_status.py +0 -0
  99. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/get_processing_params.py +0 -0
  100. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/get_source_locations.py +0 -0
  101. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/get_trace.py +0 -0
  102. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/list_jobs.py +0 -0
  103. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/result.py +0 -0
  104. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/result_csv.py +0 -0
  105. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/result_excel.py +0 -0
  106. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/result_json.py +0 -0
  107. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/job/result_schema.py +0 -0
  108. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/knowledge_bases/__init__.py +0 -0
  109. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/knowledge_bases/demote_knowledge_base.py +0 -0
  110. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/knowledge_bases/get_knowledge_base.py +0 -0
  111. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/knowledge_bases/list_knowledge_bases.py +0 -0
  112. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/knowledge_bases/promote_knowledge_base.py +0 -0
  113. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/llm_providers/__init__.py +0 -0
  114. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/llm_providers/create_llm_provider.py +0 -0
  115. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/llm_providers/delete_llm_provider.py +0 -0
  116. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/llm_providers/get_llm_provider.py +0 -0
  117. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/llm_providers/list_llm_keys.py +0 -0
  118. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/llm_providers/list_llm_providers.py +0 -0
  119. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/llm_providers/update_llm_key.py +0 -0
  120. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/llm_providers/update_llm_provider.py +0 -0
  121. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/managed_execution/__init__.py +0 -0
  122. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/managed_execution/cancel_managed_execution.py +0 -0
  123. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/managed_execution/dispatch_managed_execution.py +0 -0
  124. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/managed_execution/get_managed_execution.py +0 -0
  125. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/managed_execution/get_managed_execution_logs.py +0 -0
  126. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/managed_execution/list_managed_executions.py +0 -0
  127. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/operations/__init__.py +0 -0
  128. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/operations/create_generative_task.py +0 -0
  129. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/operations/get_operation_result.py +0 -0
  130. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/operations/get_operation_status.py +0 -0
  131. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/operations/submit_operation.py +0 -0
  132. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/settings/__init__.py +0 -0
  133. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/settings/settings.py +0 -0
  134. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/__init__.py +0 -0
  135. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/create_portal.py +0 -0
  136. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/delete_portal.py +0 -0
  137. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/download.py +0 -0
  138. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/get_by_slug.py +0 -0
  139. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/get_default_for_configuration.py +0 -0
  140. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/get_portal.py +0 -0
  141. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/get_record.py +0 -0
  142. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/list_portals.py +0 -0
  143. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/submit.py +0 -0
  144. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/submission_portals/update_portal.py +0 -0
  145. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/template/__init__.py +0 -0
  146. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/template/delete_template.py +0 -0
  147. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/template/fill.py +0 -0
  148. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/template/list_templates.py +0 -0
  149. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/template/metadata.py +0 -0
  150. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/template/upload_template_images.py +0 -0
  151. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/track_changes/__init__.py +0 -0
  152. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/track_changes/extract_track_changes.py +0 -0
  153. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/webhook/__init__.py +0 -0
  154. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/webhook/get_webhook.py +0 -0
  155. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/api/webhook/update_webhook.py +0 -0
  156. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/client.py +0 -0
  157. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/errors.py +0 -0
  158. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/__init__.py +0 -0
  159. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/agent_action.py +0 -0
  160. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/agent_action_data_type_1.py +0 -0
  161. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/agent_chat_request.py +0 -0
  162. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/agent_chat_response.py +0 -0
  163. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/agent_response_content.py +0 -0
  164. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/agent_response_content_suggested_config_type_1.py +0 -0
  165. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/agent_status_response.py +0 -0
  166. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/analyze_document_body.py +0 -0
  167. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/batch_create_request.py +0 -0
  168. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/batch_create_response.py +0 -0
  169. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/batch_schedule_response.py +0 -0
  170. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/batch_upload_response.py +0 -0
  171. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/billing_balance_response.py +0 -0
  172. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/billing_checkout_request.py +0 -0
  173. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/billing_checkout_response.py +0 -0
  174. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/billing_price.py +0 -0
  175. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/case.py +0 -0
  176. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/case_document.py +0 -0
  177. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/case_document_metadata_type_1.py +0 -0
  178. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/cases_controller_create_case_request.py +0 -0
  179. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/cases_controller_update_case_request.py +0 -0
  180. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/chat_message.py +0 -0
  181. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/comment.py +0 -0
  182. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/create_llm_provider_request.py +0 -0
  183. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/create_llm_provider_request_kwargs_type_1.py +0 -0
  184. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/create_ocr_provider_request.py +0 -0
  185. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/create_ocr_provider_request_features_type_1.py +0 -0
  186. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/create_secret_request.py +0 -0
  187. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/create_submission_portal_request.py +0 -0
  188. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/daily_usage_entry.py +0 -0
  189. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/dependency_info.py +0 -0
  190. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/dispatch_execution_request.py +0 -0
  191. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/dispatch_execution_response.py +0 -0
  192. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/document_status.py +0 -0
  193. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/document_summary_response.py +0 -0
  194. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/document_summary_response_summary_type_1.py +0 -0
  195. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/document_template.py +0 -0
  196. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/excel_template_config.py +0 -0
  197. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/execution_log_line.py +0 -0
  198. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/extract_acro_form_metadata_body.py +0 -0
  199. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/extract_track_changes_body.py +0 -0
  200. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/extraction_mode.py +0 -0
  201. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/generate_schema_body.py +0 -0
  202. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/generative_task_request.py +0 -0
  203. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/internal_operation_status_request.py +0 -0
  204. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/internal_operation_status_response.py +0 -0
  205. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/internal_operation_timeout_request.py +0 -0
  206. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/internal_submit_operation_request.py +0 -0
  207. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/knowledge_bases_controller_promote_knowledge_base_request.py +0 -0
  208. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/ledger_entry_response.py +0 -0
  209. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/llm_key_binding_dto.py +0 -0
  210. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/llm_provider_dto.py +0 -0
  211. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/llm_type.py +0 -0
  212. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/lookup_file_config.py +0 -0
  213. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/managed_execution_summary.py +0 -0
  214. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/map_reduce_command.py +0 -0
  215. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/map_reduce_header_command.py +0 -0
  216. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/map_reduce_runtime_status.py +0 -0
  217. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/map_reduce_split_type.py +0 -0
  218. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/named_configuration.py +0 -0
  219. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/ocr_command.py +0 -0
  220. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/ocr_document_sync_body.py +0 -0
  221. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/ocr_key_binding_dto.py +0 -0
  222. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/ocr_provider_dto.py +0 -0
  223. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/ocr_type.py +0 -0
  224. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/operation_info.py +0 -0
  225. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/operation_parameters.py +0 -0
  226. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/operation_parameters_custom_parameters_type_1.py +0 -0
  227. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/operation_result_response.py +0 -0
  228. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/operation_status_response.py +0 -0
  229. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/organization.py +0 -0
  230. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/page_case_document.py +0 -0
  231. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/page_processing_job.py +0 -0
  232. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/pageable.py +0 -0
  233. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/pageable_mode.py +0 -0
  234. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/pdf_field.py +0 -0
  235. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/pipeline_node_status_summary.py +0 -0
  236. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/pipeline_ocr_status_summary.py +0 -0
  237. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/pipeline_status_summary.py +0 -0
  238. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/processing_job.py +0 -0
  239. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/processing_job_batch_metadata_type_1.py +0 -0
  240. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/purge_result.py +0 -0
  241. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/resolve_llm_request.py +0 -0
  242. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/resolve_ocr_request.py +0 -0
  243. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/resolved_llm_provider_dto.py +0 -0
  244. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/resolved_ocr_provider_dto.py +0 -0
  245. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/secret_summary.py +0 -0
  246. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/settings.py +0 -0
  247. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/sheet_write_target.py +0 -0
  248. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/slice_case_document.py +0 -0
  249. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/slice_processing_job.py +0 -0
  250. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/sort.py +0 -0
  251. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/sort_order.py +0 -0
  252. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/sort_order_direction.py +0 -0
  253. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/source_location_granularity.py +0 -0
  254. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/submission_download_format.py +0 -0
  255. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/submission_input_mode.py +0 -0
  256. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/submission_portal_response.py +0 -0
  257. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/submission_record_response.py +0 -0
  258. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/submission_record_status.py +0 -0
  259. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/submission_result_mode.py +0 -0
  260. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/submission_submit_response.py +0 -0
  261. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/submit_body.py +0 -0
  262. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/submit_operation_request.py +0 -0
  263. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/submit_operation_response.py +0 -0
  264. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/template_fill_request.py +0 -0
  265. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/tool_descriptor.py +0 -0
  266. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/tool_descriptor_config_type_1.py +0 -0
  267. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/tool_type.py +0 -0
  268. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/track_change.py +0 -0
  269. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/track_changes_result.py +0 -0
  270. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/track_changes_summary.py +0 -0
  271. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/update_key_binding_request_dto.py +0 -0
  272. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/update_llm_provider_request.py +0 -0
  273. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/update_llm_provider_request_kwargs_type_1.py +0 -0
  274. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/update_ocr_key_binding_request_dto.py +0 -0
  275. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/update_ocr_provider_request.py +0 -0
  276. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/update_ocr_provider_request_features_type_1.py +0 -0
  277. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/update_submission_portal_request.py +0 -0
  278. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_batch_document_body.py +0 -0
  279. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_batch_lookup_file_body.py +0 -0
  280. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_case_document_body.py +0 -0
  281. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_case_document_legacy_body.py +0 -0
  282. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_command.py +0 -0
  283. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_command_pipeline_type_1.py +0 -0
  284. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_document_body.py +0 -0
  285. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_excel_template_body.py +0 -0
  286. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_files_body.py +0 -0
  287. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_files_sync_body.py +0 -0
  288. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_lookup_file_body.py +0 -0
  289. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_response.py +0 -0
  290. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_template_body.py +0 -0
  291. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/upload_template_images_body.py +0 -0
  292. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/usage_event_response.py +0 -0
  293. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/usage_summary_response.py +0 -0
  294. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/user_info.py +0 -0
  295. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/models/webhook_settings.py +0 -0
  296. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/pipeline.py +0 -0
  297. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/py.typed +0 -0
  298. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.1}/docudevs/schema.py +0 -0
  299. {docu_devs_api_client-1.10.0 → docu_devs_api_client-1.10.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.10.0
3
+ Version: 1.10.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
@@ -1064,6 +1064,74 @@ async def operations_error_analysis(
1064
1064
  _echo_response(response)
1065
1065
 
1066
1066
 
1067
+ @operations.command("pdf-acroform")
1068
+ @click.argument("job_guid")
1069
+ @click.option("--llm-type", default="DEFAULT", type=click.Choice(["DEFAULT", "MINI", "HIGH"]), help="LLM type for visual field detection")
1070
+ @click.option("--ocr", default="PREMIUM", type=click.Choice(["PREMIUM", "DEFAULT", "AUTO"]), help="OCR mode used when page images are missing")
1071
+ @click.option("--page", "pages", multiple=True, type=int, help="1-based page number to inspect")
1072
+ @click.option("--min-confidence", type=float, help="Minimum accepted field detection confidence")
1073
+ @click.option("--max-fields-per-page", type=int, help="Maximum generated fields per page")
1074
+ @click.option("--force-ocr/--no-force-ocr", default=None, help="Force OCR image generation even if thumbnails exist")
1075
+ @click.option("--wait/--no-wait", default=True, help="Wait for completion")
1076
+ @click.option("--timeout", default=180, show_default=True, help="Wait timeout in seconds")
1077
+ @click.option("--poll-interval", default=5.0, show_default=True, help="Polling interval in seconds")
1078
+ @click.option("--output", type=click.Path(), help="Save the generated AcroForm PDF to this path")
1079
+ @click.pass_context
1080
+ @async_command
1081
+ async def operations_pdf_acroform(
1082
+ ctx,
1083
+ job_guid: str,
1084
+ llm_type: str,
1085
+ ocr: str,
1086
+ pages: tuple[int, ...],
1087
+ min_confidence: Optional[float],
1088
+ max_fields_per_page: Optional[int],
1089
+ force_ocr: Optional[bool],
1090
+ wait: bool,
1091
+ timeout: int,
1092
+ poll_interval: float,
1093
+ output: Optional[str],
1094
+ ):
1095
+ """Convert a completed PDF job into a fillable AcroForm PDF."""
1096
+ if output and not wait:
1097
+ raise click.BadParameter("--output requires --wait", param_hint="--output")
1098
+
1099
+ page_range = list(pages) or None
1100
+ client: DocuDevsClient = ctx.obj["client"]
1101
+ if wait:
1102
+ result = await client.submit_and_wait_for_pdf_acroform_operation(
1103
+ job_guid=job_guid,
1104
+ llm_type=llm_type,
1105
+ ocr=ocr,
1106
+ page_range=page_range,
1107
+ min_confidence=min_confidence,
1108
+ max_fields_per_page=max_fields_per_page,
1109
+ force_ocr=force_ocr,
1110
+ timeout=timeout,
1111
+ poll_interval=poll_interval,
1112
+ save_to=output,
1113
+ )
1114
+ _echo_response(
1115
+ {
1116
+ "operationJobGuid": result.operation_job_guid,
1117
+ "parentJobGuid": result.parent_job_guid,
1118
+ "result": result.result,
1119
+ "output": output,
1120
+ }
1121
+ )
1122
+ else:
1123
+ response = await client.submit_pdf_acroform_operation(
1124
+ job_guid=job_guid,
1125
+ llm_type=llm_type,
1126
+ ocr=ocr,
1127
+ page_range=page_range,
1128
+ min_confidence=min_confidence,
1129
+ max_fields_per_page=max_fields_per_page,
1130
+ force_ocr=force_ocr,
1131
+ )
1132
+ _echo_response(response)
1133
+
1134
+
1067
1135
  @operations.command("generative-task")
1068
1136
  @click.argument("parent_job_id")
1069
1137
  @click.option("--prompt", required=True, help="Prompt for the generative task")
@@ -0,0 +1,92 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...types import Response
9
+
10
+
11
+ def _get_kwargs(
12
+ guid: str,
13
+ ) -> dict[str, Any]:
14
+ _kwargs: dict[str, Any] = {
15
+ "method": "get",
16
+ "url": f"/job/result/{guid}/pdf-acroform",
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)
@@ -1064,6 +1064,74 @@ async def operations_error_analysis(
1064
1064
  _echo_response(response)
1065
1065
 
1066
1066
 
1067
+ @operations.command("pdf-acroform")
1068
+ @click.argument("job_guid")
1069
+ @click.option("--llm-type", default="DEFAULT", type=click.Choice(["DEFAULT", "MINI", "HIGH"]), help="LLM type for visual field detection")
1070
+ @click.option("--ocr", default="PREMIUM", type=click.Choice(["PREMIUM", "DEFAULT", "AUTO"]), help="OCR mode used when page images are missing")
1071
+ @click.option("--page", "pages", multiple=True, type=int, help="1-based page number to inspect")
1072
+ @click.option("--min-confidence", type=float, help="Minimum accepted field detection confidence")
1073
+ @click.option("--max-fields-per-page", type=int, help="Maximum generated fields per page")
1074
+ @click.option("--force-ocr/--no-force-ocr", default=None, help="Force OCR image generation even if thumbnails exist")
1075
+ @click.option("--wait/--no-wait", default=True, help="Wait for completion")
1076
+ @click.option("--timeout", default=180, show_default=True, help="Wait timeout in seconds")
1077
+ @click.option("--poll-interval", default=5.0, show_default=True, help="Polling interval in seconds")
1078
+ @click.option("--output", type=click.Path(), help="Save the generated AcroForm PDF to this path")
1079
+ @click.pass_context
1080
+ @async_command
1081
+ async def operations_pdf_acroform(
1082
+ ctx,
1083
+ job_guid: str,
1084
+ llm_type: str,
1085
+ ocr: str,
1086
+ pages: tuple[int, ...],
1087
+ min_confidence: Optional[float],
1088
+ max_fields_per_page: Optional[int],
1089
+ force_ocr: Optional[bool],
1090
+ wait: bool,
1091
+ timeout: int,
1092
+ poll_interval: float,
1093
+ output: Optional[str],
1094
+ ):
1095
+ """Convert a completed PDF job into a fillable AcroForm PDF."""
1096
+ if output and not wait:
1097
+ raise click.BadParameter("--output requires --wait", param_hint="--output")
1098
+
1099
+ page_range = list(pages) or None
1100
+ client: DocuDevsClient = ctx.obj["client"]
1101
+ if wait:
1102
+ result = await client.submit_and_wait_for_pdf_acroform_operation(
1103
+ job_guid=job_guid,
1104
+ llm_type=llm_type,
1105
+ ocr=ocr,
1106
+ page_range=page_range,
1107
+ min_confidence=min_confidence,
1108
+ max_fields_per_page=max_fields_per_page,
1109
+ force_ocr=force_ocr,
1110
+ timeout=timeout,
1111
+ poll_interval=poll_interval,
1112
+ save_to=output,
1113
+ )
1114
+ _echo_response(
1115
+ {
1116
+ "operationJobGuid": result.operation_job_guid,
1117
+ "parentJobGuid": result.parent_job_guid,
1118
+ "result": result.result,
1119
+ "output": output,
1120
+ }
1121
+ )
1122
+ else:
1123
+ response = await client.submit_pdf_acroform_operation(
1124
+ job_guid=job_guid,
1125
+ llm_type=llm_type,
1126
+ ocr=ocr,
1127
+ page_range=page_range,
1128
+ min_confidence=min_confidence,
1129
+ max_fields_per_page=max_fields_per_page,
1130
+ force_ocr=force_ocr,
1131
+ )
1132
+ _echo_response(response)
1133
+
1134
+
1067
1135
  @operations.command("generative-task")
1068
1136
  @click.argument("parent_job_id")
1069
1137
  @click.option("--prompt", required=True, help="Prompt for the generative task")
@@ -83,6 +83,14 @@ class StructuredResultWithDocumentOutline:
83
83
  document_outline: dict | None
84
84
 
85
85
 
86
+ @dataclass(eq=True)
87
+ class PdfAcroFormOperationResult:
88
+ result: Any
89
+ pdf: bytes
90
+ operation_job_guid: str
91
+ parent_job_guid: str
92
+
93
+
86
94
  class DocuDevsClient:
87
95
  def __init__(self, api_url: str = "https://api.docudevs.ai", token: Optional[str] = None):
88
96
  # Create the openapi-python-client AuthenticatedClient
@@ -2232,7 +2240,7 @@ class DocuDevsClient:
2232
2240
  if custom_parameters:
2233
2241
  custom_params_model = OperationParametersCustomParametersType1()
2234
2242
  for key, value in custom_parameters.items():
2235
- custom_params_model[key] = str(value)
2243
+ custom_params_model[key] = value
2236
2244
 
2237
2245
  llm_type_value = UNSET
2238
2246
  if llm_type:
@@ -2283,6 +2291,106 @@ class DocuDevsClient:
2283
2291
  custom_parameters=custom_parameters or None,
2284
2292
  )
2285
2293
 
2294
+ async def submit_pdf_acroform_operation(
2295
+ self,
2296
+ job_guid: str,
2297
+ *,
2298
+ llm_type: Optional[str] = "DEFAULT",
2299
+ ocr: str = "PREMIUM",
2300
+ page_range: Optional[list[int]] = None,
2301
+ min_confidence: Optional[float] = None,
2302
+ max_fields_per_page: Optional[int] = None,
2303
+ force_ocr: Optional[bool] = None,
2304
+ ):
2305
+ """Submit a pdf-acroform operation for an existing PDF job."""
2306
+ if page_range is not None:
2307
+ if any(int(page) < 1 for page in page_range):
2308
+ raise ValueError("page_range must contain 1-based positive page numbers")
2309
+ page_range = [int(page) for page in page_range]
2310
+ if min_confidence is not None and not 0 <= min_confidence <= 1:
2311
+ raise ValueError("min_confidence must be between 0 and 1")
2312
+ if max_fields_per_page is not None and max_fields_per_page < 1:
2313
+ raise ValueError("max_fields_per_page must be >= 1")
2314
+
2315
+ custom_parameters: dict[str, Any] = {
2316
+ "ocr": ocr,
2317
+ "fieldNameStyle": "source_snake_case",
2318
+ }
2319
+ if page_range is not None:
2320
+ custom_parameters["pageRange"] = page_range
2321
+ if min_confidence is not None:
2322
+ custom_parameters["minConfidence"] = min_confidence
2323
+ if max_fields_per_page is not None:
2324
+ custom_parameters["maxFieldsPerPage"] = max_fields_per_page
2325
+ if force_ocr is not None:
2326
+ custom_parameters["forceOcr"] = force_ocr
2327
+
2328
+ return await self.submit_operation_with_parameters(
2329
+ job_guid=job_guid,
2330
+ operation_type="pdf-acroform",
2331
+ llm_type=llm_type,
2332
+ custom_parameters=custom_parameters,
2333
+ )
2334
+
2335
+ async def get_pdf_acroform(self, operation_job_guid: str, save_to: str | None = None) -> bytes:
2336
+ """Download the generated AcroForm PDF for a pdf-acroform operation job."""
2337
+ response = await self._get_async_client().get(
2338
+ f"/job/result/{quote(operation_job_guid, safe='')}/pdf-acroform"
2339
+ )
2340
+ if response.status_code == HTTPStatus.OK:
2341
+ content = response.content
2342
+ if save_to:
2343
+ with open(save_to, "wb") as output:
2344
+ output.write(content)
2345
+ return content
2346
+ if response.status_code == HTTPStatus.NOT_FOUND:
2347
+ raise FileNotFoundError(
2348
+ f"No pdf-acroform result found for operation job {operation_job_guid}"
2349
+ )
2350
+ raise Exception(f"Error downloading pdf-acroform result: {response.status_code} - {response.text}")
2351
+
2352
+ async def submit_and_wait_for_pdf_acroform_operation(
2353
+ self,
2354
+ job_guid: str,
2355
+ *,
2356
+ llm_type: Optional[str] = "DEFAULT",
2357
+ ocr: str = "PREMIUM",
2358
+ page_range: Optional[list[int]] = None,
2359
+ min_confidence: Optional[float] = None,
2360
+ max_fields_per_page: Optional[int] = None,
2361
+ force_ocr: Optional[bool] = None,
2362
+ timeout: int = 180,
2363
+ poll_interval: float = 5.0,
2364
+ save_to: str | None = None,
2365
+ ) -> PdfAcroFormOperationResult:
2366
+ """Submit a pdf-acroform operation, wait for completion, then download the PDF."""
2367
+ operation_response = await self.submit_pdf_acroform_operation(
2368
+ job_guid,
2369
+ llm_type=llm_type,
2370
+ ocr=ocr,
2371
+ page_range=page_range,
2372
+ min_confidence=min_confidence,
2373
+ max_fields_per_page=max_fields_per_page,
2374
+ force_ocr=force_ocr,
2375
+ )
2376
+ operation_guid = getattr(operation_response, "job_guid", None)
2377
+ if not operation_guid:
2378
+ raise Exception("No operation job GUID returned from pdf-acroform operation")
2379
+ result = await self._wait_for_operation_job_result(
2380
+ operation_guid,
2381
+ parent_job_guid=job_guid,
2382
+ operation_type="pdf-acroform",
2383
+ timeout=timeout,
2384
+ poll_interval=poll_interval,
2385
+ )
2386
+ pdf = await self.get_pdf_acroform(operation_guid, save_to=save_to)
2387
+ return PdfAcroFormOperationResult(
2388
+ result=result,
2389
+ pdf=pdf,
2390
+ operation_job_guid=operation_guid,
2391
+ parent_job_guid=job_guid,
2392
+ )
2393
+
2286
2394
  async def get_operation_status(self, job_guid: str):
2287
2395
  """Get status of all operations for a job."""
2288
2396
  return await get_operation_status_async(client=self._client, job_guid=job_guid)
@@ -83,6 +83,14 @@ class StructuredResultWithDocumentOutline:
83
83
  document_outline: dict | None
84
84
 
85
85
 
86
+ @dataclass(eq=True)
87
+ class PdfAcroFormOperationResult:
88
+ result: Any
89
+ pdf: bytes
90
+ operation_job_guid: str
91
+ parent_job_guid: str
92
+
93
+
86
94
  class DocuDevsClient:
87
95
  def __init__(self, api_url: str = "https://api.docudevs.ai", token: Optional[str] = None):
88
96
  # Create the openapi-python-client AuthenticatedClient
@@ -2232,7 +2240,7 @@ class DocuDevsClient:
2232
2240
  if custom_parameters:
2233
2241
  custom_params_model = OperationParametersCustomParametersType1()
2234
2242
  for key, value in custom_parameters.items():
2235
- custom_params_model[key] = str(value)
2243
+ custom_params_model[key] = value
2236
2244
 
2237
2245
  llm_type_value = UNSET
2238
2246
  if llm_type:
@@ -2283,6 +2291,106 @@ class DocuDevsClient:
2283
2291
  custom_parameters=custom_parameters or None,
2284
2292
  )
2285
2293
 
2294
+ async def submit_pdf_acroform_operation(
2295
+ self,
2296
+ job_guid: str,
2297
+ *,
2298
+ llm_type: Optional[str] = "DEFAULT",
2299
+ ocr: str = "PREMIUM",
2300
+ page_range: Optional[list[int]] = None,
2301
+ min_confidence: Optional[float] = None,
2302
+ max_fields_per_page: Optional[int] = None,
2303
+ force_ocr: Optional[bool] = None,
2304
+ ):
2305
+ """Submit a pdf-acroform operation for an existing PDF job."""
2306
+ if page_range is not None:
2307
+ if any(int(page) < 1 for page in page_range):
2308
+ raise ValueError("page_range must contain 1-based positive page numbers")
2309
+ page_range = [int(page) for page in page_range]
2310
+ if min_confidence is not None and not 0 <= min_confidence <= 1:
2311
+ raise ValueError("min_confidence must be between 0 and 1")
2312
+ if max_fields_per_page is not None and max_fields_per_page < 1:
2313
+ raise ValueError("max_fields_per_page must be >= 1")
2314
+
2315
+ custom_parameters: dict[str, Any] = {
2316
+ "ocr": ocr,
2317
+ "fieldNameStyle": "source_snake_case",
2318
+ }
2319
+ if page_range is not None:
2320
+ custom_parameters["pageRange"] = page_range
2321
+ if min_confidence is not None:
2322
+ custom_parameters["minConfidence"] = min_confidence
2323
+ if max_fields_per_page is not None:
2324
+ custom_parameters["maxFieldsPerPage"] = max_fields_per_page
2325
+ if force_ocr is not None:
2326
+ custom_parameters["forceOcr"] = force_ocr
2327
+
2328
+ return await self.submit_operation_with_parameters(
2329
+ job_guid=job_guid,
2330
+ operation_type="pdf-acroform",
2331
+ llm_type=llm_type,
2332
+ custom_parameters=custom_parameters,
2333
+ )
2334
+
2335
+ async def get_pdf_acroform(self, operation_job_guid: str, save_to: str | None = None) -> bytes:
2336
+ """Download the generated AcroForm PDF for a pdf-acroform operation job."""
2337
+ response = await self._get_async_client().get(
2338
+ f"/job/result/{quote(operation_job_guid, safe='')}/pdf-acroform"
2339
+ )
2340
+ if response.status_code == HTTPStatus.OK:
2341
+ content = response.content
2342
+ if save_to:
2343
+ with open(save_to, "wb") as output:
2344
+ output.write(content)
2345
+ return content
2346
+ if response.status_code == HTTPStatus.NOT_FOUND:
2347
+ raise FileNotFoundError(
2348
+ f"No pdf-acroform result found for operation job {operation_job_guid}"
2349
+ )
2350
+ raise Exception(f"Error downloading pdf-acroform result: {response.status_code} - {response.text}")
2351
+
2352
+ async def submit_and_wait_for_pdf_acroform_operation(
2353
+ self,
2354
+ job_guid: str,
2355
+ *,
2356
+ llm_type: Optional[str] = "DEFAULT",
2357
+ ocr: str = "PREMIUM",
2358
+ page_range: Optional[list[int]] = None,
2359
+ min_confidence: Optional[float] = None,
2360
+ max_fields_per_page: Optional[int] = None,
2361
+ force_ocr: Optional[bool] = None,
2362
+ timeout: int = 180,
2363
+ poll_interval: float = 5.0,
2364
+ save_to: str | None = None,
2365
+ ) -> PdfAcroFormOperationResult:
2366
+ """Submit a pdf-acroform operation, wait for completion, then download the PDF."""
2367
+ operation_response = await self.submit_pdf_acroform_operation(
2368
+ job_guid,
2369
+ llm_type=llm_type,
2370
+ ocr=ocr,
2371
+ page_range=page_range,
2372
+ min_confidence=min_confidence,
2373
+ max_fields_per_page=max_fields_per_page,
2374
+ force_ocr=force_ocr,
2375
+ )
2376
+ operation_guid = getattr(operation_response, "job_guid", None)
2377
+ if not operation_guid:
2378
+ raise Exception("No operation job GUID returned from pdf-acroform operation")
2379
+ result = await self._wait_for_operation_job_result(
2380
+ operation_guid,
2381
+ parent_job_guid=job_guid,
2382
+ operation_type="pdf-acroform",
2383
+ timeout=timeout,
2384
+ poll_interval=poll_interval,
2385
+ )
2386
+ pdf = await self.get_pdf_acroform(operation_guid, save_to=save_to)
2387
+ return PdfAcroFormOperationResult(
2388
+ result=result,
2389
+ pdf=pdf,
2390
+ operation_job_guid=operation_guid,
2391
+ parent_job_guid=job_guid,
2392
+ )
2393
+
2286
2394
  async def get_operation_status(self, job_guid: str):
2287
2395
  """Get status of all operations for a job."""
2288
2396
  return await get_operation_status_async(client=self._client, job_guid=job_guid)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "docu-devs-api-client"
3
- version = "1.10.0"
3
+ version = "1.10.1"
4
4
  description = "A client library for accessing DocuDevs API"
5
5
  authors = [{name = "pj@docudevs.ai"}]
6
6
  readme = "README.md"