cloudmersive-documentai-api-client 2.2.0 → 2.2.1

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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -10
  3. data/cloudmersive-documentai-api-client.gemspec +3 -3
  4. data/docs/AdvancedExtractClassificationRequest.md +3 -0
  5. data/docs/AdvancedExtractFieldsRequest.md +3 -0
  6. data/docs/AnalyzeApi.md +58 -2
  7. data/docs/DocumentAdvancedClassificationResult.md +1 -0
  8. data/docs/DocumentPolicyRequest.md +1 -0
  9. data/docs/DocumentQuestionAnswerItem.md +11 -0
  10. data/docs/DocumentQuestionAnswersResult.md +10 -0
  11. data/docs/DocumentQuestionBoolean.md +9 -0
  12. data/docs/DocumentQuestionChoiceItem.md +9 -0
  13. data/docs/DocumentQuestionFreeResponse.md +9 -0
  14. data/docs/DocumentQuestionMultipleChoice.md +10 -0
  15. data/docs/DocumentQuestionsRequest.md +12 -0
  16. data/docs/ExtractApi.md +76 -14
  17. data/docs/ExtractFieldsAdvancedResponse.md +10 -0
  18. data/docs/FieldAdvancedValue.md +9 -0
  19. data/docs/FieldValue.md +2 -1
  20. data/docs/RunBatchJobApi.md +9 -9
  21. data/docs/SplitDocumentResponse.md +9 -0
  22. data/docs/SubDocument.md +11 -0
  23. data/lib/cloudmersive-documentai-api-client/api/analyze_api.rb +54 -4
  24. data/lib/cloudmersive-documentai-api-client/api/extract_api.rb +85 -25
  25. data/lib/cloudmersive-documentai-api-client/api/run_batch_job_api.rb +14 -14
  26. data/lib/cloudmersive-documentai-api-client/api_client.rb +2 -2
  27. data/lib/cloudmersive-documentai-api-client/api_error.rb +2 -2
  28. data/lib/cloudmersive-documentai-api-client/configuration.rb +3 -3
  29. data/lib/cloudmersive-documentai-api-client/models/advanced_extract_classification_request.rb +36 -6
  30. data/lib/cloudmersive-documentai-api-client/models/advanced_extract_fields_request.rb +36 -6
  31. data/lib/cloudmersive-documentai-api-client/models/document_advanced_classification_result.rb +16 -6
  32. data/lib/cloudmersive-documentai-api-client/models/document_categories.rb +2 -2
  33. data/lib/cloudmersive-documentai-api-client/models/document_classification_result.rb +2 -2
  34. data/lib/cloudmersive-documentai-api-client/models/document_policy_request.rb +16 -6
  35. data/lib/cloudmersive-documentai-api-client/models/document_policy_result.rb +2 -2
  36. data/lib/cloudmersive-documentai-api-client/models/document_question_answer_item.rb +216 -0
  37. data/lib/cloudmersive-documentai-api-client/models/document_question_answers_result.rb +207 -0
  38. data/lib/cloudmersive-documentai-api-client/models/document_question_boolean.rb +196 -0
  39. data/lib/cloudmersive-documentai-api-client/models/document_question_choice_item.rb +196 -0
  40. data/lib/cloudmersive-documentai-api-client/models/document_question_free_response.rb +196 -0
  41. data/lib/cloudmersive-documentai-api-client/models/document_question_multiple_choice.rb +208 -0
  42. data/lib/cloudmersive-documentai-api-client/models/document_questions_request.rb +246 -0
  43. data/lib/cloudmersive-documentai-api-client/models/extract_barcodes_ai_response.rb +2 -2
  44. data/lib/cloudmersive-documentai-api-client/models/extract_document_batch_job_result.rb +2 -2
  45. data/lib/cloudmersive-documentai-api-client/models/extract_document_job_status_result.rb +2 -2
  46. data/lib/cloudmersive-documentai-api-client/models/extract_fields_advanced_response.rb +208 -0
  47. data/lib/cloudmersive-documentai-api-client/models/extract_fields_and_tables_response.rb +2 -2
  48. data/lib/cloudmersive-documentai-api-client/models/extract_fields_response.rb +2 -2
  49. data/lib/cloudmersive-documentai-api-client/models/extract_tables_response.rb +2 -2
  50. data/lib/cloudmersive-documentai-api-client/models/extract_text_response.rb +2 -2
  51. data/lib/cloudmersive-documentai-api-client/models/extracted_barcode_item.rb +2 -2
  52. data/lib/cloudmersive-documentai-api-client/models/extracted_text_page.rb +2 -2
  53. data/lib/cloudmersive-documentai-api-client/models/field_advanced_value.rb +196 -0
  54. data/lib/cloudmersive-documentai-api-client/models/field_to_extract.rb +2 -2
  55. data/lib/cloudmersive-documentai-api-client/models/field_value.rb +19 -7
  56. data/lib/cloudmersive-documentai-api-client/models/policy_rule.rb +2 -2
  57. data/lib/cloudmersive-documentai-api-client/models/policy_rule_violation.rb +2 -2
  58. data/lib/cloudmersive-documentai-api-client/models/split_document_response.rb +198 -0
  59. data/lib/cloudmersive-documentai-api-client/models/sub_document.rb +231 -0
  60. data/lib/cloudmersive-documentai-api-client/models/summarize_document_response.rb +2 -2
  61. data/lib/cloudmersive-documentai-api-client/models/table_result.rb +2 -2
  62. data/lib/cloudmersive-documentai-api-client/models/table_result_cell.rb +2 -2
  63. data/lib/cloudmersive-documentai-api-client/models/table_result_row.rb +2 -2
  64. data/lib/cloudmersive-documentai-api-client/version.rb +3 -3
  65. data/lib/cloudmersive-documentai-api-client.rb +13 -2
  66. data/spec/api/analyze_api_spec.rb +15 -3
  67. data/spec/api/extract_api_spec.rb +28 -13
  68. data/spec/api/run_batch_job_api_spec.rb +8 -8
  69. data/spec/api_client_spec.rb +2 -2
  70. data/spec/configuration_spec.rb +5 -5
  71. data/spec/models/advanced_extract_classification_request_spec.rb +20 -2
  72. data/spec/models/advanced_extract_fields_request_spec.rb +20 -2
  73. data/spec/models/document_advanced_classification_result_spec.rb +8 -2
  74. data/spec/models/document_categories_spec.rb +2 -2
  75. data/spec/models/document_classification_result_spec.rb +2 -2
  76. data/spec/models/document_policy_request_spec.rb +8 -2
  77. data/spec/models/document_policy_result_spec.rb +2 -2
  78. data/spec/models/document_question_answer_item_spec.rb +59 -0
  79. data/spec/models/document_question_answers_result_spec.rb +53 -0
  80. data/spec/models/document_question_boolean_spec.rb +47 -0
  81. data/spec/models/document_question_choice_item_spec.rb +47 -0
  82. data/spec/models/document_question_free_response_spec.rb +47 -0
  83. data/spec/models/document_question_multiple_choice_spec.rb +53 -0
  84. data/spec/models/document_questions_request_spec.rb +65 -0
  85. data/spec/models/extract_barcodes_ai_response_spec.rb +2 -2
  86. data/spec/models/extract_document_batch_job_result_spec.rb +2 -2
  87. data/spec/models/extract_document_job_status_result_spec.rb +2 -2
  88. data/spec/models/extract_fields_advanced_response_spec.rb +53 -0
  89. data/spec/models/extract_fields_and_tables_response_spec.rb +2 -2
  90. data/spec/models/extract_fields_response_spec.rb +2 -2
  91. data/spec/models/extract_tables_response_spec.rb +2 -2
  92. data/spec/models/extract_text_response_spec.rb +2 -2
  93. data/spec/models/extracted_barcode_item_spec.rb +2 -2
  94. data/spec/models/extracted_text_page_spec.rb +2 -2
  95. data/spec/models/field_advanced_value_spec.rb +47 -0
  96. data/spec/models/field_to_extract_spec.rb +2 -2
  97. data/spec/models/field_value_spec.rb +8 -2
  98. data/spec/models/policy_rule_spec.rb +2 -2
  99. data/spec/models/policy_rule_violation_spec.rb +2 -2
  100. data/spec/models/split_document_response_spec.rb +47 -0
  101. data/spec/models/sub_document_spec.rb +59 -0
  102. data/spec/models/summarize_document_response_spec.rb +2 -2
  103. data/spec/models/table_result_cell_spec.rb +2 -2
  104. data/spec/models/table_result_row_spec.rb +2 -2
  105. data/spec/models/table_result_spec.rb +2 -2
  106. data/spec/spec_helper.rb +2 -2
  107. metadata +36 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f396a4b31059a378e018961b2681b03f16701b80ecbb435d31139e57a218daf7
