{
  "openapi": "3.1.0",
  "info": {
    "title": "Wilo Public API",
    "version": "1.5.2",
    "description": "Generic personal automation. Ownership comes exclusively from the bearer key. No client-supplied account ID. API keys cannot issue keys or change account/security settings."
  },
  "servers": [
    {
      "url": "https://wilo-free-push.adam2002hosny.workers.dev/api/v1",
      "description": "Wilo Public API production endpoint"
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "paths": {
    "/courses": {
      "get": {
        "operationId": "listCourses",
        "description": "Requires courses:read. ID-sorted cursor pagination.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CourseRecord"
                          },
                          "maxItems": 100
                        },
                        "nextCursor": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "items",
                        "nextCursor"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createCourses",
        "description": "Requires courses:write. Returns only ID/revision, independently of read scope. Duplicate returns created:false.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/CourseValues"
                      },
                      {
                        "required": [
                          "name"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "values"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created or replayed create",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "200": {
            "description": "Existing duplicate",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/courses/{id}": {
      "patch": {
        "operationId": "updateCourses",
        "description": "Requires courses:write. expectedRevision from list is mandatory. Stale revision fails without changing data. Linked reminder records require UI.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "$ref": "#/components/schemas/CourseValues"
                  },
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "values",
                  "expectedRevision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/tasks": {
      "get": {
        "operationId": "listTasks",
        "description": "Requires tasks:read. ID-sorted cursor pagination.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          },
          {
            "name": "courseId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/TaskRecord"
                          },
                          "maxItems": 100
                        },
                        "nextCursor": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "items",
                        "nextCursor"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createTasks",
        "description": "Requires tasks:write. Returns only ID/revision, independently of read scope. Duplicate returns created:false.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/TaskValues"
                      },
                      {
                        "required": [
                          "courseId",
                          "title"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "values"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created or replayed create",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "200": {
            "description": "Existing duplicate",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/tasks/{id}": {
      "patch": {
        "operationId": "updateTasks",
        "description": "Requires tasks:write. expectedRevision from list is mandatory. Stale revision fails without changing data. Linked reminder records require UI.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "$ref": "#/components/schemas/TaskValues"
                  },
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "values",
                  "expectedRevision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/schedule": {
      "get": {
        "operationId": "listSchedule",
        "description": "Requires schedule:read. ID-sorted cursor pagination.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          },
          {
            "name": "courseId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ClassRecord"
                          },
                          "maxItems": 100
                        },
                        "nextCursor": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "items",
                        "nextCursor"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createSchedule",
        "description": "Requires schedule:write. Returns only ID/revision, independently of read scope. Duplicate returns created:false.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ClassValues"
                      },
                      {
                        "required": [
                          "courseId",
                          "day",
                          "start",
                          "end"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "values"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created or replayed create",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "200": {
            "description": "Existing duplicate",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/schedule/{id}": {
      "patch": {
        "operationId": "updateSchedule",
        "description": "Requires schedule:write. expectedRevision from list is mandatory. Stale revision fails without changing data. Linked reminder records require UI.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "$ref": "#/components/schemas/ClassValues"
                  },
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "values",
                  "expectedRevision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/projects": {
      "get": {
        "operationId": "listProjects",
        "description": "Requires projects:read. ID-sorted cursor pagination. Personal cards only: internal university reminder backing records linked by task.reminderProjectId are excluded. University assignments remain available through the task/course operations; their reminder backing records and schedules are preserved.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ProjectRecord"
                          },
                          "maxItems": 100
                        },
                        "nextCursor": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "items",
                        "nextCursor"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createProjects",
        "description": "Requires projects:write. Returns only ID/revision, independently of read scope. Duplicate returns created:false.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ProjectValues"
                      },
                      {
                        "required": [
                          "name"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "values"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created or replayed create",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "200": {
            "description": "Existing duplicate",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/projects/{id}": {
      "patch": {
        "operationId": "updateProjects",
        "description": "Requires projects:write. expectedRevision from list is mandatory. Stale revision fails without changing data. Linked reminder records require UI.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "$ref": "#/components/schemas/ProjectValues"
                  },
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "values",
                  "expectedRevision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/sections": {
      "get": {
        "operationId": "listSections",
        "description": "Requires sections:read. ID-sorted cursor pagination.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/SectionRecord"
                          },
                          "maxItems": 100
                        },
                        "nextCursor": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "items",
                        "nextCursor"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createSections",
        "description": "Requires sections:write. Returns only ID/revision, independently of read scope. Duplicate returns created:false.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/SectionValues"
                      },
                      {
                        "required": [
                          "name"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "values"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created or replayed create",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "200": {
            "description": "Existing duplicate",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/sections/{id}": {
      "patch": {
        "operationId": "updateSections",
        "description": "Requires sections:write. expectedRevision from list is mandatory. Stale revision fails without changing data. Linked reminder records require UI.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "values": {
                    "$ref": "#/components/schemas/SectionValues"
                  },
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "values",
                  "expectedRevision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/boards/personal": {
      "get": {
        "operationId": "getPersonalBoard",
        "description": "Requires boards:read. Empty board has revision0.",
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "object",
                      "properties": {
                        "state": {
                          "$ref": "#/components/schemas/Board"
                        },
                        "revision": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "state",
                        "revision"
                      ],
                      "additionalProperties": false
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "replacePersonalBoard",
        "description": "Requires boards:write. Existing board parser validates geometry, references and cycles. Project references belong to key owner. Payload limit150000 bytes.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "state": {
                    "$ref": "#/components/schemas/Board"
                  },
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "state",
                  "expectedRevision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/MutationResult"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/reminders/{projectId}": {
      "parameters": [
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{20}$"
          }
        }
      ],
      "get": {
        "operationId": "getCardReminder",
        "description": "Requires reminders:read. Read an eligible owned personal card’s settings, effective schedule, version, account delivery switch and native queue/provider state. Works for all resource types, including completed cards when explicitly scheduled; archived/trashed cards are unavailable. No device subscriptions are returned. Provider acceptance never verifies phone arrival. Since1.5.1, source distinguishes account-default, legacy-explicit and independent. The virtual legacy entry includes old time-only/lead/weekly/import settings even with independent records. Account fallback remains visible as superseded when not scheduled. scheduledAt is the requested instant; effectiveAt applies quiet hours, and nextScheduledAt is null when cancelled, superseded or terminal. Existing event identity and delivery claims prevent legacy projection from duplicating dispatch.",
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/CardReminderState"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "setCardReminder",
        "description": "Requires reminders:write. Create or update a reminder on any eligible owned personal card. schedule supports relative calendar days/weeks at localTime, precise minute/hour offsets, or an absolute RFC3339 instant, with IANA timeZone. Exact-time reminders need no card due date. Explicit schedules override automatic/global timing and freeze defaults, but respect account enabled, per-card disabled and account quiet hours. Supply expectedSettingsVersion from GET and Idempotency-Key for schedule, leadMinutes, remindAt changes; stale versions return409. Repeat the same key/body safely; replay returns current state without overwriting later manual edits. schedule:null returns to account defaults. The legacy disabled/weekly/time body remains compatible and preserves explicit settings if omitted. Cancelling prevents future dispatch but cannot recall an already accepted Push. Resolution is the existing minute cron plus provider/device delay, not exact-to-second. Compatibility endpoint: modifies only the legacy reminder settings, not independent records. disabled is still the card-wide switch. Prefer POST /projects/{projectId}/reminders to add another reminder. Since1.5.1, source distinguishes account-default, legacy-explicit and independent. The virtual legacy entry includes old time-only/lead/weekly/import settings even with independent records. Account fallback remains visible as superseded when not scheduled. scheduledAt is the requested instant; effectiveAt applies quiet hours, and nextScheduledAt is null when cancelled, superseded or terminal. Existing event identity and delivery claims prevent legacy projection from duplicating dispatch.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Reminder"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/CardReminderState"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "reminder-settings-conflict, reminder-time-in-past or idempotency-key-reused. Reread GET; never overwrite manual edits blindly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            },
            "description": "Required for schedule, leadMinutes or remindAt configuration; use a stable key for retries."
          }
        ]
      },
      "delete": {
        "operationId": "cancelCardReminder",
        "description": "Requires reminders:write. Cancel an owned card reminder with If-Match=settingsVersion from GET and a stable Idempotency-Key. Retains schedule/history for display but sets disabled:true; queued workers recheck it. Cannot recall a previously accepted notification. Compatibility endpoint: disables reminders for the entire card. To cancel only the legacy reminder use DELETE /projects/{projectId}/reminders/legacy with expectedSettingsVersion. Since1.5.1, source distinguishes account-default, legacy-explicit and independent. The virtual legacy entry includes old time-only/lead/weekly/import settings even with independent records. Account fallback remains visible as superseded when not scheduled. scheduledAt is the requested instant; effectiveAt applies quiet hours, and nextScheduledAt is null when cancelled, superseded or terminal. Existing event identity and delivery claims prevent legacy projection from duplicating dispatch.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Current settingsVersion from GET, raw hex or quoted."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/CardReminderState"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "reminder-settings-conflict, reminder-time-in-past or idempotency-key-reused. Reread GET; never overwrite manual edits blindly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/tasks/{id}/reminder": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          }
        }
      ],
      "get": {
        "operationId": "getTaskReminder",
        "description": "Requires tasks:read and reminders:read. Read back assignment linkage and native schedule state without creating or changing anything. verified means state verification; scheduled:true is separate and never means push delivery.",
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Stored link/resource conflict",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "type": "object",
                      "required": [
                        "result",
                        "requestId"
                      ],
                      "properties": {
                        "result": {
                          "$ref": "#/components/schemas/TaskReminderStatus"
                        },
                        "requestId": {
                          "type": "string"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Read-back state (including unlinked, disabled or awaiting-device)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskReminderStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Setup is durably pending recovery",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskReminderStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "linkTaskReminder",
        "description": "Requires courses:read, tasks:read, tasks:write, reminders:read and reminders:write. Ensure an existing assignment has one native reminder card. Uses existing account timezone, lead time, notification opt-in and device subscriptions. A new automatic or legacy lead-based link requires enabled due reminders and a future unfinished task. An explicit schedule requires account notifications enabled; an absolute schedule also supports tasks without deadlines and completed eligible tasks. Preserves existing/manual linked cards and settings. expectedRevision is checked for a new link; repeated calls never create another card. Receipt and Firestore relation are atomic; D1/native scope recovery is durable. Retry the same body and Idempotency-Key, or poll GET after202. No API consumer receives Firebase credentials. Optional leadMinutes applies only to a NEW linked reminder card:4320=72 hours and5760=96 hours. Omitting it preserves account defaults. A reminder time at or before now is rejected. Repeated links never replace a manual override; reminder-settings-conflict means read the existing card reminder and use its version-checked PUT deliberately. Alternatively supply schedule (mutually exclusive with leadMinutes) for the same universal modes. Absolute schedule allows tasks without due dates. After linking, manage the card through GET/PUT/DELETE /reminders/{projectId}. New explicit schedules do not change global defaults.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "expectedRevision"
                ],
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "leadMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 150119987578
                  },
                  "schedule": {
                    "$ref": "#/components/schemas/CardSchedule"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Stale revision, incompatible/shared link, disabled notification preferences, completed/past task, idempotency key reused, or manual changes blocking pending recovery. Existing data is not overwritten. Also reminder-time-in-past and reminder-settings-conflict.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "type": "object",
                      "required": [
                        "result",
                        "requestId"
                      ],
                      "properties": {
                        "result": {
                          "$ref": "#/components/schemas/TaskReminderStatus"
                        },
                        "requestId": {
                          "type": "string"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Read-back result; inspect status, verified and scheduled instead of assuming success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskReminderStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Partial setup: paused card and durable recovery intent; not success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskReminderStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/tasks/{id}/notification": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          }
        }
      ],
      "get": {
        "operationId": "getTaskNotification",
        "description": "Requires tasks:read and reminders:read. Read the account-owned assignment notification state. handsetDelivery is always not-confirmed; providerAccepted counts upstream Push service acknowledgements, not phone receipts.",
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "revision-conflict, idempotency-key-reused, notifications-disabled, notification-device-unavailable, task-not-notifiable or invalid-stored-record. No arbitrary client messages are accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Read-only status, or the existing terminal event; provider-accepted is not handset delivery.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskNotificationStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Durably accepted, pending native queue/quiet-hours recovery; poll GET. queuedAt:null does not claim queue acknowledgement.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskNotificationStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "requestTaskNotification",
        "description": "Requires courses:read, tasks:read and reminders:write. Request one task-added Push event per owner/task using trusted Wilo task content and only that owner’s registered devices. Respects notification opt-in, quiet hours and hideContent. No free-form message, UID, subscription or destination is accepted. Required Idempotency-Key is scoped to this operation/owner; the same key with different input returns409. A different key still cannot resend the same task event. Keep a stable key; at most32 keys per task. First request checks expectedRevision. Native queue/cron resume partial failures. Unknown provider/network outcomes are not retried automatically (at-most-once attempt/device), avoiding duplicate notifications. Provider acceptance is not proof of display. No new notification opt-in/device enrollment occurs. Optional bypassQuietHours=true requires that API key quiet-hours override permission; otherwise 403 quiet-hours-override-forbidden. False/omitted respects quiet hours. New keys default off. Owner can change the existing key via authenticated account Settings, never this API. Permission is checked again at dispatch; revocation/expiry/deletion restores quiet hours for pending work. To upgrade a deferred event, use an authorized key and a NEW Idempotency-Key with bypassQuietHours=true; the same pending logical event is promoted, not duplicated. Changing a body under an existing key remains 409. Completed events are never resent. Processing events are not promoted mid-dispatch; poll status before retry. Scheduled reminders are unaffected.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "expectedRevision"
                ],
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "bypassQuietHours": {
                    "type": "boolean",
                    "default": false,
                    "description": "Explicit immediate-event quiet-hours bypass. Requires the additional owner-managed API key permission and all normal scopes. Does not bypass account opt-out, card exclusion or device withdrawal."
                  }
                }
              },
              "examples": {
                "respectQuietHours": {
                  "value": {
                    "expectedRevision": 3,
                    "bypassQuietHours": false
                  }
                },
                "ownerGrantedOverride": {
                  "value": {
                    "expectedRevision": 3,
                    "bypassQuietHours": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope, or quiet-hours-override-forbidden when an explicit bypass lacks the owner-granted key permission. No notification dispatched.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "revision-conflict, idempotency-key-reused, notifications-disabled, notification-device-unavailable, task-not-notifiable or invalid-stored-record. No arbitrary client messages are accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Read-only status, or the existing terminal event; provider-accepted is not handset delivery.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskNotificationStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Durably accepted, pending native queue/quiet-hours recovery; poll GET. queuedAt:null does not claim queue acknowledgement.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskNotificationStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/projects/{id}/notification": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          }
        }
      ],
      "get": {
        "operationId": "getProjectNotification",
        "description": "Requires projects:read and reminders:read. Read the account-owned card notification state. handsetDelivery is always not-confirmed; providerAccepted counts upstream Push service acknowledgements, not phone receipts.",
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "revision-conflict, idempotency-key-reused, notifications-disabled, notification-device-unavailable, task-not-notifiable or invalid-stored-record. No arbitrary client messages are accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Read-only status, or the existing terminal event; provider-accepted is not handset delivery.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskNotificationStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Durably accepted, pending native queue/quiet-hours recovery; poll GET. queuedAt:null does not claim queue acknowledgement.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskNotificationStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "requestProjectNotification",
        "description": "Requires projects:read and reminders:write. Request one card notification Push event per owner/card using trusted Wilo card content and only that owner’s registered devices. Respects notification opt-in, quiet hours and hideContent. No free-form message, UID, subscription or destination is accepted. Required Idempotency-Key is scoped to this operation/owner; the same key with different input returns409. A different key still cannot resend the same card event. Keep a stable key; at most32 keys per card. First request checks expectedRevision. Native queue/cron resume partial failures. Unknown provider/network outcomes are not retried automatically (at-most-once attempt/device), avoiding duplicate notifications. Provider acceptance is not proof of display. No new notification opt-in/device enrollment occurs. Optional bypassQuietHours=true requires that API key quiet-hours override permission; otherwise 403 quiet-hours-override-forbidden. False/omitted respects quiet hours. New keys default off. Owner can change the existing key via authenticated account Settings, never this API. Permission is checked again at dispatch; revocation/expiry/deletion restores quiet hours for pending work. To upgrade a deferred event, use an authorized key and a NEW Idempotency-Key with bypassQuietHours=true; the same pending logical event is promoted, not duplicated. Changing a body under an existing key remains 409. Completed events are never resent. Processing events are not promoted mid-dispatch; poll status before retry. Scheduled reminders are unaffected.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "expectedRevision"
                ],
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "bypassQuietHours": {
                    "type": "boolean",
                    "default": false,
                    "description": "Explicit immediate-event quiet-hours bypass. Requires the additional owner-managed API key permission and all normal scopes. Does not bypass account opt-out, card exclusion or device withdrawal."
                  }
                }
              },
              "examples": {
                "respectQuietHours": {
                  "value": {
                    "expectedRevision": 3,
                    "bypassQuietHours": false
                  }
                },
                "ownerGrantedOverride": {
                  "value": {
                    "expectedRevision": 3,
                    "bypassQuietHours": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope, or quiet-hours-override-forbidden when an explicit bypass lacks the owner-granted key permission. No notification dispatched.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "revision-conflict, idempotency-key-reused, notifications-disabled, notification-device-unavailable, task-not-notifiable or invalid-stored-record. No arbitrary client messages are accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Read-only status, or the existing terminal event; provider-accepted is not handset delivery.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskNotificationStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Durably accepted, pending native queue/quiet-hours recovery; poll GET. queuedAt:null does not claim queue acknowledgement.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskNotificationStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectId}/reminders": {
      "parameters": [
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{20}$"
          }
        }
      ],
      "get": {
        "operationId": "listCardReminders",
        "description": "Requires reminders:read. Own personal card only; all eligible card types. Each independent reminder has a stable ID and numeric revision. Quiet hours, account and card opt-out apply. Provider acceptance is not phone delivery. Relative schedules follow deadline edits until dispatch starts; absolute times remain fixed. Cancelled/sent records are not rearmed automatically. Explicit editing creates a new revision. Repeated Idempotency-Key/body returns current persisted state without duplicate writes. Legacy record id=legacy uses expectedSettingsVersion instead of expectedRevision. Cancellation cannot recall an in-flight or accepted Push. List includes cancelled records; no pagination, maximum100 independent records per card. Since1.5.1, source distinguishes account-default, legacy-explicit and independent. The virtual legacy entry includes old time-only/lead/weekly/import settings even with independent records. Account fallback remains visible as superseded when not scheduled. scheduledAt is the requested instant; effectiveAt applies quiet hours, and nextScheduledAt is null when cancelled, superseded or terminal. Existing event identity and delivery claims prevent legacy projection from duplicating dispatch.",
        "x-required-scopes": [
          "reminders:read"
        ],
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute (Retry-After:60), or reminder-limit: at most100 independent records per card including cancelled records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/ReminderCollection"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createCardReminder",
        "description": "Requires reminders:write. Own personal card only; all eligible card types. Each independent reminder has a stable ID and numeric revision. Quiet hours, account and card opt-out apply. Provider acceptance is not phone delivery. Relative schedules follow deadline edits until dispatch starts; absolute times remain fixed. Cancelled/sent records are not rearmed automatically. Explicit editing creates a new revision. Repeated Idempotency-Key/body returns current persisted state without duplicate writes. Legacy record id=legacy uses expectedSettingsVersion instead of expectedRevision. Cancellation cannot recall an in-flight or accepted Push. List includes cancelled records; no pagination, maximum100 independent records per card. Since1.5.1, source distinguishes account-default, legacy-explicit and independent. The virtual legacy entry includes old time-only/lead/weekly/import settings even with independent records. Account fallback remains visible as superseded when not scheduled. scheduledAt is the requested instant; effectiveAt applies quiet hours, and nextScheduledAt is null when cancelled, superseded or terminal. Existing event identity and delivery claims prevent legacy projection from duplicating dispatch.",
        "x-required-scopes": [
          "reminders:write"
        ],
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute (Retry-After:60), or reminder-limit: at most100 independent records per card including cancelled records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/IndependentReminder"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateIndependentReminder"
              }
            }
          }
        }
      }
    },
    "/projects/{projectId}/reminders/{reminderId}": {
      "parameters": [
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{20}$"
          }
        },
        {
          "in": "path",
          "name": "reminderId",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^(legacy|r_[a-f0-9]{24})$"
          }
        }
      ],
      "get": {
        "operationId": "getIndependentReminder",
        "description": "Requires reminders:read. Own personal card only; all eligible card types. Each independent reminder has a stable ID and numeric revision. Quiet hours, account and card opt-out apply. Provider acceptance is not phone delivery. Relative schedules follow deadline edits until dispatch starts; absolute times remain fixed. Cancelled/sent records are not rearmed automatically. Explicit editing creates a new revision. Repeated Idempotency-Key/body returns current persisted state without duplicate writes. Legacy record id=legacy uses expectedSettingsVersion instead of expectedRevision. Cancellation cannot recall an in-flight or accepted Push. List includes cancelled records; no pagination, maximum100 independent records per card. Since1.5.1, source distinguishes account-default, legacy-explicit and independent. The virtual legacy entry includes old time-only/lead/weekly/import settings even with independent records. Account fallback remains visible as superseded when not scheduled. scheduledAt is the requested instant; effectiveAt applies quiet hours, and nextScheduledAt is null when cancelled, superseded or terminal. Existing event identity and delivery claims prevent legacy projection from duplicating dispatch.",
        "x-required-scopes": [
          "reminders:read"
        ],
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute (Retry-After:60), or reminder-limit: at most100 independent records per card including cancelled records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/IndependentReminder"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateIndependentReminder",
        "description": "Requires reminders:write. Own personal card only; all eligible card types. Each independent reminder has a stable ID and numeric revision. Quiet hours, account and card opt-out apply. Provider acceptance is not phone delivery. Relative schedules follow deadline edits until dispatch starts; absolute times remain fixed. Cancelled/sent records are not rearmed automatically. Explicit editing creates a new revision. Repeated Idempotency-Key/body returns current persisted state without duplicate writes. Legacy record id=legacy uses expectedSettingsVersion instead of expectedRevision. Cancellation cannot recall an in-flight or accepted Push. List includes cancelled records; no pagination, maximum100 independent records per card. Since1.5.1, source distinguishes account-default, legacy-explicit and independent. The virtual legacy entry includes old time-only/lead/weekly/import settings even with independent records. Account fallback remains visible as superseded when not scheduled. scheduledAt is the requested instant; effectiveAt applies quiet hours, and nextScheduledAt is null when cancelled, superseded or terminal. Existing event identity and delivery claims prevent legacy projection from duplicating dispatch.",
        "x-required-scopes": [
          "reminders:write"
        ],
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute (Retry-After:60), or reminder-limit: at most100 independent records per card including cancelled records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/IndependentReminder"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/UpdateIndependentReminder"
                  },
                  {
                    "$ref": "#/components/schemas/UpdateLegacyReminder"
                  }
                ]
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "cancelIndependentReminder",
        "description": "Requires reminders:write. Own personal card only; all eligible card types. Each independent reminder has a stable ID and numeric revision. Quiet hours, account and card opt-out apply. Provider acceptance is not phone delivery. Relative schedules follow deadline edits until dispatch starts; absolute times remain fixed. Cancelled/sent records are not rearmed automatically. Explicit editing creates a new revision. Repeated Idempotency-Key/body returns current persisted state without duplicate writes. Legacy record id=legacy uses expectedSettingsVersion instead of expectedRevision. Cancellation cannot recall an in-flight or accepted Push. List includes cancelled records; no pagination, maximum100 independent records per card. Since1.5.1, source distinguishes account-default, legacy-explicit and independent. The virtual legacy entry includes old time-only/lead/weekly/import settings even with independent records. Account fallback remains visible as superseded when not scheduled. scheduledAt is the requested instant; effectiveAt applies quiet hours, and nextScheduledAt is null when cancelled, superseded or terminal. Existing event identity and delivery claims prevent legacy projection from duplicating dispatch.",
        "x-required-scopes": [
          "reminders:write"
        ],
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Revision/idempotency conflict or linked-reminder-use-ui",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute (Retry-After:60), or reminder-limit: at most100 independent records per card including cancelled records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Success",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/IndependentReminder"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CancelIndependentReminder"
                  },
                  {
                    "$ref": "#/components/schemas/CancelLegacyReminder"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/tasks/{id}/reminder/repair": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          }
        }
      ],
      "post": {
        "operationId": "repairTaskReminderLink",
        "description": "Requires courses:read, tasks:read, tasks:write, reminders:read and reminders:write. An assignment is a study task; projectId identifies its internal owned helper, not an additional personal card. Helpers are intentionally absent from GET /projects, but reminder endpoints resolve owned storage independently. Default dryRun=true returns a no-write plan. Set dryRun=false and restoreTrashed=true only after the owner requests restoration. Requires exact task and project revisions and a complete native link intent proving the same task/project relation. Only trashedAt is cleared; the project revision advances. Missing, archived, mistyped, shared or unproven helpers are never recreated or restored. Existing reminder IDs, schedules, manual settings and delivery claims are untouched. Repeated identical Idempotency-Key requests do not apply a second restoration; a helper trashed again is not resurrected by replay. Durable native recovery handles a lost wake acknowledgement. Use a different key for preview and execution, retry execution with the same body/key and GET the existing linkage and collection afterward. Never resend task-created notifications as recovery.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairTaskReminder"
              },
              "examples": {
                "preview": {
                  "value": {
                    "restoreTrashed": true,
                    "dryRun": true
                  }
                },
                "restoreProvenHelper": {
                  "value": {
                    "expectedRevision": 1,
                    "expectedProjectRevision": 2,
                    "restoreTrashed": true,
                    "dryRun": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Invalid JSON, HTTPS required or missing Idempotency-Key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, revoked or expired key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or unavailable account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found in owner account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "revision-conflict, idempotency-key-reused or reminder-link-conflict (missing/archived/type mismatch/shared/unproven link or a later deletion). Does not recreate resources or replace reminder settings.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "type": "object",
                      "required": [
                        "result",
                        "requestId"
                      ],
                      "properties": {
                        "result": {
                          "$ref": "#/components/schemas/TaskReminderStatus"
                        },
                        "requestId": {
                          "type": "string"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "413": {
            "description": "Request/account snapshot too large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "JSON required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Existing Wilo domain rejects input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "60 requests/account/minute; Retry-After:60",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Disabled API or unavailable dependency/audit; Retry-After:2",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "No-write preview plan, or verified current reminder readback after an explicit restoration. Read individual reminder collection entries for their schedules.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ReminderRepairPlan"
                        },
                        {
                          "allOf": [
                            {
                              "$ref": "#/components/schemas/TaskReminderStatus"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "repaired": {
                                  "type": "boolean"
                                },
                                "replayed": {
                                  "type": "boolean"
                                },
                                "preservesReminderSettings": {
                                  "type": "boolean"
                                }
                              }
                            }
                          ]
                        }
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Restoration committed; native scheduler wake requires reconciliation. Not evidence of scheduled or delivered Push.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "result",
                    "requestId"
                  ],
                  "properties": {
                    "result": {
                      "$ref": "#/components/schemas/TaskReminderStatus"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Preview or explicitly restore a trashed university reminder helper"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Wilo personal API key"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "requestId"
        ],
        "additionalProperties": false
      },
      "MutationResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          },
          "created": {
            "type": "boolean"
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "revision",
          "created"
        ],
        "additionalProperties": false
      },
      "CourseValues": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 300
          },
          "url": {
            "type": "string",
            "maxLength": 2000
          },
          "notes": {
            "type": "string",
            "maxLength": 10000
          },
          "requires": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            },
            "maxItems": 1000
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{1,128}$"
                },
                "title": {
                  "type": "string",
                  "maxLength": 500
                },
                "done": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "title",
                "done"
              ],
              "additionalProperties": false
            },
            "maxItems": 200
          },
          "x": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000
          },
          "y": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "CourseRecord": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 300
          },
          "url": {
            "type": "string",
            "maxLength": 2000
          },
          "notes": {
            "type": "string",
            "maxLength": 10000
          },
          "requires": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,128}$"
            },
            "maxItems": 1000
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{1,128}$"
                },
                "title": {
                  "type": "string",
                  "maxLength": 500
                },
                "done": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "title",
                "done"
              ],
              "additionalProperties": false
            },
            "maxItems": 200
          },
          "x": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000
          },
          "y": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "TaskValues": {
        "type": "object",
        "properties": {
          "courseId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          },
          "title": {
            "type": "string",
            "maxLength": 500
          },
          "kind": {
            "enum": [
              "assignment",
              "exam",
              "task"
            ]
          },
          "due": {
            "type": "string",
            "description": "ISO8601 timestamp with timezone or empty to clear"
          },
          "done": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "maxLength": 10000
          },
          "url": {
            "type": "string",
            "maxLength": 2000
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "TaskRecord": {
        "type": "object",
        "properties": {
          "courseId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          },
          "title": {
            "type": "string",
            "maxLength": 500
          },
          "kind": {
            "enum": [
              "assignment",
              "exam",
              "task"
            ]
          },
          "due": {
            "type": "string",
            "description": "ISO8601 timestamp with timezone or empty to clear"
          },
          "done": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "maxLength": 10000
          },
          "url": {
            "type": "string",
            "maxLength": 2000
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "ClassValues": {
        "type": "object",
        "properties": {
          "courseId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          },
          "sessionType": {
            "enum": [
              "lecture",
              "tutorial",
              "lab"
            ]
          },
          "day": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6
          },
          "start": {
            "type": "string",
            "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
          },
          "end": {
            "type": "string",
            "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
          },
          "room": {
            "type": "string",
            "maxLength": 200
          },
          "notes": {
            "type": "string",
            "maxLength": 1000
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "ClassRecord": {
        "type": "object",
        "properties": {
          "courseId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          },
          "sessionType": {
            "enum": [
              "lecture",
              "tutorial",
              "lab"
            ]
          },
          "day": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6
          },
          "start": {
            "type": "string",
            "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
          },
          "end": {
            "type": "string",
            "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
          },
          "room": {
            "type": "string",
            "maxLength": 200
          },
          "notes": {
            "type": "string",
            "maxLength": 1000
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "ProjectValues": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "nextStep": {
            "type": "string",
            "maxLength": 1000
          },
          "description": {
            "type": "string",
            "maxLength": 1000
          },
          "projectUrl": {
            "type": "string",
            "maxLength": 500
          },
          "attachmentUrl": {
            "type": "string",
            "maxLength": 500
          },
          "coverUrl": {
            "type": "string",
            "maxLength": 500
          },
          "sectionId": {
            "type": "string",
            "maxLength": 100
          },
          "checkpoint": {
            "type": "string",
            "maxLength": 1000
          },
          "checklist": {
            "type": "string",
            "maxLength": 3000
          },
          "status": {
            "enum": [
              "later",
              "active",
              "waiting",
              "done"
            ]
          },
          "kind": {
            "enum": [
              "resume",
              "waiting",
              "deadline",
              "list"
            ]
          },
          "resourceType": {
            "enum": [
              "project",
              "book",
              "course",
              "video",
              "series",
              "film",
              "shopping",
              "idea"
            ]
          },
          "links": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 500
            },
            "maxItems": 10
          },
          "dueDate": {
            "type": "string",
            "description": "YYYY-MM-DD or empty"
          },
          "followUpDate": {
            "type": "string",
            "description": "YYYY-MM-DD or empty"
          },
          "progressUnits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "totalUnits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "rank": {
            "type": "number",
            "exclusiveMinimum": -1000000000000000.0,
            "exclusiveMaximum": 1000000000000000.0,
            "description": "Used for updates; creation uses current Wilo placement default."
          },
          "archivedAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9000000000000000
          },
          "trashedAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9000000000000000
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "ProjectRecord": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "nextStep": {
            "type": "string",
            "maxLength": 1000
          },
          "description": {
            "type": "string",
            "maxLength": 1000
          },
          "projectUrl": {
            "type": "string",
            "maxLength": 500
          },
          "attachmentUrl": {
            "type": "string",
            "maxLength": 500
          },
          "coverUrl": {
            "type": "string",
            "maxLength": 500
          },
          "sectionId": {
            "type": "string",
            "maxLength": 100
          },
          "checkpoint": {
            "type": "string",
            "maxLength": 1000
          },
          "checklist": {
            "type": "string",
            "maxLength": 3000
          },
          "status": {
            "enum": [
              "later",
              "active",
              "waiting",
              "done"
            ]
          },
          "kind": {
            "enum": [
              "resume",
              "waiting",
              "deadline",
              "list"
            ]
          },
          "resourceType": {
            "enum": [
              "project",
              "book",
              "course",
              "video",
              "series",
              "film",
              "shopping",
              "idea"
            ]
          },
          "links": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 500
            },
            "maxItems": 10
          },
          "dueDate": {
            "type": "string",
            "description": "YYYY-MM-DD or empty"
          },
          "followUpDate": {
            "type": "string",
            "description": "YYYY-MM-DD or empty"
          },
          "progressUnits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "totalUnits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "rank": {
            "type": "number",
            "exclusiveMinimum": -1000000000000000.0,
            "exclusiveMaximum": 1000000000000000.0,
            "description": "Used for updates; creation uses current Wilo placement default."
          },
          "archivedAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9000000000000000
          },
          "trashedAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9000000000000000
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "SectionValues": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 60
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "SectionRecord": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 60
          },
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "Board": {
        "type": "object",
        "properties": {
          "version": {
            "const": 1
          },
          "items": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,100}$"
                    },
                    "kind": {
                      "const": "card"
                    },
                    "x": {
                      "type": "number",
                      "minimum": -20000,
                      "maximum": 20000
                    },
                    "y": {
                      "type": "number",
                      "minimum": -20000,
                      "maximum": 20000
                    },
                    "projectId": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,128}$"
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "x",
                    "y",
                    "projectId"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,100}$"
                    },
                    "kind": {
                      "const": "note"
                    },
                    "x": {
                      "type": "number",
                      "minimum": -20000,
                      "maximum": 20000
                    },
                    "y": {
                      "type": "number",
                      "minimum": -20000,
                      "maximum": 20000
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 2000
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "x",
                    "y",
                    "text"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,100}$"
                    },
                    "kind": {
                      "const": "zone"
                    },
                    "x": {
                      "type": "number",
                      "minimum": -20000,
                      "maximum": 20000
                    },
                    "y": {
                      "type": "number",
                      "minimum": -20000,
                      "maximum": 20000
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 100
                    },
                    "width": {
                      "type": "number",
                      "minimum": 240,
                      "maximum": 4000
                    },
                    "height": {
                      "type": "number",
                      "minimum": 180,
                      "maximum": 4000
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "x",
                    "y",
                    "title",
                    "width",
                    "height"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "maxItems": 200
          },
          "threads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{1,128}$"
                },
                "source": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{1,128}$"
                },
                "target": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{1,128}$"
                },
                "kind": {
                  "enum": [
                    "related",
                    "part",
                    "depends"
                  ]
                },
                "label": {
                  "type": "string",
                  "maxLength": 100
                }
              },
              "required": [
                "id",
                "source",
                "target"
              ],
              "additionalProperties": false
            },
            "maxItems": 400
          },
          "circles": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{1,128}$"
                },
                "x": {
                  "type": "number",
                  "minimum": -20000,
                  "maximum": 20000
                },
                "y": {
                  "type": "number",
                  "minimum": -20000,
                  "maximum": 20000
                },
                "width": {
                  "type": "number",
                  "minimum": 20,
                  "maximum": 4000
                },
                "height": {
                  "type": "number",
                  "minimum": 20,
                  "maximum": 4000
                }
              },
              "required": [
                "id",
                "x",
                "y",
                "width",
                "height"
              ],
              "additionalProperties": false
            },
            "maxItems": 120
          }
        },
        "required": [
          "version",
          "items",
          "threads",
          "circles"
        ],
        "additionalProperties": false
      },
      "Reminder": {
        "type": "object",
        "properties": {
          "disabled": {
            "type": "boolean"
          },
          "weekly": {
            "type": "boolean"
          },
          "time": {
            "type": "string",
            "pattern": "^$|^([01][0-9]|2[0-3]):[0-5][0-9]$"
          },
          "leadMinutes": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 150119987578
          },
          "expectedSettingsVersion": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "schedule": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CardSchedule"
              },
              {
                "type": "null"
              }
            ]
          },
          "remindAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "TaskReminderStatus": {
        "type": "object",
        "required": [
          "taskId",
          "status",
          "verified",
          "scheduled"
        ],
        "properties": {
          "taskId": {
            "type": "string"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "enum": [
              "unlinked",
              "pending",
              "blocked",
              "scheduled",
              "disabled",
              "awaiting-device",
              "outside-window",
              "manual-recurring",
              "incomplete",
              "not-configured",
              "invalid-schedule",
              "expired",
              "push-queued",
              "dispatching",
              "provider-accepted",
              "failed",
              "unknown",
              "cancelled",
              "superseded"
            ]
          },
          "verified": {
            "type": "boolean",
            "description": "The reported state was read back; not proof of delivery."
          },
          "scheduled": {
            "type": "boolean",
            "description": "True only for a verified enabled native schedule with a registered device."
          },
          "reason": {
            "type": "string"
          },
          "reminderAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "nextCheckAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "timezone": {
            "type": "string"
          },
          "leadMinutes": {
            "type": "integer",
            "minimum": 0,
            "maximum": 150119987578
          },
          "settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Reminder"
              },
              {
                "type": "null"
              }
            ]
          },
          "settingsVersion": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[a-f0-9]{64}$"
          },
          "schedule": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CardSchedule"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "account-default",
              "legacy-explicit",
              "independent"
            ],
            "description": "Account fallback, existing explicit native settings (including time-only/lead/weekly/API linkage), or independent reminder record. No copy or migration on read."
          },
          "suppressed": {
            "type": "boolean",
            "description": "True for account-default when independent records replace automatic defaults. Historical dispatch results remain visible; no new default dispatch is scheduled."
          }
        }
      },
      "TaskNotificationStatus": {
        "type": "object",
        "required": [
          "status",
          "accepted",
          "providerAccepted",
          "handsetDelivery",
          "resourceType",
          "resourceId"
        ],
        "properties": {
          "taskId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "not-requested",
              "pending",
              "queued",
              "deferred",
              "sending",
              "provider-accepted",
              "partially-accepted",
              "failed",
              "unknown",
              "disabled",
              "expired",
              "resource-unavailable"
            ]
          },
          "accepted": {
            "type": "boolean"
          },
          "eventId": {
            "type": "string"
          },
          "queuedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "providerAccepted": {
            "type": "integer",
            "minimum": 0
          },
          "devices": {
            "type": "integer",
            "minimum": 0
          },
          "counts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "minimum": 0
            }
          },
          "handsetDelivery": {
            "type": "string",
            "const": "not-confirmed"
          },
          "createdAt": {
            "type": "integer"
          },
          "nextAttemptAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "resourceType": {
            "type": "string",
            "enum": [
              "tasks",
              "projects"
            ]
          },
          "resourceId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "bypassQuietHours": {
            "type": "boolean",
            "description": "The stored immediate-event policy. Never applies to scheduled reminders."
          },
          "quietHoursOverrideEffective": {
            "type": "boolean",
            "description": "Whether the originating owner key still grants the override at this read."
          }
        }
      },
      "CardSchedule": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "mode",
              "scheduledAt"
            ],
            "properties": {
              "mode": {
                "const": "absolute",
                "type": "string"
              },
              "scheduledAt": {
                "type": "string",
                "format": "date-time",
                "description": "Future RFC3339 instant with seconds and Z or explicit UTC offset. An offset conflicting with an explicit IANA zone is rejected."
              },
              "timeZone": {
                "type": "string",
                "maxLength": 100,
                "description": "Valid IANA time zone; defaults to account zone when configuring, then stored explicitly."
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "mode",
              "amount",
              "unit"
            ],
            "properties": {
              "mode": {
                "type": "string",
                "const": "relative"
              },
              "amount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 150119987578
              },
              "unit": {
                "type": "string",
                "enum": [
                  "minutes",
                  "hours",
                  "days",
                  "weeks"
                ]
              },
              "localTime": {
                "type": "string",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
                "description": "For days/weeks only: local clock on the calendar day before due date. Defaults to account defaultTime and is then frozen."
              },
              "dueTime": {
                "type": "string",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
                "description": "Card deadline clock for minute/hour duration; defaults to current card time/account default, then stored explicitly."
              },
              "timeZone": {
                "type": "string",
                "maxLength": 100,
                "description": "Valid IANA time zone; defaults to account zone when configuring, then stored explicitly."
              },
              "disambiguation": {
                "type": "string",
                "enum": [
                  "earlier",
                  "later"
                ],
                "description": "For repeated local times during a daylight saving transition. Omit to reject ambiguous times."
              }
            }
          }
        ]
      },
      "CardReminderState": {
        "type": "object",
        "required": [
          "projectId",
          "settingsVersion",
          "status",
          "scheduled",
          "handsetDelivery"
        ],
        "properties": {
          "projectId": {
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "weekly": {
            "type": "boolean"
          },
          "time": {
            "type": "string"
          },
          "leadMinutes": {
            "type": "integer",
            "minimum": 0,
            "maximum": 150119987578
          },
          "schedule": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CardSchedule"
              },
              {
                "type": "null"
              }
            ]
          },
          "remindAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "settingsVersion": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "configured": {
            "type": "boolean"
          },
          "deliveryEnabled": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "not-configured",
              "scheduled",
              "disabled",
              "pending",
              "awaiting-device",
              "invalid-schedule",
              "expired",
              "push-queued",
              "dispatching",
              "provider-accepted",
              "failed",
              "unknown",
              "superseded",
              "cancelled"
            ]
          },
          "scheduled": {
            "type": "boolean"
          },
          "scheduledAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "effectiveAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "timeZone": {
            "type": "string",
            "maxLength": 100,
            "description": "Valid IANA time zone; defaults to account zone when configuring, then stored explicitly."
          },
          "nextCheckAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "providerAccepted": {
            "type": "integer",
            "minimum": 0
          },
          "deliveryCounts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "minimum": 0
            }
          },
          "handsetDelivery": {
            "type": "string",
            "const": "not-confirmed"
          },
          "id": {
            "type": "string"
          },
          "updated": {
            "type": "boolean"
          },
          "preferences": {
            "type": "object"
          },
          "dueDate": {
            "type": "string",
            "description": "The current card deadline calendar date, or empty when unset."
          },
          "source": {
            "type": "string",
            "enum": [
              "account-default",
              "legacy-explicit",
              "independent"
            ],
            "description": "Account fallback, existing explicit native settings (including time-only/lead/weekly/API linkage), or independent reminder record. No copy or migration on read."
          },
          "suppressed": {
            "type": "boolean",
            "description": "True for account-default when independent records replace automatic defaults. Historical dispatch results remain visible; no new default dispatch is scheduled."
          }
        }
      },
      "IndependentReminder": {
        "type": "object",
        "required": [
          "id",
          "revision",
          "state",
          "status",
          "scheduledAt",
          "handsetDelivery"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "revision": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0
          },
          "settingsVersion": {
            "type": "string"
          },
          "legacy": {
            "type": "boolean"
          },
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CardSchedule"
              },
              {
                "type": "null"
              }
            ],
            "description": "Legacy time/lead/default settings may have no normalized schedule object; use scheduledAt/effectiveAt and source."
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "cancelled",
              "legacy"
            ]
          },
          "status": {
            "type": "string"
          },
          "scheduledAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "nextScheduledAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "effectiveAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "timeZone": {
            "type": "string"
          },
          "createdAt": {
            "type": "integer"
          },
          "updatedAt": {
            "type": "integer"
          },
          "providerAccepted": {
            "type": "integer"
          },
          "deliveryCounts": {
            "type": "object"
          },
          "handsetDelivery": {
            "const": "not-confirmed"
          },
          "source": {
            "type": "string",
            "enum": [
              "account-default",
              "legacy-explicit",
              "independent"
            ],
            "description": "Account fallback, existing explicit native settings (including time-only/lead/weekly/API linkage), or independent reminder record. No copy or migration on read."
          },
          "suppressed": {
            "type": "boolean",
            "description": "True for account-default when independent records replace automatic defaults. Historical dispatch results remain visible; no new default dispatch is scheduled."
          }
        }
      },
      "ReminderCollection": {
        "type": "object",
        "required": [
          "projectId",
          "items",
          "settingsVersion",
          "cardDisabled",
          "limit"
        ],
        "properties": {
          "projectId": {
            "type": "string"
          },
          "dueDate": {
            "type": "string"
          },
          "cardDisabled": {
            "type": "boolean"
          },
          "preferences": {
            "type": "object"
          },
          "settingsVersion": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndependentReminder"
            }
          },
          "limit": {
            "const": 100
          }
        }
      },
      "CreateIndependentReminder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schedule"
        ],
        "properties": {
          "schedule": {
            "$ref": "#/components/schemas/CardSchedule"
          },
          "enableCard": {
            "type": "boolean",
            "description": "Explicitly enable a disabled card. Requires expectedSettingsVersion; account notifications remain unchanged."
          },
          "expectedSettingsVersion": {
            "type": "string"
          }
        }
      },
      "UpdateIndependentReminder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schedule",
          "expectedRevision"
        ],
        "properties": {
          "schedule": {
            "$ref": "#/components/schemas/CardSchedule"
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "CancelIndependentReminder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "expectedRevision"
        ],
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "UpdateLegacyReminder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schedule",
          "expectedSettingsVersion"
        ],
        "properties": {
          "schedule": {
            "$ref": "#/components/schemas/CardSchedule"
          },
          "expectedSettingsVersion": {
            "type": "string"
          }
        }
      },
      "CancelLegacyReminder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "expectedSettingsVersion"
        ],
        "properties": {
          "expectedSettingsVersion": {
            "type": "string"
          }
        }
      },
      "RepairTaskReminder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "restoreTrashed"
        ],
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "minimum": 0
          },
          "expectedProjectRevision": {
            "type": "integer",
            "minimum": 0
          },
          "restoreTrashed": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "dryRun": {
            "type": "boolean",
            "default": true
          }
        },
        "oneOf": [
          {
            "properties": {
              "dryRun": {
                "enum": [
                  false
                ]
              }
            },
            "required": [
              "dryRun",
              "expectedRevision",
              "expectedProjectRevision"
            ]
          },
          {
            "properties": {
              "dryRun": {
                "enum": [
                  true
                ]
              }
            }
          }
        ]
      },
      "ReminderRepairPlan": {
        "type": "object",
        "required": [
          "taskId",
          "projectId",
          "taskRevision",
          "projectRevision",
          "dryRun",
          "state",
          "repairable",
          "preservesReminderSettings",
          "changes"
        ],
        "properties": {
          "taskId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "taskRevision": {
            "type": "integer"
          },
          "projectRevision": {
            "type": "integer"
          },
          "dryRun": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "trashed",
              "active"
            ]
          },
          "repairable": {
            "type": "boolean"
          },
          "preservesReminderSettings": {
            "type": "boolean"
          },
          "changes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "restore-auxiliary-card"
              ]
            }
          }
        }
      }
    }
  }
}
