openapi: 3.0.3

info:
  title: Hule Import — Intermediate Representation (IR) API
  version: "1.0"
  description: >
    Endpoint for importing tasks into Hule from **any** external system by
    submitting a pre-built payload in Hule's canonical Intermediate
    Representation (IR).


    Hule ships native adapters for ClickUp, Trello, Todoist, Notion, Yandex
    Tracker, Kaiten, WEEEK and Hule itself (see
    `POST /workspaces/{workspaceId}/import/{source}`). The Hule adapter reads two
    files: the workspace export (`hule.workspace-export.v1` — people by email,
    structures by reference, matched to the members of the target workspace)
    and the older account export (`hule.account-export.v1` — everything on the
    importer).
    If your system is not on that list, transform your export into the IR schema
    described here and POST it to `POST /workspaces/{workspaceId}/import`.


    ## How the import works

    1. **Spaces** in `folders[]` are created first.

    2. For every distinct (folder, list) pair, Hule collects all `statusName`
       values used by that list's tasks, generates a **status template**, and
       assigns each status to a group (`open` / `in_progress` / `done`) using a
       name heuristic. Ambiguous statuses produce a `status_group_guess` warning.

    3. **Lists** in `lists[]` are created and bound to their status template.

    4. **Tags** — all distinct `tagNames` are looked up by name; missing ones
       are created in the workspace.

    5. **Tasks** are topologically sorted by `parentExternalId` (parents created
       before children) and created. `path` / `depth` / `order` are computed by
       Hule. A task referencing a missing parent is created at the root with an
       `orphan_parent` warning; a parent cycle produces a `cycle` warning.

    6. **Checklist** items become direct subtasks of their task.

    7. **Comments**, **time logs** and **links** land on the tasks that were
       created; one whose task was not created is not created either.

    A task without a `title` is skipped and counted — the preview names how
    many (`notTransferred`), the import says so in an `untitled_skipped`
    warning. `attachments`, `customFields`, `recurrence` and `activity` on a
    task are accepted and counted, and not imported.


    ## People

    Authors are the real people. When the file names anyone by email —
    `assigneeEmail`, `watcherEmails`, `createdByEmail`, a comment's
    `authorEmail`, a time log's `personEmail` — each address is matched to an
    active member of the target workspace. A matched member becomes the
    assignee (and gets edit access to the list), a watcher (read access), the
    author of the task or the comment, the person who spent the time. An
    address that matches nobody hands what it owns to the importer and is
    reported in `unmatchedEmails` — by the preview before anything is created,
    and by the import result. A file that names nobody behaves as it always
    did: every task is on the importer.


    ## Identifier model

    `externalId` fields are **payload-local correlation keys** — they link
    lists to folders and tasks to lists/parents. They are NOT stored by Hule and
    NOT used for deduplication: re-submitting the same payload creates
    duplicates. They only need to be unique within a single request.

servers:
  - url: http://localhost:3000/api
    description: Local development
  - url: https://your-hule-instance.example.com/api
    description: Production (replace with your instance URL)

security:
  - bearerAuth: []

tags:
  - name: Import
    description: Bulk import of folders, lists and tasks.

