mindee 5.9.0 → 5.10.0
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.
- package/CHANGELOG.md +6 -0
- package/package.json +12 -13
- package/src/geometry/bbox.d.ts +18 -6
- package/src/geometry/bbox.js +6 -2
- package/src/geometry/boundingBox.d.ts +3 -1
- package/src/geometry/boundingBox.js +3 -1
- package/src/geometry/boundingBoxUtils.d.ts +4 -4
- package/src/geometry/boundingBoxUtils.js +7 -7
- package/src/geometry/minMax.d.ts +9 -3
- package/src/geometry/point.d.ts +3 -1
- package/src/geometry/polygon.d.ts +3 -1
- package/src/geometry/polygon.js +3 -1
- package/src/http/apiCore.js +1 -1
- package/src/http/baseSettings.d.ts +15 -5
- package/src/http/baseSettings.js +4 -2
- package/src/http/dispatcher.js +4 -2
- package/src/image/extractedImage.d.ts +13 -5
- package/src/image/extractedImage.js +3 -3
- package/src/image/extractedImages.d.ts +3 -1
- package/src/image/extractedImages.js +3 -1
- package/src/image/imageCompressor.d.ts +1 -0
- package/src/image/imageCompressor.js +2 -2
- package/src/image/imageExtractor.d.ts +1 -1
- package/src/image/imageExtractor.js +12 -12
- package/src/input/base64Input.d.ts +9 -3
- package/src/input/base64Input.js +9 -3
- package/src/input/bufferInput.d.ts +7 -2
- package/src/input/bufferInput.js +6 -2
- package/src/input/bytesInput.d.ts +10 -3
- package/src/input/bytesInput.js +10 -3
- package/src/input/inputSource.d.ts +4 -2
- package/src/input/inputSource.js +3 -2
- package/src/input/localInputSource.d.ts +19 -6
- package/src/input/localInputSource.js +12 -5
- package/src/input/pageOptions.d.ts +9 -3
- package/src/input/pageOptions.js +6 -2
- package/src/input/pathInput.d.ts +12 -4
- package/src/input/pathInput.js +11 -5
- package/src/input/streamInput.d.ts +14 -5
- package/src/input/streamInput.js +13 -4
- package/src/input/urlInput.d.ts +19 -7
- package/src/input/urlInput.js +20 -12
- package/src/parsing/baseLocalResponse.d.ts +7 -3
- package/src/parsing/baseLocalResponse.js +15 -11
- package/src/parsing/stringDict.d.ts +3 -1
- package/src/pdf/extractedPdf.d.ts +16 -6
- package/src/pdf/extractedPdf.js +5 -3
- package/src/pdf/extractedPdfs.d.ts +3 -1
- package/src/pdf/extractedPdfs.js +3 -1
- package/src/pdf/pdfCompressor.js +14 -14
- package/src/pdf/pdfExtractor.js +1 -1
- package/src/pdf/pdfOperation.d.ts +9 -3
- package/src/pdf/pdfOperation.js +14 -14
- package/src/pdf/pdfUtils.js +1 -1
- package/src/v1/cli.js +1 -1
- package/src/v1/client.d.ts +42 -14
- package/src/v1/client.js +8 -8
- package/src/v1/extraction/invoiceSplitterExtractor/extractedInvoiceSplitterImage.d.ts +6 -2
- package/src/v1/extraction/invoiceSplitterExtractor/invoiceSplitterExtractor.js +4 -4
- package/src/v1/extraction/multiReceiptsExtractor/extractedMultiReceiptImage.d.ts +6 -2
- package/src/v1/extraction/multiReceiptsExtractor/multiReceiptsExtractor.js +2 -2
- package/src/v1/http/apiSettingsV1.d.ts +15 -5
- package/src/v1/http/apiSettingsV1.js +12 -4
- package/src/v1/http/baseEndpoint.d.ts +6 -2
- package/src/v1/http/endpoint.d.ts +9 -3
- package/src/v1/http/endpoint.js +1 -1
- package/src/v1/http/errors.d.ts +9 -3
- package/src/v1/http/errors.js +6 -2
- package/src/v1/http/httpParams.d.ts +36 -12
- package/src/v1/http/workflowEndpoint.js +1 -1
- package/src/v1/parsing/common/apiRequest.d.ts +15 -5
- package/src/v1/parsing/common/apiResponse.d.ts +6 -2
- package/src/v1/parsing/common/asyncPredictResponse.d.ts +21 -7
- package/src/v1/parsing/common/document.d.ts +18 -6
- package/src/v1/parsing/common/document.js +2 -2
- package/src/v1/parsing/common/execution.d.ts +39 -13
- package/src/v1/parsing/common/executionFile.d.ts +6 -2
- package/src/v1/parsing/common/executionPriority.d.ts +12 -4
- package/src/v1/parsing/common/executionPriority.js +12 -4
- package/src/v1/parsing/common/extras/cropperExtra.d.ts +7 -3
- package/src/v1/parsing/common/extras/cropperExtra.js +6 -3
- package/src/v1/parsing/common/extras/extras.d.ts +9 -3
- package/src/v1/parsing/common/extras/extras.js +6 -2
- package/src/v1/parsing/common/extras/fullTextOcrExtra.d.ts +9 -3
- package/src/v1/parsing/common/extras/fullTextOcrExtra.js +3 -1
- package/src/v1/parsing/common/extras/ragExtra.d.ts +3 -1
- package/src/v1/parsing/common/extras/ragExtra.js +3 -1
- package/src/v1/parsing/common/feedback/feedbackResponse.d.ts +3 -1
- package/src/v1/parsing/common/feedback/feedbackResponse.js +0 -1
- package/src/v1/parsing/common/inference.d.ts +24 -8
- package/src/v1/parsing/common/inference.js +6 -2
- package/src/v1/parsing/common/mvisionV1.d.ts +3 -1
- package/src/v1/parsing/common/mvisionV1.js +3 -1
- package/src/v1/parsing/common/ocr.d.ts +3 -1
- package/src/v1/parsing/common/ocrPage.d.ts +6 -2
- package/src/v1/parsing/common/ocrPage.js +6 -2
- package/src/v1/parsing/common/orientation.d.ts +6 -2
- package/src/v1/parsing/common/page.d.ts +12 -4
- package/src/v1/parsing/common/predictResponse.d.ts +3 -1
- package/src/v1/parsing/common/prediction.d.ts +3 -1
- package/src/v1/parsing/common/prediction.js +3 -1
- package/src/v1/parsing/generated/generatedList.d.ts +6 -2
- package/src/v1/parsing/generated/generatedObject.d.ts +25 -9
- package/src/v1/parsing/generated/generatedObject.js +13 -7
- package/src/v1/parsing/localResponse.d.ts +3 -1
- package/src/v1/parsing/localResponse.js +3 -1
- package/src/v1/parsing/standard/addressField.d.ts +24 -8
- package/src/v1/parsing/standard/amount.d.ts +3 -1
- package/src/v1/parsing/standard/amount.js +3 -1
- package/src/v1/parsing/standard/base.d.ts +27 -9
- package/src/v1/parsing/standard/base.js +6 -2
- package/src/v1/parsing/standard/boolean.d.ts +3 -1
- package/src/v1/parsing/standard/classification.d.ts +6 -2
- package/src/v1/parsing/standard/companyRegistration.d.ts +9 -3
- package/src/v1/parsing/standard/companyRegistration.js +3 -1
- package/src/v1/parsing/standard/date.d.ts +12 -4
- package/src/v1/parsing/standard/date.js +3 -1
- package/src/v1/parsing/standard/field.d.ts +7 -5
- package/src/v1/parsing/standard/field.js +4 -4
- package/src/v1/parsing/standard/locale.d.ts +15 -5
- package/src/v1/parsing/standard/paymentDetails.d.ts +15 -5
- package/src/v1/parsing/standard/position.d.ts +15 -5
- package/src/v1/parsing/standard/tax.d.ts +18 -6
- package/src/v1/parsing/standard/tax.js +15 -5
- package/src/v1/parsing/standard/text.d.ts +6 -2
- package/src/v1/parsing/standard/word.d.ts +9 -3
- package/src/v1/parsing/standard/word.js +3 -1
- package/src/v1/product/barcodeReader/barcodeReaderV1.d.ts +12 -4
- package/src/v1/product/barcodeReader/barcodeReaderV1.js +9 -3
- package/src/v1/product/barcodeReader/barcodeReaderV1Document.d.ts +6 -2
- package/src/v1/product/barcodeReader/barcodeReaderV1Document.js +6 -2
- package/src/v1/product/cropper/cropperV1.d.ts +12 -4
- package/src/v1/product/cropper/cropperV1.js +9 -3
- package/src/v1/product/cropper/cropperV1Page.d.ts +3 -1
- package/src/v1/product/cropper/cropperV1Page.js +3 -1
- package/src/v1/product/driverLicense/driverLicenseV1.d.ts +12 -4
- package/src/v1/product/driverLicense/driverLicenseV1.js +9 -3
- package/src/v1/product/driverLicense/driverLicenseV1Document.d.ts +39 -13
- package/src/v1/product/financialDocument/financialDocumentV1.d.ts +12 -4
- package/src/v1/product/financialDocument/financialDocumentV1.js +9 -3
- package/src/v1/product/financialDocument/financialDocumentV1Document.d.ts +96 -32
- package/src/v1/product/financialDocument/financialDocumentV1Document.js +15 -5
- package/src/v1/product/financialDocument/financialDocumentV1LineItem.d.ts +30 -10
- package/src/v1/product/financialDocument/financialDocumentV1LineItem.js +3 -1
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.d.ts +12 -4
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.js +9 -3
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1Document.d.ts +9 -3
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.d.ts +12 -4
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.js +9 -3
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.d.ts +18 -6
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.js +3 -1
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Document.d.ts +12 -4
- package/src/v1/product/fr/carteGrise/carteGriseV1.d.ts +12 -4
- package/src/v1/product/fr/carteGrise/carteGriseV1.js +9 -3
- package/src/v1/product/fr/carteGrise/carteGriseV1Document.d.ts +123 -41
- package/src/v1/product/fr/idCard/idCardV2.d.ts +12 -4
- package/src/v1/product/fr/idCard/idCardV2.js +9 -3
- package/src/v1/product/fr/idCard/idCardV2Document.d.ts +45 -15
- package/src/v1/product/fr/idCard/idCardV2Document.js +3 -1
- package/src/v1/product/fr/idCard/idCardV2Page.d.ts +6 -2
- package/src/v1/product/generated/generatedV1.d.ts +12 -4
- package/src/v1/product/generated/generatedV1.js +9 -3
- package/src/v1/product/generated/generatedV1Prediction.d.ts +6 -2
- package/src/v1/product/generated/generatedV1Prediction.js +3 -1
- package/src/v1/product/internationalId/internationalIdV2.d.ts +12 -4
- package/src/v1/product/internationalId/internationalIdV2.js +9 -3
- package/src/v1/product/internationalId/internationalIdV2Document.d.ts +51 -17
- package/src/v1/product/internationalId/internationalIdV2Document.js +6 -2
- package/src/v1/product/invoice/invoiceV4.d.ts +12 -4
- package/src/v1/product/invoice/invoiceV4.js +9 -3
- package/src/v1/product/invoice/invoiceV4Document.d.ts +87 -29
- package/src/v1/product/invoice/invoiceV4Document.js +15 -5
- package/src/v1/product/invoice/invoiceV4LineItem.d.ts +30 -10
- package/src/v1/product/invoice/invoiceV4LineItem.js +3 -1
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1.d.ts +12 -4
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1.js +9 -3
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.d.ts +3 -1
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.js +3 -1
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.d.ts +9 -3
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.js +3 -1
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.d.ts +12 -4
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.js +9 -3
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.d.ts +3 -1
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.js +3 -1
- package/src/v1/product/passport/passportV1.d.ts +12 -4
- package/src/v1/product/passport/passportV1.js +9 -3
- package/src/v1/product/passport/passportV1Document.d.ts +33 -11
- package/src/v1/product/passport/passportV1Document.js +3 -1
- package/src/v1/product/receipt/receiptV5.d.ts +12 -4
- package/src/v1/product/receipt/receiptV5.js +9 -3
- package/src/v1/product/receipt/receiptV5Document.d.ts +51 -17
- package/src/v1/product/receipt/receiptV5Document.js +6 -2
- package/src/v1/product/receipt/receiptV5LineItem.d.ts +18 -6
- package/src/v1/product/receipt/receiptV5LineItem.js +3 -1
- package/src/v1/product/resume/resumeV1.d.ts +12 -4
- package/src/v1/product/resume/resumeV1.js +9 -3
- package/src/v1/product/resume/resumeV1Certificate.d.ts +18 -6
- package/src/v1/product/resume/resumeV1Certificate.js +3 -1
- package/src/v1/product/resume/resumeV1Document.d.ts +51 -17
- package/src/v1/product/resume/resumeV1Document.js +27 -9
- package/src/v1/product/resume/resumeV1Education.d.ts +27 -9
- package/src/v1/product/resume/resumeV1Education.js +3 -1
- package/src/v1/product/resume/resumeV1Language.d.ts +12 -4
- package/src/v1/product/resume/resumeV1Language.js +3 -1
- package/src/v1/product/resume/resumeV1ProfessionalExperience.d.ts +33 -11
- package/src/v1/product/resume/resumeV1ProfessionalExperience.js +3 -1
- package/src/v1/product/resume/resumeV1SocialNetworksUrl.d.ts +12 -4
- package/src/v1/product/resume/resumeV1SocialNetworksUrl.js +3 -1
- package/src/v1/product/us/bankCheck/bankCheckV1.d.ts +12 -4
- package/src/v1/product/us/bankCheck/bankCheckV1.js +9 -3
- package/src/v1/product/us/bankCheck/bankCheckV1Document.d.ts +18 -6
- package/src/v1/product/us/bankCheck/bankCheckV1Document.js +3 -1
- package/src/v1/product/us/bankCheck/bankCheckV1Page.d.ts +6 -2
- package/src/v1/product/us/bankCheck/bankCheckV1Page.js +3 -1
- package/src/v2/cli.js +1 -1
- package/src/v2/client.d.ts +9 -3
- package/src/v2/clientOptions/pollingOptions.d.ts +30 -10
- package/src/v2/clientOptions/pollingOptions.js +6 -2
- package/src/v2/http/mindeeApiV2.d.ts +1 -1
- package/src/v2/http/mindeeApiV2.js +1 -1
- package/src/v2/parsing/error/errorDetails.d.ts +3 -1
- package/src/v2/parsing/inference/baseInference.d.ts +6 -2
- package/src/v2/parsing/inference/baseInference.js +6 -2
- package/src/v2/parsing/inference/field/baseField.d.ts +9 -3
- package/src/v2/parsing/inference/field/fieldConfidence.d.ts +12 -4
- package/src/v2/parsing/inference/field/fieldConfidence.js +12 -4
- package/src/v2/parsing/inference/field/fieldLocation.d.ts +9 -3
- package/src/v2/parsing/inference/field/fieldLocation.js +3 -1
- package/src/v2/parsing/inference/field/inferenceFields.d.ts +6 -2
- package/src/v2/parsing/inference/field/inferenceFields.js +3 -1
- package/src/v2/parsing/inference/field/listField.d.ts +6 -2
- package/src/v2/parsing/inference/field/listField.js +6 -2
- package/src/v2/parsing/inference/field/objectField.d.ts +6 -2
- package/src/v2/parsing/inference/field/objectField.js +3 -1
- package/src/v2/parsing/inference/field/ragMetadata.d.ts +3 -1
- package/src/v2/parsing/inference/field/ragMetadata.js +3 -1
- package/src/v2/parsing/inference/field/rawText.d.ts +6 -2
- package/src/v2/parsing/inference/field/rawText.js +6 -2
- package/src/v2/parsing/inference/field/simpleField.d.ts +6 -2
- package/src/v2/parsing/inference/field/simpleField.js +8 -4
- package/src/v2/parsing/inference/inferenceFile.d.ts +6 -2
- package/src/v2/parsing/inference/inferenceFile.js +6 -2
- package/src/v2/parsing/inference/inferenceModel.d.ts +6 -2
- package/src/v2/parsing/inference/inferenceModel.js +6 -2
- package/src/v2/product/classification/classification.d.ts +9 -3
- package/src/v2/product/classification/classification.js +9 -3
- package/src/v2/product/classification/classificationClassifier.d.ts +6 -2
- package/src/v2/product/classification/classificationClassifier.js +6 -2
- package/src/v2/product/classification/classificationInference.d.ts +6 -2
- package/src/v2/product/classification/classificationInference.js +6 -2
- package/src/v2/product/classification/classificationResponse.d.ts +3 -1
- package/src/v2/product/classification/classificationResponse.js +3 -1
- package/src/v2/product/classification/classificationResult.d.ts +6 -2
- package/src/v2/product/classification/classificationResult.js +6 -2
- package/src/v2/product/crop/crop.d.ts +9 -3
- package/src/v2/product/crop/crop.js +9 -3
- package/src/v2/product/crop/cropInference.d.ts +6 -2
- package/src/v2/product/crop/cropInference.js +6 -2
- package/src/v2/product/crop/cropItem.d.ts +6 -2
- package/src/v2/product/crop/cropItem.js +6 -2
- package/src/v2/product/crop/cropResponse.d.ts +3 -1
- package/src/v2/product/crop/cropResponse.js +3 -1
- package/src/v2/product/crop/cropResult.d.ts +6 -2
- package/src/v2/product/crop/cropResult.js +6 -2
- package/src/v2/product/extraction/dataSchemaActiveOption.d.ts +3 -1
- package/src/v2/product/extraction/dataSchemaActiveOption.js +3 -1
- package/src/v2/product/extraction/extraction.d.ts +18 -6
- package/src/v2/product/extraction/extraction.js +18 -6
- package/src/v2/product/extraction/extractionActiveOptions.d.ts +6 -2
- package/src/v2/product/extraction/extractionActiveOptions.js +6 -2
- package/src/v2/product/extraction/extractionInference.d.ts +6 -2
- package/src/v2/product/extraction/extractionInference.js +6 -2
- package/src/v2/product/extraction/extractionResponse.d.ts +3 -1
- package/src/v2/product/extraction/extractionResponse.js +3 -1
- package/src/v2/product/extraction/extractionResult.d.ts +6 -2
- package/src/v2/product/extraction/extractionResult.js +6 -2
- package/src/v2/product/extraction/params/dataSchema.d.ts +12 -4
- package/src/v2/product/extraction/params/dataSchema.js +6 -2
- package/src/v2/product/extraction/params/dataSchemaField.d.ts +39 -13
- package/src/v2/product/extraction/params/dataSchemaField.js +9 -3
- package/src/v2/product/extraction/params/dataSchemaReplace.d.ts +12 -4
- package/src/v2/product/extraction/params/dataSchemaReplace.js +6 -2
- package/src/v2/product/extraction/params/extractionParameters.js +3 -3
- package/src/v2/product/extraction/ragDocuments/annotatedListField.d.ts +3 -1
- package/src/v2/product/extraction/ragDocuments/annotatedListField.js +3 -1
- package/src/v2/product/extraction/ragDocuments/params/ragDocumentAnnotationParameters.js +1 -1
- package/src/v2/product/ocr/ocr.d.ts +9 -3
- package/src/v2/product/ocr/ocr.js +9 -3
- package/src/v2/product/ocr/ocrInference.d.ts +6 -2
- package/src/v2/product/ocr/ocrInference.js +6 -2
- package/src/v2/product/ocr/ocrPage.d.ts +6 -2
- package/src/v2/product/ocr/ocrPage.js +6 -2
- package/src/v2/product/ocr/ocrResponse.d.ts +3 -1
- package/src/v2/product/ocr/ocrResponse.js +3 -1
- package/src/v2/product/ocr/ocrResult.d.ts +3 -1
- package/src/v2/product/ocr/ocrResult.js +3 -1
- package/src/v2/product/ocr/ocrWord.d.ts +6 -2
- package/src/v2/product/ocr/ocrWord.js +6 -2
- package/src/v2/product/split/split.d.ts +9 -3
- package/src/v2/product/split/split.js +9 -3
- package/src/v2/product/split/splitInference.d.ts +6 -2
- package/src/v2/product/split/splitInference.js +6 -2
- package/src/v2/product/split/splitRange.d.ts +3 -1
- package/src/v2/product/split/splitRange.js +3 -1
- package/src/v2/product/split/splitResponse.d.ts +3 -1
- package/src/v2/product/split/splitResponse.js +3 -1
- package/src/v2/product/split/splitResult.d.ts +3 -1
- package/src/v2/product/split/splitResult.js +3 -1
- package/src/v2/search/baseSearch.d.ts +9 -3
- package/src/v2/search/baseSearch.js +9 -3
- package/src/v2/search/models/modelSearch.d.ts +9 -3
- package/src/v2/search/models/modelSearch.js +9 -3
- package/src/v2/search/models/modelSearchParameters.d.ts +3 -1
- package/src/v2/search/models/modelSearchParameters.js +3 -1
- package/src/v2/search/ragDocuments/ragDocumentSearch.d.ts +9 -3
- package/src/v2/search/ragDocuments/ragDocumentSearch.js +9 -3
- package/src/v2/search/ragDocuments/ragDocumentSearchParameters.d.ts +3 -1
- package/src/v2/search/ragDocuments/ragDocumentSearchParameters.js +3 -1
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { StringDict } from "../../../../parsing/stringDict.js";
|
|
2
2
|
import { RawTextPage } from "./rawTextPage.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Full raw OCR text grouped by page.
|
|
5
|
+
*/
|
|
4
6
|
export declare class RawText {
|
|
5
7
|
/**
|
|
6
8
|
* List of pages with their extracted text content.
|
|
7
9
|
*/
|
|
8
10
|
pages: Array<RawTextPage>;
|
|
9
11
|
constructor(serverResponse: StringDict);
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Returns concatenated raw text for all pages.
|
|
14
|
+
*/
|
|
11
15
|
toString(): string;
|
|
12
16
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { RawTextPage } from "./rawTextPage.js";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Full raw OCR text grouped by page.
|
|
4
|
+
*/
|
|
3
5
|
export class RawText {
|
|
4
6
|
constructor(serverResponse) {
|
|
5
7
|
this.pages = serverResponse["pages"] ? serverResponse["pages"].map((rawTextPage) => new RawTextPage(rawTextPage)) : [];
|
|
6
8
|
}
|
|
7
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Returns concatenated raw text for all pages.
|
|
11
|
+
*/
|
|
8
12
|
toString() {
|
|
9
13
|
return this.pages.map(page => page.toString()).join("\n\n");
|
|
10
14
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { StringDict } from "../../../../parsing/stringDict.js";
|
|
2
2
|
import { BaseField } from "./baseField.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Scalar inference field.
|
|
5
|
+
*/
|
|
4
6
|
export declare class SimpleField extends BaseField {
|
|
5
7
|
/**
|
|
6
8
|
* The untyped value of the field.
|
|
@@ -24,6 +26,8 @@ export declare class SimpleField extends BaseField {
|
|
|
24
26
|
* Retrieves a boolean field value as a boolean.
|
|
25
27
|
*/
|
|
26
28
|
get booleanValue(): boolean | null;
|
|
27
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Returns a readable scalar representation.
|
|
31
|
+
*/
|
|
28
32
|
toString(): string;
|
|
29
33
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { BaseField } from "./baseField.js";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Scalar inference field.
|
|
4
|
+
*/
|
|
3
5
|
export class SimpleField extends BaseField {
|
|
4
6
|
constructor(serverResponse, indentLevel = 0) {
|
|
5
7
|
super(serverResponse, indentLevel);
|
|
6
|
-
this.value =
|
|
7
|
-
|
|
8
|
+
this.value = serverResponse["value"] === undefined
|
|
9
|
+
? null : serverResponse["value"];
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* Retrieves a string field value as a string.
|
|
@@ -33,7 +35,9 @@ export class SimpleField extends BaseField {
|
|
|
33
35
|
}
|
|
34
36
|
return this.value;
|
|
35
37
|
}
|
|
36
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Returns a readable scalar representation.
|
|
40
|
+
*/
|
|
37
41
|
toString() {
|
|
38
42
|
if (this.value === null) {
|
|
39
43
|
return "";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { StringDict } from "../../../parsing/stringDict.js";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* File metadata attached to a v2 inference.
|
|
4
|
+
*/
|
|
3
5
|
export declare class InferenceFile {
|
|
4
6
|
/**
|
|
5
7
|
* Name of the file.
|
|
@@ -18,6 +20,8 @@ export declare class InferenceFile {
|
|
|
18
20
|
*/
|
|
19
21
|
mimeType: string;
|
|
20
22
|
constructor(serverResponse: StringDict);
|
|
21
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Returns a printable representation of file metadata.
|
|
25
|
+
*/
|
|
22
26
|
toString(): string;
|
|
23
27
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* File metadata attached to a v2 inference.
|
|
3
|
+
*/
|
|
2
4
|
export class InferenceFile {
|
|
3
5
|
constructor(serverResponse) {
|
|
4
6
|
this.name = serverResponse["name"];
|
|
@@ -6,7 +8,9 @@ export class InferenceFile {
|
|
|
6
8
|
this.pageCount = serverResponse["page_count"];
|
|
7
9
|
this.mimeType = serverResponse["mime_type"];
|
|
8
10
|
}
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Returns a printable representation of file metadata.
|
|
13
|
+
*/
|
|
10
14
|
toString() {
|
|
11
15
|
return ("File\n" +
|
|
12
16
|
"====\n" +
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { StringDict } from "../../../parsing/stringDict.js";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Model metadata attached to a v2 inference.
|
|
4
|
+
*/
|
|
3
5
|
export declare class InferenceModel {
|
|
4
6
|
/**
|
|
5
7
|
* ID of the model.
|
|
6
8
|
*/
|
|
7
9
|
id: string;
|
|
8
10
|
constructor(serverResponse: StringDict);
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Returns a printable representation of model metadata.
|
|
13
|
+
*/
|
|
10
14
|
toString(): string;
|
|
11
15
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Model metadata attached to a v2 inference.
|
|
3
|
+
*/
|
|
2
4
|
export class InferenceModel {
|
|
3
5
|
constructor(serverResponse) {
|
|
4
6
|
this.id = serverResponse["id"];
|
|
5
7
|
}
|
|
6
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Returns a printable representation of model metadata.
|
|
10
|
+
*/
|
|
7
11
|
toString() {
|
|
8
12
|
return "Model\n" +
|
|
9
13
|
"=====\n" +
|
|
@@ -5,10 +5,16 @@ import { BaseProduct } from "../baseProduct.js";
|
|
|
5
5
|
* Automatically sort any image or scanned document into categories.
|
|
6
6
|
*/
|
|
7
7
|
export declare class Classification extends BaseProduct {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @inheritDoc
|
|
10
|
+
*/
|
|
9
11
|
static get parametersClass(): typeof ClassificationParameters;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
11
15
|
static get responseClass(): typeof ClassificationResponse;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
13
19
|
static get slug(): string;
|
|
14
20
|
}
|
|
@@ -5,15 +5,21 @@ import { BaseProduct } from "../baseProduct.js";
|
|
|
5
5
|
* Automatically sort any image or scanned document into categories.
|
|
6
6
|
*/
|
|
7
7
|
export class Classification extends BaseProduct {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @inheritDoc
|
|
10
|
+
*/
|
|
9
11
|
static get parametersClass() {
|
|
10
12
|
return ClassificationParameters;
|
|
11
13
|
}
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
13
17
|
static get responseClass() {
|
|
14
18
|
return ClassificationResponse;
|
|
15
19
|
}
|
|
16
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
17
23
|
static get slug() {
|
|
18
24
|
return "classification";
|
|
19
25
|
}
|
|
@@ -3,7 +3,9 @@ import { ExtractionResponse } from "../index.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Document level classification.
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Classifier output for document-level classification.
|
|
8
|
+
*/
|
|
7
9
|
export declare class ClassificationClassifier {
|
|
8
10
|
/**
|
|
9
11
|
* The document type, as identified on given classification values.
|
|
@@ -14,6 +16,8 @@ export declare class ClassificationClassifier {
|
|
|
14
16
|
*/
|
|
15
17
|
extractionResponse?: ExtractionResponse;
|
|
16
18
|
constructor(serverResponse: StringDict);
|
|
17
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Returns a readable classifier summary.
|
|
21
|
+
*/
|
|
18
22
|
toString(): string;
|
|
19
23
|
}
|
|
@@ -2,7 +2,9 @@ import { ExtractionResponse } from "../index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Document level classification.
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Classifier output for document-level classification.
|
|
7
|
+
*/
|
|
6
8
|
export class ClassificationClassifier {
|
|
7
9
|
constructor(serverResponse) {
|
|
8
10
|
this.documentType = serverResponse["document_type"];
|
|
@@ -10,7 +12,9 @@ export class ClassificationClassifier {
|
|
|
10
12
|
? new ExtractionResponse(serverResponse["extraction_response"])
|
|
11
13
|
: undefined;
|
|
12
14
|
}
|
|
13
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Returns a readable classifier summary.
|
|
17
|
+
*/
|
|
14
18
|
toString() {
|
|
15
19
|
return `Document Type: ${this.documentType}`;
|
|
16
20
|
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { StringDict } from "../../../parsing/index.js";
|
|
2
2
|
import { BaseInference } from "../../parsing/inference/baseInference.js";
|
|
3
3
|
import { ClassificationResult } from "./classificationResult.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Inference payload for classification responses.
|
|
6
|
+
*/
|
|
5
7
|
export declare class ClassificationInference extends BaseInference {
|
|
6
8
|
/**
|
|
7
9
|
* Result of a classification inference.
|
|
8
10
|
*/
|
|
9
11
|
result: ClassificationResult;
|
|
10
12
|
constructor(serverResponse: StringDict);
|
|
11
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Returns a readable representation of the inference.
|
|
15
|
+
*/
|
|
12
16
|
toString(): string;
|
|
13
17
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { BaseInference } from "../../parsing/inference/baseInference.js";
|
|
2
2
|
import { ClassificationResult } from "./classificationResult.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Inference payload for classification responses.
|
|
5
|
+
*/
|
|
4
6
|
export class ClassificationInference extends BaseInference {
|
|
5
7
|
constructor(serverResponse) {
|
|
6
8
|
super(serverResponse);
|
|
7
9
|
this.result = new ClassificationResult(serverResponse["result"]);
|
|
8
10
|
}
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Returns a readable representation of the inference.
|
|
13
|
+
*/
|
|
10
14
|
toString() {
|
|
11
15
|
return (super.toString() +
|
|
12
16
|
this.result.toString() + "\n");
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { StringDict } from "../../../parsing/stringDict.js";
|
|
2
2
|
import { ClassificationInference } from "./classificationInference.js";
|
|
3
3
|
import { BaseResponse } from "../../parsing/index.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Response wrapper for classification product calls.
|
|
6
|
+
*/
|
|
5
7
|
export declare class ClassificationResponse extends BaseResponse {
|
|
6
8
|
/**
|
|
7
9
|
* The inference result for a classification utility request.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ClassificationInference } from "./classificationInference.js";
|
|
2
2
|
import { BaseResponse } from "../../parsing/index.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Response wrapper for classification product calls.
|
|
5
|
+
*/
|
|
4
6
|
export class ClassificationResponse extends BaseResponse {
|
|
5
7
|
/**
|
|
6
8
|
* @param serverResponse JSON response from the server.
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { StringDict } from "../../../parsing/stringDict.js";
|
|
2
2
|
import { ClassificationClassifier } from "./classificationClassifier.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Classification section of a classification inference result.
|
|
5
|
+
*/
|
|
4
6
|
export declare class ClassificationResult {
|
|
5
7
|
/**
|
|
6
8
|
* Fields contained in the inference.
|
|
7
9
|
*/
|
|
8
10
|
classification: ClassificationClassifier;
|
|
9
11
|
constructor(serverResponse: StringDict);
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Returns a readable classification summary.
|
|
14
|
+
*/
|
|
11
15
|
toString(): string;
|
|
12
16
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { ClassificationClassifier } from "./classificationClassifier.js";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Classification section of a classification inference result.
|
|
4
|
+
*/
|
|
3
5
|
export class ClassificationResult {
|
|
4
6
|
constructor(serverResponse) {
|
|
5
7
|
this.classification = new ClassificationClassifier(serverResponse["classification"]);
|
|
6
8
|
}
|
|
7
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Returns a readable classification summary.
|
|
11
|
+
*/
|
|
8
12
|
toString() {
|
|
9
13
|
return `Classification\n==============\n${this.classification}`;
|
|
10
14
|
}
|
|
@@ -5,10 +5,16 @@ import { BaseProduct } from "../baseProduct.js";
|
|
|
5
5
|
* Identify the borders of documents on each page, matching each one to a category.
|
|
6
6
|
*/
|
|
7
7
|
export declare class Crop extends BaseProduct {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @inheritDoc
|
|
10
|
+
*/
|
|
9
11
|
static get parametersClass(): typeof CropParameters;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
11
15
|
static get responseClass(): typeof CropResponse;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
13
19
|
static get slug(): string;
|
|
14
20
|
}
|
|
@@ -5,15 +5,21 @@ import { BaseProduct } from "../baseProduct.js";
|
|
|
5
5
|
* Identify the borders of documents on each page, matching each one to a category.
|
|
6
6
|
*/
|
|
7
7
|
export class Crop extends BaseProduct {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @inheritDoc
|
|
10
|
+
*/
|
|
9
11
|
static get parametersClass() {
|
|
10
12
|
return CropParameters;
|
|
11
13
|
}
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
13
17
|
static get responseClass() {
|
|
14
18
|
return CropResponse;
|
|
15
19
|
}
|
|
16
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
17
23
|
static get slug() {
|
|
18
24
|
return "crop";
|
|
19
25
|
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { StringDict } from "../../../parsing/index.js";
|
|
2
2
|
import { BaseInference } from "../../parsing/inference/baseInference.js";
|
|
3
3
|
import { CropResult } from "./cropResult.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Inference payload for crop responses.
|
|
6
|
+
*/
|
|
5
7
|
export declare class CropInference extends BaseInference {
|
|
6
8
|
/**
|
|
7
9
|
* Result of a crop utility inference.
|
|
8
10
|
*/
|
|
9
11
|
result: CropResult;
|
|
10
12
|
constructor(serverResponse: StringDict);
|
|
11
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Returns a readable representation of the inference.
|
|
15
|
+
*/
|
|
12
16
|
toString(): string;
|
|
13
17
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { BaseInference } from "../../parsing/inference/baseInference.js";
|
|
2
2
|
import { CropResult } from "./cropResult.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Inference payload for crop responses.
|
|
5
|
+
*/
|
|
4
6
|
export class CropInference extends BaseInference {
|
|
5
7
|
constructor(serverResponse) {
|
|
6
8
|
super(serverResponse);
|
|
7
9
|
this.result = new CropResult(serverResponse["result"]);
|
|
8
10
|
}
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Returns a readable representation of the inference.
|
|
13
|
+
*/
|
|
10
14
|
toString() {
|
|
11
15
|
return (super.toString() +
|
|
12
16
|
this.result.toString() + "\n");
|
|
@@ -3,7 +3,9 @@ import { StringDict } from "../../../parsing/index.js";
|
|
|
3
3
|
import { LocalInputSource } from "../../../input/index.js";
|
|
4
4
|
import { ExtractedImage } from "../../../image/index.js";
|
|
5
5
|
import { ExtractionResponse } from "../index.js";
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Single crop detection returned by the crop product.
|
|
8
|
+
*/
|
|
7
9
|
export declare class CropItem {
|
|
8
10
|
/**
|
|
9
11
|
* Type or classification of the detected object.
|
|
@@ -18,7 +20,9 @@ export declare class CropItem {
|
|
|
18
20
|
*/
|
|
19
21
|
extractionResponse?: ExtractionResponse;
|
|
20
22
|
constructor(serverResponse: StringDict);
|
|
21
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Returns a readable crop item summary.
|
|
25
|
+
*/
|
|
22
26
|
toString(): string;
|
|
23
27
|
/**
|
|
24
28
|
* Extracts a single crop from an input.
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { FieldLocation } from "../../parsing/inference/field/index.js";
|
|
2
2
|
import { extractSingleCrop } from "../../fileOperations/crop.js";
|
|
3
3
|
import { ExtractionResponse } from "../index.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Single crop detection returned by the crop product.
|
|
6
|
+
*/
|
|
5
7
|
export class CropItem {
|
|
6
8
|
constructor(serverResponse) {
|
|
7
9
|
this.objectType = serverResponse["object_type"];
|
|
@@ -10,7 +12,9 @@ export class CropItem {
|
|
|
10
12
|
? new ExtractionResponse(serverResponse["extraction_response"])
|
|
11
13
|
: undefined;
|
|
12
14
|
}
|
|
13
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Returns a readable crop item summary.
|
|
17
|
+
*/
|
|
14
18
|
toString() {
|
|
15
19
|
return `* :Location: ${this.location}\n :Object Type: ${this.objectType}`;
|
|
16
20
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { StringDict } from "../../../parsing/stringDict.js";
|
|
2
2
|
import { BaseResponse } from "../../parsing/index.js";
|
|
3
3
|
import { CropInference } from "./cropInference.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Response wrapper for crop product calls.
|
|
6
|
+
*/
|
|
5
7
|
export declare class CropResponse extends BaseResponse {
|
|
6
8
|
/**
|
|
7
9
|
* Response for a crop utility inference.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BaseResponse } from "../../parsing/index.js";
|
|
2
2
|
import { CropInference } from "./cropInference.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Response wrapper for crop product calls.
|
|
5
|
+
*/
|
|
4
6
|
export class CropResponse extends BaseResponse {
|
|
5
7
|
/**
|
|
6
8
|
* @param serverResponse JSON response from the server.
|
|
@@ -2,14 +2,18 @@ import { StringDict } from "../../../parsing/stringDict.js";
|
|
|
2
2
|
import { CropItem } from "./cropItem.js";
|
|
3
3
|
import { LocalInputSource } from "../../../input/index.js";
|
|
4
4
|
import { ExtractedImages } from "../../../image/extractedImages.js";
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Crop section of a crop inference result.
|
|
7
|
+
*/
|
|
6
8
|
export declare class CropResult {
|
|
7
9
|
/**
|
|
8
10
|
* Fields contained in the inference.
|
|
9
11
|
*/
|
|
10
12
|
crops: CropItem[];
|
|
11
13
|
constructor(serverResponse: StringDict);
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Returns a readable list of detected crops.
|
|
16
|
+
*/
|
|
13
17
|
toString(): string;
|
|
14
18
|
/**
|
|
15
19
|
* Extracts a single crop from an input.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CropItem } from "./cropItem.js";
|
|
2
2
|
import { extractMultipleCrops } from "../../fileOperations/crop.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Crop section of a crop inference result.
|
|
5
|
+
*/
|
|
4
6
|
export class CropResult {
|
|
5
7
|
constructor(serverResponse) {
|
|
6
8
|
/**
|
|
@@ -9,7 +11,9 @@ export class CropResult {
|
|
|
9
11
|
this.crops = [];
|
|
10
12
|
this.crops = serverResponse["crops"].map((cropItem) => new CropItem(cropItem));
|
|
11
13
|
}
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Returns a readable list of detected crops.
|
|
16
|
+
*/
|
|
13
17
|
toString() {
|
|
14
18
|
const crops = this.crops.map(item => item.toString()).join("\n");
|
|
15
19
|
return `Crops\n=====\n${crops}`;
|
|
@@ -8,6 +8,8 @@ export declare class DataSchemaActiveOption {
|
|
|
8
8
|
*/
|
|
9
9
|
replace: boolean;
|
|
10
10
|
constructor(serverResponse: StringDict);
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Returns a readable representation of active data schema options.
|
|
13
|
+
*/
|
|
12
14
|
toString(): string;
|
|
13
15
|
}
|
|
@@ -5,7 +5,9 @@ export class DataSchemaActiveOption {
|
|
|
5
5
|
constructor(serverResponse) {
|
|
6
6
|
this.replace = serverResponse["replace"];
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Returns a readable representation of active data schema options.
|
|
10
|
+
*/
|
|
9
11
|
toString() {
|
|
10
12
|
return `Data Schema\n-----------\n:Replace: ${this.replace ? "True" : "False"}`;
|
|
11
13
|
}
|
|
@@ -7,16 +7,28 @@ import { RagDocumentAnnotationParameters, RagDocumentUploadParameters } from "./
|
|
|
7
7
|
* Automatically extract structured data from any image or scanned document.
|
|
8
8
|
*/
|
|
9
9
|
export declare class Extraction extends BaseProduct {
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
11
13
|
static get slug(): string;
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
13
17
|
static get parametersClass(): typeof ExtractionParameters;
|
|
14
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
15
21
|
static get responseClass(): typeof ExtractionResponse;
|
|
16
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
17
25
|
static get annotationResponseClass(): typeof ExtractionRagAnnotationResponse;
|
|
18
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
19
29
|
static get annotationParametersClass(): typeof RagDocumentAnnotationParameters;
|
|
20
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
21
33
|
static get ragDocumentUploadClass(): typeof RagDocumentUploadParameters;
|
|
22
34
|
}
|
|
@@ -7,27 +7,39 @@ import { RagDocumentAnnotationParameters, RagDocumentUploadParameters } from "./
|
|
|
7
7
|
* Automatically extract structured data from any image or scanned document.
|
|
8
8
|
*/
|
|
9
9
|
export class Extraction extends BaseProduct {
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
11
13
|
static get slug() {
|
|
12
14
|
return "extraction";
|
|
13
15
|
}
|
|
14
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
15
19
|
static get parametersClass() {
|
|
16
20
|
return ExtractionParameters;
|
|
17
21
|
}
|
|
18
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
19
25
|
static get responseClass() {
|
|
20
26
|
return ExtractionResponse;
|
|
21
27
|
}
|
|
22
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
23
31
|
static get annotationResponseClass() {
|
|
24
32
|
return ExtractionRagAnnotationResponse;
|
|
25
33
|
}
|
|
26
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
27
37
|
static get annotationParametersClass() {
|
|
28
38
|
return RagDocumentAnnotationParameters;
|
|
29
39
|
}
|
|
30
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* @inheritDoc
|
|
42
|
+
*/
|
|
31
43
|
static get ragDocumentUploadClass() {
|
|
32
44
|
return RagDocumentUploadParameters;
|
|
33
45
|
}
|