openapi: 3.0.0
paths:
  /announcement:
    get:
      operationId: AppController_announcement
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Announcement'
  /health:
    get:
      operationId: AppController_health
      parameters: []
      responses:
        '200':
          description: ''
  /auth/user:
    get:
      operationId: AuthController_user
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
  /citations/search:
    get:
      operationId: SearchController_getSearch
      summary: ''
      deprecated: true
      parameters:
        - name: index
          required: false
          in: query
          schema:
            type: string
        - name: stiType
          required: false
          in: query
          schema:
            $ref: '#/components/schemas/StiType'
        - name: disseminated
          required: false
          in: query
          schema:
            $ref: '#/components/schemas/Dissemination'
        - name: distribution
          required: false
          in: query
          schema:
            $ref: '#/components/schemas/Distribution'
        - name: created
          required: false
          in: query
          properties: &ref_0
            gt:
              format: date
              type: string
            gte:
              format: date
              type: string
            lt:
              format: date
              type: string
            lte:
              format: date
              type: string
            format:
              type: string
              description: >-
                Supports predefined and custom formats.


                Reference -
                https://www.elastic.co/guide/en/elasticsearch/reference/7.8/mapping-date-format.html
              default: strict_date_optional_time||epoch_millis
          schema:
            type: object
        - name: published
          required: false
          in: query
          properties: *ref_0
          schema:
            type: object
        - name: modified
          required: false
          in: query
          properties: *ref_0
          schema:
            type: object
        - name: author
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: center
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: organization
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: subjectCategory
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: reportNumber
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: fundingNumber
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: keyword
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: accessionNumber
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: page
          required: false
          in: query
          properties:
            size:
              type: number
              maximum: 100
            from:
              type: number
          schema:
            type: object
        - name: sort
          required: false
          in: query
          properties:
            field:
              type: string
            order:
              type: string
              enum:
                - asc
                - desc
          schema:
            type: object
        - name: highlight
          required: false
          in: query
          schema:
            type: boolean
        - name: q
          required: false
          in: query
          schema:
            type: string
        - name: title
          required: false
          in: query
          schema:
            type: string
        - name: abstract
          required: false
          in: query
          schema:
            type: string
        - name: stiTypeDetails
          required: false
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitationsSearchResponse'
    post:
      operationId: SearchController_postSearch
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CitationsSearchParams'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitationsSearchResponse'
  /pubspace/search:
    get:
      operationId: SearchController_getPubSpaceSearch
      summary: ''
      deprecated: true
      parameters:
        - name: index
          required: false
          in: query
          schema:
            type: string
        - name: stiType
          required: false
          in: query
          schema:
            $ref: '#/components/schemas/StiType'
        - name: disseminated
          required: false
          in: query
          schema:
            $ref: '#/components/schemas/Dissemination'
        - name: distribution
          required: false
          in: query
          schema:
            $ref: '#/components/schemas/Distribution'
        - name: created
          required: false
          in: query
          properties: &ref_1
            gt:
              format: date
              type: string
            gte:
              format: date
              type: string
            lt:
              format: date
              type: string
            lte:
              format: date
              type: string
            format:
              type: string
              description: >-
                Supports predefined and custom formats.


                Reference -
                https://www.elastic.co/guide/en/elasticsearch/reference/7.8/mapping-date-format.html
              default: strict_date_optional_time||epoch_millis
          schema:
            type: object
        - name: published
          required: false
          in: query
          properties: *ref_1
          schema:
            type: object
        - name: modified
          required: false
          in: query
          properties: *ref_1
          schema:
            type: object
        - name: author
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: center
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: organization
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: subjectCategory
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: reportNumber
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: fundingNumber
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: keyword
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: accessionNumber
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: page
          required: false
          in: query
          properties:
            size:
              type: number
              maximum: 100
            from:
              type: number
          schema:
            type: object
        - name: sort
          required: false
          in: query
          properties:
            field:
              type: string
            order:
              type: string
              enum:
                - asc
                - desc
          schema:
            type: object
        - name: highlight
          required: false
          in: query
          schema:
            type: boolean
        - name: q
          required: false
          in: query
          schema:
            type: string
        - name: title
          required: false
          in: query
          schema:
            type: string
        - name: abstract
          required: false
          in: query
          schema:
            type: string
        - name: stiTypeDetails
          required: false
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitationsSearchResponse'
    post:
      operationId: SearchController_postPubSpaceSearch
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CitationsSearchParams'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitationsSearchResponse'
  /docs/{filename}:
    get:
      operationId: SearchController_downloadMetadataDocument
      parameters:
        - name: filename
          required: true
          in: path
          schema:
            type: string
        - name: attachment
          required: false
          in: query
          schema:
            type: boolean
        - name: range
          required: true
          in: header
          schema:
            type: string
      responses:
        '200':
          description: ''
  /citations/redistributions:
    get:
      operationId: SearchController_getRedistributed
      parameters:
        - name: redistributedDate
          required: false
          in: query
          properties:
            gt:
              format: date
              type: string
            gte:
              format: date
              type: string
            lt:
              format: date
              type: string
            lte:
              format: date
              type: string
            format:
              type: string
              description: >-
                Supports predefined and custom formats.


                Reference -
                https://www.elastic.co/guide/en/elasticsearch/reference/7.8/mapping-date-format.html
              default: strict_date_optional_time||epoch_millis
          schema:
            type: object
        - name: page
          required: false
          in: query
          properties:
            size:
              type: number
              maximum: 100
            from:
              type: number
          schema:
            type: object
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedistributedCitationsResponse'
  /citations/autocomplete:
    get:
      operationId: SearchController_autocomplete
      parameters:
        - name: field
          required: true
          in: query
          schema:
            type: string
        - name: q
          required: true
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
  /citations/{id}:
    get:
      operationId: SearchController_getCitation
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Citation'
  /citations/{id}/downloads:
    get:
      operationId: SearchController_downloads
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Download'
  /citations/{id}/downloads/{filename}:
    get:
      operationId: SearchController_downloadDocument
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: number
        - name: filename
          required: true
          in: path
          schema:
            type: string
        - name: attachment
          required: false
          in: query
          schema:
            type: boolean
        - name: range
          required: true
          in: header
          schema:
            type: string
      responses:
        '200':
          description: ''
  /export:
    post:
      operationId: ExportController_postExport
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CitationsSearchParams'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitationsExportResponse'
  /export/xml:
    post:
      operationId: ExportController_postExportAsXml
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CitationsSearchParams'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitationsExportResponse'
  /export/csv:
    post:
      operationId: ExportController_postExportAsCsv
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CitationsSearchParams'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CitationsExportResponse'
info:
  title: NTRS API
  description: NTRS API
  version: '1.0'
  contact: {}
