FingerbankIterable:
  type: object
  properties:
    prevCursor:
      description: The cursor to access paginated data for the previous page.
      type: integer
    nextCursor:
      description: The cursor to access paginated data for the next page.
      type: integer

FingerbankPaginatedLimit:
  description: The maximum amount of entries to get. Use `cursor` for pagination.
  type: integer
  enum:
    - 1
    - 5
    - 10
    - 25
    - 50
    - 100
    - 250
    - 500
    - 1000
  default: 1

FingerbankPaginatedCursor:
  description: The cursor pointer to fetch paginated results (from `prevCursor` and `nextCursor`).
  type: integer

FingerbankScope:
  type: string
  enum:
    - all
    - local
    - upstream
  default: local

FingerbankScopeLocalOnly:
  type: string
  enum:
    - local
  default: local

FingerbankAccountInfo:
  type: object
  properties:
    auth_type:
      type: string
    blocked:
      type: boolean
      nullable: true
    created_at:
      type: string
      format: date-time
      example: 1970-01-01 00:00:00
    display_name:
      type: string
    email:
      type: string
    expiration:
      type: string
      format: date-time
      example: 1970-01-01 00:00:00
      nullable: true
    expiration_rfc3339:
      type: string
      format: date-time
      example: 1970-01-01 00:00:00
      nullable: true
    id:
      type: integer
    key:
      type: string
    level:
      type: integer
    max_api_keys:
      type: integer
      nullable: true
    montly_limit:
      type: integer
    montly_requests:
      type: integer
    name:
      type: string
    record_monthly_usage:
      type: boolean
    requests:
      type: integer
    roles:
      type: string
    search_count:
      type: integer
    status:
      $ref: '#/components/schemas/Status'
    timeframed_requests:
      type: integer
    timeframed_search_count:
      type: integer
    updated_at:
      type: string
      format: date-time
      example: 1970-01-01 00:00:00

FingerbankDeviceClasses:
  type: object
  properties:
    items:
      type: array
      items:
        $ref: '#/components/schemas/FingerbankDeviceClass'
    status:
      $ref: '#/components/schemas/Status'

FingerbankDeviceClass:
  type: object
  properties:
    approved:
      type: integer
    created_at:
      type: string
      format: date-time
      example: 1970-01-01 00:00:00
    id:
      type: integer
    inherit:
      type: integer
    mobile:
      type: integer
    name:
      type: string
    parent_id:
      type: integer
    submitter_id:
      type: integer
    tablet:
      type: integer
    updated_at:
      type: string
      format: date-time
      example: 1970-01-01 00:00:00

FingerbankNba:
  type: object
  properties:
    result:
      type: boolean
      nullable: true
    status:
      $ref: '#/components/schemas/Status'