paths:
  /workspaces/{workspaceId}/import:
    post:
      tags: [Import]
      operationId: importBatch
      summary: Import a batch in the Hule IR format
      description: >
        Accepts a JSON body conforming to the `ImportBatch` schema and creates
        the corresponding folders, lists, status templates, tags and tasks in
        the target workspace. Request body limit is 100 MB; no cap on the number
        of tasks, folders or lists, and the import spends no daily quota.
      parameters:
        - $ref: '#/components/parameters/WorkspaceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportBatch'
            examples:
              minimal:
                summary: Minimal — one folder, one list, one task
                value:
                  folders:
                    - { externalId: "s1", name: "Personal" }
                  lists:
                    - { externalId: "l1", folderExternalId: "s1", name: "Inbox" }
                  tasks:
                    - externalId: "t1"
                      listExternalId: "l1"
                      title: "Try Hule"
              full:
                summary: Full — hierarchy, statuses, tags, checklist, people, comments, time, links
                value:
                  source: "my-internal-tool"
                  folders:
                    - { externalId: "sp-work", name: "Work" }
                  lists:
                    - { externalId: "ls-sprint", folderExternalId: "sp-work", name: "Sprint 12" }
                  tasks:
                    - externalId: "t-epic"
                      listExternalId: "ls-sprint"
                      parentExternalId: null
                      title: "Ship onboarding revamp"
                      description: "Epic-level task"
                      statusName: "in progress"
                      priority: "high"
                      startDate: "2026-05-20T08:00:00.000Z"
                      dueDate: "2026-06-10T00:00:00.000Z"
                      tagNames: ["q3", "frontend"]
                      timeEstimate: 7200
                      checklist: ["Define scope", "Write spec"]
                      assigneeEmail: "anna@example.com"
                      watcherEmails: ["oleg@example.com"]
                      createdByEmail: "oleg@example.com"
                      createdAt: "2026-05-02T09:30:00.000Z"
                    - externalId: "t-child"
                      listExternalId: "ls-sprint"
                      parentExternalId: "t-epic"
                      title: "Build the welcome screen"
                      statusName: "done"
                      priority: "urgent"
                      tagNames: ["frontend"]
                      completedAt: "2026-06-01T17:00:00.000Z"
                      attachments: ["mockup.png"]
                  comments:
                    - taskExternalId: "t-epic"
                      body: "Scope agreed with design."
                      authorEmail: "oleg@example.com"
                      createdAt: "2026-05-03T12:00:00.000Z"
                  timeLogs:
                    - taskExternalId: "t-child"
                      amount: 5400
                      spentAt: "2026-05-28T00:00:00.000Z"
                      personEmail: "anna@example.com"
                  links:
                    - { from: "t-child", to: "t-epic", kind: "blocks" }
      responses:
        "201":
          description: Import completed. Partial failures are reported in `warnings`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportResult'
              example:
                counts:
                  folders: 1
                  lists: 1
                  statusTemplates: 1
                  tags: 2
                  tasks: 2
                  checklistSubtasks: 2
                  comments: 1
                  timeLogs: 1
                  views: 0
                  links: 1
                  taskTemplates: 0
                  automations: 0
                  recurringJobs: 0
                warnings:
                  - kind: tag_created
                    message: 'Tag "frontend" was created in the imported list.'
                unmatchedEmails: []
                missingSections: []
                skippedSections: []
        "400":
          description: Validation failed — the payload does not match the IR schema.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              example:
                error: ValidationError
                issues:
                  - path: ["tasks", "31", "dueDate"]
                    message: "dueDate must be a valid ISO 8601 date string"
                total: 137
        "401":
          description: Missing or invalid bearer token.

  /workspaces/{workspaceId}/import/preview:
    post:
      tags: [Import]
      operationId: previewImportBatch
      summary: Count what a batch would create, without creating anything
      description: >
        Takes the same payload as `POST /import` and writes nothing. Answers the
        counts the import itself will report, plus every row that will not
        survive it: a list whose folder is missing (the list and its tasks are
        dropped), a task whose list is missing (dropped), an orphan parent and a
        parent cycle (kept, created at root). `notTransferred` names, with a
        count, everything the file carries that will not arrive — tasks without
        a title, attachments, custom fields, recurrence, activity, and the
        email addresses that match no member (read, not written). Needs the
        same `workspace.import` permission. Use it to show a person the price of the move before
        anything is created — the numbers are produced by the same code the
        import runs, so they do not drift.
      parameters:
        - $ref: "#/components/parameters/WorkspaceId"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ImportBatch"
      responses:
        "201":
          description: What the batch would create.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ImportPreview"
        "400":
          description: The payload failed validation; nothing was read.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ValidationError"
        "401":
          description: Missing or invalid bearer token.

  /workspaces/{workspaceId}/import/{source}:
    post:
      tags: [Import]
      operationId: importFile
      summary: Import a native export file from a known system
      description: >
        Accepts a `multipart/form-data` upload with a single `file` part and
        runs the source-specific adapter, which converts the export into the
        same IR pipeline. Use this when Hule already supports your system —
        otherwise use the IR endpoint above.
      parameters:
        - $ref: '#/components/parameters/WorkspaceId'
        - name: source
          in: path
          required: true
          description: Source system identifier.
          schema:
            type: string
            enum: [clickup, trello, todoist, notion, yandex-tracker, kaiten, weeek]
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
              required: [file]
      responses:
        "201":
          description: Import completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportResult'