4
- data.tar.gz: 6ca03d63a92d772dae91392dd94059822b6b9ae8177a9a9e7dc3cacbbcb57af8
3
+ metadata.gz: 7bd6d213833bce75b131f1980421dc946f86e9f05b18d162849745c1f4a122b6
4
+ data.tar.gz: 5fd0629420267a9527ff7953364da0840874484b3c44307456a8e8264661833f
5
5
  SHA512:
6
- metadata.gz: 5dfebaf16d563952a730d65f962eb0d93504475561707b720fa12b6d01816400424859f051fa43bd1f287ec76691aee4e1d03a0b92285070aefe8a5da886c0e8
7
- data.tar.gz: 0211efc337baf968845383aba65bbe987f3d67ef5afe6e7001b1fa97124e68d503be097de00cd18b060405196200f53a8892f4bb7191eaa98c459b20b13db1ce
6
+ metadata.gz: be018990c8743fc8a00a99a433cae5a857a2a07cd2b3b80c8c33f4b4bbb101853d908ce18b84a114fea51bc11d2638d3fb3e6a79e977e4b9522fe5e4e9f2a1a6
7
+ data.tar.gz: f91a7058ff77aca400cc695eafffa70bd506d53103cb2fd0ac5ca6acb1b45e3889d95f8a696036d4016e294cb4f5a662008a53ab16b46d0e7f55dadb62ed1916
data/README.md CHANGED
@@ -2,13 +2,14 @@
2
2
 
3
3
  CloudmersiveDocumentaiApiClient - the Ruby gem for the Document AI API
4
4
 