tags: []
servers:
  - url: /api
components:
  schemas:
    Announcement:
      type: object
      properties:
        content:
          type: string
      required:
        - content
    Distribution:
      type: string
      enum:
        - PUBLIC
        - US_PERSONS
        - US_GOVERNMENT_AGENCIES_AND_GOVERNMENT_AGENCY_CONTRACTORS
        - US_GOVERNMENT_AGENCIES
        - US_GOVERNMENT_AGENCIES_AND_NASA_CONTRACTORS
        - NASA_CIVIL_SERVANTS_AND_NASA_CONTRACTORS
        - NASA_CIVIL_SERVANTS
        - OFFICE_ONLY
        - DO_NOT_DISTRIBUTE
    User:
      type: object
      properties:
        ntrsRole:
          $ref: '#/components/schemas/Distribution'
        id:
          type: string
        name:
          type: string
        email:
          type: string
        auid:
          type: string
        uupic:
          type: string
        orcid:
          type: string
        canNotify:
          type: boolean
        nedOrganizationCode:
          type: string
        nedUserType:
          type: string
          enum:
            - OTHER
            - CONTRACTOR_GRANTEE
            - CIVIL
        nedContractNumber:
          type: string
        nedEmployerName:
          type: string
        nedCenterId:
          type: string
        nedEmployerId:
          type: string
        stiAdmin:
          type: boolean
        created:
          type: string
        modified:
          type: string
      required:
        - id
        - name
        - email
        - stiAdmin
    StiType:
      type: string
      enum:
        - STI_TYPE_NONE
        - CONFERENCE_PAPER
        - POSTER
        - PRESENTATION
        - CONFERENCE_PROCEEDINGS
        - CONTRACTOR_OR_GRANTEE_REPORT
        - WHITE_PAPER
        - THESIS_DISSERTATION
        - TECHNICAL_MEMORANDUM
        - CONTRACTOR_REPORT
        - SPECIAL_PUBLICATION
        - CONFERENCE_PUBLICATION
        - TECHNICAL_PUBLICATION
        - TECHNICAL_TRANSLATION
        - PREPRINT
        - ACCEPTED_MANUSCRIPT
        - REPRINT
        - BOOK
        - BOOK_CHAPTER
        - VIDEO
        - CONTRIBUTION_TO_LARGER_WORK
        - OTHER
    Dissemination:
      type: string
      enum:
        - NONE
        - METADATA_ONLY
        - DOCUMENT_AND_METADATA
    SubmissionStatus:
      type: string
      enum:
        - DRAFT
        - IN_PROGRESS
        - APPROVED
        - REJECTED
        - CURATED
        - ABANDONED
    TechnicalReviewType:
      type: string
      enum:
        - NOT_SET
        - TECHNICAL_REVIEW_TYPE_NONE
        - SINGLE_EXPERT
        - NASA_PEER_COMMITTEE
        - EXTERNAL_PEER_COMMITTEE
        - NASA_TECHNICAL_MANAGEMENT
        - PROFESSIONAL_REVIEW
        - OMB_REVIEW
    NedUserType:
      type: string
      enum:
        - OTHER
        - CONTRACTOR_GRANTEE
        - CIVIL
    AuthorMeta:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
        uupic:
          type: string
        orcidId:
          type: string
      required:
        - name
        - email
        - uupic
        - orcidId
    OrganizationMeta:
      type: object
      properties:
        name:
          type: string
        location:
          type: string
      required:
        - name
        - location
    AuthorAffiliationMeta:
      type: object
      properties:
        author:
          $ref: '#/components/schemas/AuthorMeta'
        organization:
          $ref: '#/components/schemas/OrganizationMeta'
      required:
        - author
        - organization
    AuthorAffiliation:
      type: object
      properties:
        userType:
          $ref: '#/components/schemas/NedUserType'
        sequence:
          type: number
        primary:
          type: boolean
        userId:
          type: string
        organizationId:
          type: string
        meta:
          $ref: '#/components/schemas/AuthorAffiliationMeta'
      required:
        - sequence
        - primary
        - meta
    Center:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        code:
          type: string
        created:
          type: string
        modified:
          type: string
      required:
        - id
        - name
        - code
    Publication:
      type: object
      properties:
        publisher:
          type: string
        publicationName:
          type: string
        volume:
          type: string
        issue:
          type: string
        publicationDate:
          type: string
        issuePublicationDate:
          type: string
        doi:
          type: string
        url:
          type: string
        issn:
          type: string
        eissn:
          type: string
        isbn:
          type: string
        eisbn:
          type: string
    MeetingOrganizationMeta:
      type: object
      properties:
        organization:
          $ref: '#/components/schemas/OrganizationMeta'
      required:
        - organization
    MeetingOrganization:
      type: object
      properties:
        organizationId:
          type: string
        meta:
          $ref: '#/components/schemas/MeetingOrganizationMeta'
      required:
        - meta
    Meeting:
      type: object
      properties:
        name:
          type: string
        location:
          type: string
        country:
          type: string
        nctsn:
          type: string
        url:
          type: string
        startDate:
          type: string
        endDate:
          type: string
        sponsors:
          type: array
          items:
            $ref: '#/components/schemas/MeetingOrganization'
      required:
        - name
        - location
        - country
        - nctsn
        - url
        - sponsors
    CopyrightDeterminationTypes:
      type: string
      enum:
        - NO_PERMISSION
        - MAY_INCLUDE_COPYRIGHT_MATERIAL
        - GOV_PERMITTED
        - GOV_PUBLIC_USE_PERMITTED
        - PUBLIC_USE_PERMITTED
        - OTHER
    LicenseType:
      type: string
      enum:
        - 'NO'
        - OPEN_ACCESS
        - CCBY
        - CCBYSA
        - CCBYND
        - CCBYNC
        - CCBYNCSA
        - CCBYNCND
    ThirdPartyContentCondition:
      type: string
      enum:
        - NOT_SET
        - ISSUE_RESOLVED
        - COUNSEL_ADVISED
        - THIRD_PARTY_CONTENT_CONDITION_OTHER
    Copyright:
      type: object
      properties:
        determinationType:
          $ref: '#/components/schemas/CopyrightDeterminationTypes'
        licenseType:
          $ref: '#/components/schemas/LicenseType'
        thirdPartyContentCondition:
          $ref: '#/components/schemas/ThirdPartyContentCondition'
        containsIndication:
          type: boolean
        belongsToPublisher:
          type: boolean
        publisherPermissionOrRightsToDistribute:
          type: boolean
        belongsToContractor:
          type: boolean
        disclosedInvention:
          type: boolean
        disclosedToPublic:
          type: boolean
        ntrNumber:
          type: string
        thirdPartyPermissionsProduced:
          type: boolean
        containsThirdPartyMaterial:
          type: boolean
        thirdPartyLocationComments:
          type: string
        patent:
          type: string
        patentApplication:
          type: string
        approverComments:
          type: string
        thirdPartyContentConditionOther:
          type: string
      required:
        - determinationType
        - licenseType
        - thirdPartyContentCondition
        - ntrNumber
        - thirdPartyLocationComments
        - patent
        - patentApplication
        - approverComments
        - thirdPartyContentConditionOther
    QuarternaryValues:
      type: string
      enum:
        - UNSET
        - 'YES'
        - 'NO'
        - UNSURE
    MunitionsCategory:
      type: object
      properties:
        category:
          type: number
        categoryNotes:
          type: string
      required:
        - category
    ExportControl:
      type: object
      properties:
        itar:
          $ref: '#/components/schemas/QuarternaryValues'
        ear:
          $ref: '#/components/schemas/QuarternaryValues'
        category:
          type: array
          items:
            $ref: '#/components/schemas/MunitionsCategory'
        eccnNumber:
          type: string
      required:
        - itar
        - ear
    CuiCategories:
      type: string
      enum:
        - ADPO
        - AIV
        - ARCHR
        - BUDG
        - CCI
        - CEII
        - CENS
        - CHLD
        - CHRI
        - CONTRACT
        - CRITAN
        - CTI
        - CVI
        - DCNI
        - EXPT
        - FISA
        - FISAB
        - FNC
        - FSEC
        - FUND
        - GENETIC
        - GEO
        - HISTP
        - HLTH
        - ID
        - IFNC
        - INF
        - INTEL
        - INTL
        - INV
        - JURY
        - LDNA
        - LFNC
        - LPROT
        - MFC
        - NNPI
        - NPSR
        - NUC
        - PCII
        - PERS
        - PRIIG
        - PROCURE
        - PROPIN
        - PRVCY
        - SGI
        - SRI
        - SSEL
        - SSI
        - STAT
        - STUD
        - SUB
        - TAX
        - TSCA
        - UCNI
        - WDT
        - WHSTL
        - WI
    CuiCategoriesValue:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/CuiCategories'
    CuiDisseminationControls:
      type: string
      enum:
        - NO_FOREIGN_DISSEMINATION
        - FEDERAL_EMPLOYEES
        - FEDERAL_EMPLOYEES_AND_CONTRACTORS
        - NO_CONTRACTOR_DISSEMINATION
        - DISSEMINATION_LIST_CONTROLLED
        - CERTAIN_NATIONALS
        - DISPLAY_ONLY
        - ATTORNEY_CLIENT
        - ATTORNEY_WORK_PRODUCT
    CuiDisseminationControlsValue:
      type: object
      properties:
        disseminationControl:
          $ref: '#/components/schemas/CuiDisseminationControls'
    Cui:
      type: object
      properties:
        isCui:
          type: boolean
        categories:
          type: array
          items:
            $ref: '#/components/schemas/CuiCategoriesValue'
        disseminationControls:
          type: array
          items:
            $ref: '#/components/schemas/CuiDisseminationControlsValue'
      required:
        - isCui
    FundingTypes:
      type: string
      enum:
        - CONTRACT_GRANT
        - WBS
        - PROJECT
        - TASK
        - WORK_UNIT
        - INTERAGENCY
        - OTHER
    FundingNumber:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/FundingTypes'
        number:
          type: string
      required:
        - type
        - number
    SourceIdentifier:
      type: object
      properties:
        number:
          type: string
        type:
          type: string
        descriptor:
          type: string
      required:
        - number
        - type
        - descriptor
    DocumentType:
      type: string
      enum:
        - OTHER
        - STI
        - ABSTRACT
        - LEGACY_DAA
        - BLANKET_DAA
    DownloadLinks:
      type: object
      properties:
        original:
          type: string
        pdf:
          type: string
        fulltext:
          type: string
      required:
        - original
    Download:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/DocumentType'
        draft:
          type: boolean
        links:
          $ref: '#/components/schemas/DownloadLinks'
        mimetype:
          type: string
        name:
          type: string
        notes:
          type: string
      required:
        - type
        - draft
        - links
        - mimetype
        - name
    RelatedCitationType:
      type: string
      enum:
        - ANALYTIC_PRIMARY
        - ANALYTIC_SUBSIDIARY
        - SEE_ALSO
        - SUPERSEDES
        - SUPERSEDED_BY
        - SUPPLEMENT_TO
        - SUPPLEMENTED_BY
    RelatedCitation:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/RelatedCitationType'
        stiType:
          $ref: '#/components/schemas/StiType'
        disseminated:
          $ref: '#/components/schemas/Dissemination'
        distribution:
          $ref: '#/components/schemas/Distribution'
        status:
          $ref: '#/components/schemas/SubmissionStatus'
        id:
          type: number
        accessionNumber:
          type: string
        title:
          type: string
      required:
        - type
    LegacyMeta:
      type: object
      properties:
        accessionNumber:
          type: string
    Citation:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/SubmissionStatus'
        stiType:
          $ref: '#/components/schemas/StiType'
        technicalReviewType:
          $ref: '#/components/schemas/TechnicalReviewType'
        onlyAbstract:
          type: boolean
        isLessonsLearned:
          type: boolean
        disseminated:
          $ref: '#/components/schemas/Dissemination'
        distribution:
          $ref: '#/components/schemas/Distribution'
        id:
          type: number
        index:
          type: string
        stiTypeDetails:
          type: string
        title:
          type: string
        abstract:
          type: string
        authorAffiliations:
          type: array
          items:
            $ref: '#/components/schemas/AuthorAffiliation'
        center:
          $ref: '#/components/schemas/Center'
        publications:
          type: array
          items:
            $ref: '#/components/schemas/Publication'
        meetings:
          type: array
          items:
            $ref: '#/components/schemas/Meeting'
        distributionDate:
          type: string
        copyright:
          $ref: '#/components/schemas/Copyright'
        exportControl:
          $ref: '#/components/schemas/ExportControl'
        sensitiveInformation:
          enum:
            - UNSET
            - OTHER
            - NONE
            - LIMITED_RIGHTS
            - SBIR
            - TRADE_SECRET
            - PROTECTED_SPACE_ACT
            - SBU
            - STTR
            - PURCHASE_AGREEMENT
            - FEDD
          type: string
        cui:
          $ref: '#/components/schemas/Cui'
        fundingNumbers:
          type: array
          items:
            $ref: '#/components/schemas/FundingNumber'
        otherReportNumbers:
          type: array
          items:
            type: string
        sourceIdentifiers:
          type: array
          items:
            $ref: '#/components/schemas/SourceIdentifier'
        subjectCategories:
          type: array
          items:
            type: string
        keywords:
          type: array
          items:
            type: string
        created:
          type: string
        modified:
          type: string
        submittedDate:
          type: string
        curatedDate:
          type: string
        redistributedDate:
          type: string
        downloadsAvailable:
          type: boolean
        downloads:
          type: array
          items:
            $ref: '#/components/schemas/Download'
        related:
          type: array
          items:
            $ref: '#/components/schemas/RelatedCitation'
        legacyMeta:
          $ref: '#/components/schemas/LegacyMeta'
        _meta:
          type: object
          properties:
            score:
              required: false
              type: number
            highlight:
              required: false
              type: object
      required:
        - status
        - stiType
        - disseminated
        - id
        - stiTypeDetails
        - title
        - abstract
        - authorAffiliations
        - center
        - publications
        - meetings
        - exportControl
        - sensitiveInformation
        - cui
        - fundingNumbers
        - otherReportNumbers
        - sourceIdentifiers
        - subjectCategories
        - keywords
        - downloadsAvailable
        - downloads
        - related
        - _meta
    SearchStats:
      type: object
      properties:
        maxScore:
          type: number
        took:
          type: number
        total:
          type: number
        estimate:
          type: boolean
      required:
        - maxScore
        - took
        - total
        - estimate
    CitationsSearchResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/Citation'
        aggregations:
          type: object
        stats:
          $ref: '#/components/schemas/SearchStats'
      required:
        - results
        - aggregations
        - stats
    CitationsSearchParams:
      type: object
      properties:
        index:
          type: string
        stiType:
          $ref: '#/components/schemas/StiType'
        disseminated:
          $ref: '#/components/schemas/Dissemination'
        distribution:
          $ref: '#/components/schemas/Distribution'
        created:
          type: object
          properties: &ref_2
            gt:
              format: date
              type: string
            gte:
              format: date
              type: string
            lt:
              format: date
              type: string
            lte:
              format: date
              type: string
            format:
              type: string
              description: >-
                Supports predefined and custom formats.


                Reference -
                https://www.elastic.co/guide/en/elasticsearch/reference/7.8/mapping-date-format.html
              default: strict_date_optional_time||epoch_millis
        published:
          type: object
          properties: *ref_2
        modified:
          type: object
          properties: *ref_2
        author:
          type: array
          items:
            type: string
        center:
          type: array
          items:
            type: string
        organization:
          type: array
          items:
            type: string
        subjectCategory:
          type: array
          items:
            type: string
        reportNumber:
          type: array
          items:
            type: string
        fundingNumber:
          type: array
          items:
            type: string
        keyword:
          type: array
          items:
            type: string
        accessionNumber:
          type: array
          items:
            type: string
        page:
          type: object
          properties:
            size:
              type: number
              maximum: 100
            from:
              type: number
        sort:
          type: object
          properties:
            field:
              type: string
            order:
              type: string
              enum:
                - asc
                - desc
        highlight:
          type: boolean
        q:
          type: string
        title:
          type: string
        abstract:
          type: string
        stiTypeDetails:
          type: string
    RedistributedCitation:
      type: object
      properties:
        disseminated:
          $ref: '#/components/schemas/Dissemination'
        distribution:
          $ref: '#/components/schemas/Distribution'
        redistributedDate:
          type: string
        id:
          type: number
      required:
        - disseminated
        - redistributedDate
        - id
    RedistributedCitationsResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/RedistributedCitation'
        stats:
          $ref: '#/components/schemas/SearchStats'
      required:
        - results
        - stats
    CitationsExportResponse:
      type: object
      properties:
        data:
          type: object
