openapi: 3.0.1
info:
  description: Data Extraction API
  title: Data Extraction API
  version: 0.0.279
servers:
- description: Generated server url
  url: https://api.btx.fr.banqup.com/connectors/dataextraction
- description: Generated server url
  url: https://api.btx.eu.banqup.com/connectors/dataextraction
paths: {}
components:
  schemas:
    DataExtractionMetadata:
      type: object
      properties:
        fileId:
          type: string
          format: uuid
      required:
      - fileId
    DataExtractionOriginalCallback:
      type: object
      properties:
        endpoint:
          type: string
        headers:
          type: object
          additionalProperties:
            type: string
      required:
      - endpoint
    DocAiFeedback:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
    DocAiProcessFeedback:
      type: object
      properties:
        docai_values:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/DocAiValue'
        error:
          type: string
        external_uuid:
          type: string
        feedback:
          $ref: '#/components/schemas/DocAiFeedback'
        id:
          type: string
        ocr_type:
          type: string
        original_docai_uri:
          type: string
        partner_uuid:
          type: string
        status:
          type: string
        transformed_docai_uri:
          type: string
      required:
      - id
      - partner_uuid
      - status
    DocAiValue:
      type: object
      properties:
        confidence:
          type: number
          format: double
        listValue:
          type: array
          items:
            $ref: '#/components/schemas/DocAiValue'
        mapValue:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/DocAiValue'
        numberValue:
          type: number
          format: double
        stringValue:
          type: string
    ExtractFileDataRequest:
      type: object
      properties:
        callback:
          $ref: '#/components/schemas/DataExtractionOriginalCallback'
        context:
          type: object
          additionalProperties:
            type: object
        fileContentUri:
          type: string
        metadata:
          $ref: '#/components/schemas/DataExtractionMetadata'
      required:
      - callback
      - fileContentUri
      - metadata
    ExtractFileDataResponse:
      type: object
      properties:
        extractionId:
          type: string
      required:
      - extractionId