5
- Use next-generation AI to extract data, fields, insights and text from documents. Instantly.
5
+ Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
6
6
 
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 2.2.0
10
+ - Package version: 2.2.1
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
+ For more information, please visit [https://www.cloudmersive.com](https://www.cloudmersive.com)
12
13
 
13
14
  ## Installation
14
15
 
@@ -23,15 +24,15 @@ gem build cloudmersive-documentai-api-client.gemspec
23
24
  Then either install the gem locally:
24
25
 
25
26
  ```shell
26
- gem install ./cloudmersive-documentai-api-client-2.2.0.gem
27
+ gem install ./cloudmersive-documentai-api-client-2.2.1.gem
27
28
  ```
28
- (for development, run `gem install --dev ./cloudmersive-documentai-api-client-2.2.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./cloudmersive-documentai-api-client-2.2.1.gem` to install the development dependencies)
29
30
 
30
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
32
 
32
33
  Finally add this to the Gemfile:
33
34
 
34
- gem 'cloudmersive-documentai-api-client', '~> 2.2.0'
35
+ gem 'cloudmersive-documentai-api-client', '~> 2.2.1'
35
36
 
36
37
  ### Install from Git
37
38
 
@@ -65,25 +66,26 @@ end
65
66
  api_instance = CloudmersiveDocumentaiApiClient::AnalyzeApi.new
66
67
 
67
68
  opts = {
68
- body: CloudmersiveDocumentaiApiClient::DocumentPolicyRequest.new # DocumentPolicyRequest | Input request, including document and policy rules
69
+ body: CloudmersiveDocumentaiApiClient::DocumentQuestionsRequest.new # DocumentQuestionsRequest | Input request, including document and questions
69
70
  }
70
71
 
71
72
  begin
72
- #Enforce Policies to a Document to allow or block it using Advanced AI
73
- result = api_instance.apply_rules(opts)
73
+ #Answer Questions about a Document in a structured way using Advanced AI
74
+ result = api_instance.answer_questions(opts)
74
75
  p result
75
76
  rescue CloudmersiveDocumentaiApiClient::ApiError => e
76
- puts "Exception when calling AnalyzeApi->apply_rules: #{e}"
77
+ puts "Exception when calling AnalyzeApi->answer_questions: #{e}"
77
78
  end
78
79
 
79
80
  ```
80
81
 
81
82
  ## Documentation for API Endpoints
82
83
 
83
- All URIs are relative to *https://localhost*
84
+ All URIs are relative to *https://api.cloudmersive.com*
84
85
 
85
86
  Class | Method | HTTP request | Description
86
87
  ------------ | ------------- | ------------- | -------------
88
+ *CloudmersiveDocumentaiApiClient::AnalyzeApi* | [**answer_questions**](docs/AnalyzeApi.md#answer_questions) | **POST** /document-ai/document/analyze/answer-questions | Answer Questions about a Document in a structured way using Advanced AI
87
89
  *CloudmersiveDocumentaiApiClient::AnalyzeApi* | [**apply_rules**](docs/AnalyzeApi.md#apply_rules) | **POST** /document-ai/document/analyze/enforce-policy | Enforce Policies to a Document to allow or block it using Advanced AI
88
90
  *CloudmersiveDocumentaiApiClient::ExtractApi* | [**extract_all_fields_and_tables**](docs/ExtractApi.md#extract_all_fields_and_tables) | **POST** /document-ai/document/extract/all | Extract All Fields and Tables of Data from a Document using AI
89
91
  *CloudmersiveDocumentaiApiClient::ExtractApi* | [**extract_barcodes**](docs/ExtractApi.md#extract_barcodes) | **POST** /document-ai/document/extract/barcodes | Extract Barcodes of from a Document using AI
@@ -91,6 +93,7 @@ Class | Method | HTTP request | Description
91
93
  *CloudmersiveDocumentaiApiClient::ExtractApi* | [**extract_classification_advanced**](docs/ExtractApi.md#extract_classification_advanced) | **POST** /document-ai/document/extract/classify/advanced | Extract Classification or Category from a Document using Advanced AI
92
94
  *CloudmersiveDocumentaiApiClient::ExtractApi* | [**extract_fields**](docs/ExtractApi.md#extract_fields) | **POST** /document-ai/document/extract/fields | Extract Field Values from a Document using AI
93
95
  *CloudmersiveDocumentaiApiClient::ExtractApi* | [**extract_fields_advanced**](docs/ExtractApi.md#extract_fields_advanced) | **POST** /document-ai/document/extract/fields/advanced | Extract Field Values from a Document using Advanced AI
96
+ *CloudmersiveDocumentaiApiClient::ExtractApi* | [**extract_split**](docs/ExtractApi.md#extract_split) | **POST** /document-ai/document/extract/split | Intelligently Split a Combined Document into Sub-Documents using AI
94
97
  *CloudmersiveDocumentaiApiClient::ExtractApi* | [**extract_summary**](docs/ExtractApi.md#extract_summary) | **POST** /document-ai/document/extract/summary | Extract Summary from a Document using AI
95
98
  *CloudmersiveDocumentaiApiClient::ExtractApi* | [**extract_tables**](docs/ExtractApi.md#extract_tables) | **POST** /document-ai/document/extract/tables | Extract Tables of Data from a Document using AI
96
99
  *CloudmersiveDocumentaiApiClient::ExtractApi* | [**extract_text**](docs/ExtractApi.md#extract_text) | **POST** /document-ai/document/extract/text | Extract Text from a Document using AI
@@ -110,19 +113,30 @@ Class | Method | HTTP request | Description
110
113
  - [CloudmersiveDocumentaiApiClient::DocumentClassificationResult](docs/DocumentClassificationResult.md)
111
114
  - [CloudmersiveDocumentaiApiClient::DocumentPolicyRequest](docs/DocumentPolicyRequest.md)
112
115
  - [CloudmersiveDocumentaiApiClient::DocumentPolicyResult](docs/DocumentPolicyResult.md)
116
+ - [CloudmersiveDocumentaiApiClient::DocumentQuestionAnswerItem](docs/DocumentQuestionAnswerItem.md)
117
+ - [CloudmersiveDocumentaiApiClient::DocumentQuestionAnswersResult](docs/DocumentQuestionAnswersResult.md)
118
+ - [CloudmersiveDocumentaiApiClient::DocumentQuestionBoolean](docs/DocumentQuestionBoolean.md)
119
+ - [CloudmersiveDocumentaiApiClient::DocumentQuestionChoiceItem](docs/DocumentQuestionChoiceItem.md)
120
+ - [CloudmersiveDocumentaiApiClient::DocumentQuestionFreeResponse](docs/DocumentQuestionFreeResponse.md)
121
+ - [CloudmersiveDocumentaiApiClient::DocumentQuestionMultipleChoice](docs/DocumentQuestionMultipleChoice.md)
122
+ - [CloudmersiveDocumentaiApiClient::DocumentQuestionsRequest](docs/DocumentQuestionsRequest.md)
113
123
  - [CloudmersiveDocumentaiApiClient::ExtractBarcodesAiResponse](docs/ExtractBarcodesAiResponse.md)
114
124
  - [CloudmersiveDocumentaiApiClient::ExtractDocumentBatchJobResult](docs/ExtractDocumentBatchJobResult.md)
115
125
  - [CloudmersiveDocumentaiApiClient::ExtractDocumentJobStatusResult](docs/ExtractDocumentJobStatusResult.md)
126
+ - [CloudmersiveDocumentaiApiClient::ExtractFieldsAdvancedResponse](docs/ExtractFieldsAdvancedResponse.md)
116
127
  - [CloudmersiveDocumentaiApiClient::ExtractFieldsAndTablesResponse](docs/ExtractFieldsAndTablesResponse.md)
117
128
  - [CloudmersiveDocumentaiApiClient::ExtractFieldsResponse](docs/ExtractFieldsResponse.md)
118
129
  - [CloudmersiveDocumentaiApiClient::ExtractTablesResponse](docs/ExtractTablesResponse.md)
119
130
  - [CloudmersiveDocumentaiApiClient::ExtractTextResponse](docs/ExtractTextResponse.md)
120
131
  - [CloudmersiveDocumentaiApiClient::ExtractedBarcodeItem](docs/ExtractedBarcodeItem.md)
121
132
  - [CloudmersiveDocumentaiApiClient::ExtractedTextPage](docs/ExtractedTextPage.md)
133
+ - [CloudmersiveDocumentaiApiClient::FieldAdvancedValue](docs/FieldAdvancedValue.md)
122
134
  - [CloudmersiveDocumentaiApiClient::FieldToExtract](docs/FieldToExtract.md)
123
135
  - [CloudmersiveDocumentaiApiClient::FieldValue](docs/FieldValue.md)
124
136
  - [CloudmersiveDocumentaiApiClient::PolicyRule](docs/PolicyRule.md)
125
137
  - [CloudmersiveDocumentaiApiClient::PolicyRuleViolation](docs/PolicyRuleViolation.md)
138
+ - [CloudmersiveDocumentaiApiClient::SplitDocumentResponse](docs/SplitDocumentResponse.md)
139
+ - [CloudmersiveDocumentaiApiClient::SubDocument](docs/SubDocument.md)
126
140
  - [CloudmersiveDocumentaiApiClient::SummarizeDocumentResponse](docs/SummarizeDocumentResponse.md)
127
141
  - [CloudmersiveDocumentaiApiClient::TableResult](docs/TableResult.md)
128
142
  - [CloudmersiveDocumentaiApiClient::TableResultCell](docs/TableResultCell.md)
@@ -3,10 +3,10 @@
3
3
  =begin
4
4
  #Document AI API
5
5
 
6
- #Use next-generation AI to extract data, fields, insights and text from documents. Instantly.
6
+ #Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
7
7
 
8
8
  OpenAPI spec version: v1
9
-
9
+ Contact: support@cloudmersive.com
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
  Swagger Codegen version: 2.4.14
12
12
 
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.version = CloudmersiveDocumentaiApiClient::VERSION
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["Cloudmersive"]
23
- s.email = [""]
23
+ s.email = ["support@cloudmersive.com"]
24
24
  s.homepage = "https://cloudmersive.com/document-ai-api"
25
25
  s.summary = "Use next-generation AI to extract data, fields, insights and text from documents. Instantly."
26
26
  s.description = "Use next-generation AI to extract data, fields, insights and text from documents. Instantly."
@@ -5,6 +5,9 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **input_file** | **String** | Input document file to perform the operation on as a byte array | [optional]
7
7
  **categories** | [**Array<DocumentCategories>**](DocumentCategories.md) | Possible categories for the document | [optional]
8
+ **preprocessing** | **String** | Optional: Set the level of image pre-processing to enhance accuracy. Possible values are 'Auto', 'SmoothEdges', 'SmoothEdgesPlus', 'Compatability' and 'None'. Default is Auto. Set to SmoothEdges to smooth harsh edges in the input image to enhance recognition accuracy. Set to SmoothEdgesPlus to smooth harsh edges to a higher degree. Set to Compatability for maximum PDF feature compatability. | [optional]
9
+ **result_cross_check** | **String** | Optional: Set the level of output accuracy cross-checking to perform on the input. Possible values are 'None', 'Advanced', 'Ultra' and 'Hyper'. Default is None. Ultra and Hyper will produce the highest accuracy but at the cost of longer processing times. | [optional]
8
10
  **maximum_pages_processed** | **Integer** | Optional: Limit the number of pages processed | [optional]
11
+ **rotate_image_degrees** | **Float** | Optional: Rotate the input image before recognition by the specified number of degrees; valid values range from -360 to +360. | [optional]
9
12
 
10
13
 
@@ -6,5 +6,8 @@ Name | Type | Description | Notes
6
6
  **input_file** | **String** | Input document file to perform the operation on as a byte array | [optional]
7
7
  **fields_to_extract** | [**Array<FieldToExtract>**](FieldToExtract.md) | Fields to extract from the document | [optional]
8
8
  **maximum_pages_processed** | **Integer** | Optional: Limit the number of pages processed | [optional]
9
+ **preprocessing** | **String** | Optional: Set the level of image pre-processing to enhance accuracy. Possible values are 'Auto', 'SmoothEdges', 'SmoothEdgesPlus', 'ContrastEdges', 'ContrastEdgesPlus', 'Invert', 'Binarize', 'Compatability' and 'None'. Default is Auto. Set to SmoothEdges to smooth harsh edges in the input image to enhance recognition accuracy. Set to SmoothEdgesPlus to smooth harsh edges to a higher degree. Set to ContrastEdges and ContrastEdgesPlus to enhance contrast and readability for low quality black and white or grayscale images. Set to Invert to invert the input image. Set to Binarize to binarize the input image. Set to Compatability for maximum PDF feature compatability. | [optional]
10
+ **result_cross_check** | **String** | Optional: Set the level of output accuracy cross-checking to perform on the input. Possible values are 'None', 'Advanced' and 'Ultra'. Default is None. Ultra will produce the highest accuracy but at the cost of longer processing times. | [optional]
11
+ **rotate_image_degrees** | **Float** | Optional: Rotate the input image before recognition by the specified number of degrees; valid values range from -360 to +360. | [optional]
9
12
 
10
13
 
data/docs/AnalyzeApi.md CHANGED
@@ -1,18 +1,74 @@
1
1
  # CloudmersiveDocumentaiApiClient::AnalyzeApi
2
2
 
3
- All URIs are relative to *https://localhost*
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**answer_questions**](AnalyzeApi.md#answer_questions) | **POST** /document-ai/document/analyze/answer-questions | Answer Questions about a Document in a structured way using Advanced AI
7
8
  [**apply_rules**](AnalyzeApi.md#apply_rules) | **POST** /document-ai/document/analyze/enforce-policy | Enforce Policies to a Document to allow or block it using Advanced AI
8
9
 
9
10
 
11
+ # **answer_questions**
12
+ > DocumentQuestionAnswersResult answer_questions(opts)
13
+
14
+ Answer Questions about a Document in a structured way using Advanced AI
15
+
16
+ Answer boolean (yes/no), multiple-choice and free-response questions about the contents of a document using Advanced AI. Input document formats supported include DOCX, PDF, PNG and JPG. Consumes 100 API calls per page.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'cloudmersive-documentai-api-client'
22
+ # setup authorization
23
+ CloudmersiveDocumentaiApiClient.configure do |config|
24
+ # Configure API key authorization: Apikey
25
+ config.api_key['Apikey'] = 'YOUR API KEY'
26
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
+ #config.api_key_prefix['Apikey'] = 'Bearer'
28
+ end
29
+
30
+ api_instance = CloudmersiveDocumentaiApiClient::AnalyzeApi.new
31
+
32
+ opts = {
33
+ body: CloudmersiveDocumentaiApiClient::DocumentQuestionsRequest.new # DocumentQuestionsRequest | Input request, including document and questions
34
+ }
35
+
36
+ begin
37
+ #Answer Questions about a Document in a structured way using Advanced AI
38
+ result = api_instance.answer_questions(opts)
39
+ p result
40
+ rescue CloudmersiveDocumentaiApiClient::ApiError => e
41
+ puts "Exception when calling AnalyzeApi->answer_questions: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **body** | [**DocumentQuestionsRequest**](DocumentQuestionsRequest.md)| Input request, including document and questions | [optional]
50
+
51
+ ### Return type
52
+
53
+ [**DocumentQuestionAnswersResult**](DocumentQuestionAnswersResult.md)
54
+
55
+ ### Authorization
56
+
57
+ [Apikey](../README.md#Apikey)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: application/json, text/json, application/*+json
62
+ - **Accept**: text/plain, application/json, text/json
63
+
64
+
65
+
10
66
  # **apply_rules**
11
67
  > DocumentPolicyResult apply_rules(opts)
12
68
 
13
69
  Enforce Policies to a Document to allow or block it using Advanced AI
14
70
 
15
- Enforce Policies to a Document to allow or block it using Advanced AI. Input document formats supported include DOCX, PDF, PNG and JPG.
71
+ Enforce Policies to a Document to allow or block it using Advanced AI. Input document formats supported include DOCX, PDF, PNG and JPG. Consumes 100 API calls per page.
16
72
 
17
73
  ### Example
18
74
  ```ruby
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
7
  **document_category_result** | **String** | Category applied to the document; if a category could not be identified then \"other\" will be used. Spaces are replaced with underscores. | [optional]
8
+ **confidence_score** | **Float** | Confidence score between 0.0 and 1.0, where values > 0.8 indicate high confidence | [optional]
8
9
 
9
10
 
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **input_file** | **String** | Input file as a byte array | [optional]
7
7
  **rules** | [**Array<PolicyRule>**](PolicyRule.md) | Rules to apply to the document | [optional]
8
+ **recognition_mode** | **String** | Optional; Recognition mode - Normal (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images | [optional]
8
9
 
9
10
 
@@ -0,0 +1,11 @@
1
+ # CloudmersiveDocumentaiApiClient::DocumentQuestionAnswerItem
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **question_id** | **String** | ID of the input question | [optional]
7
+ **answer_value** | **String** | Answer response value, formatted as a string, for this question. Boolean questions will return YES or NO. | [optional]
8
+ **answer_rationale** | **String** | Rationale explaining why this answer was given | [optional]
9
+ **confidence_score** | **Float** | Confidence score between 0.0 and 1.0 where values above 0.8 indicate high confidence | [optional]
10
+
11
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveDocumentaiApiClient::DocumentQuestionAnswersResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was completed successfully, or false otherwise | [optional]
7
+ **confidence_score** | **Float** | Confidence score between 0.0 and 1.0 where values above 0.8 indicate high confidence | [optional]
8
+ **answer_results** | [**Array<DocumentQuestionAnswerItem>**](DocumentQuestionAnswerItem.md) | | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveDocumentaiApiClient::DocumentQuestionBoolean
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **question_id** | **String** | Unique ID of the question, e.g. 1 or 2A | [optional]
7
+ **question_text** | **String** | Question in natural language to ask of the document where the answer resolves to YES or NO, e.g. 'Is this document signed and countersigned by both parties?' | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveDocumentaiApiClient::DocumentQuestionChoiceItem
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **choice_id** | **String** | Unique ID of the response choice, e.g. 3C | [optional]
7
+ **choice_text** | **String** | Description text of this choice, e.g. 'Delaware' | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveDocumentaiApiClient::DocumentQuestionFreeResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **question_id** | **String** | Unique ID of the question, e.g. 7 or 5A | [optional]
7
+ **question_text** | **String** | Question in natural language to ask of the document where the answer resolves to a free response, e.g. 'Who is the counterparty in this agreement?' | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveDocumentaiApiClient::DocumentQuestionMultipleChoice
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **question_id** | **String** | Unique ID of the question, e.g. 1 or 2A | [optional]
7
+ **question_text** | **String** | Question in natural language to ask of the document where the answer resolves to one of a fixed number of provided choices, e.g. 'What is the governing law of this agreement?' | [optional]
8
+ **response_choices** | [**Array<DocumentQuestionChoiceItem>**](DocumentQuestionChoiceItem.md) | Possible response choices for the multiple-choice question | [optional]
9
+
10
+
@@ -0,0 +1,12 @@
1
+ # CloudmersiveDocumentaiApiClient::DocumentQuestionsRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_file** | **String** | Input file as a byte array | [optional]
7
+ **questions_yes_no** | [**Array<DocumentQuestionBoolean>**](DocumentQuestionBoolean.md) | Optional: Yes or No boolean questions to answer about the document | [optional]
8
+ **questions_multiple_choice** | [**Array<DocumentQuestionMultipleChoice>**](DocumentQuestionMultipleChoice.md) | Optional: Multiple choice questions to answer about the document | [optional]
9
+ **questions_free_response** | [**Array<DocumentQuestionFreeResponse>**](DocumentQuestionFreeResponse.md) | Optional: Free response questions to answer about the document | [optional]
10
+ **recognition_mode** | **String** | Optional; Recognition mode - Normal (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images | [optional]
11
+
12
+
data/docs/ExtractApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # CloudmersiveDocumentaiApiClient::ExtractApi
2
2
 
3
- All URIs are relative to *https://localhost*
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -10,6 +10,7 @@ Method | HTTP request | Description
10
10
  [**extract_classification_advanced**](ExtractApi.md#extract_classification_advanced) | **POST** /document-ai/document/extract/classify/advanced | Extract Classification or Category from a Document using Advanced AI
11
11
  [**extract_fields**](ExtractApi.md#extract_fields) | **POST** /document-ai/document/extract/fields | Extract Field Values from a Document using AI
12
12
  [**extract_fields_advanced**](ExtractApi.md#extract_fields_advanced) | **POST** /document-ai/document/extract/fields/advanced | Extract Field Values from a Document using Advanced AI
13
+ [**extract_split**](ExtractApi.md#extract_split) | **POST** /document-ai/document/extract/split | Intelligently Split a Combined Document into Sub-Documents using AI
13
14
  [**extract_summary**](ExtractApi.md#extract_summary) | **POST** /document-ai/document/extract/summary | Extract Summary from a Document using AI
14
15
  [**extract_tables**](ExtractApi.md#extract_tables) | **POST** /document-ai/document/extract/tables | Extract Tables of Data from a Document using AI
15
16
  [**extract_text**](ExtractApi.md#extract_text) | **POST** /document-ai/document/extract/text | Extract Text from a Document using AI
@@ -20,7 +21,7 @@ Method | HTTP request | Description
20
21
 
21
22
  Extract All Fields and Tables of Data from a Document using AI
22
23
 
23
- Extract all Fields and Tables, comprised of rows and columns of data, from a document using AI. Input document formats supported include DOCX, PDF, PNG and JPG.
24
+ Extract all Fields and Tables, comprised of rows and columns of data, from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
24
25
 
25
26
  ### Example
26
27
  ```ruby
@@ -38,6 +39,7 @@ api_instance = CloudmersiveDocumentaiApiClient::ExtractApi.new
38
39
 
39
40
  opts = {
40
41
  recognition_mode: 'recognition_mode_example', # String | Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
42
+ preprocessing: 'preprocessing_example', # String | Optional: Set the level of image pre-processing to enhance accuracy. Possible values are 'Auto' (default), 'Paged', and 'Compatability'. Use 'Paged' to treat each page as a separate document for extraction (requires Advanced recognitionMode). Default is Auto.
41
43
  input_file: File.new('/path/to/file.txt') # File | Input document, or photos of a document, to extract data from
42
44
  }
43
45
 
@@ -55,6 +57,7 @@ end
55
57
  Name | Type | Description | Notes
56
58
  ------------- | ------------- | ------------- | -------------
57
59
  **recognition_mode** | **String**| Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images | [optional]
60
+ **preprocessing** | **String**| Optional: Set the level of image pre-processing to enhance accuracy. Possible values are 'Auto' (default), 'Paged', and 'Compatability'. Use 'Paged' to treat each page as a separate document for extraction (requires Advanced recognitionMode). Default is Auto. | [optional]
58
61
  **input_file** | **File**| Input document, or photos of a document, to extract data from | [optional]
59
62
 
60
63
  ### Return type
@@ -77,7 +80,7 @@ Name | Type | Description | Notes
77
80
 
78
81
  Extract Barcodes of from a Document using AI
79
82
 
80
- Extract all barcodes from a document using AI. Input document formats supported include DOCX, PDF, PNG and JPG.
83
+ Extract all barcodes from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG, HEIC and WEBP. Consumes 100 API calls per page.
81
84
 
82
85
  ### Example
83
86
  ```ruby
@@ -134,7 +137,7 @@ Name | Type | Description | Notes
134
137
 
135
138
  Extract Classification or Category from a Document using AI
136
139
 
137
- Extract Classification or Category (e.g. Invoice, Receipt, Tax Form, or Form 1040, Form 1040 EZ, etc.) from a document using AI. Input document formats supported include DOCX, PDF, PNG and JPG.
140
+ Extract Classification or Category (e.g. Invoice, Receipt, Tax Form, or Form 1040, Form 1040 EZ, etc.) from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
138
141
 
139
142
  ### Example
140
143
  ```ruby
@@ -193,7 +196,7 @@ Name | Type | Description | Notes
193
196
 
194
197
  Extract Classification or Category from a Document using Advanced AI
195
198
 
196
- Extract Classification or Category (e.g. Invoice, Receipt, Tax Form, or Form 1040, Form 1040 EZ, etc.) from a document using Advanced AI. Input document formats supported include DOCX, PDF, PNG and JPG.
199
+ Extract Classification or Category (e.g. Invoice, Receipt, Tax Form, or Form 1040, Form 1040 EZ, etc.) from a document using Advanced AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
197
200
 
198
201
  ### Example
199
202
  ```ruby
@@ -250,7 +253,7 @@ Name | Type | Description | Notes
250
253
 
251
254
  Extract Field Values from a Document using AI
252
255
 
253
- Extract Field Values (e.g. Invoice Number, Invoice Date, Business Card Phone Number, etc.) from a document using AI. Input document formats supported include DOCX, PDF, PNG and JPG.
256
+ Extract Field Values (e.g. Invoice Number, Invoice Date, Business Card Phone Number, etc.) from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
254
257
 
255
258
  ### Example
256
259
  ```ruby
@@ -305,11 +308,11 @@ Name | Type | Description | Notes
305
308
 
306
309
 
307
310
  # **extract_fields_advanced**
308
- > ExtractFieldsResponse extract_fields_advanced(opts)
311
+ > ExtractFieldsAdvancedResponse extract_fields_advanced(opts)
309
312
 
310
313
  Extract Field Values from a Document using Advanced AI
311
314
 
312
- Extract Field Values (e.g. Invoice Number, Invoice Date, Business Card Phone Number, etc.) from a document using Advanced AI. Input document formats supported include DOCX, PDF, PNG and JPG.
315
+ Extract Field Values (e.g. Invoice Number, Invoice Date, Business Card Phone Number, etc.) from a document using Advanced AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
313
316
 
314
317
  ### Example
315
318
  ```ruby
@@ -348,7 +351,7 @@ Name | Type | Description | Notes
348
351
 
349
352
  ### Return type
350
353
 
351
- [**ExtractFieldsResponse**](ExtractFieldsResponse.md)
354
+ [**ExtractFieldsAdvancedResponse**](ExtractFieldsAdvancedResponse.md)
352
355
 
353
356
  ### Authorization
354
357
 
@@ -361,12 +364,69 @@ Name | Type | Description | Notes
361
364
 
362
365
 
363
366
 
367
+ # **extract_split**
368
+ > SplitDocumentResponse extract_split(opts)
369
+
370
+ Intelligently Split a Combined Document into Sub-Documents using AI
371
+
372
+ Analyzes a document containing multiple sub-documents (such as a scanned batch of ID cards, forms, or mixed documents) and intelligently splits it into separate sub-documents. Uses AI to detect document boundaries based on visual content, headers, names, and document types. Returns the page ranges and PDF bytes for each identified sub-document. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
373
+
374
+ ### Example
375
+ ```ruby
376
+ # load the gem
377
+ require 'cloudmersive-documentai-api-client'
378
+ # setup authorization
379
+ CloudmersiveDocumentaiApiClient.configure do |config|
380
+ # Configure API key authorization: Apikey
381
+ config.api_key['Apikey'] = 'YOUR API KEY'
382
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
383
+ #config.api_key_prefix['Apikey'] = 'Bearer'
384
+ end
385
+
386
+ api_instance = CloudmersiveDocumentaiApiClient::ExtractApi.new
387
+
388
+ opts = {
389
+ recognition_mode: 'recognition_mode_example', # String | Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
390
+ input_file: File.new('/path/to/file.txt') # File | Input document containing multiple sub-documents to split
391
+ }
392
+
393
+ begin
394
+ #Intelligently Split a Combined Document into Sub-Documents using AI
395
+ result = api_instance.extract_split(opts)
396
+ p result
397
+ rescue CloudmersiveDocumentaiApiClient::ApiError => e
398
+ puts "Exception when calling ExtractApi->extract_split: #{e}"
399
+ end
400
+ ```
401
+
402
+ ### Parameters
403
+
404
+ Name | Type | Description | Notes
405
+ ------------- | ------------- | ------------- | -------------
406
+ **recognition_mode** | **String**| Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images | [optional]
407
+ **input_file** | **File**| Input document containing multiple sub-documents to split | [optional]
408
+
409
+ ### Return type
410
+
411
+ [**SplitDocumentResponse**](SplitDocumentResponse.md)
412
+
413
+ ### Authorization
414
+
415
+ [Apikey](../README.md#Apikey)
416
+
417
+ ### HTTP request headers
418
+
419
+ - **Content-Type**: multipart/form-data
420
+ - **Accept**: text/plain, application/json, text/json
421
+
422
+
423
+
364
424
  # **extract_summary**
365
425
  > SummarizeDocumentResponse extract_summary(opts)
366
426
 
367
427
  Extract Summary from a Document using AI
368
428
 
369
- Creates a 1 paragraph summary of the input document using Artificial Intelligence. Input document formats supported include DOCX, PDF, PNG and JPG.
429
+ Creates a 1 paragraph summary of the input document using Artificial Intelligence. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
370
430
 
371
431
  ### Example
372
432
  ```ruby
@@ -384,6 +444,7 @@ api_instance = CloudmersiveDocumentaiApiClient::ExtractApi.new
384
444
 
385
445
  opts = {
386
446
  recognition_mode: 'recognition_mode_example', # String | Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
447
+ language: 'language_example', # String | Optional; Three-letter language code (ISO 639) for the summary. Default is ENG. Possible language codes are: AAR,ABK,ACE,ACH,ADA,ADY,AFA,AFH,AFR,AIN,AKA,AKK,ALB,ALE,ALG,ALT,AMH,ANG,ANP,APA,ARA,ARC,ARG,ARM,ARN,ARP,ART,ARW,ASM,AST,ATH,AUS,AVA,AVE,AWA,AYM,AZE,BAD,BAI,BAK,BAL,BAM,BAN,BAQ,BAS,BAT,BEJ,BEL,BEM,BEN,BER,BHO,BIH,BIK,BIN,BIS,BLA,BNT,BOD,BOS,BRA,BRE,BTK,BUA,BUG,BUL,BUR,BYN,CAD,CAI,CAR,CAT,CAU,CEB,CEL,CES,CHA,CHB,CHE,CHG,CHI,CHK,CHM,CHN,CHO,CHP,CHR,CHU,CHV,CHY,CMC,CNR,COP,COR,COS,CPE,CPF,CPP,CRE,CRH,CRP,CSB,CUS,CYM,CZE,DAK,DAN,DAR,DAY,DEL,DEN,DEU,DGR,DIN,DIV,DOI,DRA,DSB,DUA,DUM,DUT,DYU,DZO,EFI,EGY,EKA,ELL,ELX,ENG,ENM,EPO,EST,EUS,EWE,EWO,FAN,FAO,FAS,FAT,FIJ,FIL,FIN,FIU,FON,FRA,FRE,FRM,FRO,FRR,FRS,FRY,FUL,FUR,GAA,GAY,GBA,GEM,GEO,GER,GEZ,GIL,GLA,GLE,GLG,GLV,GMH,GOH,GON,GOR,GOT,GRB,GRC,GRE,GRN,GSW,GUJ,GWI,HAI,HAT,HAU,HAW,HEB,HER,HIL,HIM,HIN,HIT,HMN,HMO,HRV,HSB,HUN,HUP,HYE,IBA,IBO,ICE,IDO,III,IJO,IKU,ILE,ILO,INA,INC,IND,INE,INH,IPK,IRA,IRO,ISL,ITA,JAV,JBO,JPN,JPR,JRB,KAA,KAB,KAC,KAL,KAM,KAN,KAR,KAS,KAT,KAU,KAW,KAZ,KBD,KHA,KHI,KHM,KHO,KIK,KIN,KIR,KMB,KOK,KOM,KON,KOR,KOS,KPE,KRC,KRL,KRO,KRU,KUA,KUM,KUR,KUT,LAD,LAH,LAM,LAO,LAT,LAV,LEZ,LIM,LIN,LIT,LOL,LOZ,LTZ,LUA,LUB,LUG,LUI,LUN,LUO,LUS,MAC,MAD,MAG,MAH,MAI,MAK,MAL,MAN,MAO,MAP,MAR,MAS,MAY,MDF,MDR,MEN,MGA,MIC,MIN,MIS,MKD,MKH,MLG,MLT,MNC,MNI,MNO,MOH,MON,MOS,MRI,MSA,MUL,MUN,MUS,MWL,MWR,MYA,MYN,MYV,NAH,NAI,NAP,NAU,NAV,NBL,NDE,NDO,NDS,NEP,NEW,NIA,NIC,NIU,NLD,NNO,NOB,NOG,NON,NOR,NQO,NSO,NUB,NWC,NYA,NYM,NYN,NYO,NZI,OCI,OJI,ORI,ORM,OSA,OSS,OTA,OTO,PAA,PAG,PAL,PAM,PAN,PAP,PAU,PEO,PER,PHI,PHN,PLI,POL,PON,POR,PRA,PRO,PUS,QUE,RAJ,RAP,RAR,ROA,ROH,ROM,RON,RUM,RUN,RUP,RUS,SAD,SAG,SAH,SAI,SAL,SAM,SAN,SAS,SAT,SCN,SCO,SEL,SEM,SGA,SGN,SHN,SID,SIN,SIO,SIT,SLA,SLK,SLO,SLV,SMA,SME,SMI,SMJ,SMN,SMO,SMS,SNA,SND,SNK,SOG,SOM,SON,SOT,SPA,SQI,SRD,SRN,SRP,SRR,SSA,SSW,SUK,SUN,SUS,SUX,SWA,SWE,SYC,SYR,TAH,TAI,TAM,TAT,TEL,TEM,TER,TET,TGK,TGL,THA,TIB,TIG,TIR,TIV,TKL,TLH,TLI,TMH,TOG,TON,TPI,TSI,TSN,TSO,TUK,TUM,TUP,TUR,TUT,TVL,TWI,TYV,UDM,UGA,UIG,UKR,UMB,UND,URD,UZB,VAI,VEN,VIE,VOL,VOT,WAK,WAL,WAR,WAS,WEL,WEN,WLN,WOL,XAL,XHO,YAO,YAP,YID,YOR,YPK,ZAP,ZBL,ZEN,ZGH,ZHA,ZHO,ZND,ZUL,ZUN,ZXX,ZZA.
387
448
  input_file: File.new('/path/to/file.txt') # File | Input document, or photos of a document, to extract data from
388
449
  }
389
450
 
@@ -401,6 +462,7 @@ end
401
462
  Name | Type | Description | Notes
402
463
  ------------- | ------------- | ------------- | -------------
403
464
  **recognition_mode** | **String**| Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images | [optional]
465
+ **language** | **String**| Optional; Three-letter language code (ISO 639) for the summary. Default is ENG. Possible language codes are: AAR,ABK,ACE,ACH,ADA,ADY,AFA,AFH,AFR,AIN,AKA,AKK,ALB,ALE,ALG,ALT,AMH,ANG,ANP,APA,ARA,ARC,ARG,ARM,ARN,ARP,ART,ARW,ASM,AST,ATH,AUS,AVA,AVE,AWA,AYM,AZE,BAD,BAI,BAK,BAL,BAM,BAN,BAQ,BAS,BAT,BEJ,BEL,BEM,BEN,BER,BHO,BIH,BIK,BIN,BIS,BLA,BNT,BOD,BOS,BRA,BRE,BTK,BUA,BUG,BUL,BUR,BYN,CAD,CAI,CAR,CAT,CAU,CEB,CEL,CES,CHA,CHB,CHE,CHG,CHI,CHK,CHM,CHN,CHO,CHP,CHR,CHU,CHV,CHY,CMC,CNR,COP,COR,COS,CPE,CPF,CPP,CRE,CRH,CRP,CSB,CUS,CYM,CZE,DAK,DAN,DAR,DAY,DEL,DEN,DEU,DGR,DIN,DIV,DOI,DRA,DSB,DUA,DUM,DUT,DYU,DZO,EFI,EGY,EKA,ELL,ELX,ENG,ENM,EPO,EST,EUS,EWE,EWO,FAN,FAO,FAS,FAT,FIJ,FIL,FIN,FIU,FON,FRA,FRE,FRM,FRO,FRR,FRS,FRY,FUL,FUR,GAA,GAY,GBA,GEM,GEO,GER,GEZ,GIL,GLA,GLE,GLG,GLV,GMH,GOH,GON,GOR,GOT,GRB,GRC,GRE,GRN,GSW,GUJ,GWI,HAI,HAT,HAU,HAW,HEB,HER,HIL,HIM,HIN,HIT,HMN,HMO,HRV,HSB,HUN,HUP,HYE,IBA,IBO,ICE,IDO,III,IJO,IKU,ILE,ILO,INA,INC,IND,INE,INH,IPK,IRA,IRO,ISL,ITA,JAV,JBO,JPN,JPR,JRB,KAA,KAB,KAC,KAL,KAM,KAN,KAR,KAS,KAT,KAU,KAW,KAZ,KBD,KHA,KHI,KHM,KHO,KIK,KIN,KIR,KMB,KOK,KOM,KON,KOR,KOS,KPE,KRC,KRL,KRO,KRU,KUA,KUM,KUR,KUT,LAD,LAH,LAM,LAO,LAT,LAV,LEZ,LIM,LIN,LIT,LOL,LOZ,LTZ,LUA,LUB,LUG,LUI,LUN,LUO,LUS,MAC,MAD,MAG,MAH,MAI,MAK,MAL,MAN,MAO,MAP,MAR,MAS,MAY,MDF,MDR,MEN,MGA,MIC,MIN,MIS,MKD,MKH,MLG,MLT,MNC,MNI,MNO,MOH,MON,MOS,MRI,MSA,MUL,MUN,MUS,MWL,MWR,MYA,MYN,MYV,NAH,NAI,NAP,NAU,NAV,NBL,NDE,NDO,NDS,NEP,NEW,NIA,NIC,NIU,NLD,NNO,NOB,NOG,NON,NOR,NQO,NSO,NUB,NWC,NYA,NYM,NYN,NYO,NZI,OCI,OJI,ORI,ORM,OSA,OSS,OTA,OTO,PAA,PAG,PAL,PAM,PAN,PAP,PAU,PEO,PER,PHI,PHN,PLI,POL,PON,POR,PRA,PRO,PUS,QUE,RAJ,RAP,RAR,ROA,ROH,ROM,RON,RUM,RUN,RUP,RUS,SAD,SAG,SAH,SAI,SAL,SAM,SAN,SAS,SAT,SCN,SCO,SEL,SEM,SGA,SGN,SHN,SID,SIN,SIO,SIT,SLA,SLK,SLO,SLV,SMA,SME,SMI,SMJ,SMN,SMO,SMS,SNA,SND,SNK,SOG,SOM,SON,SOT,SPA,SQI,SRD,SRN,SRP,SRR,SSA,SSW,SUK,SUN,SUS,SUX,SWA,SWE,SYC,SYR,TAH,TAI,TAM,TAT,TEL,TEM,TER,TET,TGK,TGL,THA,TIB,TIG,TIR,TIV,TKL,TLH,TLI,TMH,TOG,TON,TPI,TSI,TSN,TSO,TUK,TUM,TUP,TUR,TUT,TVL,TWI,TYV,UDM,UGA,UIG,UKR,UMB,UND,URD,UZB,VAI,VEN,VIE,VOL,VOT,WAK,WAL,WAR,WAS,WEL,WEN,WLN,WOL,XAL,XHO,YAO,YAP,YID,YOR,YPK,ZAP,ZBL,ZEN,ZGH,ZHA,ZHO,ZND,ZUL,ZUN,ZXX,ZZA. | [optional]
404
466
  **input_file** | **File**| Input document, or photos of a document, to extract data from | [optional]
405
467
 
406
468
  ### Return type
@@ -423,7 +485,7 @@ Name | Type | Description | Notes
423
485
 
424
486
  Extract Tables of Data from a Document using AI
425
487
 
426
- Extract Tables, comprised of rows and columns of data, from a document using AI. Input document formats supported include DOCX, PDF, PNG and JPG.
488
+ Extract Tables, comprised of rows and columns of data, from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumeds 100 API calls per page.
427
489
 
428
490
  ### Example
429
491
  ```ruby
@@ -480,7 +542,7 @@ Name | Type | Description | Notes
480
542
 
481
543
  Extract Text from a Document using AI
482
544
 
483
- Extract raw text from a document using AI. Input document formats supported include DOCX, PDF, PNG and JPG. Supports a wide range of languages.
545
+ Extract raw text from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Supports a wide range of languages. Consumes 100 API calls per page.
484
546
 
485
547
  ### Example
486
548
  ```ruby
@@ -497,7 +559,7 @@ end
497
559
  api_instance = CloudmersiveDocumentaiApiClient::ExtractApi.new
498
560
 
499
561
  opts = {
500
- recognition_mode: 'recognition_mode_example', # String | Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
562
+ recognition_mode: 'recognition_mode_example', # String | Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images. Set to Deterministic to directly extract text from digital documents without using AI.
501
563
  input_file: File.new('/path/to/file.txt') # File | Input document, or photos of a document, to extract data from
502
564
  }
503
565
 
@@ -514,7 +576,7 @@ end
514
576
 
515
577
  Name | Type | Description | Notes
516
578
  ------------- | ------------- | ------------- | -------------
517
- **recognition_mode** | **String**| Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images | [optional]
579
+ **recognition_mode** | **String**| Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images. Set to Deterministic to directly extract text from digital documents without using AI. | [optional]
518
580
  **input_file** | **File**| Input document, or photos of a document, to extract data from | [optional]
519
581
 
520
582
  ### Return type
@@ -0,0 +1,10 @@
1
+ # CloudmersiveDocumentaiApiClient::ExtractFieldsAdvancedResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **results** | [**Array<FieldAdvancedValue>**](FieldAdvancedValue.md) | Field value results from the extraction operation | [optional]
8
+ **confidence_score** | **Float** | Confidence score between 0.0 and 1.0, where values > 0.8 indicate high confidence | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveDocumentaiApiClient::FieldAdvancedValue
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **field_name** | **String** | Name of the field (note that spaces will be replaced with underscore) | [optional]
7
+ **field_string_value** | **String** | String value of the field that was extractged from the document | [optional]
8
+
9
+
data/docs/FieldValue.md CHANGED
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **field_name** | **String** | Name of the field (note that spaces will be replaced with underscore) | [optional]
7
- **field_string_value** | **String** | String value of the field that was extractged from the document | [optional]
7
+ **field_string_value** | **String** | Primary or first string value of the field that was extractged from the document | [optional]
8
+ **additional_field_string_values** | **Array<String>** | Additional values for this field when the same field is present with multiple values, for example, if two instances of the same form occur in the same document | [optional]
8
9
 
9
10