components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Hule access token, obtained from `POST /auth/login`.

  parameters:
    WorkspaceId:
      name: workspaceId
      in: path
      required: true
      description: ID of the workspace to import into.
      schema:
        type: string
        example: "6a06d6067d91c6d0e9fb671d"

  schemas:
    ImportBatch:
      type: object
      required: [folders, lists, tasks]
      additionalProperties: false
      description: >
        Top-level import payload. Any of the three arrays may be empty, but a
        list whose `folderExternalId` does not resolve is skipped, and a task
        whose `listExternalId` does not resolve is skipped.
      properties:
        formatVersion:
          type: string
          enum: ["hule.import-batch.v1"]
          description: >
            Identifies the shape of this payload. Omit it and the batch is read
            as before — that is how the built-in source adapters call this
            route. A file written by hand (or by an assistant, from this schema)
            should carry it, so a file built against an older shape is refused
            instead of being half-read.
          example: "hule.import-batch.v1"
        source:
          type: string
          maxLength: 60
          description: >
            Free-form label identifying the originating system (e.g. "jira",
            "asana", "my-internal-tool"). Tracing only — not validated against
            a fixed list, has no effect on the import.
          example: "jira"
        folders:
          type: array
          items:
            $ref: '#/components/schemas/ImportFolderItem'
        lists:
          type: array
          items:
            $ref: '#/components/schemas/ImportListItem'
        tasks:
          type: array
          items:
            $ref: '#/components/schemas/ImportTaskItem'
        comments:
          type: array
          description: Comments on the tasks of this payload.
          items:
            $ref: '#/components/schemas/ImportCommentItem'
        timeLogs:
          type: array
          description: Time-log entries on the tasks of this payload.
          items:
            $ref: '#/components/schemas/ImportTimeLogItem'
        links:
          type: array
          description: >
            Links between tasks of this payload. Hule picks the matching system
            link type by `kind`.
          items:
            $ref: '#/components/schemas/ImportLinkItem'

    ImportFolderItem:
      type: object
      required: [externalId, name]
      additionalProperties: false
      description: A top-level container. In Hule the hierarchy is Folder → List → Task.
      properties:
        externalId:
          type: string
          minLength: 1
          maxLength: 200
          description: >
            Payload-local identifier. Referenced by `ImportListItem.folderExternalId`.
            Must be unique among folders in this payload.
          example: "folder-personal"
        name:
          type: string
          minLength: 1
          maxLength: 120
          description: Display name of the folder.
          example: "Personal"

    ImportListItem:
      type: object
      required: [externalId, folderExternalId, name]
      additionalProperties: false
      description: A list inside a folder. Holds tasks.
      properties:
        externalId:
          type: string
          minLength: 1
          maxLength: 200
          description: >
            Payload-local identifier. Referenced by `ImportTaskItem.listExternalId`.
            Must be unique among lists in this payload.
          example: "list-inbox"
        folderExternalId:
          type: string
          minLength: 1
          maxLength: 200
          description: >
            `externalId` of the owning folder. Must match one of `folders[].externalId`.
            If it does not resolve, this list (and its tasks) are skipped.
          example: "folder-personal"
        name:
          type: string
          minLength: 1
          maxLength: 120
          description: Display name of the list.
          example: "Inbox"

    ImportTaskItem:
      type: object
      required: [externalId, listExternalId]
      additionalProperties: false
      description: A single task. Tasks may be nested arbitrarily deep via `parentExternalId`.
      properties:
        externalId:
          type: string
          minLength: 1
          maxLength: 200
          description: >
            Payload-local identifier. Referenced by other tasks' `parentExternalId`.
            Must be unique among tasks in this payload.
          example: "task-1042"
        listExternalId:
          type: string
          minLength: 1
          maxLength: 200
          description: >
            `externalId` of the owning list. Must match one of `lists[].externalId`.
            If it does not resolve, this task is skipped.
          example: "list-inbox"
        parentExternalId:
          type: string
          nullable: true
          maxLength: 200
          description: >
            `externalId` of the parent task within this same payload, or `null`
            / omitted for a root task. The parent must also appear in `tasks[]`
            (order is irrelevant — Hule sorts topologically). A reference to a
            missing task produces an `orphan_parent` warning and the task is
            created at the root. A parent cycle produces a `cycle` warning.
          example: "task-1000"
        title:
          type: string
          maxLength: 500
          description: >
            Task title. A task without one (missing, empty or blank) is skipped
            and counted — the preview names how many (`notTransferred`:
            `untitled_tasks`). Its subtasks are created at the root.
          example: "Draft Q3 report"
        description:
          type: string
          maxLength: 20000
          description: Long-form task body.
        statusName:
          type: string
          maxLength: 120
          description: >
            Raw status name from the source system (e.g. "in progress", "done",
            "backlog", "to do"). Hule collects all distinct status names per
            list, builds a status template, and assigns each to a group
            (`open` / `in_progress` / `done`) by heuristic — done/complete/
            closed/resolved/shipped → done; doing/active/review/testing/blocked
            → in_progress; everything else → open. Unrecognised names default
            to `open` with a `status_group_guess` warning. Omit to use the
            list's default open status.
          example: "in progress"
        priority:
          $ref: '#/components/schemas/TaskPriority'
        startDate:
          type: string
          nullable: true
          description: >
            Start date as an ISO-8601 string. Both date (`2026-05-20`) and
            date-time (`2026-05-20T08:00:00.000Z`) forms are accepted. `null`
            or omitted means no start date.
          example: "2026-05-20T08:00:00.000Z"
        dueDate:
          type: string
          nullable: true
          description: >
            Due date as an ISO-8601 string (date or date-time). `null` or
            omitted means no due date.
          example: "2026-06-01T00:00:00.000Z"
        tagNames:
          type: array
          items:
            type: string
            maxLength: 40
          description: >
            Tag names. Tags are local to their list: every distinct name a
            list's tasks use becomes one tag of that list (reported via a
            `tag_created` warning).
          example: ["client-acme", "urgent"]
        timeEstimate:
          type: integer
          minimum: 0
          description: >-
            Estimated effort in SECONDS — an hour is 3600. The value lands on
            the task unchanged, and a task stores seconds. (This said
            milliseconds until H-955; a file written to the old wording
            produced an estimate a thousand times too large.)
          example: 3600
        trackedTime:
          type: integer
          minimum: 0
          description: >
            Tracked / spent time in SECONDS — half an hour is 1800. Omitted on
            a task with `timeLogs`, it is their sum.
          example: 1800
        checklist:
          type: array
          items:
            type: string
          description: >
            Flat list of checklist item texts. Each becomes a direct subtask of
            this task. Use `parentExternalId` instead if you need deeper nesting.
          example: ["Collect figures", "Write summary"]
        assigneeEmail:
          type: string
          format: email
          nullable: true
          description: >
            Assignee by email (see «People»). No address, or one that matches
            nobody, puts the task on the importer.
          example: "anna@example.com"
        watcherEmails:
          type: array
          items:
            type: string
            format: email
          description: Watchers by email. Unmatched addresses are dropped and reported.
          example: ["oleg@example.com"]
        createdByEmail:
          type: string
          format: email
          nullable: true
          description: Author of the task by email; otherwise the importer.
          example: "oleg@example.com"
        createdAt:
          type: string
          nullable: true
          description: When the task was created in the source, ISO-8601. Omitted means the moment of import.
          example: "2026-03-02T09:30:00.000Z"
        completedAt:
          type: string
          nullable: true
          description: When the task was completed, ISO-8601. Kept only when the task lands in a done status.
          example: "2026-03-20T17:00:00.000Z"
        attachments:
          description: >
            Accepted, counted, NOT imported: files attached to the task. Any
            shape. The preview names how many tasks carry them.
        customFields:
          description: Accepted, counted, NOT imported — the source's own fields. Any shape.
        recurrence:
          description: Accepted, counted, NOT imported — a recurrence rule. Any shape.
        activity:
          description: Accepted, counted, NOT imported — the task's history. Any shape.

    ImportCommentItem:
      type: object
      required: [taskExternalId, body]
      additionalProperties: false
      description: A comment on a task of this payload.
      properties:
        taskExternalId:
          type: string
          minLength: 1
          maxLength: 200
          description: "`externalId` of the task. A comment of a task that is not created is not created either."
          example: "task-1042"
        body:
          type: string
          maxLength: 20000
          description: Comment text, plain. An empty one is skipped.
          example: "Sent the draft to finance."
        authorEmail:
          type: string
          format: email
          nullable: true
          description: Author by email (see «People»); otherwise the importer.
          example: "oleg@example.com"
        createdAt:
          type: string
          nullable: true
          description: When the comment was written, ISO-8601. Omitted means the moment of import.
          example: "2026-03-05T12:00:00.000Z"

    ImportTimeLogItem:
      type: object
      required: [taskExternalId, amount]
      additionalProperties: false
      description: Time spent on a task of this payload.
      properties:
        taskExternalId:
          type: string
          minLength: 1
          maxLength: 200
          description: "`externalId` of the task the time was spent on."
          example: "task-1042"
        amount:
          type: integer
          minimum: 1
          description: Time spent, in SECONDS (an hour is 3600).
          example: 5400
        spentAt:
          type: string
          nullable: true
          description: When the time was spent, ISO-8601. Omitted means the moment of import.
          example: "2026-03-04T00:00:00.000Z"
        note:
          type: string
          maxLength: 2000
          description: What the time was spent on.
        personEmail:
          type: string
          format: email
          nullable: true
          description: Who spent it, by email (see «People»); otherwise the importer.
          example: "anna@example.com"

    ImportLinkItem:
      type: object
      required: [from, to, kind]
      additionalProperties: false
      description: >
        A link between two tasks of this payload. A link to itself, a repeated
        one, or one whose task is not created is skipped.
      properties:
        from:
          type: string
          minLength: 1
          maxLength: 200
          description: "`externalId` of the task the link starts from (for `blocks` — the one that blocks)."
          example: "task-1042"
        to:
          type: string
          minLength: 1
          maxLength: 200
          description: "`externalId` of the task the link points to."
          example: "task-1050"
        kind:
          type: string
          enum: [blocks, relates, duplicates]
          description: One of Hule's system link types.
          example: "blocks"

    TaskPriority:
      type: string
      enum: [none, low, normal, high, urgent]
      description: >
        Hule task priority. Map the source system's priority onto these five
        values. Omit (or use `none`) when there is no priority.
      example: "high"

    ImportResult:
      type: object
      required: [counts, warnings, unmatchedEmails, missingSections, skippedSections]
      properties:
        counts:
          $ref: '#/components/schemas/ImportCounts'
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/ImportWarning'
        unmatchedEmails:
          type: array
          items:
            type: string
          description: >
            Emails the file names that match no active member of the target
            workspace, or two different members. Their comments and time logs
            were attributed to the importer; their tasks went to the importer
            (an `ImportBatch` file) or were left unassigned (a Hule workspace
            export). Empty for a file that names nobody.
        missingSections:
          type: array
          items:
            type: string
          description: >
            Hule workspace export only: sections left out when the file was
            exported (e.g. `comments`, `archived`) — nothing of them was imported.
        skippedSections:
          type: array
          items:
            type: string
          description: >
            Hule workspace export only: sections the file carries that the import
            does not bring in yet (`taskTemplates`, `automations`, `recurringJobs`).

    ImportCounts:
      type: object
      required: [folders, lists, statusTemplates, tags, tasks, checklistSubtasks, comments, timeLogs, views, links]
      properties:
        folders:
          type: integer
          description: Number of folders created.
        lists:
          type: integer
          description: Number of lists created.
        statusTemplates:
          type: integer
          description: Number of status templates generated (one per list).
        tags:
          type: integer
          description: Number of tags created — one per distinct name per created list (tags are local to their list).
        tasks:
          type: integer
          description: Number of tasks created, subtasks included (excludes checklist subtasks).
        checklistSubtasks:
          type: integer
          description: Number of subtasks created from checklist items.
        comments:
          type: integer
          description: Comments created.
        timeLogs:
          type: integer
          description: Time-log entries created.
        views:
          type: integer
          description: Views created (native Hule files only).
        links:
          type: integer
          description: Task relations created.

    ImportPreview:
      type: object
      required: [counts, warnings, notTransferred, unmatchedEmails]
      description: What a batch would create — nothing is written.
      properties:
        counts:
          type: object
          required: [folders, lists, tasks, checklistSubtasks, comments, tags, timeLogs, links]
          description: >
            Counted by the rules the import writes by, so they are the numbers
            the import then reports: tags are the distinct names per created
            list, comments and time logs those whose task is created, links
            those whose two ends are.
          properties:
            folders: { type: integer }
            lists: { type: integer }
            tasks: { type: integer }
            checklistSubtasks: { type: integer }
            comments: { type: integer }
            tags: { type: integer }
            timeLogs: { type: integer }
            links: { type: integer }
        warnings:
          type: array
          items:
            $ref: "#/components/schemas/ImportWarning"
        notTransferred:
          type: array
          description: Everything that will not arrive, with a count. Only the kinds that occur.
          items:
            $ref: "#/components/schemas/ImportNotTransferred"
        unmatchedEmails:
          type: array
          items:
            type: string
          description: The addresses behind the `unmatched_emails` count.

    ImportNotTransferred:
      type: object
      required: [kind, count]
      properties:
        kind:
          type: string
          enum:
            - untitled_tasks
            - attachments
            - custom_fields
            - recurrence
            - activity
            - unmatched_emails
            - lists_without_folder
            - tasks_without_list
            - parent_not_found
          description: >
            `untitled_tasks` — tasks skipped for having no title. `attachments`,
            `custom_fields`, `recurrence`, `activity` — tasks that carry it.
            `unmatched_emails` — addresses that match no member; what they own
            goes to the importer. `lists_without_folder` — lists whose
            `folderExternalId` names no folder in the file; they are not
            created. `tasks_without_list` — tasks not created because their
            list is missing or was dropped. `parent_not_found` — tasks whose
            parent is missing or whose parent chain loops; they are created at
            the top level.
        count:
          type: integer

    ImportWarning:
      type: object
      required: [kind, message]
      properties:
        kind:
          type: string
          enum:
            - status_group_guess
            - tag_created
            - cycle
            - orphan_parent
            - unknown_list
            - task_failed
            - comments_failed
            - time_logs_failed
            - orphan_folder
            - status_missing
            - links_failed
            - date_approximate
            - date_unparsed
            - recurrence_dropped
            - content_skipped
            - automation_disabled
            - recurring_skipped
            - filter_dropped
            - settings_failed
            - untitled_skipped
            - priority_unrecognized
            - archived_skipped
            - unplaced_skipped
            - columns_unread
          description: >
            `status_group_guess` — a status name did not match any heuristic
            and was placed in `open`; review the generated status template.
            `tag_created` — a new tag was added to the workspace.
            `orphan_parent` — `parentExternalId` referenced a missing task; the
            task was created at the root.
            `cycle` — a task is part of a parent cycle; it was created at the
            root.
            `unknown_list` — a task named a list the file does not hold; it was
            not imported.
            `task_failed` — task creation threw; see `message`.
            `comments_failed` / `time_logs_failed` / `links_failed` — that part
            could not be written; the tasks themselves were.
            `orphan_folder` — a folder's parent was missing or in a cycle; it
            was created at the top level. Also a list whose folder is missing:
            neither it nor its tasks were created.
            `status_missing` — tasks named a status their list's template does
            not hold; they were placed in its default open status.
            `untitled_skipped` — tasks without a title were skipped.
            The kinds below come from reading a vendor's file, or from a
            workspace export's settings; a hand-made v1 file does not raise
            them. `date_approximate` — relative dates were restored from an
            anchor day. `date_unparsed` — dates that could not be read; the
            task came in without one. `recurrence_dropped` — repeating tasks
            came in as one-off. `content_skipped` — things the file carries
            that the import leaves out (notes, sections, reminders, deadlines
            that gave way, colour-only labels). `priority_unrecognized` — a
            priority value the import does not know; the task came in without
            one. `archived_skipped` — archived tasks and lists. `unplaced_skipped`
            — rows that name no list to land in. `columns_unread` — columns of
            a CSV file that hold data and are read as nothing.
            `automation_disabled` / `recurring_skipped` / `filter_dropped` /
            `settings_failed` — a team's settings that came in switched off,
            in part, or not at all.
        message:
          type: string
          description: >
            The warning in English, numbers and names included — what a client
            shows for a kind it does not know.
        params:
          type: object
          additionalProperties:
            oneOf:
              - type: string
              - type: number
          description: >
            The values `message` is built from — counts, names, an example
            value — so a client can say the same in its reader's language.
            `variant` picks the sentence when one kind has several.

    ValidationError:
      type: object
      required: [error, issues]
      description: >
        Returned with HTTP 400 when the payload fails schema validation. Nothing
        is created.
      properties:
        error:
          type: string
          enum: [ValidationError]
        issues:
          type: array
          items:
            type: object
            properties:
              path:
                type: array
                items:
                  type: string
                description: Path to the offending field, e.g. ["tasks", "3", "dueDate"].
              message:
                type: string
                description: What is wrong, in English.
              constraint:
                type: string
                description: >
                  The rule that refused the value — `isNotEmpty`, `isString`,
                  `isDateString`, `isEmail`, `isIn`, `maxLength`… Stable, unlike
                  the message: build your own wording from it and the path.
        total:
          type: integer
          description: >
            Import routes only: how many tasks the refused body holds — for
            «4 errors in 137 tasks».
